From: jaehyun0cho Date: Tue, 7 May 2019 00:37:03 +0000 (+0900) Subject: [EflSharp] Update Circle and efl cs files (#819) X-Git-Tag: 5.5_M2~227 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07e87ad5f5e45261cab98307bf1bc16bd7d1f23e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [EflSharp] Update Circle and efl cs files (#819) Circle and efl cs files are updated based on the latest efl. DoPack() is replaced with Pack(). It has been fixed to load libevas.so.1. --- diff --git a/internals/src/EflSharp/EflSharp/Circle/Interop.Eext.MoreOption.cs b/internals/src/EflSharp/EflSharp/Circle/Interop.Eext.MoreOption.cs index ee0932e..98dc78f 100755 --- a/internals/src/EflSharp/EflSharp/Circle/Interop.Eext.MoreOption.cs +++ b/internals/src/EflSharp/EflSharp/Circle/Interop.Eext.MoreOption.cs @@ -61,5 +61,14 @@ internal static partial class Interop [DllImport(efl.Libs.Eext)] internal static extern void eext_more_option_item_part_text_set(IntPtr item, string part_name, string text); + + [DllImport(efl.Libs.Eext)] + internal static extern void eext_more_option_editing_enabled_set(IntPtr obj, bool enabled); + [DllImport(efl.Libs.Eext)] + internal static extern bool eext_more_option_editing_enabled_get(IntPtr obj); + [DllImport(efl.Libs.Eext)] + internal static extern void eext_more_option_add_item_enabled_set(IntPtr obj, bool enabled); + [DllImport(efl.Libs.Eext)] + internal static extern bool eext_more_option_add_item_enabled_get(IntPtr obj); } } \ No newline at end of file diff --git a/internals/src/EflSharp/EflSharp/Circle/Interop.Eext.RotarySelector.cs b/internals/src/EflSharp/EflSharp/Circle/Interop.Eext.RotarySelector.cs index 3450cbd..bff9cc9 100755 --- a/internals/src/EflSharp/EflSharp/Circle/Interop.Eext.RotarySelector.cs +++ b/internals/src/EflSharp/EflSharp/Circle/Interop.Eext.RotarySelector.cs @@ -45,5 +45,13 @@ internal static partial class Interop internal static extern void eext_rotary_selector_item_part_color_set(IntPtr item, string part_name, int state, int r, int g, int b, int a); [DllImport(efl.Libs.Eext)] internal static extern void eext_rotary_selector_item_part_color_get(IntPtr item, string part_name, int state, out int r, out int g, out int b, out int a); + [DllImport(efl.Libs.Eext)] + internal static extern void eext_rotary_selector_editing_enabled_set(IntPtr obj, bool enabled); + [DllImport(efl.Libs.Eext)] + internal static extern bool eext_rotary_selector_editing_enabled_get(IntPtr obj); + [DllImport(efl.Libs.Eext)] + internal static extern void eext_rotary_selector_add_item_enabled_set(IntPtr obj, bool enabled); + [DllImport(efl.Libs.Eext)] + internal static extern bool eext_rotary_selector_add_item_enabled_get(IntPtr obj); } } \ No newline at end of file diff --git a/internals/src/EflSharp/EflSharp/Circle/MoreOption.cs b/internals/src/EflSharp/EflSharp/Circle/MoreOption.cs index 9ac3a32..3d2dbc5 100755 --- a/internals/src/EflSharp/EflSharp/Circle/MoreOption.cs +++ b/internals/src/EflSharp/EflSharp/Circle/MoreOption.cs @@ -26,6 +26,8 @@ namespace Efl const string ItemSelectedEventName = "item,selected"; const string ItemClickedEventName = "item,clicked"; + readonly List Items = new List(); + /// /// Clicked will be triggered when the user selects the already selected item again or selects a selector. /// @@ -50,22 +52,65 @@ namespace Efl { smartClicked = new Interop.Evas.SmartCallback((d, o, e) => { - MoreOptionItem clickedItem = new MoreOptionItem(); - clickedItem._handle = e; - Clicked?.Invoke(this, new MoreOptionItemEventArgs { item = clickedItem }); + MoreOptionItem clickedItem = FindItemByNativeHandle(e); + if (clickedItem != null) + Clicked?.Invoke(this, new MoreOptionItemEventArgs { item = clickedItem }); }); smartSelected = new Interop.Evas.SmartCallback((d, o, e) => { - MoreOptionItem selectedItem = new MoreOptionItem(); - selectedItem._handle = e; - Selected?.Invoke(this, new MoreOptionItemEventArgs { item = selectedItem }); + MoreOptionItem selectedItem = FindItemByNativeHandle(e); + if (selectedItem != null) + Selected?.Invoke(this, new MoreOptionItemEventArgs { item = selectedItem }); }); Interop.Evas.evas_object_smart_callback_add(this.NativeHandle, ItemClickedEventName, smartClicked, IntPtr.Zero); Interop.Evas.evas_object_smart_callback_add(this.NativeHandle, ItemSelectedEventName, smartSelected, IntPtr.Zero); } + private MoreOptionItem FindItemByNativeHandle(IntPtr handle) + { + foreach (MoreOptionItem item in Items) + { + if (item.NativeHandle == handle) + return item; + } + + return null; + } + + /// + /// Sets or gets the edit mode of more option. + /// + /// 6 + public bool EditMode + { + get + { + return Interop.Eext.eext_more_option_editing_enabled_get(this.NativeHandle); + } + set + { + Interop.Eext.eext_more_option_editing_enabled_set(this.NativeHandle, value); + } + } + + /// + /// Sets or gets the add item mode of more option. + /// + /// 6 + public bool AddItemMode + { + get + { + return Interop.Eext.eext_more_option_add_item_enabled_get(this.NativeHandle); + } + set + { + Interop.Eext.eext_more_option_add_item_enabled_set(this.NativeHandle, value); + } + } + /// /// Appends a more option item. /// @@ -73,7 +118,10 @@ namespace Efl public void Append(MoreOptionItem item) { if (item.NativeHandle != null) - item.NativeHandle = Interop.Eext.eext_more_option_item_append(this.NativeHandle); + { + Items.Add(item); + item.NativeHandle = Interop.Eext.eext_more_option_item_append(this.NativeHandle); + } } /// @@ -83,7 +131,10 @@ namespace Efl public void PrependItem(MoreOptionItem item) { if (item.NativeHandle != null) - item.NativeHandle = Interop.Eext.eext_more_option_item_prepend(this.NativeHandle); + { + Items.Insert(0, item); + item.NativeHandle = Interop.Eext.eext_more_option_item_prepend(this.NativeHandle); + } } /// @@ -92,8 +143,12 @@ namespace Efl /// 6 public void InsertAfter(MoreOptionItem targetItem, MoreOptionItem item) { - if (item.NativeHandle != null) - item.NativeHandle = Interop.Eext.eext_more_option_item_insert_after(this.NativeHandle, targetItem.NativeHandle); + if (item.NativeHandle != null && targetItem != null) + { + if (!Items.Contains(targetItem)) return; + Items.Insert(Items.IndexOf(targetItem) + 1, item); + item.NativeHandle = Interop.Eext.eext_more_option_item_insert_after(this.NativeHandle, targetItem.NativeHandle); + } } /// @@ -102,8 +157,12 @@ namespace Efl /// 6 public void InsertBefore(MoreOptionItem targetItem, MoreOptionItem item) { - if (item.NativeHandle != null) - item.NativeHandle = Interop.Eext.eext_more_option_item_insert_before(this.NativeHandle, targetItem.NativeHandle); + if (item.NativeHandle != null && targetItem != null) + { + if (!Items.Contains(targetItem)) return; + Items.Insert(Items.IndexOf(targetItem), item); + item.NativeHandle = Interop.Eext.eext_more_option_item_insert_before(this.NativeHandle, targetItem.NativeHandle); + } } /// @@ -113,7 +172,11 @@ namespace Efl public void DeleteItem(MoreOptionItem item) { if (item.NativeHandle != null) - Interop.Eext.eext_more_option_item_del(item.NativeHandle); + { + if (!Items.Contains(item)) return; + Items.Remove(item); + Interop.Eext.eext_more_option_item_del(item.NativeHandle); + } } /// @@ -123,7 +186,10 @@ namespace Efl public void ClearItems() { if (this.NativeHandle != null) - Interop.Eext.eext_more_option_items_clear(this.NativeHandle); + { + Items.Clear(); + Interop.Eext.eext_more_option_items_clear(this.NativeHandle); + } } /// diff --git a/internals/src/EflSharp/EflSharp/Circle/RotarySelector.cs b/internals/src/EflSharp/EflSharp/Circle/RotarySelector.cs index afd5a38..d766af0 100755 --- a/internals/src/EflSharp/EflSharp/Circle/RotarySelector.cs +++ b/internals/src/EflSharp/EflSharp/Circle/RotarySelector.cs @@ -34,6 +34,8 @@ namespace Efl Image _normalBgImage; + readonly List Items = new List(); + /// /// Clicked will be triggered when selecting again the already selected item or selecting a selector. /// @@ -58,20 +60,65 @@ namespace Efl { smartClicked = new Interop.Evas.SmartCallback((d, o, e) => { - RotarySelectorItem clickedItem = new RotarySelectorItem(); - clickedItem._handle = e; - Clicked?.Invoke(this, new RotarySelectorItemEventArgs { item = clickedItem}); + RotarySelectorItem clickedItem = FindItemByNativeHandle(e); + if (clickedItem != null) + Clicked?.Invoke(this, new RotarySelectorItemEventArgs { item = clickedItem}); }); smartSelected = new Interop.Evas.SmartCallback((d, o, e) => { - Selected?.Invoke(this, new RotarySelectorItemEventArgs { item = this.SelectedItem }); + RotarySelectorItem selectedItem = FindItemByNativeHandle(e); + if (selectedItem != null) + Selected.Invoke(this, new RotarySelectorItemEventArgs { item = selectedItem }); }); Interop.Evas.evas_object_smart_callback_add(this.NativeHandle, ItemClickedEventName, smartClicked, IntPtr.Zero); Interop.Evas.evas_object_smart_callback_add(this.NativeHandle, ItemSelectedEventName, smartSelected, IntPtr.Zero); } + private RotarySelectorItem FindItemByNativeHandle(IntPtr handle) + { + foreach(RotarySelectorItem item in Items) + { + if (item.NativeHandle == handle) + return item; + } + + return null; + } + + /// + /// Sets or gets the edit mode of rotary selector. + /// + /// 6 + public bool EditMode + { + get + { + return Interop.Eext.eext_rotary_selector_editing_enabled_get(this.NativeHandle); + } + set + { + Interop.Eext.eext_rotary_selector_editing_enabled_set(this.NativeHandle, value); + } + } + + /// + /// Sets or gets the add item mode of rotary selector. + /// + /// 6 + public bool AddItemMode + { + get + { + return Interop.Eext.eext_rotary_selector_add_item_enabled_get(this.NativeHandle); + } + set + { + Interop.Eext.eext_rotary_selector_add_item_enabled_set(this.NativeHandle, value); + } + } + /// /// Appends a rotary selector item. /// @@ -79,7 +126,10 @@ namespace Efl public void Append(RotarySelectorItem item) { if (item.NativeHandle != null) - item.NativeHandle = Interop.Eext.eext_rotary_selector_item_append(this.NativeHandle); + { + Items.Add(item); + item.NativeHandle = Interop.Eext.eext_rotary_selector_item_append(this.NativeHandle); + } } /// @@ -89,7 +139,10 @@ namespace Efl public void Prepend(RotarySelectorItem item) { if (item.NativeHandle != null) - item.NativeHandle = Interop.Eext.eext_rotary_selector_item_prepend(this.NativeHandle); + { + Items.Insert(0, item); + item.NativeHandle = Interop.Eext.eext_rotary_selector_item_prepend(this.NativeHandle); + } } /// @@ -98,8 +151,12 @@ namespace Efl /// 6 public void InsertAfter(RotarySelectorItem targetItem, RotarySelectorItem item) { - if (item.NativeHandle != null) - item.NativeHandle = Interop.Eext.eext_rotary_selector_item_insert_after(this.NativeHandle, targetItem.NativeHandle); + if (item.NativeHandle != null && targetItem != null) + { + if (!Items.Contains(targetItem)) return; + Items.Insert(Items.IndexOf(targetItem) + 1, item); + item.NativeHandle = Interop.Eext.eext_rotary_selector_item_insert_after(this.NativeHandle, targetItem.NativeHandle); + } } /// @@ -108,8 +165,12 @@ namespace Efl /// 6 public void InsertBefore(RotarySelectorItem targetItem, RotarySelectorItem item) { - if (item.NativeHandle != null) - item.NativeHandle = Interop.Eext.eext_rotary_selector_item_insert_before(this.NativeHandle, targetItem.NativeHandle); + if (item.NativeHandle != null && targetItem != null) + { + if (!Items.Contains(targetItem)) return; + Items.Insert(Items.IndexOf(targetItem), item); + item.NativeHandle = Interop.Eext.eext_rotary_selector_item_insert_before(this.NativeHandle, targetItem.NativeHandle); + } } /// @@ -119,7 +180,11 @@ namespace Efl public void DeleteItem(RotarySelectorItem item) { if (item.NativeHandle != null) - Interop.Eext.eext_rotary_selector_item_del(item.NativeHandle); + { + if (!Items.Contains(item)) return; + Items.Remove(item); + Interop.Eext.eext_rotary_selector_item_del(item.NativeHandle); + } } /// @@ -129,7 +194,10 @@ namespace Efl public void ClearItems() { if (this.NativeHandle != null) - Interop.Eext.eext_rotary_selector_items_clear(this.NativeHandle); + { + Items.Clear(); + Interop.Eext.eext_rotary_selector_items_clear(this.NativeHandle); + } } /// @@ -140,8 +208,8 @@ namespace Efl { get { - RotarySelectorItem item = new RotarySelectorItem(); - item.NativeHandle = Interop.Eext.eext_rotary_selector_selected_item_get(this.NativeHandle); + IntPtr nativeHandle = Interop.Eext.eext_rotary_selector_selected_item_get(this.NativeHandle); + RotarySelectorItem item = FindItemByNativeHandle(nativeHandle); return item; } set diff --git a/internals/src/EflSharp/EflSharp/efl/edje_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/edje_types.eot.cs index 59c6ccb..37cc4f0 100644 --- a/internals/src/EflSharp/EflSharp/efl/edje_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/edje_types.eot.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Type of a part in an Efl.Canvas.Layout object (edje object). public enum LayoutPartType { @@ -50,8 +54,13 @@ Vector = 17, /// Last type value. Last = 18, } -} } -namespace Edje { + +} + +} + +namespace Edje { + /// All available cursor states public enum Cursor { @@ -70,8 +79,13 @@ User = 5, /// User extra cursor state UserExtra = 6, } -} -namespace Edje { namespace Text { + +} + +namespace Edje { + +namespace Text { + /// All Text auto capital mode type values public enum AutocapitalType { @@ -84,8 +98,13 @@ Sentence = 2, /// All characters mode value Allcharacter = 3, } -} } -namespace Edje { + +} + +} + +namespace Edje { + /// Input hints public enum InputHints { @@ -99,8 +118,13 @@ AutoComplete = 1, /// (Since EFL 1.12) SensitiveData = 2, } -} -namespace Edje { namespace InputPanel { + +} + +namespace Edje { + +namespace InputPanel { + /// Input panel language public enum Lang { @@ -111,8 +135,15 @@ Automatic = 0, /// (Since EFL 1.2) Alphabet = 1, } -} } -namespace Edje { namespace InputPanel { + +} + +} + +namespace Edje { + +namespace InputPanel { + /// Input panel return key types public enum ReturnKeyType { @@ -144,8 +175,15 @@ Send = 7, /// (Since EFL 1.8) Signin = 8, } -} } -namespace Edje { namespace InputPanel { + +} + +} + +namespace Edje { + +namespace InputPanel { + /// Input panel layout public enum Layout { @@ -186,8 +224,13 @@ Emoticon = 13, /// (Since EFL 1.19) Voice = 14, } -} } -namespace Edje { + +} + +} + +namespace Edje { + /// Perspective info for maps inside edje objects [StructLayout(LayoutKind.Sequential)] public struct Perspective @@ -223,4 +266,5 @@ public struct Perspective } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_accelerate_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_accelerate_interpolator.eo.cs index 6c6bdd7..1c17086 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_accelerate_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_accelerate_interpolator.eo.cs @@ -3,81 +3,102 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl accelerate interpolator class /// output = 1 - sin(Pi / 2 + input * Pi / 2); -[AccelerateInterpolatorNativeInherit] +[Efl.AccelerateInterpolator.NativeMethods] public class AccelerateInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AccelerateInterpolator)) - return Efl.AccelerateInterpolatorNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AccelerateInterpolator)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_accelerate_interpolator_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public AccelerateInterpolator(Efl.Object parent= null - ) : - base(efl_accelerate_interpolator_class_get(), typeof(AccelerateInterpolator), parent) + ) : base(efl_accelerate_interpolator_class_get(), typeof(AccelerateInterpolator), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AccelerateInterpolator(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AccelerateInterpolator(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AccelerateInterpolator(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Factor property /// Factor of the interpolation function. virtual public double GetFactor() { - var _ret_var = Efl.AccelerateInterpolatorNativeInherit.efl_accelerate_interpolator_factor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.AccelerateInterpolator.NativeMethods.efl_accelerate_interpolator_factor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Factor property /// Factor of the interpolation function. - /// - virtual public void SetFactor( double factor) { - Efl.AccelerateInterpolatorNativeInherit.efl_accelerate_interpolator_factor_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), factor); + virtual public void SetFactor(double factor) { + Efl.AccelerateInterpolator.NativeMethods.efl_accelerate_interpolator_factor_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),factor); Eina.Error.RaiseIfUnhandledException(); } /// Interpolate the given value. /// Input value mapped from 0.0 to 1.0. /// Output value calculated by interpolating the input value. - virtual public double Interpolate( double progress) { - var _ret_var = Efl.IInterpolatorNativeInherit.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), progress); + virtual public double Interpolate(double progress) { + var _ret_var = Efl.IInterpolatorConcrete.NativeMethods.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),progress); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -85,115 +106,176 @@ public class AccelerateInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpola /// Factor of the interpolation function. public double Factor { get { return GetFactor(); } - set { SetFactor( value); } + set { SetFactor(value); } } private static IntPtr GetEflClassStatic() { return Efl.AccelerateInterpolator.efl_accelerate_interpolator_class_get(); } -} -public class AccelerateInterpolatorNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_accelerate_interpolator_factor_get_static_delegate == null) - efl_accelerate_interpolator_factor_get_static_delegate = new efl_accelerate_interpolator_factor_get_delegate(factor_get); - if (methods.FirstOrDefault(m => m.Name == "GetFactor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_accelerate_interpolator_factor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_accelerate_interpolator_factor_get_static_delegate)}); - if (efl_accelerate_interpolator_factor_set_static_delegate == null) - efl_accelerate_interpolator_factor_set_static_delegate = new efl_accelerate_interpolator_factor_set_delegate(factor_set); - if (methods.FirstOrDefault(m => m.Name == "SetFactor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_accelerate_interpolator_factor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_accelerate_interpolator_factor_set_static_delegate)}); - if (efl_interpolator_interpolate_static_delegate == null) - efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.AccelerateInterpolator.efl_accelerate_interpolator_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.AccelerateInterpolator.efl_accelerate_interpolator_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_accelerate_interpolator_factor_get_static_delegate == null) + { + efl_accelerate_interpolator_factor_get_static_delegate = new efl_accelerate_interpolator_factor_get_delegate(factor_get); + } - private delegate double efl_accelerate_interpolator_factor_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFactor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_accelerate_interpolator_factor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_accelerate_interpolator_factor_get_static_delegate) }); + } + if (efl_accelerate_interpolator_factor_set_static_delegate == null) + { + efl_accelerate_interpolator_factor_set_static_delegate = new efl_accelerate_interpolator_factor_set_delegate(factor_set); + } - public delegate double efl_accelerate_interpolator_factor_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_accelerate_interpolator_factor_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_accelerate_interpolator_factor_get"); - private static double factor_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_accelerate_interpolator_factor_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((AccelerateInterpolator)wrapper).GetFactor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFactor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_accelerate_interpolator_factor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_accelerate_interpolator_factor_set_static_delegate) }); } - return _ret_var; - } else { - return efl_accelerate_interpolator_factor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_interpolator_interpolate_static_delegate == null) + { + efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); + } + + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.AccelerateInterpolator.efl_accelerate_interpolator_class_get(); } - } - private static efl_accelerate_interpolator_factor_get_delegate efl_accelerate_interpolator_factor_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_accelerate_interpolator_factor_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor); + + private delegate double efl_accelerate_interpolator_factor_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_accelerate_interpolator_factor_get_api_delegate(System.IntPtr obj); - public delegate void efl_accelerate_interpolator_factor_set_api_delegate(System.IntPtr obj, double factor); - public static Efl.Eo.FunctionWrapper efl_accelerate_interpolator_factor_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_accelerate_interpolator_factor_set"); - private static void factor_set(System.IntPtr obj, System.IntPtr pd, double factor) - { - Eina.Log.Debug("function efl_accelerate_interpolator_factor_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AccelerateInterpolator)wrapper).SetFactor( factor); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_accelerate_interpolator_factor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_accelerate_interpolator_factor_get"); + + private static double factor_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_accelerate_interpolator_factor_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((AccelerateInterpolator)wrapper).GetFactor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_accelerate_interpolator_factor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_accelerate_interpolator_factor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor); } - } - private static efl_accelerate_interpolator_factor_set_delegate efl_accelerate_interpolator_factor_set_static_delegate; + private static efl_accelerate_interpolator_factor_get_delegate efl_accelerate_interpolator_factor_get_static_delegate; - private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + private delegate void efl_accelerate_interpolator_factor_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor); + + public delegate void efl_accelerate_interpolator_factor_set_api_delegate(System.IntPtr obj, double factor); - public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); - public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_interpolator_interpolate"); - private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) - { - Eina.Log.Debug("function efl_interpolator_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((AccelerateInterpolator)wrapper).Interpolate( progress); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_accelerate_interpolator_factor_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_accelerate_interpolator_factor_set"); + + private static void factor_set(System.IntPtr obj, System.IntPtr pd, double factor) + { + Eina.Log.Debug("function efl_accelerate_interpolator_factor_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AccelerateInterpolator)wrapper).SetFactor(factor); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_accelerate_interpolator_factor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor); + } + } + + private static efl_accelerate_interpolator_factor_set_delegate efl_accelerate_interpolator_factor_set_static_delegate; + + + private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + + public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); + + public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_interpolator_interpolate"); + + private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) + { + Eina.Log.Debug("function efl_interpolator_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((AccelerateInterpolator)wrapper).Interpolate(progress); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + + } + else + { + return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + } } - } - private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_action.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_action.eo.cs index d6def0c..029f7b6 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_action.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_action.eo.cs @@ -3,32 +3,36 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Access { +namespace Efl { + +namespace Access { + /// Accessible action mixin -[IActionNativeInherit] +[Efl.Access.IActionConcrete.NativeMethods] public interface IAction : Efl.Eo.IWrapper, IDisposable { /// Gets action name for given id /// ID to get action name for /// Action name -System.String GetActionName( int id); +System.String GetActionName(int id); /// Gets localized action name for given id /// ID to get localized name for /// Localized name -System.String GetActionLocalizedName( int id); +System.String GetActionLocalizedName(int id); /// Get list of available widget actions /// Contains statically allocated strings. Eina.List GetActions(); /// Performs action on given widget. /// ID for widget /// true if action was performed, false otherwise -bool ActionDo( int id); +bool ActionDo(int id); /// Gets configured keybinding for specific action and widget. /// ID for widget /// Should be freed by the user. -System.String GetActionKeybinding( int id); +System.String GetActionKeybinding(int id); /// Get list of available widget actions /// Contains statically allocated strings. Eina.List Actions { @@ -42,104 +46,139 @@ IAction { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IActionConcrete)) - return Efl.Access.IActionNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IActionConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_access_action_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IActionConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IActionConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Gets action name for given id /// ID to get action name for /// Action name - public System.String GetActionName( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_name_get_ptr.Value.Delegate(this.NativeHandle, id); + public System.String GetActionName(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_name_get_ptr.Value.Delegate(this.NativeHandle,id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets localized action name for given id /// ID to get localized name for /// Localized name - public System.String GetActionLocalizedName( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_localized_name_get_ptr.Value.Delegate(this.NativeHandle, id); + public System.String GetActionLocalizedName(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_localized_name_get_ptr.Value.Delegate(this.NativeHandle,id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get list of available widget actions /// Contains statically allocated strings. public Eina.List GetActions() { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_actions_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_actions_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, false, false); } /// Performs action on given widget. /// ID for widget /// true if action was performed, false otherwise - public bool ActionDo( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_do_ptr.Value.Delegate(this.NativeHandle, id); + public bool ActionDo(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_do_ptr.Value.Delegate(this.NativeHandle,id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets configured keybinding for specific action and widget. /// ID for widget /// Should be freed by the user. - public System.String GetActionKeybinding( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_keybinding_get_ptr.Value.Delegate(this.NativeHandle, id); + public System.String GetActionKeybinding(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_keybinding_get_ptr.Value.Delegate(this.NativeHandle,id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -152,167 +191,264 @@ IAction { return Efl.Access.IActionConcrete.efl_access_action_mixin_get(); } -} -public class IActionNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_access_action_name_get_static_delegate == null) - efl_access_action_name_get_static_delegate = new efl_access_action_name_get_delegate(action_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetActionName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_name_get_static_delegate)}); - if (efl_access_action_localized_name_get_static_delegate == null) - efl_access_action_localized_name_get_static_delegate = new efl_access_action_localized_name_get_delegate(action_localized_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetActionLocalizedName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_localized_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_localized_name_get_static_delegate)}); - if (efl_access_action_actions_get_static_delegate == null) - efl_access_action_actions_get_static_delegate = new efl_access_action_actions_get_delegate(actions_get); - if (methods.FirstOrDefault(m => m.Name == "GetActions") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_actions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_actions_get_static_delegate)}); - if (efl_access_action_do_static_delegate == null) - efl_access_action_do_static_delegate = new efl_access_action_do_delegate(action_do); - if (methods.FirstOrDefault(m => m.Name == "ActionDo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_do"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_do_static_delegate)}); - if (efl_access_action_keybinding_get_static_delegate == null) - efl_access_action_keybinding_get_static_delegate = new efl_access_action_keybinding_get_delegate(action_keybinding_get); - if (methods.FirstOrDefault(m => m.Name == "GetActionKeybinding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_keybinding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_keybinding_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Access.IActionConcrete.efl_access_action_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Access.IActionConcrete.efl_access_action_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_access_action_name_get_static_delegate == null) + { + efl_access_action_name_get_static_delegate = new efl_access_action_name_get_delegate(action_name_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_action_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + if (methods.FirstOrDefault(m => m.Name == "GetActionName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_name_get_static_delegate) }); + } + if (efl_access_action_localized_name_get_static_delegate == null) + { + efl_access_action_localized_name_get_static_delegate = new efl_access_action_localized_name_get_delegate(action_localized_name_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_action_name_get_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_name_get"); - private static System.String action_name_get(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IActionConcrete)wrapper).GetActionName( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetActionLocalizedName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_localized_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_localized_name_get_static_delegate) }); + } + + if (efl_access_action_actions_get_static_delegate == null) + { + efl_access_action_actions_get_static_delegate = new efl_access_action_actions_get_delegate(actions_get); } - return _ret_var; - } else { - return efl_access_action_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); - } - } - private static efl_access_action_name_get_delegate efl_access_action_name_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetActions") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_actions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_actions_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_action_localized_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + if (efl_access_action_do_static_delegate == null) + { + efl_access_action_do_static_delegate = new efl_access_action_do_delegate(action_do); + } + if (methods.FirstOrDefault(m => m.Name == "ActionDo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_do"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_do_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_action_localized_name_get_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_localized_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_localized_name_get"); - private static System.String action_localized_name_get(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_localized_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IActionConcrete)wrapper).GetActionLocalizedName( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_access_action_keybinding_get_static_delegate == null) + { + efl_access_action_keybinding_get_static_delegate = new efl_access_action_keybinding_get_delegate(action_keybinding_get); } + + if (methods.FirstOrDefault(m => m.Name == "GetActionKeybinding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_keybinding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_keybinding_get_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.Access.IActionConcrete.efl_access_action_mixin_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_action_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_action_name_get_api_delegate(System.IntPtr obj, int id); + + public static Efl.Eo.FunctionWrapper efl_access_action_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_name_get"); + + private static System.String action_name_get(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IActionConcrete)wrapper).GetActionName(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_action_localized_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + + } + else + { + return efl_access_action_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } } - } - private static efl_access_action_localized_name_get_delegate efl_access_action_localized_name_get_static_delegate; + private static efl_access_action_name_get_delegate efl_access_action_name_get_static_delegate; - private delegate System.IntPtr efl_access_action_actions_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_action_localized_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_action_localized_name_get_api_delegate(System.IntPtr obj, int id); + + public static Efl.Eo.FunctionWrapper efl_access_action_localized_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_localized_name_get"); + + private static System.String action_localized_name_get(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_localized_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IActionConcrete)wrapper).GetActionLocalizedName(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate System.IntPtr efl_access_action_actions_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_action_actions_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_actions_get"); - private static System.IntPtr actions_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_action_actions_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((IActionConcrete)wrapper).GetActions(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var.Handle; - } else { - return efl_access_action_actions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_action_localized_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } } - } - private static efl_access_action_actions_get_delegate efl_access_action_actions_get_static_delegate; + private static efl_access_action_localized_name_get_delegate efl_access_action_localized_name_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_action_do_delegate(System.IntPtr obj, System.IntPtr pd, int id); + + private delegate System.IntPtr efl_access_action_actions_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_access_action_actions_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_action_actions_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_actions_get"); + + private static System.IntPtr actions_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_action_actions_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((IActionConcrete)wrapper).GetActions(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_action_do_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_do_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_do"); - private static bool action_do(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_do was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IActionConcrete)wrapper).ActionDo( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_action_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + else + { + return efl_access_action_actions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_action_do_delegate efl_access_action_do_static_delegate; + private static efl_access_action_actions_get_delegate efl_access_action_actions_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] private delegate System.String efl_access_action_keybinding_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_action_do_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_action_do_api_delegate(System.IntPtr obj, int id); + + public static Efl.Eo.FunctionWrapper efl_access_action_do_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_do"); + + private static bool action_do(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_do was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IActionConcrete)wrapper).ActionDo(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] public delegate System.String efl_access_action_keybinding_get_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_keybinding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_keybinding_get"); - private static System.String action_keybinding_get(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_keybinding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IActionConcrete)wrapper).GetActionKeybinding( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_access_action_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } + } + + private static efl_access_action_do_delegate efl_access_action_do_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + private delegate System.String efl_access_action_keybinding_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + public delegate System.String efl_access_action_keybinding_get_api_delegate(System.IntPtr obj, int id); + + public static Efl.Eo.FunctionWrapper efl_access_action_keybinding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_keybinding_get"); + + private static System.String action_keybinding_get(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_keybinding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IActionConcrete)wrapper).GetActionKeybinding(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_action_keybinding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + + } + else + { + return efl_access_action_keybinding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } } - } - private static efl_access_action_keybinding_get_delegate efl_access_action_keybinding_get_static_delegate; + + private static efl_access_action_keybinding_get_delegate efl_access_action_keybinding_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_component.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_component.eo.cs index 8ace80e..1a2845b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_component.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_component.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Access { +namespace Efl { + +namespace Access { + /// AT-SPI component mixin -[IComponentNativeInherit] +[Efl.Access.IComponentConcrete.NativeMethods] public interface IComponent : Efl.Gfx.IEntity , Efl.Gfx.IStack , @@ -18,38 +22,31 @@ int GetZOrder(); /// Geometry of accessible widget. /// If true x and y values will be relative to screen origin, otherwise relative to canvas /// The geometry. -Eina.Rect GetExtents( bool screen_coords); +Eina.Rect GetExtents(bool screen_coords); /// Geometry of accessible widget. /// If true x and y values will be relative to screen origin, otherwise relative to canvas /// The geometry. /// true if geometry was set, false otherwise -bool SetExtents( bool screen_coords, Eina.Rect rect); +bool SetExtents(bool screen_coords, Eina.Rect rect); /// Position of accessible widget. /// X coordinate /// Y coordinate -/// -void GetScreenPosition( out int x, out int y); +void GetScreenPosition(out int x, out int y); /// Position of accessible widget. /// X coordinate /// Y coordinate /// true if position was set, false otherwise -bool SetScreenPosition( int x, int y); +bool SetScreenPosition(int x, int y); /// Gets position of socket offset. -/// -/// -/// -void GetSocketOffset( out int x, out int y); +void GetSocketOffset(out int x, out int y); /// Sets position of socket offset. -/// -/// -/// -void SetSocketOffset( int x, int y); +void SetSocketOffset(int x, int y); /// Contains accessible widget /// If true x and y values will be relative to screen origin, otherwise relative to canvas /// X coordinate /// Y coordinate /// true if params have been set, false otherwise -bool Contains( bool screen_coords, int x, int y); +bool Contains(bool screen_coords, int x, int y); /// Focuses accessible widget. /// true if focus grab focus succeed, false otherwise. bool GrabFocus(); @@ -58,14 +55,12 @@ bool GrabFocus(); /// X coordinate /// Y coordinate /// Top component object at given coordinate -Efl.Object GetAccessibleAtPoint( bool screen_coords, int x, int y); +Efl.Object GetAccessibleAtPoint(bool screen_coords, int x, int y); /// Highlights accessible widget. returns true if highlight grab has successed, false otherwise. /// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif -/// bool GrabHighlight(); /// Clears highlight of accessible widget. returns true if clear has successed, false otherwise. /// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif -/// bool ClearHighlight(); /// Gets the depth at which the component is shown in relation to other components in the same container. /// Z order of component @@ -80,322 +75,429 @@ IComponent , Efl.Gfx.IEntity, Efl.Gfx.IStack { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IComponentConcrete)) - return Efl.Access.IComponentNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IComponentConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_access_component_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IComponentConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IComponentConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object VisibilityChangedEvtKey = new object(); + /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) public event EventHandler VisibilityChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.AddHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.RemoveHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event VisibilityChangedEvt. - public void On_VisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) + public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[VisibilityChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_VisibilityChangedEvt_delegate; - private void on_VisibilityChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_VisibilityChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PositionChangedEvtKey = new object(); /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) public event EventHandler PositionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.AddHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PositionChangedEvt. - public void On_PositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) + public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PositionChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PositionChangedEvt_delegate; - private void on_PositionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PositionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object SizeChangedEvtKey = new object(); /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) public event EventHandler SizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.AddHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SizeChangedEvt. - public void On_SizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) + public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SizeChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SizeChangedEvt_delegate; - private void on_SizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_SizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object StackingChangedEvtKey = new object(); /// Object stacking was changed. /// (Since EFL 1.22) public event EventHandler StackingChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_StackingChangedEvt_delegate)) { - eventHandlers.AddHandler(StackingChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_StackingChangedEvt_delegate)) { - eventHandlers.RemoveHandler(StackingChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event StackingChangedEvt. - public void On_StackingChangedEvt(EventArgs e) + public void OnStackingChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[StackingChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_StackingChangedEvt_delegate; - private void on_StackingChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_StackingChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_VisibilityChangedEvt_delegate = new Efl.EventCb(on_VisibilityChangedEvt_NativeCallback); - evt_PositionChangedEvt_delegate = new Efl.EventCb(on_PositionChangedEvt_NativeCallback); - evt_SizeChangedEvt_delegate = new Efl.EventCb(on_SizeChangedEvt_NativeCallback); - evt_StackingChangedEvt_delegate = new Efl.EventCb(on_StackingChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Gets the depth at which the component is shown in relation to other components in the same container. /// Z order of component public int GetZOrder() { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_z_order_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_z_order_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Geometry of accessible widget. /// If true x and y values will be relative to screen origin, otherwise relative to canvas /// The geometry. - public Eina.Rect GetExtents( bool screen_coords) { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_extents_get_ptr.Value.Delegate(this.NativeHandle, screen_coords); + public Eina.Rect GetExtents(bool screen_coords) { + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_extents_get_ptr.Value.Delegate(this.NativeHandle,screen_coords); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -403,43 +505,36 @@ private static object StackingChangedEvtKey = new object(); /// If true x and y values will be relative to screen origin, otherwise relative to canvas /// The geometry. /// true if geometry was set, false otherwise - public bool SetExtents( bool screen_coords, Eina.Rect rect) { + public bool SetExtents(bool screen_coords, Eina.Rect rect) { Eina.Rect.NativeStruct _in_rect = rect; - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_extents_set_ptr.Value.Delegate(this.NativeHandle, screen_coords, _in_rect); + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_extents_set_ptr.Value.Delegate(this.NativeHandle,screen_coords, _in_rect); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Position of accessible widget. /// X coordinate /// Y coordinate - /// - public void GetScreenPosition( out int x, out int y) { - Efl.Access.IComponentNativeInherit.efl_access_component_screen_position_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetScreenPosition(out int x, out int y) { + Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_screen_position_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Position of accessible widget. /// X coordinate /// Y coordinate /// true if position was set, false otherwise - public bool SetScreenPosition( int x, int y) { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_screen_position_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public bool SetScreenPosition(int x, int y) { + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_screen_position_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets position of socket offset. - /// - /// - /// - public void GetSocketOffset( out int x, out int y) { - Efl.Access.IComponentNativeInherit.efl_access_component_socket_offset_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetSocketOffset(out int x, out int y) { + Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_socket_offset_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Sets position of socket offset. - /// - /// - /// - public void SetSocketOffset( int x, int y) { - Efl.Access.IComponentNativeInherit.efl_access_component_socket_offset_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetSocketOffset(int x, int y) { + Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_socket_offset_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Contains accessible widget @@ -447,15 +542,15 @@ private static object StackingChangedEvtKey = new object(); /// X coordinate /// Y coordinate /// true if params have been set, false otherwise - public bool Contains( bool screen_coords, int x, int y) { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_contains_ptr.Value.Delegate(this.NativeHandle, screen_coords, x, y); + public bool Contains(bool screen_coords, int x, int y) { + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_contains_ptr.Value.Delegate(this.NativeHandle,screen_coords, x, y); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Focuses accessible widget. /// true if focus grab focus succeed, false otherwise. public bool GrabFocus() { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_focus_grab_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_focus_grab_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -464,24 +559,22 @@ private static object StackingChangedEvtKey = new object(); /// X coordinate /// Y coordinate /// Top component object at given coordinate - public Efl.Object GetAccessibleAtPoint( bool screen_coords, int x, int y) { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_accessible_at_point_get_ptr.Value.Delegate(this.NativeHandle, screen_coords, x, y); + public Efl.Object GetAccessibleAtPoint(bool screen_coords, int x, int y) { + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_accessible_at_point_get_ptr.Value.Delegate(this.NativeHandle,screen_coords, x, y); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Highlights accessible widget. returns true if highlight grab has successed, false otherwise. /// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif - /// public bool GrabHighlight() { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_highlight_grab_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_highlight_grab_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Clears highlight of accessible widget. returns true if clear has successed, false otherwise. /// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif - /// public bool ClearHighlight() { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_highlight_clear_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_highlight_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -489,24 +582,23 @@ private static object StackingChangedEvtKey = new object(); /// (Since EFL 1.22) /// A 2D coordinate in pixel units. public Eina.Position2D GetPosition() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Moves the given canvas object to the given location inside its canvas' viewport. If unchanged this call may be entirely skipped, but if changed this will trigger move events, as well as potential pointer,in or pointer,out events. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. - /// - public void SetPosition( Eina.Position2D pos) { + public void SetPosition(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_set_ptr.Value.Delegate(this.NativeHandle, _in_pos); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_set_ptr.Value.Delegate(this.NativeHandle,_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the (rectangular) size of the given Evas object. /// (Since EFL 1.22) /// A 2D size in pixel units. public Eina.Size2D GetSize() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -514,59 +606,55 @@ private static object StackingChangedEvtKey = new object(); /// Note that setting the actual size of an object might be the job of its container, so this function might have no effect. Look at instead, when manipulating widgets. /// (Since EFL 1.22) /// A 2D size in pixel units. - /// - public void SetSize( Eina.Size2D size) { + public void SetSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_set_ptr.Value.Delegate(this.NativeHandle, _in_size); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_set_ptr.Value.Delegate(this.NativeHandle,_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. public Eina.Rect GetGeometry() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. - /// - public void SetGeometry( Eina.Rect rect) { + public void SetGeometry(Eina.Rect rect) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_set_ptr.Value.Delegate(this.NativeHandle, _in_rect); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_set_ptr.Value.Delegate(this.NativeHandle,_in_rect); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves whether or not the given canvas object is visible. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise public bool GetVisible() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Shows or hides this object. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise - /// - public void SetVisible( bool v) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_set_ptr.Value.Delegate(this.NativeHandle, v); + public void SetVisible(bool v) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_set_ptr.Value.Delegate(this.NativeHandle,v); Eina.Error.RaiseIfUnhandledException(); } /// Gets an object's scaling factor. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) public double GetScale() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the scaling factor of an object. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) - /// - public void SetScale( double scale) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_set_ptr.Value.Delegate(this.NativeHandle, scale); + public void SetScale(double scale) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_set_ptr.Value.Delegate(this.NativeHandle,scale); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the layer of its canvas that the given object is part of. @@ -574,7 +662,7 @@ private static object StackingChangedEvtKey = new object(); /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . public short GetLayer() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_layer_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_layer_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -588,9 +676,8 @@ private static object StackingChangedEvtKey = new object(); /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . - /// - public void SetLayer( short l) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_layer_set_ptr.Value.Delegate(this.NativeHandle, l); + public void SetLayer(short l) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_layer_set_ptr.Value.Delegate(this.NativeHandle,l); Eina.Error.RaiseIfUnhandledException(); } /// Get the Evas object stacked right below obj @@ -600,7 +687,7 @@ private static object StackingChangedEvtKey = new object(); /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. public Efl.Gfx.IStack GetBelow() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_below_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_below_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -611,7 +698,7 @@ private static object StackingChangedEvtKey = new object(); /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. public Efl.Gfx.IStack GetAbove() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_above_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_above_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -627,9 +714,8 @@ private static object StackingChangedEvtKey = new object(); /// See also , and /// (Since EFL 1.22) /// The object below which to stack - /// - public void StackBelow( Efl.Gfx.IStack below) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_below_ptr.Value.Delegate(this.NativeHandle, below); + public void StackBelow(Efl.Gfx.IStack below) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_below_ptr.Value.Delegate(this.NativeHandle,below); Eina.Error.RaiseIfUnhandledException(); } /// Raise obj to the top of its layer. @@ -637,9 +723,8 @@ private static object StackingChangedEvtKey = new object(); /// /// See also , and /// (Since EFL 1.22) - /// public void RaiseToTop() { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_raise_to_top_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_raise_to_top_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Stack obj immediately above @@ -654,9 +739,8 @@ private static object StackingChangedEvtKey = new object(); /// See also , and /// (Since EFL 1.22) /// The object above which to stack - /// - public void StackAbove( Efl.Gfx.IStack above) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_above_ptr.Value.Delegate(this.NativeHandle, above); + public void StackAbove(Efl.Gfx.IStack above) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_above_ptr.Value.Delegate(this.NativeHandle,above); Eina.Error.RaiseIfUnhandledException(); } /// Lower obj to the bottom of its layer. @@ -664,9 +748,8 @@ private static object StackingChangedEvtKey = new object(); /// /// See also , and /// (Since EFL 1.22) - /// public void LowerToBottom() { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Gets the depth at which the component is shown in relation to other components in the same container. @@ -680,21 +763,21 @@ private static object StackingChangedEvtKey = new object(); /// A 2D coordinate in pixel units. public Eina.Position2D Position { get { return GetPosition(); } - set { SetPosition( value); } + set { SetPosition(value); } } /// The 2D size of a canvas object. /// (Since EFL 1.22) /// A 2D size in pixel units. public Eina.Size2D Size { get { return GetSize(); } - set { SetSize( value); } + set { SetSize(value); } } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. public Eina.Rect Geometry { get { return GetGeometry(); } - set { SetGeometry( value); } + set { SetGeometry(value); } } /// The visibility of a canvas object. /// All canvas objects will become visible by default just before render. This means that it is not required to call after creating an object unless you want to create it without showing it. Note that this behavior is new since 1.21, and only applies to canvas objects created with the EO API (i.e. not the legacy C-only API). Other types of Gfx objects may or may not be visible by default. @@ -704,7 +787,7 @@ private static object StackingChangedEvtKey = new object(); /// true if to make the object visible, false otherwise public bool Visible { get { return GetVisible(); } - set { SetVisible( value); } + set { SetVisible(value); } } /// The scaling factor of an object. /// This property is an individual scaling factor on the object (Edje or UI widget). This property (or Edje's global scaling factor, when applicable), will affect this object's part sizes. If scale is not zero, than the individual scaling will override any global scaling set, for the object obj's parts. Set it back to zero to get the effects of the global scaling again. @@ -714,7 +797,7 @@ private static object StackingChangedEvtKey = new object(); /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) public double Scale { get { return GetScale(); } - set { SetScale( value); } + set { SetScale(value); } } /// Retrieves the layer of its canvas that the given object is part of. /// See also @@ -722,7 +805,7 @@ private static object StackingChangedEvtKey = new object(); /// The number of the layer to place the object on. Must be between and . public short Layer { get { return GetLayer(); } - set { SetLayer( value); } + set { SetLayer(value); } } /// Get the Evas object stacked right below obj /// This function will traverse layers in its search, if there are objects on layers below the one obj is placed at. @@ -746,883 +829,1405 @@ private static object StackingChangedEvtKey = new object(); { return Efl.Access.IComponentConcrete.efl_access_component_mixin_get(); } -} -public class IComponentNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_access_component_z_order_get_static_delegate == null) - efl_access_component_z_order_get_static_delegate = new efl_access_component_z_order_get_delegate(z_order_get); - if (methods.FirstOrDefault(m => m.Name == "GetZOrder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_z_order_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_z_order_get_static_delegate)}); - if (efl_access_component_extents_get_static_delegate == null) - efl_access_component_extents_get_static_delegate = new efl_access_component_extents_get_delegate(extents_get); - if (methods.FirstOrDefault(m => m.Name == "GetExtents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_extents_get_static_delegate)}); - if (efl_access_component_extents_set_static_delegate == null) - efl_access_component_extents_set_static_delegate = new efl_access_component_extents_set_delegate(extents_set); - if (methods.FirstOrDefault(m => m.Name == "SetExtents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_extents_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_extents_set_static_delegate)}); - if (efl_access_component_screen_position_get_static_delegate == null) - efl_access_component_screen_position_get_static_delegate = new efl_access_component_screen_position_get_delegate(screen_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetScreenPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_screen_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_screen_position_get_static_delegate)}); - if (efl_access_component_screen_position_set_static_delegate == null) - efl_access_component_screen_position_set_static_delegate = new efl_access_component_screen_position_set_delegate(screen_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetScreenPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_screen_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_screen_position_set_static_delegate)}); - if (efl_access_component_socket_offset_get_static_delegate == null) - efl_access_component_socket_offset_get_static_delegate = new efl_access_component_socket_offset_get_delegate(socket_offset_get); - if (methods.FirstOrDefault(m => m.Name == "GetSocketOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_socket_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_socket_offset_get_static_delegate)}); - if (efl_access_component_socket_offset_set_static_delegate == null) - efl_access_component_socket_offset_set_static_delegate = new efl_access_component_socket_offset_set_delegate(socket_offset_set); - if (methods.FirstOrDefault(m => m.Name == "SetSocketOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_socket_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_socket_offset_set_static_delegate)}); - if (efl_access_component_contains_static_delegate == null) - efl_access_component_contains_static_delegate = new efl_access_component_contains_delegate(contains); - if (methods.FirstOrDefault(m => m.Name == "Contains") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_contains"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_contains_static_delegate)}); - if (efl_access_component_focus_grab_static_delegate == null) - efl_access_component_focus_grab_static_delegate = new efl_access_component_focus_grab_delegate(focus_grab); - if (methods.FirstOrDefault(m => m.Name == "GrabFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_focus_grab"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_focus_grab_static_delegate)}); - if (efl_access_component_accessible_at_point_get_static_delegate == null) - efl_access_component_accessible_at_point_get_static_delegate = new efl_access_component_accessible_at_point_get_delegate(accessible_at_point_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccessibleAtPoint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_accessible_at_point_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_accessible_at_point_get_static_delegate)}); - if (efl_access_component_highlight_grab_static_delegate == null) - efl_access_component_highlight_grab_static_delegate = new efl_access_component_highlight_grab_delegate(highlight_grab); - if (methods.FirstOrDefault(m => m.Name == "GrabHighlight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_highlight_grab"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_highlight_grab_static_delegate)}); - if (efl_access_component_highlight_clear_static_delegate == null) - efl_access_component_highlight_clear_static_delegate = new efl_access_component_highlight_clear_delegate(highlight_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearHighlight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_highlight_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_highlight_clear_static_delegate)}); - if (efl_gfx_entity_position_get_static_delegate == null) - efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate)}); - if (efl_gfx_entity_position_set_static_delegate == null) - efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate)}); - if (efl_gfx_entity_size_get_static_delegate == null) - efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); - if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate)}); - if (efl_gfx_entity_size_set_static_delegate == null) - efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); - if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate)}); - if (efl_gfx_entity_geometry_get_static_delegate == null) - efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate)}); - if (efl_gfx_entity_geometry_set_static_delegate == null) - efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); - if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate)}); - if (efl_gfx_entity_visible_get_static_delegate == null) - efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); - if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate)}); - if (efl_gfx_entity_visible_set_static_delegate == null) - efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); - if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate)}); - if (efl_gfx_entity_scale_get_static_delegate == null) - efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate)}); - if (efl_gfx_entity_scale_set_static_delegate == null) - efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_static_delegate)}); - if (efl_gfx_stack_layer_get_static_delegate == null) - efl_gfx_stack_layer_get_static_delegate = new efl_gfx_stack_layer_get_delegate(layer_get); - if (methods.FirstOrDefault(m => m.Name == "GetLayer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_layer_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_get_static_delegate)}); - if (efl_gfx_stack_layer_set_static_delegate == null) - efl_gfx_stack_layer_set_static_delegate = new efl_gfx_stack_layer_set_delegate(layer_set); - if (methods.FirstOrDefault(m => m.Name == "SetLayer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_layer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_set_static_delegate)}); - if (efl_gfx_stack_below_get_static_delegate == null) - efl_gfx_stack_below_get_static_delegate = new efl_gfx_stack_below_get_delegate(below_get); - if (methods.FirstOrDefault(m => m.Name == "GetBelow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_below_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_get_static_delegate)}); - if (efl_gfx_stack_above_get_static_delegate == null) - efl_gfx_stack_above_get_static_delegate = new efl_gfx_stack_above_get_delegate(above_get); - if (methods.FirstOrDefault(m => m.Name == "GetAbove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_above_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_get_static_delegate)}); - if (efl_gfx_stack_below_static_delegate == null) - efl_gfx_stack_below_static_delegate = new efl_gfx_stack_below_delegate(stack_below); - if (methods.FirstOrDefault(m => m.Name == "StackBelow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_below"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_static_delegate)}); - if (efl_gfx_stack_raise_to_top_static_delegate == null) - efl_gfx_stack_raise_to_top_static_delegate = new efl_gfx_stack_raise_to_top_delegate(raise_to_top); - if (methods.FirstOrDefault(m => m.Name == "RaiseToTop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_raise_to_top"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_raise_to_top_static_delegate)}); - if (efl_gfx_stack_above_static_delegate == null) - efl_gfx_stack_above_static_delegate = new efl_gfx_stack_above_delegate(stack_above); - if (methods.FirstOrDefault(m => m.Name == "StackAbove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_above"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_static_delegate)}); - if (efl_gfx_stack_lower_to_bottom_static_delegate == null) - efl_gfx_stack_lower_to_bottom_static_delegate = new efl_gfx_stack_lower_to_bottom_delegate(lower_to_bottom); - if (methods.FirstOrDefault(m => m.Name == "LowerToBottom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_lower_to_bottom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_lower_to_bottom_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Access.IComponentConcrete.efl_access_component_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Access.IComponentConcrete.efl_access_component_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_access_component_z_order_get_static_delegate == null) + { + efl_access_component_z_order_get_static_delegate = new efl_access_component_z_order_get_delegate(z_order_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetZOrder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_z_order_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_z_order_get_static_delegate) }); + } - private delegate int efl_access_component_z_order_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_access_component_extents_get_static_delegate == null) + { + efl_access_component_extents_get_static_delegate = new efl_access_component_extents_get_delegate(extents_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetExtents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_extents_get_static_delegate) }); + } - public delegate int efl_access_component_z_order_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_component_z_order_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_z_order_get"); - private static int z_order_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_component_z_order_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IComponentConcrete)wrapper).GetZOrder(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_access_component_extents_set_static_delegate == null) + { + efl_access_component_extents_set_static_delegate = new efl_access_component_extents_set_delegate(extents_set); } - return _ret_var; - } else { - return efl_access_component_z_order_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_component_z_order_get_delegate efl_access_component_z_order_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetExtents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_extents_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_extents_set_static_delegate) }); + } + + if (efl_access_component_screen_position_get_static_delegate == null) + { + efl_access_component_screen_position_get_static_delegate = new efl_access_component_screen_position_get_delegate(screen_position_get); + } - private delegate Eina.Rect.NativeStruct efl_access_component_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords); + if (methods.FirstOrDefault(m => m.Name == "GetScreenPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_screen_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_screen_position_get_static_delegate) }); + } + if (efl_access_component_screen_position_set_static_delegate == null) + { + efl_access_component_screen_position_set_static_delegate = new efl_access_component_screen_position_set_delegate(screen_position_set); + } - public delegate Eina.Rect.NativeStruct efl_access_component_extents_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords); - public static Efl.Eo.FunctionWrapper efl_access_component_extents_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_extents_get"); - private static Eina.Rect.NativeStruct extents_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords) - { - Eina.Log.Debug("function efl_access_component_extents_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((IComponentConcrete)wrapper).GetExtents( screen_coords); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScreenPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_screen_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_screen_position_set_static_delegate) }); } - return _ret_var; - } else { - return efl_access_component_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords); - } - } - private static efl_access_component_extents_get_delegate efl_access_component_extents_get_static_delegate; + if (efl_access_component_socket_offset_get_static_delegate == null) + { + efl_access_component_socket_offset_get_static_delegate = new efl_access_component_socket_offset_get_delegate(socket_offset_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_extents_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect); + if (methods.FirstOrDefault(m => m.Name == "GetSocketOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_socket_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_socket_offset_get_static_delegate) }); + } + if (efl_access_component_socket_offset_set_static_delegate == null) + { + efl_access_component_socket_offset_set_static_delegate = new efl_access_component_socket_offset_set_delegate(socket_offset_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_extents_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_access_component_extents_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_extents_set"); - private static bool extents_set(System.IntPtr obj, System.IntPtr pd, bool screen_coords, Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_access_component_extents_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - bool _ret_var = default(bool); - try { - _ret_var = ((IComponentConcrete)wrapper).SetExtents( screen_coords, _in_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSocketOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_socket_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_socket_offset_set_static_delegate) }); } - return _ret_var; - } else { - return efl_access_component_extents_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, rect); - } - } - private static efl_access_component_extents_set_delegate efl_access_component_extents_set_static_delegate; + if (efl_access_component_contains_static_delegate == null) + { + efl_access_component_contains_static_delegate = new efl_access_component_contains_delegate(contains); + } - private delegate void efl_access_component_screen_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + if (methods.FirstOrDefault(m => m.Name == "Contains") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_contains"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_contains_static_delegate) }); + } + if (efl_access_component_focus_grab_static_delegate == null) + { + efl_access_component_focus_grab_static_delegate = new efl_access_component_focus_grab_delegate(focus_grab); + } - public delegate void efl_access_component_screen_position_get_api_delegate(System.IntPtr obj, out int x, out int y); - public static Efl.Eo.FunctionWrapper efl_access_component_screen_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_screen_position_get"); - private static void screen_position_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function efl_access_component_screen_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); - try { - ((IComponentConcrete)wrapper).GetScreenPosition( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_component_screen_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_access_component_screen_position_get_delegate efl_access_component_screen_position_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GrabFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_focus_grab"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_focus_grab_static_delegate) }); + } + if (efl_access_component_accessible_at_point_get_static_delegate == null) + { + efl_access_component_accessible_at_point_get_static_delegate = new efl_access_component_accessible_at_point_get_delegate(accessible_at_point_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_screen_position_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + if (methods.FirstOrDefault(m => m.Name == "GetAccessibleAtPoint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_accessible_at_point_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_accessible_at_point_get_static_delegate) }); + } + if (efl_access_component_highlight_grab_static_delegate == null) + { + efl_access_component_highlight_grab_static_delegate = new efl_access_component_highlight_grab_delegate(highlight_grab); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_screen_position_set_api_delegate(System.IntPtr obj, int x, int y); - public static Efl.Eo.FunctionWrapper efl_access_component_screen_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_screen_position_set"); - private static bool screen_position_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function efl_access_component_screen_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IComponentConcrete)wrapper).SetScreenPosition( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GrabHighlight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_highlight_grab"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_highlight_grab_static_delegate) }); } - return _ret_var; - } else { - return efl_access_component_screen_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static efl_access_component_screen_position_set_delegate efl_access_component_screen_position_set_static_delegate; + if (efl_access_component_highlight_clear_static_delegate == null) + { + efl_access_component_highlight_clear_static_delegate = new efl_access_component_highlight_clear_delegate(highlight_clear); + } - private delegate void efl_access_component_socket_offset_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + if (methods.FirstOrDefault(m => m.Name == "ClearHighlight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_highlight_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_highlight_clear_static_delegate) }); + } + if (efl_gfx_entity_position_get_static_delegate == null) + { + efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); + } - public delegate void efl_access_component_socket_offset_get_api_delegate(System.IntPtr obj, out int x, out int y); - public static Efl.Eo.FunctionWrapper efl_access_component_socket_offset_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_socket_offset_get"); - private static void socket_offset_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function efl_access_component_socket_offset_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); - try { - ((IComponentConcrete)wrapper).GetSocketOffset( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_component_socket_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_access_component_socket_offset_get_delegate efl_access_component_socket_offset_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate) }); + } + if (efl_gfx_entity_position_set_static_delegate == null) + { + efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); + } - private delegate void efl_access_component_socket_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate) }); + } + if (efl_gfx_entity_size_get_static_delegate == null) + { + efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); + } - public delegate void efl_access_component_socket_offset_set_api_delegate(System.IntPtr obj, int x, int y); - public static Efl.Eo.FunctionWrapper efl_access_component_socket_offset_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_socket_offset_set"); - private static void socket_offset_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function efl_access_component_socket_offset_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IComponentConcrete)wrapper).SetSocketOffset( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_component_socket_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static efl_access_component_socket_offset_set_delegate efl_access_component_socket_offset_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate) }); + } + if (efl_gfx_entity_size_set_static_delegate == null) + { + efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_contains_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate) }); + } + if (efl_gfx_entity_geometry_get_static_delegate == null) + { + efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_contains_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); - public static Efl.Eo.FunctionWrapper efl_access_component_contains_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_contains"); - private static bool contains(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) - { - Eina.Log.Debug("function efl_access_component_contains was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IComponentConcrete)wrapper).Contains( screen_coords, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_component_contains_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); - } - } - private static efl_access_component_contains_delegate efl_access_component_contains_static_delegate; + if (efl_gfx_entity_geometry_set_static_delegate == null) + { + efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_focus_grab_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate) }); + } + if (efl_gfx_entity_visible_get_static_delegate == null) + { + efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_focus_grab_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_component_focus_grab_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_focus_grab"); - private static bool focus_grab(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_component_focus_grab was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IComponentConcrete)wrapper).GrabFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_component_focus_grab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_component_focus_grab_delegate efl_access_component_focus_grab_static_delegate; + if (efl_gfx_entity_visible_set_static_delegate == null) + { + efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_access_component_accessible_at_point_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate) }); + } + if (efl_gfx_entity_scale_get_static_delegate == null) + { + efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_access_component_accessible_at_point_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); - public static Efl.Eo.FunctionWrapper efl_access_component_accessible_at_point_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_accessible_at_point_get"); - private static Efl.Object accessible_at_point_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) - { - Eina.Log.Debug("function efl_access_component_accessible_at_point_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((IComponentConcrete)wrapper).GetAccessibleAtPoint( screen_coords, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_component_accessible_at_point_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); - } - } - private static efl_access_component_accessible_at_point_get_delegate efl_access_component_accessible_at_point_get_static_delegate; + if (efl_gfx_entity_scale_set_static_delegate == null) + { + efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_highlight_grab_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_static_delegate) }); + } + if (efl_gfx_stack_layer_get_static_delegate == null) + { + efl_gfx_stack_layer_get_static_delegate = new efl_gfx_stack_layer_get_delegate(layer_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_highlight_grab_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_component_highlight_grab_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_highlight_grab"); - private static bool highlight_grab(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_component_highlight_grab was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IComponentConcrete)wrapper).GrabHighlight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetLayer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_layer_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_component_highlight_grab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_component_highlight_grab_delegate efl_access_component_highlight_grab_static_delegate; + if (efl_gfx_stack_layer_set_static_delegate == null) + { + efl_gfx_stack_layer_set_static_delegate = new efl_gfx_stack_layer_set_delegate(layer_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_highlight_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetLayer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_layer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_set_static_delegate) }); + } + if (efl_gfx_stack_below_get_static_delegate == null) + { + efl_gfx_stack_below_get_static_delegate = new efl_gfx_stack_below_get_delegate(below_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_highlight_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_component_highlight_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_highlight_clear"); - private static bool highlight_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_component_highlight_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IComponentConcrete)wrapper).ClearHighlight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBelow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_below_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_get_static_delegate) }); + } + + if (efl_gfx_stack_above_get_static_delegate == null) + { + efl_gfx_stack_above_get_static_delegate = new efl_gfx_stack_above_get_delegate(above_get); } - return _ret_var; - } else { - return efl_access_component_highlight_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_component_highlight_clear_delegate efl_access_component_highlight_clear_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetAbove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_above_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_get_static_delegate) }); + } - private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_stack_below_static_delegate == null) + { + efl_gfx_stack_below_static_delegate = new efl_gfx_stack_below_delegate(stack_below); + } + if (methods.FirstOrDefault(m => m.Name == "StackBelow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_below"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_static_delegate) }); + } - public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_get"); - private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((IComponentConcrete)wrapper).GetPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_stack_raise_to_top_static_delegate == null) + { + efl_gfx_stack_raise_to_top_static_delegate = new efl_gfx_stack_raise_to_top_delegate(raise_to_top); } - return _ret_var; - } else { - return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "RaiseToTop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_raise_to_top"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_raise_to_top_static_delegate) }); + } - private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (efl_gfx_stack_above_static_delegate == null) + { + efl_gfx_stack_above_static_delegate = new efl_gfx_stack_above_delegate(stack_above); + } + if (methods.FirstOrDefault(m => m.Name == "StackAbove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_above"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_static_delegate) }); + } - public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_set"); - private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_gfx_entity_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((IComponentConcrete)wrapper).SetPosition( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + if (efl_gfx_stack_lower_to_bottom_static_delegate == null) + { + efl_gfx_stack_lower_to_bottom_static_delegate = new efl_gfx_stack_lower_to_bottom_delegate(lower_to_bottom); + } + + if (methods.FirstOrDefault(m => m.Name == "LowerToBottom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_lower_to_bottom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_lower_to_bottom_static_delegate) }); + } + + return descs; } - } - private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Access.IComponentConcrete.efl_access_component_mixin_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate int efl_access_component_z_order_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_access_component_z_order_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_component_z_order_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_z_order_get"); + + private static int z_order_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_component_z_order_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IComponentConcrete)wrapper).GetZOrder(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + } + else + { + return efl_access_component_z_order_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_access_component_z_order_get_delegate efl_access_component_z_order_get_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_access_component_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords); + + + public delegate Eina.Rect.NativeStruct efl_access_component_extents_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords); + + public static Efl.Eo.FunctionWrapper efl_access_component_extents_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_extents_get"); + + private static Eina.Rect.NativeStruct extents_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords) + { + Eina.Log.Debug("function efl_access_component_extents_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((IComponentConcrete)wrapper).GetExtents(screen_coords); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_get"); - private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IComponentConcrete)wrapper).GetSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_component_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords); + } } - } - private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; + private static efl_access_component_extents_get_delegate efl_access_component_extents_get_static_delegate; - private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_extents_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_extents_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect); - public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_set"); - private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_entity_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; - - try { - ((IComponentConcrete)wrapper).SetSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; + public static Efl.Eo.FunctionWrapper efl_access_component_extents_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_extents_set"); + private static bool extents_set(System.IntPtr obj, System.IntPtr pd, bool screen_coords, Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_access_component_extents_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + bool _ret_var = default(bool); + try + { + _ret_var = ((IComponentConcrete)wrapper).SetExtents(screen_coords, _in_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_access_component_extents_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, rect); + } + } - public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_get"); - private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((IComponentConcrete)wrapper).GetGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_access_component_extents_set_delegate efl_access_component_extents_set_static_delegate; + + + private delegate void efl_access_component_screen_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + + public delegate void efl_access_component_screen_position_get_api_delegate(System.IntPtr obj, out int x, out int y); + + public static Efl.Eo.FunctionWrapper efl_access_component_screen_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_screen_position_get"); + + private static void screen_position_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + { + Eina.Log.Debug("function efl_access_component_screen_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); + try + { + ((IComponentConcrete)wrapper).GetScreenPosition(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_component_screen_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - return _ret_var; - } else { - return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; + private static efl_access_component_screen_position_get_delegate efl_access_component_screen_position_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_screen_position_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_screen_position_set_api_delegate(System.IntPtr obj, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_access_component_screen_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_screen_position_set"); + + private static bool screen_position_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + { + Eina.Log.Debug("function efl_access_component_screen_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IComponentConcrete)wrapper).SetScreenPosition(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + return _ret_var; + } + else + { + return efl_access_component_screen_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } - public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_set"); - private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - - try { - ((IComponentConcrete)wrapper).SetGeometry( _in_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); + private static efl_access_component_screen_position_set_delegate efl_access_component_screen_position_set_static_delegate; + + + private delegate void efl_access_component_socket_offset_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + + public delegate void efl_access_component_socket_offset_get_api_delegate(System.IntPtr obj, out int x, out int y); + + public static Efl.Eo.FunctionWrapper efl_access_component_socket_offset_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_socket_offset_get"); + + private static void socket_offset_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + { + Eina.Log.Debug("function efl_access_component_socket_offset_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); + try + { + ((IComponentConcrete)wrapper).GetSocketOffset(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_component_socket_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } } - } - private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; + private static efl_access_component_socket_offset_get_delegate efl_access_component_socket_offset_get_static_delegate; + + + private delegate void efl_access_component_socket_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + + public delegate void efl_access_component_socket_offset_set_api_delegate(System.IntPtr obj, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_access_component_socket_offset_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_socket_offset_set"); + + private static void socket_offset_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + { + Eina.Log.Debug("function efl_access_component_socket_offset_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IComponentConcrete)wrapper).SetSocketOffset(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_component_socket_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_access_component_socket_offset_set_delegate efl_access_component_socket_offset_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_contains_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_contains_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_access_component_contains_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_contains"); + + private static bool contains(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) + { + Eina.Log.Debug("function efl_access_component_contains was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IComponentConcrete)wrapper).Contains(screen_coords, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_get"); - private static bool visible_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IComponentConcrete)wrapper).GetVisible(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_component_contains_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); + } } - } - private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; + private static efl_access_component_contains_delegate efl_access_component_contains_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_focus_grab_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_focus_grab_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_component_focus_grab_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_focus_grab"); + + private static bool focus_grab(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_component_focus_grab was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IComponentConcrete)wrapper).GrabFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_component_focus_grab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + private static efl_access_component_focus_grab_delegate efl_access_component_focus_grab_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_access_component_accessible_at_point_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_access_component_accessible_at_point_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_access_component_accessible_at_point_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_accessible_at_point_get"); + + private static Efl.Object accessible_at_point_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) + { + Eina.Log.Debug("function efl_access_component_accessible_at_point_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((IComponentConcrete)wrapper).GetAccessibleAtPoint(screen_coords, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_set"); - private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) - { - Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IComponentConcrete)wrapper).SetVisible( v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); + } + else + { + return efl_access_component_accessible_at_point_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); + } } - } - private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; + private static efl_access_component_accessible_at_point_get_delegate efl_access_component_accessible_at_point_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_highlight_grab_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_highlight_grab_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_component_highlight_grab_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_highlight_grab"); + + private static bool highlight_grab(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_component_highlight_grab was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IComponentConcrete)wrapper).GrabHighlight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_component_highlight_grab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_access_component_highlight_grab_delegate efl_access_component_highlight_grab_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_highlight_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_highlight_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_component_highlight_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_highlight_clear"); + + private static bool highlight_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_component_highlight_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IComponentConcrete)wrapper).ClearHighlight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_get"); - private static double scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IComponentConcrete)wrapper).GetScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_access_component_highlight_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_component_highlight_clear_delegate efl_access_component_highlight_clear_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_get"); + + private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((IComponentConcrete)wrapper).GetPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; + private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; - private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_set"); - private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) - { - Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IComponentConcrete)wrapper).SetScale( scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_set"); + + private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_gfx_entity_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((IComponentConcrete)wrapper).SetPosition(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + } + } + + private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_get"); + + private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IComponentConcrete)wrapper).GetSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; - private delegate short efl_gfx_stack_layer_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public delegate short efl_gfx_stack_layer_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_layer_get"); - private static short layer_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_layer_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - short _ret_var = default(short); - try { - _ret_var = ((IComponentConcrete)wrapper).GetLayer(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_set"); + + private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_entity_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; + + try + { + ((IComponentConcrete)wrapper).SetSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } + } + + private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_get"); + + private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((IComponentConcrete)wrapper).GetGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_stack_layer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_stack_layer_get_delegate efl_gfx_stack_layer_get_static_delegate; + private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; - private delegate void efl_gfx_stack_layer_set_delegate(System.IntPtr obj, System.IntPtr pd, short l); + + private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + + public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); - public delegate void efl_gfx_stack_layer_set_api_delegate(System.IntPtr obj, short l); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_layer_set"); - private static void layer_set(System.IntPtr obj, System.IntPtr pd, short l) - { - Eina.Log.Debug("function efl_gfx_stack_layer_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IComponentConcrete)wrapper).SetLayer( l); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_layer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l); + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_set"); + + private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + + try + { + ((IComponentConcrete)wrapper).SetGeometry(_in_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); + } } - } - private static efl_gfx_stack_layer_set_delegate efl_gfx_stack_layer_set_static_delegate; + private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_get"); + + private static bool visible_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IComponentConcrete)wrapper).GetVisible(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IStack efl_gfx_stack_below_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + + } + else + { + return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; + + + private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + + + public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_set"); + + private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) + { + Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IComponentConcrete)wrapper).SetVisible(v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IStack efl_gfx_stack_below_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_below_get"); - private static Efl.Gfx.IStack below_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_below_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); - try { - _ret_var = ((IComponentConcrete)wrapper).GetBelow(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); } - return _ret_var; - } else { - return efl_gfx_stack_below_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_stack_below_get_delegate efl_gfx_stack_below_get_static_delegate; + private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; + + + private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_get"); + + private static double scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IComponentConcrete)wrapper).GetScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IStack efl_gfx_stack_above_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + + } + else + { + return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; + + + private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + + public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_set"); + + private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IComponentConcrete)wrapper).SetScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IStack efl_gfx_stack_above_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_above_get"); - private static Efl.Gfx.IStack above_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_above_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); - try { - _ret_var = ((IComponentConcrete)wrapper).GetAbove(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); } + } + + private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + + + private delegate short efl_gfx_stack_layer_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate short efl_gfx_stack_layer_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_layer_get"); + + private static short layer_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_layer_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + short _ret_var = default(short); + try + { + _ret_var = ((IComponentConcrete)wrapper).GetLayer(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_stack_above_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_stack_layer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_stack_above_get_delegate efl_gfx_stack_above_get_static_delegate; + private static efl_gfx_stack_layer_get_delegate efl_gfx_stack_layer_get_static_delegate; + + + private delegate void efl_gfx_stack_layer_set_delegate(System.IntPtr obj, System.IntPtr pd, short l); + + + public delegate void efl_gfx_stack_layer_set_api_delegate(System.IntPtr obj, short l); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_layer_set"); + + private static void layer_set(System.IntPtr obj, System.IntPtr pd, short l) + { + Eina.Log.Debug("function efl_gfx_stack_layer_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IComponentConcrete)wrapper).SetLayer(l); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_stack_layer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l); + } + } - private delegate void efl_gfx_stack_below_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack below); + private static efl_gfx_stack_layer_set_delegate efl_gfx_stack_layer_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IStack efl_gfx_stack_below_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IStack efl_gfx_stack_below_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_below_get"); + + private static Efl.Gfx.IStack below_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_below_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); + try + { + _ret_var = ((IComponentConcrete)wrapper).GetBelow(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_stack_below_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack below); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_below"); - private static void stack_below(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack below) - { - Eina.Log.Debug("function efl_gfx_stack_below was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IComponentConcrete)wrapper).StackBelow( below); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_below_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), below); + } + else + { + return efl_gfx_stack_below_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_stack_below_delegate efl_gfx_stack_below_static_delegate; + private static efl_gfx_stack_below_get_delegate efl_gfx_stack_below_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IStack efl_gfx_stack_above_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IStack efl_gfx_stack_above_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_above_get"); + + private static Efl.Gfx.IStack above_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_above_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); + try + { + _ret_var = ((IComponentConcrete)wrapper).GetAbove(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_stack_raise_to_top_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + + } + else + { + return efl_gfx_stack_above_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_gfx_stack_above_get_delegate efl_gfx_stack_above_get_static_delegate; + + + private delegate void efl_gfx_stack_below_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack below); + + + public delegate void efl_gfx_stack_below_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack below); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_below"); + + private static void stack_below(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack below) + { + Eina.Log.Debug("function efl_gfx_stack_below was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IComponentConcrete)wrapper).StackBelow(below); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_stack_raise_to_top_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_raise_to_top_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_raise_to_top"); - private static void raise_to_top(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_raise_to_top was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IComponentConcrete)wrapper).RaiseToTop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_raise_to_top_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_gfx_stack_below_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), below); + } } - } - private static efl_gfx_stack_raise_to_top_delegate efl_gfx_stack_raise_to_top_static_delegate; + private static efl_gfx_stack_below_delegate efl_gfx_stack_below_static_delegate; + + + private delegate void efl_gfx_stack_raise_to_top_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_stack_raise_to_top_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_raise_to_top_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_raise_to_top"); + + private static void raise_to_top(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_raise_to_top was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IComponentConcrete)wrapper).RaiseToTop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_stack_raise_to_top_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_stack_above_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack above); + private static efl_gfx_stack_raise_to_top_delegate efl_gfx_stack_raise_to_top_static_delegate; + + + private delegate void efl_gfx_stack_above_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack above); + + + public delegate void efl_gfx_stack_above_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack above); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_above"); + + private static void stack_above(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack above) + { + Eina.Log.Debug("function efl_gfx_stack_above was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IComponentConcrete)wrapper).StackAbove(above); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_stack_above_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), above); + } + } - public delegate void efl_gfx_stack_above_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack above); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_above"); - private static void stack_above(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack above) - { - Eina.Log.Debug("function efl_gfx_stack_above was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IComponentConcrete)wrapper).StackAbove( above); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_above_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), above); + private static efl_gfx_stack_above_delegate efl_gfx_stack_above_static_delegate; + + + private delegate void efl_gfx_stack_lower_to_bottom_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_stack_lower_to_bottom_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_lower_to_bottom_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_lower_to_bottom"); + + private static void lower_to_bottom(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_lower_to_bottom was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IComponentConcrete)wrapper).LowerToBottom(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_stack_above_delegate efl_gfx_stack_above_static_delegate; + private static efl_gfx_stack_lower_to_bottom_delegate efl_gfx_stack_lower_to_bottom_static_delegate; - private delegate void efl_gfx_stack_lower_to_bottom_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_gfx_stack_lower_to_bottom_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_lower_to_bottom_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_lower_to_bottom"); - private static void lower_to_bottom(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_lower_to_bottom was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IComponentConcrete)wrapper).LowerToBottom(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_stack_lower_to_bottom_delegate efl_gfx_stack_lower_to_bottom_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_editable_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_editable_text.eo.cs index 20aca9f..cda34b2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_editable_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_editable_text.eo.cs @@ -3,41 +3,47 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Access { namespace Editable { +namespace Efl { + +namespace Access { + +namespace Editable { + /// Elementary editable text interface -[ITextNativeInherit] +[Efl.Access.Editable.ITextConcrete.NativeMethods] public interface IText : Efl.Eo.IWrapper, IDisposable { /// Editable content property /// Content /// true if setting the value succeeded, false otherwise -bool SetTextContent( System.String kw_string); +bool SetTextContent(System.String kw_string); /// Insert text at given position /// String to be inserted /// Position to insert string /// true if insert succeeded, false otherwise -bool Insert( System.String kw_string, int position); +bool Insert(System.String kw_string, int position); /// Copy text between start and end parameter /// Start position to copy /// End position to copy /// true if copy succeeded, false otherwise -bool Copy( int start, int end); +bool Copy(int start, int end); /// Cut text between start and end parameter /// Start position to cut /// End position to cut /// true if cut succeeded, false otherwise -bool Cut( int start, int end); +bool Cut(int start, int end); /// Delete text between start and end parameter /// Start position to delete /// End position to delete /// true if delete succeeded, false otherwise -bool Delete( int start, int end); +bool Delete(int start, int end); /// Paste text at given position /// Position to insert text /// true if paste succeeded, false otherwise -bool Paste( int position); +bool Paste(int position); /// Editable content property /// Content System.String TextContent { @@ -51,73 +57,108 @@ IText { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextConcrete)) - return Efl.Access.Editable.ITextNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_access_editable_text_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Editable content property /// Content /// true if setting the value succeeded, false otherwise - public bool SetTextContent( System.String kw_string) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_content_set_ptr.Value.Delegate(this.NativeHandle, kw_string); + public bool SetTextContent(System.String kw_string) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_content_set_ptr.Value.Delegate(this.NativeHandle,kw_string); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -125,8 +166,8 @@ IText /// String to be inserted /// Position to insert string /// true if insert succeeded, false otherwise - public bool Insert( System.String kw_string, int position) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_insert_ptr.Value.Delegate(this.NativeHandle, kw_string, position); + public bool Insert(System.String kw_string, int position) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_insert_ptr.Value.Delegate(this.NativeHandle,kw_string, position); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -134,8 +175,8 @@ IText /// Start position to copy /// End position to copy /// true if copy succeeded, false otherwise - public bool Copy( int start, int end) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_copy_ptr.Value.Delegate(this.NativeHandle, start, end); + public bool Copy(int start, int end) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_copy_ptr.Value.Delegate(this.NativeHandle,start, end); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -143,8 +184,8 @@ IText /// Start position to cut /// End position to cut /// true if cut succeeded, false otherwise - public bool Cut( int start, int end) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_cut_ptr.Value.Delegate(this.NativeHandle, start, end); + public bool Cut(int start, int end) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_cut_ptr.Value.Delegate(this.NativeHandle,start, end); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -152,218 +193,334 @@ IText /// Start position to delete /// End position to delete /// true if delete succeeded, false otherwise - public bool Delete( int start, int end) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_delete_ptr.Value.Delegate(this.NativeHandle, start, end); + public bool Delete(int start, int end) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_delete_ptr.Value.Delegate(this.NativeHandle,start, end); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Paste text at given position /// Position to insert text /// true if paste succeeded, false otherwise - public bool Paste( int position) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_paste_ptr.Value.Delegate(this.NativeHandle, position); + public bool Paste(int position) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_paste_ptr.Value.Delegate(this.NativeHandle,position); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Editable content property /// Content public System.String TextContent { - set { SetTextContent( value); } + set { SetTextContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Access.Editable.ITextConcrete.efl_access_editable_text_interface_get(); } -} -public class ITextNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_access_editable_text_content_set_static_delegate == null) - efl_access_editable_text_content_set_static_delegate = new efl_access_editable_text_content_set_delegate(text_content_set); - if (methods.FirstOrDefault(m => m.Name == "SetTextContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_content_set_static_delegate)}); - if (efl_access_editable_text_insert_static_delegate == null) - efl_access_editable_text_insert_static_delegate = new efl_access_editable_text_insert_delegate(insert); - if (methods.FirstOrDefault(m => m.Name == "Insert") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_insert_static_delegate)}); - if (efl_access_editable_text_copy_static_delegate == null) - efl_access_editable_text_copy_static_delegate = new efl_access_editable_text_copy_delegate(copy); - if (methods.FirstOrDefault(m => m.Name == "Copy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_copy_static_delegate)}); - if (efl_access_editable_text_cut_static_delegate == null) - efl_access_editable_text_cut_static_delegate = new efl_access_editable_text_cut_delegate(cut); - if (methods.FirstOrDefault(m => m.Name == "Cut") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_cut"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_cut_static_delegate)}); - if (efl_access_editable_text_delete_static_delegate == null) - efl_access_editable_text_delete_static_delegate = new efl_access_editable_text_delete_delegate(kw_delete); - if (methods.FirstOrDefault(m => m.Name == "Delete") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_delete"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_delete_static_delegate)}); - if (efl_access_editable_text_paste_static_delegate == null) - efl_access_editable_text_paste_static_delegate = new efl_access_editable_text_paste_delegate(paste); - if (methods.FirstOrDefault(m => m.Name == "Paste") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_paste"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_paste_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Access.Editable.ITextConcrete.efl_access_editable_text_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Access.Editable.ITextConcrete.efl_access_editable_text_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_access_editable_text_content_set_static_delegate == null) + { + efl_access_editable_text_content_set_static_delegate = new efl_access_editable_text_content_set_delegate(text_content_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string); + if (methods.FirstOrDefault(m => m.Name == "SetTextContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_content_set_static_delegate) }); + } + if (efl_access_editable_text_insert_static_delegate == null) + { + efl_access_editable_text_insert_static_delegate = new efl_access_editable_text_insert_delegate(insert); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_content_set"); - private static bool text_content_set(System.IntPtr obj, System.IntPtr pd, System.String kw_string) - { - Eina.Log.Debug("function efl_access_editable_text_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).SetTextContent( kw_string); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Insert") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_insert_static_delegate) }); } - return _ret_var; - } else { - return efl_access_editable_text_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_string); - } - } - private static efl_access_editable_text_content_set_delegate efl_access_editable_text_content_set_static_delegate; + if (efl_access_editable_text_copy_static_delegate == null) + { + efl_access_editable_text_copy_static_delegate = new efl_access_editable_text_copy_delegate(copy); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_insert_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string, int position); + if (methods.FirstOrDefault(m => m.Name == "Copy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_copy_static_delegate) }); + } + if (efl_access_editable_text_cut_static_delegate == null) + { + efl_access_editable_text_cut_static_delegate = new efl_access_editable_text_cut_delegate(cut); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_insert_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string, int position); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_insert_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_insert"); - private static bool insert(System.IntPtr obj, System.IntPtr pd, System.String kw_string, int position) - { - Eina.Log.Debug("function efl_access_editable_text_insert was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).Insert( kw_string, position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Cut") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_cut"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_cut_static_delegate) }); } - return _ret_var; - } else { - return efl_access_editable_text_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_string, position); - } - } - private static efl_access_editable_text_insert_delegate efl_access_editable_text_insert_static_delegate; + if (efl_access_editable_text_delete_static_delegate == null) + { + efl_access_editable_text_delete_static_delegate = new efl_access_editable_text_delete_delegate(kw_delete); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_copy_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + if (methods.FirstOrDefault(m => m.Name == "Delete") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_delete"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_delete_static_delegate) }); + } + if (efl_access_editable_text_paste_static_delegate == null) + { + efl_access_editable_text_paste_static_delegate = new efl_access_editable_text_paste_delegate(paste); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_copy_api_delegate(System.IntPtr obj, int start, int end); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_copy_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_copy"); - private static bool copy(System.IntPtr obj, System.IntPtr pd, int start, int end) - { - Eina.Log.Debug("function efl_access_editable_text_copy was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).Copy( start, end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Paste") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_paste"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_paste_static_delegate) }); } - return _ret_var; - } else { - return efl_access_editable_text_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Access.Editable.ITextConcrete.efl_access_editable_text_interface_get(); } - } - private static efl_access_editable_text_copy_delegate efl_access_editable_text_copy_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_cut_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_cut_api_delegate(System.IntPtr obj, int start, int end); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_cut_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_cut"); - private static bool cut(System.IntPtr obj, System.IntPtr pd, int start, int end) - { - Eina.Log.Debug("function efl_access_editable_text_cut was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).Cut( start, end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_editable_text_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_content_set"); + + private static bool text_content_set(System.IntPtr obj, System.IntPtr pd, System.String kw_string) + { + Eina.Log.Debug("function efl_access_editable_text_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IText)wrapper).SetTextContent(kw_string); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_editable_text_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_string); } + } + + private static efl_access_editable_text_content_set_delegate efl_access_editable_text_content_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_insert_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string, int position); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_insert_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string, int position); + + public static Efl.Eo.FunctionWrapper efl_access_editable_text_insert_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_insert"); + + private static bool insert(System.IntPtr obj, System.IntPtr pd, System.String kw_string, int position) + { + Eina.Log.Debug("function efl_access_editable_text_insert was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IText)wrapper).Insert(kw_string, position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_editable_text_cut_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); + + } + else + { + return efl_access_editable_text_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_string, position); + } } - } - private static efl_access_editable_text_cut_delegate efl_access_editable_text_cut_static_delegate; + private static efl_access_editable_text_insert_delegate efl_access_editable_text_insert_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_delete_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_copy_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_copy_api_delegate(System.IntPtr obj, int start, int end); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_delete_api_delegate(System.IntPtr obj, int start, int end); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_delete_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_delete"); - private static bool kw_delete(System.IntPtr obj, System.IntPtr pd, int start, int end) - { - Eina.Log.Debug("function efl_access_editable_text_delete was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).Delete( start, end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_editable_text_copy_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_copy"); + + private static bool copy(System.IntPtr obj, System.IntPtr pd, int start, int end) + { + Eina.Log.Debug("function efl_access_editable_text_copy was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IText)wrapper).Copy(start, end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_editable_text_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); } + } + + private static efl_access_editable_text_copy_delegate efl_access_editable_text_copy_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_cut_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_cut_api_delegate(System.IntPtr obj, int start, int end); + + public static Efl.Eo.FunctionWrapper efl_access_editable_text_cut_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_cut"); + + private static bool cut(System.IntPtr obj, System.IntPtr pd, int start, int end) + { + Eina.Log.Debug("function efl_access_editable_text_cut was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IText)wrapper).Cut(start, end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_editable_text_delete_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); + + } + else + { + return efl_access_editable_text_cut_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); + } } - } - private static efl_access_editable_text_delete_delegate efl_access_editable_text_delete_static_delegate; + private static efl_access_editable_text_cut_delegate efl_access_editable_text_cut_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_paste_delegate(System.IntPtr obj, System.IntPtr pd, int position); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_delete_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_delete_api_delegate(System.IntPtr obj, int start, int end); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_paste_api_delegate(System.IntPtr obj, int position); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_paste_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_paste"); - private static bool paste(System.IntPtr obj, System.IntPtr pd, int position) - { - Eina.Log.Debug("function efl_access_editable_text_paste was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).Paste( position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_editable_text_delete_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_delete"); + + private static bool kw_delete(System.IntPtr obj, System.IntPtr pd, int start, int end) + { + Eina.Log.Debug("function efl_access_editable_text_delete was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IText)wrapper).Delete(start, end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_editable_text_delete_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); } + } + + private static efl_access_editable_text_delete_delegate efl_access_editable_text_delete_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_paste_delegate(System.IntPtr obj, System.IntPtr pd, int position); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_paste_api_delegate(System.IntPtr obj, int position); + + public static Efl.Eo.FunctionWrapper efl_access_editable_text_paste_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_paste"); + + private static bool paste(System.IntPtr obj, System.IntPtr pd, int position) + { + Eina.Log.Debug("function efl_access_editable_text_paste was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IText)wrapper).Paste(position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_editable_text_paste_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); + + } + else + { + return efl_access_editable_text_paste_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); + } } - } - private static efl_access_editable_text_paste_delegate efl_access_editable_text_paste_static_delegate; + + private static efl_access_editable_text_paste_delegate efl_access_editable_text_paste_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } } +} +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_object.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_object.eo.cs index 8a37459..e72f443 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_object.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_object.eo.cs @@ -3,36 +3,60 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Access { -public struct StateSet { +namespace Efl { + +namespace Access { + +public struct StateSet +{ private ulong payload; public static implicit operator StateSet(ulong x) { return new StateSet{payload=x}; } + public static implicit operator ulong(StateSet x) { return x.payload; } + +} + +} + } -} } -namespace Efl { namespace Access { -public struct RelationSet { + +namespace Efl { + +namespace Access { + +public struct RelationSet +{ private Eina.List payload; public static implicit operator RelationSet(Eina.List x) { return new RelationSet{payload=x}; } + public static implicit operator Eina.List(RelationSet x) { return x.payload; } + +} + +} + } -} } -namespace Efl { namespace Access { + +namespace Efl { + +namespace Access { + /// Accessibility accessible mixin -[IObjectNativeInherit] +[Efl.Access.IObjectConcrete.NativeMethods] public interface IObject : Efl.Eo.IWrapper, IDisposable { @@ -44,14 +68,11 @@ System.String GetLocalizedRoleName(); System.String GetI18nName(); /// Accessible name of the object. /// Accessible name -/// -void SetI18nName( System.String i18n_name); +void SetI18nName(System.String i18n_name); /// Sets name information callback about widget. /// @if WEARABLE @since_tizen 3.0 @endif /// reading information callback -/// -/// -void SetNameCb( Efl.Access.ReadingInfoCb name_cb, System.IntPtr data); +void SetNameCb(Efl.Access.ReadingInfoCb name_cb, System.IntPtr data); /// Gets an all relations between accessible object and other accessible objects. /// Accessible relation set Efl.Access.RelationSet GetRelationSet(); @@ -60,29 +81,23 @@ Efl.Access.RelationSet GetRelationSet(); Efl.Access.Role GetRole(); /// Sets the role of the object in accessibility domain. /// Accessible role -/// -void SetRole( Efl.Access.Role role); +void SetRole(Efl.Access.Role role); /// Gets object's accessible parent. /// Accessible parent Efl.Access.IObject GetAccessParent(); /// Gets object's accessible parent. /// Accessible parent -/// -void SetAccessParent( Efl.Access.IObject parent); +void SetAccessParent(Efl.Access.IObject parent); /// Sets contextual information callback about widget. /// @if WEARABLE @since_tizen 3.0 @endif /// The function called to provide the accessible description. /// The data passed to @c description_cb. -/// -void SetDescriptionCb( Efl.Access.ReadingInfoCb description_cb, System.IntPtr data); +void SetDescriptionCb(Efl.Access.ReadingInfoCb description_cb, System.IntPtr data); /// Sets gesture callback to give widget. /// Warning: Please do not abuse this API. The purpose of this API is to support special application such as screen-reader guidance. Before using this API, please check if there is another way. /// /// @if WEARABLE @since_tizen 3.0 @endif -/// -/// -/// -void SetGestureCb( Efl.Access.GestureCb gesture_cb, System.IntPtr data); +void SetGestureCb(Efl.Access.GestureCb gesture_cb, System.IntPtr data); /// Gets object's accessible children. /// List of widget's children Eina.List GetAccessChildren(); @@ -99,8 +114,7 @@ Efl.Access.ReadingInfoTypeMask GetReadingInfoType(); /// Sets reading information of an accessible object. If set as 0, existing reading info will be deleted and by default all four reading information types like name, role, state and description will be read on object highlight /// @if WEARABLE @since_tizen 3.0 @endif /// Reading information types -/// -void SetReadingInfoType( Efl.Access.ReadingInfoTypeMask reading_info); +void SetReadingInfoType(Efl.Access.ReadingInfoTypeMask reading_info); /// Gets index of the child in parent's children list. /// Index in children list int GetIndexInParent(); @@ -109,8 +123,7 @@ int GetIndexInParent(); System.String GetDescription(); /// Sets widget contextual information. /// Accessible contextual information -/// -void SetDescription( System.String description); +void SetDescription(System.String description); /// Gets set describing object accessible states. /// Accessible state set Efl.Access.StateSet GetStateSet(); @@ -121,8 +134,7 @@ bool GetCanHighlight(); /// Sets highlightable to given widget. /// @if WEARABLE @since_tizen 3.0 @endif /// If @c true, the object is highlightable. -/// -void SetCanHighlight( bool can_highlight); +void SetCanHighlight(bool can_highlight); /// The translation domain of "name" and "description" properties. /// Translation domain should be set if the application wants to support i18n for accessibility "name" and "description" properties. /// @@ -138,24 +150,18 @@ System.String GetTranslationDomain(); /// /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. /// Translation domain -/// -void SetTranslationDomain( System.String domain); +void SetTranslationDomain(System.String domain); /// Handles gesture on given widget. -/// -/// -bool GestureDo( Efl.Access.GestureInfo gesture_info); +bool GestureDo(Efl.Access.GestureInfo gesture_info); /// Add key-value pair identifying object extra attribute /// @if WEARABLE @since_tizen 3.0 @endif /// The string key to give extra information /// The string value to give extra information -/// -void AppendAttribute( System.String key, System.String value); +void AppendAttribute(System.String key, System.String value); /// delete key-value pair identifying object extra attributes when key is given /// The string key to identify the key-value pair -/// -void DelAttribute( System.String key); +void DelAttribute(System.String key); /// Removes all attributes in accessible object. -/// void ClearAttributes(); /// Defines the relationship between two accessible objects. /// Adds a unique relationship between source object and relation_object of a given type. @@ -166,24 +172,19 @@ void ClearAttributes(); /// Relation type /// Object to relate to /// true if relationship was successfully appended, false otherwise -bool AppendRelationship( Efl.Access.RelationType type, Efl.Access.IObject relation_object); +bool AppendRelationship(Efl.Access.RelationType type, Efl.Access.IObject relation_object); /// Removes the relationship between two accessible objects. /// If relation_object is NULL function removes all relations of the given type. /// Relation type /// Object to remove relation from -/// -void RelationshipRemove( Efl.Access.RelationType type, Efl.Access.IObject relation_object); +void RelationshipRemove(Efl.Access.RelationType type, Efl.Access.IObject relation_object); /// Removes all relationships in accessible object. -/// void ClearRelationships(); /// Notifies accessibility clients about current state of the accessible object. /// Function limits information broadcast to clients to types specified by state_types_mask parameter. /// /// if recursive parameter is set, function will traverse all accessible children and call state_notify function on them. -/// -/// -/// -void StateNotify( Efl.Access.StateSet state_types_mask, bool recursive); +void StateNotify(Efl.Access.StateSet state_types_mask, bool recursive); /// Called when property has changed event EventHandler PropertyChangedEvt; /// Called when children have changed @@ -200,7 +201,6 @@ void StateNotify( Efl.Access.StateSet state_types_mask, bool recursive); event EventHandler AddedEvt; /// Called when item is removed event EventHandler RemovedEvt; - /// event EventHandler MoveOutedEvt; /// Gets an localized string describing accessible object role name. /// Localized accessible object role name @@ -319,636 +319,783 @@ IObject { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IObjectConcrete)) - return Efl.Access.IObjectNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IObjectConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_access_object_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IObjectConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IObjectConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object PropertyChangedEvtKey = new object(); + /// Called when property has changed public event EventHandler PropertyChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.IObjectPropertyChangedEvt_Args args = new Efl.Access.IObjectPropertyChangedEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PropertyChangedEvt_delegate)) { - eventHandlers.AddHandler(PropertyChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PropertyChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PropertyChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event PropertyChangedEvt. - public void On_PropertyChangedEvt(Efl.Access.IObjectPropertyChangedEvt_Args e) + public void OnPropertyChangedEvt(Efl.Access.IObjectPropertyChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertyChangedEvtKey]; + var key = "_EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertyChangedEvt_delegate; - private void on_PropertyChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.IObjectPropertyChangedEvt_Args args = new Efl.Access.IObjectPropertyChangedEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_PropertyChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); } } - -private static object ChildrenChangedEvtKey = new object(); /// Called when children have changed public event EventHandler ChildrenChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.IObjectChildrenChangedEvt_Args args = new Efl.Access.IObjectChildrenChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChildrenChangedEvt_delegate)) { - eventHandlers.AddHandler(ChildrenChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChildrenChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildrenChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChildrenChangedEvt. - public void On_ChildrenChangedEvt(Efl.Access.IObjectChildrenChangedEvt_Args e) + public void OnChildrenChangedEvt(Efl.Access.IObjectChildrenChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildrenChangedEvtKey]; + var key = "_EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildrenChangedEvt_delegate; - private void on_ChildrenChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.IObjectChildrenChangedEvt_Args args = new Efl.Access.IObjectChildrenChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_ChildrenChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object StateChangedEvtKey = new object(); /// Called when state has changed public event EventHandler StateChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.IObjectStateChangedEvt_Args args = new Efl.Access.IObjectStateChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_STATE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_StateChangedEvt_delegate)) { - eventHandlers.AddHandler(StateChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_STATE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_StateChangedEvt_delegate)) { - eventHandlers.RemoveHandler(StateChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event StateChangedEvt. - public void On_StateChangedEvt(Efl.Access.IObjectStateChangedEvt_Args e) + public void OnStateChangedEvt(Efl.Access.IObjectStateChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[StateChangedEvtKey]; + var key = "_EFL_ACCESS_OBJECT_EVENT_STATE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_StateChangedEvt_delegate; - private void on_StateChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.IObjectStateChangedEvt_Args args = new Efl.Access.IObjectStateChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_StateChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BoundsChangedEvtKey = new object(); /// Called when boundaries have changed public event EventHandler BoundsChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.IObjectBoundsChangedEvt_Args args = new Efl.Access.IObjectBoundsChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_BOUNDS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_BoundsChangedEvt_delegate)) { - eventHandlers.AddHandler(BoundsChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_BOUNDS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BoundsChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BoundsChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event BoundsChangedEvt. - public void On_BoundsChangedEvt(Efl.Access.IObjectBoundsChangedEvt_Args e) + public void OnBoundsChangedEvt(Efl.Access.IObjectBoundsChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BoundsChangedEvtKey]; + var key = "_EFL_ACCESS_OBJECT_EVENT_BOUNDS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BoundsChangedEvt_delegate; - private void on_BoundsChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.IObjectBoundsChangedEvt_Args args = new Efl.Access.IObjectBoundsChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_BoundsChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object VisibleDataChangedEvtKey = new object(); /// Called when visibility has changed public event EventHandler VisibleDataChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_VISIBLE_DATA_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_VisibleDataChangedEvt_delegate)) { - eventHandlers.AddHandler(VisibleDataChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_VISIBLE_DATA_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_VisibleDataChangedEvt_delegate)) { - eventHandlers.RemoveHandler(VisibleDataChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event VisibleDataChangedEvt. - public void On_VisibleDataChangedEvt(EventArgs e) + public void OnVisibleDataChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[VisibleDataChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_VisibleDataChangedEvt_delegate; - private void on_VisibleDataChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_VisibleDataChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_OBJECT_EVENT_VISIBLE_DATA_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ActiveDescendantChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when active state of descendant has changed public event EventHandler ActiveDescendantChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.IObjectActiveDescendantChangedEvt_Args args = new Efl.Access.IObjectActiveDescendantChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_ACTIVE_DESCENDANT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ActiveDescendantChangedEvt_delegate)) { - eventHandlers.AddHandler(ActiveDescendantChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_ACTIVE_DESCENDANT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ActiveDescendantChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ActiveDescendantChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ActiveDescendantChangedEvt. - public void On_ActiveDescendantChangedEvt(Efl.Access.IObjectActiveDescendantChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ActiveDescendantChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ActiveDescendantChangedEvt_delegate; - private void on_ActiveDescendantChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnActiveDescendantChangedEvt(Efl.Access.IObjectActiveDescendantChangedEvt_Args e) { - Efl.Access.IObjectActiveDescendantChangedEvt_Args args = new Efl.Access.IObjectActiveDescendantChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ActiveDescendantChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_OBJECT_EVENT_ACTIVE_DESCENDANT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object AddedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when item is added public event EventHandler AddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AddedEvt_delegate)) { - eventHandlers.AddHandler(AddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_AddedEvt_delegate)) { - eventHandlers.RemoveHandler(AddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AddedEvt. - public void On_AddedEvt(EventArgs e) + public void OnAddedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AddedEvt_delegate; - private void on_AddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_AddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_OBJECT_EVENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RemovedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when item is removed public event EventHandler RemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RemovedEvt_delegate)) { - eventHandlers.AddHandler(RemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_RemovedEvt_delegate)) { - eventHandlers.RemoveHandler(RemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RemovedEvt. - public void On_RemovedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RemovedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RemovedEvt_delegate; - private void on_RemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRemovedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_RemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_OBJECT_EVENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object MoveOutedEvtKey = new object(); - /// + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } public event EventHandler MoveOutedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_MOVE_OUTED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_MoveOutedEvt_delegate)) { - eventHandlers.AddHandler(MoveOutedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_MOVE_OUTED"; - if (RemoveNativeEventHandler(key, this.evt_MoveOutedEvt_delegate)) { - eventHandlers.RemoveHandler(MoveOutedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event MoveOutedEvt. - public void On_MoveOutedEvt(EventArgs e) + public void OnMoveOutedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[MoveOutedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_MoveOutedEvt_delegate; - private void on_MoveOutedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_MoveOutedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_OBJECT_EVENT_MOVE_OUTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_PropertyChangedEvt_delegate = new Efl.EventCb(on_PropertyChangedEvt_NativeCallback); - evt_ChildrenChangedEvt_delegate = new Efl.EventCb(on_ChildrenChangedEvt_NativeCallback); - evt_StateChangedEvt_delegate = new Efl.EventCb(on_StateChangedEvt_NativeCallback); - evt_BoundsChangedEvt_delegate = new Efl.EventCb(on_BoundsChangedEvt_NativeCallback); - evt_VisibleDataChangedEvt_delegate = new Efl.EventCb(on_VisibleDataChangedEvt_NativeCallback); - evt_ActiveDescendantChangedEvt_delegate = new Efl.EventCb(on_ActiveDescendantChangedEvt_NativeCallback); - evt_AddedEvt_delegate = new Efl.EventCb(on_AddedEvt_NativeCallback); - evt_RemovedEvt_delegate = new Efl.EventCb(on_RemovedEvt_NativeCallback); - evt_MoveOutedEvt_delegate = new Efl.EventCb(on_MoveOutedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Gets an localized string describing accessible object role name. /// Localized accessible object role name public System.String GetLocalizedRoleName() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_localized_role_name_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_localized_role_name_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Accessible name of the object. /// Accessible name public System.String GetI18nName() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_i18n_name_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_i18n_name_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Accessible name of the object. /// Accessible name - /// - public void SetI18nName( System.String i18n_name) { - Efl.Access.IObjectNativeInherit.efl_access_object_i18n_name_set_ptr.Value.Delegate(this.NativeHandle, i18n_name); + public void SetI18nName(System.String i18n_name) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_i18n_name_set_ptr.Value.Delegate(this.NativeHandle,i18n_name); Eina.Error.RaiseIfUnhandledException(); } /// Sets name information callback about widget. /// @if WEARABLE @since_tizen 3.0 @endif /// reading information callback - /// - /// - public void SetNameCb( Efl.Access.ReadingInfoCb name_cb, System.IntPtr data) { - Efl.Access.IObjectNativeInherit.efl_access_object_name_cb_set_ptr.Value.Delegate(this.NativeHandle, name_cb, data); + public void SetNameCb(Efl.Access.ReadingInfoCb name_cb, System.IntPtr data) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_name_cb_set_ptr.Value.Delegate(this.NativeHandle,name_cb, data); Eina.Error.RaiseIfUnhandledException(); } /// Gets an all relations between accessible object and other accessible objects. /// Accessible relation set public Efl.Access.RelationSet GetRelationSet() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_relation_set_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relation_set_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The role of the object in accessibility domain. /// Accessible role public Efl.Access.Role GetRole() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_role_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the role of the object in accessibility domain. /// Accessible role - /// - public void SetRole( Efl.Access.Role role) { - Efl.Access.IObjectNativeInherit.efl_access_object_role_set_ptr.Value.Delegate(this.NativeHandle, role); + public void SetRole(Efl.Access.Role role) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_set_ptr.Value.Delegate(this.NativeHandle,role); Eina.Error.RaiseIfUnhandledException(); } /// Gets object's accessible parent. /// Accessible parent public Efl.Access.IObject GetAccessParent() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_access_parent_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_parent_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets object's accessible parent. /// Accessible parent - /// - public void SetAccessParent( Efl.Access.IObject parent) { - Efl.Access.IObjectNativeInherit.efl_access_object_access_parent_set_ptr.Value.Delegate(this.NativeHandle, parent); + public void SetAccessParent(Efl.Access.IObject parent) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_parent_set_ptr.Value.Delegate(this.NativeHandle,parent); Eina.Error.RaiseIfUnhandledException(); } /// Sets contextual information callback about widget. /// @if WEARABLE @since_tizen 3.0 @endif /// The function called to provide the accessible description. /// The data passed to @c description_cb. - /// - public void SetDescriptionCb( Efl.Access.ReadingInfoCb description_cb, System.IntPtr data) { - Efl.Access.IObjectNativeInherit.efl_access_object_description_cb_set_ptr.Value.Delegate(this.NativeHandle, description_cb, data); + public void SetDescriptionCb(Efl.Access.ReadingInfoCb description_cb, System.IntPtr data) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_cb_set_ptr.Value.Delegate(this.NativeHandle,description_cb, data); Eina.Error.RaiseIfUnhandledException(); } /// Sets gesture callback to give widget. /// Warning: Please do not abuse this API. The purpose of this API is to support special application such as screen-reader guidance. Before using this API, please check if there is another way. /// /// @if WEARABLE @since_tizen 3.0 @endif - /// - /// - /// - public void SetGestureCb( Efl.Access.GestureCb gesture_cb, System.IntPtr data) { - Efl.Access.IObjectNativeInherit.efl_access_object_gesture_cb_set_ptr.Value.Delegate(this.NativeHandle, gesture_cb, data); + public void SetGestureCb(Efl.Access.GestureCb gesture_cb, System.IntPtr data) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_gesture_cb_set_ptr.Value.Delegate(this.NativeHandle,gesture_cb, data); Eina.Error.RaiseIfUnhandledException(); } /// Gets object's accessible children. /// List of widget's children public Eina.List GetAccessChildren() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_access_children_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_children_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, false); } /// Gets human-readable string indentifying object accessibility role. /// Accessible role name public System.String GetRoleName() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_role_name_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_name_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. /// List of object attributes, Must be freed by the user public Eina.List GetAttributes() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_attributes_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attributes_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, true); } @@ -956,43 +1103,41 @@ private static object MoveOutedEvtKey = new object(); /// @if WEARABLE @since_tizen 3.0 @endif /// Reading information types public Efl.Access.ReadingInfoTypeMask GetReadingInfoType() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_reading_info_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_reading_info_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets reading information of an accessible object. If set as 0, existing reading info will be deleted and by default all four reading information types like name, role, state and description will be read on object highlight /// @if WEARABLE @since_tizen 3.0 @endif /// Reading information types - /// - public void SetReadingInfoType( Efl.Access.ReadingInfoTypeMask reading_info) { - Efl.Access.IObjectNativeInherit.efl_access_object_reading_info_type_set_ptr.Value.Delegate(this.NativeHandle, reading_info); + public void SetReadingInfoType(Efl.Access.ReadingInfoTypeMask reading_info) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_reading_info_type_set_ptr.Value.Delegate(this.NativeHandle,reading_info); Eina.Error.RaiseIfUnhandledException(); } /// Gets index of the child in parent's children list. /// Index in children list public int GetIndexInParent() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_index_in_parent_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_index_in_parent_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets contextual information about object. /// Accessible contextual information public System.String GetDescription() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_description_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets widget contextual information. /// Accessible contextual information - /// - public void SetDescription( System.String description) { - Efl.Access.IObjectNativeInherit.efl_access_object_description_set_ptr.Value.Delegate(this.NativeHandle, description); + public void SetDescription(System.String description) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_set_ptr.Value.Delegate(this.NativeHandle,description); Eina.Error.RaiseIfUnhandledException(); } /// Gets set describing object accessible states. /// Accessible state set public Efl.Access.StateSet GetStateSet() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_state_set_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_state_set_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1000,16 +1145,15 @@ private static object MoveOutedEvtKey = new object(); /// @if WEARABLE @since_tizen 3.0 @endif /// If @c true, the object is highlightable. public bool GetCanHighlight() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_can_highlight_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets highlightable to given widget. /// @if WEARABLE @since_tizen 3.0 @endif /// If @c true, the object is highlightable. - /// - public void SetCanHighlight( bool can_highlight) { - Efl.Access.IObjectNativeInherit.efl_access_object_can_highlight_set_ptr.Value.Delegate(this.NativeHandle, can_highlight); + public void SetCanHighlight(bool can_highlight) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_set_ptr.Value.Delegate(this.NativeHandle,can_highlight); Eina.Error.RaiseIfUnhandledException(); } /// The translation domain of "name" and "description" properties. @@ -1020,7 +1164,7 @@ private static object MoveOutedEvtKey = new object(); /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. /// Translation domain public System.String GetTranslationDomain() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_translation_domain_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_translation_domain_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1031,24 +1175,21 @@ private static object MoveOutedEvtKey = new object(); /// /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. /// Translation domain - /// - public void SetTranslationDomain( System.String domain) { - Efl.Access.IObjectNativeInherit.efl_access_object_translation_domain_set_ptr.Value.Delegate(this.NativeHandle, domain); + public void SetTranslationDomain(System.String domain) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_translation_domain_set_ptr.Value.Delegate(this.NativeHandle,domain); Eina.Error.RaiseIfUnhandledException(); } /// Get root object of accessible object hierarchy /// Root object public static Efl.Object GetAccessRoot() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_access_root_get_ptr.Value.Delegate(); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_root_get_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Handles gesture on given widget. - /// - /// - public bool GestureDo( Efl.Access.GestureInfo gesture_info) { + public bool GestureDo(Efl.Access.GestureInfo gesture_info) { Efl.Access.GestureInfo.NativeStruct _in_gesture_info = gesture_info; - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_gesture_do_ptr.Value.Delegate(this.NativeHandle, _in_gesture_info); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_gesture_do_ptr.Value.Delegate(this.NativeHandle,_in_gesture_info); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1056,48 +1197,43 @@ private static object MoveOutedEvtKey = new object(); /// @if WEARABLE @since_tizen 3.0 @endif /// The string key to give extra information /// The string value to give extra information - /// - public void AppendAttribute( System.String key, System.String value) { - Efl.Access.IObjectNativeInherit.efl_access_object_attribute_append_ptr.Value.Delegate(this.NativeHandle, key, value); + public void AppendAttribute(System.String key, System.String value) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attribute_append_ptr.Value.Delegate(this.NativeHandle,key, value); Eina.Error.RaiseIfUnhandledException(); } /// delete key-value pair identifying object extra attributes when key is given /// The string key to identify the key-value pair - /// - public void DelAttribute( System.String key) { - Efl.Access.IObjectNativeInherit.efl_access_object_attribute_del_ptr.Value.Delegate(this.NativeHandle, key); + public void DelAttribute(System.String key) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attribute_del_ptr.Value.Delegate(this.NativeHandle,key); Eina.Error.RaiseIfUnhandledException(); } /// Removes all attributes in accessible object. - /// public void ClearAttributes() { - Efl.Access.IObjectNativeInherit.efl_access_object_attributes_clear_ptr.Value.Delegate(this.NativeHandle); + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attributes_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Register accessibility event listener /// Callback /// Data /// Event handler - public static Efl.Access.Event.Handler AddEventHandler( Efl.EventCb cb, System.IntPtr data) { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_event_handler_add_ptr.Value.Delegate( cb, data); + public static Efl.Access.Event.Handler AddEventHandler(Efl.EventCb cb, System.IntPtr data) { + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_event_handler_add_ptr.Value.Delegate(cb, data); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Deregister accessibility event listener /// Event handler - /// - public static void DelEventHandler( Efl.Access.Event.Handler handler) { - Efl.Access.IObjectNativeInherit.efl_access_object_event_handler_del_ptr.Value.Delegate( handler); + public static void DelEventHandler(Efl.Access.Event.Handler handler) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_event_handler_del_ptr.Value.Delegate(handler); Eina.Error.RaiseIfUnhandledException(); } /// Emit event /// Accessibility object. /// Accessibility event type. /// Accessibility event details. - /// - public static void EmitEvent( Efl.Access.IObject accessible, Efl.EventDescription kw_event, System.IntPtr event_info) { + public static void EmitEvent(Efl.Access.IObject accessible, Efl.EventDescription kw_event, System.IntPtr event_info) { var _in_kw_event = Eina.PrimitiveConversion.ManagedToPointerAlloc(kw_event); - Efl.Access.IObjectNativeInherit.efl_access_object_event_emit_ptr.Value.Delegate( accessible, _in_kw_event, event_info); + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_event_emit_ptr.Value.Delegate(accessible, _in_kw_event, event_info); Eina.Error.RaiseIfUnhandledException(); } /// Defines the relationship between two accessible objects. @@ -1109,8 +1245,8 @@ private static object MoveOutedEvtKey = new object(); /// Relation type /// Object to relate to /// true if relationship was successfully appended, false otherwise - public bool AppendRelationship( Efl.Access.RelationType type, Efl.Access.IObject relation_object) { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_relationship_append_ptr.Value.Delegate(this.NativeHandle, type, relation_object); + public bool AppendRelationship(Efl.Access.RelationType type, Efl.Access.IObject relation_object) { + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relationship_append_ptr.Value.Delegate(this.NativeHandle,type, relation_object); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1118,26 +1254,21 @@ private static object MoveOutedEvtKey = new object(); /// If relation_object is NULL function removes all relations of the given type. /// Relation type /// Object to remove relation from - /// - public void RelationshipRemove( Efl.Access.RelationType type, Efl.Access.IObject relation_object) { - Efl.Access.IObjectNativeInherit.efl_access_object_relationship_remove_ptr.Value.Delegate(this.NativeHandle, type, relation_object); + public void RelationshipRemove(Efl.Access.RelationType type, Efl.Access.IObject relation_object) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relationship_remove_ptr.Value.Delegate(this.NativeHandle,type, relation_object); Eina.Error.RaiseIfUnhandledException(); } /// Removes all relationships in accessible object. - /// public void ClearRelationships() { - Efl.Access.IObjectNativeInherit.efl_access_object_relationships_clear_ptr.Value.Delegate(this.NativeHandle); + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relationships_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Notifies accessibility clients about current state of the accessible object. /// Function limits information broadcast to clients to types specified by state_types_mask parameter. /// /// if recursive parameter is set, function will traverse all accessible children and call state_notify function on them. - /// - /// - /// - public void StateNotify( Efl.Access.StateSet state_types_mask, bool recursive) { - Efl.Access.IObjectNativeInherit.efl_access_object_state_notify_ptr.Value.Delegate(this.NativeHandle, state_types_mask, recursive); + public void StateNotify(Efl.Access.StateSet state_types_mask, bool recursive) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_state_notify_ptr.Value.Delegate(this.NativeHandle,state_types_mask, recursive); Eina.Error.RaiseIfUnhandledException(); } /// Gets an localized string describing accessible object role name. @@ -1149,7 +1280,7 @@ private static object MoveOutedEvtKey = new object(); /// Accessible name public System.String I18nName { get { return GetI18nName(); } - set { SetI18nName( value); } + set { SetI18nName(value); } } /// Gets an all relations between accessible object and other accessible objects. /// Accessible relation set @@ -1160,13 +1291,13 @@ private static object MoveOutedEvtKey = new object(); /// Accessible role public Efl.Access.Role Role { get { return GetRole(); } - set { SetRole( value); } + set { SetRole(value); } } /// Gets object's accessible parent. /// Accessible parent public Efl.Access.IObject AccessParent { get { return GetAccessParent(); } - set { SetAccessParent( value); } + set { SetAccessParent(value); } } /// Gets object's accessible children. /// List of widget's children @@ -1188,7 +1319,7 @@ private static object MoveOutedEvtKey = new object(); /// Reading information types public Efl.Access.ReadingInfoTypeMask ReadingInfoType { get { return GetReadingInfoType(); } - set { SetReadingInfoType( value); } + set { SetReadingInfoType(value); } } /// Gets index of the child in parent's children list. /// Index in children list @@ -1199,7 +1330,7 @@ private static object MoveOutedEvtKey = new object(); /// Accessible contextual information public System.String Description { get { return GetDescription(); } - set { SetDescription( value); } + set { SetDescription(value); } } /// Gets set describing object accessible states. /// Accessible state set @@ -1211,7 +1342,7 @@ private static object MoveOutedEvtKey = new object(); /// If @c true, the object is highlightable. public bool CanHighlight { get { return GetCanHighlight(); } - set { SetCanHighlight( value); } + set { SetCanHighlight(value); } } /// The translation domain of "name" and "description" properties. /// Translation domain should be set if the application wants to support i18n for accessibility "name" and "description" properties. @@ -1222,7 +1353,7 @@ private static object MoveOutedEvtKey = new object(); /// Translation domain public System.String TranslationDomain { get { return GetTranslationDomain(); } - set { SetTranslationDomain( value); } + set { SetTranslationDomain(value); } } /// Get root object of accessible object hierarchy /// Root object @@ -1233,1034 +1364,1633 @@ private static object MoveOutedEvtKey = new object(); { return Efl.Access.IObjectConcrete.efl_access_object_mixin_get(); } -} -public class IObjectNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_access_object_localized_role_name_get_static_delegate == null) - efl_access_object_localized_role_name_get_static_delegate = new efl_access_object_localized_role_name_get_delegate(localized_role_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetLocalizedRoleName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_localized_role_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_localized_role_name_get_static_delegate)}); - if (efl_access_object_i18n_name_get_static_delegate == null) - efl_access_object_i18n_name_get_static_delegate = new efl_access_object_i18n_name_get_delegate(i18n_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetI18nName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_i18n_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_i18n_name_get_static_delegate)}); - if (efl_access_object_i18n_name_set_static_delegate == null) - efl_access_object_i18n_name_set_static_delegate = new efl_access_object_i18n_name_set_delegate(i18n_name_set); - if (methods.FirstOrDefault(m => m.Name == "SetI18nName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_i18n_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_i18n_name_set_static_delegate)}); - if (efl_access_object_name_cb_set_static_delegate == null) - efl_access_object_name_cb_set_static_delegate = new efl_access_object_name_cb_set_delegate(name_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetNameCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_name_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_name_cb_set_static_delegate)}); - if (efl_access_object_relation_set_get_static_delegate == null) - efl_access_object_relation_set_get_static_delegate = new efl_access_object_relation_set_get_delegate(relation_set_get); - if (methods.FirstOrDefault(m => m.Name == "GetRelationSet") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_relation_set_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relation_set_get_static_delegate)}); - if (efl_access_object_role_get_static_delegate == null) - efl_access_object_role_get_static_delegate = new efl_access_object_role_get_delegate(role_get); - if (methods.FirstOrDefault(m => m.Name == "GetRole") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_role_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_get_static_delegate)}); - if (efl_access_object_role_set_static_delegate == null) - efl_access_object_role_set_static_delegate = new efl_access_object_role_set_delegate(role_set); - if (methods.FirstOrDefault(m => m.Name == "SetRole") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_role_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_set_static_delegate)}); - if (efl_access_object_access_parent_get_static_delegate == null) - efl_access_object_access_parent_get_static_delegate = new efl_access_object_access_parent_get_delegate(access_parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccessParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_access_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_parent_get_static_delegate)}); - if (efl_access_object_access_parent_set_static_delegate == null) - efl_access_object_access_parent_set_static_delegate = new efl_access_object_access_parent_set_delegate(access_parent_set); - if (methods.FirstOrDefault(m => m.Name == "SetAccessParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_access_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_parent_set_static_delegate)}); - if (efl_access_object_description_cb_set_static_delegate == null) - efl_access_object_description_cb_set_static_delegate = new efl_access_object_description_cb_set_delegate(description_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetDescriptionCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_description_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_cb_set_static_delegate)}); - if (efl_access_object_gesture_cb_set_static_delegate == null) - efl_access_object_gesture_cb_set_static_delegate = new efl_access_object_gesture_cb_set_delegate(gesture_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetGestureCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_gesture_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_gesture_cb_set_static_delegate)}); - if (efl_access_object_access_children_get_static_delegate == null) - efl_access_object_access_children_get_static_delegate = new efl_access_object_access_children_get_delegate(access_children_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccessChildren") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_access_children_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_children_get_static_delegate)}); - if (efl_access_object_role_name_get_static_delegate == null) - efl_access_object_role_name_get_static_delegate = new efl_access_object_role_name_get_delegate(role_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoleName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_role_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_name_get_static_delegate)}); - if (efl_access_object_attributes_get_static_delegate == null) - efl_access_object_attributes_get_static_delegate = new efl_access_object_attributes_get_delegate(attributes_get); - if (methods.FirstOrDefault(m => m.Name == "GetAttributes") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attributes_get_static_delegate)}); - if (efl_access_object_reading_info_type_get_static_delegate == null) - efl_access_object_reading_info_type_get_static_delegate = new efl_access_object_reading_info_type_get_delegate(reading_info_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetReadingInfoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_reading_info_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_reading_info_type_get_static_delegate)}); - if (efl_access_object_reading_info_type_set_static_delegate == null) - efl_access_object_reading_info_type_set_static_delegate = new efl_access_object_reading_info_type_set_delegate(reading_info_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetReadingInfoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_reading_info_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_reading_info_type_set_static_delegate)}); - if (efl_access_object_index_in_parent_get_static_delegate == null) - efl_access_object_index_in_parent_get_static_delegate = new efl_access_object_index_in_parent_get_delegate(index_in_parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetIndexInParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_index_in_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_index_in_parent_get_static_delegate)}); - if (efl_access_object_description_get_static_delegate == null) - efl_access_object_description_get_static_delegate = new efl_access_object_description_get_delegate(description_get); - if (methods.FirstOrDefault(m => m.Name == "GetDescription") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_description_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_get_static_delegate)}); - if (efl_access_object_description_set_static_delegate == null) - efl_access_object_description_set_static_delegate = new efl_access_object_description_set_delegate(description_set); - if (methods.FirstOrDefault(m => m.Name == "SetDescription") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_description_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_set_static_delegate)}); - if (efl_access_object_state_set_get_static_delegate == null) - efl_access_object_state_set_get_static_delegate = new efl_access_object_state_set_get_delegate(state_set_get); - if (methods.FirstOrDefault(m => m.Name == "GetStateSet") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_state_set_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_state_set_get_static_delegate)}); - if (efl_access_object_can_highlight_get_static_delegate == null) - efl_access_object_can_highlight_get_static_delegate = new efl_access_object_can_highlight_get_delegate(can_highlight_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanHighlight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_can_highlight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_get_static_delegate)}); - if (efl_access_object_can_highlight_set_static_delegate == null) - efl_access_object_can_highlight_set_static_delegate = new efl_access_object_can_highlight_set_delegate(can_highlight_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanHighlight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_can_highlight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_set_static_delegate)}); - if (efl_access_object_translation_domain_get_static_delegate == null) - efl_access_object_translation_domain_get_static_delegate = new efl_access_object_translation_domain_get_delegate(translation_domain_get); - if (methods.FirstOrDefault(m => m.Name == "GetTranslationDomain") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_translation_domain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_get_static_delegate)}); - if (efl_access_object_translation_domain_set_static_delegate == null) - efl_access_object_translation_domain_set_static_delegate = new efl_access_object_translation_domain_set_delegate(translation_domain_set); - if (methods.FirstOrDefault(m => m.Name == "SetTranslationDomain") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_translation_domain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_set_static_delegate)}); - if (efl_access_object_gesture_do_static_delegate == null) - efl_access_object_gesture_do_static_delegate = new efl_access_object_gesture_do_delegate(gesture_do); - if (methods.FirstOrDefault(m => m.Name == "GestureDo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_gesture_do"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_gesture_do_static_delegate)}); - if (efl_access_object_attribute_append_static_delegate == null) - efl_access_object_attribute_append_static_delegate = new efl_access_object_attribute_append_delegate(attribute_append); - if (methods.FirstOrDefault(m => m.Name == "AppendAttribute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_attribute_append"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attribute_append_static_delegate)}); - if (efl_access_object_attribute_del_static_delegate == null) - efl_access_object_attribute_del_static_delegate = new efl_access_object_attribute_del_delegate(attribute_del); - if (methods.FirstOrDefault(m => m.Name == "DelAttribute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_attribute_del"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attribute_del_static_delegate)}); - if (efl_access_object_attributes_clear_static_delegate == null) - efl_access_object_attributes_clear_static_delegate = new efl_access_object_attributes_clear_delegate(attributes_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearAttributes") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_attributes_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attributes_clear_static_delegate)}); - if (efl_access_object_relationship_append_static_delegate == null) - efl_access_object_relationship_append_static_delegate = new efl_access_object_relationship_append_delegate(relationship_append); - if (methods.FirstOrDefault(m => m.Name == "AppendRelationship") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_relationship_append"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationship_append_static_delegate)}); - if (efl_access_object_relationship_remove_static_delegate == null) - efl_access_object_relationship_remove_static_delegate = new efl_access_object_relationship_remove_delegate(relationship_remove); - if (methods.FirstOrDefault(m => m.Name == "RelationshipRemove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_relationship_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationship_remove_static_delegate)}); - if (efl_access_object_relationships_clear_static_delegate == null) - efl_access_object_relationships_clear_static_delegate = new efl_access_object_relationships_clear_delegate(relationships_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearRelationships") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_relationships_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationships_clear_static_delegate)}); - if (efl_access_object_state_notify_static_delegate == null) - efl_access_object_state_notify_static_delegate = new efl_access_object_state_notify_delegate(state_notify); - if (methods.FirstOrDefault(m => m.Name == "StateNotify") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_state_notify"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_state_notify_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Access.IObjectConcrete.efl_access_object_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Access.IObjectConcrete.efl_access_object_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_access_object_localized_role_name_get_static_delegate == null) + { + efl_access_object_localized_role_name_get_static_delegate = new efl_access_object_localized_role_name_get_delegate(localized_role_name_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_object_localized_role_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLocalizedRoleName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_localized_role_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_localized_role_name_get_static_delegate) }); + } + if (efl_access_object_i18n_name_get_static_delegate == null) + { + efl_access_object_i18n_name_get_static_delegate = new efl_access_object_i18n_name_get_delegate(i18n_name_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_object_localized_role_name_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_localized_role_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_localized_role_name_get"); - private static System.String localized_role_name_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_localized_role_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IObjectConcrete)wrapper).GetLocalizedRoleName(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetI18nName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_i18n_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_i18n_name_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_object_localized_role_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_object_localized_role_name_get_delegate efl_access_object_localized_role_name_get_static_delegate; + if (efl_access_object_i18n_name_set_static_delegate == null) + { + efl_access_object_i18n_name_set_static_delegate = new efl_access_object_i18n_name_set_delegate(i18n_name_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_object_i18n_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetI18nName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_i18n_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_i18n_name_set_static_delegate) }); + } + if (efl_access_object_name_cb_set_static_delegate == null) + { + efl_access_object_name_cb_set_static_delegate = new efl_access_object_name_cb_set_delegate(name_cb_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_object_i18n_name_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_i18n_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_i18n_name_get"); - private static System.String i18n_name_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_i18n_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IObjectConcrete)wrapper).GetI18nName(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetNameCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_name_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_name_cb_set_static_delegate) }); } - return _ret_var; - } else { - return efl_access_object_i18n_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_object_i18n_name_get_delegate efl_access_object_i18n_name_get_static_delegate; + if (efl_access_object_relation_set_get_static_delegate == null) + { + efl_access_object_relation_set_get_static_delegate = new efl_access_object_relation_set_get_delegate(relation_set_get); + } - private delegate void efl_access_object_i18n_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String i18n_name); + if (methods.FirstOrDefault(m => m.Name == "GetRelationSet") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_relation_set_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relation_set_get_static_delegate) }); + } + if (efl_access_object_role_get_static_delegate == null) + { + efl_access_object_role_get_static_delegate = new efl_access_object_role_get_delegate(role_get); + } - public delegate void efl_access_object_i18n_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String i18n_name); - public static Efl.Eo.FunctionWrapper efl_access_object_i18n_name_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_i18n_name_set"); - private static void i18n_name_set(System.IntPtr obj, System.IntPtr pd, System.String i18n_name) - { - Eina.Log.Debug("function efl_access_object_i18n_name_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetI18nName( i18n_name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetRole") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_role_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_get_static_delegate) }); } - } else { - efl_access_object_i18n_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), i18n_name); - } - } - private static efl_access_object_i18n_name_set_delegate efl_access_object_i18n_name_set_static_delegate; + if (efl_access_object_role_set_static_delegate == null) + { + efl_access_object_role_set_static_delegate = new efl_access_object_role_set_delegate(role_set); + } - private delegate void efl_access_object_name_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data); + if (methods.FirstOrDefault(m => m.Name == "SetRole") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_role_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_set_static_delegate) }); + } + if (efl_access_object_access_parent_get_static_delegate == null) + { + efl_access_object_access_parent_get_static_delegate = new efl_access_object_access_parent_get_delegate(access_parent_get); + } - public delegate void efl_access_object_name_cb_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_access_object_name_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_name_cb_set"); - private static void name_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data) - { - Eina.Log.Debug("function efl_access_object_name_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetNameCb( name_cb, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetAccessParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_access_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_parent_get_static_delegate) }); } - } else { - efl_access_object_name_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name_cb, data); - } - } - private static efl_access_object_name_cb_set_delegate efl_access_object_name_cb_set_static_delegate; + if (efl_access_object_access_parent_set_static_delegate == null) + { + efl_access_object_access_parent_set_static_delegate = new efl_access_object_access_parent_set_delegate(access_parent_set); + } - private delegate Efl.Access.RelationSet efl_access_object_relation_set_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetAccessParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_access_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_parent_set_static_delegate) }); + } + if (efl_access_object_description_cb_set_static_delegate == null) + { + efl_access_object_description_cb_set_static_delegate = new efl_access_object_description_cb_set_delegate(description_cb_set); + } - public delegate Efl.Access.RelationSet efl_access_object_relation_set_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_relation_set_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_relation_set_get"); - private static Efl.Access.RelationSet relation_set_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_relation_set_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.RelationSet _ret_var = default(Efl.Access.RelationSet); - try { - _ret_var = ((IObjectConcrete)wrapper).GetRelationSet(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDescriptionCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_description_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_cb_set_static_delegate) }); } - return _ret_var; - } else { - return efl_access_object_relation_set_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_object_relation_set_get_delegate efl_access_object_relation_set_get_static_delegate; + if (efl_access_object_gesture_cb_set_static_delegate == null) + { + efl_access_object_gesture_cb_set_static_delegate = new efl_access_object_gesture_cb_set_delegate(gesture_cb_set); + } - private delegate Efl.Access.Role efl_access_object_role_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetGestureCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_gesture_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_gesture_cb_set_static_delegate) }); + } + if (efl_access_object_access_children_get_static_delegate == null) + { + efl_access_object_access_children_get_static_delegate = new efl_access_object_access_children_get_delegate(access_children_get); + } - public delegate Efl.Access.Role efl_access_object_role_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_role_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_role_get"); - private static Efl.Access.Role role_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_role_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.Role _ret_var = default(Efl.Access.Role); - try { - _ret_var = ((IObjectConcrete)wrapper).GetRole(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetAccessChildren") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_access_children_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_children_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_object_role_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_object_role_get_delegate efl_access_object_role_get_static_delegate; + if (efl_access_object_role_name_get_static_delegate == null) + { + efl_access_object_role_name_get_static_delegate = new efl_access_object_role_name_get_delegate(role_name_get); + } - private delegate void efl_access_object_role_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.Role role); + if (methods.FirstOrDefault(m => m.Name == "GetRoleName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_role_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_name_get_static_delegate) }); + } + if (efl_access_object_attributes_get_static_delegate == null) + { + efl_access_object_attributes_get_static_delegate = new efl_access_object_attributes_get_delegate(attributes_get); + } - public delegate void efl_access_object_role_set_api_delegate(System.IntPtr obj, Efl.Access.Role role); - public static Efl.Eo.FunctionWrapper efl_access_object_role_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_role_set"); - private static void role_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.Role role) - { - Eina.Log.Debug("function efl_access_object_role_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetRole( role); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetAttributes") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attributes_get_static_delegate) }); } - } else { - efl_access_object_role_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), role); - } - } - private static efl_access_object_role_set_delegate efl_access_object_role_set_static_delegate; + if (efl_access_object_reading_info_type_get_static_delegate == null) + { + efl_access_object_reading_info_type_get_static_delegate = new efl_access_object_reading_info_type_get_delegate(reading_info_type_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Access.IObject efl_access_object_access_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetReadingInfoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_reading_info_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_reading_info_type_get_static_delegate) }); + } + if (efl_access_object_reading_info_type_set_static_delegate == null) + { + efl_access_object_reading_info_type_set_static_delegate = new efl_access_object_reading_info_type_set_delegate(reading_info_type_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Access.IObject efl_access_object_access_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_access_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_access_parent_get"); - private static Efl.Access.IObject access_parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_access_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.IObject _ret_var = default(Efl.Access.IObject); - try { - _ret_var = ((IObjectConcrete)wrapper).GetAccessParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetReadingInfoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_reading_info_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_reading_info_type_set_static_delegate) }); } - return _ret_var; - } else { - return efl_access_object_access_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_object_access_parent_get_delegate efl_access_object_access_parent_get_static_delegate; + if (efl_access_object_index_in_parent_get_static_delegate == null) + { + efl_access_object_index_in_parent_get_static_delegate = new efl_access_object_index_in_parent_get_delegate(index_in_parent_get); + } - private delegate void efl_access_object_access_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject parent); + if (methods.FirstOrDefault(m => m.Name == "GetIndexInParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_index_in_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_index_in_parent_get_static_delegate) }); + } + if (efl_access_object_description_get_static_delegate == null) + { + efl_access_object_description_get_static_delegate = new efl_access_object_description_get_delegate(description_get); + } - public delegate void efl_access_object_access_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject parent); - public static Efl.Eo.FunctionWrapper efl_access_object_access_parent_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_access_parent_set"); - private static void access_parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.IObject parent) - { - Eina.Log.Debug("function efl_access_object_access_parent_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetAccessParent( parent); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetDescription") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_description_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_get_static_delegate) }); } - } else { - efl_access_object_access_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); - } - } - private static efl_access_object_access_parent_set_delegate efl_access_object_access_parent_set_static_delegate; + if (efl_access_object_description_set_static_delegate == null) + { + efl_access_object_description_set_static_delegate = new efl_access_object_description_set_delegate(description_set); + } - private delegate void efl_access_object_description_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data); + if (methods.FirstOrDefault(m => m.Name == "SetDescription") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_description_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_set_static_delegate) }); + } + if (efl_access_object_state_set_get_static_delegate == null) + { + efl_access_object_state_set_get_static_delegate = new efl_access_object_state_set_get_delegate(state_set_get); + } - public delegate void efl_access_object_description_cb_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_access_object_description_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_description_cb_set"); - private static void description_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data) - { - Eina.Log.Debug("function efl_access_object_description_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetDescriptionCb( description_cb, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetStateSet") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_state_set_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_state_set_get_static_delegate) }); } - } else { - efl_access_object_description_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), description_cb, data); - } - } - private static efl_access_object_description_cb_set_delegate efl_access_object_description_cb_set_static_delegate; + if (efl_access_object_can_highlight_get_static_delegate == null) + { + efl_access_object_can_highlight_get_static_delegate = new efl_access_object_can_highlight_get_delegate(can_highlight_get); + } - private delegate void efl_access_object_gesture_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureCb gesture_cb, System.IntPtr data); + if (methods.FirstOrDefault(m => m.Name == "GetCanHighlight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_get_static_delegate) }); + } + if (efl_access_object_can_highlight_set_static_delegate == null) + { + efl_access_object_can_highlight_set_static_delegate = new efl_access_object_can_highlight_set_delegate(can_highlight_set); + } - public delegate void efl_access_object_gesture_cb_set_api_delegate(System.IntPtr obj, Efl.Access.GestureCb gesture_cb, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_access_object_gesture_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_gesture_cb_set"); - private static void gesture_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureCb gesture_cb, System.IntPtr data) - { - Eina.Log.Debug("function efl_access_object_gesture_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetGestureCb( gesture_cb, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCanHighlight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_set_static_delegate) }); } - } else { - efl_access_object_gesture_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture_cb, data); - } - } - private static efl_access_object_gesture_cb_set_delegate efl_access_object_gesture_cb_set_static_delegate; + if (efl_access_object_translation_domain_get_static_delegate == null) + { + efl_access_object_translation_domain_get_static_delegate = new efl_access_object_translation_domain_get_delegate(translation_domain_get); + } - private delegate System.IntPtr efl_access_object_access_children_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetTranslationDomain") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_get_static_delegate) }); + } + if (efl_access_object_translation_domain_set_static_delegate == null) + { + efl_access_object_translation_domain_set_static_delegate = new efl_access_object_translation_domain_set_delegate(translation_domain_set); + } - public delegate System.IntPtr efl_access_object_access_children_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_access_children_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_access_children_get"); - private static System.IntPtr access_children_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_access_children_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((IObjectConcrete)wrapper).GetAccessChildren(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetTranslationDomain") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_set_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_access_object_access_children_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_object_access_children_get_delegate efl_access_object_access_children_get_static_delegate; + if (efl_access_object_gesture_do_static_delegate == null) + { + efl_access_object_gesture_do_static_delegate = new efl_access_object_gesture_do_delegate(gesture_do); + } + + if (methods.FirstOrDefault(m => m.Name == "GestureDo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_gesture_do"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_gesture_do_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_object_role_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_access_object_attribute_append_static_delegate == null) + { + efl_access_object_attribute_append_static_delegate = new efl_access_object_attribute_append_delegate(attribute_append); + } + if (methods.FirstOrDefault(m => m.Name == "AppendAttribute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_attribute_append"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attribute_append_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_object_role_name_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_role_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_role_name_get"); - private static System.String role_name_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_role_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IObjectConcrete)wrapper).GetRoleName(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_access_object_attribute_del_static_delegate == null) + { + efl_access_object_attribute_del_static_delegate = new efl_access_object_attribute_del_delegate(attribute_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelAttribute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_attribute_del"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attribute_del_static_delegate) }); + } + + if (efl_access_object_attributes_clear_static_delegate == null) + { + efl_access_object_attributes_clear_static_delegate = new efl_access_object_attributes_clear_delegate(attributes_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearAttributes") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_attributes_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attributes_clear_static_delegate) }); + } + + if (efl_access_object_relationship_append_static_delegate == null) + { + efl_access_object_relationship_append_static_delegate = new efl_access_object_relationship_append_delegate(relationship_append); + } + + if (methods.FirstOrDefault(m => m.Name == "AppendRelationship") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_relationship_append"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationship_append_static_delegate) }); + } + + if (efl_access_object_relationship_remove_static_delegate == null) + { + efl_access_object_relationship_remove_static_delegate = new efl_access_object_relationship_remove_delegate(relationship_remove); + } + + if (methods.FirstOrDefault(m => m.Name == "RelationshipRemove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_relationship_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationship_remove_static_delegate) }); + } + + if (efl_access_object_relationships_clear_static_delegate == null) + { + efl_access_object_relationships_clear_static_delegate = new efl_access_object_relationships_clear_delegate(relationships_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearRelationships") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_relationships_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationships_clear_static_delegate) }); } + + if (efl_access_object_state_notify_static_delegate == null) + { + efl_access_object_state_notify_static_delegate = new efl_access_object_state_notify_delegate(state_notify); + } + + if (methods.FirstOrDefault(m => m.Name == "StateNotify") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_state_notify"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_state_notify_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.Access.IObjectConcrete.efl_access_object_mixin_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_localized_role_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_localized_role_name_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_localized_role_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_localized_role_name_get"); + + private static System.String localized_role_name_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_localized_role_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetLocalizedRoleName(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_object_role_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_object_localized_role_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_object_role_name_get_delegate efl_access_object_role_name_get_static_delegate; + private static efl_access_object_localized_role_name_get_delegate efl_access_object_localized_role_name_get_static_delegate; - private delegate System.IntPtr efl_access_object_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_i18n_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_i18n_name_get_api_delegate(System.IntPtr obj); - public delegate System.IntPtr efl_access_object_attributes_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_attributes_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_attributes_get"); - private static System.IntPtr attributes_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_attributes_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((IObjectConcrete)wrapper).GetAttributes(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_i18n_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_i18n_name_get"); + + private static System.String i18n_name_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_i18n_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetI18nName(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_object_i18n_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_object_i18n_name_get_delegate efl_access_object_i18n_name_get_static_delegate; + + + private delegate void efl_access_object_i18n_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String i18n_name); + + + public delegate void efl_access_object_i18n_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String i18n_name); + + public static Efl.Eo.FunctionWrapper efl_access_object_i18n_name_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_i18n_name_set"); + + private static void i18n_name_set(System.IntPtr obj, System.IntPtr pd, System.String i18n_name) + { + Eina.Log.Debug("function efl_access_object_i18n_name_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetI18nName(i18n_name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_i18n_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), i18n_name); + } + } + + private static efl_access_object_i18n_name_set_delegate efl_access_object_i18n_name_set_static_delegate; + + + private delegate void efl_access_object_name_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data); + + + public delegate void efl_access_object_name_cb_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper efl_access_object_name_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_name_cb_set"); + + private static void name_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data) + { + Eina.Log.Debug("function efl_access_object_name_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetNameCb(name_cb, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_name_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name_cb, data); + } + } + + private static efl_access_object_name_cb_set_delegate efl_access_object_name_cb_set_static_delegate; + + + private delegate Efl.Access.RelationSet efl_access_object_relation_set_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Access.RelationSet efl_access_object_relation_set_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_relation_set_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_relation_set_get"); + + private static Efl.Access.RelationSet relation_set_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_relation_set_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.RelationSet _ret_var = default(Efl.Access.RelationSet); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetRelationSet(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_object_relation_set_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_object_relation_set_get_delegate efl_access_object_relation_set_get_static_delegate; + + + private delegate Efl.Access.Role efl_access_object_role_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Access.Role efl_access_object_role_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_role_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_role_get"); + + private static Efl.Access.Role role_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_role_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.Role _ret_var = default(Efl.Access.Role); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetRole(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_object_role_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_object_role_get_delegate efl_access_object_role_get_static_delegate; + + + private delegate void efl_access_object_role_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.Role role); + + + public delegate void efl_access_object_role_set_api_delegate(System.IntPtr obj, Efl.Access.Role role); + + public static Efl.Eo.FunctionWrapper efl_access_object_role_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_role_set"); + + private static void role_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.Role role) + { + Eina.Log.Debug("function efl_access_object_role_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetRole(role); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_role_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), role); + } + } + + private static efl_access_object_role_set_delegate efl_access_object_role_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Access.IObject efl_access_object_access_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Access.IObject efl_access_object_access_parent_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_access_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_parent_get"); + + private static Efl.Access.IObject access_parent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_access_parent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.IObject _ret_var = default(Efl.Access.IObject); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetAccessParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_object_access_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_object_access_parent_get_delegate efl_access_object_access_parent_get_static_delegate; + + + private delegate void efl_access_object_access_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject parent); + + + public delegate void efl_access_object_access_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject parent); + + public static Efl.Eo.FunctionWrapper efl_access_object_access_parent_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_parent_set"); + + private static void access_parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.IObject parent) + { + Eina.Log.Debug("function efl_access_object_access_parent_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetAccessParent(parent); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_access_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); + } + } + + private static efl_access_object_access_parent_set_delegate efl_access_object_access_parent_set_static_delegate; + + + private delegate void efl_access_object_description_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data); + + + public delegate void efl_access_object_description_cb_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper efl_access_object_description_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_description_cb_set"); + + private static void description_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data) + { + Eina.Log.Debug("function efl_access_object_description_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetDescriptionCb(description_cb, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_description_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), description_cb, data); + } + } + + private static efl_access_object_description_cb_set_delegate efl_access_object_description_cb_set_static_delegate; + + + private delegate void efl_access_object_gesture_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureCb gesture_cb, System.IntPtr data); + + + public delegate void efl_access_object_gesture_cb_set_api_delegate(System.IntPtr obj, Efl.Access.GestureCb gesture_cb, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper efl_access_object_gesture_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_gesture_cb_set"); + + private static void gesture_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureCb gesture_cb, System.IntPtr data) + { + Eina.Log.Debug("function efl_access_object_gesture_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetGestureCb(gesture_cb, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_gesture_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture_cb, data); + } + } + + private static efl_access_object_gesture_cb_set_delegate efl_access_object_gesture_cb_set_static_delegate; + + + private delegate System.IntPtr efl_access_object_access_children_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_access_object_access_children_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_access_children_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_children_get"); + + private static System.IntPtr access_children_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_access_children_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetAccessChildren(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_access_object_access_children_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_access_object_access_children_get_delegate efl_access_object_access_children_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_role_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_role_name_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_role_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_role_name_get"); + + private static System.String role_name_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_role_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetRoleName(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_object_role_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_object_role_name_get_delegate efl_access_object_role_name_get_static_delegate; + + + private delegate System.IntPtr efl_access_object_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_access_object_attributes_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_attributes_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_attributes_get"); + + private static System.IntPtr attributes_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_attributes_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetAttributes(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; - } else { - return efl_access_object_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_object_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_object_attributes_get_delegate efl_access_object_attributes_get_static_delegate; + private static efl_access_object_attributes_get_delegate efl_access_object_attributes_get_static_delegate; - private delegate Efl.Access.ReadingInfoTypeMask efl_access_object_reading_info_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Access.ReadingInfoTypeMask efl_access_object_reading_info_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Access.ReadingInfoTypeMask efl_access_object_reading_info_type_get_api_delegate(System.IntPtr obj); - public delegate Efl.Access.ReadingInfoTypeMask efl_access_object_reading_info_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_reading_info_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_reading_info_type_get"); - private static Efl.Access.ReadingInfoTypeMask reading_info_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_reading_info_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.ReadingInfoTypeMask _ret_var = default(Efl.Access.ReadingInfoTypeMask); - try { - _ret_var = ((IObjectConcrete)wrapper).GetReadingInfoType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_reading_info_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_reading_info_type_get"); + + private static Efl.Access.ReadingInfoTypeMask reading_info_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_reading_info_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.ReadingInfoTypeMask _ret_var = default(Efl.Access.ReadingInfoTypeMask); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetReadingInfoType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_object_reading_info_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_object_reading_info_type_get_delegate efl_access_object_reading_info_type_get_static_delegate; + + + private delegate void efl_access_object_reading_info_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoTypeMask reading_info); + + + public delegate void efl_access_object_reading_info_type_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoTypeMask reading_info); + + public static Efl.Eo.FunctionWrapper efl_access_object_reading_info_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_reading_info_type_set"); + + private static void reading_info_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoTypeMask reading_info) + { + Eina.Log.Debug("function efl_access_object_reading_info_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetReadingInfoType(reading_info); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_reading_info_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), reading_info); + } + } + + private static efl_access_object_reading_info_type_set_delegate efl_access_object_reading_info_type_set_static_delegate; + + + private delegate int efl_access_object_index_in_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_access_object_index_in_parent_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_index_in_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_index_in_parent_get"); + + private static int index_in_parent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_index_in_parent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetIndexInParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_object_index_in_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_access_object_index_in_parent_get_delegate efl_access_object_index_in_parent_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_description_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_description_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_description_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_description_get"); + + private static System.String description_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_description_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetDescription(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_object_reading_info_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_object_description_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_object_reading_info_type_get_delegate efl_access_object_reading_info_type_get_static_delegate; + private static efl_access_object_description_get_delegate efl_access_object_description_get_static_delegate; + + + private delegate void efl_access_object_description_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String description); + + + public delegate void efl_access_object_description_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String description); - private delegate void efl_access_object_reading_info_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoTypeMask reading_info); + public static Efl.Eo.FunctionWrapper efl_access_object_description_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_description_set"); + private static void description_set(System.IntPtr obj, System.IntPtr pd, System.String description) + { + Eina.Log.Debug("function efl_access_object_description_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetDescription(description); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_access_object_reading_info_type_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoTypeMask reading_info); - public static Efl.Eo.FunctionWrapper efl_access_object_reading_info_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_reading_info_type_set"); - private static void reading_info_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoTypeMask reading_info) - { - Eina.Log.Debug("function efl_access_object_reading_info_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetReadingInfoType( reading_info); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_access_object_description_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), description); } - } else { - efl_access_object_reading_info_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), reading_info); } - } - private static efl_access_object_reading_info_type_set_delegate efl_access_object_reading_info_type_set_static_delegate; + private static efl_access_object_description_set_delegate efl_access_object_description_set_static_delegate; - private delegate int efl_access_object_index_in_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Access.StateSet efl_access_object_state_set_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Access.StateSet efl_access_object_state_set_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_state_set_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_state_set_get"); + + private static Efl.Access.StateSet state_set_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_state_set_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.StateSet _ret_var = default(Efl.Access.StateSet); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetStateSet(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate int efl_access_object_index_in_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_index_in_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_index_in_parent_get"); - private static int index_in_parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_index_in_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IObjectConcrete)wrapper).GetIndexInParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_access_object_state_set_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_object_state_set_get_delegate efl_access_object_state_set_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_object_can_highlight_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_object_can_highlight_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_get"); + + private static bool can_highlight_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_can_highlight_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetCanHighlight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_object_index_in_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_object_can_highlight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_object_index_in_parent_get_delegate efl_access_object_index_in_parent_get_static_delegate; + private static efl_access_object_can_highlight_get_delegate efl_access_object_can_highlight_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_object_description_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_can_highlight_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_highlight); + + public delegate void efl_access_object_can_highlight_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_highlight); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_object_description_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_description_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_description_get"); - private static System.String description_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_description_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IObjectConcrete)wrapper).GetDescription(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_set"); + + private static void can_highlight_set(System.IntPtr obj, System.IntPtr pd, bool can_highlight) + { + Eina.Log.Debug("function efl_access_object_can_highlight_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetCanHighlight(can_highlight); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_can_highlight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_highlight); } + } + + private static efl_access_object_can_highlight_set_delegate efl_access_object_can_highlight_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_translation_domain_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_translation_domain_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_get"); + + private static System.String translation_domain_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_translation_domain_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetTranslationDomain(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_object_description_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_object_translation_domain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_object_description_get_delegate efl_access_object_description_get_static_delegate; + private static efl_access_object_translation_domain_get_delegate efl_access_object_translation_domain_get_static_delegate; - private delegate void efl_access_object_description_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String description); + + private delegate void efl_access_object_translation_domain_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + + public delegate void efl_access_object_translation_domain_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public delegate void efl_access_object_description_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String description); - public static Efl.Eo.FunctionWrapper efl_access_object_description_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_description_set"); - private static void description_set(System.IntPtr obj, System.IntPtr pd, System.String description) - { - Eina.Log.Debug("function efl_access_object_description_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetDescription( description); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_set"); + + private static void translation_domain_set(System.IntPtr obj, System.IntPtr pd, System.String domain) + { + Eina.Log.Debug("function efl_access_object_translation_domain_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetTranslationDomain(domain); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_translation_domain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), domain); } - } else { - efl_access_object_description_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), description); } - } - private static efl_access_object_description_set_delegate efl_access_object_description_set_static_delegate; - - private delegate Efl.Access.StateSet efl_access_object_state_set_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_access_object_translation_domain_set_delegate efl_access_object_translation_domain_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_access_object_access_root_get_delegate(); - public delegate Efl.Access.StateSet efl_access_object_state_set_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_state_set_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_state_set_get"); - private static Efl.Access.StateSet state_set_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_state_set_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.StateSet _ret_var = default(Efl.Access.StateSet); - try { - _ret_var = ((IObjectConcrete)wrapper).GetStateSet(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_access_object_state_set_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_object_state_set_get_delegate efl_access_object_state_set_get_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_access_object_access_root_get_api_delegate(); + public static Efl.Eo.FunctionWrapper efl_access_object_access_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_root_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_object_can_highlight_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Object access_root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_access_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = IObjectConcrete.GetAccessRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_object_can_highlight_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_can_highlight_get"); - private static bool can_highlight_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_can_highlight_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IObjectConcrete)wrapper).GetCanHighlight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_object_can_highlight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_object_access_root_get_ptr.Value.Delegate(); + } } - } - private static efl_access_object_can_highlight_get_delegate efl_access_object_can_highlight_get_static_delegate; - - - private delegate void efl_access_object_can_highlight_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_highlight); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_object_gesture_do_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureInfo.NativeStruct gesture_info); - public delegate void efl_access_object_can_highlight_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_highlight); - public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_can_highlight_set"); - private static void can_highlight_set(System.IntPtr obj, System.IntPtr pd, bool can_highlight) - { - Eina.Log.Debug("function efl_access_object_can_highlight_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetCanHighlight( can_highlight); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_can_highlight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_highlight); - } - } - private static efl_access_object_can_highlight_set_delegate efl_access_object_can_highlight_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_object_gesture_do_api_delegate(System.IntPtr obj, Efl.Access.GestureInfo.NativeStruct gesture_info); + public static Efl.Eo.FunctionWrapper efl_access_object_gesture_do_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_gesture_do"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_object_translation_domain_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool gesture_do(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureInfo.NativeStruct gesture_info) + { + Eina.Log.Debug("function efl_access_object_gesture_do was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.GestureInfo _in_gesture_info = gesture_info; + bool _ret_var = default(bool); + try + { + _ret_var = ((IObjectConcrete)wrapper).GestureDo(_in_gesture_info); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_object_translation_domain_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_translation_domain_get"); - private static System.String translation_domain_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_translation_domain_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IObjectConcrete)wrapper).GetTranslationDomain(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_object_translation_domain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_object_gesture_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture_info); + } } - } - private static efl_access_object_translation_domain_get_delegate efl_access_object_translation_domain_get_static_delegate; + private static efl_access_object_gesture_do_delegate efl_access_object_gesture_do_static_delegate; - private delegate void efl_access_object_translation_domain_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + + private delegate void efl_access_object_attribute_append_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); + + + public delegate void efl_access_object_attribute_append_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); + public static Efl.Eo.FunctionWrapper efl_access_object_attribute_append_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_attribute_append"); - public delegate void efl_access_object_translation_domain_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_translation_domain_set"); - private static void translation_domain_set(System.IntPtr obj, System.IntPtr pd, System.String domain) - { - Eina.Log.Debug("function efl_access_object_translation_domain_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetTranslationDomain( domain); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void attribute_append(System.IntPtr obj, System.IntPtr pd, System.String key, System.String value) + { + Eina.Log.Debug("function efl_access_object_attribute_append was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).AppendAttribute(key, value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_attribute_append_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, value); } - } else { - efl_access_object_translation_domain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), domain); } - } - private static efl_access_object_translation_domain_set_delegate efl_access_object_translation_domain_set_static_delegate; + private static efl_access_object_attribute_append_delegate efl_access_object_attribute_append_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_access_object_access_root_get_delegate(); + + private delegate void efl_access_object_attribute_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate void efl_access_object_attribute_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + public static Efl.Eo.FunctionWrapper efl_access_object_attribute_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_attribute_del"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_access_object_access_root_get_api_delegate(); - public static Efl.Eo.FunctionWrapper efl_access_object_access_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_access_root_get"); - private static Efl.Object access_root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_access_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = IObjectConcrete.GetAccessRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void attribute_del(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_access_object_attribute_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).DelAttribute(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_attribute_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); } - return _ret_var; - } else { - return efl_access_object_access_root_get_ptr.Value.Delegate(); } - } + private static efl_access_object_attribute_del_delegate efl_access_object_attribute_del_static_delegate; + + + private delegate void efl_access_object_attributes_clear_delegate(System.IntPtr obj, System.IntPtr pd); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_object_gesture_do_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureInfo.NativeStruct gesture_info); + + public delegate void efl_access_object_attributes_clear_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_access_object_attributes_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_attributes_clear"); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_object_gesture_do_api_delegate(System.IntPtr obj, Efl.Access.GestureInfo.NativeStruct gesture_info); - public static Efl.Eo.FunctionWrapper efl_access_object_gesture_do_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_gesture_do"); - private static bool gesture_do(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureInfo.NativeStruct gesture_info) - { - Eina.Log.Debug("function efl_access_object_gesture_do was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.GestureInfo _in_gesture_info = gesture_info; - bool _ret_var = default(bool); - try { - _ret_var = ((IObjectConcrete)wrapper).GestureDo( _in_gesture_info); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void attributes_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_attributes_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).ClearAttributes(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_attributes_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_access_object_gesture_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture_info); } - } - private static efl_access_object_gesture_do_delegate efl_access_object_gesture_do_static_delegate; - - private delegate void efl_access_object_attribute_append_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); + private static efl_access_object_attributes_clear_delegate efl_access_object_attributes_clear_static_delegate; + + private delegate Efl.Access.Event.Handler efl_access_object_event_handler_add_delegate( Efl.EventCb cb, System.IntPtr data); - public delegate void efl_access_object_attribute_append_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); - public static Efl.Eo.FunctionWrapper efl_access_object_attribute_append_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_attribute_append"); - private static void attribute_append(System.IntPtr obj, System.IntPtr pd, System.String key, System.String value) - { - Eina.Log.Debug("function efl_access_object_attribute_append was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).AppendAttribute( key, value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_attribute_append_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, value); - } - } - private static efl_access_object_attribute_append_delegate efl_access_object_attribute_append_static_delegate; + + public delegate Efl.Access.Event.Handler efl_access_object_event_handler_add_api_delegate( Efl.EventCb cb, System.IntPtr data); + public static Efl.Eo.FunctionWrapper efl_access_object_event_handler_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_event_handler_add"); - private delegate void efl_access_object_attribute_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + private static Efl.Access.Event.Handler event_handler_add(System.IntPtr obj, System.IntPtr pd, Efl.EventCb cb, System.IntPtr data) + { + Eina.Log.Debug("function efl_access_object_event_handler_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.Event.Handler _ret_var = default(Efl.Access.Event.Handler); + try + { + _ret_var = IObjectConcrete.AddEventHandler(cb, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_access_object_attribute_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_access_object_attribute_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_attribute_del"); - private static void attribute_del(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_access_object_attribute_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).DelAttribute( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_access_object_attribute_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + else + { + return efl_access_object_event_handler_add_ptr.Value.Delegate(cb, data); + } } - } - private static efl_access_object_attribute_del_delegate efl_access_object_attribute_del_static_delegate; + + private delegate void efl_access_object_event_handler_del_delegate( Efl.Access.Event.Handler handler); - private delegate void efl_access_object_attributes_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_access_object_event_handler_del_api_delegate( Efl.Access.Event.Handler handler); + public static Efl.Eo.FunctionWrapper efl_access_object_event_handler_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_event_handler_del"); + + private static void event_handler_del(System.IntPtr obj, System.IntPtr pd, Efl.Access.Event.Handler handler) + { + Eina.Log.Debug("function efl_access_object_event_handler_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + IObjectConcrete.DelEventHandler(handler); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_access_object_attributes_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_attributes_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_attributes_clear"); - private static void attributes_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_attributes_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IObjectConcrete)wrapper).ClearAttributes(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_access_object_attributes_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_access_object_event_handler_del_ptr.Value.Delegate(handler); + } } - } - private static efl_access_object_attributes_clear_delegate efl_access_object_attributes_clear_static_delegate; + + private delegate void efl_access_object_event_emit_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info); - private delegate Efl.Access.Event.Handler efl_access_object_event_handler_add_delegate( Efl.EventCb cb, System.IntPtr data); + + public delegate void efl_access_object_event_emit_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info); + public static Efl.Eo.FunctionWrapper efl_access_object_event_emit_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_event_emit"); - public delegate Efl.Access.Event.Handler efl_access_object_event_handler_add_api_delegate( Efl.EventCb cb, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_access_object_event_handler_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_event_handler_add"); - private static Efl.Access.Event.Handler event_handler_add(System.IntPtr obj, System.IntPtr pd, Efl.EventCb cb, System.IntPtr data) - { - Eina.Log.Debug("function efl_access_object_event_handler_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.Event.Handler _ret_var = default(Efl.Access.Event.Handler); - try { - _ret_var = IObjectConcrete.AddEventHandler( cb, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void event_emit(System.IntPtr obj, System.IntPtr pd, Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info) + { + Eina.Log.Debug("function efl_access_object_event_emit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_kw_event = Eina.PrimitiveConversion.PointerToManaged(kw_event); + + try + { + IObjectConcrete.EmitEvent(accessible, _in_kw_event, event_info); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_event_emit_ptr.Value.Delegate(accessible, kw_event, event_info); } - return _ret_var; - } else { - return efl_access_object_event_handler_add_ptr.Value.Delegate( cb, data); } - } - - private delegate void efl_access_object_event_handler_del_delegate( Efl.Access.Event.Handler handler); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_object_relationship_append_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject relation_object); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_object_relationship_append_api_delegate(System.IntPtr obj, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject relation_object); - public delegate void efl_access_object_event_handler_del_api_delegate( Efl.Access.Event.Handler handler); - public static Efl.Eo.FunctionWrapper efl_access_object_event_handler_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_event_handler_del"); - private static void event_handler_del(System.IntPtr obj, System.IntPtr pd, Efl.Access.Event.Handler handler) - { - Eina.Log.Debug("function efl_access_object_event_handler_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - IObjectConcrete.DelEventHandler( handler); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_event_handler_del_ptr.Value.Delegate( handler); - } - } - + public static Efl.Eo.FunctionWrapper efl_access_object_relationship_append_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_relationship_append"); - private delegate void efl_access_object_event_emit_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info); + private static bool relationship_append(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, Efl.Access.IObject relation_object) + { + Eina.Log.Debug("function efl_access_object_relationship_append was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IObjectConcrete)wrapper).AppendRelationship(type, relation_object); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_access_object_event_emit_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info); - public static Efl.Eo.FunctionWrapper efl_access_object_event_emit_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_event_emit"); - private static void event_emit(System.IntPtr obj, System.IntPtr pd, Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info) - { - Eina.Log.Debug("function efl_access_object_event_emit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_kw_event = Eina.PrimitiveConversion.PointerToManaged(kw_event); - - try { - IObjectConcrete.EmitEvent( accessible, _in_kw_event, event_info); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_access_object_event_emit_ptr.Value.Delegate( accessible, kw_event, event_info); + else + { + return efl_access_object_relationship_append_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, relation_object); + } } - } + private static efl_access_object_relationship_append_delegate efl_access_object_relationship_append_static_delegate; + + + private delegate void efl_access_object_relationship_remove_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject relation_object); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_object_relationship_append_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject relation_object); + + public delegate void efl_access_object_relationship_remove_api_delegate(System.IntPtr obj, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject relation_object); + public static Efl.Eo.FunctionWrapper efl_access_object_relationship_remove_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_relationship_remove"); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_object_relationship_append_api_delegate(System.IntPtr obj, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject relation_object); - public static Efl.Eo.FunctionWrapper efl_access_object_relationship_append_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_relationship_append"); - private static bool relationship_append(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, Efl.Access.IObject relation_object) - { - Eina.Log.Debug("function efl_access_object_relationship_append was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IObjectConcrete)wrapper).AppendRelationship( type, relation_object); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void relationship_remove(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, Efl.Access.IObject relation_object) + { + Eina.Log.Debug("function efl_access_object_relationship_remove was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).RelationshipRemove(type, relation_object); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_relationship_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, relation_object); } - return _ret_var; - } else { - return efl_access_object_relationship_append_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, relation_object); } - } - private static efl_access_object_relationship_append_delegate efl_access_object_relationship_append_static_delegate; + private static efl_access_object_relationship_remove_delegate efl_access_object_relationship_remove_static_delegate; + + + private delegate void efl_access_object_relationships_clear_delegate(System.IntPtr obj, System.IntPtr pd); - private delegate void efl_access_object_relationship_remove_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject relation_object); + + public delegate void efl_access_object_relationships_clear_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_access_object_relationships_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_relationships_clear"); - public delegate void efl_access_object_relationship_remove_api_delegate(System.IntPtr obj, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject relation_object); - public static Efl.Eo.FunctionWrapper efl_access_object_relationship_remove_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_relationship_remove"); - private static void relationship_remove(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, Efl.Access.IObject relation_object) - { - Eina.Log.Debug("function efl_access_object_relationship_remove was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).RelationshipRemove( type, relation_object); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void relationships_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_relationships_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).ClearRelationships(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_relationships_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_access_object_relationship_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, relation_object); } - } - private static efl_access_object_relationship_remove_delegate efl_access_object_relationship_remove_static_delegate; + private static efl_access_object_relationships_clear_delegate efl_access_object_relationships_clear_static_delegate; - private delegate void efl_access_object_relationships_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_state_notify_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.StateSet state_types_mask, [MarshalAs(UnmanagedType.U1)] bool recursive); + + public delegate void efl_access_object_state_notify_api_delegate(System.IntPtr obj, Efl.Access.StateSet state_types_mask, [MarshalAs(UnmanagedType.U1)] bool recursive); - public delegate void efl_access_object_relationships_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_relationships_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_relationships_clear"); - private static void relationships_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_relationships_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).ClearRelationships(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_state_notify_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_state_notify"); + + private static void state_notify(System.IntPtr obj, System.IntPtr pd, Efl.Access.StateSet state_types_mask, bool recursive) + { + Eina.Log.Debug("function efl_access_object_state_notify was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).StateNotify(state_types_mask, recursive); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_state_notify_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state_types_mask, recursive); } - } else { - efl_access_object_relationships_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_object_relationships_clear_delegate efl_access_object_relationships_clear_static_delegate; + private static efl_access_object_state_notify_delegate efl_access_object_state_notify_static_delegate; - private delegate void efl_access_object_state_notify_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.StateSet state_types_mask, [MarshalAs(UnmanagedType.U1)] bool recursive); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_access_object_state_notify_api_delegate(System.IntPtr obj, Efl.Access.StateSet state_types_mask, [MarshalAs(UnmanagedType.U1)] bool recursive); - public static Efl.Eo.FunctionWrapper efl_access_object_state_notify_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_state_notify"); - private static void state_notify(System.IntPtr obj, System.IntPtr pd, Efl.Access.StateSet state_types_mask, bool recursive) - { - Eina.Log.Debug("function efl_access_object_state_notify was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).StateNotify( state_types_mask, recursive); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_state_notify_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state_types_mask, recursive); - } - } - private static efl_access_object_state_notify_delegate efl_access_object_state_notify_static_delegate; } -} } -namespace Efl { namespace Access { + +namespace Efl { + +namespace Access { + /// Type of accessibility object public enum Type { @@ -2271,8 +3001,15 @@ Disabled = 1, /// skip object in accessibility hierarchy Skipped = 2, } -} } -namespace Efl { namespace Access { + +} + +} + +namespace Efl { + +namespace Access { + /// Describes the role of an object visible to Accessibility Clients. public enum Role { @@ -2485,8 +3222,15 @@ InfoBar = 102, /// Last enum entry sentinel LastDefined = 103, } -} } -namespace Efl { namespace Access { + +} + +} + +namespace Efl { + +namespace Access { + /// Describes the possible states for an object visible to accessibility clients. public enum StateType { @@ -2585,8 +3329,15 @@ Highlightable = 45, /// Last enum entry sentinel LastDefined = 46, } -} } -namespace Efl { namespace Access { + +} + +} + +namespace Efl { + +namespace Access { + /// Describes the relationship between two objects. public enum RelationType { @@ -2631,8 +3382,19 @@ DescribedBy = 18, /// Last enum entry sentinel LastDefined = 19, } -} } -namespace Efl { namespace Access { namespace Reading { namespace Info { + +} + +} + +namespace Efl { + +namespace Access { + +namespace Reading { + +namespace Info { + /// The accessible Reading information type that can be read. public enum Type { @@ -2645,100 +3407,85 @@ Description = 4, /// State should be read. State = 8, } -} } } } -namespace Efl { namespace Access { -/// + +} + +} + +} + +} + +namespace Efl { + +namespace Access { + public enum Gesture { -/// OneFingerHover = 0, -/// TwoFingersHover = 1, -/// ThreeFingersHover = 2, -/// OneFingerFlickLeft = 3, -/// OneFingerFlickRight = 4, -/// OneFingerFlickUp = 5, -/// OneFingerFlickDown = 6, -/// TwoFingersFlickLeft = 7, -/// TwoFingersFlickRight = 8, -/// TwoFingersFlickUp = 9, -/// TwoFingersFlickDown = 10, -/// ThreeFingersFlickLeft = 11, -/// ThreeFingersFlickRight = 12, -/// ThreeFingersFlickUp = 13, -/// ThreeFingersFlickDown = 14, -/// OneFingerSingleTap = 15, -/// OneFingerDoubleTap = 16, -/// OneFingerTripleTap = 17, -/// TwoFingersSingleTap = 18, -/// TwoFingersDoubleTap = 19, -/// TwoFingersTripleTap = 20, -/// ThreeFingersSingleTap = 21, -/// ThreeFingersDoubleTap = 22, -/// ThreeFingersTripleTap = 23, -/// OneFingerFlickLeftReturn = 24, -/// OneFingerFlickRightReturn = 25, -/// OneFingerFlickUpReturn = 26, -/// OneFingerFlickDownReturn = 27, -/// TwoFingersFlickLeftReturn = 28, -/// TwoFingersFlickRightReturn = 29, -/// TwoFingersFlickUpReturn = 30, -/// TwoFingersFlickDownReturn = 31, -/// ThreeFingersFlickLeftReturn = 32, -/// ThreeFingersFlickRightReturn = 33, -/// ThreeFingersFlickUpReturn = 34, -/// ThreeFingersFlickDownReturn = 35, } -} } -namespace Efl { namespace Access { -/// + +} + +} + +namespace Efl { + +namespace Access { + public enum GestureState { -/// Start = 0, -/// Move = 1, -/// End = 2, -/// Abort = 3, } -} } -namespace Efl { namespace Access { namespace Event { + +} + +} + +namespace Efl { + +namespace Access { + +namespace Event { + /// Accessibility event listener [StructLayout(LayoutKind.Sequential)] public struct Handler @@ -2774,8 +3521,20 @@ public struct Handler } -} } } -namespace Efl { namespace Access { namespace Event { namespace StateChanged { +} + +} + +} + +namespace Efl { + +namespace Access { + +namespace Event { + +namespace StateChanged { + /// Accessibility state changed event data [StructLayout(LayoutKind.Sequential)] public struct Data @@ -2786,8 +3545,8 @@ public struct Data public bool New_value; ///Constructor for Data. public Data( - Efl.Access.StateType Type=default(Efl.Access.StateType), - bool New_value=default(bool) ) + Efl.Access.StateType Type = default(Efl.Access.StateType), + bool New_value = default(bool) ) { this.Type = Type; this.New_value = New_value; @@ -2829,8 +3588,22 @@ public struct Data } -} } } } -namespace Efl { namespace Access { namespace Event { namespace GeometryChanged { +} + +} + +} + +} + +namespace Efl { + +namespace Access { + +namespace Event { + +namespace GeometryChanged { + /// Accessibility geometry changed event data [StructLayout(LayoutKind.Sequential)] public struct Data @@ -2845,10 +3618,10 @@ public struct Data public int Height; ///Constructor for Data. public Data( - int X=default(int), - int Y=default(int), - int Width=default(int), - int Height=default(int) ) + int X = default(int), + int Y = default(int), + int Width = default(int), + int Height = default(int) ) { this.X = X; this.Y = Y; @@ -2900,8 +3673,22 @@ public struct Data } -} } } } -namespace Efl { namespace Access { namespace Event { namespace ChildrenChanged { +} + +} + +} + +} + +namespace Efl { + +namespace Access { + +namespace Event { + +namespace ChildrenChanged { + /// Accessibility children changed event data [StructLayout(LayoutKind.Sequential)] public struct Data @@ -2912,8 +3699,8 @@ public struct Data public Efl.Object Child; ///Constructor for Data. public Data( - bool Is_added=default(bool), - Efl.Object Child=default(Efl.Object) ) + bool Is_added = default(bool), + Efl.Object Child = default(Efl.Object) ) { this.Is_added = Is_added; this.Child = Child; @@ -2956,8 +3743,18 @@ public struct Data } -} } } } -namespace Efl { namespace Access { +} + +} + +} + +} + +namespace Efl { + +namespace Access { + /// Accessibility Attribute [StructLayout(LayoutKind.Sequential)] public struct Attribute @@ -2968,8 +3765,8 @@ public struct Attribute public System.String Value; ///Constructor for Attribute. public Attribute( - System.String Key=default(System.String), - System.String Value=default(System.String) ) + System.String Key = default(System.String), + System.String Value = default(System.String) ) { this.Key = Key; this.Value = Value; @@ -3011,8 +3808,14 @@ public struct Attribute } -} } -namespace Efl { namespace Access { +} + +} + +namespace Efl { + +namespace Access { + /// Accessibility Relation [StructLayout(LayoutKind.Sequential)] public struct Relation @@ -3023,8 +3826,8 @@ public struct Relation public Eina.List Objects; ///Constructor for Relation. public Relation( - Efl.Access.RelationType Type=default(Efl.Access.RelationType), - Eina.List Objects=default(Eina.List) ) + Efl.Access.RelationType Type = default(Efl.Access.RelationType), + Eina.List Objects = default(Eina.List) ) { this.Type = Type; this.Objects = Objects; @@ -3066,9 +3869,14 @@ public struct Relation } -} } -namespace Efl { namespace Access { -/// +} + +} + +namespace Efl { + +namespace Access { + [StructLayout(LayoutKind.Sequential)] public struct GestureInfo { @@ -3088,13 +3896,13 @@ public struct GestureInfo public uint Event_time; ///Constructor for GestureInfo. public GestureInfo( - Efl.Access.Gesture Type=default(Efl.Access.Gesture), - int X_beg=default(int), - int Y_beg=default(int), - int X_end=default(int), - int Y_end=default(int), - Efl.Access.GestureState State=default(Efl.Access.GestureState), - uint Event_time=default(uint) ) + Efl.Access.Gesture Type = default(Efl.Access.Gesture), + int X_beg = default(int), + int Y_beg = default(int), + int X_end = default(int), + int Y_end = default(int), + Efl.Access.GestureState State = default(Efl.Access.GestureState), + uint Event_time = default(uint) ) { this.Type = Type; this.X_beg = X_beg; @@ -3161,4 +3969,7 @@ public struct GestureInfo } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_selection.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_selection.eo.cs index fee0ee2..e463bb9 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_selection.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_selection.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Access { +namespace Efl { + +namespace Access { + /// Elementary access selection interface -[ISelectionNativeInherit] +[Efl.Access.ISelectionConcrete.NativeMethods] public interface ISelection : Efl.Eo.IWrapper, IDisposable { @@ -16,19 +20,19 @@ int GetSelectedChildrenCount(); /// Gets child for given child index /// Index of child /// Child object -Efl.Object GetSelectedChild( int selected_child_index); +Efl.Object GetSelectedChild(int selected_child_index); /// Adds selection for given child index /// Index of child /// true if selection was added, false otherwise -bool ChildSelect( int child_index); +bool ChildSelect(int child_index); /// Removes selection for given child index /// Index of child /// true if selection was removed, false otherwise -bool SelectedChildDeselect( int child_index); +bool SelectedChildDeselect(int child_index); /// Determines if child specified by index is selected /// Index of child /// true if child is selected, false otherwise -bool IsChildSelected( int child_index); +bool IsChildSelected(int child_index); /// Adds selection for all children /// true if selection was added to all children, false otherwise bool AllChildrenSelect(); @@ -38,7 +42,7 @@ bool ClearAccessSelection(); /// Removes selection for given child index /// Index of child /// true if selection was removed, false otherwise -bool ChildDeselect( int child_index); +bool ChildDeselect(int child_index); /// Called when selection has been changed. event EventHandler AccessSelectionChangedEvt; /// Gets the number of currently selected children @@ -54,226 +58,283 @@ ISelection { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ISelectionConcrete)) - return Efl.Access.ISelectionNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ISelectionConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_access_selection_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ISelectionConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ISelectionConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object AccessSelectionChangedEvtKey = new object(); + /// Called when selection has been changed. public event EventHandler AccessSelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_SELECTION_EVENT_ACCESS_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessSelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(AccessSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_SELECTION_EVENT_ACCESS_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_AccessSelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(AccessSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AccessSelectionChangedEvt. - public void On_AccessSelectionChangedEvt(EventArgs e) + public void OnAccessSelectionChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AccessSelectionChangedEvtKey]; + var key = "_EFL_ACCESS_SELECTION_EVENT_ACCESS_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AccessSelectionChangedEvt_delegate; - private void on_AccessSelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_AccessSelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_AccessSelectionChangedEvt_delegate = new Efl.EventCb(on_AccessSelectionChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Gets the number of currently selected children /// Number of currently selected children public int GetSelectedChildrenCount() { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_selected_children_count_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_selected_children_count_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets child for given child index /// Index of child /// Child object - public Efl.Object GetSelectedChild( int selected_child_index) { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_selected_child_get_ptr.Value.Delegate(this.NativeHandle, selected_child_index); + public Efl.Object GetSelectedChild(int selected_child_index) { + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_selected_child_get_ptr.Value.Delegate(this.NativeHandle,selected_child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Adds selection for given child index /// Index of child /// true if selection was added, false otherwise - public bool ChildSelect( int child_index) { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_child_select_ptr.Value.Delegate(this.NativeHandle, child_index); + public bool ChildSelect(int child_index) { + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_child_select_ptr.Value.Delegate(this.NativeHandle,child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes selection for given child index /// Index of child /// true if selection was removed, false otherwise - public bool SelectedChildDeselect( int child_index) { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_selected_child_deselect_ptr.Value.Delegate(this.NativeHandle, child_index); + public bool SelectedChildDeselect(int child_index) { + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_selected_child_deselect_ptr.Value.Delegate(this.NativeHandle,child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Determines if child specified by index is selected /// Index of child /// true if child is selected, false otherwise - public bool IsChildSelected( int child_index) { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_is_child_selected_ptr.Value.Delegate(this.NativeHandle, child_index); + public bool IsChildSelected(int child_index) { + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_is_child_selected_ptr.Value.Delegate(this.NativeHandle,child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Adds selection for all children /// true if selection was added to all children, false otherwise public bool AllChildrenSelect() { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_all_children_select_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_all_children_select_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Clears the current selection /// true if selection was cleared, false otherwise public bool ClearAccessSelection() { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_clear_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes selection for given child index /// Index of child /// true if selection was removed, false otherwise - public bool ChildDeselect( int child_index) { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_child_deselect_ptr.Value.Delegate(this.NativeHandle, child_index); + public bool ChildDeselect(int child_index) { + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_child_deselect_ptr.Value.Delegate(this.NativeHandle,child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -286,254 +347,402 @@ private static object AccessSelectionChangedEvtKey = new object(); { return Efl.Access.ISelectionConcrete.efl_access_selection_interface_get(); } -} -public class ISelectionNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_access_selection_selected_children_count_get_static_delegate == null) - efl_access_selection_selected_children_count_get_static_delegate = new efl_access_selection_selected_children_count_get_delegate(selected_children_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectedChildrenCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_selected_children_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_children_count_get_static_delegate)}); - if (efl_access_selection_selected_child_get_static_delegate == null) - efl_access_selection_selected_child_get_static_delegate = new efl_access_selection_selected_child_get_delegate(selected_child_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectedChild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_selected_child_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_child_get_static_delegate)}); - if (efl_access_selection_child_select_static_delegate == null) - efl_access_selection_child_select_static_delegate = new efl_access_selection_child_select_delegate(child_select); - if (methods.FirstOrDefault(m => m.Name == "ChildSelect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_child_select"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_child_select_static_delegate)}); - if (efl_access_selection_selected_child_deselect_static_delegate == null) - efl_access_selection_selected_child_deselect_static_delegate = new efl_access_selection_selected_child_deselect_delegate(selected_child_deselect); - if (methods.FirstOrDefault(m => m.Name == "SelectedChildDeselect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_selected_child_deselect"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_child_deselect_static_delegate)}); - if (efl_access_selection_is_child_selected_static_delegate == null) - efl_access_selection_is_child_selected_static_delegate = new efl_access_selection_is_child_selected_delegate(is_child_selected); - if (methods.FirstOrDefault(m => m.Name == "IsChildSelected") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_is_child_selected"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_is_child_selected_static_delegate)}); - if (efl_access_selection_all_children_select_static_delegate == null) - efl_access_selection_all_children_select_static_delegate = new efl_access_selection_all_children_select_delegate(all_children_select); - if (methods.FirstOrDefault(m => m.Name == "AllChildrenSelect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_all_children_select"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_all_children_select_static_delegate)}); - if (efl_access_selection_clear_static_delegate == null) - efl_access_selection_clear_static_delegate = new efl_access_selection_clear_delegate(access_selection_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearAccessSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_clear_static_delegate)}); - if (efl_access_selection_child_deselect_static_delegate == null) - efl_access_selection_child_deselect_static_delegate = new efl_access_selection_child_deselect_delegate(child_deselect); - if (methods.FirstOrDefault(m => m.Name == "ChildDeselect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_child_deselect"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_child_deselect_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Access.ISelectionConcrete.efl_access_selection_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Access.ISelectionConcrete.efl_access_selection_interface_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_access_selection_selected_children_count_get_static_delegate == null) + { + efl_access_selection_selected_children_count_get_static_delegate = new efl_access_selection_selected_children_count_get_delegate(selected_children_count_get); + } - private delegate int efl_access_selection_selected_children_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSelectedChildrenCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_selected_children_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_children_count_get_static_delegate) }); + } + if (efl_access_selection_selected_child_get_static_delegate == null) + { + efl_access_selection_selected_child_get_static_delegate = new efl_access_selection_selected_child_get_delegate(selected_child_get); + } - public delegate int efl_access_selection_selected_children_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_selection_selected_children_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_selected_children_count_get"); - private static int selected_children_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_selection_selected_children_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ISelection)wrapper).GetSelectedChildrenCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSelectedChild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_selected_child_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_child_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_selected_children_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_selection_selected_children_count_get_delegate efl_access_selection_selected_children_count_get_static_delegate; + if (efl_access_selection_child_select_static_delegate == null) + { + efl_access_selection_child_select_static_delegate = new efl_access_selection_child_select_delegate(child_select); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_access_selection_selected_child_get_delegate(System.IntPtr obj, System.IntPtr pd, int selected_child_index); + if (methods.FirstOrDefault(m => m.Name == "ChildSelect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_child_select"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_child_select_static_delegate) }); + } + if (efl_access_selection_selected_child_deselect_static_delegate == null) + { + efl_access_selection_selected_child_deselect_static_delegate = new efl_access_selection_selected_child_deselect_delegate(selected_child_deselect); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_access_selection_selected_child_get_api_delegate(System.IntPtr obj, int selected_child_index); - public static Efl.Eo.FunctionWrapper efl_access_selection_selected_child_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_selected_child_get"); - private static Efl.Object selected_child_get(System.IntPtr obj, System.IntPtr pd, int selected_child_index) - { - Eina.Log.Debug("function efl_access_selection_selected_child_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((ISelection)wrapper).GetSelectedChild( selected_child_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SelectedChildDeselect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_selected_child_deselect"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_child_deselect_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_selected_child_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selected_child_index); - } - } - private static efl_access_selection_selected_child_get_delegate efl_access_selection_selected_child_get_static_delegate; + if (efl_access_selection_is_child_selected_static_delegate == null) + { + efl_access_selection_is_child_selected_static_delegate = new efl_access_selection_is_child_selected_delegate(is_child_selected); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_child_select_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + if (methods.FirstOrDefault(m => m.Name == "IsChildSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_is_child_selected"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_is_child_selected_static_delegate) }); + } + if (efl_access_selection_all_children_select_static_delegate == null) + { + efl_access_selection_all_children_select_static_delegate = new efl_access_selection_all_children_select_delegate(all_children_select); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_child_select_api_delegate(System.IntPtr obj, int child_index); - public static Efl.Eo.FunctionWrapper efl_access_selection_child_select_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_child_select"); - private static bool child_select(System.IntPtr obj, System.IntPtr pd, int child_index) - { - Eina.Log.Debug("function efl_access_selection_child_select was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ISelection)wrapper).ChildSelect( child_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "AllChildrenSelect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_all_children_select"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_all_children_select_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_child_select_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); - } - } - private static efl_access_selection_child_select_delegate efl_access_selection_child_select_static_delegate; + if (efl_access_selection_clear_static_delegate == null) + { + efl_access_selection_clear_static_delegate = new efl_access_selection_clear_delegate(access_selection_clear); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_selected_child_deselect_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + if (methods.FirstOrDefault(m => m.Name == "ClearAccessSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_clear_static_delegate) }); + } + if (efl_access_selection_child_deselect_static_delegate == null) + { + efl_access_selection_child_deselect_static_delegate = new efl_access_selection_child_deselect_delegate(child_deselect); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_selected_child_deselect_api_delegate(System.IntPtr obj, int child_index); - public static Efl.Eo.FunctionWrapper efl_access_selection_selected_child_deselect_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_selected_child_deselect"); - private static bool selected_child_deselect(System.IntPtr obj, System.IntPtr pd, int child_index) - { - Eina.Log.Debug("function efl_access_selection_selected_child_deselect was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ISelection)wrapper).SelectedChildDeselect( child_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ChildDeselect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_child_deselect"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_child_deselect_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_selected_child_deselect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); - } - } - private static efl_access_selection_selected_child_deselect_delegate efl_access_selection_selected_child_deselect_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.Access.ISelectionConcrete.efl_access_selection_interface_get(); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_is_child_selected_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate int efl_access_selection_selected_children_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_access_selection_selected_children_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_selection_selected_children_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_selected_children_count_get"); + + private static int selected_children_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_selection_selected_children_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ISelection)wrapper).GetSelectedChildrenCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_is_child_selected_api_delegate(System.IntPtr obj, int child_index); - public static Efl.Eo.FunctionWrapper efl_access_selection_is_child_selected_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_is_child_selected"); - private static bool is_child_selected(System.IntPtr obj, System.IntPtr pd, int child_index) - { - Eina.Log.Debug("function efl_access_selection_is_child_selected was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ISelection)wrapper).IsChildSelected( child_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_selection_is_child_selected_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); + else + { + return efl_access_selection_selected_children_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_selection_is_child_selected_delegate efl_access_selection_is_child_selected_static_delegate; + private static efl_access_selection_selected_children_count_get_delegate efl_access_selection_selected_children_count_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_access_selection_selected_child_get_delegate(System.IntPtr obj, System.IntPtr pd, int selected_child_index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_access_selection_selected_child_get_api_delegate(System.IntPtr obj, int selected_child_index); + + public static Efl.Eo.FunctionWrapper efl_access_selection_selected_child_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_selected_child_get"); + + private static Efl.Object selected_child_get(System.IntPtr obj, System.IntPtr pd, int selected_child_index) + { + Eina.Log.Debug("function efl_access_selection_selected_child_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((ISelection)wrapper).GetSelectedChild(selected_child_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_all_children_select_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_access_selection_selected_child_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selected_child_index); + } + } + + private static efl_access_selection_selected_child_get_delegate efl_access_selection_selected_child_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_child_select_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_child_select_api_delegate(System.IntPtr obj, int child_index); + + public static Efl.Eo.FunctionWrapper efl_access_selection_child_select_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_child_select"); + + private static bool child_select(System.IntPtr obj, System.IntPtr pd, int child_index) + { + Eina.Log.Debug("function efl_access_selection_child_select was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ISelection)wrapper).ChildSelect(child_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_all_children_select_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_selection_all_children_select_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_all_children_select"); - private static bool all_children_select(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_selection_all_children_select was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ISelection)wrapper).AllChildrenSelect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_selection_all_children_select_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_selection_child_select_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); + } } - } - private static efl_access_selection_all_children_select_delegate efl_access_selection_all_children_select_static_delegate; + private static efl_access_selection_child_select_delegate efl_access_selection_child_select_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_selected_child_deselect_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_selected_child_deselect_api_delegate(System.IntPtr obj, int child_index); + + public static Efl.Eo.FunctionWrapper efl_access_selection_selected_child_deselect_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_selected_child_deselect"); + + private static bool selected_child_deselect(System.IntPtr obj, System.IntPtr pd, int child_index) + { + Eina.Log.Debug("function efl_access_selection_selected_child_deselect was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ISelection)wrapper).SelectedChildDeselect(child_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_selection_selected_child_deselect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_clear_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_access_selection_selected_child_deselect_delegate efl_access_selection_selected_child_deselect_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_is_child_selected_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_is_child_selected_api_delegate(System.IntPtr obj, int child_index); + + public static Efl.Eo.FunctionWrapper efl_access_selection_is_child_selected_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_is_child_selected"); + + private static bool is_child_selected(System.IntPtr obj, System.IntPtr pd, int child_index) + { + Eina.Log.Debug("function efl_access_selection_is_child_selected was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ISelection)wrapper).IsChildSelected(child_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_selection_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_clear"); - private static bool access_selection_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_selection_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ISelection)wrapper).ClearAccessSelection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_selection_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_selection_is_child_selected_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); + } } - } - private static efl_access_selection_clear_delegate efl_access_selection_clear_static_delegate; + private static efl_access_selection_is_child_selected_delegate efl_access_selection_is_child_selected_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_all_children_select_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_all_children_select_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_selection_all_children_select_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_all_children_select"); + + private static bool all_children_select(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_selection_all_children_select was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ISelection)wrapper).AllChildrenSelect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_child_deselect_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + return _ret_var; + } + else + { + return efl_access_selection_all_children_select_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_selection_all_children_select_delegate efl_access_selection_all_children_select_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_selection_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_clear"); + + private static bool access_selection_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_selection_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ISelection)wrapper).ClearAccessSelection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_child_deselect_api_delegate(System.IntPtr obj, int child_index); - public static Efl.Eo.FunctionWrapper efl_access_selection_child_deselect_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_child_deselect"); - private static bool child_deselect(System.IntPtr obj, System.IntPtr pd, int child_index) - { - Eina.Log.Debug("function efl_access_selection_child_deselect was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ISelection)wrapper).ChildDeselect( child_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_access_selection_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_selection_clear_delegate efl_access_selection_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_child_deselect_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_child_deselect_api_delegate(System.IntPtr obj, int child_index); + + public static Efl.Eo.FunctionWrapper efl_access_selection_child_deselect_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_child_deselect"); + + private static bool child_deselect(System.IntPtr obj, System.IntPtr pd, int child_index) + { + Eina.Log.Debug("function efl_access_selection_child_deselect was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ISelection)wrapper).ChildDeselect(child_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_selection_child_deselect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); + + } + else + { + return efl_access_selection_child_deselect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); + } } - } - private static efl_access_selection_child_deselect_delegate efl_access_selection_child_deselect_static_delegate; + + private static efl_access_selection_child_deselect_delegate efl_access_selection_child_deselect_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_text.eo.cs index 8833b2f..db78ab3 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_text.eo.cs @@ -3,47 +3,51 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Access { +namespace Efl { + +namespace Access { + /// Elementary accessible text interface -[ITextNativeInherit] +[Efl.Access.ITextConcrete.NativeMethods] public interface IText : Efl.Eo.IWrapper, IDisposable { /// Gets single character present in accessible widget's text at given offset. /// Position in text. /// Character at offset. 0 when out-of bounds offset has been given. Codepoints between DC80 and DCFF indicates that string includes invalid UTF8 chars. -Eina.Unicode GetCharacter( int offset); +Eina.Unicode GetCharacter(int offset); /// Gets string, start and end offset in text according to given initial offset and granularity. /// Text granularity /// Offset indicating start of string according to given granularity. -1 in case of error. /// Offset indicating end of string according to given granularity. -1 in case of error. /// Newly allocated UTF-8 encoded string. Must be free by a user. -System.String GetString( Efl.Access.TextGranularity granularity, int start_offset, int end_offset); +System.String GetString(Efl.Access.TextGranularity granularity, int start_offset, int end_offset); /// Gets text of accessible widget. /// Position in text. /// End offset of text. /// UTF-8 encoded text. -System.String GetAccessText( int start_offset, int end_offset); +System.String GetAccessText(int start_offset, int end_offset); /// Gets offset position of caret (cursor) /// Offset int GetCaretOffset(); /// Caret offset property /// Offset /// true if caret was successfully moved, false otherwise. -bool SetCaretOffset( int offset); +bool SetCaretOffset(int offset); /// Indicate if a text attribute with a given name is set /// Text attribute name /// Position in text from which given attribute is set. /// Position in text to which given attribute is set. /// Value of text attribute. Should be free() /// true if attribute name is set, false otherwise -bool GetAttribute( System.String name, int start_offset, int end_offset, out System.String value); +bool GetAttribute(System.String name, int start_offset, int end_offset, out System.String value); /// Gets list of all text attributes. /// Start offset /// End offset /// List of text attributes -Eina.List GetTextAttributes( int start_offset, int end_offset); +Eina.List GetTextAttributes(int start_offset, int end_offset); /// Default attributes /// List of default attributes Eina.List GetDefaultAttributes(); @@ -52,7 +56,7 @@ Eina.List GetDefaultAttributes(); /// If true, x and y values will be relative to screen origin, otherwise relative to canvas /// Extents rectangle /// true if character extents, false otherwise -bool GetCharacterExtents( int offset, bool screen_coords, out Eina.Rect rect); +bool GetCharacterExtents(int offset, bool screen_coords, out Eina.Rect rect); /// Character count /// Character count int GetCharacterCount(); @@ -61,21 +65,21 @@ int GetCharacterCount(); /// X coordinate /// Y coordinate /// Offset -int GetOffsetAtPoint( bool screen_coords, int x, int y); +int GetOffsetAtPoint(bool screen_coords, int x, int y); /// Bounded ranges /// If true, x and y values will be relative to screen origin, otherwise relative to canvas /// Bounding box /// xclip /// yclip /// List of ranges -Eina.List GetBoundedRanges( bool screen_coords, Eina.Rect rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip); +Eina.List GetBoundedRanges(bool screen_coords, Eina.Rect rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip); /// Range extents /// If true, x and y values will be relative to screen origin, otherwise relative to canvas /// Start offset /// End offset /// Range rectangle /// true if range extents, false otherwise -bool GetRangeExtents( bool screen_coords, int start_offset, int end_offset, out Eina.Rect rect); +bool GetRangeExtents(bool screen_coords, int start_offset, int end_offset, out Eina.Rect rect); /// Selection count property /// Selection counter int GetSelectionsCount(); @@ -83,23 +87,22 @@ int GetSelectionsCount(); /// Selection number for identification /// Selection start offset /// Selection end offset -/// -void GetAccessSelection( int selection_number, out int start_offset, out int end_offset); +void GetAccessSelection(int selection_number, out int start_offset, out int end_offset); /// Selection property /// Selection number for identification /// Selection start offset /// Selection end offset /// true if selection was set, false otherwise -bool SetAccessSelection( int selection_number, int start_offset, int end_offset); +bool SetAccessSelection(int selection_number, int start_offset, int end_offset); /// Add selection /// Start selection from this offset /// End selection at this offset /// true if selection was added, false otherwise -bool AddSelection( int start_offset, int end_offset); +bool AddSelection(int start_offset, int end_offset); /// Remove selection /// Selection number to be removed /// true if selection was removed, false otherwise -bool SelectionRemove( int selection_number); +bool SelectionRemove(int selection_number); /// Caret moved event EventHandler AccessTextCaretMovedEvt; /// Text was inserted @@ -147,310 +150,409 @@ IText { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextConcrete)) - return Efl.Access.ITextNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_access_text_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object AccessTextCaretMovedEvtKey = new object(); + /// Caret moved public event EventHandler AccessTextCaretMovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessTextCaretMovedEvt_delegate)) { - eventHandlers.AddHandler(AccessTextCaretMovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED"; - if (RemoveNativeEventHandler(key, this.evt_AccessTextCaretMovedEvt_delegate)) { - eventHandlers.RemoveHandler(AccessTextCaretMovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AccessTextCaretMovedEvt. - public void On_AccessTextCaretMovedEvt(EventArgs e) + public void OnAccessTextCaretMovedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AccessTextCaretMovedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AccessTextCaretMovedEvt_delegate; - private void on_AccessTextCaretMovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_AccessTextCaretMovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object AccessTextInsertedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Text was inserted public event EventHandler AccessTextInsertedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.ITextAccessTextInsertedEvt_Args args = new Efl.Access.ITextAccessTextInsertedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_INSERTED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessTextInsertedEvt_delegate)) { - eventHandlers.AddHandler(AccessTextInsertedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_INSERTED"; - if (RemoveNativeEventHandler(key, this.evt_AccessTextInsertedEvt_delegate)) { - eventHandlers.RemoveHandler(AccessTextInsertedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AccessTextInsertedEvt. - public void On_AccessTextInsertedEvt(Efl.Access.ITextAccessTextInsertedEvt_Args e) + public void OnAccessTextInsertedEvt(Efl.Access.ITextAccessTextInsertedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AccessTextInsertedEvtKey]; + var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_INSERTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AccessTextInsertedEvt_delegate; - private void on_AccessTextInsertedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.ITextAccessTextInsertedEvt_Args args = new Efl.Access.ITextAccessTextInsertedEvt_Args(); - args.arg = evt.Info;; - try { - On_AccessTextInsertedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object AccessTextRemovedEvtKey = new object(); /// Text was removed public event EventHandler AccessTextRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.ITextAccessTextRemovedEvt_Args args = new Efl.Access.ITextAccessTextRemovedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessTextRemovedEvt_delegate)) { - eventHandlers.AddHandler(AccessTextRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_AccessTextRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(AccessTextRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AccessTextRemovedEvt. - public void On_AccessTextRemovedEvt(Efl.Access.ITextAccessTextRemovedEvt_Args e) + public void OnAccessTextRemovedEvt(Efl.Access.ITextAccessTextRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AccessTextRemovedEvtKey]; + var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AccessTextRemovedEvt_delegate; - private void on_AccessTextRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.ITextAccessTextRemovedEvt_Args args = new Efl.Access.ITextAccessTextRemovedEvt_Args(); - args.arg = evt.Info;; - try { - On_AccessTextRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object AccessTextSelectionChangedEvtKey = new object(); /// Text selection has changed public event EventHandler AccessTextSelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessTextSelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(AccessTextSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_AccessTextSelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(AccessTextSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AccessTextSelectionChangedEvt. - public void On_AccessTextSelectionChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AccessTextSelectionChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AccessTextSelectionChangedEvt_delegate; - private void on_AccessTextSelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnAccessTextSelectionChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_AccessTextSelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_AccessTextCaretMovedEvt_delegate = new Efl.EventCb(on_AccessTextCaretMovedEvt_NativeCallback); - evt_AccessTextInsertedEvt_delegate = new Efl.EventCb(on_AccessTextInsertedEvt_NativeCallback); - evt_AccessTextRemovedEvt_delegate = new Efl.EventCb(on_AccessTextRemovedEvt_NativeCallback); - evt_AccessTextSelectionChangedEvt_delegate = new Efl.EventCb(on_AccessTextSelectionChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Gets single character present in accessible widget's text at given offset. /// Position in text. /// Character at offset. 0 when out-of bounds offset has been given. Codepoints between DC80 and DCFF indicates that string includes invalid UTF8 chars. - public Eina.Unicode GetCharacter( int offset) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_character_get_ptr.Value.Delegate(this.NativeHandle, offset); + public Eina.Unicode GetCharacter(int offset) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_character_get_ptr.Value.Delegate(this.NativeHandle,offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -459,10 +561,10 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// Offset indicating start of string according to given granularity. -1 in case of error. /// Offset indicating end of string according to given granularity. -1 in case of error. /// Newly allocated UTF-8 encoded string. Must be free by a user. - public System.String GetString( Efl.Access.TextGranularity granularity, int start_offset, int end_offset) { + public System.String GetString(Efl.Access.TextGranularity granularity, int start_offset, int end_offset) { var _in_start_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(start_offset); var _in_end_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(end_offset); - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_string_get_ptr.Value.Delegate(this.NativeHandle, granularity, _in_start_offset, _in_end_offset); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_string_get_ptr.Value.Delegate(this.NativeHandle,granularity, _in_start_offset, _in_end_offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -470,23 +572,23 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// Position in text. /// End offset of text. /// UTF-8 encoded text. - public System.String GetAccessText( int start_offset, int end_offset) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_get_ptr.Value.Delegate(this.NativeHandle, start_offset, end_offset); + public System.String GetAccessText(int start_offset, int end_offset) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_get_ptr.Value.Delegate(this.NativeHandle,start_offset, end_offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets offset position of caret (cursor) /// Offset public int GetCaretOffset() { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_caret_offset_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_caret_offset_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Caret offset property /// Offset /// true if caret was successfully moved, false otherwise. - public bool SetCaretOffset( int offset) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_caret_offset_set_ptr.Value.Delegate(this.NativeHandle, offset); + public bool SetCaretOffset(int offset) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_caret_offset_set_ptr.Value.Delegate(this.NativeHandle,offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -496,10 +598,10 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// Position in text to which given attribute is set. /// Value of text attribute. Should be free() /// true if attribute name is set, false otherwise - public bool GetAttribute( System.String name, int start_offset, int end_offset, out System.String value) { + public bool GetAttribute(System.String name, int start_offset, int end_offset, out System.String value) { var _in_start_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(start_offset); var _in_end_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(end_offset); - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_attribute_get_ptr.Value.Delegate(this.NativeHandle, name, _in_start_offset, _in_end_offset, out value); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_attribute_get_ptr.Value.Delegate(this.NativeHandle,name, _in_start_offset, _in_end_offset, out value); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -507,17 +609,17 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// Start offset /// End offset /// List of text attributes - public Eina.List GetTextAttributes( int start_offset, int end_offset) { + public Eina.List GetTextAttributes(int start_offset, int end_offset) { var _in_start_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(start_offset); var _in_end_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(end_offset); - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_attributes_get_ptr.Value.Delegate(this.NativeHandle, _in_start_offset, _in_end_offset); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_attributes_get_ptr.Value.Delegate(this.NativeHandle,_in_start_offset, _in_end_offset); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, true); } /// Default attributes /// List of default attributes public Eina.List GetDefaultAttributes() { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_default_attributes_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_default_attributes_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, true); } @@ -526,9 +628,9 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// If true, x and y values will be relative to screen origin, otherwise relative to canvas /// Extents rectangle /// true if character extents, false otherwise - public bool GetCharacterExtents( int offset, bool screen_coords, out Eina.Rect rect) { + public bool GetCharacterExtents(int offset, bool screen_coords, out Eina.Rect rect) { var _out_rect = new Eina.Rect.NativeStruct(); - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_character_extents_get_ptr.Value.Delegate(this.NativeHandle, offset, screen_coords, out _out_rect); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_character_extents_get_ptr.Value.Delegate(this.NativeHandle,offset, screen_coords, out _out_rect); Eina.Error.RaiseIfUnhandledException(); rect = _out_rect; return _ret_var; @@ -536,7 +638,7 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// Character count /// Character count public int GetCharacterCount() { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_character_count_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_character_count_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -545,8 +647,8 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// X coordinate /// Y coordinate /// Offset - public int GetOffsetAtPoint( bool screen_coords, int x, int y) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_offset_at_point_get_ptr.Value.Delegate(this.NativeHandle, screen_coords, x, y); + public int GetOffsetAtPoint(bool screen_coords, int x, int y) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_offset_at_point_get_ptr.Value.Delegate(this.NativeHandle,screen_coords, x, y); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -556,9 +658,9 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// xclip /// yclip /// List of ranges - public Eina.List GetBoundedRanges( bool screen_coords, Eina.Rect rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip) { + public Eina.List GetBoundedRanges(bool screen_coords, Eina.Rect rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip) { Eina.Rect.NativeStruct _in_rect = rect; - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_bounded_ranges_get_ptr.Value.Delegate(this.NativeHandle, screen_coords, _in_rect, xclip, yclip); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_bounded_ranges_get_ptr.Value.Delegate(this.NativeHandle,screen_coords, _in_rect, xclip, yclip); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, true); } @@ -568,9 +670,9 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// End offset /// Range rectangle /// true if range extents, false otherwise - public bool GetRangeExtents( bool screen_coords, int start_offset, int end_offset, out Eina.Rect rect) { + public bool GetRangeExtents(bool screen_coords, int start_offset, int end_offset, out Eina.Rect rect) { var _out_rect = new Eina.Rect.NativeStruct(); - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_range_extents_get_ptr.Value.Delegate(this.NativeHandle, screen_coords, start_offset, end_offset, out _out_rect); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_range_extents_get_ptr.Value.Delegate(this.NativeHandle,screen_coords, start_offset, end_offset, out _out_rect); Eina.Error.RaiseIfUnhandledException(); rect = _out_rect; return _ret_var; @@ -578,7 +680,7 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// Selection count property /// Selection counter public int GetSelectionsCount() { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_selections_count_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_selections_count_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -586,9 +688,8 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// Selection number for identification /// Selection start offset /// Selection end offset - /// - public void GetAccessSelection( int selection_number, out int start_offset, out int end_offset) { - Efl.Access.ITextNativeInherit.efl_access_text_access_selection_get_ptr.Value.Delegate(this.NativeHandle, selection_number, out start_offset, out end_offset); + public void GetAccessSelection(int selection_number, out int start_offset, out int end_offset) { + Efl.Access.ITextConcrete.NativeMethods.efl_access_text_access_selection_get_ptr.Value.Delegate(this.NativeHandle,selection_number, out start_offset, out end_offset); Eina.Error.RaiseIfUnhandledException(); } /// Selection property @@ -596,8 +697,8 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// Selection start offset /// Selection end offset /// true if selection was set, false otherwise - public bool SetAccessSelection( int selection_number, int start_offset, int end_offset) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_access_selection_set_ptr.Value.Delegate(this.NativeHandle, selection_number, start_offset, end_offset); + public bool SetAccessSelection(int selection_number, int start_offset, int end_offset) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_access_selection_set_ptr.Value.Delegate(this.NativeHandle,selection_number, start_offset, end_offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -605,16 +706,16 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// Start selection from this offset /// End selection at this offset /// true if selection was added, false otherwise - public bool AddSelection( int start_offset, int end_offset) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_selection_add_ptr.Value.Delegate(this.NativeHandle, start_offset, end_offset); + public bool AddSelection(int start_offset, int end_offset) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_selection_add_ptr.Value.Delegate(this.NativeHandle,start_offset, end_offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Remove selection /// Selection number to be removed /// true if selection was removed, false otherwise - public bool SelectionRemove( int selection_number) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_selection_remove_ptr.Value.Delegate(this.NativeHandle, selection_number); + public bool SelectionRemove(int selection_number) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_selection_remove_ptr.Value.Delegate(this.NativeHandle,selection_number); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -622,7 +723,7 @@ private static object AccessTextSelectionChangedEvtKey = new object(); /// Offset public int CaretOffset { get { return GetCaretOffset(); } - set { SetCaretOffset( value); } + set { SetCaretOffset(value); } } /// Default attributes /// List of default attributes @@ -643,558 +744,879 @@ private static object AccessTextSelectionChangedEvtKey = new object(); { return Efl.Access.ITextConcrete.efl_access_text_interface_get(); } -} -public class ITextNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_access_text_character_get_static_delegate == null) - efl_access_text_character_get_static_delegate = new efl_access_text_character_get_delegate(character_get); - if (methods.FirstOrDefault(m => m.Name == "GetCharacter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_character_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_get_static_delegate)}); - if (efl_access_text_string_get_static_delegate == null) - efl_access_text_string_get_static_delegate = new efl_access_text_string_get_delegate(string_get); - if (methods.FirstOrDefault(m => m.Name == "GetString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_string_get_static_delegate)}); - if (efl_access_text_get_static_delegate == null) - efl_access_text_get_static_delegate = new efl_access_text_get_delegate(access_text_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccessText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_get_static_delegate)}); - if (efl_access_text_caret_offset_get_static_delegate == null) - efl_access_text_caret_offset_get_static_delegate = new efl_access_text_caret_offset_get_delegate(caret_offset_get); - if (methods.FirstOrDefault(m => m.Name == "GetCaretOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_caret_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_caret_offset_get_static_delegate)}); - if (efl_access_text_caret_offset_set_static_delegate == null) - efl_access_text_caret_offset_set_static_delegate = new efl_access_text_caret_offset_set_delegate(caret_offset_set); - if (methods.FirstOrDefault(m => m.Name == "SetCaretOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_caret_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_caret_offset_set_static_delegate)}); - if (efl_access_text_attribute_get_static_delegate == null) - efl_access_text_attribute_get_static_delegate = new efl_access_text_attribute_get_delegate(attribute_get); - if (methods.FirstOrDefault(m => m.Name == "GetAttribute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_attribute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_attribute_get_static_delegate)}); - if (efl_access_text_attributes_get_static_delegate == null) - efl_access_text_attributes_get_static_delegate = new efl_access_text_attributes_get_delegate(text_attributes_get); - if (methods.FirstOrDefault(m => m.Name == "GetTextAttributes") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_attributes_get_static_delegate)}); - if (efl_access_text_default_attributes_get_static_delegate == null) - efl_access_text_default_attributes_get_static_delegate = new efl_access_text_default_attributes_get_delegate(default_attributes_get); - if (methods.FirstOrDefault(m => m.Name == "GetDefaultAttributes") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_default_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_default_attributes_get_static_delegate)}); - if (efl_access_text_character_extents_get_static_delegate == null) - efl_access_text_character_extents_get_static_delegate = new efl_access_text_character_extents_get_delegate(character_extents_get); - if (methods.FirstOrDefault(m => m.Name == "GetCharacterExtents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_character_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_extents_get_static_delegate)}); - if (efl_access_text_character_count_get_static_delegate == null) - efl_access_text_character_count_get_static_delegate = new efl_access_text_character_count_get_delegate(character_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetCharacterCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_character_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_count_get_static_delegate)}); - if (efl_access_text_offset_at_point_get_static_delegate == null) - efl_access_text_offset_at_point_get_static_delegate = new efl_access_text_offset_at_point_get_delegate(offset_at_point_get); - if (methods.FirstOrDefault(m => m.Name == "GetOffsetAtPoint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_offset_at_point_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_offset_at_point_get_static_delegate)}); - if (efl_access_text_bounded_ranges_get_static_delegate == null) - efl_access_text_bounded_ranges_get_static_delegate = new efl_access_text_bounded_ranges_get_delegate(bounded_ranges_get); - if (methods.FirstOrDefault(m => m.Name == "GetBoundedRanges") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_bounded_ranges_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_bounded_ranges_get_static_delegate)}); - if (efl_access_text_range_extents_get_static_delegate == null) - efl_access_text_range_extents_get_static_delegate = new efl_access_text_range_extents_get_delegate(range_extents_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeExtents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_range_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_range_extents_get_static_delegate)}); - if (efl_access_text_selections_count_get_static_delegate == null) - efl_access_text_selections_count_get_static_delegate = new efl_access_text_selections_count_get_delegate(selections_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectionsCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_selections_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selections_count_get_static_delegate)}); - if (efl_access_text_access_selection_get_static_delegate == null) - efl_access_text_access_selection_get_static_delegate = new efl_access_text_access_selection_get_delegate(access_selection_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccessSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_access_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_access_selection_get_static_delegate)}); - if (efl_access_text_access_selection_set_static_delegate == null) - efl_access_text_access_selection_set_static_delegate = new efl_access_text_access_selection_set_delegate(access_selection_set); - if (methods.FirstOrDefault(m => m.Name == "SetAccessSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_access_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_access_selection_set_static_delegate)}); - if (efl_access_text_selection_add_static_delegate == null) - efl_access_text_selection_add_static_delegate = new efl_access_text_selection_add_delegate(selection_add); - if (methods.FirstOrDefault(m => m.Name == "AddSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_selection_add"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selection_add_static_delegate)}); - if (efl_access_text_selection_remove_static_delegate == null) - efl_access_text_selection_remove_static_delegate = new efl_access_text_selection_remove_delegate(selection_remove); - if (methods.FirstOrDefault(m => m.Name == "SelectionRemove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_selection_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selection_remove_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Access.ITextConcrete.efl_access_text_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Access.ITextConcrete.efl_access_text_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_access_text_character_get_static_delegate == null) + { + efl_access_text_character_get_static_delegate = new efl_access_text_character_get_delegate(character_get); + } - private delegate Eina.Unicode efl_access_text_character_get_delegate(System.IntPtr obj, System.IntPtr pd, int offset); + if (methods.FirstOrDefault(m => m.Name == "GetCharacter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_character_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_get_static_delegate) }); + } + if (efl_access_text_string_get_static_delegate == null) + { + efl_access_text_string_get_static_delegate = new efl_access_text_string_get_delegate(string_get); + } - public delegate Eina.Unicode efl_access_text_character_get_api_delegate(System.IntPtr obj, int offset); - public static Efl.Eo.FunctionWrapper efl_access_text_character_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_character_get"); - private static Eina.Unicode character_get(System.IntPtr obj, System.IntPtr pd, int offset) - { - Eina.Log.Debug("function efl_access_text_character_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Unicode _ret_var = default(Eina.Unicode); - try { - _ret_var = ((IText)wrapper).GetCharacter( offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_string_get_static_delegate) }); + } + + if (efl_access_text_get_static_delegate == null) + { + efl_access_text_get_static_delegate = new efl_access_text_get_delegate(access_text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAccessText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_get_static_delegate) }); + } + + if (efl_access_text_caret_offset_get_static_delegate == null) + { + efl_access_text_caret_offset_get_static_delegate = new efl_access_text_caret_offset_get_delegate(caret_offset_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCaretOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_caret_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_caret_offset_get_static_delegate) }); + } + + if (efl_access_text_caret_offset_set_static_delegate == null) + { + efl_access_text_caret_offset_set_static_delegate = new efl_access_text_caret_offset_set_delegate(caret_offset_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCaretOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_caret_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_caret_offset_set_static_delegate) }); + } + + if (efl_access_text_attribute_get_static_delegate == null) + { + efl_access_text_attribute_get_static_delegate = new efl_access_text_attribute_get_delegate(attribute_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAttribute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_attribute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_attribute_get_static_delegate) }); + } + + if (efl_access_text_attributes_get_static_delegate == null) + { + efl_access_text_attributes_get_static_delegate = new efl_access_text_attributes_get_delegate(text_attributes_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTextAttributes") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_attributes_get_static_delegate) }); + } + + if (efl_access_text_default_attributes_get_static_delegate == null) + { + efl_access_text_default_attributes_get_static_delegate = new efl_access_text_default_attributes_get_delegate(default_attributes_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetDefaultAttributes") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_default_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_default_attributes_get_static_delegate) }); + } + + if (efl_access_text_character_extents_get_static_delegate == null) + { + efl_access_text_character_extents_get_static_delegate = new efl_access_text_character_extents_get_delegate(character_extents_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCharacterExtents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_character_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_extents_get_static_delegate) }); + } + + if (efl_access_text_character_count_get_static_delegate == null) + { + efl_access_text_character_count_get_static_delegate = new efl_access_text_character_count_get_delegate(character_count_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCharacterCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_character_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_count_get_static_delegate) }); + } + + if (efl_access_text_offset_at_point_get_static_delegate == null) + { + efl_access_text_offset_at_point_get_static_delegate = new efl_access_text_offset_at_point_get_delegate(offset_at_point_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetOffsetAtPoint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_offset_at_point_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_offset_at_point_get_static_delegate) }); + } + + if (efl_access_text_bounded_ranges_get_static_delegate == null) + { + efl_access_text_bounded_ranges_get_static_delegate = new efl_access_text_bounded_ranges_get_delegate(bounded_ranges_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBoundedRanges") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_bounded_ranges_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_bounded_ranges_get_static_delegate) }); + } + + if (efl_access_text_range_extents_get_static_delegate == null) + { + efl_access_text_range_extents_get_static_delegate = new efl_access_text_range_extents_get_delegate(range_extents_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeExtents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_range_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_range_extents_get_static_delegate) }); + } + + if (efl_access_text_selections_count_get_static_delegate == null) + { + efl_access_text_selections_count_get_static_delegate = new efl_access_text_selections_count_get_delegate(selections_count_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSelectionsCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_selections_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selections_count_get_static_delegate) }); } + + if (efl_access_text_access_selection_get_static_delegate == null) + { + efl_access_text_access_selection_get_static_delegate = new efl_access_text_access_selection_get_delegate(access_selection_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAccessSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_access_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_access_selection_get_static_delegate) }); + } + + if (efl_access_text_access_selection_set_static_delegate == null) + { + efl_access_text_access_selection_set_static_delegate = new efl_access_text_access_selection_set_delegate(access_selection_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAccessSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_access_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_access_selection_set_static_delegate) }); + } + + if (efl_access_text_selection_add_static_delegate == null) + { + efl_access_text_selection_add_static_delegate = new efl_access_text_selection_add_delegate(selection_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_selection_add"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selection_add_static_delegate) }); + } + + if (efl_access_text_selection_remove_static_delegate == null) + { + efl_access_text_selection_remove_static_delegate = new efl_access_text_selection_remove_delegate(selection_remove); + } + + if (methods.FirstOrDefault(m => m.Name == "SelectionRemove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_selection_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selection_remove_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.Access.ITextConcrete.efl_access_text_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.Unicode efl_access_text_character_get_delegate(System.IntPtr obj, System.IntPtr pd, int offset); + + + public delegate Eina.Unicode efl_access_text_character_get_api_delegate(System.IntPtr obj, int offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_character_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_character_get"); + + private static Eina.Unicode character_get(System.IntPtr obj, System.IntPtr pd, int offset) + { + Eina.Log.Debug("function efl_access_text_character_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Unicode _ret_var = default(Eina.Unicode); + try + { + _ret_var = ((IText)wrapper).GetCharacter(offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_text_character_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset); + + } + else + { + return efl_access_text_character_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset); + } } - } - private static efl_access_text_character_get_delegate efl_access_text_character_get_static_delegate; + private static efl_access_text_character_get_delegate efl_access_text_character_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] private delegate System.String efl_access_text_string_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + private delegate System.String efl_access_text_string_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + public delegate System.String efl_access_text_string_get_api_delegate(System.IntPtr obj, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] public delegate System.String efl_access_text_string_get_api_delegate(System.IntPtr obj, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_string_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_string_get"); - private static System.String string_get(System.IntPtr obj, System.IntPtr pd, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset) - { - Eina.Log.Debug("function efl_access_text_string_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); + public static Efl.Eo.FunctionWrapper efl_access_text_string_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_string_get"); + + private static System.String string_get(System.IntPtr obj, System.IntPtr pd, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset) + { + Eina.Log.Debug("function efl_access_text_string_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); var _in_end_offset = Eina.PrimitiveConversion.PointerToManaged(end_offset); System.String _ret_var = default(System.String); - try { - _ret_var = ((IText)wrapper).GetString( granularity, _in_start_offset, _in_end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IText)wrapper).GetString(granularity, _in_start_offset, _in_end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_text_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), granularity, start_offset, end_offset); + + } + else + { + return efl_access_text_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), granularity, start_offset, end_offset); + } } - } - private static efl_access_text_string_get_delegate efl_access_text_string_get_static_delegate; + private static efl_access_text_string_get_delegate efl_access_text_string_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] private delegate System.String efl_access_text_get_delegate(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + private delegate System.String efl_access_text_get_delegate(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + public delegate System.String efl_access_text_get_api_delegate(System.IntPtr obj, int start_offset, int end_offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_get"); + + private static System.String access_text_get(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset) + { + Eina.Log.Debug("function efl_access_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IText)wrapper).GetAccessText(start_offset, end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] public delegate System.String efl_access_text_get_api_delegate(System.IntPtr obj, int start_offset, int end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_get"); - private static System.String access_text_get(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset) - { - Eina.Log.Debug("function efl_access_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IText)wrapper).GetAccessText( start_offset, end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); + + } + else + { + return efl_access_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); + } } - } - private static efl_access_text_get_delegate efl_access_text_get_static_delegate; + private static efl_access_text_get_delegate efl_access_text_get_static_delegate; - private delegate int efl_access_text_caret_offset_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_access_text_caret_offset_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_access_text_caret_offset_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_text_caret_offset_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_caret_offset_get"); + + private static int caret_offset_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_text_caret_offset_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IText)wrapper).GetCaretOffset(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_access_text_caret_offset_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_text_caret_offset_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_caret_offset_get"); - private static int caret_offset_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_text_caret_offset_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IText)wrapper).GetCaretOffset(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_text_caret_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_text_caret_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_text_caret_offset_get_delegate efl_access_text_caret_offset_get_static_delegate; + private static efl_access_text_caret_offset_get_delegate efl_access_text_caret_offset_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_caret_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, int offset); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_caret_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, int offset); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_caret_offset_set_api_delegate(System.IntPtr obj, int offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_caret_offset_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_caret_offset_set"); + + private static bool caret_offset_set(System.IntPtr obj, System.IntPtr pd, int offset) + { + Eina.Log.Debug("function efl_access_text_caret_offset_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IText)wrapper).SetCaretOffset(offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_caret_offset_set_api_delegate(System.IntPtr obj, int offset); - public static Efl.Eo.FunctionWrapper efl_access_text_caret_offset_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_caret_offset_set"); - private static bool caret_offset_set(System.IntPtr obj, System.IntPtr pd, int offset) - { - Eina.Log.Debug("function efl_access_text_caret_offset_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).SetCaretOffset( offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_text_caret_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset); + + } + else + { + return efl_access_text_caret_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset); + } } - } - private static efl_access_text_caret_offset_set_delegate efl_access_text_caret_offset_set_static_delegate; + private static efl_access_text_caret_offset_set_delegate efl_access_text_caret_offset_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_attribute_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, System.IntPtr start_offset, System.IntPtr end_offset, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] out System.String value); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_attribute_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, System.IntPtr start_offset, System.IntPtr end_offset, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] out System.String value); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_attribute_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, System.IntPtr start_offset, System.IntPtr end_offset, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] out System.String value); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_attribute_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, System.IntPtr start_offset, System.IntPtr end_offset, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] out System.String value); - public static Efl.Eo.FunctionWrapper efl_access_text_attribute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_attribute_get"); - private static bool attribute_get(System.IntPtr obj, System.IntPtr pd, System.String name, System.IntPtr start_offset, System.IntPtr end_offset, out System.String value) - { - Eina.Log.Debug("function efl_access_text_attribute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); + public static Efl.Eo.FunctionWrapper efl_access_text_attribute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_attribute_get"); + + private static bool attribute_get(System.IntPtr obj, System.IntPtr pd, System.String name, System.IntPtr start_offset, System.IntPtr end_offset, out System.String value) + { + Eina.Log.Debug("function efl_access_text_attribute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); var _in_end_offset = Eina.PrimitiveConversion.PointerToManaged(end_offset); value = default(System.String); bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).GetAttribute( name, _in_start_offset, _in_end_offset, out value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IText)wrapper).GetAttribute(name, _in_start_offset, _in_end_offset, out value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_text_attribute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, start_offset, end_offset, out value); + + } + else + { + return efl_access_text_attribute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, start_offset, end_offset, out value); + } } - } - private static efl_access_text_attribute_get_delegate efl_access_text_attribute_get_static_delegate; + private static efl_access_text_attribute_get_delegate efl_access_text_attribute_get_static_delegate; - private delegate System.IntPtr efl_access_text_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr start_offset, System.IntPtr end_offset); + + private delegate System.IntPtr efl_access_text_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr start_offset, System.IntPtr end_offset); + + public delegate System.IntPtr efl_access_text_attributes_get_api_delegate(System.IntPtr obj, System.IntPtr start_offset, System.IntPtr end_offset); - public delegate System.IntPtr efl_access_text_attributes_get_api_delegate(System.IntPtr obj, System.IntPtr start_offset, System.IntPtr end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_attributes_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_attributes_get"); - private static System.IntPtr text_attributes_get(System.IntPtr obj, System.IntPtr pd, System.IntPtr start_offset, System.IntPtr end_offset) - { - Eina.Log.Debug("function efl_access_text_attributes_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); + public static Efl.Eo.FunctionWrapper efl_access_text_attributes_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_attributes_get"); + + private static System.IntPtr text_attributes_get(System.IntPtr obj, System.IntPtr pd, System.IntPtr start_offset, System.IntPtr end_offset) + { + Eina.Log.Debug("function efl_access_text_attributes_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); var _in_end_offset = Eina.PrimitiveConversion.PointerToManaged(end_offset); Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((IText)wrapper).GetTextAttributes( _in_start_offset, _in_end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IText)wrapper).GetTextAttributes(_in_start_offset, _in_end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; - } else { - return efl_access_text_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); + + } + else + { + return efl_access_text_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); + } } - } - private static efl_access_text_attributes_get_delegate efl_access_text_attributes_get_static_delegate; + private static efl_access_text_attributes_get_delegate efl_access_text_attributes_get_static_delegate; - private delegate System.IntPtr efl_access_text_default_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_access_text_default_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_access_text_default_attributes_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_text_default_attributes_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_default_attributes_get"); + + private static System.IntPtr default_attributes_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_text_default_attributes_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((IText)wrapper).GetDefaultAttributes(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate System.IntPtr efl_access_text_default_attributes_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_text_default_attributes_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_default_attributes_get"); - private static System.IntPtr default_attributes_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_text_default_attributes_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((IText)wrapper).GetDefaultAttributes(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; - } else { - return efl_access_text_default_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_text_default_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_text_default_attributes_get_delegate efl_access_text_default_attributes_get_static_delegate; + private static efl_access_text_default_attributes_get_delegate efl_access_text_default_attributes_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_character_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, int offset, [MarshalAs(UnmanagedType.U1)] bool screen_coords, out Eina.Rect.NativeStruct rect); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_character_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, int offset, [MarshalAs(UnmanagedType.U1)] bool screen_coords, out Eina.Rect.NativeStruct rect); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_character_extents_get_api_delegate(System.IntPtr obj, int offset, [MarshalAs(UnmanagedType.U1)] bool screen_coords, out Eina.Rect.NativeStruct rect); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_character_extents_get_api_delegate(System.IntPtr obj, int offset, [MarshalAs(UnmanagedType.U1)] bool screen_coords, out Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_access_text_character_extents_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_character_extents_get"); - private static bool character_extents_get(System.IntPtr obj, System.IntPtr pd, int offset, bool screen_coords, out Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_access_text_character_extents_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _out_rect = default(Eina.Rect); + public static Efl.Eo.FunctionWrapper efl_access_text_character_extents_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_character_extents_get"); + + private static bool character_extents_get(System.IntPtr obj, System.IntPtr pd, int offset, bool screen_coords, out Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_access_text_character_extents_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _out_rect = default(Eina.Rect); bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).GetCharacterExtents( offset, screen_coords, out _out_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IText)wrapper).GetCharacterExtents(offset, screen_coords, out _out_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + rect = _out_rect; return _ret_var; - } else { - return efl_access_text_character_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset, screen_coords, out rect); + + } + else + { + return efl_access_text_character_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset, screen_coords, out rect); + } } - } - private static efl_access_text_character_extents_get_delegate efl_access_text_character_extents_get_static_delegate; + private static efl_access_text_character_extents_get_delegate efl_access_text_character_extents_get_static_delegate; - private delegate int efl_access_text_character_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_access_text_character_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_access_text_character_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_text_character_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_character_count_get"); + + private static int character_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_text_character_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IText)wrapper).GetCharacterCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_access_text_character_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_text_character_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_character_count_get"); - private static int character_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_text_character_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IText)wrapper).GetCharacterCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_text_character_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_text_character_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_text_character_count_get_delegate efl_access_text_character_count_get_static_delegate; + private static efl_access_text_character_count_get_delegate efl_access_text_character_count_get_static_delegate; - private delegate int efl_access_text_offset_at_point_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + + private delegate int efl_access_text_offset_at_point_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + + public delegate int efl_access_text_offset_at_point_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_access_text_offset_at_point_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_offset_at_point_get"); + + private static int offset_at_point_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) + { + Eina.Log.Debug("function efl_access_text_offset_at_point_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IText)wrapper).GetOffsetAtPoint(screen_coords, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_access_text_offset_at_point_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); - public static Efl.Eo.FunctionWrapper efl_access_text_offset_at_point_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_offset_at_point_get"); - private static int offset_at_point_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) - { - Eina.Log.Debug("function efl_access_text_offset_at_point_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IText)wrapper).GetOffsetAtPoint( screen_coords, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_text_offset_at_point_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); + + } + else + { + return efl_access_text_offset_at_point_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); + } } - } - private static efl_access_text_offset_at_point_get_delegate efl_access_text_offset_at_point_get_static_delegate; + private static efl_access_text_offset_at_point_get_delegate efl_access_text_offset_at_point_get_static_delegate; - private delegate System.IntPtr efl_access_text_bounded_ranges_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip); + + private delegate System.IntPtr efl_access_text_bounded_ranges_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip); + + public delegate System.IntPtr efl_access_text_bounded_ranges_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip); - public delegate System.IntPtr efl_access_text_bounded_ranges_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip); - public static Efl.Eo.FunctionWrapper efl_access_text_bounded_ranges_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_bounded_ranges_get"); - private static System.IntPtr bounded_ranges_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip) - { - Eina.Log.Debug("function efl_access_text_bounded_ranges_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; + public static Efl.Eo.FunctionWrapper efl_access_text_bounded_ranges_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_bounded_ranges_get"); + + private static System.IntPtr bounded_ranges_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip) + { + Eina.Log.Debug("function efl_access_text_bounded_ranges_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((IText)wrapper).GetBoundedRanges( screen_coords, _in_rect, xclip, yclip); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IText)wrapper).GetBoundedRanges(screen_coords, _in_rect, xclip, yclip); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; - } else { - return efl_access_text_bounded_ranges_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, rect, xclip, yclip); + + } + else + { + return efl_access_text_bounded_ranges_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, rect, xclip, yclip); + } } - } - private static efl_access_text_bounded_ranges_get_delegate efl_access_text_bounded_ranges_get_static_delegate; + private static efl_access_text_bounded_ranges_get_delegate efl_access_text_bounded_ranges_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_range_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_range_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_range_extents_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_range_extents_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_access_text_range_extents_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_range_extents_get"); - private static bool range_extents_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_access_text_range_extents_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _out_rect = default(Eina.Rect); + public static Efl.Eo.FunctionWrapper efl_access_text_range_extents_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_range_extents_get"); + + private static bool range_extents_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_access_text_range_extents_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _out_rect = default(Eina.Rect); bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).GetRangeExtents( screen_coords, start_offset, end_offset, out _out_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IText)wrapper).GetRangeExtents(screen_coords, start_offset, end_offset, out _out_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + rect = _out_rect; return _ret_var; - } else { - return efl_access_text_range_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, start_offset, end_offset, out rect); + + } + else + { + return efl_access_text_range_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, start_offset, end_offset, out rect); + } } - } - private static efl_access_text_range_extents_get_delegate efl_access_text_range_extents_get_static_delegate; + private static efl_access_text_range_extents_get_delegate efl_access_text_range_extents_get_static_delegate; + + + private delegate int efl_access_text_selections_count_get_delegate(System.IntPtr obj, System.IntPtr pd); - private delegate int efl_access_text_selections_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_access_text_selections_count_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_access_text_selections_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_selections_count_get"); + + private static int selections_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_text_selections_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IText)wrapper).GetSelectionsCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_access_text_selections_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_text_selections_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_selections_count_get"); - private static int selections_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_text_selections_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IText)wrapper).GetSelectionsCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_text_selections_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_text_selections_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_text_selections_count_get_delegate efl_access_text_selections_count_get_static_delegate; + private static efl_access_text_selections_count_get_delegate efl_access_text_selections_count_get_static_delegate; + + + private delegate void efl_access_text_access_selection_get_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number, out int start_offset, out int end_offset); - private delegate void efl_access_text_access_selection_get_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number, out int start_offset, out int end_offset); + + public delegate void efl_access_text_access_selection_get_api_delegate(System.IntPtr obj, int selection_number, out int start_offset, out int end_offset); + public static Efl.Eo.FunctionWrapper efl_access_text_access_selection_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_access_selection_get"); - public delegate void efl_access_text_access_selection_get_api_delegate(System.IntPtr obj, int selection_number, out int start_offset, out int end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_access_selection_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_access_selection_get"); - private static void access_selection_get(System.IntPtr obj, System.IntPtr pd, int selection_number, out int start_offset, out int end_offset) - { - Eina.Log.Debug("function efl_access_text_access_selection_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - start_offset = default(int); end_offset = default(int); - try { - ((IText)wrapper).GetAccessSelection( selection_number, out start_offset, out end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_text_access_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number, out start_offset, out end_offset); + private static void access_selection_get(System.IntPtr obj, System.IntPtr pd, int selection_number, out int start_offset, out int end_offset) + { + Eina.Log.Debug("function efl_access_text_access_selection_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + start_offset = default(int); end_offset = default(int); + try + { + ((IText)wrapper).GetAccessSelection(selection_number, out start_offset, out end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_text_access_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number, out start_offset, out end_offset); + } } - } - private static efl_access_text_access_selection_get_delegate efl_access_text_access_selection_get_static_delegate; + private static efl_access_text_access_selection_get_delegate efl_access_text_access_selection_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_access_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number, int start_offset, int end_offset); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_access_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number, int start_offset, int end_offset); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_access_selection_set_api_delegate(System.IntPtr obj, int selection_number, int start_offset, int end_offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_access_selection_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_access_selection_set"); + + private static bool access_selection_set(System.IntPtr obj, System.IntPtr pd, int selection_number, int start_offset, int end_offset) + { + Eina.Log.Debug("function efl_access_text_access_selection_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IText)wrapper).SetAccessSelection(selection_number, start_offset, end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_access_selection_set_api_delegate(System.IntPtr obj, int selection_number, int start_offset, int end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_access_selection_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_access_selection_set"); - private static bool access_selection_set(System.IntPtr obj, System.IntPtr pd, int selection_number, int start_offset, int end_offset) - { - Eina.Log.Debug("function efl_access_text_access_selection_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).SetAccessSelection( selection_number, start_offset, end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_text_access_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number, start_offset, end_offset); + + } + else + { + return efl_access_text_access_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number, start_offset, end_offset); + } } - } - private static efl_access_text_access_selection_set_delegate efl_access_text_access_selection_set_static_delegate; + private static efl_access_text_access_selection_set_delegate efl_access_text_access_selection_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_selection_add_delegate(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_selection_add_delegate(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_selection_add_api_delegate(System.IntPtr obj, int start_offset, int end_offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_selection_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_selection_add"); + + private static bool selection_add(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset) + { + Eina.Log.Debug("function efl_access_text_selection_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IText)wrapper).AddSelection(start_offset, end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_selection_add_api_delegate(System.IntPtr obj, int start_offset, int end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_selection_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_selection_add"); - private static bool selection_add(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset) - { - Eina.Log.Debug("function efl_access_text_selection_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).AddSelection( start_offset, end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_text_selection_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); + + } + else + { + return efl_access_text_selection_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); + } } - } - private static efl_access_text_selection_add_delegate efl_access_text_selection_add_static_delegate; + private static efl_access_text_selection_add_delegate efl_access_text_selection_add_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_selection_remove_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_selection_remove_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_selection_remove_api_delegate(System.IntPtr obj, int selection_number); + + public static Efl.Eo.FunctionWrapper efl_access_text_selection_remove_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_selection_remove"); + + private static bool selection_remove(System.IntPtr obj, System.IntPtr pd, int selection_number) + { + Eina.Log.Debug("function efl_access_text_selection_remove was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IText)wrapper).SelectionRemove(selection_number); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_selection_remove_api_delegate(System.IntPtr obj, int selection_number); - public static Efl.Eo.FunctionWrapper efl_access_text_selection_remove_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_selection_remove"); - private static bool selection_remove(System.IntPtr obj, System.IntPtr pd, int selection_number) - { - Eina.Log.Debug("function efl_access_text_selection_remove was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IText)wrapper).SelectionRemove( selection_number); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_text_selection_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number); + + } + else + { + return efl_access_text_selection_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number); + } } - } - private static efl_access_text_selection_remove_delegate efl_access_text_selection_remove_static_delegate; + + private static efl_access_text_selection_remove_delegate efl_access_text_selection_remove_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } -namespace Efl { namespace Access { + +} + +namespace Efl { + +namespace Access { + /// Text accessibility granularity public enum TextGranularity { @@ -1209,8 +1631,15 @@ Line = 3, /// Paragraph granularity Paragraph = 4, } -} } -namespace Efl { namespace Access { + +} + +} + +namespace Efl { + +namespace Access { + /// Text clip type public enum TextClipType { @@ -1223,8 +1652,15 @@ Max = 2, /// Both clip types Both = 3, } -} } -namespace Efl { namespace Access { + +} + +} + +namespace Efl { + +namespace Access { + /// Text attribute [StructLayout(LayoutKind.Sequential)] public struct TextAttribute @@ -1235,8 +1671,8 @@ public struct TextAttribute public System.String Value; ///Constructor for TextAttribute. public TextAttribute( - System.String Name=default(System.String), - System.String Value=default(System.String) ) + System.String Name = default(System.String), + System.String Value = default(System.String) ) { this.Name = Name; this.Value = Value; @@ -1278,8 +1714,14 @@ public struct TextAttribute } -} } -namespace Efl { namespace Access { +} + +} + +namespace Efl { + +namespace Access { + /// Text range [StructLayout(LayoutKind.Sequential)] public struct TextRange @@ -1292,9 +1734,9 @@ public struct TextRange public char Content; ///Constructor for TextRange. public TextRange( - int Start_offset=default(int), - int End_offset=default(int), - char Content=default(char) ) + int Start_offset = default(int), + int End_offset = default(int), + char Content = default(char) ) { this.Start_offset = Start_offset; this.End_offset = End_offset; @@ -1341,8 +1783,14 @@ public struct TextRange } -} } -namespace Efl { namespace Access { +} + +} + +namespace Efl { + +namespace Access { + /// Text change information [StructLayout(LayoutKind.Sequential)] public struct TextChangeInfo @@ -1357,10 +1805,10 @@ public struct TextChangeInfo public uint Len; ///Constructor for TextChangeInfo. public TextChangeInfo( - System.String Content=default(System.String), - bool Inserted=default(bool), - uint Pos=default(uint), - uint Len=default(uint) ) + System.String Content = default(System.String), + bool Inserted = default(bool), + uint Pos = default(uint), + uint Len = default(uint) ) { this.Content = Content; this.Inserted = Inserted; @@ -1412,4 +1860,7 @@ public struct TextChangeInfo } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_value.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_value.eo.cs index 073a103..af29a34 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_value.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_value.eo.cs @@ -3,29 +3,31 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Access { +namespace Efl { + +namespace Access { + /// Elementary Access value interface -[IValueNativeInherit] +[Efl.Access.IValueConcrete.NativeMethods] public interface IValue : Efl.Eo.IWrapper, IDisposable { /// Gets value displayed by a accessible widget. /// Value of widget casted to floating point number. /// string describing value in given context eg. small, enough -/// -void GetValueAndText( out double value, out System.String text); +void GetValueAndText(out double value, out System.String text); /// Value and text property /// Value of widget casted to floating point number. /// string describing value in given context eg. small, enough /// true if setting widgets value has succeeded, otherwise false . -bool SetValueAndText( double value, System.String text); +bool SetValueAndText(double value, System.String text); /// Gets a range of all possible values and its description /// Lower limit of the range /// Upper limit of the range /// Description of the range -/// -void GetRange( out double lower_limit, out double upper_limit, out System.String description); +void GetRange(out double lower_limit, out double upper_limit, out System.String description); /// Gets an minimal incrementation value /// Minimal incrementation value double GetIncrement(); @@ -42,82 +44,116 @@ IValue { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IValueConcrete)) - return Efl.Access.IValueNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IValueConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_access_value_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IValueConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IValueConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Gets value displayed by a accessible widget. /// Value of widget casted to floating point number. /// string describing value in given context eg. small, enough - /// - public void GetValueAndText( out double value, out System.String text) { - Efl.Access.IValueNativeInherit.efl_access_value_and_text_get_ptr.Value.Delegate(this.NativeHandle, out value, out text); + public void GetValueAndText(out double value, out System.String text) { + Efl.Access.IValueConcrete.NativeMethods.efl_access_value_and_text_get_ptr.Value.Delegate(this.NativeHandle,out value, out text); Eina.Error.RaiseIfUnhandledException(); } /// Value and text property /// Value of widget casted to floating point number. /// string describing value in given context eg. small, enough /// true if setting widgets value has succeeded, otherwise false . - public bool SetValueAndText( double value, System.String text) { - var _ret_var = Efl.Access.IValueNativeInherit.efl_access_value_and_text_set_ptr.Value.Delegate(this.NativeHandle, value, text); + public bool SetValueAndText(double value, System.String text) { + var _ret_var = Efl.Access.IValueConcrete.NativeMethods.efl_access_value_and_text_set_ptr.Value.Delegate(this.NativeHandle,value, text); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -125,15 +161,14 @@ IValue /// Lower limit of the range /// Upper limit of the range /// Description of the range - /// - public void GetRange( out double lower_limit, out double upper_limit, out System.String description) { - Efl.Access.IValueNativeInherit.efl_access_value_range_get_ptr.Value.Delegate(this.NativeHandle, out lower_limit, out upper_limit, out description); + public void GetRange(out double lower_limit, out double upper_limit, out System.String description) { + Efl.Access.IValueConcrete.NativeMethods.efl_access_value_range_get_ptr.Value.Delegate(this.NativeHandle,out lower_limit, out upper_limit, out description); Eina.Error.RaiseIfUnhandledException(); } /// Gets an minimal incrementation value /// Minimal incrementation value public double GetIncrement() { - var _ret_var = Efl.Access.IValueNativeInherit.efl_access_value_increment_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IValueConcrete.NativeMethods.efl_access_value_increment_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -146,140 +181,220 @@ IValue { return Efl.Access.IValueConcrete.efl_access_value_interface_get(); } -} -public class IValueNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_access_value_and_text_get_static_delegate == null) - efl_access_value_and_text_get_static_delegate = new efl_access_value_and_text_get_delegate(value_and_text_get); - if (methods.FirstOrDefault(m => m.Name == "GetValueAndText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_and_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_get_static_delegate)}); - if (efl_access_value_and_text_set_static_delegate == null) - efl_access_value_and_text_set_static_delegate = new efl_access_value_and_text_set_delegate(value_and_text_set); - if (methods.FirstOrDefault(m => m.Name == "SetValueAndText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_and_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_set_static_delegate)}); - if (efl_access_value_range_get_static_delegate == null) - efl_access_value_range_get_static_delegate = new efl_access_value_range_get_delegate(range_get); - if (methods.FirstOrDefault(m => m.Name == "GetRange") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_range_get_static_delegate)}); - if (efl_access_value_increment_get_static_delegate == null) - efl_access_value_increment_get_static_delegate = new efl_access_value_increment_get_delegate(increment_get); - if (methods.FirstOrDefault(m => m.Name == "GetIncrement") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_increment_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_increment_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Access.IValueConcrete.efl_access_value_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Access.IValueConcrete.efl_access_value_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_access_value_and_text_get_static_delegate == null) + { + efl_access_value_and_text_get_static_delegate = new efl_access_value_and_text_get_delegate(value_and_text_get); + } - private delegate void efl_access_value_and_text_get_delegate(System.IntPtr obj, System.IntPtr pd, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); + if (methods.FirstOrDefault(m => m.Name == "GetValueAndText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_and_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_get_static_delegate) }); + } + if (efl_access_value_and_text_set_static_delegate == null) + { + efl_access_value_and_text_set_static_delegate = new efl_access_value_and_text_set_delegate(value_and_text_set); + } - public delegate void efl_access_value_and_text_get_api_delegate(System.IntPtr obj, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); - public static Efl.Eo.FunctionWrapper efl_access_value_and_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_and_text_get"); - private static void value_and_text_get(System.IntPtr obj, System.IntPtr pd, out double value, out System.String text) - { - Eina.Log.Debug("function efl_access_value_and_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - value = default(double); System.String _out_text = default(System.String); - - try { - ((IValue)wrapper).GetValueAndText( out value, out _out_text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetValueAndText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_and_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_set_static_delegate) }); } - text = _out_text; - } else { - efl_access_value_and_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out value, out text); + + if (efl_access_value_range_get_static_delegate == null) + { + efl_access_value_range_get_static_delegate = new efl_access_value_range_get_delegate(range_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_range_get_static_delegate) }); + } + + if (efl_access_value_increment_get_static_delegate == null) + { + efl_access_value_increment_get_static_delegate = new efl_access_value_increment_get_delegate(increment_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetIncrement") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_increment_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_increment_get_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.Access.IValueConcrete.efl_access_value_interface_get(); } - } - private static efl_access_value_and_text_get_delegate efl_access_value_and_text_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_value_and_text_set_delegate(System.IntPtr obj, System.IntPtr pd, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + private delegate void efl_access_value_and_text_get_delegate(System.IntPtr obj, System.IntPtr pd, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); + + public delegate void efl_access_value_and_text_get_api_delegate(System.IntPtr obj, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_value_and_text_set_api_delegate(System.IntPtr obj, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_access_value_and_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_and_text_set"); - private static bool value_and_text_set(System.IntPtr obj, System.IntPtr pd, double value, System.String text) - { - Eina.Log.Debug("function efl_access_value_and_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IValue)wrapper).SetValueAndText( value, text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_value_and_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_and_text_get"); + + private static void value_and_text_get(System.IntPtr obj, System.IntPtr pd, out double value, out System.String text) + { + Eina.Log.Debug("function efl_access_value_and_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + value = default(double); System.String _out_text = default(System.String); + + try + { + ((IValue)wrapper).GetValueAndText(out value, out _out_text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + text = _out_text; + + } + else + { + efl_access_value_and_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out value, out text); } + } + + private static efl_access_value_and_text_get_delegate efl_access_value_and_text_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_value_and_text_set_delegate(System.IntPtr obj, System.IntPtr pd, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_value_and_text_set_api_delegate(System.IntPtr obj, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_access_value_and_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_and_text_set"); + + private static bool value_and_text_set(System.IntPtr obj, System.IntPtr pd, double value, System.String text) + { + Eina.Log.Debug("function efl_access_value_and_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IValue)wrapper).SetValueAndText(value, text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_value_and_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value, text); + + } + else + { + return efl_access_value_and_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value, text); + } } - } - private static efl_access_value_and_text_set_delegate efl_access_value_and_text_set_static_delegate; + private static efl_access_value_and_text_set_delegate efl_access_value_and_text_set_static_delegate; - private delegate void efl_access_value_range_get_delegate(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); + + private delegate void efl_access_value_range_get_delegate(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); + + public delegate void efl_access_value_range_get_api_delegate(System.IntPtr obj, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); - public delegate void efl_access_value_range_get_api_delegate(System.IntPtr obj, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); - public static Efl.Eo.FunctionWrapper efl_access_value_range_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_range_get"); - private static void range_get(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, out System.String description) - { - Eina.Log.Debug("function efl_access_value_range_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - lower_limit = default(double); upper_limit = default(double); System.String _out_description = default(System.String); + public static Efl.Eo.FunctionWrapper efl_access_value_range_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_range_get"); + + private static void range_get(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, out System.String description) + { + Eina.Log.Debug("function efl_access_value_range_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + lower_limit = default(double); upper_limit = default(double); System.String _out_description = default(System.String); - try { - ((IValue)wrapper).GetRange( out lower_limit, out upper_limit, out _out_description); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((IValue)wrapper).GetRange(out lower_limit, out upper_limit, out _out_description); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + description = _out_description; - } else { - efl_access_value_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out lower_limit, out upper_limit, out description); + + } + else + { + efl_access_value_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out lower_limit, out upper_limit, out description); + } } - } - private static efl_access_value_range_get_delegate efl_access_value_range_get_static_delegate; + private static efl_access_value_range_get_delegate efl_access_value_range_get_static_delegate; - private delegate double efl_access_value_increment_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_access_value_increment_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_access_value_increment_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_value_increment_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_increment_get"); + + private static double increment_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_value_increment_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IValue)wrapper).GetIncrement(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_access_value_increment_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_value_increment_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_increment_get"); - private static double increment_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_value_increment_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IValue)wrapper).GetIncrement(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_value_increment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_value_increment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_value_increment_get_delegate efl_access_value_increment_get_static_delegate; + + private static efl_access_value_increment_get_delegate efl_access_value_increment_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_widget_action.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_widget_action.eo.cs index b8db681..54cac34 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_widget_action.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_widget_action.eo.cs @@ -3,10 +3,16 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Access { namespace Widget { +namespace Efl { + +namespace Access { + +namespace Widget { + /// Access widget action mixin -[IActionNativeInherit] +[Efl.Access.Widget.IActionConcrete.NativeMethods] public interface IAction : Efl.Access.IAction , Efl.Eo.IWrapper, IDisposable @@ -14,8 +20,7 @@ public interface IAction : /// Elementary actions /// NULL-terminated array of Efl.Access.Action_Data. Efl.Access.ActionData GetElmActions(); - /// - event EventHandler ReadingStateChangedEvt; + event EventHandler ReadingStateChangedEvt; /// Elementary actions /// NULL-terminated array of Efl.Access.Action_Data. Efl.Access.ActionData ElmActions { @@ -29,211 +34,267 @@ IAction , Efl.Access.IAction { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IActionConcrete)) - return Efl.Access.Widget.IActionNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IActionConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_access_widget_action_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IActionConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IActionConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ReadingStateChangedEvtKey = new object(); - /// + public event EventHandler ReadingStateChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WIDGET_ACTION_EVENT_READING_STATE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ReadingStateChangedEvt_delegate)) { - eventHandlers.AddHandler(ReadingStateChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WIDGET_ACTION_EVENT_READING_STATE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ReadingStateChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ReadingStateChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ReadingStateChangedEvt. - public void On_ReadingStateChangedEvt(EventArgs e) + public void OnReadingStateChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ReadingStateChangedEvtKey]; + var key = "_EFL_ACCESS_WIDGET_ACTION_EVENT_READING_STATE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ReadingStateChangedEvt_delegate; - private void on_ReadingStateChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ReadingStateChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ReadingStateChangedEvt_delegate = new Efl.EventCb(on_ReadingStateChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Elementary actions /// NULL-terminated array of Efl.Access.Action_Data. public Efl.Access.ActionData GetElmActions() { - var _ret_var = Efl.Access.Widget.IActionNativeInherit.efl_access_widget_action_elm_actions_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.Widget.IActionConcrete.NativeMethods.efl_access_widget_action_elm_actions_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets action name for given id /// ID to get action name for /// Action name - public System.String GetActionName( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_name_get_ptr.Value.Delegate(this.NativeHandle, id); + public System.String GetActionName(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_name_get_ptr.Value.Delegate(this.NativeHandle,id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets localized action name for given id /// ID to get localized name for /// Localized name - public System.String GetActionLocalizedName( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_localized_name_get_ptr.Value.Delegate(this.NativeHandle, id); + public System.String GetActionLocalizedName(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_localized_name_get_ptr.Value.Delegate(this.NativeHandle,id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get list of available widget actions /// Contains statically allocated strings. public Eina.List GetActions() { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_actions_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_actions_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, false, false); } /// Performs action on given widget. /// ID for widget /// true if action was performed, false otherwise - public bool ActionDo( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_do_ptr.Value.Delegate(this.NativeHandle, id); + public bool ActionDo(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_do_ptr.Value.Delegate(this.NativeHandle,id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets configured keybinding for specific action and widget. /// ID for widget /// Should be freed by the user. - public System.String GetActionKeybinding( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_keybinding_get_ptr.Value.Delegate(this.NativeHandle, id); + public System.String GetActionKeybinding(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_keybinding_get_ptr.Value.Delegate(this.NativeHandle,id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -251,196 +312,312 @@ private static object ReadingStateChangedEvtKey = new object(); { return Efl.Access.Widget.IActionConcrete.efl_access_widget_action_mixin_get(); } -} -public class IActionNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_access_widget_action_elm_actions_get_static_delegate == null) - efl_access_widget_action_elm_actions_get_static_delegate = new efl_access_widget_action_elm_actions_get_delegate(elm_actions_get); - if (methods.FirstOrDefault(m => m.Name == "GetElmActions") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_widget_action_elm_actions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_widget_action_elm_actions_get_static_delegate)}); - if (efl_access_action_name_get_static_delegate == null) - efl_access_action_name_get_static_delegate = new efl_access_action_name_get_delegate(action_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetActionName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_name_get_static_delegate)}); - if (efl_access_action_localized_name_get_static_delegate == null) - efl_access_action_localized_name_get_static_delegate = new efl_access_action_localized_name_get_delegate(action_localized_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetActionLocalizedName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_localized_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_localized_name_get_static_delegate)}); - if (efl_access_action_actions_get_static_delegate == null) - efl_access_action_actions_get_static_delegate = new efl_access_action_actions_get_delegate(actions_get); - if (methods.FirstOrDefault(m => m.Name == "GetActions") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_actions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_actions_get_static_delegate)}); - if (efl_access_action_do_static_delegate == null) - efl_access_action_do_static_delegate = new efl_access_action_do_delegate(action_do); - if (methods.FirstOrDefault(m => m.Name == "ActionDo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_do"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_do_static_delegate)}); - if (efl_access_action_keybinding_get_static_delegate == null) - efl_access_action_keybinding_get_static_delegate = new efl_access_action_keybinding_get_delegate(action_keybinding_get); - if (methods.FirstOrDefault(m => m.Name == "GetActionKeybinding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_keybinding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_keybinding_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Access.Widget.IActionConcrete.efl_access_widget_action_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Access.Widget.IActionConcrete.efl_access_widget_action_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_access_widget_action_elm_actions_get_static_delegate == null) + { + efl_access_widget_action_elm_actions_get_static_delegate = new efl_access_widget_action_elm_actions_get_delegate(elm_actions_get); + } - private delegate Efl.Access.ActionData efl_access_widget_action_elm_actions_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetElmActions") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_widget_action_elm_actions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_widget_action_elm_actions_get_static_delegate) }); + } + if (efl_access_action_name_get_static_delegate == null) + { + efl_access_action_name_get_static_delegate = new efl_access_action_name_get_delegate(action_name_get); + } - public delegate Efl.Access.ActionData efl_access_widget_action_elm_actions_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_widget_action_elm_actions_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_widget_action_elm_actions_get"); - private static Efl.Access.ActionData elm_actions_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_widget_action_elm_actions_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.ActionData _ret_var = default(Efl.Access.ActionData); - try { - _ret_var = ((IActionConcrete)wrapper).GetElmActions(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetActionName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_name_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_widget_action_elm_actions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_widget_action_elm_actions_get_delegate efl_access_widget_action_elm_actions_get_static_delegate; + if (efl_access_action_localized_name_get_static_delegate == null) + { + efl_access_action_localized_name_get_static_delegate = new efl_access_action_localized_name_get_delegate(action_localized_name_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_action_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + if (methods.FirstOrDefault(m => m.Name == "GetActionLocalizedName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_localized_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_localized_name_get_static_delegate) }); + } + if (efl_access_action_actions_get_static_delegate == null) + { + efl_access_action_actions_get_static_delegate = new efl_access_action_actions_get_delegate(actions_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_action_name_get_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_name_get"); - private static System.String action_name_get(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IActionConcrete)wrapper).GetActionName( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetActions") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_actions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_actions_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_action_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + + if (efl_access_action_do_static_delegate == null) + { + efl_access_action_do_static_delegate = new efl_access_action_do_delegate(action_do); + } + + if (methods.FirstOrDefault(m => m.Name == "ActionDo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_do"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_do_static_delegate) }); + } + + if (efl_access_action_keybinding_get_static_delegate == null) + { + efl_access_action_keybinding_get_static_delegate = new efl_access_action_keybinding_get_delegate(action_keybinding_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetActionKeybinding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_keybinding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_keybinding_get_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.Access.Widget.IActionConcrete.efl_access_widget_action_mixin_get(); } - } - private static efl_access_action_name_get_delegate efl_access_action_name_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_action_localized_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + + private delegate Efl.Access.ActionData efl_access_widget_action_elm_actions_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Access.ActionData efl_access_widget_action_elm_actions_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_widget_action_elm_actions_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_widget_action_elm_actions_get"); + + private static Efl.Access.ActionData elm_actions_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_widget_action_elm_actions_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.ActionData _ret_var = default(Efl.Access.ActionData); + try + { + _ret_var = ((IActionConcrete)wrapper).GetElmActions(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_action_localized_name_get_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_localized_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_localized_name_get"); - private static System.String action_localized_name_get(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_localized_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IActionConcrete)wrapper).GetActionLocalizedName( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_access_widget_action_elm_actions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_widget_action_elm_actions_get_delegate efl_access_widget_action_elm_actions_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_action_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_action_name_get_api_delegate(System.IntPtr obj, int id); + + public static Efl.Eo.FunctionWrapper efl_access_action_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_name_get"); + + private static System.String action_name_get(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IActionConcrete)wrapper).GetActionName(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_action_localized_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + + } + else + { + return efl_access_action_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } } - } - private static efl_access_action_localized_name_get_delegate efl_access_action_localized_name_get_static_delegate; + private static efl_access_action_name_get_delegate efl_access_action_name_get_static_delegate; - private delegate System.IntPtr efl_access_action_actions_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_action_localized_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_action_localized_name_get_api_delegate(System.IntPtr obj, int id); + + public static Efl.Eo.FunctionWrapper efl_access_action_localized_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_localized_name_get"); + + private static System.String action_localized_name_get(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_localized_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IActionConcrete)wrapper).GetActionLocalizedName(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate System.IntPtr efl_access_action_actions_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_action_actions_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_actions_get"); - private static System.IntPtr actions_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_action_actions_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((IActionConcrete)wrapper).GetActions(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var.Handle; - } else { - return efl_access_action_actions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_action_localized_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } } - } - private static efl_access_action_actions_get_delegate efl_access_action_actions_get_static_delegate; + private static efl_access_action_localized_name_get_delegate efl_access_action_localized_name_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_action_do_delegate(System.IntPtr obj, System.IntPtr pd, int id); + + private delegate System.IntPtr efl_access_action_actions_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_access_action_actions_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_action_actions_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_actions_get"); + + private static System.IntPtr actions_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_action_actions_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((IActionConcrete)wrapper).GetActions(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_action_do_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_do_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_do"); - private static bool action_do(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_do was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IActionConcrete)wrapper).ActionDo( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_action_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + else + { + return efl_access_action_actions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_action_do_delegate efl_access_action_do_static_delegate; + private static efl_access_action_actions_get_delegate efl_access_action_actions_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] private delegate System.String efl_access_action_keybinding_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_action_do_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_action_do_api_delegate(System.IntPtr obj, int id); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] public delegate System.String efl_access_action_keybinding_get_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_keybinding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_keybinding_get"); - private static System.String action_keybinding_get(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_keybinding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IActionConcrete)wrapper).GetActionKeybinding( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_action_do_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_do"); + + private static bool action_do(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_do was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IActionConcrete)wrapper).ActionDo(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_action_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); } + } + + private static efl_access_action_do_delegate efl_access_action_do_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + private delegate System.String efl_access_action_keybinding_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + public delegate System.String efl_access_action_keybinding_get_api_delegate(System.IntPtr obj, int id); + + public static Efl.Eo.FunctionWrapper efl_access_action_keybinding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_keybinding_get"); + + private static System.String action_keybinding_get(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_keybinding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IActionConcrete)wrapper).GetActionKeybinding(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_action_keybinding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + + } + else + { + return efl_access_action_keybinding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } } - } - private static efl_access_action_keybinding_get_delegate efl_access_action_keybinding_get_static_delegate; + + private static efl_access_action_keybinding_get_delegate efl_access_action_keybinding_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } } +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_window.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_window.eo.cs index 0661812..3604cb9 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_window.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_window.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Access { +namespace Efl { + +namespace Access { + /// Elementary accessible window interface -[IWindowNativeInherit] +[Efl.Access.IWindowConcrete.NativeMethods] public interface IWindow : Efl.Eo.IWrapper, IDisposable { @@ -32,458 +36,572 @@ IWindow { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IWindowConcrete)) - return Efl.Access.IWindowNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IWindowConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_access_window_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IWindowConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IWindowConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object WindowCreatedEvtKey = new object(); + /// Called when new window has been created. public event EventHandler WindowCreatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_CREATED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowCreatedEvt_delegate)) { - eventHandlers.AddHandler(WindowCreatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_CREATED"; - if (RemoveNativeEventHandler(key, this.evt_WindowCreatedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowCreatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowCreatedEvt. - public void On_WindowCreatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowCreatedEvtKey]; + public void OnWindowCreatedEvt(EventArgs e) + { + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_CREATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowCreatedEvt_delegate; - private void on_WindowCreatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_WindowCreatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object WindowDestroyedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been destroyed. public event EventHandler WindowDestroyedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DESTROYED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowDestroyedEvt_delegate)) { - eventHandlers.AddHandler(WindowDestroyedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DESTROYED"; - if (RemoveNativeEventHandler(key, this.evt_WindowDestroyedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowDestroyedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowDestroyedEvt. - public void On_WindowDestroyedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowDestroyedEvtKey]; + public void OnWindowDestroyedEvt(EventArgs e) + { + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DESTROYED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowDestroyedEvt_delegate; - private void on_WindowDestroyedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_WindowDestroyedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object WindowActivatedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been activated. (focused) public event EventHandler WindowActivatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_ACTIVATED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowActivatedEvt_delegate)) { - eventHandlers.AddHandler(WindowActivatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_ACTIVATED"; - if (RemoveNativeEventHandler(key, this.evt_WindowActivatedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowActivatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowActivatedEvt. - public void On_WindowActivatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowActivatedEvtKey]; + public void OnWindowActivatedEvt(EventArgs e) + { + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_ACTIVATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowActivatedEvt_delegate; - private void on_WindowActivatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_WindowActivatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object WindowDeactivatedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been deactivated (unfocused). public event EventHandler WindowDeactivatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DEACTIVATED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowDeactivatedEvt_delegate)) { - eventHandlers.AddHandler(WindowDeactivatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DEACTIVATED"; - if (RemoveNativeEventHandler(key, this.evt_WindowDeactivatedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowDeactivatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowDeactivatedEvt. - public void On_WindowDeactivatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowDeactivatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowDeactivatedEvt_delegate; - private void on_WindowDeactivatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_WindowDeactivatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public void OnWindowDeactivatedEvt(EventArgs e) + { + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DEACTIVATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WindowMaximizedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been maximized public event EventHandler WindowMaximizedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MAXIMIZED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowMaximizedEvt_delegate)) { - eventHandlers.AddHandler(WindowMaximizedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MAXIMIZED"; - if (RemoveNativeEventHandler(key, this.evt_WindowMaximizedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowMaximizedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowMaximizedEvt. - public void On_WindowMaximizedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowMaximizedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowMaximizedEvt_delegate; - private void on_WindowMaximizedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_WindowMaximizedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public void OnWindowMaximizedEvt(EventArgs e) + { + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MAXIMIZED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WindowMinimizedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been minimized public event EventHandler WindowMinimizedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MINIMIZED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowMinimizedEvt_delegate)) { - eventHandlers.AddHandler(WindowMinimizedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MINIMIZED"; - if (RemoveNativeEventHandler(key, this.evt_WindowMinimizedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowMinimizedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowMinimizedEvt. - public void On_WindowMinimizedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowMinimizedEvtKey]; + public void OnWindowMinimizedEvt(EventArgs e) + { + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MINIMIZED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowMinimizedEvt_delegate; - private void on_WindowMinimizedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_WindowMinimizedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object WindowRestoredEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been restored public event EventHandler WindowRestoredEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_RESTORED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowRestoredEvt_delegate)) { - eventHandlers.AddHandler(WindowRestoredEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_RESTORED"; - if (RemoveNativeEventHandler(key, this.evt_WindowRestoredEvt_delegate)) { - eventHandlers.RemoveHandler(WindowRestoredEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowRestoredEvt. - public void On_WindowRestoredEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowRestoredEvtKey]; + public void OnWindowRestoredEvt(EventArgs e) + { + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_RESTORED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowRestoredEvt_delegate; - private void on_WindowRestoredEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_WindowRestoredEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_WindowCreatedEvt_delegate = new Efl.EventCb(on_WindowCreatedEvt_NativeCallback); - evt_WindowDestroyedEvt_delegate = new Efl.EventCb(on_WindowDestroyedEvt_NativeCallback); - evt_WindowActivatedEvt_delegate = new Efl.EventCb(on_WindowActivatedEvt_NativeCallback); - evt_WindowDeactivatedEvt_delegate = new Efl.EventCb(on_WindowDeactivatedEvt_NativeCallback); - evt_WindowMaximizedEvt_delegate = new Efl.EventCb(on_WindowMaximizedEvt_NativeCallback); - evt_WindowMinimizedEvt_delegate = new Efl.EventCb(on_WindowMinimizedEvt_NativeCallback); - evt_WindowRestoredEvt_delegate = new Efl.EventCb(on_WindowRestoredEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } private static IntPtr GetEflClassStatic() { return Efl.Access.IWindowConcrete.efl_access_window_interface_get(); } -} -public class IWindowNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Access.IWindowConcrete.efl_access_window_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Access.IWindowConcrete.efl_access_window_interface_get(); - } + /// 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(); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Access.IWindowConcrete.efl_access_window_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_all.cs b/internals/src/EflSharp/EflSharp/efl/efl_all.cs index 70b9825..7e7e9a0 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_all.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_all.cs @@ -30,7 +30,7 @@ static class UnsafeNativeMethods static UnsafeNativeMethods() { - _evas_init = new Efl.Eo.FunctionWrapper("evas", "evas_init"); + _evas_init = new Efl.Eo.FunctionWrapper(efl.Libs.Evas, "evas_init"); } public static void evas_init() @@ -43,6 +43,13 @@ public static class All { private static bool InitializedUi = false; + public static bool MainLoopInitialized { + get; + private set; + } + + public static readonly object InitLock = new object(); + public static void Init(Efl.Csharp.Components components = Efl.Csharp.Components.Basic) { Eina.Config.Init(); @@ -56,24 +63,38 @@ public static class All Efl.Ui.Config.Init(); InitializedUi = true; } + Monitor.Enter(InitLock); + MainLoopInitialized = true; + Monitor.Exit(InitLock); } /// Shutdowns all EFL subsystems. public static void Shutdown() { // Try to cleanup everything before actually shutting down. + Eina.Log.Debug("Calling GC before shutdown"); System.GC.Collect(); System.GC.WaitForPendingFinalizers(); + Monitor.Enter(InitLock); + MainLoopInitialized = false; + Monitor.Exit(InitLock); + if (InitializedUi) { + Eina.Log.Debug("Shutting down Elementary"); Efl.Ui.Config.Shutdown(); } + Eina.Log.Debug("Shutting down Eldbus"); eldbus.Config.Shutdown(); + Eina.Log.Debug("Shutting down Evas"); evas_shutdown(); + Eina.Log.Debug("Shutting down Ecore"); ecore_shutdown(); + Eina.Log.Debug("Shutting down Eo"); Efl.Eo.Config.Shutdown(); + Eina.Log.Debug("Shutting down Eina"); Eina.Config.Shutdown(); } } @@ -97,6 +118,10 @@ public static class Config elm_init(0, IntPtr.Zero); elm_policy_set((int)Elm.Policy.Quit, (int)Elm.PolicyQuit.LastWindowHidden); + + // TIZEN_ONLY(20190425) Use efl-sharp-theme.edj on EflSharp + Efl.Ui.Theme.GetDefault().AddOverlay("/usr/share/efl-sharp/efl-sharp-theme.edj"); + // } public static void Shutdown() diff --git a/internals/src/EflSharp/EflSharp/efl/efl_app.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_app.eo.cs index 4f977ce..6d226b6 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_app.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_app.eo.cs @@ -3,37 +3,48 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Object representing the application itself. /// (Since EFL 1.22) -[AppNativeInherit] +[Efl.App.NativeMethods] public abstract class App : Efl.Loop, Efl.Eo.IWrapper,Efl.Core.ICommandLine { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (App)) - return Efl.AppNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(App)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_app_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public App(Efl.Object parent= null - ) : - base(efl_app_class_get(), typeof(App), parent) + ) : base(efl_app_class_get(), typeof(App), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected App(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class AppRealized : App { @@ -41,359 +52,426 @@ public abstract class App : Efl.Loop, Efl.Eo.IWrapper,Efl.Core.ICommandLine { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected App(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected App(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object PauseEvtKey = new object(); + /// Called when the application is not going be displayed or otherwise used by a user for some time /// (Since EFL 1.22) public event EventHandler PauseEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_APP_EVENT_PAUSE"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_PauseEvt_delegate)) { - eventHandlers.AddHandler(PauseEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_APP_EVENT_PAUSE"; - if (RemoveNativeEventHandler(key, this.evt_PauseEvt_delegate)) { - eventHandlers.RemoveHandler(PauseEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event PauseEvt. - public void On_PauseEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PauseEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PauseEvt_delegate; - private void on_PauseEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPauseEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_PauseEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_APP_EVENT_PAUSE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ResumeEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called before a window is rendered after a pause event /// (Since EFL 1.22) public event EventHandler ResumeEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_APP_EVENT_RESUME"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_ResumeEvt_delegate)) { - eventHandlers.AddHandler(ResumeEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_APP_EVENT_RESUME"; - if (RemoveNativeEventHandler(key, this.evt_ResumeEvt_delegate)) { - eventHandlers.RemoveHandler(ResumeEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event ResumeEvt. - public void On_ResumeEvt(EventArgs e) + public void OnResumeEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ResumeEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ResumeEvt_delegate; - private void on_ResumeEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ResumeEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_APP_EVENT_RESUME"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object StandbyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when the application's windows are all destroyed /// (Since EFL 1.22) public event EventHandler StandbyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_APP_EVENT_STANDBY"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_StandbyEvt_delegate)) { - eventHandlers.AddHandler(StandbyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_APP_EVENT_STANDBY"; - if (RemoveNativeEventHandler(key, this.evt_StandbyEvt_delegate)) { - eventHandlers.RemoveHandler(StandbyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event StandbyEvt. - public void On_StandbyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[StandbyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_StandbyEvt_delegate; - private void on_StandbyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnStandbyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_StandbyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_APP_EVENT_STANDBY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object TerminateEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called before starting the shutdown of the application /// (Since EFL 1.22) public event EventHandler TerminateEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_APP_EVENT_TERMINATE"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_TerminateEvt_delegate)) { - eventHandlers.AddHandler(TerminateEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_APP_EVENT_TERMINATE"; - if (RemoveNativeEventHandler(key, this.evt_TerminateEvt_delegate)) { - eventHandlers.RemoveHandler(TerminateEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event TerminateEvt. - public void On_TerminateEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[TerminateEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_TerminateEvt_delegate; - private void on_TerminateEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnTerminateEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_TerminateEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_APP_EVENT_TERMINATE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SignalUsr1EvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// System specific, but on unix maps to SIGUSR1 signal to the process - only called on main loop object /// (Since EFL 1.22) public event EventHandler SignalUsr1Evt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_APP_EVENT_SIGNAL_USR1"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_SignalUsr1Evt_delegate)) { - eventHandlers.AddHandler(SignalUsr1EvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_APP_EVENT_SIGNAL_USR1"; - if (RemoveNativeEventHandler(key, this.evt_SignalUsr1Evt_delegate)) { - eventHandlers.RemoveHandler(SignalUsr1EvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event SignalUsr1Evt. - public void On_SignalUsr1Evt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SignalUsr1EvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SignalUsr1Evt_delegate; - private void on_SignalUsr1Evt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSignalUsr1Evt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SignalUsr1Evt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_APP_EVENT_SIGNAL_USR1"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SignalUsr2EvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// System specific, but on unix maps to SIGUSR2 signal to the process - only called on main loop object /// (Since EFL 1.22) public event EventHandler SignalUsr2Evt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_APP_EVENT_SIGNAL_USR2"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_SignalUsr2Evt_delegate)) { - eventHandlers.AddHandler(SignalUsr2EvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_APP_EVENT_SIGNAL_USR2"; - if (RemoveNativeEventHandler(key, this.evt_SignalUsr2Evt_delegate)) { - eventHandlers.RemoveHandler(SignalUsr2EvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event SignalUsr2Evt. - public void On_SignalUsr2Evt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SignalUsr2EvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SignalUsr2Evt_delegate; - private void on_SignalUsr2Evt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSignalUsr2Evt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SignalUsr2Evt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_APP_EVENT_SIGNAL_USR2"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SignalHupEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// System specific, but on unix maps to SIGHUP signal to the process - only called on main loop object /// (Since EFL 1.22) public event EventHandler SignalHupEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_APP_EVENT_SIGNAL_HUP"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_SignalHupEvt_delegate)) { - eventHandlers.AddHandler(SignalHupEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_APP_EVENT_SIGNAL_HUP"; - if (RemoveNativeEventHandler(key, this.evt_SignalHupEvt_delegate)) { - eventHandlers.RemoveHandler(SignalHupEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event SignalHupEvt. - public void On_SignalHupEvt(EventArgs e) + public void OnSignalHupEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SignalHupEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SignalHupEvt_delegate; - private void on_SignalHupEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SignalHupEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_APP_EVENT_SIGNAL_HUP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_PauseEvt_delegate = new Efl.EventCb(on_PauseEvt_NativeCallback); - evt_ResumeEvt_delegate = new Efl.EventCb(on_ResumeEvt_NativeCallback); - evt_StandbyEvt_delegate = new Efl.EventCb(on_StandbyEvt_NativeCallback); - evt_TerminateEvt_delegate = new Efl.EventCb(on_TerminateEvt_NativeCallback); - evt_SignalUsr1Evt_delegate = new Efl.EventCb(on_SignalUsr1Evt_NativeCallback); - evt_SignalUsr2Evt_delegate = new Efl.EventCb(on_SignalUsr2Evt_NativeCallback); - evt_SignalHupEvt_delegate = new Efl.EventCb(on_SignalHupEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Returns the app object that is representing this process /// Note: This function call only works in the main loop thread of the process. /// (Since EFL 1.22) /// Application for this process public static Efl.App GetAppMain() { - var _ret_var = Efl.AppNativeInherit.efl_app_main_get_ptr.Value.Delegate(); + var _ret_var = Efl.App.NativeMethods.efl_app_main_get_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -402,7 +480,7 @@ private static object SignalHupEvtKey = new object(); /// (Since EFL 1.22) /// Efl build version virtual public Efl.Version GetBuildEflVersion() { - var _ret_var = Efl.AppNativeInherit.efl_app_build_efl_version_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.App.NativeMethods.efl_app_build_efl_version_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); @@ -413,7 +491,7 @@ private static object SignalHupEvtKey = new object(); /// (Since EFL 1.22) /// Efl version virtual public Efl.Version GetEflVersion() { - var _ret_var = Efl.AppNativeInherit.efl_app_efl_version_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.App.NativeMethods.efl_app_efl_version_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); @@ -427,9 +505,8 @@ private static object SignalHupEvtKey = new object(); /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. - /// virtual public System.String GetCommand() { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -437,11 +514,11 @@ private static object SignalHupEvtKey = new object(); /// Every element of a string is a argument. /// An array where every array field is an argument /// On success true, false otherwise - virtual public bool SetCommandArray( Eina.Array array) { + virtual public bool SetCommandArray(Eina.Array array) { var _in_array = array.Handle; array.Own = false; array.OwnContent = false; - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_array_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_array); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_array_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_array); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -449,15 +526,14 @@ array.OwnContent = false; /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string /// On success true, false otherwise - virtual public bool SetCommandString( System.String str) { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), str); + virtual public bool SetCommandString(System.String str) { + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),str); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the accessor which enables access to each argument that got passed to this object. - /// virtual public Eina.Accessor CommandAccess() { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_access_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_access_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Accessor(_ret_var, false, false); } @@ -490,7 +566,6 @@ array.OwnContent = false; /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. -/// public System.String Command { get { return GetCommand(); } } @@ -498,234 +573,356 @@ array.OwnContent = false; /// Every element of a string is a argument. /// An array where every array field is an argument public Eina.Array CommandArray { - set { SetCommandArray( value); } + set { SetCommandArray(value); } } /// Use a string to fill this object /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string public System.String CommandString { - set { SetCommandString( value); } + set { SetCommandString(value); } } private static IntPtr GetEflClassStatic() { return Efl.App.efl_app_class_get(); } -} -public class AppNativeInherit : Efl.LoopNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Loop.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_app_build_efl_version_get_static_delegate == null) - efl_app_build_efl_version_get_static_delegate = new efl_app_build_efl_version_get_delegate(build_efl_version_get); - if (methods.FirstOrDefault(m => m.Name == "GetBuildEflVersion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_app_build_efl_version_get"), func = Marshal.GetFunctionPointerForDelegate(efl_app_build_efl_version_get_static_delegate)}); - if (efl_app_efl_version_get_static_delegate == null) - efl_app_efl_version_get_static_delegate = new efl_app_efl_version_get_delegate(efl_version_get); - if (methods.FirstOrDefault(m => m.Name == "GetEflVersion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_app_efl_version_get"), func = Marshal.GetFunctionPointerForDelegate(efl_app_efl_version_get_static_delegate)}); - if (efl_core_command_line_command_get_static_delegate == null) - efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get); - if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate)}); - if (efl_core_command_line_command_array_set_static_delegate == null) - efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set); - if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate)}); - if (efl_core_command_line_command_string_set_static_delegate == null) - efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set); - if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate)}); - if (efl_core_command_line_command_access_static_delegate == null) - efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access); - if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.App.efl_app_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.App.efl_app_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_app_build_efl_version_get_static_delegate == null) + { + efl_app_build_efl_version_get_static_delegate = new efl_app_build_efl_version_get_delegate(build_efl_version_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.App efl_app_main_get_delegate(); + if (methods.FirstOrDefault(m => m.Name == "GetBuildEflVersion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_app_build_efl_version_get"), func = Marshal.GetFunctionPointerForDelegate(efl_app_build_efl_version_get_static_delegate) }); + } + if (efl_app_efl_version_get_static_delegate == null) + { + efl_app_efl_version_get_static_delegate = new efl_app_efl_version_get_delegate(efl_version_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.App efl_app_main_get_api_delegate(); - public static Efl.Eo.FunctionWrapper efl_app_main_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_app_main_get"); - private static Efl.App app_main_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_app_main_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.App _ret_var = default(Efl.App); - try { - _ret_var = App.GetAppMain(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetEflVersion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_app_efl_version_get"), func = Marshal.GetFunctionPointerForDelegate(efl_app_efl_version_get_static_delegate) }); } - return _ret_var; - } else { - return efl_app_main_get_ptr.Value.Delegate(); - } - } + if (efl_core_command_line_command_get_static_delegate == null) + { + efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get); + } - private delegate System.IntPtr efl_app_build_efl_version_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate) }); + } + if (efl_core_command_line_command_array_set_static_delegate == null) + { + efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set); + } - public delegate System.IntPtr efl_app_build_efl_version_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_app_build_efl_version_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_app_build_efl_version_get"); - private static System.IntPtr build_efl_version_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_app_build_efl_version_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Version _ret_var = default(Efl.Version); - try { - _ret_var = ((App)wrapper).GetBuildEflVersion(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate) }); } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_app_build_efl_version_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_core_command_line_command_string_set_static_delegate == null) + { + efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate) }); + } + + if (efl_core_command_line_command_access_static_delegate == null) + { + efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access); + } + + if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.App.efl_app_class_get(); } - } - private static efl_app_build_efl_version_get_delegate efl_app_build_efl_version_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate System.IntPtr efl_app_efl_version_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.App efl_app_main_get_delegate(); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.App efl_app_main_get_api_delegate(); + + public static Efl.Eo.FunctionWrapper efl_app_main_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_app_main_get"); + + private static Efl.App app_main_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_app_main_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.App _ret_var = default(Efl.App); + try + { + _ret_var = App.GetAppMain(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate System.IntPtr efl_app_efl_version_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_app_efl_version_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_app_efl_version_get"); - private static System.IntPtr efl_version_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_app_efl_version_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Version _ret_var = default(Efl.Version); - try { - _ret_var = ((App)wrapper).GetEflVersion(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_app_main_get_ptr.Value.Delegate(); + } + } + + + private delegate System.IntPtr efl_app_build_efl_version_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_app_build_efl_version_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_app_build_efl_version_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_app_build_efl_version_get"); + + private static System.IntPtr build_efl_version_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_app_build_efl_version_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Version _ret_var = default(Efl.Version); + try + { + _ret_var = ((App)wrapper).GetBuildEflVersion(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_app_efl_version_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_app_build_efl_version_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_app_efl_version_get_delegate efl_app_efl_version_get_static_delegate; + private static efl_app_build_efl_version_get_delegate efl_app_build_efl_version_get_static_delegate; + + + private delegate System.IntPtr efl_app_efl_version_get_delegate(System.IntPtr obj, System.IntPtr pd); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_app_efl_version_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_app_efl_version_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_app_efl_version_get"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_get"); - private static System.String command_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_command_line_command_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((App)wrapper).GetCommand(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static System.IntPtr efl_version_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_app_efl_version_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Version _ret_var = default(Efl.Version); + try + { + _ret_var = ((App)wrapper).GetEflVersion(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); + + } + else + { + return efl_app_efl_version_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_app_efl_version_get_delegate efl_app_efl_version_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_get"); + + private static System.String command_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_command_line_command_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((App)wrapper).GetCommand(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate; + private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_array_set"); - private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array) - { - Eina.Log.Debug("function efl_core_command_line_command_array_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_array = new Eina.Array(array, true, true); + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_array_set"); + + private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array) + { + Eina.Log.Debug("function efl_core_command_line_command_array_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_array = new Eina.Array(array, true, true); bool _ret_var = default(bool); - try { - _ret_var = ((App)wrapper).SetCommandArray( _in_array); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((App)wrapper).SetCommandArray(_in_array); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array); + + } + else + { + return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array); + } } - } - private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate; + private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_string_set"); + + private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str) + { + Eina.Log.Debug("function efl_core_command_line_command_string_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((App)wrapper).SetCommandString(str); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_string_set"); - private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str) - { - Eina.Log.Debug("function efl_core_command_line_command_string_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((App)wrapper).SetCommandString( str); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str); + + } + else + { + return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str); + } } - } - private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate; + private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate; - private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_access"); + + private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_command_line_command_access was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Accessor _ret_var = default(Eina.Accessor); + try + { + _ret_var = ((App)wrapper).CommandAccess(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_access"); - private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_command_line_command_access was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Accessor _ret_var = default(Eina.Accessor); - try { - _ret_var = ((App)wrapper).CommandAccess(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var.Handle; - } else { - return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate; + + private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_appthread.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_appthread.eo.cs index e07c909..4046e20 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_appthread.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_appthread.eo.cs @@ -3,102 +3,137 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// No description supplied. -[AppthreadNativeInherit] +[Efl.Appthread.NativeMethods] public class Appthread : Efl.Loop, Efl.Eo.IWrapper,Efl.IThreadIO,Efl.Core.ICommandLine,Efl.Io.ICloser,Efl.Io.IReader,Efl.Io.IWriter { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Appthread)) - return Efl.AppthreadNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Appthread)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_appthread_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Appthread(Efl.Object parent= null - ) : - base(efl_appthread_class_get(), typeof(Appthread), parent) + ) : base(efl_appthread_class_get(), typeof(Appthread), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Appthread(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Appthread(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Appthread(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ClosedEvtKey = new object(); + /// Notifies closed, when property is marked as true /// (Since EFL 1.22) public event EventHandler ClosedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClosedEvt_delegate)) { - eventHandlers.AddHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (RemoveNativeEventHandler(key, this.evt_ClosedEvt_delegate)) { - eventHandlers.RemoveHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClosedEvt. - public void On_ClosedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClosedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClosedEvt_delegate; - private void on_ClosedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClosedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClosedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_CLOSER_EVENT_CLOSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CanReadChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies can_read property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -106,48 +141,65 @@ private static object CanReadChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanReadChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.AddHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanReadChangedEvt. - public void On_CanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) + public void OnCanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanReadChangedEvtKey]; + var key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanReadChangedEvt_delegate; - private void on_CanReadChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanReadChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object EosEvtKey = new object(); /// Notifies end of stream, when property is marked as true. /// If this is used alongside with an , then it should be emitted before that call. /// @@ -157,47 +209,56 @@ private static object EosEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler EosEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_EOS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EosEvt_delegate)) { - eventHandlers.AddHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_EOS"; - if (RemoveNativeEventHandler(key, this.evt_EosEvt_delegate)) { - eventHandlers.RemoveHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EosEvt. - public void On_EosEvt(EventArgs e) + public void OnEosEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EosEvtKey]; + var key = "_EFL_IO_READER_EVENT_EOS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EosEvt_delegate; - private void on_EosEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EosEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object CanWriteChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies can_write property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -205,98 +266,98 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanWriteChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.AddHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanWriteChangedEvt. - public void On_CanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanWriteChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanWriteChangedEvt_delegate; - private void on_CanWriteChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) { - Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanWriteChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ClosedEvt_delegate = new Efl.EventCb(on_ClosedEvt_NativeCallback); - evt_CanReadChangedEvt_delegate = new Efl.EventCb(on_CanReadChangedEvt_NativeCallback); - evt_EosEvt_delegate = new Efl.EventCb(on_EosEvt_NativeCallback); - evt_CanWriteChangedEvt_delegate = new Efl.EventCb(on_CanWriteChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } - /// /// No description supplied. virtual public System.IntPtr GetIndata() { - var _ret_var = Efl.IThreadIONativeInherit.efl_threadio_indata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_indata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// /// No description supplied. - /// - virtual public void SetIndata( System.IntPtr data) { - Efl.IThreadIONativeInherit.efl_threadio_indata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), data); + virtual public void SetIndata(System.IntPtr data) { + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_indata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),data); Eina.Error.RaiseIfUnhandledException(); } - /// /// No description supplied. virtual public System.IntPtr GetOutdata() { - var _ret_var = Efl.IThreadIONativeInherit.efl_threadio_outdata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_outdata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// /// No description supplied. - /// - virtual public void SetOutdata( System.IntPtr data) { - Efl.IThreadIONativeInherit.efl_threadio_outdata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), data); + virtual public void SetOutdata(System.IntPtr data) { + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_outdata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),data); Eina.Error.RaiseIfUnhandledException(); } - /// /// No description supplied. - /// - virtual public void Call( EFlThreadIOCall func) { + virtual public void Call(EFlThreadIOCall func) { GCHandle func_handle = GCHandle.Alloc(func); - Efl.IThreadIONativeInherit.efl_threadio_call_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); } - /// /// No description supplied. /// No description supplied. - virtual public System.IntPtr CallSync( EFlThreadIOCallSync func) { + virtual public System.IntPtr CallSync(EFlThreadIOCallSync func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.IThreadIONativeInherit.efl_threadio_call_sync_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_sync_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -308,9 +369,8 @@ private static object CanWriteChangedEvtKey = new object(); /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. - /// virtual public System.String GetCommand() { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -318,11 +378,11 @@ private static object CanWriteChangedEvtKey = new object(); /// Every element of a string is a argument. /// An array where every array field is an argument /// On success true, false otherwise - virtual public bool SetCommandArray( Eina.Array array) { + virtual public bool SetCommandArray(Eina.Array array) { var _in_array = array.Handle; array.Own = false; array.OwnContent = false; - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_array_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_array); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_array_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_array); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -330,15 +390,14 @@ array.OwnContent = false; /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string /// On success true, false otherwise - virtual public bool SetCommandString( System.String str) { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), str); + virtual public bool SetCommandString(System.String str) { + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),str); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the accessor which enables access to each argument that got passed to this object. - /// virtual public Eina.Accessor CommandAccess() { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_access_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_access_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Accessor(_ret_var, false, false); } @@ -346,7 +405,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if closed, false otherwise virtual public bool GetClosed() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_closed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_closed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -355,7 +414,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if close on exec(), false otherwise virtual public bool GetCloseOnExec() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -363,8 +422,8 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if close on exec(), false otherwise /// true if could set, false if not supported or failed. - virtual public bool SetCloseOnExec( bool close_on_exec) { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_exec); + virtual public bool SetCloseOnExec(bool close_on_exec) { + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),close_on_exec); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -373,7 +432,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if close on invalidate, false otherwise virtual public bool GetCloseOnInvalidate() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -381,9 +440,8 @@ array.OwnContent = false; /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. /// (Since EFL 1.22) /// true if close on invalidate, false otherwise - /// - virtual public void SetCloseOnInvalidate( bool close_on_invalidate) { - Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_invalidate); + virtual public void SetCloseOnInvalidate(bool close_on_invalidate) { + Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),close_on_invalidate); Eina.Error.RaiseIfUnhandledException(); } /// Closes the Input/Output object. @@ -393,7 +451,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// 0 on succeed, a mapping of errno otherwise virtual public Eina.Error Close() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -401,32 +459,30 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise virtual public bool GetCanRead() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise - /// - virtual public void SetCanRead( bool can_read) { - Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_read); + virtual public void SetCanRead(bool can_read) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_read); Eina.Error.RaiseIfUnhandledException(); } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise virtual public bool GetEos() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_eos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise - /// - virtual public void SetEos( bool is_eos) { - Efl.Io.IReaderNativeInherit.efl_io_reader_eos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), is_eos); + virtual public void SetEos(bool is_eos) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),is_eos); Eina.Error.RaiseIfUnhandledException(); } /// Reads data into a pre-allocated buffer. @@ -436,8 +492,8 @@ array.OwnContent = false; /// (Since EFL 1.22) /// Provides a pre-allocated memory to be filled up to rw_slice.len. It will be populated and the length will be set to the actually used amount of bytes, which can be smaller than the request. /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Read( ref Eina.RwSlice rw_slice) { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_read_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref rw_slice); + virtual public Eina.Error Read(ref Eina.RwSlice rw_slice) { + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_read_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref rw_slice); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -445,16 +501,15 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise virtual public bool GetCanWrite() { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise - /// - virtual public void SetCanWrite( bool can_write) { - Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_write); + virtual public void SetCanWrite(bool can_write) { + Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_write); Eina.Error.RaiseIfUnhandledException(); } /// Writes data from a pre-populated buffer. @@ -465,22 +520,20 @@ array.OwnContent = false; /// Provides a pre-populated memory to be used up to slice.len. The returned slice will be adapted as length will be set to the actually used amount of bytes, which can be smaller than the request. /// Convenience to output the remaining parts of slice that was not written. If the full slice was written, this will be a slice of zero-length. /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Write( ref Eina.Slice slice, ref Eina.Slice remaining) { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_write_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref slice, ref remaining); + virtual public Eina.Error Write(ref Eina.Slice slice, ref Eina.Slice remaining) { + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_write_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref slice, ref remaining); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// -/// No description supplied. + /// No description supplied. public System.IntPtr Indata { get { return GetIndata(); } - set { SetIndata( value); } + set { SetIndata(value); } } - /// -/// No description supplied. + /// No description supplied. public System.IntPtr Outdata { get { return GetOutdata(); } - set { SetOutdata( value); } + set { SetOutdata(value); } } /// A commandline that encodes arguments in a command string. This command is unix shell-style, thus whitespace separates arguments unless escaped. Also a semi-colon ';', ampersand '&', pipe/bar '|', hash '#', bracket, square brace, brace character ('(', ')', '[', ']', '{', '}'), exclamation mark '!', backquote '`', greator or less than ('>' '<') character unless escaped or in quotes would cause args_count/value to not be generated properly, because it would force complex shell interpretation which will not be supported in evaluating the arg_count/value information, but the final shell may interpret this if this is executed via a command-line shell. To not be a complex shell command, it should be simple with paths, options and variable expansions, but nothing more complex involving the above unescaped characters. /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument VARIABLE" etc. @@ -490,7 +543,6 @@ array.OwnContent = false; /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. -/// public System.String Command { get { return GetCommand(); } } @@ -498,13 +550,13 @@ array.OwnContent = false; /// Every element of a string is a argument. /// An array where every array field is an argument public Eina.Array CommandArray { - set { SetCommandArray( value); } + set { SetCommandArray(value); } } /// Use a string to fill this object /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string public System.String CommandString { - set { SetCommandString( value); } + set { SetCommandString(value); } } /// If true will notify object was closed. /// (Since EFL 1.22) @@ -518,7 +570,7 @@ array.OwnContent = false; /// true if close on exec(), false otherwise public bool CloseOnExec { get { return GetCloseOnExec(); } - set { SetCloseOnExec( value); } + set { SetCloseOnExec(value); } } /// If true will automatically close() on object invalidate. /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. @@ -526,742 +578,1160 @@ array.OwnContent = false; /// true if close on invalidate, false otherwise public bool CloseOnInvalidate { get { return GetCloseOnInvalidate(); } - set { SetCloseOnInvalidate( value); } + set { SetCloseOnInvalidate(value); } } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise public bool CanRead { get { return GetCanRead(); } - set { SetCanRead( value); } + set { SetCanRead(value); } } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise public bool Eos { get { return GetEos(); } - set { SetEos( value); } + set { SetEos(value); } } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise public bool CanWrite { get { return GetCanWrite(); } - set { SetCanWrite( value); } + set { SetCanWrite(value); } } private static IntPtr GetEflClassStatic() { return Efl.Appthread.efl_appthread_class_get(); } -} -public class AppthreadNativeInherit : Efl.LoopNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Loop.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_threadio_indata_get_static_delegate == null) - efl_threadio_indata_get_static_delegate = new efl_threadio_indata_get_delegate(indata_get); - if (methods.FirstOrDefault(m => m.Name == "GetIndata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_indata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_get_static_delegate)}); - if (efl_threadio_indata_set_static_delegate == null) - efl_threadio_indata_set_static_delegate = new efl_threadio_indata_set_delegate(indata_set); - if (methods.FirstOrDefault(m => m.Name == "SetIndata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_indata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_set_static_delegate)}); - if (efl_threadio_outdata_get_static_delegate == null) - efl_threadio_outdata_get_static_delegate = new efl_threadio_outdata_get_delegate(outdata_get); - if (methods.FirstOrDefault(m => m.Name == "GetOutdata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_outdata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_get_static_delegate)}); - if (efl_threadio_outdata_set_static_delegate == null) - efl_threadio_outdata_set_static_delegate = new efl_threadio_outdata_set_delegate(outdata_set); - if (methods.FirstOrDefault(m => m.Name == "SetOutdata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_outdata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_set_static_delegate)}); - if (efl_threadio_call_static_delegate == null) - efl_threadio_call_static_delegate = new efl_threadio_call_delegate(call); - if (methods.FirstOrDefault(m => m.Name == "Call") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_call"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_static_delegate)}); - if (efl_threadio_call_sync_static_delegate == null) - efl_threadio_call_sync_static_delegate = new efl_threadio_call_sync_delegate(call_sync); - if (methods.FirstOrDefault(m => m.Name == "CallSync") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_call_sync"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_sync_static_delegate)}); - if (efl_core_command_line_command_get_static_delegate == null) - efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get); - if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate)}); - if (efl_core_command_line_command_array_set_static_delegate == null) - efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set); - if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate)}); - if (efl_core_command_line_command_string_set_static_delegate == null) - efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set); - if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate)}); - if (efl_core_command_line_command_access_static_delegate == null) - efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access); - if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_static_delegate)}); - if (efl_io_closer_closed_get_static_delegate == null) - efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); - if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate)}); - if (efl_io_closer_close_on_exec_get_static_delegate == null) - efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate)}); - if (efl_io_closer_close_on_exec_set_static_delegate == null) - efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate)}); - if (efl_io_closer_close_on_invalidate_get_static_delegate == null) - efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate)}); - if (efl_io_closer_close_on_invalidate_set_static_delegate == null) - efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate)}); - if (efl_io_closer_close_static_delegate == null) - efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); - if (methods.FirstOrDefault(m => m.Name == "Close") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate)}); - if (efl_io_reader_can_read_get_static_delegate == null) - efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate)}); - if (efl_io_reader_can_read_set_static_delegate == null) - efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate)}); - if (efl_io_reader_eos_get_static_delegate == null) - efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); - if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate)}); - if (efl_io_reader_eos_set_static_delegate == null) - efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); - if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate)}); - if (efl_io_reader_read_static_delegate == null) - efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); - if (methods.FirstOrDefault(m => m.Name == "Read") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate)}); - if (efl_io_writer_can_write_get_static_delegate == null) - efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate)}); - if (efl_io_writer_can_write_set_static_delegate == null) - efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate)}); - if (efl_io_writer_write_static_delegate == null) - efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); - if (methods.FirstOrDefault(m => m.Name == "Write") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Appthread.efl_appthread_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Appthread.efl_appthread_class_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_threadio_indata_get_static_delegate == null) + { + efl_threadio_indata_get_static_delegate = new efl_threadio_indata_get_delegate(indata_get); + } - private delegate System.IntPtr efl_threadio_indata_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetIndata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_indata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_get_static_delegate) }); + } + if (efl_threadio_indata_set_static_delegate == null) + { + efl_threadio_indata_set_static_delegate = new efl_threadio_indata_set_delegate(indata_set); + } - public delegate System.IntPtr efl_threadio_indata_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_threadio_indata_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_indata_get"); - private static System.IntPtr indata_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_threadio_indata_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((Appthread)wrapper).GetIndata(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetIndata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_indata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_set_static_delegate) }); } - return _ret_var; - } else { - return efl_threadio_indata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_threadio_indata_get_delegate efl_threadio_indata_get_static_delegate; + if (efl_threadio_outdata_get_static_delegate == null) + { + efl_threadio_outdata_get_static_delegate = new efl_threadio_outdata_get_delegate(outdata_get); + } - private delegate void efl_threadio_indata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + if (methods.FirstOrDefault(m => m.Name == "GetOutdata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_outdata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_get_static_delegate) }); + } + if (efl_threadio_outdata_set_static_delegate == null) + { + efl_threadio_outdata_set_static_delegate = new efl_threadio_outdata_set_delegate(outdata_set); + } - public delegate void efl_threadio_indata_set_api_delegate(System.IntPtr obj, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_threadio_indata_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_indata_set"); - private static void indata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) - { - Eina.Log.Debug("function efl_threadio_indata_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Appthread)wrapper).SetIndata( data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_threadio_indata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); - } - } - private static efl_threadio_indata_set_delegate efl_threadio_indata_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetOutdata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_outdata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_set_static_delegate) }); + } + if (efl_threadio_call_static_delegate == null) + { + efl_threadio_call_static_delegate = new efl_threadio_call_delegate(call); + } - private delegate System.IntPtr efl_threadio_outdata_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Call") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_call"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_static_delegate) }); + } + if (efl_threadio_call_sync_static_delegate == null) + { + efl_threadio_call_sync_static_delegate = new efl_threadio_call_sync_delegate(call_sync); + } - public delegate System.IntPtr efl_threadio_outdata_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_threadio_outdata_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_outdata_get"); - private static System.IntPtr outdata_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_threadio_outdata_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((Appthread)wrapper).GetOutdata(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "CallSync") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_call_sync"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_sync_static_delegate) }); } - return _ret_var; - } else { - return efl_threadio_outdata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_threadio_outdata_get_delegate efl_threadio_outdata_get_static_delegate; + if (efl_core_command_line_command_get_static_delegate == null) + { + efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get); + } - private delegate void efl_threadio_outdata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate) }); + } + if (efl_core_command_line_command_array_set_static_delegate == null) + { + efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set); + } - public delegate void efl_threadio_outdata_set_api_delegate(System.IntPtr obj, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_threadio_outdata_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_outdata_set"); - private static void outdata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) - { - Eina.Log.Debug("function efl_threadio_outdata_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Appthread)wrapper).SetOutdata( data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_threadio_outdata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); - } - } - private static efl_threadio_outdata_set_delegate efl_threadio_outdata_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate) }); + } + if (efl_core_command_line_command_string_set_static_delegate == null) + { + efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set); + } - private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate) }); + } + if (efl_core_command_line_command_access_static_delegate == null) + { + efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access); + } - public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_threadio_call_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_call"); - private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_threadio_call was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EFlThreadIOCallWrapper func_wrapper = new EFlThreadIOCallWrapper(func, func_data, func_free_cb); - - try { - ((Appthread)wrapper).Call( func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_threadio_call_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); - } - } - private static efl_threadio_call_delegate efl_threadio_call_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_static_delegate) }); + } + if (efl_io_closer_closed_get_static_delegate == null) + { + efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); + } - private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate) }); + } + if (efl_io_closer_close_on_exec_get_static_delegate == null) + { + efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); + } - public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_threadio_call_sync_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_call_sync"); - private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_threadio_call_sync was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EFlThreadIOCallSyncWrapper func_wrapper = new EFlThreadIOCallSyncWrapper(func, func_data, func_free_cb); - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((Appthread)wrapper).CallSync( func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate) }); } - return _ret_var; - } else { - return efl_threadio_call_sync_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); - } - } - private static efl_threadio_call_sync_delegate efl_threadio_call_sync_static_delegate; + if (efl_io_closer_close_on_exec_set_static_delegate == null) + { + efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate) }); + } + if (efl_io_closer_close_on_invalidate_get_static_delegate == null) + { + efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_get"); - private static System.String command_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_command_line_command_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Appthread)wrapper).GetCommand(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate) }); } - return _ret_var; - } else { - return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate; + if (efl_io_closer_close_on_invalidate_set_static_delegate == null) + { + efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array); + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate) }); + } + if (efl_io_closer_close_static_delegate == null) + { + efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_array_set"); - private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array) - { - Eina.Log.Debug("function efl_core_command_line_command_array_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_array = new Eina.Array(array, true, true); - bool _ret_var = default(bool); - try { - _ret_var = ((Appthread)wrapper).SetCommandArray( _in_array); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Close") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate) }); } - return _ret_var; - } else { - return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array); - } - } - private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate; + if (efl_io_reader_can_read_get_static_delegate == null) + { + efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate) }); + } + if (efl_io_reader_can_read_set_static_delegate == null) + { + efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_string_set"); - private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str) - { - Eina.Log.Debug("function efl_core_command_line_command_string_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Appthread)wrapper).SetCommandString( str); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate) }); } - return _ret_var; - } else { - return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str); - } - } - private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate; + if (efl_io_reader_eos_get_static_delegate == null) + { + efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); + } - private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate) }); + } + if (efl_io_reader_eos_set_static_delegate == null) + { + efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); + } - public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_access"); - private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_command_line_command_access was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Accessor _ret_var = default(Eina.Accessor); - try { - _ret_var = ((Appthread)wrapper).CommandAccess(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate) }); } - return _ret_var.Handle; - } else { - return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate; + if (efl_io_reader_read_static_delegate == null) + { + efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Read") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate) }); + } + if (efl_io_writer_can_write_get_static_delegate == null) + { + efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_closed_get"); - private static bool closed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_closed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Appthread)wrapper).GetClosed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate) }); } - return _ret_var; - } else { - return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; + if (efl_io_writer_can_write_set_static_delegate == null) + { + efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate) }); + } + if (efl_io_writer_write_static_delegate == null) + { + efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_get"); - private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Appthread)wrapper).GetCloseOnExec(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Write") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate) }); } - return _ret_var; - } else { - return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Appthread.efl_appthread_class_get(); } - } - private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + private delegate System.IntPtr efl_threadio_indata_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_threadio_indata_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_threadio_indata_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_indata_get"); + + private static System.IntPtr indata_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_threadio_indata_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((Appthread)wrapper).GetIndata(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_set"); - private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Appthread)wrapper).SetCloseOnExec( close_on_exec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); + else + { + return efl_threadio_indata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; + private static efl_threadio_indata_get_delegate efl_threadio_indata_get_static_delegate; + + + private delegate void efl_threadio_indata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + + + public delegate void efl_threadio_indata_set_api_delegate(System.IntPtr obj, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper efl_threadio_indata_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_indata_set"); + + private static void indata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) + { + Eina.Log.Debug("function efl_threadio_indata_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Appthread)wrapper).SetIndata(data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_threadio_indata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_threadio_indata_set_delegate efl_threadio_indata_set_static_delegate; + + private delegate System.IntPtr efl_threadio_outdata_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_threadio_outdata_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_threadio_outdata_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_outdata_get"); + + private static System.IntPtr outdata_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_threadio_outdata_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((Appthread)wrapper).GetOutdata(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_get"); - private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Appthread)wrapper).GetCloseOnInvalidate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_threadio_outdata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_threadio_outdata_get_delegate efl_threadio_outdata_get_static_delegate; + + + private delegate void efl_threadio_outdata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + + + public delegate void efl_threadio_outdata_set_api_delegate(System.IntPtr obj, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper efl_threadio_outdata_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_outdata_set"); + + private static void outdata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) + { + Eina.Log.Debug("function efl_threadio_outdata_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Appthread)wrapper).SetOutdata(data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_threadio_outdata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); + } } - } - private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; + private static efl_threadio_outdata_set_delegate efl_threadio_outdata_set_static_delegate; - private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + + public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); - public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_set"); - private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Appthread)wrapper).SetCloseOnInvalidate( close_on_invalidate); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); + public static Efl.Eo.FunctionWrapper efl_threadio_call_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call"); + + private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_threadio_call was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EFlThreadIOCallWrapper func_wrapper = new EFlThreadIOCallWrapper(func, func_data, func_free_cb); + + try + { + ((Appthread)wrapper).Call(func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_threadio_call_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + } } - } - private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + private static efl_threadio_call_delegate efl_threadio_call_static_delegate; - private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + + public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + + public static Efl.Eo.FunctionWrapper efl_threadio_call_sync_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call_sync"); + + private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_threadio_call_sync was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EFlThreadIOCallSyncWrapper func_wrapper = new EFlThreadIOCallSyncWrapper(func, func_data, func_free_cb); + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((Appthread)wrapper).CallSync(func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close"); - private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Appthread)wrapper).Close(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_threadio_call_sync_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + } + } + + private static efl_threadio_call_sync_delegate efl_threadio_call_sync_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_get"); + + private static System.String command_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_command_line_command_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Appthread)wrapper).GetCommand(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; + private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_array_set"); + + private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array) + { + Eina.Log.Debug("function efl_core_command_line_command_array_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_array = new Eina.Array(array, true, true); + bool _ret_var = default(bool); + try + { + _ret_var = ((Appthread)wrapper).SetCommandArray(_in_array); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_get"); - private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_can_read_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Appthread)wrapper).GetCanRead(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array); + } } - } - private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; + private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_string_set"); + + private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str) + { + Eina.Log.Debug("function efl_core_command_line_command_string_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Appthread)wrapper).SetCommandString(str); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); - + return _ret_var; - public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_set"); - private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) - { - Eina.Log.Debug("function efl_io_reader_can_read_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Appthread)wrapper).SetCanRead( can_read); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); + } + else + { + return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str); + } } - } - private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; + private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate; + + + private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_access"); + + private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_command_line_command_access was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Accessor _ret_var = default(Eina.Accessor); + try + { + _ret_var = ((Appthread)wrapper).CommandAccess(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var.Handle; + } + else + { + return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_get"); - private static bool eos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_eos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Appthread)wrapper).GetEos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_closed_get"); + + private static bool closed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_closed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Appthread)wrapper).GetClosed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_get"); + + private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Appthread)wrapper).GetCloseOnExec(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; + private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_set"); + + private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Appthread)wrapper).SetCloseOnExec(close_on_exec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + return _ret_var; + } + else + { + return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); + } + } - public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_set"); - private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) - { - Eina.Log.Debug("function efl_io_reader_eos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Appthread)wrapper).SetEos( is_eos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); + private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_get"); + + private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Appthread)wrapper).GetCloseOnInvalidate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; + + + private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + + public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_set"); + + private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Appthread)wrapper).SetCloseOnInvalidate(close_on_invalidate); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); + } + } - private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + + + private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close"); + + private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Appthread)wrapper).Close(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); - public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_read"); - private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) - { - Eina.Log.Debug("function efl_io_reader_read was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Appthread)wrapper).Read( ref rw_slice); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + else + { + return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; + private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_get"); + + private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_can_read_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Appthread)wrapper).GetCanRead(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_get"); - private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_writer_can_write_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Appthread)wrapper).GetCanWrite(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; + + + private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); + + + public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); + + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_set"); + + private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) + { + Eina.Log.Debug("function efl_io_reader_can_read_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Appthread)wrapper).SetCanRead(can_read); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); + } + } + + private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_get"); + + private static bool eos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_eos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Appthread)wrapper).GetEos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; + private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; + + + private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + + + public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); + + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_set"); + + private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) + { + Eina.Log.Debug("function efl_io_reader_eos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Appthread)wrapper).SetEos(is_eos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); + } + } - private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + + + private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + + + public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); + + public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_read"); + + private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) + { + Eina.Log.Debug("function efl_io_reader_read was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Appthread)wrapper).Read(ref rw_slice); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_set"); - private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) - { - Eina.Log.Debug("function efl_io_writer_can_write_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Appthread)wrapper).SetCanWrite( can_write); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); + } + else + { + return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + } } - } - private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_get"); + + private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_writer_can_write_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Appthread)wrapper).GetCanWrite(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + return _ret_var; + } + else + { + return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); - public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_write"); - private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) - { - Eina.Log.Debug("function efl_io_writer_write was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Appthread)wrapper).Write( ref slice, ref remaining); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; + + + private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + + + public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); + + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_set"); + + private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) + { + Eina.Log.Debug("function efl_io_writer_can_write_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Appthread)wrapper).SetCanWrite(can_write); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); + } + } + + private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + + + private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + + + public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); + + public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_write"); + + private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) + { + Eina.Log.Debug("function efl_io_writer_write was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Appthread)wrapper).Write(ref slice, ref remaining); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + + } + else + { + return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + } } - } - private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_boolean_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_boolean_model.eo.cs index 499d112..05d097d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_boolean_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_boolean_model.eo.cs @@ -3,159 +3,279 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl boolean model class -[BooleanModelNativeInherit] +[Efl.BooleanModel.NativeMethods] public class BooleanModel : Efl.CompositeModel, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (BooleanModel)) - return Efl.BooleanModelNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(BooleanModel)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_boolean_model_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Model that is/will be See - ///Position of this object in the parent model. See + /// Initializes a new instance of the class. + /// Parent instance. + /// Model that is/will be See + /// Position of this object in the parent model. See public BooleanModel(Efl.Object parent - , Efl.IModel model, uint? index = null) : - base(efl_boolean_model_class_get(), typeof(BooleanModel), parent) + , Efl.IModel model, uint? index = null) : base(efl_boolean_model_class_get(), typeof(BooleanModel), parent) { if (Efl.Eo.Globals.ParamHelperCheck(model)) + { SetModel(Efl.Eo.Globals.GetParamHelper(model)); + } + if (Efl.Eo.Globals.ParamHelperCheck(index)) + { SetIndex(Efl.Eo.Globals.GetParamHelper(index)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected BooleanModel(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected BooleanModel(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected BooleanModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Add a new named boolean property with a defined default value. - /// - /// - /// - virtual public void AddBoolean( System.String name, bool default_value) { - Efl.BooleanModelNativeInherit.efl_boolean_model_boolean_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, default_value); + virtual public void AddBoolean(System.String name, bool default_value) { + Efl.BooleanModel.NativeMethods.efl_boolean_model_boolean_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, default_value); Eina.Error.RaiseIfUnhandledException(); } /// Delete an existing named boolean property - /// - /// - virtual public void DelBoolean( System.String name) { - Efl.BooleanModelNativeInherit.efl_boolean_model_boolean_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public void DelBoolean(System.String name) { + Efl.BooleanModel.NativeMethods.efl_boolean_model_boolean_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); } + /// Get an iterator that will quickly find all the index with the requested value for a specific boolean. + /// The iterator that is valid until any change is made on the model. + virtual public Eina.Iterator GetBooleanIterator(System.String name, bool request) { + var _ret_var = Efl.BooleanModel.NativeMethods.efl_boolean_model_boolean_iterator_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, request); + Eina.Error.RaiseIfUnhandledException(); + return new Eina.Iterator(_ret_var, false, false); + } private static IntPtr GetEflClassStatic() { return Efl.BooleanModel.efl_boolean_model_class_get(); } -} -public class BooleanModelNativeInherit : Efl.CompositeModelNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_boolean_model_boolean_add_static_delegate == null) - efl_boolean_model_boolean_add_static_delegate = new efl_boolean_model_boolean_add_delegate(boolean_add); - if (methods.FirstOrDefault(m => m.Name == "AddBoolean") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_boolean_model_boolean_add"), func = Marshal.GetFunctionPointerForDelegate(efl_boolean_model_boolean_add_static_delegate)}); - if (efl_boolean_model_boolean_del_static_delegate == null) - efl_boolean_model_boolean_del_static_delegate = new efl_boolean_model_boolean_del_delegate(boolean_del); - if (methods.FirstOrDefault(m => m.Name == "DelBoolean") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_boolean_model_boolean_del"), func = Marshal.GetFunctionPointerForDelegate(efl_boolean_model_boolean_del_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.CompositeModel.NativeMethods { - return Efl.BooleanModel.efl_boolean_model_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.BooleanModel.efl_boolean_model_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_boolean_model_boolean_add_static_delegate == null) + { + efl_boolean_model_boolean_add_static_delegate = new efl_boolean_model_boolean_add_delegate(boolean_add); + } - private delegate void efl_boolean_model_boolean_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.U1)] bool default_value); + if (methods.FirstOrDefault(m => m.Name == "AddBoolean") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_boolean_model_boolean_add"), func = Marshal.GetFunctionPointerForDelegate(efl_boolean_model_boolean_add_static_delegate) }); + } + if (efl_boolean_model_boolean_del_static_delegate == null) + { + efl_boolean_model_boolean_del_static_delegate = new efl_boolean_model_boolean_del_delegate(boolean_del); + } - public delegate void efl_boolean_model_boolean_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.U1)] bool default_value); - public static Efl.Eo.FunctionWrapper efl_boolean_model_boolean_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_boolean_model_boolean_add"); - private static void boolean_add(System.IntPtr obj, System.IntPtr pd, System.String name, bool default_value) - { - Eina.Log.Debug("function efl_boolean_model_boolean_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((BooleanModel)wrapper).AddBoolean( name, default_value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DelBoolean") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_boolean_model_boolean_del"), func = Marshal.GetFunctionPointerForDelegate(efl_boolean_model_boolean_del_static_delegate) }); + } + + if (efl_boolean_model_boolean_iterator_get_static_delegate == null) + { + efl_boolean_model_boolean_iterator_get_static_delegate = new efl_boolean_model_boolean_iterator_get_delegate(boolean_iterator_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBooleanIterator") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_boolean_model_boolean_iterator_get"), func = Marshal.GetFunctionPointerForDelegate(efl_boolean_model_boolean_iterator_get_static_delegate) }); } - } else { - efl_boolean_model_boolean_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, default_value); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.BooleanModel.efl_boolean_model_class_get(); } - } - private static efl_boolean_model_boolean_add_delegate efl_boolean_model_boolean_add_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_boolean_model_boolean_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + private delegate void efl_boolean_model_boolean_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.U1)] bool default_value); + + public delegate void efl_boolean_model_boolean_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.U1)] bool default_value); - public delegate void efl_boolean_model_boolean_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_boolean_model_boolean_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_boolean_model_boolean_del"); - private static void boolean_del(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_boolean_model_boolean_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((BooleanModel)wrapper).DelBoolean( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_boolean_model_boolean_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_boolean_model_boolean_add"); + + private static void boolean_add(System.IntPtr obj, System.IntPtr pd, System.String name, bool default_value) + { + Eina.Log.Debug("function efl_boolean_model_boolean_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((BooleanModel)wrapper).AddBoolean(name, default_value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_boolean_model_boolean_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, default_value); } - } else { - efl_boolean_model_boolean_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); } - } - private static efl_boolean_model_boolean_del_delegate efl_boolean_model_boolean_del_static_delegate; + + private static efl_boolean_model_boolean_add_delegate efl_boolean_model_boolean_add_static_delegate; + + + private delegate void efl_boolean_model_boolean_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + + public delegate void efl_boolean_model_boolean_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_boolean_model_boolean_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_boolean_model_boolean_del"); + + private static void boolean_del(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_boolean_model_boolean_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((BooleanModel)wrapper).DelBoolean(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_boolean_model_boolean_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } + } + + private static efl_boolean_model_boolean_del_delegate efl_boolean_model_boolean_del_static_delegate; + + + private delegate System.IntPtr efl_boolean_model_boolean_iterator_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.U1)] bool request); + + + public delegate System.IntPtr efl_boolean_model_boolean_iterator_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.U1)] bool request); + + public static Efl.Eo.FunctionWrapper efl_boolean_model_boolean_iterator_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_boolean_model_boolean_iterator_get"); + + private static System.IntPtr boolean_iterator_get(System.IntPtr obj, System.IntPtr pd, System.String name, bool request) + { + Eina.Log.Debug("function efl_boolean_model_boolean_iterator_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((BooleanModel)wrapper).GetBooleanIterator(name, request); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; + + } + else + { + return efl_boolean_model_boolean_iterator_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, request); + } + } + + private static efl_boolean_model_boolean_iterator_get_delegate efl_boolean_model_boolean_iterator_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_bounce_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_bounce_interpolator.eo.cs index 4139b02..d88739c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_bounce_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_bounce_interpolator.eo.cs @@ -3,82 +3,102 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl bounce interpolator class -[BounceInterpolatorNativeInherit] +[Efl.BounceInterpolator.NativeMethods] public class BounceInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (BounceInterpolator)) - return Efl.BounceInterpolatorNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(BounceInterpolator)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_bounce_interpolator_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public BounceInterpolator(Efl.Object parent= null - ) : - base(efl_bounce_interpolator_class_get(), typeof(BounceInterpolator), parent) + ) : base(efl_bounce_interpolator_class_get(), typeof(BounceInterpolator), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected BounceInterpolator(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected BounceInterpolator(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected BounceInterpolator(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Factors property /// First factor of the interpolation function. /// Second factor of the interpolation function. - /// - virtual public void GetFactors( out double factor1, out double factor2) { - Efl.BounceInterpolatorNativeInherit.efl_bounce_interpolator_factors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out factor1, out factor2); + virtual public void GetFactors(out double factor1, out double factor2) { + Efl.BounceInterpolator.NativeMethods.efl_bounce_interpolator_factors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out factor1, out factor2); Eina.Error.RaiseIfUnhandledException(); } /// Factors property /// First factor of the interpolation function. /// Second factor of the interpolation function. - /// - virtual public void SetFactors( double factor1, double factor2) { - Efl.BounceInterpolatorNativeInherit.efl_bounce_interpolator_factors_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), factor1, factor2); + virtual public void SetFactors(double factor1, double factor2) { + Efl.BounceInterpolator.NativeMethods.efl_bounce_interpolator_factors_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),factor1, factor2); Eina.Error.RaiseIfUnhandledException(); } /// Interpolate the given value. /// Input value mapped from 0.0 to 1.0. /// Output value calculated by interpolating the input value. - virtual public double Interpolate( double progress) { - var _ret_var = Efl.IInterpolatorNativeInherit.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), progress); + virtual public double Interpolate(double progress) { + var _ret_var = Efl.IInterpolatorConcrete.NativeMethods.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),progress); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -86,108 +106,169 @@ public class BounceInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { return Efl.BounceInterpolator.efl_bounce_interpolator_class_get(); } -} -public class BounceInterpolatorNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_bounce_interpolator_factors_get_static_delegate == null) - efl_bounce_interpolator_factors_get_static_delegate = new efl_bounce_interpolator_factors_get_delegate(factors_get); - if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_bounce_interpolator_factors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_bounce_interpolator_factors_get_static_delegate)}); - if (efl_bounce_interpolator_factors_set_static_delegate == null) - efl_bounce_interpolator_factors_set_static_delegate = new efl_bounce_interpolator_factors_set_delegate(factors_set); - if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_bounce_interpolator_factors_set"), func = Marshal.GetFunctionPointerForDelegate(efl_bounce_interpolator_factors_set_static_delegate)}); - if (efl_interpolator_interpolate_static_delegate == null) - efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.BounceInterpolator.efl_bounce_interpolator_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.BounceInterpolator.efl_bounce_interpolator_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_bounce_interpolator_factors_get_static_delegate == null) + { + efl_bounce_interpolator_factors_get_static_delegate = new efl_bounce_interpolator_factors_get_delegate(factors_get); + } - private delegate void efl_bounce_interpolator_factors_get_delegate(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2); + if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_bounce_interpolator_factors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_bounce_interpolator_factors_get_static_delegate) }); + } + if (efl_bounce_interpolator_factors_set_static_delegate == null) + { + efl_bounce_interpolator_factors_set_static_delegate = new efl_bounce_interpolator_factors_set_delegate(factors_set); + } - public delegate void efl_bounce_interpolator_factors_get_api_delegate(System.IntPtr obj, out double factor1, out double factor2); - public static Efl.Eo.FunctionWrapper efl_bounce_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_bounce_interpolator_factors_get"); - private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2) - { - Eina.Log.Debug("function efl_bounce_interpolator_factors_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - factor1 = default(double); factor2 = default(double); - try { - ((BounceInterpolator)wrapper).GetFactors( out factor1, out factor2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_bounce_interpolator_factors_set"), func = Marshal.GetFunctionPointerForDelegate(efl_bounce_interpolator_factors_set_static_delegate) }); + } + + if (efl_interpolator_interpolate_static_delegate == null) + { + efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); + } + + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate) }); } - } else { - efl_bounce_interpolator_factors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out factor1, out factor2); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.BounceInterpolator.efl_bounce_interpolator_class_get(); } - } - private static efl_bounce_interpolator_factors_get_delegate efl_bounce_interpolator_factors_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_bounce_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2); + + private delegate void efl_bounce_interpolator_factors_get_delegate(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2); + + public delegate void efl_bounce_interpolator_factors_get_api_delegate(System.IntPtr obj, out double factor1, out double factor2); - public delegate void efl_bounce_interpolator_factors_set_api_delegate(System.IntPtr obj, double factor1, double factor2); - public static Efl.Eo.FunctionWrapper efl_bounce_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_bounce_interpolator_factors_set"); - private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2) - { - Eina.Log.Debug("function efl_bounce_interpolator_factors_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((BounceInterpolator)wrapper).SetFactors( factor1, factor2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_bounce_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_bounce_interpolator_factors_get"); + + private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2) + { + Eina.Log.Debug("function efl_bounce_interpolator_factors_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + factor1 = default(double); factor2 = default(double); + try + { + ((BounceInterpolator)wrapper).GetFactors(out factor1, out factor2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_bounce_interpolator_factors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out factor1, out factor2); } - } else { - efl_bounce_interpolator_factors_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor1, factor2); } - } - private static efl_bounce_interpolator_factors_set_delegate efl_bounce_interpolator_factors_set_static_delegate; + private static efl_bounce_interpolator_factors_get_delegate efl_bounce_interpolator_factors_get_static_delegate; - private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + private delegate void efl_bounce_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2); + + public delegate void efl_bounce_interpolator_factors_set_api_delegate(System.IntPtr obj, double factor1, double factor2); - public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); - public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_interpolator_interpolate"); - private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) - { - Eina.Log.Debug("function efl_interpolator_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((BounceInterpolator)wrapper).Interpolate( progress); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_bounce_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_bounce_interpolator_factors_set"); + + private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2) + { + Eina.Log.Debug("function efl_bounce_interpolator_factors_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((BounceInterpolator)wrapper).SetFactors(factor1, factor2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_bounce_interpolator_factors_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor1, factor2); + } + } + + private static efl_bounce_interpolator_factors_set_delegate efl_bounce_interpolator_factors_set_static_delegate; + + + private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + + public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); + + public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_interpolator_interpolate"); + + private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) + { + Eina.Log.Debug("function efl_interpolator_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((BounceInterpolator)wrapper).Interpolate(progress); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + + } + else + { + return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + } } - } - private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_cached_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_cached_item.eo.cs index 857c63a..03eb3df 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_cached_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_cached_item.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Cached { +namespace Efl { + +namespace Cached { + /// Efl Cached Item interface -[IItemNativeInherit] +[Efl.Cached.IItemConcrete.NativeMethods] public interface IItem : Efl.Eo.IWrapper, IDisposable { @@ -26,72 +30,107 @@ IItem { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IItemConcrete)) - return Efl.Cached.IItemNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IItemConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_cached_item_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IItemConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IItemConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Get the memory size associated with an object. /// Bytes of memory consumed by this object. public uint GetMemorySize() { - var _ret_var = Efl.Cached.IItemNativeInherit.efl_cached_item_memory_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Cached.IItemConcrete.NativeMethods.efl_cached_item_memory_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -104,51 +143,80 @@ IItem { return Efl.Cached.IItemConcrete.efl_cached_item_interface_get(); } -} -public class IItemNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_cached_item_memory_size_get_static_delegate == null) - efl_cached_item_memory_size_get_static_delegate = new efl_cached_item_memory_size_get_delegate(memory_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetMemorySize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_cached_item_memory_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_cached_item_memory_size_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Cached.IItemConcrete.efl_cached_item_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Cached.IItemConcrete.efl_cached_item_interface_get(); - } + 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_cached_item_memory_size_get_static_delegate == null) + { + efl_cached_item_memory_size_get_static_delegate = new efl_cached_item_memory_size_get_delegate(memory_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMemorySize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_cached_item_memory_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_cached_item_memory_size_get_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.Cached.IItemConcrete.efl_cached_item_interface_get(); + } - private delegate uint efl_cached_item_memory_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + private delegate uint efl_cached_item_memory_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate uint efl_cached_item_memory_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_cached_item_memory_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_cached_item_memory_size_get"); + + private static uint memory_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_cached_item_memory_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((IItem)wrapper).GetMemorySize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate uint efl_cached_item_memory_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_cached_item_memory_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_cached_item_memory_size_get"); - private static uint memory_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_cached_item_memory_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((IItem)wrapper).GetMemorySize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_cached_item_memory_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_cached_item_memory_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_cached_item_memory_size_get_delegate efl_cached_item_memory_size_get_static_delegate; + + private static efl_cached_item_memory_size_get_delegate efl_cached_item_memory_size_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation.eo.cs index b54184a..38e9c31 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation.eo.cs @@ -3,172 +3,185 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Efl animation class -[AnimationNativeInherit] +[Efl.Canvas.Animation.NativeMethods] public class Animation : Efl.Object, Efl.Eo.IWrapper,Efl.IPlayable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Animation)) - return Efl.Canvas.AnimationNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Animation)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_animation_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Animation(Efl.Object parent= null - ) : - base(efl_canvas_animation_class_get(), typeof(Animation), parent) + ) : base(efl_canvas_animation_class_get(), typeof(Animation), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Animation(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Animation(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Animation(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Keep final state property /// true to keep final state, false otherwise. virtual public bool GetFinalStateKeep() { - var _ret_var = Efl.Canvas.AnimationNativeInherit.efl_animation_final_state_keep_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_final_state_keep_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Keep final state property /// true to keep final state, false otherwise. - /// - virtual public void SetFinalStateKeep( bool keep) { - Efl.Canvas.AnimationNativeInherit.efl_animation_final_state_keep_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), keep); + virtual public void SetFinalStateKeep(bool keep) { + Efl.Canvas.Animation.NativeMethods.efl_animation_final_state_keep_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),keep); Eina.Error.RaiseIfUnhandledException(); } /// Duration property /// Duration value. virtual public double GetDuration() { - var _ret_var = Efl.Canvas.AnimationNativeInherit.efl_animation_duration_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_duration_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Duration property /// Duration value. - /// - virtual public void SetDuration( double sec) { - Efl.Canvas.AnimationNativeInherit.efl_animation_duration_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sec); + virtual public void SetDuration(double sec) { + Efl.Canvas.Animation.NativeMethods.efl_animation_duration_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sec); Eina.Error.RaiseIfUnhandledException(); } /// Repeat mode property /// Repeat mode. EFL_ANIMATION_REPEAT_MODE_RESTART restarts animation when the animation ends and EFL_ANIMATION_REPEAT_MODE_REVERSE reverses animation when the animation ends. virtual public Efl.Canvas.AnimationRepeatMode GetRepeatMode() { - var _ret_var = Efl.Canvas.AnimationNativeInherit.efl_animation_repeat_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Repeat mode property /// Repeat mode. EFL_ANIMATION_REPEAT_MODE_RESTART restarts animation when the animation ends and EFL_ANIMATION_REPEAT_MODE_REVERSE reverses animation when the animation ends. - /// - virtual public void SetRepeatMode( Efl.Canvas.AnimationRepeatMode mode) { - Efl.Canvas.AnimationNativeInherit.efl_animation_repeat_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mode); + virtual public void SetRepeatMode(Efl.Canvas.AnimationRepeatMode mode) { + Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode); Eina.Error.RaiseIfUnhandledException(); } /// Repeat count property /// Repeat count. EFL_ANIMATION_REPEAT_INFINITE repeats animation infinitely. virtual public int GetRepeatCount() { - var _ret_var = Efl.Canvas.AnimationNativeInherit.efl_animation_repeat_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Repeat count property /// Repeat count. EFL_ANIMATION_REPEAT_INFINITE repeats animation infinitely. - /// - virtual public void SetRepeatCount( int count) { - Efl.Canvas.AnimationNativeInherit.efl_animation_repeat_count_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), count); + virtual public void SetRepeatCount(int count) { + Efl.Canvas.Animation.NativeMethods.efl_animation_repeat_count_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),count); Eina.Error.RaiseIfUnhandledException(); } /// Start delay property /// Delay time, in seconds, from when the animation starts until the animation is animated virtual public double GetStartDelay() { - var _ret_var = Efl.Canvas.AnimationNativeInherit.efl_animation_start_delay_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_start_delay_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Start delay property /// Delay time, in seconds, from when the animation starts until the animation is animated - /// - virtual public void SetStartDelay( double sec) { - Efl.Canvas.AnimationNativeInherit.efl_animation_start_delay_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sec); + virtual public void SetStartDelay(double sec) { + Efl.Canvas.Animation.NativeMethods.efl_animation_start_delay_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sec); Eina.Error.RaiseIfUnhandledException(); } /// Interpolator property /// Interpolator which indicates interpolation function. Efl_Interpolator is required. virtual public Efl.IInterpolator GetInterpolator() { - var _ret_var = Efl.Canvas.AnimationNativeInherit.efl_animation_interpolator_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_interpolator_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Interpolator property /// Interpolator which indicates interpolation function. Efl_Interpolator is required. - /// - virtual public void SetInterpolator( Efl.IInterpolator interpolator) { - Efl.Canvas.AnimationNativeInherit.efl_animation_interpolator_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), interpolator); + virtual public void SetInterpolator(Efl.IInterpolator interpolator) { + Efl.Canvas.Animation.NativeMethods.efl_animation_interpolator_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),interpolator); Eina.Error.RaiseIfUnhandledException(); } - /// - /// - /// /// Final applied progress. - virtual public double AnimationApply( double progress, Efl.Canvas.Object target) { - var _ret_var = Efl.Canvas.AnimationNativeInherit.efl_animation_apply_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), progress, target); + virtual public double AnimationApply(double progress, Efl.Canvas.Object target) { + var _ret_var = Efl.Canvas.Animation.NativeMethods.efl_animation_apply_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),progress, target); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the length of play for the media file. /// The length of the stream in seconds. virtual public double GetLength() { - var _ret_var = Efl.IPlayableNativeInherit.efl_playable_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// virtual public bool GetPlayable() { - var _ret_var = Efl.IPlayableNativeInherit.efl_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get whether the media file is seekable. /// true if seekable. virtual public bool GetSeekable() { - var _ret_var = Efl.IPlayableNativeInherit.efl_playable_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -176,46 +189,44 @@ public class Animation : Efl.Object, Efl.Eo.IWrapper,Efl.IPlayable /// true to keep final state, false otherwise. public bool FinalStateKeep { get { return GetFinalStateKeep(); } - set { SetFinalStateKeep( value); } + set { SetFinalStateKeep(value); } } /// Duration property /// Duration value. public double Duration { get { return GetDuration(); } - set { SetDuration( value); } + set { SetDuration(value); } } /// Repeat mode property /// Repeat mode. EFL_ANIMATION_REPEAT_MODE_RESTART restarts animation when the animation ends and EFL_ANIMATION_REPEAT_MODE_REVERSE reverses animation when the animation ends. public Efl.Canvas.AnimationRepeatMode RepeatMode { get { return GetRepeatMode(); } - set { SetRepeatMode( value); } + set { SetRepeatMode(value); } } /// Repeat count property /// Repeat count. EFL_ANIMATION_REPEAT_INFINITE repeats animation infinitely. public int RepeatCount { get { return GetRepeatCount(); } - set { SetRepeatCount( value); } + set { SetRepeatCount(value); } } /// Start delay property /// Delay time, in seconds, from when the animation starts until the animation is animated public double StartDelay { get { return GetStartDelay(); } - set { SetStartDelay( value); } + set { SetStartDelay(value); } } /// Interpolator property /// Interpolator which indicates interpolation function. Efl_Interpolator is required. public Efl.IInterpolator Interpolator { get { return GetInterpolator(); } - set { SetInterpolator( value); } + set { SetInterpolator(value); } } /// Get the length of play for the media file. /// The length of the stream in seconds. public double Length { get { return GetLength(); } } - /// -/// - public bool Playable { + public bool Playable { get { return GetPlayable(); } } /// Get whether the media file is seekable. @@ -227,481 +238,765 @@ public class Animation : Efl.Object, Efl.Eo.IWrapper,Efl.IPlayable { return Efl.Canvas.Animation.efl_canvas_animation_class_get(); } -} -public class AnimationNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_animation_final_state_keep_get_static_delegate == null) - efl_animation_final_state_keep_get_static_delegate = new efl_animation_final_state_keep_get_delegate(final_state_keep_get); - if (methods.FirstOrDefault(m => m.Name == "GetFinalStateKeep") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_final_state_keep_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_final_state_keep_get_static_delegate)}); - if (efl_animation_final_state_keep_set_static_delegate == null) - efl_animation_final_state_keep_set_static_delegate = new efl_animation_final_state_keep_set_delegate(final_state_keep_set); - if (methods.FirstOrDefault(m => m.Name == "SetFinalStateKeep") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_final_state_keep_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_final_state_keep_set_static_delegate)}); - if (efl_animation_duration_get_static_delegate == null) - efl_animation_duration_get_static_delegate = new efl_animation_duration_get_delegate(duration_get); - if (methods.FirstOrDefault(m => m.Name == "GetDuration") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_duration_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_duration_get_static_delegate)}); - if (efl_animation_duration_set_static_delegate == null) - efl_animation_duration_set_static_delegate = new efl_animation_duration_set_delegate(duration_set); - if (methods.FirstOrDefault(m => m.Name == "SetDuration") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_duration_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_duration_set_static_delegate)}); - if (efl_animation_repeat_mode_get_static_delegate == null) - efl_animation_repeat_mode_get_static_delegate = new efl_animation_repeat_mode_get_delegate(repeat_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetRepeatMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_repeat_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_mode_get_static_delegate)}); - if (efl_animation_repeat_mode_set_static_delegate == null) - efl_animation_repeat_mode_set_static_delegate = new efl_animation_repeat_mode_set_delegate(repeat_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetRepeatMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_repeat_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_mode_set_static_delegate)}); - if (efl_animation_repeat_count_get_static_delegate == null) - efl_animation_repeat_count_get_static_delegate = new efl_animation_repeat_count_get_delegate(repeat_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetRepeatCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_repeat_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_count_get_static_delegate)}); - if (efl_animation_repeat_count_set_static_delegate == null) - efl_animation_repeat_count_set_static_delegate = new efl_animation_repeat_count_set_delegate(repeat_count_set); - if (methods.FirstOrDefault(m => m.Name == "SetRepeatCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_repeat_count_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_count_set_static_delegate)}); - if (efl_animation_start_delay_get_static_delegate == null) - efl_animation_start_delay_get_static_delegate = new efl_animation_start_delay_get_delegate(start_delay_get); - if (methods.FirstOrDefault(m => m.Name == "GetStartDelay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_start_delay_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_start_delay_get_static_delegate)}); - if (efl_animation_start_delay_set_static_delegate == null) - efl_animation_start_delay_set_static_delegate = new efl_animation_start_delay_set_delegate(start_delay_set); - if (methods.FirstOrDefault(m => m.Name == "SetStartDelay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_start_delay_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_start_delay_set_static_delegate)}); - if (efl_animation_interpolator_get_static_delegate == null) - efl_animation_interpolator_get_static_delegate = new efl_animation_interpolator_get_delegate(interpolator_get); - if (methods.FirstOrDefault(m => m.Name == "GetInterpolator") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_interpolator_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_interpolator_get_static_delegate)}); - if (efl_animation_interpolator_set_static_delegate == null) - efl_animation_interpolator_set_static_delegate = new efl_animation_interpolator_set_delegate(interpolator_set); - if (methods.FirstOrDefault(m => m.Name == "SetInterpolator") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_interpolator_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_interpolator_set_static_delegate)}); - if (efl_animation_apply_static_delegate == null) - efl_animation_apply_static_delegate = new efl_animation_apply_delegate(animation_apply); - if (methods.FirstOrDefault(m => m.Name == "AnimationApply") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_apply"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_apply_static_delegate)}); - if (efl_playable_length_get_static_delegate == null) - efl_playable_length_get_static_delegate = new efl_playable_length_get_delegate(length_get); - if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_playable_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_length_get_static_delegate)}); - if (efl_playable_get_static_delegate == null) - efl_playable_get_static_delegate = new efl_playable_get_delegate(playable_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_get_static_delegate)}); - if (efl_playable_seekable_get_static_delegate == null) - efl_playable_seekable_get_static_delegate = new efl_playable_seekable_get_delegate(seekable_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_playable_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_seekable_get_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Animation.efl_canvas_animation_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Canvas.Animation.efl_canvas_animation_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_animation_final_state_keep_get_static_delegate == null) + { + efl_animation_final_state_keep_get_static_delegate = new efl_animation_final_state_keep_get_delegate(final_state_keep_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFinalStateKeep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_final_state_keep_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_final_state_keep_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_animation_final_state_keep_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_animation_final_state_keep_set_static_delegate == null) + { + efl_animation_final_state_keep_set_static_delegate = new efl_animation_final_state_keep_set_delegate(final_state_keep_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFinalStateKeep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_final_state_keep_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_final_state_keep_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_animation_final_state_keep_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_animation_final_state_keep_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_final_state_keep_get"); - private static bool final_state_keep_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_animation_final_state_keep_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Animation)wrapper).GetFinalStateKeep(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_animation_duration_get_static_delegate == null) + { + efl_animation_duration_get_static_delegate = new efl_animation_duration_get_delegate(duration_get); } - return _ret_var; - } else { - return efl_animation_final_state_keep_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_animation_final_state_keep_get_delegate efl_animation_final_state_keep_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetDuration") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_duration_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_duration_get_static_delegate) }); + } - private delegate void efl_animation_final_state_keep_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool keep); + if (efl_animation_duration_set_static_delegate == null) + { + efl_animation_duration_set_static_delegate = new efl_animation_duration_set_delegate(duration_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetDuration") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_duration_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_duration_set_static_delegate) }); + } - public delegate void efl_animation_final_state_keep_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool keep); - public static Efl.Eo.FunctionWrapper efl_animation_final_state_keep_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_final_state_keep_set"); - private static void final_state_keep_set(System.IntPtr obj, System.IntPtr pd, bool keep) - { - Eina.Log.Debug("function efl_animation_final_state_keep_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Animation)wrapper).SetFinalStateKeep( keep); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_final_state_keep_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), keep); - } - } - private static efl_animation_final_state_keep_set_delegate efl_animation_final_state_keep_set_static_delegate; + if (efl_animation_repeat_mode_get_static_delegate == null) + { + efl_animation_repeat_mode_get_static_delegate = new efl_animation_repeat_mode_get_delegate(repeat_mode_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRepeatMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_repeat_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_mode_get_static_delegate) }); + } - private delegate double efl_animation_duration_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_animation_repeat_mode_set_static_delegate == null) + { + efl_animation_repeat_mode_set_static_delegate = new efl_animation_repeat_mode_set_delegate(repeat_mode_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRepeatMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_repeat_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_mode_set_static_delegate) }); + } - public delegate double efl_animation_duration_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_animation_duration_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_duration_get"); - private static double duration_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_animation_duration_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Animation)wrapper).GetDuration(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_animation_repeat_count_get_static_delegate == null) + { + efl_animation_repeat_count_get_static_delegate = new efl_animation_repeat_count_get_delegate(repeat_count_get); } - return _ret_var; - } else { - return efl_animation_duration_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_animation_duration_get_delegate efl_animation_duration_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetRepeatCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_repeat_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_count_get_static_delegate) }); + } - private delegate void efl_animation_duration_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + if (efl_animation_repeat_count_set_static_delegate == null) + { + efl_animation_repeat_count_set_static_delegate = new efl_animation_repeat_count_set_delegate(repeat_count_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRepeatCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_repeat_count_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_repeat_count_set_static_delegate) }); + } - public delegate void efl_animation_duration_set_api_delegate(System.IntPtr obj, double sec); - public static Efl.Eo.FunctionWrapper efl_animation_duration_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_duration_set"); - private static void duration_set(System.IntPtr obj, System.IntPtr pd, double sec) - { - Eina.Log.Debug("function efl_animation_duration_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Animation)wrapper).SetDuration( sec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_duration_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); - } - } - private static efl_animation_duration_set_delegate efl_animation_duration_set_static_delegate; + if (efl_animation_start_delay_get_static_delegate == null) + { + efl_animation_start_delay_get_static_delegate = new efl_animation_start_delay_get_delegate(start_delay_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStartDelay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_start_delay_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_start_delay_get_static_delegate) }); + } - private delegate Efl.Canvas.AnimationRepeatMode efl_animation_repeat_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_animation_start_delay_set_static_delegate == null) + { + efl_animation_start_delay_set_static_delegate = new efl_animation_start_delay_set_delegate(start_delay_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStartDelay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_start_delay_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_start_delay_set_static_delegate) }); + } - public delegate Efl.Canvas.AnimationRepeatMode efl_animation_repeat_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_animation_repeat_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_repeat_mode_get"); - private static Efl.Canvas.AnimationRepeatMode repeat_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_animation_repeat_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.AnimationRepeatMode _ret_var = default(Efl.Canvas.AnimationRepeatMode); - try { - _ret_var = ((Animation)wrapper).GetRepeatMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_animation_interpolator_get_static_delegate == null) + { + efl_animation_interpolator_get_static_delegate = new efl_animation_interpolator_get_delegate(interpolator_get); } - return _ret_var; - } else { - return efl_animation_repeat_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_animation_repeat_mode_get_delegate efl_animation_repeat_mode_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetInterpolator") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_interpolator_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_interpolator_get_static_delegate) }); + } - private delegate void efl_animation_repeat_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.AnimationRepeatMode mode); + if (efl_animation_interpolator_set_static_delegate == null) + { + efl_animation_interpolator_set_static_delegate = new efl_animation_interpolator_set_delegate(interpolator_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetInterpolator") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_interpolator_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_interpolator_set_static_delegate) }); + } - public delegate void efl_animation_repeat_mode_set_api_delegate(System.IntPtr obj, Efl.Canvas.AnimationRepeatMode mode); - public static Efl.Eo.FunctionWrapper efl_animation_repeat_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_repeat_mode_set"); - private static void repeat_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.AnimationRepeatMode mode) - { - Eina.Log.Debug("function efl_animation_repeat_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Animation)wrapper).SetRepeatMode( mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_repeat_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); - } - } - private static efl_animation_repeat_mode_set_delegate efl_animation_repeat_mode_set_static_delegate; + if (efl_animation_apply_static_delegate == null) + { + efl_animation_apply_static_delegate = new efl_animation_apply_delegate(animation_apply); + } + if (methods.FirstOrDefault(m => m.Name == "AnimationApply") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_apply"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_apply_static_delegate) }); + } - private delegate int efl_animation_repeat_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_playable_length_get_static_delegate == null) + { + efl_playable_length_get_static_delegate = new efl_playable_length_get_delegate(length_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_playable_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_length_get_static_delegate) }); + } - public delegate int efl_animation_repeat_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_animation_repeat_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_repeat_count_get"); - private static int repeat_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_animation_repeat_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Animation)wrapper).GetRepeatCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_playable_get_static_delegate == null) + { + efl_playable_get_static_delegate = new efl_playable_get_delegate(playable_get); } - return _ret_var; - } else { - return efl_animation_repeat_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_animation_repeat_count_get_delegate efl_animation_repeat_count_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_get_static_delegate) }); + } - private delegate void efl_animation_repeat_count_set_delegate(System.IntPtr obj, System.IntPtr pd, int count); + if (efl_playable_seekable_get_static_delegate == null) + { + efl_playable_seekable_get_static_delegate = new efl_playable_seekable_get_delegate(seekable_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_playable_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_seekable_get_static_delegate) }); + } - public delegate void efl_animation_repeat_count_set_api_delegate(System.IntPtr obj, int count); - public static Efl.Eo.FunctionWrapper efl_animation_repeat_count_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_repeat_count_set"); - private static void repeat_count_set(System.IntPtr obj, System.IntPtr pd, int count) - { - Eina.Log.Debug("function efl_animation_repeat_count_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Animation)wrapper).SetRepeatCount( count); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_repeat_count_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), count); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Animation.efl_canvas_animation_class_get(); } - } - private static efl_animation_repeat_count_set_delegate efl_animation_repeat_count_set_static_delegate; - - private delegate double efl_animation_start_delay_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_animation_final_state_keep_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_animation_final_state_keep_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_animation_final_state_keep_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_final_state_keep_get"); + + private static bool final_state_keep_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_animation_final_state_keep_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Animation)wrapper).GetFinalStateKeep(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_animation_start_delay_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_animation_start_delay_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_start_delay_get"); - private static double start_delay_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_animation_start_delay_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Animation)wrapper).GetStartDelay(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_animation_start_delay_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_animation_final_state_keep_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_animation_start_delay_get_delegate efl_animation_start_delay_get_static_delegate; + private static efl_animation_final_state_keep_get_delegate efl_animation_final_state_keep_get_static_delegate; + + + private delegate void efl_animation_final_state_keep_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool keep); + + + public delegate void efl_animation_final_state_keep_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool keep); + + public static Efl.Eo.FunctionWrapper efl_animation_final_state_keep_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_final_state_keep_set"); + + private static void final_state_keep_set(System.IntPtr obj, System.IntPtr pd, bool keep) + { + Eina.Log.Debug("function efl_animation_final_state_keep_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Animation)wrapper).SetFinalStateKeep(keep); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_final_state_keep_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), keep); + } + } - private delegate void efl_animation_start_delay_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + private static efl_animation_final_state_keep_set_delegate efl_animation_final_state_keep_set_static_delegate; + + + private delegate double efl_animation_duration_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_animation_duration_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_animation_duration_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_duration_get"); + + private static double duration_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_animation_duration_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Animation)wrapper).GetDuration(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_animation_start_delay_set_api_delegate(System.IntPtr obj, double sec); - public static Efl.Eo.FunctionWrapper efl_animation_start_delay_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_start_delay_set"); - private static void start_delay_set(System.IntPtr obj, System.IntPtr pd, double sec) - { - Eina.Log.Debug("function efl_animation_start_delay_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Animation)wrapper).SetStartDelay( sec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_start_delay_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); + } + else + { + return efl_animation_duration_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_animation_start_delay_set_delegate efl_animation_start_delay_set_static_delegate; + private static efl_animation_duration_get_delegate efl_animation_duration_get_static_delegate; + + + private delegate void efl_animation_duration_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + + + public delegate void efl_animation_duration_set_api_delegate(System.IntPtr obj, double sec); + + public static Efl.Eo.FunctionWrapper efl_animation_duration_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_duration_set"); + + private static void duration_set(System.IntPtr obj, System.IntPtr pd, double sec) + { + Eina.Log.Debug("function efl_animation_duration_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Animation)wrapper).SetDuration(sec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_duration_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IInterpolator efl_animation_interpolator_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_animation_duration_set_delegate efl_animation_duration_set_static_delegate; + + + private delegate Efl.Canvas.AnimationRepeatMode efl_animation_repeat_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Canvas.AnimationRepeatMode efl_animation_repeat_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_animation_repeat_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_repeat_mode_get"); + + private static Efl.Canvas.AnimationRepeatMode repeat_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_animation_repeat_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.AnimationRepeatMode _ret_var = default(Efl.Canvas.AnimationRepeatMode); + try + { + _ret_var = ((Animation)wrapper).GetRepeatMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IInterpolator efl_animation_interpolator_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_animation_interpolator_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_interpolator_get"); - private static Efl.IInterpolator interpolator_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_animation_interpolator_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IInterpolator _ret_var = default(Efl.IInterpolator); - try { - _ret_var = ((Animation)wrapper).GetInterpolator(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_animation_interpolator_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_animation_repeat_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_animation_interpolator_get_delegate efl_animation_interpolator_get_static_delegate; + private static efl_animation_repeat_mode_get_delegate efl_animation_repeat_mode_get_static_delegate; + + + private delegate void efl_animation_repeat_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.AnimationRepeatMode mode); + + + public delegate void efl_animation_repeat_mode_set_api_delegate(System.IntPtr obj, Efl.Canvas.AnimationRepeatMode mode); + + public static Efl.Eo.FunctionWrapper efl_animation_repeat_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_repeat_mode_set"); + + private static void repeat_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.AnimationRepeatMode mode) + { + Eina.Log.Debug("function efl_animation_repeat_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Animation)wrapper).SetRepeatMode(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_repeat_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); + } + } - private delegate void efl_animation_interpolator_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IInterpolator interpolator); + private static efl_animation_repeat_mode_set_delegate efl_animation_repeat_mode_set_static_delegate; + + + private delegate int efl_animation_repeat_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_animation_repeat_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_animation_repeat_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_repeat_count_get"); + + private static int repeat_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_animation_repeat_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Animation)wrapper).GetRepeatCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_animation_interpolator_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IInterpolator interpolator); - public static Efl.Eo.FunctionWrapper efl_animation_interpolator_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_interpolator_set"); - private static void interpolator_set(System.IntPtr obj, System.IntPtr pd, Efl.IInterpolator interpolator) - { - Eina.Log.Debug("function efl_animation_interpolator_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Animation)wrapper).SetInterpolator( interpolator); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_interpolator_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), interpolator); + } + else + { + return efl_animation_repeat_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_animation_interpolator_set_delegate efl_animation_interpolator_set_static_delegate; + private static efl_animation_repeat_count_get_delegate efl_animation_repeat_count_get_static_delegate; + + + private delegate void efl_animation_repeat_count_set_delegate(System.IntPtr obj, System.IntPtr pd, int count); + + + public delegate void efl_animation_repeat_count_set_api_delegate(System.IntPtr obj, int count); + + public static Efl.Eo.FunctionWrapper efl_animation_repeat_count_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_repeat_count_set"); + + private static void repeat_count_set(System.IntPtr obj, System.IntPtr pd, int count) + { + Eina.Log.Debug("function efl_animation_repeat_count_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Animation)wrapper).SetRepeatCount(count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_repeat_count_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), count); + } + } - private delegate double efl_animation_apply_delegate(System.IntPtr obj, System.IntPtr pd, double progress, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object target); + private static efl_animation_repeat_count_set_delegate efl_animation_repeat_count_set_static_delegate; + + + private delegate double efl_animation_start_delay_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_animation_start_delay_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_animation_start_delay_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_start_delay_get"); + + private static double start_delay_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_animation_start_delay_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Animation)wrapper).GetStartDelay(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_animation_apply_api_delegate(System.IntPtr obj, double progress, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object target); - public static Efl.Eo.FunctionWrapper efl_animation_apply_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_apply"); - private static double animation_apply(System.IntPtr obj, System.IntPtr pd, double progress, Efl.Canvas.Object target) - { - Eina.Log.Debug("function efl_animation_apply was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Animation)wrapper).AnimationApply( progress, target); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_animation_apply_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress, target); + else + { + return efl_animation_start_delay_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_animation_apply_delegate efl_animation_apply_static_delegate; + private static efl_animation_start_delay_get_delegate efl_animation_start_delay_get_static_delegate; + + + private delegate void efl_animation_start_delay_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + + + public delegate void efl_animation_start_delay_set_api_delegate(System.IntPtr obj, double sec); + + public static Efl.Eo.FunctionWrapper efl_animation_start_delay_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_start_delay_set"); + + private static void start_delay_set(System.IntPtr obj, System.IntPtr pd, double sec) + { + Eina.Log.Debug("function efl_animation_start_delay_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Animation)wrapper).SetStartDelay(sec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_start_delay_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); + } + } - private delegate double efl_playable_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_animation_start_delay_set_delegate efl_animation_start_delay_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IInterpolator efl_animation_interpolator_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IInterpolator efl_animation_interpolator_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_animation_interpolator_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_interpolator_get"); + + private static Efl.IInterpolator interpolator_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_animation_interpolator_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IInterpolator _ret_var = default(Efl.IInterpolator); + try + { + _ret_var = ((Animation)wrapper).GetInterpolator(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_playable_length_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_playable_length_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_playable_length_get"); - private static double length_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_playable_length_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Animation)wrapper).GetLength(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_playable_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_animation_interpolator_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_playable_length_get_delegate efl_playable_length_get_static_delegate; + private static efl_animation_interpolator_get_delegate efl_animation_interpolator_get_static_delegate; + + + private delegate void efl_animation_interpolator_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IInterpolator interpolator); + + + public delegate void efl_animation_interpolator_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IInterpolator interpolator); + + public static Efl.Eo.FunctionWrapper efl_animation_interpolator_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_interpolator_set"); + + private static void interpolator_set(System.IntPtr obj, System.IntPtr pd, Efl.IInterpolator interpolator) + { + Eina.Log.Debug("function efl_animation_interpolator_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Animation)wrapper).SetInterpolator(interpolator); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_interpolator_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), interpolator); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_animation_interpolator_set_delegate efl_animation_interpolator_set_static_delegate; + + + private delegate double efl_animation_apply_delegate(System.IntPtr obj, System.IntPtr pd, double progress, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object target); + + + public delegate double efl_animation_apply_api_delegate(System.IntPtr obj, double progress, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object target); + + public static Efl.Eo.FunctionWrapper efl_animation_apply_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_apply"); + + private static double animation_apply(System.IntPtr obj, System.IntPtr pd, double progress, Efl.Canvas.Object target) + { + Eina.Log.Debug("function efl_animation_apply was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Animation)wrapper).AnimationApply(progress, target); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_playable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_playable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_playable_get"); - private static bool playable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_playable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Animation)wrapper).GetPlayable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_animation_apply_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress, target); + } } - } - private static efl_playable_get_delegate efl_playable_get_static_delegate; + private static efl_animation_apply_delegate efl_animation_apply_static_delegate; + + + private delegate double efl_playable_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_playable_length_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_playable_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_playable_length_get"); + + private static double length_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_playable_length_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Animation)wrapper).GetLength(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_playable_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_playable_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_playable_length_get_delegate efl_playable_length_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_playable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_playable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_playable_get"); + + private static bool playable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_playable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Animation)wrapper).GetPlayable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_playable_seekable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_playable_seekable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_playable_seekable_get"); - private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_playable_seekable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Animation)wrapper).GetSeekable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_playable_get_delegate efl_playable_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_playable_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_playable_seekable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_playable_seekable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_playable_seekable_get"); + + private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_playable_seekable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Animation)wrapper).GetSeekable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_playable_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_playable_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_playable_seekable_get_delegate efl_playable_seekable_get_static_delegate; + + private static efl_playable_seekable_get_delegate efl_playable_seekable_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_alpha.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_alpha.eo.cs index e8cd67e..012a472 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_alpha.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_alpha.eo.cs @@ -3,154 +3,222 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Efl alpha animation class -[AnimationAlphaNativeInherit] +[Efl.Canvas.AnimationAlpha.NativeMethods] public class AnimationAlpha : Efl.Canvas.Animation, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AnimationAlpha)) - return Efl.Canvas.AnimationAlphaNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AnimationAlpha)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_animation_alpha_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public AnimationAlpha(Efl.Object parent= null - ) : - base(efl_canvas_animation_alpha_class_get(), typeof(AnimationAlpha), parent) + ) : base(efl_canvas_animation_alpha_class_get(), typeof(AnimationAlpha), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AnimationAlpha(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AnimationAlpha(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AnimationAlpha(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Alpha property /// Alpha value when animation starts /// Alpha value when animation ends - /// - virtual public void GetAlpha( out double from_alpha, out double to_alpha) { - Efl.Canvas.AnimationAlphaNativeInherit.efl_animation_alpha_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out from_alpha, out to_alpha); + virtual public void GetAlpha(out double from_alpha, out double to_alpha) { + Efl.Canvas.AnimationAlpha.NativeMethods.efl_animation_alpha_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from_alpha, out to_alpha); Eina.Error.RaiseIfUnhandledException(); } /// Alpha property /// Alpha value when animation starts /// Alpha value when animation ends - /// - virtual public void SetAlpha( double from_alpha, double to_alpha) { - Efl.Canvas.AnimationAlphaNativeInherit.efl_animation_alpha_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), from_alpha, to_alpha); + virtual public void SetAlpha(double from_alpha, double to_alpha) { + Efl.Canvas.AnimationAlpha.NativeMethods.efl_animation_alpha_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from_alpha, to_alpha); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Canvas.AnimationAlpha.efl_canvas_animation_alpha_class_get(); } -} -public class AnimationAlphaNativeInherit : Efl.Canvas.AnimationNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_animation_alpha_get_static_delegate == null) - efl_animation_alpha_get_static_delegate = new efl_animation_alpha_get_delegate(alpha_get); - if (methods.FirstOrDefault(m => m.Name == "GetAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_alpha_get_static_delegate)}); - if (efl_animation_alpha_set_static_delegate == null) - efl_animation_alpha_set_static_delegate = new efl_animation_alpha_set_delegate(alpha_set); - if (methods.FirstOrDefault(m => m.Name == "SetAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_alpha_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.AnimationAlpha.efl_canvas_animation_alpha_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Animation.NativeMethods { - return Efl.Canvas.AnimationAlpha.efl_canvas_animation_alpha_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_animation_alpha_get_static_delegate == null) + { + efl_animation_alpha_get_static_delegate = new efl_animation_alpha_get_delegate(alpha_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_alpha_get_static_delegate) }); + } + if (efl_animation_alpha_set_static_delegate == null) + { + efl_animation_alpha_set_static_delegate = new efl_animation_alpha_set_delegate(alpha_set); + } - private delegate void efl_animation_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from_alpha, out double to_alpha); + if (methods.FirstOrDefault(m => m.Name == "SetAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_alpha_set_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.AnimationAlpha.efl_canvas_animation_alpha_class_get(); + } - public delegate void efl_animation_alpha_get_api_delegate(System.IntPtr obj, out double from_alpha, out double to_alpha); - public static Efl.Eo.FunctionWrapper efl_animation_alpha_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_alpha_get"); - private static void alpha_get(System.IntPtr obj, System.IntPtr pd, out double from_alpha, out double to_alpha) - { - Eina.Log.Debug("function efl_animation_alpha_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - from_alpha = default(double); to_alpha = default(double); - try { - ((AnimationAlpha)wrapper).GetAlpha( out from_alpha, out to_alpha); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_animation_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from_alpha, out double to_alpha); + + + public delegate void efl_animation_alpha_get_api_delegate(System.IntPtr obj, out double from_alpha, out double to_alpha); + + public static Efl.Eo.FunctionWrapper efl_animation_alpha_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_alpha_get"); + + private static void alpha_get(System.IntPtr obj, System.IntPtr pd, out double from_alpha, out double to_alpha) + { + Eina.Log.Debug("function efl_animation_alpha_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + from_alpha = default(double); to_alpha = default(double); + try + { + ((AnimationAlpha)wrapper).GetAlpha(out from_alpha, out to_alpha); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_alpha, out to_alpha); } - } else { - efl_animation_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_alpha, out to_alpha); } - } - private static efl_animation_alpha_get_delegate efl_animation_alpha_get_static_delegate; + private static efl_animation_alpha_get_delegate efl_animation_alpha_get_static_delegate; - private delegate void efl_animation_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, double from_alpha, double to_alpha); + + private delegate void efl_animation_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, double from_alpha, double to_alpha); + + public delegate void efl_animation_alpha_set_api_delegate(System.IntPtr obj, double from_alpha, double to_alpha); - public delegate void efl_animation_alpha_set_api_delegate(System.IntPtr obj, double from_alpha, double to_alpha); - public static Efl.Eo.FunctionWrapper efl_animation_alpha_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_alpha_set"); - private static void alpha_set(System.IntPtr obj, System.IntPtr pd, double from_alpha, double to_alpha) - { - Eina.Log.Debug("function efl_animation_alpha_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationAlpha)wrapper).SetAlpha( from_alpha, to_alpha); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_animation_alpha_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_alpha_set"); + + private static void alpha_set(System.IntPtr obj, System.IntPtr pd, double from_alpha, double to_alpha) + { + Eina.Log.Debug("function efl_animation_alpha_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationAlpha)wrapper).SetAlpha(from_alpha, to_alpha); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_alpha, to_alpha); } - } else { - efl_animation_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_alpha, to_alpha); } - } - private static efl_animation_alpha_set_delegate efl_animation_alpha_set_static_delegate; + + private static efl_animation_alpha_set_delegate efl_animation_alpha_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group.eo.cs index 544211c..688cf6e 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group.eo.cs @@ -3,36 +3,49 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Efl group animation abstract class -[AnimationGroupNativeInherit] +[Efl.Canvas.AnimationGroup.NativeMethods] public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AnimationGroup)) - return Efl.Canvas.AnimationGroupNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AnimationGroup)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_animation_group_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public AnimationGroup(Efl.Object parent= null - ) : - base(efl_canvas_animation_group_class_get(), typeof(AnimationGroup), parent) + ) : base(efl_canvas_animation_group_class_get(), typeof(AnimationGroup), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AnimationGroup(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class AnimationGroupRealized : AnimationGroup { @@ -40,49 +53,58 @@ public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AnimationGroup(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AnimationGroup(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) { - var other = obj as Efl.Object; + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) + { + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Add the given animation to the animation group. /// The animation which needs to be added to the animation group - /// - virtual public void AddAnimation( Efl.Canvas.Animation animation) { - Efl.Canvas.AnimationGroupNativeInherit.efl_animation_group_animation_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), animation); + virtual public void AddAnimation(Efl.Canvas.Animation animation) { + Efl.Canvas.AnimationGroup.NativeMethods.efl_animation_group_animation_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),animation); Eina.Error.RaiseIfUnhandledException(); } /// Delete the given animation from the animation group. /// The animation which needs to be deleted from the animation group - /// - virtual public void DelAnimation( Efl.Canvas.Animation animation) { - Efl.Canvas.AnimationGroupNativeInherit.efl_animation_group_animation_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), animation); + virtual public void DelAnimation(Efl.Canvas.Animation animation) { + Efl.Canvas.AnimationGroup.NativeMethods.efl_animation_group_animation_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),animation); Eina.Error.RaiseIfUnhandledException(); } /// Get the animations of the animation group. /// The animations of the animation group virtual public Eina.List GetAnimations() { - var _ret_var = Efl.Canvas.AnimationGroupNativeInherit.efl_animation_group_animations_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.AnimationGroup.NativeMethods.efl_animation_group_animations_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, false, false); } @@ -90,108 +112,171 @@ public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper { return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get(); } -} -public class AnimationGroupNativeInherit : Efl.Canvas.AnimationNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_animation_group_animation_add_static_delegate == null) - efl_animation_group_animation_add_static_delegate = new efl_animation_group_animation_add_delegate(animation_add); - if (methods.FirstOrDefault(m => m.Name == "AddAnimation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_group_animation_add"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_group_animation_add_static_delegate)}); - if (efl_animation_group_animation_del_static_delegate == null) - efl_animation_group_animation_del_static_delegate = new efl_animation_group_animation_del_delegate(animation_del); - if (methods.FirstOrDefault(m => m.Name == "DelAnimation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_group_animation_del"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_group_animation_del_static_delegate)}); - if (efl_animation_group_animations_get_static_delegate == null) - efl_animation_group_animations_get_static_delegate = new efl_animation_group_animations_get_delegate(animations_get); - if (methods.FirstOrDefault(m => m.Name == "GetAnimations") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_group_animations_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_group_animations_get_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Animation.NativeMethods { - return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_animation_group_animation_add_static_delegate == null) + { + efl_animation_group_animation_add_static_delegate = new efl_animation_group_animation_add_delegate(animation_add); + } - private delegate void efl_animation_group_animation_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Animation animation); + if (methods.FirstOrDefault(m => m.Name == "AddAnimation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_group_animation_add"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_group_animation_add_static_delegate) }); + } + if (efl_animation_group_animation_del_static_delegate == null) + { + efl_animation_group_animation_del_static_delegate = new efl_animation_group_animation_del_delegate(animation_del); + } - public delegate void efl_animation_group_animation_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Animation animation); - public static Efl.Eo.FunctionWrapper efl_animation_group_animation_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_group_animation_add"); - private static void animation_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation) - { - Eina.Log.Debug("function efl_animation_group_animation_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationGroup)wrapper).AddAnimation( animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DelAnimation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_group_animation_del"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_group_animation_del_static_delegate) }); + } + + if (efl_animation_group_animations_get_static_delegate == null) + { + efl_animation_group_animations_get_static_delegate = new efl_animation_group_animations_get_delegate(animations_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAnimations") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_group_animations_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_group_animations_get_static_delegate) }); } - } else { - efl_animation_group_animation_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get(); } - } - private static efl_animation_group_animation_add_delegate efl_animation_group_animation_add_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_animation_group_animation_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Animation animation); + + private delegate void efl_animation_group_animation_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Animation animation); + + public delegate void efl_animation_group_animation_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Animation animation); - public delegate void efl_animation_group_animation_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Animation animation); - public static Efl.Eo.FunctionWrapper efl_animation_group_animation_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_group_animation_del"); - private static void animation_del(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation) - { - Eina.Log.Debug("function efl_animation_group_animation_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationGroup)wrapper).DelAnimation( animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_animation_group_animation_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_group_animation_add"); + + private static void animation_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation) + { + Eina.Log.Debug("function efl_animation_group_animation_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationGroup)wrapper).AddAnimation(animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_group_animation_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation); } - } else { - efl_animation_group_animation_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation); } - } - private static efl_animation_group_animation_del_delegate efl_animation_group_animation_del_static_delegate; + private static efl_animation_group_animation_add_delegate efl_animation_group_animation_add_static_delegate; - private delegate System.IntPtr efl_animation_group_animations_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_animation_group_animation_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Animation animation); + + public delegate void efl_animation_group_animation_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Animation animation); - public delegate System.IntPtr efl_animation_group_animations_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_animation_group_animations_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_group_animations_get"); - private static System.IntPtr animations_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_animation_group_animations_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((AnimationGroup)wrapper).GetAnimations(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_animation_group_animation_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_group_animation_del"); + + private static void animation_del(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation) + { + Eina.Log.Debug("function efl_animation_group_animation_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationGroup)wrapper).DelAnimation(animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_animation_group_animation_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation); + } + } + + private static efl_animation_group_animation_del_delegate efl_animation_group_animation_del_static_delegate; + + + private delegate System.IntPtr efl_animation_group_animations_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_animation_group_animations_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_animation_group_animations_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_group_animations_get"); + + private static System.IntPtr animations_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_animation_group_animations_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((AnimationGroup)wrapper).GetAnimations(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - } else { - return efl_animation_group_animations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_animation_group_animations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_animation_group_animations_get_delegate efl_animation_group_animations_get_static_delegate; + + private static efl_animation_group_animations_get_delegate efl_animation_group_animations_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_parallel.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_parallel.eo.cs index 924af3f..fb154d3 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_parallel.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_parallel.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Efl group parallel animation class -[AnimationGroupParallelNativeInherit] +[Efl.Canvas.AnimationGroupParallel.NativeMethods] public class AnimationGroupParallel : Efl.Canvas.AnimationGroup, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AnimationGroupParallel)) - return Efl.Canvas.AnimationGroupParallelNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AnimationGroupParallel)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_animation_group_parallel_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public AnimationGroupParallel(Efl.Object parent= null - ) : - base(efl_canvas_animation_group_parallel_class_get(), typeof(AnimationGroupParallel), parent) + ) : base(efl_canvas_animation_group_parallel_class_get(), typeof(AnimationGroupParallel), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AnimationGroupParallel(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AnimationGroupParallel(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AnimationGroupParallel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Canvas.AnimationGroupParallel.efl_canvas_animation_group_parallel_class_get(); } -} -public class AnimationGroupParallelNativeInherit : Efl.Canvas.AnimationGroupNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.AnimationGroupParallel.efl_canvas_animation_group_parallel_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.AnimationGroup.NativeMethods { - return Efl.Canvas.AnimationGroupParallel.efl_canvas_animation_group_parallel_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.AnimationGroupParallel.efl_canvas_animation_group_parallel_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_sequential.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_sequential.eo.cs index 3b40578..76a850c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_sequential.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_sequential.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Efl group sequential animation class -[AnimationGroupSequentialNativeInherit] +[Efl.Canvas.AnimationGroupSequential.NativeMethods] public class AnimationGroupSequential : Efl.Canvas.AnimationGroup, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AnimationGroupSequential)) - return Efl.Canvas.AnimationGroupSequentialNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AnimationGroupSequential)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_animation_group_sequential_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public AnimationGroupSequential(Efl.Object parent= null - ) : - base(efl_canvas_animation_group_sequential_class_get(), typeof(AnimationGroupSequential), parent) + ) : base(efl_canvas_animation_group_sequential_class_get(), typeof(AnimationGroupSequential), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AnimationGroupSequential(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AnimationGroupSequential(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AnimationGroupSequential(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Canvas.AnimationGroupSequential.efl_canvas_animation_group_sequential_class_get(); } -} -public class AnimationGroupSequentialNativeInherit : Efl.Canvas.AnimationGroupNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.AnimationGroupSequential.efl_canvas_animation_group_sequential_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.AnimationGroup.NativeMethods { - return Efl.Canvas.AnimationGroupSequential.efl_canvas_animation_group_sequential_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.AnimationGroupSequential.efl_canvas_animation_group_sequential_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs index 9f963e0..86e6176 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs @@ -3,287 +3,334 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + ///Event argument wrapper for event . public class AnimationPlayerRunningEvt_Args : EventArgs { ///Actual event payload. public Efl.Canvas.ObjectAnimationEvent arg { get; set; } } /// Efl animation object class -[AnimationPlayerNativeInherit] +[Efl.Canvas.AnimationPlayer.NativeMethods] public class AnimationPlayer : Efl.Object, Efl.Eo.IWrapper,Efl.IPlayer { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AnimationPlayer)) - return Efl.Canvas.AnimationPlayerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AnimationPlayer)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_animation_player_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public AnimationPlayer(Efl.Object parent= null - ) : - base(efl_canvas_animation_player_class_get(), typeof(AnimationPlayer), parent) + ) : base(efl_canvas_animation_player_class_get(), typeof(AnimationPlayer), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AnimationPlayer(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AnimationPlayer(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AnimationPlayer(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object StartedEvtKey = new object(); + /// Animation is started. public event EventHandler StartedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ANIMATION_PLAYER_EVENT_STARTED"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_StartedEvt_delegate)) { - eventHandlers.AddHandler(StartedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ANIMATION_PLAYER_EVENT_STARTED"; - if (RemoveNativeEventHandler(key, this.evt_StartedEvt_delegate)) { - eventHandlers.RemoveHandler(StartedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event StartedEvt. - public void On_StartedEvt(EventArgs e) + public void OnStartedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[StartedEvtKey]; + var key = "_EFL_ANIMATION_PLAYER_EVENT_STARTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_StartedEvt_delegate; - private void on_StartedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_StartedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object RunningEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Animation is running. public event EventHandler RunningEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.AnimationPlayerRunningEvt_Args args = new Efl.Canvas.AnimationPlayerRunningEvt_Args(); + args.arg = default(Efl.Canvas.ObjectAnimationEvent); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ANIMATION_PLAYER_EVENT_RUNNING"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_RunningEvt_delegate)) { - eventHandlers.AddHandler(RunningEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ANIMATION_PLAYER_EVENT_RUNNING"; - if (RemoveNativeEventHandler(key, this.evt_RunningEvt_delegate)) { - eventHandlers.RemoveHandler(RunningEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event RunningEvt. - public void On_RunningEvt(Efl.Canvas.AnimationPlayerRunningEvt_Args e) + public void OnRunningEvt(Efl.Canvas.AnimationPlayerRunningEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RunningEvtKey]; + var key = "_EFL_ANIMATION_PLAYER_EVENT_RUNNING"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RunningEvt_delegate; - private void on_RunningEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Canvas.AnimationPlayerRunningEvt_Args args = new Efl.Canvas.AnimationPlayerRunningEvt_Args(); - args.arg = default(Efl.Canvas.ObjectAnimationEvent); - try { - On_RunningEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object EndedEvtKey = new object(); /// Animation is ended. public event EventHandler EndedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ANIMATION_PLAYER_EVENT_ENDED"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_EndedEvt_delegate)) { - eventHandlers.AddHandler(EndedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ANIMATION_PLAYER_EVENT_ENDED"; - if (RemoveNativeEventHandler(key, this.evt_EndedEvt_delegate)) { - eventHandlers.RemoveHandler(EndedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event EndedEvt. - public void On_EndedEvt(EventArgs e) + public void OnEndedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EndedEvtKey]; + var key = "_EFL_ANIMATION_PLAYER_EVENT_ENDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EndedEvt_delegate; - private void on_EndedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EndedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_StartedEvt_delegate = new Efl.EventCb(on_StartedEvt_NativeCallback); - evt_RunningEvt_delegate = new Efl.EventCb(on_RunningEvt_NativeCallback); - evt_EndedEvt_delegate = new Efl.EventCb(on_EndedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// - /// virtual public Efl.Canvas.Animation GetAnimation() { - var _ret_var = Efl.Canvas.AnimationPlayerNativeInherit.efl_animation_player_animation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_animation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// - /// - virtual public void SetAnimation( Efl.Canvas.Animation animation) { - Efl.Canvas.AnimationPlayerNativeInherit.efl_animation_player_animation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), animation); + virtual public void SetAnimation(Efl.Canvas.Animation animation) { + Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_animation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),animation); Eina.Error.RaiseIfUnhandledException(); } /// Auto delete property /// true to delete animation object automatically when animation is finished or animation is cancelled, false otherwise. virtual public bool GetAutoDel() { - var _ret_var = Efl.Canvas.AnimationPlayerNativeInherit.efl_animation_player_auto_del_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_auto_del_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Auto delete property /// true to delete animation object automatically when animation is finished or animation is cancelled, false otherwise. - /// - virtual public void SetAutoDel( bool auto_del) { - Efl.Canvas.AnimationPlayerNativeInherit.efl_animation_player_auto_del_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), auto_del); + virtual public void SetAutoDel(bool auto_del) { + Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_auto_del_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),auto_del); Eina.Error.RaiseIfUnhandledException(); } /// Target object property /// Target object which is applied animation. virtual public Efl.Canvas.Object GetTarget() { - var _ret_var = Efl.Canvas.AnimationPlayerNativeInherit.efl_animation_player_target_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_target_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Target object property /// Target object which is applied animation. - /// - virtual public void SetTarget( Efl.Canvas.Object target) { - Efl.Canvas.AnimationPlayerNativeInherit.efl_animation_player_target_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), target); + virtual public void SetTarget(Efl.Canvas.Object target) { + Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_target_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),target); Eina.Error.RaiseIfUnhandledException(); } /// Whether or not the playable can be played. /// true if the object have playable data, false otherwise virtual public bool GetPlayable() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get play/pause state of the media file. /// true if playing, false otherwise. virtual public bool GetPlay() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_play_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set play/pause state of the media file. /// This functions sets the currently playing status of the video. Using this function to play or pause the video doesn't alter it's current position. /// true if playing, false otherwise. - /// - virtual public void SetPlay( bool play) { - Efl.IPlayerNativeInherit.efl_player_play_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), play); + virtual public void SetPlay(bool play) { + Efl.IPlayerConcrete.NativeMethods.efl_player_play_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),play); Eina.Error.RaiseIfUnhandledException(); } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). virtual public double GetPos() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the position in the media file. /// This functions sets the current position of the media file to "sec", this only works on seekable streams. Setting the position doesn't change the playing state of the media file. /// The position (in seconds). - /// - virtual public void SetPos( double sec) { - Efl.IPlayerNativeInherit.efl_player_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sec); + virtual public void SetPos(double sec) { + Efl.IPlayerConcrete.NativeMethods.efl_player_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sec); Eina.Error.RaiseIfUnhandledException(); } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. /// The progress within the [0, 1] range. virtual public double GetProgress() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_progress_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_progress_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -291,91 +338,84 @@ private static object EndedEvtKey = new object(); /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. virtual public double GetPlaySpeed() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_play_speed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the play speed of the media file. /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. - /// - virtual public void SetPlaySpeed( double speed) { - Efl.IPlayerNativeInherit.efl_player_play_speed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), speed); + virtual public void SetPlaySpeed(double speed) { + Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),speed); Eina.Error.RaiseIfUnhandledException(); } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level virtual public double GetVolume() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_volume_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_volume_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level - /// - virtual public void SetVolume( double volume) { - Efl.IPlayerNativeInherit.efl_player_volume_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), volume); + virtual public void SetVolume(double volume) { + Efl.IPlayerConcrete.NativeMethods.efl_player_volume_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),volume); Eina.Error.RaiseIfUnhandledException(); } /// This property controls the audio mute state. /// The mute state. true or false. virtual public bool GetMute() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_mute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_mute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This property controls the audio mute state. /// The mute state. true or false. - /// - virtual public void SetMute( bool mute) { - Efl.IPlayerNativeInherit.efl_player_mute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mute); + virtual public void SetMute(bool mute) { + Efl.IPlayerConcrete.NativeMethods.efl_player_mute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mute); Eina.Error.RaiseIfUnhandledException(); } /// Get the length of play for the media file. /// The length of the stream in seconds. virtual public double GetLength() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get whether the media file is seekable. /// true if seekable. virtual public bool GetSeekable() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Start a playing playable object. - /// virtual public void Start() { - Efl.IPlayerNativeInherit.efl_player_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPlayerConcrete.NativeMethods.efl_player_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Stop playable object. - /// virtual public void Stop() { - Efl.IPlayerNativeInherit.efl_player_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPlayerConcrete.NativeMethods.efl_player_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } - /// -/// - public Efl.Canvas.Animation Animation { + public Efl.Canvas.Animation Animation { get { return GetAnimation(); } - set { SetAnimation( value); } + set { SetAnimation(value); } } /// Auto delete property /// true to delete animation object automatically when animation is finished or animation is cancelled, false otherwise. public bool AutoDel { get { return GetAutoDel(); } - set { SetAutoDel( value); } + set { SetAutoDel(value); } } /// Target object property /// Target object which is applied animation. public Efl.Canvas.Object Target { get { return GetTarget(); } - set { SetTarget( value); } + set { SetTarget(value); } } /// Whether or not the playable can be played. /// true if the object have playable data, false otherwise @@ -386,14 +426,14 @@ private static object EndedEvtKey = new object(); /// true if playing, false otherwise. public bool Play { get { return GetPlay(); } - set { SetPlay( value); } + set { SetPlay(value); } } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). public double Pos { get { return GetPos(); } - set { SetPos( value); } + set { SetPos(value); } } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. @@ -406,20 +446,20 @@ private static object EndedEvtKey = new object(); /// The play speed in the [0, infinity) range. public double PlaySpeed { get { return GetPlaySpeed(); } - set { SetPlaySpeed( value); } + set { SetPlaySpeed(value); } } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level public double Volume { get { return GetVolume(); } - set { SetVolume( value); } + set { SetVolume(value); } } /// This property controls the audio mute state. /// The mute state. true or false. public bool Mute { get { return GetMute(); } - set { SetMute( value); } + set { SetMute(value); } } /// Get the length of play for the media file. /// The length of the stream in seconds. @@ -435,651 +475,1037 @@ private static object EndedEvtKey = new object(); { return Efl.Canvas.AnimationPlayer.efl_canvas_animation_player_class_get(); } -} -public class AnimationPlayerNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_animation_player_animation_get_static_delegate == null) - efl_animation_player_animation_get_static_delegate = new efl_animation_player_animation_get_delegate(animation_get); - if (methods.FirstOrDefault(m => m.Name == "GetAnimation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_player_animation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_animation_get_static_delegate)}); - if (efl_animation_player_animation_set_static_delegate == null) - efl_animation_player_animation_set_static_delegate = new efl_animation_player_animation_set_delegate(animation_set); - if (methods.FirstOrDefault(m => m.Name == "SetAnimation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_player_animation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_animation_set_static_delegate)}); - if (efl_animation_player_auto_del_get_static_delegate == null) - efl_animation_player_auto_del_get_static_delegate = new efl_animation_player_auto_del_get_delegate(auto_del_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutoDel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_player_auto_del_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_auto_del_get_static_delegate)}); - if (efl_animation_player_auto_del_set_static_delegate == null) - efl_animation_player_auto_del_set_static_delegate = new efl_animation_player_auto_del_set_delegate(auto_del_set); - if (methods.FirstOrDefault(m => m.Name == "SetAutoDel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_player_auto_del_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_auto_del_set_static_delegate)}); - if (efl_animation_player_target_get_static_delegate == null) - efl_animation_player_target_get_static_delegate = new efl_animation_player_target_get_delegate(target_get); - if (methods.FirstOrDefault(m => m.Name == "GetTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_player_target_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_target_get_static_delegate)}); - if (efl_animation_player_target_set_static_delegate == null) - efl_animation_player_target_set_static_delegate = new efl_animation_player_target_set_delegate(target_set); - if (methods.FirstOrDefault(m => m.Name == "SetTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_player_target_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_target_set_static_delegate)}); - if (efl_player_playable_get_static_delegate == null) - efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_playable_get_static_delegate)}); - if (efl_player_play_get_static_delegate == null) - efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_get_static_delegate)}); - if (efl_player_play_set_static_delegate == null) - efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set); - if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_set_static_delegate)}); - if (efl_player_pos_get_static_delegate == null) - efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_get_static_delegate)}); - if (efl_player_pos_set_static_delegate == null) - efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_set_static_delegate)}); - if (efl_player_progress_get_static_delegate == null) - efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get); - if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_progress_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_progress_get_static_delegate)}); - if (efl_player_play_speed_get_static_delegate == null) - efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_get_static_delegate)}); - if (efl_player_play_speed_set_static_delegate == null) - efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set); - if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_set_static_delegate)}); - if (efl_player_volume_get_static_delegate == null) - efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get); - if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_volume_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_get_static_delegate)}); - if (efl_player_volume_set_static_delegate == null) - efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set); - if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_volume_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_set_static_delegate)}); - if (efl_player_mute_get_static_delegate == null) - efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get); - if (methods.FirstOrDefault(m => m.Name == "GetMute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_mute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_get_static_delegate)}); - if (efl_player_mute_set_static_delegate == null) - efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set); - if (methods.FirstOrDefault(m => m.Name == "SetMute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_mute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_set_static_delegate)}); - if (efl_player_length_get_static_delegate == null) - efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get); - if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_length_get_static_delegate)}); - if (efl_player_seekable_get_static_delegate == null) - efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_seekable_get_static_delegate)}); - if (efl_player_start_static_delegate == null) - efl_player_start_static_delegate = new efl_player_start_delegate(start); - if (methods.FirstOrDefault(m => m.Name == "Start") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_start"), func = Marshal.GetFunctionPointerForDelegate(efl_player_start_static_delegate)}); - if (efl_player_stop_static_delegate == null) - efl_player_stop_static_delegate = new efl_player_stop_delegate(stop); - if (methods.FirstOrDefault(m => m.Name == "Stop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.AnimationPlayer.efl_canvas_animation_player_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Canvas.AnimationPlayer.efl_canvas_animation_player_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_animation_player_animation_get_static_delegate == null) + { + efl_animation_player_animation_get_static_delegate = new efl_animation_player_animation_get_delegate(animation_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetAnimation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_player_animation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_animation_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Animation efl_animation_player_animation_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_animation_player_animation_set_static_delegate == null) + { + efl_animation_player_animation_set_static_delegate = new efl_animation_player_animation_set_delegate(animation_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetAnimation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_player_animation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_animation_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Animation efl_animation_player_animation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_animation_player_animation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_player_animation_get"); - private static Efl.Canvas.Animation animation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_animation_player_animation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Animation _ret_var = default(Efl.Canvas.Animation); - try { - _ret_var = ((AnimationPlayer)wrapper).GetAnimation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_animation_player_auto_del_get_static_delegate == null) + { + efl_animation_player_auto_del_get_static_delegate = new efl_animation_player_auto_del_get_delegate(auto_del_get); } - return _ret_var; - } else { - return efl_animation_player_animation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_animation_player_animation_get_delegate efl_animation_player_animation_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetAutoDel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_player_auto_del_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_auto_del_get_static_delegate) }); + } - private delegate void efl_animation_player_animation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Animation animation); + if (efl_animation_player_auto_del_set_static_delegate == null) + { + efl_animation_player_auto_del_set_static_delegate = new efl_animation_player_auto_del_set_delegate(auto_del_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetAutoDel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_player_auto_del_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_auto_del_set_static_delegate) }); + } - public delegate void efl_animation_player_animation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Animation animation); - public static Efl.Eo.FunctionWrapper efl_animation_player_animation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_player_animation_set"); - private static void animation_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation) - { - Eina.Log.Debug("function efl_animation_player_animation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationPlayer)wrapper).SetAnimation( animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_player_animation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation); - } - } - private static efl_animation_player_animation_set_delegate efl_animation_player_animation_set_static_delegate; + if (efl_animation_player_target_get_static_delegate == null) + { + efl_animation_player_target_get_static_delegate = new efl_animation_player_target_get_delegate(target_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTarget") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_player_target_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_target_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_animation_player_auto_del_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_animation_player_target_set_static_delegate == null) + { + efl_animation_player_target_set_static_delegate = new efl_animation_player_target_set_delegate(target_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTarget") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_player_target_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_player_target_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_animation_player_auto_del_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_animation_player_auto_del_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_player_auto_del_get"); - private static bool auto_del_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_animation_player_auto_del_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((AnimationPlayer)wrapper).GetAutoDel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_playable_get_static_delegate == null) + { + efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get); } - return _ret_var; - } else { - return efl_animation_player_auto_del_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_animation_player_auto_del_get_delegate efl_animation_player_auto_del_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_playable_get_static_delegate) }); + } - private delegate void efl_animation_player_auto_del_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool auto_del); + if (efl_player_play_get_static_delegate == null) + { + efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_get_static_delegate) }); + } - public delegate void efl_animation_player_auto_del_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool auto_del); - public static Efl.Eo.FunctionWrapper efl_animation_player_auto_del_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_player_auto_del_set"); - private static void auto_del_set(System.IntPtr obj, System.IntPtr pd, bool auto_del) - { - Eina.Log.Debug("function efl_animation_player_auto_del_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationPlayer)wrapper).SetAutoDel( auto_del); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_player_auto_del_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), auto_del); - } - } - private static efl_animation_player_auto_del_set_delegate efl_animation_player_auto_del_set_static_delegate; + if (efl_player_play_set_static_delegate == null) + { + efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_animation_player_target_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_pos_get_static_delegate == null) + { + efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_animation_player_target_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_animation_player_target_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_player_target_get"); - private static Efl.Canvas.Object target_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_animation_player_target_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((AnimationPlayer)wrapper).GetTarget(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_pos_set_static_delegate == null) + { + efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set); } - return _ret_var; - } else { - return efl_animation_player_target_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_animation_player_target_get_delegate efl_animation_player_target_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_set_static_delegate) }); + } - private delegate void efl_animation_player_target_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object target); + if (efl_player_progress_get_static_delegate == null) + { + efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_progress_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_progress_get_static_delegate) }); + } - public delegate void efl_animation_player_target_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object target); - public static Efl.Eo.FunctionWrapper efl_animation_player_target_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_player_target_set"); - private static void target_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object target) - { - Eina.Log.Debug("function efl_animation_player_target_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationPlayer)wrapper).SetTarget( target); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_player_target_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), target); - } - } - private static efl_animation_player_target_set_delegate efl_animation_player_target_set_static_delegate; + if (efl_player_play_speed_get_static_delegate == null) + { + efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_play_speed_set_static_delegate == null) + { + efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_playable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_playable_get"); - private static bool playable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_playable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((AnimationPlayer)wrapper).GetPlayable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_volume_get_static_delegate == null) + { + efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get); } - return _ret_var; - } else { - return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_volume_set_static_delegate == null) + { + efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_play_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_get"); - private static bool play_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_play_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((AnimationPlayer)wrapper).GetPlay(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_mute_get_static_delegate == null) + { + efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get); } - return _ret_var; - } else { - return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_play_get_delegate efl_player_play_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetMute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_get_static_delegate) }); + } - private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play); + if (efl_player_mute_set_static_delegate == null) + { + efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_set_static_delegate) }); + } - public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play); - public static Efl.Eo.FunctionWrapper efl_player_play_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_set"); - private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play) - { - Eina.Log.Debug("function efl_player_play_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationPlayer)wrapper).SetPlay( play); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play); - } - } - private static efl_player_play_set_delegate efl_player_play_set_static_delegate; + if (efl_player_length_get_static_delegate == null) + { + efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_length_get_static_delegate) }); + } - private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_seekable_get_static_delegate == null) + { + efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_seekable_get_static_delegate) }); + } - public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_pos_get"); - private static double pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((AnimationPlayer)wrapper).GetPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_start_static_delegate == null) + { + efl_player_start_static_delegate = new efl_player_start_delegate(start); } - return _ret_var; - } else { - return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Start") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_start"), func = Marshal.GetFunctionPointerForDelegate(efl_player_start_static_delegate) }); + } - private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + if (efl_player_stop_static_delegate == null) + { + efl_player_stop_static_delegate = new efl_player_stop_delegate(stop); + } + if (methods.FirstOrDefault(m => m.Name == "Stop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate) }); + } - public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec); - public static Efl.Eo.FunctionWrapper efl_player_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_pos_set"); - private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec) - { - Eina.Log.Debug("function efl_player_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationPlayer)wrapper).SetPos( sec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.AnimationPlayer.efl_canvas_animation_player_class_get(); } - } - private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate; - - private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Animation efl_animation_player_animation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Animation efl_animation_player_animation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_animation_player_animation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_player_animation_get"); + + private static Efl.Canvas.Animation animation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_animation_player_animation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Animation _ret_var = default(Efl.Canvas.Animation); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetAnimation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_progress_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_progress_get"); - private static double progress_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_progress_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((AnimationPlayer)wrapper).GetProgress(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_animation_player_animation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate; + private static efl_animation_player_animation_get_delegate efl_animation_player_animation_get_static_delegate; + + + private delegate void efl_animation_player_animation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Animation animation); + + + public delegate void efl_animation_player_animation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Animation animation); + + public static Efl.Eo.FunctionWrapper efl_animation_player_animation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_player_animation_set"); + + private static void animation_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation) + { + Eina.Log.Debug("function efl_animation_player_animation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationPlayer)wrapper).SetAnimation(animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_player_animation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation); + } + } - private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_animation_player_animation_set_delegate efl_animation_player_animation_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_animation_player_auto_del_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_animation_player_auto_del_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_animation_player_auto_del_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_player_auto_del_get"); + + private static bool auto_del_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_animation_player_auto_del_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetAutoDel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_play_speed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_speed_get"); - private static double play_speed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_play_speed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((AnimationPlayer)wrapper).GetPlaySpeed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_animation_player_auto_del_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate; + private static efl_animation_player_auto_del_get_delegate efl_animation_player_auto_del_get_static_delegate; + + + private delegate void efl_animation_player_auto_del_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool auto_del); + + + public delegate void efl_animation_player_auto_del_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool auto_del); + + public static Efl.Eo.FunctionWrapper efl_animation_player_auto_del_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_player_auto_del_set"); + + private static void auto_del_set(System.IntPtr obj, System.IntPtr pd, bool auto_del) + { + Eina.Log.Debug("function efl_animation_player_auto_del_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationPlayer)wrapper).SetAutoDel(auto_del); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed); + + } + else + { + efl_animation_player_auto_del_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), auto_del); + } + } + private static efl_animation_player_auto_del_set_delegate efl_animation_player_auto_del_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_animation_player_target_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_animation_player_target_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_animation_player_target_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_player_target_get"); + + private static Efl.Canvas.Object target_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_animation_player_target_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetTarget(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed); - public static Efl.Eo.FunctionWrapper efl_player_play_speed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_speed_set"); - private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed) - { - Eina.Log.Debug("function efl_player_play_speed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationPlayer)wrapper).SetPlaySpeed( speed); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed); + return _ret_var; + + } + else + { + return efl_animation_player_target_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate; + private static efl_animation_player_target_get_delegate efl_animation_player_target_get_static_delegate; + + + private delegate void efl_animation_player_target_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object target); + + + public delegate void efl_animation_player_target_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object target); + + public static Efl.Eo.FunctionWrapper efl_animation_player_target_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_player_target_set"); + + private static void target_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object target) + { + Eina.Log.Debug("function efl_animation_player_target_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationPlayer)wrapper).SetTarget(target); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_player_target_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), target); + } + } - private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_animation_player_target_set_delegate efl_animation_player_target_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_playable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_playable_get"); + + private static bool playable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_playable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetPlayable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_volume_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_volume_get"); - private static double volume_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_volume_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((AnimationPlayer)wrapper).GetVolume(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate; + private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_play_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_get"); + + private static bool play_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_play_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetPlay(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume); + } + else + { + return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_player_play_get_delegate efl_player_play_get_static_delegate; + + + private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play); + + + public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play); + + public static Efl.Eo.FunctionWrapper efl_player_play_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_set"); + + private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play) + { + Eina.Log.Debug("function efl_player_play_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationPlayer)wrapper).SetPlay(play); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume); - public static Efl.Eo.FunctionWrapper efl_player_volume_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_volume_set"); - private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume) - { - Eina.Log.Debug("function efl_player_volume_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationPlayer)wrapper).SetVolume( volume); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume); + + } + else + { + efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play); + } } - } - private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate; + private static efl_player_play_set_delegate efl_player_play_set_static_delegate; + + + private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_pos_get"); + + private static double pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate; + + + private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + + + public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec); + + public static Efl.Eo.FunctionWrapper efl_player_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_pos_set"); + + private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec) + { + Eina.Log.Debug("function efl_player_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationPlayer)wrapper).SetPos(sec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_mute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_mute_get"); - private static bool mute_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_mute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((AnimationPlayer)wrapper).GetMute(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); } + } + + private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate; + + + private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_progress_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_progress_get"); + + private static double progress_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_progress_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetProgress(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate; + private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate; + + + private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_play_speed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_speed_get"); + + private static double play_speed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_play_speed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetPlaySpeed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute); + } + else + { + return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate; + + + private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed); + + + public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed); + + public static Efl.Eo.FunctionWrapper efl_player_play_speed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_speed_set"); + + private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed) + { + Eina.Log.Debug("function efl_player_play_speed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationPlayer)wrapper).SetPlaySpeed(speed); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute); - public static Efl.Eo.FunctionWrapper efl_player_mute_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_mute_set"); - private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute) - { - Eina.Log.Debug("function efl_player_mute_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationPlayer)wrapper).SetMute( mute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute); + + } + else + { + efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed); + } } - } - private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate; + private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate; + + + private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_volume_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_volume_get"); + + private static double volume_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_volume_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetVolume(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate double efl_player_length_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_length_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_length_get"); - private static double length_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_length_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((AnimationPlayer)wrapper).GetLength(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate; + + + private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume); + + + public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume); + + public static Efl.Eo.FunctionWrapper efl_player_volume_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_volume_set"); + + private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume) + { + Eina.Log.Debug("function efl_player_volume_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationPlayer)wrapper).SetVolume(volume); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume); } - return _ret_var; - } else { - return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_player_length_get_delegate efl_player_length_get_static_delegate; + private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_mute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_mute_get"); + + private static bool mute_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_mute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetMute(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate; + + + private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute); + + + public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute); + + public static Efl.Eo.FunctionWrapper efl_player_mute_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_mute_set"); + + private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute) + { + Eina.Log.Debug("function efl_player_mute_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationPlayer)wrapper).SetMute(mute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_seekable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_seekable_get"); - private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_seekable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((AnimationPlayer)wrapper).GetSeekable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute); } + } + + private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate; + + + private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_length_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_length_get"); + + private static double length_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_length_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetLength(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate; + private static efl_player_length_get_delegate efl_player_length_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_seekable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_seekable_get"); + + private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_seekable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((AnimationPlayer)wrapper).GetSeekable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_player_start_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_start"); - private static void start(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationPlayer)wrapper).Start(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate; + + + private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_player_start_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_start"); + + private static void start(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationPlayer)wrapper).Start(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_start_delegate efl_player_start_static_delegate; + private static efl_player_start_delegate efl_player_start_static_delegate; + + + private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_player_stop_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_stop_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_stop"); + + private static void stop(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_stop was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationPlayer)wrapper).Stop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_player_stop_delegate efl_player_stop_static_delegate; + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_player_stop_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_stop_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_stop"); - private static void stop(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_stop was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationPlayer)wrapper).Stop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_stop_delegate efl_player_stop_static_delegate; } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_rotate.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_rotate.eo.cs index b95ca24..dd9e229 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_rotate.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_rotate.eo.cs @@ -3,70 +3,93 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Efl rotate animation class -[AnimationRotateNativeInherit] +[Efl.Canvas.AnimationRotate.NativeMethods] public class AnimationRotate : Efl.Canvas.Animation, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AnimationRotate)) - return Efl.Canvas.AnimationRotateNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AnimationRotate)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_animation_rotate_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public AnimationRotate(Efl.Object parent= null - ) : - base(efl_canvas_animation_rotate_class_get(), typeof(AnimationRotate), parent) + ) : base(efl_canvas_animation_rotate_class_get(), typeof(AnimationRotate), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AnimationRotate(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AnimationRotate(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AnimationRotate(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Rotate property /// Rotation degree when animation starts /// Rotation degree when animation ends /// Pivot object for the center point. If the pivot object is NULL, then the object is rotated on itself. /// X relative coordinate of the center point. The left end is 0.0 and the right end is 1.0 (the center is 0.5). /// Y relative coordinate of the center point. The top end is 0.0 and the bottom end is 1.0 (the center is 0.5). - /// - virtual public void GetRotate( out double from_degree, out double to_degree, out Efl.Canvas.Object pivot, out double cx, out double cy) { - Efl.Canvas.AnimationRotateNativeInherit.efl_animation_rotate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out from_degree, out to_degree, out pivot, out cx, out cy); + virtual public void GetRotate(out double from_degree, out double to_degree, out Efl.Canvas.Object pivot, out double cx, out double cy) { + Efl.Canvas.AnimationRotate.NativeMethods.efl_animation_rotate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from_degree, out to_degree, out pivot, out cx, out cy); Eina.Error.RaiseIfUnhandledException(); } /// Rotate property @@ -75,9 +98,8 @@ public class AnimationRotate : Efl.Canvas.Animation, Efl.Eo.IWrapper /// Pivot object for the center point. If the pivot object is NULL, then the object is rotated on itself. /// X relative coordinate of the center point. The left end is 0.0 and the right end is 1.0 (the center is 0.5). /// Y relative coordinate of the center point. The top end is 0.0 and the bottom end is 1.0 (the center is 0.5). - /// - virtual public void SetRotate( double from_degree, double to_degree, Efl.Canvas.Object pivot, double cx, double cy) { - Efl.Canvas.AnimationRotateNativeInherit.efl_animation_rotate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), from_degree, to_degree, pivot, cx, cy); + virtual public void SetRotate(double from_degree, double to_degree, Efl.Canvas.Object pivot, double cx, double cy) { + Efl.Canvas.AnimationRotate.NativeMethods.efl_animation_rotate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from_degree, to_degree, pivot, cx, cy); Eina.Error.RaiseIfUnhandledException(); } /// Rotate absolute property @@ -85,9 +107,8 @@ public class AnimationRotate : Efl.Canvas.Animation, Efl.Eo.IWrapper /// Rotation degree when animation ends /// X absolute coordinate of the center point. /// Y absolute coordinate of the center point. - /// - virtual public void GetRotateAbsolute( out double from_degree, out double to_degree, out int cx, out int cy) { - Efl.Canvas.AnimationRotateNativeInherit.efl_animation_rotate_absolute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out from_degree, out to_degree, out cx, out cy); + virtual public void GetRotateAbsolute(out double from_degree, out double to_degree, out int cx, out int cy) { + Efl.Canvas.AnimationRotate.NativeMethods.efl_animation_rotate_absolute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from_degree, out to_degree, out cx, out cy); Eina.Error.RaiseIfUnhandledException(); } /// Rotate absolute property @@ -95,144 +116,223 @@ public class AnimationRotate : Efl.Canvas.Animation, Efl.Eo.IWrapper /// Rotation degree when animation ends /// X absolute coordinate of the center point. /// Y absolute coordinate of the center point. - /// - virtual public void SetRotateAbsolute( double from_degree, double to_degree, int cx, int cy) { - Efl.Canvas.AnimationRotateNativeInherit.efl_animation_rotate_absolute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), from_degree, to_degree, cx, cy); + virtual public void SetRotateAbsolute(double from_degree, double to_degree, int cx, int cy) { + Efl.Canvas.AnimationRotate.NativeMethods.efl_animation_rotate_absolute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from_degree, to_degree, cx, cy); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Canvas.AnimationRotate.efl_canvas_animation_rotate_class_get(); } -} -public class AnimationRotateNativeInherit : Efl.Canvas.AnimationNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_animation_rotate_get_static_delegate == null) - efl_animation_rotate_get_static_delegate = new efl_animation_rotate_get_delegate(rotate_get); - if (methods.FirstOrDefault(m => m.Name == "GetRotate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_rotate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_get_static_delegate)}); - if (efl_animation_rotate_set_static_delegate == null) - efl_animation_rotate_set_static_delegate = new efl_animation_rotate_set_delegate(rotate_set); - if (methods.FirstOrDefault(m => m.Name == "SetRotate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_rotate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_set_static_delegate)}); - if (efl_animation_rotate_absolute_get_static_delegate == null) - efl_animation_rotate_absolute_get_static_delegate = new efl_animation_rotate_absolute_get_delegate(rotate_absolute_get); - if (methods.FirstOrDefault(m => m.Name == "GetRotateAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_rotate_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_absolute_get_static_delegate)}); - if (efl_animation_rotate_absolute_set_static_delegate == null) - efl_animation_rotate_absolute_set_static_delegate = new efl_animation_rotate_absolute_set_delegate(rotate_absolute_set); - if (methods.FirstOrDefault(m => m.Name == "SetRotateAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_rotate_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_absolute_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.AnimationRotate.efl_canvas_animation_rotate_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Animation.NativeMethods { - return Efl.Canvas.AnimationRotate.efl_canvas_animation_rotate_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_animation_rotate_get_static_delegate == null) + { + efl_animation_rotate_get_static_delegate = new efl_animation_rotate_get_delegate(rotate_get); + } - private delegate void efl_animation_rotate_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from_degree, out double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object pivot, out double cx, out double cy); + if (methods.FirstOrDefault(m => m.Name == "GetRotate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_rotate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_get_static_delegate) }); + } + if (efl_animation_rotate_set_static_delegate == null) + { + efl_animation_rotate_set_static_delegate = new efl_animation_rotate_set_delegate(rotate_set); + } - public delegate void efl_animation_rotate_get_api_delegate(System.IntPtr obj, out double from_degree, out double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object pivot, out double cx, out double cy); - public static Efl.Eo.FunctionWrapper efl_animation_rotate_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_rotate_get"); - private static void rotate_get(System.IntPtr obj, System.IntPtr pd, out double from_degree, out double to_degree, out Efl.Canvas.Object pivot, out double cx, out double cy) - { - Eina.Log.Debug("function efl_animation_rotate_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - from_degree = default(double); to_degree = default(double); pivot = default(Efl.Canvas.Object); cx = default(double); cy = default(double); - try { - ((AnimationRotate)wrapper).GetRotate( out from_degree, out to_degree, out pivot, out cx, out cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_rotate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_degree, out to_degree, out pivot, out cx, out cy); + if (methods.FirstOrDefault(m => m.Name == "SetRotate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_rotate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_set_static_delegate) }); + } + + if (efl_animation_rotate_absolute_get_static_delegate == null) + { + efl_animation_rotate_absolute_get_static_delegate = new efl_animation_rotate_absolute_get_delegate(rotate_absolute_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRotateAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_rotate_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_absolute_get_static_delegate) }); + } + + if (efl_animation_rotate_absolute_set_static_delegate == null) + { + efl_animation_rotate_absolute_set_static_delegate = new efl_animation_rotate_absolute_set_delegate(rotate_absolute_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRotateAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_rotate_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_rotate_absolute_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.AnimationRotate.efl_canvas_animation_rotate_class_get(); } - } - private static efl_animation_rotate_get_delegate efl_animation_rotate_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_animation_rotate_set_delegate(System.IntPtr obj, System.IntPtr pd, double from_degree, double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object pivot, double cx, double cy); + + private delegate void efl_animation_rotate_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from_degree, out double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object pivot, out double cx, out double cy); + + public delegate void efl_animation_rotate_get_api_delegate(System.IntPtr obj, out double from_degree, out double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object pivot, out double cx, out double cy); - public delegate void efl_animation_rotate_set_api_delegate(System.IntPtr obj, double from_degree, double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object pivot, double cx, double cy); - public static Efl.Eo.FunctionWrapper efl_animation_rotate_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_rotate_set"); - private static void rotate_set(System.IntPtr obj, System.IntPtr pd, double from_degree, double to_degree, Efl.Canvas.Object pivot, double cx, double cy) - { - Eina.Log.Debug("function efl_animation_rotate_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationRotate)wrapper).SetRotate( from_degree, to_degree, pivot, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_rotate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_degree, to_degree, pivot, cx, cy); + public static Efl.Eo.FunctionWrapper efl_animation_rotate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_rotate_get"); + + private static void rotate_get(System.IntPtr obj, System.IntPtr pd, out double from_degree, out double to_degree, out Efl.Canvas.Object pivot, out double cx, out double cy) + { + Eina.Log.Debug("function efl_animation_rotate_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + from_degree = default(double); to_degree = default(double); pivot = default(Efl.Canvas.Object); cx = default(double); cy = default(double); + try + { + ((AnimationRotate)wrapper).GetRotate(out from_degree, out to_degree, out pivot, out cx, out cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_rotate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_degree, out to_degree, out pivot, out cx, out cy); + } } - } - private static efl_animation_rotate_set_delegate efl_animation_rotate_set_static_delegate; + private static efl_animation_rotate_get_delegate efl_animation_rotate_get_static_delegate; - private delegate void efl_animation_rotate_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from_degree, out double to_degree, out int cx, out int cy); + + private delegate void efl_animation_rotate_set_delegate(System.IntPtr obj, System.IntPtr pd, double from_degree, double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pivot, double cx, double cy); + + public delegate void efl_animation_rotate_set_api_delegate(System.IntPtr obj, double from_degree, double to_degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pivot, double cx, double cy); - public delegate void efl_animation_rotate_absolute_get_api_delegate(System.IntPtr obj, out double from_degree, out double to_degree, out int cx, out int cy); - public static Efl.Eo.FunctionWrapper efl_animation_rotate_absolute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_rotate_absolute_get"); - private static void rotate_absolute_get(System.IntPtr obj, System.IntPtr pd, out double from_degree, out double to_degree, out int cx, out int cy) - { - Eina.Log.Debug("function efl_animation_rotate_absolute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - from_degree = default(double); to_degree = default(double); cx = default(int); cy = default(int); - try { - ((AnimationRotate)wrapper).GetRotateAbsolute( out from_degree, out to_degree, out cx, out cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_rotate_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_degree, out to_degree, out cx, out cy); + public static Efl.Eo.FunctionWrapper efl_animation_rotate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_rotate_set"); + + private static void rotate_set(System.IntPtr obj, System.IntPtr pd, double from_degree, double to_degree, Efl.Canvas.Object pivot, double cx, double cy) + { + Eina.Log.Debug("function efl_animation_rotate_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationRotate)wrapper).SetRotate(from_degree, to_degree, pivot, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_rotate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_degree, to_degree, pivot, cx, cy); + } } - } - private static efl_animation_rotate_absolute_get_delegate efl_animation_rotate_absolute_get_static_delegate; + private static efl_animation_rotate_set_delegate efl_animation_rotate_set_static_delegate; - private delegate void efl_animation_rotate_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd, double from_degree, double to_degree, int cx, int cy); + + private delegate void efl_animation_rotate_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from_degree, out double to_degree, out int cx, out int cy); + + public delegate void efl_animation_rotate_absolute_get_api_delegate(System.IntPtr obj, out double from_degree, out double to_degree, out int cx, out int cy); - public delegate void efl_animation_rotate_absolute_set_api_delegate(System.IntPtr obj, double from_degree, double to_degree, int cx, int cy); - public static Efl.Eo.FunctionWrapper efl_animation_rotate_absolute_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_rotate_absolute_set"); - private static void rotate_absolute_set(System.IntPtr obj, System.IntPtr pd, double from_degree, double to_degree, int cx, int cy) - { - Eina.Log.Debug("function efl_animation_rotate_absolute_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationRotate)wrapper).SetRotateAbsolute( from_degree, to_degree, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_rotate_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_degree, to_degree, cx, cy); + public static Efl.Eo.FunctionWrapper efl_animation_rotate_absolute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_rotate_absolute_get"); + + private static void rotate_absolute_get(System.IntPtr obj, System.IntPtr pd, out double from_degree, out double to_degree, out int cx, out int cy) + { + Eina.Log.Debug("function efl_animation_rotate_absolute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + from_degree = default(double); to_degree = default(double); cx = default(int); cy = default(int); + try + { + ((AnimationRotate)wrapper).GetRotateAbsolute(out from_degree, out to_degree, out cx, out cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_rotate_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_degree, out to_degree, out cx, out cy); + } } - } - private static efl_animation_rotate_absolute_set_delegate efl_animation_rotate_absolute_set_static_delegate; + + private static efl_animation_rotate_absolute_get_delegate efl_animation_rotate_absolute_get_static_delegate; + + + private delegate void efl_animation_rotate_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd, double from_degree, double to_degree, int cx, int cy); + + + public delegate void efl_animation_rotate_absolute_set_api_delegate(System.IntPtr obj, double from_degree, double to_degree, int cx, int cy); + + public static Efl.Eo.FunctionWrapper efl_animation_rotate_absolute_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_rotate_absolute_set"); + + private static void rotate_absolute_set(System.IntPtr obj, System.IntPtr pd, double from_degree, double to_degree, int cx, int cy) + { + Eina.Log.Debug("function efl_animation_rotate_absolute_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationRotate)wrapper).SetRotateAbsolute(from_degree, to_degree, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_rotate_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_degree, to_degree, cx, cy); + } + } + + private static efl_animation_rotate_absolute_set_delegate efl_animation_rotate_absolute_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_scale.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_scale.eo.cs index e64e4ca..581d4bb 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_scale.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_scale.eo.cs @@ -3,61 +3,85 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Efl scale animation class -[AnimationScaleNativeInherit] +[Efl.Canvas.AnimationScale.NativeMethods] public class AnimationScale : Efl.Canvas.Animation, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AnimationScale)) - return Efl.Canvas.AnimationScaleNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AnimationScale)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_animation_scale_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public AnimationScale(Efl.Object parent= null - ) : - base(efl_canvas_animation_scale_class_get(), typeof(AnimationScale), parent) + ) : base(efl_canvas_animation_scale_class_get(), typeof(AnimationScale), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AnimationScale(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AnimationScale(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AnimationScale(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Scale property /// Scale factor along x axis when animation starts /// Scale factor along y axis when animation starts @@ -66,9 +90,8 @@ public class AnimationScale : Efl.Canvas.Animation, Efl.Eo.IWrapper /// Pivot object for the center point. If the pivot object is NULL, then the object is scaled on itself. /// X relative coordinate of the center point. The left end is 0.0 and the right end is 1.0 (the center is 0.5). /// Y relative coordinate of the center point. The top end is 0.0 and the bottom end is 1.0 (the center is 0.5). - /// - virtual public void GetScale( out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out Efl.Canvas.Object pivot, out double cx, out double cy) { - Efl.Canvas.AnimationScaleNativeInherit.efl_animation_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out pivot, out cx, out cy); + virtual public void GetScale(out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out Efl.Canvas.Object pivot, out double cx, out double cy) { + Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out pivot, out cx, out cy); Eina.Error.RaiseIfUnhandledException(); } /// Scale property @@ -79,9 +102,8 @@ public class AnimationScale : Efl.Canvas.Animation, Efl.Eo.IWrapper /// Pivot object for the center point. If the pivot object is NULL, then the object is scaled on itself. /// X relative coordinate of the center point. The left end is 0.0 and the right end is 1.0 (the center is 0.5). /// Y relative coordinate of the center point. The top end is 0.0 and the bottom end is 1.0 (the center is 0.5). - /// - virtual public void SetScale( double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, Efl.Canvas.Object pivot, double cx, double cy) { - Efl.Canvas.AnimationScaleNativeInherit.efl_animation_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy); + virtual public void SetScale(double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, Efl.Canvas.Object pivot, double cx, double cy) { + Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy); Eina.Error.RaiseIfUnhandledException(); } /// Scale absolute property @@ -91,9 +113,8 @@ public class AnimationScale : Efl.Canvas.Animation, Efl.Eo.IWrapper /// Scale factor along y axis when animation ends /// X absolute coordinate of the center point. /// Y absolute coordinate of the center point. - /// - virtual public void GetScaleAbsolute( out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out int cx, out int cy) { - Efl.Canvas.AnimationScaleNativeInherit.efl_animation_scale_absolute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out cx, out cy); + virtual public void GetScaleAbsolute(out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out int cx, out int cy) { + Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_absolute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out cx, out cy); Eina.Error.RaiseIfUnhandledException(); } /// Scale absolute property @@ -103,144 +124,223 @@ public class AnimationScale : Efl.Canvas.Animation, Efl.Eo.IWrapper /// Scale factor along y axis when animation ends /// X absolute coordinate of the center point. /// Y absolute coordinate of the center point. - /// - virtual public void SetScaleAbsolute( double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, int cx, int cy) { - Efl.Canvas.AnimationScaleNativeInherit.efl_animation_scale_absolute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy); + virtual public void SetScaleAbsolute(double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, int cx, int cy) { + Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_absolute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_class_get(); } -} -public class AnimationScaleNativeInherit : Efl.Canvas.AnimationNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_animation_scale_get_static_delegate == null) - efl_animation_scale_get_static_delegate = new efl_animation_scale_get_delegate(scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_get_static_delegate)}); - if (efl_animation_scale_set_static_delegate == null) - efl_animation_scale_set_static_delegate = new efl_animation_scale_set_delegate(scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_set_static_delegate)}); - if (efl_animation_scale_absolute_get_static_delegate == null) - efl_animation_scale_absolute_get_static_delegate = new efl_animation_scale_absolute_get_delegate(scale_absolute_get); - if (methods.FirstOrDefault(m => m.Name == "GetScaleAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_scale_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_absolute_get_static_delegate)}); - if (efl_animation_scale_absolute_set_static_delegate == null) - efl_animation_scale_absolute_set_static_delegate = new efl_animation_scale_absolute_set_delegate(scale_absolute_set); - if (methods.FirstOrDefault(m => m.Name == "SetScaleAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_scale_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_absolute_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Animation.NativeMethods { - return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_animation_scale_get_static_delegate == null) + { + efl_animation_scale_get_static_delegate = new efl_animation_scale_get_delegate(scale_get); + } - private delegate void efl_animation_scale_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object pivot, out double cx, out double cy); + if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_get_static_delegate) }); + } + if (efl_animation_scale_set_static_delegate == null) + { + efl_animation_scale_set_static_delegate = new efl_animation_scale_set_delegate(scale_set); + } - public delegate void efl_animation_scale_get_api_delegate(System.IntPtr obj, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object pivot, out double cx, out double cy); - public static Efl.Eo.FunctionWrapper efl_animation_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_scale_get"); - private static void scale_get(System.IntPtr obj, System.IntPtr pd, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out Efl.Canvas.Object pivot, out double cx, out double cy) - { - Eina.Log.Debug("function efl_animation_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - from_scale_x = default(double); from_scale_y = default(double); to_scale_x = default(double); to_scale_y = default(double); pivot = default(Efl.Canvas.Object); cx = default(double); cy = default(double); - try { - ((AnimationScale)wrapper).GetScale( out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out pivot, out cx, out cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out pivot, out cx, out cy); + if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_set_static_delegate) }); + } + + if (efl_animation_scale_absolute_get_static_delegate == null) + { + efl_animation_scale_absolute_get_static_delegate = new efl_animation_scale_absolute_get_delegate(scale_absolute_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScaleAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_scale_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_absolute_get_static_delegate) }); + } + + if (efl_animation_scale_absolute_set_static_delegate == null) + { + efl_animation_scale_absolute_set_static_delegate = new efl_animation_scale_absolute_set_delegate(scale_absolute_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScaleAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_scale_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_scale_absolute_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_class_get(); } - } - private static efl_animation_scale_get_delegate efl_animation_scale_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_animation_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object pivot, double cx, double cy); + + private delegate void efl_animation_scale_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object pivot, out double cx, out double cy); + + public delegate void efl_animation_scale_get_api_delegate(System.IntPtr obj, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object pivot, out double cx, out double cy); - public delegate void efl_animation_scale_set_api_delegate(System.IntPtr obj, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object pivot, double cx, double cy); - public static Efl.Eo.FunctionWrapper efl_animation_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_scale_set"); - private static void scale_set(System.IntPtr obj, System.IntPtr pd, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, Efl.Canvas.Object pivot, double cx, double cy) - { - Eina.Log.Debug("function efl_animation_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationScale)wrapper).SetScale( from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy); + public static Efl.Eo.FunctionWrapper efl_animation_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_scale_get"); + + private static void scale_get(System.IntPtr obj, System.IntPtr pd, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out Efl.Canvas.Object pivot, out double cx, out double cy) + { + Eina.Log.Debug("function efl_animation_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + from_scale_x = default(double); from_scale_y = default(double); to_scale_x = default(double); to_scale_y = default(double); pivot = default(Efl.Canvas.Object); cx = default(double); cy = default(double); + try + { + ((AnimationScale)wrapper).GetScale(out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out pivot, out cx, out cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out pivot, out cx, out cy); + } } - } - private static efl_animation_scale_set_delegate efl_animation_scale_set_static_delegate; + private static efl_animation_scale_get_delegate efl_animation_scale_get_static_delegate; - private delegate void efl_animation_scale_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out int cx, out int cy); + + private delegate void efl_animation_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pivot, double cx, double cy); + + public delegate void efl_animation_scale_set_api_delegate(System.IntPtr obj, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pivot, double cx, double cy); - public delegate void efl_animation_scale_absolute_get_api_delegate(System.IntPtr obj, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out int cx, out int cy); - public static Efl.Eo.FunctionWrapper efl_animation_scale_absolute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_scale_absolute_get"); - private static void scale_absolute_get(System.IntPtr obj, System.IntPtr pd, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out int cx, out int cy) - { - Eina.Log.Debug("function efl_animation_scale_absolute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - from_scale_x = default(double); from_scale_y = default(double); to_scale_x = default(double); to_scale_y = default(double); cx = default(int); cy = default(int); - try { - ((AnimationScale)wrapper).GetScaleAbsolute( out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out cx, out cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_scale_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out cx, out cy); + public static Efl.Eo.FunctionWrapper efl_animation_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_scale_set"); + + private static void scale_set(System.IntPtr obj, System.IntPtr pd, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, Efl.Canvas.Object pivot, double cx, double cy) + { + Eina.Log.Debug("function efl_animation_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationScale)wrapper).SetScale(from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_scale_x, from_scale_y, to_scale_x, to_scale_y, pivot, cx, cy); + } } - } - private static efl_animation_scale_absolute_get_delegate efl_animation_scale_absolute_get_static_delegate; + private static efl_animation_scale_set_delegate efl_animation_scale_set_static_delegate; - private delegate void efl_animation_scale_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, int cx, int cy); + + private delegate void efl_animation_scale_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out int cx, out int cy); + + public delegate void efl_animation_scale_absolute_get_api_delegate(System.IntPtr obj, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out int cx, out int cy); - public delegate void efl_animation_scale_absolute_set_api_delegate(System.IntPtr obj, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, int cx, int cy); - public static Efl.Eo.FunctionWrapper efl_animation_scale_absolute_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_scale_absolute_set"); - private static void scale_absolute_set(System.IntPtr obj, System.IntPtr pd, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, int cx, int cy) - { - Eina.Log.Debug("function efl_animation_scale_absolute_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationScale)wrapper).SetScaleAbsolute( from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_scale_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy); + public static Efl.Eo.FunctionWrapper efl_animation_scale_absolute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_scale_absolute_get"); + + private static void scale_absolute_get(System.IntPtr obj, System.IntPtr pd, out double from_scale_x, out double from_scale_y, out double to_scale_x, out double to_scale_y, out int cx, out int cy) + { + Eina.Log.Debug("function efl_animation_scale_absolute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + from_scale_x = default(double); from_scale_y = default(double); to_scale_x = default(double); to_scale_y = default(double); cx = default(int); cy = default(int); + try + { + ((AnimationScale)wrapper).GetScaleAbsolute(out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out cx, out cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_scale_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_scale_x, out from_scale_y, out to_scale_x, out to_scale_y, out cx, out cy); + } } - } - private static efl_animation_scale_absolute_set_delegate efl_animation_scale_absolute_set_static_delegate; + + private static efl_animation_scale_absolute_get_delegate efl_animation_scale_absolute_get_static_delegate; + + + private delegate void efl_animation_scale_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, int cx, int cy); + + + public delegate void efl_animation_scale_absolute_set_api_delegate(System.IntPtr obj, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, int cx, int cy); + + public static Efl.Eo.FunctionWrapper efl_animation_scale_absolute_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_scale_absolute_set"); + + private static void scale_absolute_set(System.IntPtr obj, System.IntPtr pd, double from_scale_x, double from_scale_y, double to_scale_x, double to_scale_y, int cx, int cy) + { + Eina.Log.Debug("function efl_animation_scale_absolute_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationScale)wrapper).SetScaleAbsolute(from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_scale_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy); + } + } + + private static efl_animation_scale_absolute_set_delegate efl_animation_scale_absolute_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_translate.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_translate.eo.cs index a35bd49..db0466d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_translate.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_translate.eo.cs @@ -3,69 +3,92 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Efl translate animation class -[AnimationTranslateNativeInherit] +[Efl.Canvas.AnimationTranslate.NativeMethods] public class AnimationTranslate : Efl.Canvas.Animation, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AnimationTranslate)) - return Efl.Canvas.AnimationTranslateNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AnimationTranslate)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_animation_translate_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public AnimationTranslate(Efl.Object parent= null - ) : - base(efl_canvas_animation_translate_class_get(), typeof(AnimationTranslate), parent) + ) : base(efl_canvas_animation_translate_class_get(), typeof(AnimationTranslate), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AnimationTranslate(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AnimationTranslate(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AnimationTranslate(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Translate property /// Distance moved along x axis when animation starts /// Distance moved along y axis when animation starts /// Distance moved along x axis when animation ends /// Distance moved along y axis when animation ends - /// - virtual public void GetTranslate( out int from_x, out int from_y, out int to_x, out int to_y) { - Efl.Canvas.AnimationTranslateNativeInherit.efl_animation_translate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out from_x, out from_y, out to_x, out to_y); + virtual public void GetTranslate(out int from_x, out int from_y, out int to_x, out int to_y) { + Efl.Canvas.AnimationTranslate.NativeMethods.efl_animation_translate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from_x, out from_y, out to_x, out to_y); Eina.Error.RaiseIfUnhandledException(); } /// Translate property @@ -73,9 +96,8 @@ public class AnimationTranslate : Efl.Canvas.Animation, Efl.Eo.IWrapper /// Distance moved along y axis when animation starts /// Distance moved along x axis when animation ends /// Distance moved along y axis when animation ends - /// - virtual public void SetTranslate( int from_x, int from_y, int to_x, int to_y) { - Efl.Canvas.AnimationTranslateNativeInherit.efl_animation_translate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), from_x, from_y, to_x, to_y); + virtual public void SetTranslate(int from_x, int from_y, int to_x, int to_y) { + Efl.Canvas.AnimationTranslate.NativeMethods.efl_animation_translate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from_x, from_y, to_x, to_y); Eina.Error.RaiseIfUnhandledException(); } /// Translate absolute property @@ -83,9 +105,8 @@ public class AnimationTranslate : Efl.Canvas.Animation, Efl.Eo.IWrapper /// Y coordinate when animation starts /// X coordinate when animation ends /// Y coordinate when animation ends - /// - virtual public void GetTranslateAbsolute( out int from_x, out int from_y, out int to_x, out int to_y) { - Efl.Canvas.AnimationTranslateNativeInherit.efl_animation_translate_absolute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out from_x, out from_y, out to_x, out to_y); + virtual public void GetTranslateAbsolute(out int from_x, out int from_y, out int to_x, out int to_y) { + Efl.Canvas.AnimationTranslate.NativeMethods.efl_animation_translate_absolute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from_x, out from_y, out to_x, out to_y); Eina.Error.RaiseIfUnhandledException(); } /// Translate absolute property @@ -93,144 +114,223 @@ public class AnimationTranslate : Efl.Canvas.Animation, Efl.Eo.IWrapper /// Y coordinate when animation starts /// X coordinate when animation ends /// Y coordinate when animation ends - /// - virtual public void SetTranslateAbsolute( int from_x, int from_y, int to_x, int to_y) { - Efl.Canvas.AnimationTranslateNativeInherit.efl_animation_translate_absolute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), from_x, from_y, to_x, to_y); + virtual public void SetTranslateAbsolute(int from_x, int from_y, int to_x, int to_y) { + Efl.Canvas.AnimationTranslate.NativeMethods.efl_animation_translate_absolute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from_x, from_y, to_x, to_y); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Canvas.AnimationTranslate.efl_canvas_animation_translate_class_get(); } -} -public class AnimationTranslateNativeInherit : Efl.Canvas.AnimationNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_animation_translate_get_static_delegate == null) - efl_animation_translate_get_static_delegate = new efl_animation_translate_get_delegate(translate_get); - if (methods.FirstOrDefault(m => m.Name == "GetTranslate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_translate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_translate_get_static_delegate)}); - if (efl_animation_translate_set_static_delegate == null) - efl_animation_translate_set_static_delegate = new efl_animation_translate_set_delegate(translate_set); - if (methods.FirstOrDefault(m => m.Name == "SetTranslate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_translate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_translate_set_static_delegate)}); - if (efl_animation_translate_absolute_get_static_delegate == null) - efl_animation_translate_absolute_get_static_delegate = new efl_animation_translate_absolute_get_delegate(translate_absolute_get); - if (methods.FirstOrDefault(m => m.Name == "GetTranslateAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_translate_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_translate_absolute_get_static_delegate)}); - if (efl_animation_translate_absolute_set_static_delegate == null) - efl_animation_translate_absolute_set_static_delegate = new efl_animation_translate_absolute_set_delegate(translate_absolute_set); - if (methods.FirstOrDefault(m => m.Name == "SetTranslateAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_animation_translate_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_translate_absolute_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.AnimationTranslate.efl_canvas_animation_translate_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Animation.NativeMethods { - return Efl.Canvas.AnimationTranslate.efl_canvas_animation_translate_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_animation_translate_get_static_delegate == null) + { + efl_animation_translate_get_static_delegate = new efl_animation_translate_get_delegate(translate_get); + } - private delegate void efl_animation_translate_get_delegate(System.IntPtr obj, System.IntPtr pd, out int from_x, out int from_y, out int to_x, out int to_y); + if (methods.FirstOrDefault(m => m.Name == "GetTranslate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_translate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_translate_get_static_delegate) }); + } + if (efl_animation_translate_set_static_delegate == null) + { + efl_animation_translate_set_static_delegate = new efl_animation_translate_set_delegate(translate_set); + } - public delegate void efl_animation_translate_get_api_delegate(System.IntPtr obj, out int from_x, out int from_y, out int to_x, out int to_y); - public static Efl.Eo.FunctionWrapper efl_animation_translate_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_translate_get"); - private static void translate_get(System.IntPtr obj, System.IntPtr pd, out int from_x, out int from_y, out int to_x, out int to_y) - { - Eina.Log.Debug("function efl_animation_translate_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - from_x = default(int); from_y = default(int); to_x = default(int); to_y = default(int); - try { - ((AnimationTranslate)wrapper).GetTranslate( out from_x, out from_y, out to_x, out to_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_translate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_x, out from_y, out to_x, out to_y); + if (methods.FirstOrDefault(m => m.Name == "SetTranslate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_translate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_translate_set_static_delegate) }); + } + + if (efl_animation_translate_absolute_get_static_delegate == null) + { + efl_animation_translate_absolute_get_static_delegate = new efl_animation_translate_absolute_get_delegate(translate_absolute_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTranslateAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_translate_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_translate_absolute_get_static_delegate) }); + } + + if (efl_animation_translate_absolute_set_static_delegate == null) + { + efl_animation_translate_absolute_set_static_delegate = new efl_animation_translate_absolute_set_delegate(translate_absolute_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTranslateAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_translate_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_translate_absolute_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.AnimationTranslate.efl_canvas_animation_translate_class_get(); } - } - private static efl_animation_translate_get_delegate efl_animation_translate_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_animation_translate_set_delegate(System.IntPtr obj, System.IntPtr pd, int from_x, int from_y, int to_x, int to_y); + + private delegate void efl_animation_translate_get_delegate(System.IntPtr obj, System.IntPtr pd, out int from_x, out int from_y, out int to_x, out int to_y); + + public delegate void efl_animation_translate_get_api_delegate(System.IntPtr obj, out int from_x, out int from_y, out int to_x, out int to_y); - public delegate void efl_animation_translate_set_api_delegate(System.IntPtr obj, int from_x, int from_y, int to_x, int to_y); - public static Efl.Eo.FunctionWrapper efl_animation_translate_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_translate_set"); - private static void translate_set(System.IntPtr obj, System.IntPtr pd, int from_x, int from_y, int to_x, int to_y) - { - Eina.Log.Debug("function efl_animation_translate_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationTranslate)wrapper).SetTranslate( from_x, from_y, to_x, to_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_translate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_x, from_y, to_x, to_y); + public static Efl.Eo.FunctionWrapper efl_animation_translate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_translate_get"); + + private static void translate_get(System.IntPtr obj, System.IntPtr pd, out int from_x, out int from_y, out int to_x, out int to_y) + { + Eina.Log.Debug("function efl_animation_translate_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + from_x = default(int); from_y = default(int); to_x = default(int); to_y = default(int); + try + { + ((AnimationTranslate)wrapper).GetTranslate(out from_x, out from_y, out to_x, out to_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_translate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_x, out from_y, out to_x, out to_y); + } } - } - private static efl_animation_translate_set_delegate efl_animation_translate_set_static_delegate; + private static efl_animation_translate_get_delegate efl_animation_translate_get_static_delegate; - private delegate void efl_animation_translate_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd, out int from_x, out int from_y, out int to_x, out int to_y); + + private delegate void efl_animation_translate_set_delegate(System.IntPtr obj, System.IntPtr pd, int from_x, int from_y, int to_x, int to_y); + + public delegate void efl_animation_translate_set_api_delegate(System.IntPtr obj, int from_x, int from_y, int to_x, int to_y); - public delegate void efl_animation_translate_absolute_get_api_delegate(System.IntPtr obj, out int from_x, out int from_y, out int to_x, out int to_y); - public static Efl.Eo.FunctionWrapper efl_animation_translate_absolute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_translate_absolute_get"); - private static void translate_absolute_get(System.IntPtr obj, System.IntPtr pd, out int from_x, out int from_y, out int to_x, out int to_y) - { - Eina.Log.Debug("function efl_animation_translate_absolute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - from_x = default(int); from_y = default(int); to_x = default(int); to_y = default(int); - try { - ((AnimationTranslate)wrapper).GetTranslateAbsolute( out from_x, out from_y, out to_x, out to_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_translate_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_x, out from_y, out to_x, out to_y); + public static Efl.Eo.FunctionWrapper efl_animation_translate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_translate_set"); + + private static void translate_set(System.IntPtr obj, System.IntPtr pd, int from_x, int from_y, int to_x, int to_y) + { + Eina.Log.Debug("function efl_animation_translate_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationTranslate)wrapper).SetTranslate(from_x, from_y, to_x, to_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_translate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_x, from_y, to_x, to_y); + } } - } - private static efl_animation_translate_absolute_get_delegate efl_animation_translate_absolute_get_static_delegate; + private static efl_animation_translate_set_delegate efl_animation_translate_set_static_delegate; - private delegate void efl_animation_translate_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd, int from_x, int from_y, int to_x, int to_y); + + private delegate void efl_animation_translate_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd, out int from_x, out int from_y, out int to_x, out int to_y); + + public delegate void efl_animation_translate_absolute_get_api_delegate(System.IntPtr obj, out int from_x, out int from_y, out int to_x, out int to_y); - public delegate void efl_animation_translate_absolute_set_api_delegate(System.IntPtr obj, int from_x, int from_y, int to_x, int to_y); - public static Efl.Eo.FunctionWrapper efl_animation_translate_absolute_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_animation_translate_absolute_set"); - private static void translate_absolute_set(System.IntPtr obj, System.IntPtr pd, int from_x, int from_y, int to_x, int to_y) - { - Eina.Log.Debug("function efl_animation_translate_absolute_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnimationTranslate)wrapper).SetTranslateAbsolute( from_x, from_y, to_x, to_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_animation_translate_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_x, from_y, to_x, to_y); + public static Efl.Eo.FunctionWrapper efl_animation_translate_absolute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_translate_absolute_get"); + + private static void translate_absolute_get(System.IntPtr obj, System.IntPtr pd, out int from_x, out int from_y, out int to_x, out int to_y) + { + Eina.Log.Debug("function efl_animation_translate_absolute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + from_x = default(int); from_y = default(int); to_x = default(int); to_y = default(int); + try + { + ((AnimationTranslate)wrapper).GetTranslateAbsolute(out from_x, out from_y, out to_x, out to_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_translate_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from_x, out from_y, out to_x, out to_y); + } } - } - private static efl_animation_translate_absolute_set_delegate efl_animation_translate_absolute_set_static_delegate; + + private static efl_animation_translate_absolute_get_delegate efl_animation_translate_absolute_get_static_delegate; + + + private delegate void efl_animation_translate_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd, int from_x, int from_y, int to_x, int to_y); + + + public delegate void efl_animation_translate_absolute_set_api_delegate(System.IntPtr obj, int from_x, int from_y, int to_x, int to_y); + + public static Efl.Eo.FunctionWrapper efl_animation_translate_absolute_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_translate_absolute_set"); + + private static void translate_absolute_set(System.IntPtr obj, System.IntPtr pd, int from_x, int from_y, int to_x, int to_y) + { + Eina.Log.Debug("function efl_animation_translate_absolute_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnimationTranslate)wrapper).SetTranslateAbsolute(from_x, from_y, to_x, to_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_animation_translate_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from_x, from_y, to_x, to_y); + } + } + + private static efl_animation_translate_absolute_set_delegate efl_animation_translate_absolute_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_types.eot.cs index 0bb09cc..a9e0205 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_types.eot.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Animation repeat mode public enum AnimationRepeatMode { @@ -13,8 +17,15 @@ Restart = 0, /// Reverse animation when the animation ends. Reverse = 1, } -} } -namespace Efl { namespace Canvas { + +} + +} + +namespace Efl { + +namespace Canvas { + /// Information of event running [StructLayout(LayoutKind.Sequential)] public struct AnimationPlayerEventRunning @@ -50,4 +61,7 @@ public struct AnimationPlayerEventRunning } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_event_grabber.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_event_grabber.eo.cs index 0ec7705..b85cec0 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_event_grabber.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_event_grabber.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Low-level rectangle object. /// This provides a smart version of the typical "event rectangle", which allows objects to set this as their parent and route events to a group of objects. Events will not propagate to non-member objects below this object. /// @@ -13,156 +17,221 @@ namespace Efl { namespace Canvas { /// Child objects are not modified in any way, unlike other types of smart objects. /// /// No child objects should be stacked above the event grabber parent while the grabber is visible. A critical error will be raised if this is detected. -[EventGrabberNativeInherit] +[Efl.Canvas.EventGrabber.NativeMethods] public class EventGrabber : Efl.Canvas.Group, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (EventGrabber)) - return Efl.Canvas.EventGrabberNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(EventGrabber)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_event_grabber_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public EventGrabber(Efl.Object parent= null - ) : - base(efl_canvas_event_grabber_class_get(), typeof(EventGrabber), parent) + ) : base(efl_canvas_event_grabber_class_get(), typeof(EventGrabber), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected EventGrabber(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected EventGrabber(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected EventGrabber(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Stops the grabber from updating its internal stacking order while visible /// If true, stop updating virtual public bool GetFreezeWhenVisible() { - var _ret_var = Efl.Canvas.EventGrabberNativeInherit.efl_canvas_event_grabber_freeze_when_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.EventGrabber.NativeMethods.efl_canvas_event_grabber_freeze_when_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Stops the grabber from updating its internal stacking order while visible /// If true, stop updating - /// - virtual public void SetFreezeWhenVisible( bool set) { - Efl.Canvas.EventGrabberNativeInherit.efl_canvas_event_grabber_freeze_when_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), set); + virtual public void SetFreezeWhenVisible(bool set) { + Efl.Canvas.EventGrabber.NativeMethods.efl_canvas_event_grabber_freeze_when_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),set); Eina.Error.RaiseIfUnhandledException(); } /// Stops the grabber from updating its internal stacking order while visible /// If true, stop updating public bool FreezeWhenVisible { get { return GetFreezeWhenVisible(); } - set { SetFreezeWhenVisible( value); } + set { SetFreezeWhenVisible(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.EventGrabber.efl_canvas_event_grabber_class_get(); } -} -public class EventGrabberNativeInherit : Efl.Canvas.GroupNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_canvas_event_grabber_freeze_when_visible_get_static_delegate == null) - efl_canvas_event_grabber_freeze_when_visible_get_static_delegate = new efl_canvas_event_grabber_freeze_when_visible_get_delegate(freeze_when_visible_get); - if (methods.FirstOrDefault(m => m.Name == "GetFreezeWhenVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_event_grabber_freeze_when_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_event_grabber_freeze_when_visible_get_static_delegate)}); - if (efl_canvas_event_grabber_freeze_when_visible_set_static_delegate == null) - efl_canvas_event_grabber_freeze_when_visible_set_static_delegate = new efl_canvas_event_grabber_freeze_when_visible_set_delegate(freeze_when_visible_set); - if (methods.FirstOrDefault(m => m.Name == "SetFreezeWhenVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_event_grabber_freeze_when_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_event_grabber_freeze_when_visible_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.EventGrabber.efl_canvas_event_grabber_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Group.NativeMethods { - return Efl.Canvas.EventGrabber.efl_canvas_event_grabber_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_canvas_event_grabber_freeze_when_visible_get_static_delegate == null) + { + efl_canvas_event_grabber_freeze_when_visible_get_static_delegate = new efl_canvas_event_grabber_freeze_when_visible_get_delegate(freeze_when_visible_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_event_grabber_freeze_when_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFreezeWhenVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_event_grabber_freeze_when_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_event_grabber_freeze_when_visible_get_static_delegate) }); + } + if (efl_canvas_event_grabber_freeze_when_visible_set_static_delegate == null) + { + efl_canvas_event_grabber_freeze_when_visible_set_static_delegate = new efl_canvas_event_grabber_freeze_when_visible_set_delegate(freeze_when_visible_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_event_grabber_freeze_when_visible_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_event_grabber_freeze_when_visible_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_event_grabber_freeze_when_visible_get"); - private static bool freeze_when_visible_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_event_grabber_freeze_when_visible_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((EventGrabber)wrapper).GetFreezeWhenVisible(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFreezeWhenVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_event_grabber_freeze_when_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_event_grabber_freeze_when_visible_set_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.EventGrabber.efl_canvas_event_grabber_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_event_grabber_freeze_when_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_event_grabber_freeze_when_visible_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_event_grabber_freeze_when_visible_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_event_grabber_freeze_when_visible_get"); + + private static bool freeze_when_visible_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_event_grabber_freeze_when_visible_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((EventGrabber)wrapper).GetFreezeWhenVisible(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_canvas_event_grabber_freeze_when_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_canvas_event_grabber_freeze_when_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_event_grabber_freeze_when_visible_get_delegate efl_canvas_event_grabber_freeze_when_visible_get_static_delegate; + private static efl_canvas_event_grabber_freeze_when_visible_get_delegate efl_canvas_event_grabber_freeze_when_visible_get_static_delegate; - private delegate void efl_canvas_event_grabber_freeze_when_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool set); + + private delegate void efl_canvas_event_grabber_freeze_when_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool set); + + public delegate void efl_canvas_event_grabber_freeze_when_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool set); - public delegate void efl_canvas_event_grabber_freeze_when_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool set); - public static Efl.Eo.FunctionWrapper efl_canvas_event_grabber_freeze_when_visible_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_event_grabber_freeze_when_visible_set"); - private static void freeze_when_visible_set(System.IntPtr obj, System.IntPtr pd, bool set) - { - Eina.Log.Debug("function efl_canvas_event_grabber_freeze_when_visible_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((EventGrabber)wrapper).SetFreezeWhenVisible( set); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_canvas_event_grabber_freeze_when_visible_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_event_grabber_freeze_when_visible_set"); + + private static void freeze_when_visible_set(System.IntPtr obj, System.IntPtr pd, bool set) + { + Eina.Log.Debug("function efl_canvas_event_grabber_freeze_when_visible_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((EventGrabber)wrapper).SetFreezeWhenVisible(set); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_event_grabber_freeze_when_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), set); } - } else { - efl_canvas_event_grabber_freeze_when_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), set); } - } - private static efl_canvas_event_grabber_freeze_when_visible_set_delegate efl_canvas_event_grabber_freeze_when_visible_set_static_delegate; + + private static efl_canvas_event_grabber_freeze_when_visible_set_delegate efl_canvas_event_grabber_freeze_when_visible_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_filter_internal.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_filter_internal.eo.cs index 4d8d67b..e3524a1 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_filter_internal.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_filter_internal.eo.cs @@ -3,22 +3,26 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { namespace Filter { +namespace Efl { + +namespace Canvas { + +namespace Filter { + /// Evas internal implementation of filters. -[IInternalNativeInherit] +[Efl.Canvas.Filter.IInternalConcrete.NativeMethods] public interface IInternal : Efl.Gfx.IFilter , Efl.Eo.IWrapper, IDisposable { /// Marks this filter as changed. /// true if filter changed, false otherwise -/// -void SetFilterChanged( bool val); +void SetFilterChanged(bool val); /// Marks this filter as invalid. /// true if filter is invalid, false otherwise -/// -void SetFilterInvalid( bool val); +void SetFilterInvalid(bool val); /// Retrieve cached output buffer, if any. /// Does not increment the reference count. /// Output buffer @@ -29,8 +33,7 @@ bool FilterInputAlpha(); /// Called by Efl.Canvas.Filter.Internal to request the parent class for state information (color, etc...). /// State info to fill in /// Private data for the class -/// -void FilterStatePrepare( out Efl.Canvas.Filter.State state, System.IntPtr data); +void FilterStatePrepare(out Efl.Canvas.Filter.State state, System.IntPtr data); /// Called by Efl.Canvas.Filter.Internal when the parent class must render the input. /// Current filter context /// Engine context @@ -45,10 +48,9 @@ void FilterStatePrepare( out Efl.Canvas.Filter.State state, System.IntPtr data) /// Y offset /// true when the operation should be done asynchronously, false otherwise /// Indicates success from the object render function. -bool FilterInputRender( System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, bool do_async); +bool FilterInputRender(System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, bool do_async); /// Called when filter changes must trigger a redraw of the object. /// Virtual, to be implemented in the parent class. -/// void FilterDirty(); /// Marks this filter as changed. /// true if filter changed, false otherwise @@ -74,104 +76,136 @@ IInternal , Efl.Gfx.IFilter { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IInternalConcrete)) - return Efl.Canvas.Filter.IInternalNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IInternalConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_filter_internal_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IInternalConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IInternalConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Marks this filter as changed. /// true if filter changed, false otherwise - /// - public void SetFilterChanged( bool val) { - Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_changed_set_ptr.Value.Delegate(this.NativeHandle, val); + public void SetFilterChanged(bool val) { + Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_changed_set_ptr.Value.Delegate(this.NativeHandle,val); Eina.Error.RaiseIfUnhandledException(); } /// Marks this filter as invalid. /// true if filter is invalid, false otherwise - /// - public void SetFilterInvalid( bool val) { - Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_invalid_set_ptr.Value.Delegate(this.NativeHandle, val); + public void SetFilterInvalid(bool val) { + Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_invalid_set_ptr.Value.Delegate(this.NativeHandle,val); Eina.Error.RaiseIfUnhandledException(); } /// Retrieve cached output buffer, if any. /// Does not increment the reference count. /// Output buffer public System.IntPtr GetFilterOutputBuffer() { - var _ret_var = Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_output_buffer_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_output_buffer_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Called by Efl.Canvas.Filter.Internal to determine whether the input is alpha or rgba. /// true on success, false otherwise public bool FilterInputAlpha() { - var _ret_var = Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_input_alpha_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_input_alpha_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Called by Efl.Canvas.Filter.Internal to request the parent class for state information (color, etc...). /// State info to fill in /// Private data for the class - /// - public void FilterStatePrepare( out Efl.Canvas.Filter.State state, System.IntPtr data) { + public void FilterStatePrepare(out Efl.Canvas.Filter.State state, System.IntPtr data) { var _out_state = new Efl.Canvas.Filter.State.NativeStruct(); - Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_state_prepare_ptr.Value.Delegate(this.NativeHandle, out _out_state, data); + Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_state_prepare_ptr.Value.Delegate(this.NativeHandle,out _out_state, data); Eina.Error.RaiseIfUnhandledException(); state = _out_state; } @@ -189,24 +223,22 @@ IInternal /// Y offset /// true when the operation should be done asynchronously, false otherwise /// Indicates success from the object render function. - public bool FilterInputRender( System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, bool do_async) { - var _ret_var = Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_input_render_ptr.Value.Delegate(this.NativeHandle, filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); + public bool FilterInputRender(System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, bool do_async) { + var _ret_var = Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_input_render_ptr.Value.Delegate(this.NativeHandle,filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Called when filter changes must trigger a redraw of the object. /// Virtual, to be implemented in the parent class. - /// public void FilterDirty() { - Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_dirty_ptr.Value.Delegate(this.NativeHandle); + Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_dirty_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Gets the code of the filter program set on this object. May be null. /// The Lua program source code. /// An optional name for this filter. - /// - public void GetFilterProgram( out System.String code, out System.String name) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_program_get_ptr.Value.Delegate(this.NativeHandle, out code, out name); + public void GetFilterProgram(out System.String code, out System.String name) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_program_get_ptr.Value.Delegate(this.NativeHandle,out code, out name); Eina.Error.RaiseIfUnhandledException(); } /// Set a graphical filter program on this object. @@ -217,9 +249,8 @@ IInternal /// Set to null to disable filtering. /// The Lua program source code. /// An optional name for this filter. - /// - public void SetFilterProgram( System.String code, System.String name) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_program_set_ptr.Value.Delegate(this.NativeHandle, code, name); + public void SetFilterProgram(System.String code, System.String name) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_program_set_ptr.Value.Delegate(this.NativeHandle,code, name); Eina.Error.RaiseIfUnhandledException(); } /// Set the current state of the filter. @@ -231,9 +262,8 @@ IInternal /// Next filter state, optional /// Next value, optional /// Position, optional - /// - public void GetFilterState( out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_state_get_ptr.Value.Delegate(this.NativeHandle, out cur_state, out cur_val, out next_state, out next_val, out pos); + public void GetFilterState(out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_state_get_ptr.Value.Delegate(this.NativeHandle,out cur_state, out cur_val, out next_state, out next_val, out pos); Eina.Error.RaiseIfUnhandledException(); } /// Set the current state of the filter. @@ -245,9 +275,8 @@ IInternal /// Next filter state, optional /// Next value, optional /// Position, optional - /// - public void SetFilterState( System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_state_set_ptr.Value.Delegate(this.NativeHandle, cur_state, cur_val, next_state, next_val, pos); + public void SetFilterState(System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_state_set_ptr.Value.Delegate(this.NativeHandle,cur_state, cur_val, next_state, next_val, pos); Eina.Error.RaiseIfUnhandledException(); } /// Gets the padding required to apply this filter. @@ -255,17 +284,16 @@ IInternal /// Padding on the right /// Padding on the top /// Padding on the bottom - /// - public void GetFilterPadding( out int l, out int r, out int t, out int b) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_padding_get_ptr.Value.Delegate(this.NativeHandle, out l, out r, out t, out b); + public void GetFilterPadding(out int l, out int r, out int t, out int b) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_padding_get_ptr.Value.Delegate(this.NativeHandle,out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Bind an object to use as a mask or texture in a filter program. /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered). /// Buffer name as used in the program. /// Object to use as a source of pixels. - public Efl.Gfx.IEntity GetFilterSource( System.String name) { - var _ret_var = Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_source_get_ptr.Value.Delegate(this.NativeHandle, name); + public Efl.Gfx.IEntity GetFilterSource(System.String name) { + var _ret_var = Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_source_get_ptr.Value.Delegate(this.NativeHandle,name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -273,9 +301,8 @@ IInternal /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered). /// Buffer name as used in the program. /// Object to use as a source of pixels. - /// - public void SetFilterSource( System.String name, Efl.Gfx.IEntity source) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_source_set_ptr.Value.Delegate(this.NativeHandle, name, source); + public void SetFilterSource(System.String name, Efl.Gfx.IEntity source) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_source_set_ptr.Value.Delegate(this.NativeHandle,name, source); Eina.Error.RaiseIfUnhandledException(); } /// Extra data used by the filter program. @@ -285,9 +312,8 @@ IInternal /// Name of the global variable /// String value to use as data /// If true, execute 'name = value' - /// - public void GetFilterData( System.String name, out System.String value, out bool execute) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_data_get_ptr.Value.Delegate(this.NativeHandle, name, out value, out execute); + public void GetFilterData(System.String name, out System.String value, out bool execute) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_get_ptr.Value.Delegate(this.NativeHandle,name, out value, out execute); Eina.Error.RaiseIfUnhandledException(); } /// Extra data used by the filter program. @@ -297,20 +323,19 @@ IInternal /// Name of the global variable /// String value to use as data /// If true, execute 'name = value' - /// - public void SetFilterData( System.String name, System.String value, bool execute) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_data_set_ptr.Value.Delegate(this.NativeHandle, name, value, execute); + public void SetFilterData(System.String name, System.String value, bool execute) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_set_ptr.Value.Delegate(this.NativeHandle,name, value, execute); Eina.Error.RaiseIfUnhandledException(); } /// Marks this filter as changed. /// true if filter changed, false otherwise public bool FilterChanged { - set { SetFilterChanged( value); } + set { SetFilterChanged(value); } } /// Marks this filter as invalid. /// true if filter is invalid, false otherwise public bool FilterInvalid { - set { SetFilterInvalid( value); } + set { SetFilterInvalid(value); } } /// Retrieve cached output buffer, if any. /// Does not increment the reference count. @@ -322,490 +347,779 @@ IInternal { return Efl.Canvas.Filter.IInternalConcrete.efl_canvas_filter_internal_mixin_get(); } -} -public class IInternalNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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 (evas_filter_changed_set_static_delegate == null) - evas_filter_changed_set_static_delegate = new evas_filter_changed_set_delegate(filter_changed_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterChanged") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_changed_set"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_changed_set_static_delegate)}); - if (evas_filter_invalid_set_static_delegate == null) - evas_filter_invalid_set_static_delegate = new evas_filter_invalid_set_delegate(filter_invalid_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterInvalid") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_invalid_set"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_invalid_set_static_delegate)}); - if (evas_filter_output_buffer_get_static_delegate == null) - evas_filter_output_buffer_get_static_delegate = new evas_filter_output_buffer_get_delegate(filter_output_buffer_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterOutputBuffer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_output_buffer_get"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_output_buffer_get_static_delegate)}); - if (evas_filter_input_alpha_static_delegate == null) - evas_filter_input_alpha_static_delegate = new evas_filter_input_alpha_delegate(filter_input_alpha); - if (methods.FirstOrDefault(m => m.Name == "FilterInputAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_input_alpha"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_input_alpha_static_delegate)}); - if (evas_filter_state_prepare_static_delegate == null) - evas_filter_state_prepare_static_delegate = new evas_filter_state_prepare_delegate(filter_state_prepare); - if (methods.FirstOrDefault(m => m.Name == "FilterStatePrepare") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_state_prepare"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_state_prepare_static_delegate)}); - if (evas_filter_input_render_static_delegate == null) - evas_filter_input_render_static_delegate = new evas_filter_input_render_delegate(filter_input_render); - if (methods.FirstOrDefault(m => m.Name == "FilterInputRender") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_input_render"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_input_render_static_delegate)}); - if (evas_filter_dirty_static_delegate == null) - evas_filter_dirty_static_delegate = new evas_filter_dirty_delegate(filter_dirty); - if (methods.FirstOrDefault(m => m.Name == "FilterDirty") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_dirty"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_dirty_static_delegate)}); - if (efl_gfx_filter_program_get_static_delegate == null) - efl_gfx_filter_program_get_static_delegate = new efl_gfx_filter_program_get_delegate(filter_program_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterProgram") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_program_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_get_static_delegate)}); - if (efl_gfx_filter_program_set_static_delegate == null) - efl_gfx_filter_program_set_static_delegate = new efl_gfx_filter_program_set_delegate(filter_program_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterProgram") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_program_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_set_static_delegate)}); - if (efl_gfx_filter_state_get_static_delegate == null) - efl_gfx_filter_state_get_static_delegate = new efl_gfx_filter_state_get_delegate(filter_state_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_get_static_delegate)}); - if (efl_gfx_filter_state_set_static_delegate == null) - efl_gfx_filter_state_set_static_delegate = new efl_gfx_filter_state_set_delegate(filter_state_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_state_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_set_static_delegate)}); - if (efl_gfx_filter_padding_get_static_delegate == null) - efl_gfx_filter_padding_get_static_delegate = new efl_gfx_filter_padding_get_delegate(filter_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_padding_get_static_delegate)}); - if (efl_gfx_filter_source_get_static_delegate == null) - efl_gfx_filter_source_get_static_delegate = new efl_gfx_filter_source_get_delegate(filter_source_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_get_static_delegate)}); - if (efl_gfx_filter_source_set_static_delegate == null) - efl_gfx_filter_source_set_static_delegate = new efl_gfx_filter_source_set_delegate(filter_source_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_set_static_delegate)}); - if (efl_gfx_filter_data_get_static_delegate == null) - efl_gfx_filter_data_get_static_delegate = new efl_gfx_filter_data_get_delegate(filter_data_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_get_static_delegate)}); - if (efl_gfx_filter_data_set_static_delegate == null) - efl_gfx_filter_data_set_static_delegate = new efl_gfx_filter_data_set_delegate(filter_data_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Filter.IInternalConcrete.efl_canvas_filter_internal_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Canvas.Filter.IInternalConcrete.efl_canvas_filter_internal_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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 (evas_filter_changed_set_static_delegate == null) + { + evas_filter_changed_set_static_delegate = new evas_filter_changed_set_delegate(filter_changed_set); + } - private delegate void evas_filter_changed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + if (methods.FirstOrDefault(m => m.Name == "SetFilterChanged") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_changed_set"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_changed_set_static_delegate) }); + } + if (evas_filter_invalid_set_static_delegate == null) + { + evas_filter_invalid_set_static_delegate = new evas_filter_invalid_set_delegate(filter_invalid_set); + } - public delegate void evas_filter_changed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper evas_filter_changed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_changed_set"); - private static void filter_changed_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function evas_filter_changed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInternalConcrete)wrapper).SetFilterChanged( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - evas_filter_changed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + if (methods.FirstOrDefault(m => m.Name == "SetFilterInvalid") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_invalid_set"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_invalid_set_static_delegate) }); + } + + if (evas_filter_output_buffer_get_static_delegate == null) + { + evas_filter_output_buffer_get_static_delegate = new evas_filter_output_buffer_get_delegate(filter_output_buffer_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFilterOutputBuffer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_output_buffer_get"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_output_buffer_get_static_delegate) }); + } + + if (evas_filter_input_alpha_static_delegate == null) + { + evas_filter_input_alpha_static_delegate = new evas_filter_input_alpha_delegate(filter_input_alpha); + } + + if (methods.FirstOrDefault(m => m.Name == "FilterInputAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_input_alpha"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_input_alpha_static_delegate) }); + } + + if (evas_filter_state_prepare_static_delegate == null) + { + evas_filter_state_prepare_static_delegate = new evas_filter_state_prepare_delegate(filter_state_prepare); + } + + if (methods.FirstOrDefault(m => m.Name == "FilterStatePrepare") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_state_prepare"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_state_prepare_static_delegate) }); + } + + if (evas_filter_input_render_static_delegate == null) + { + evas_filter_input_render_static_delegate = new evas_filter_input_render_delegate(filter_input_render); + } + + if (methods.FirstOrDefault(m => m.Name == "FilterInputRender") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_input_render"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_input_render_static_delegate) }); + } + + if (evas_filter_dirty_static_delegate == null) + { + evas_filter_dirty_static_delegate = new evas_filter_dirty_delegate(filter_dirty); + } + + if (methods.FirstOrDefault(m => m.Name == "FilterDirty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_dirty"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_dirty_static_delegate) }); + } + + if (efl_gfx_filter_program_get_static_delegate == null) + { + efl_gfx_filter_program_get_static_delegate = new efl_gfx_filter_program_get_delegate(filter_program_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFilterProgram") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_program_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_get_static_delegate) }); + } + + if (efl_gfx_filter_program_set_static_delegate == null) + { + efl_gfx_filter_program_set_static_delegate = new efl_gfx_filter_program_set_delegate(filter_program_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFilterProgram") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_program_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_set_static_delegate) }); + } + + if (efl_gfx_filter_state_get_static_delegate == null) + { + efl_gfx_filter_state_get_static_delegate = new efl_gfx_filter_state_get_delegate(filter_state_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFilterState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_get_static_delegate) }); + } + + if (efl_gfx_filter_state_set_static_delegate == null) + { + efl_gfx_filter_state_set_static_delegate = new efl_gfx_filter_state_set_delegate(filter_state_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFilterState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_state_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_set_static_delegate) }); + } + + if (efl_gfx_filter_padding_get_static_delegate == null) + { + efl_gfx_filter_padding_get_static_delegate = new efl_gfx_filter_padding_get_delegate(filter_padding_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFilterPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_padding_get_static_delegate) }); + } + + if (efl_gfx_filter_source_get_static_delegate == null) + { + efl_gfx_filter_source_get_static_delegate = new efl_gfx_filter_source_get_delegate(filter_source_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFilterSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_get_static_delegate) }); + } + + if (efl_gfx_filter_source_set_static_delegate == null) + { + efl_gfx_filter_source_set_static_delegate = new efl_gfx_filter_source_set_delegate(filter_source_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFilterSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_set_static_delegate) }); + } + + if (efl_gfx_filter_data_get_static_delegate == null) + { + efl_gfx_filter_data_get_static_delegate = new efl_gfx_filter_data_get_delegate(filter_data_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFilterData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_get_static_delegate) }); + } + + if (efl_gfx_filter_data_set_static_delegate == null) + { + efl_gfx_filter_data_set_static_delegate = new efl_gfx_filter_data_set_delegate(filter_data_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFilterData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_set_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.Canvas.Filter.IInternalConcrete.efl_canvas_filter_internal_mixin_get(); } - } - private static evas_filter_changed_set_delegate evas_filter_changed_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void evas_filter_invalid_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + private delegate void evas_filter_changed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + public delegate void evas_filter_changed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public delegate void evas_filter_invalid_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper evas_filter_invalid_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_invalid_set"); - private static void filter_invalid_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function evas_filter_invalid_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInternalConcrete)wrapper).SetFilterInvalid( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - evas_filter_invalid_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + public static Efl.Eo.FunctionWrapper evas_filter_changed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_changed_set"); + + private static void filter_changed_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function evas_filter_changed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInternalConcrete)wrapper).SetFilterChanged(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + evas_filter_changed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } } - } - private static evas_filter_invalid_set_delegate evas_filter_invalid_set_static_delegate; + private static evas_filter_changed_set_delegate evas_filter_changed_set_static_delegate; + + + private delegate void evas_filter_invalid_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void evas_filter_invalid_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - private delegate System.IntPtr evas_filter_output_buffer_get_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper evas_filter_invalid_set_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_invalid_set"); + private static void filter_invalid_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function evas_filter_invalid_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInternalConcrete)wrapper).SetFilterInvalid(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate System.IntPtr evas_filter_output_buffer_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper evas_filter_output_buffer_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_output_buffer_get"); - private static System.IntPtr filter_output_buffer_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function evas_filter_output_buffer_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((IInternalConcrete)wrapper).GetFilterOutputBuffer(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + evas_filter_invalid_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } - return _ret_var; - } else { - return evas_filter_output_buffer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static evas_filter_output_buffer_get_delegate evas_filter_output_buffer_get_static_delegate; + private static evas_filter_invalid_set_delegate evas_filter_invalid_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool evas_filter_input_alpha_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr evas_filter_output_buffer_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr evas_filter_output_buffer_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool evas_filter_input_alpha_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper evas_filter_input_alpha_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_input_alpha"); - private static bool filter_input_alpha(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function evas_filter_input_alpha was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IInternalConcrete)wrapper).FilterInputAlpha(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper evas_filter_output_buffer_get_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_output_buffer_get"); + + private static System.IntPtr filter_output_buffer_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function evas_filter_output_buffer_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((IInternalConcrete)wrapper).GetFilterOutputBuffer(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return evas_filter_output_buffer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static evas_filter_output_buffer_get_delegate evas_filter_output_buffer_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool evas_filter_input_alpha_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool evas_filter_input_alpha_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper evas_filter_input_alpha_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_input_alpha"); + + private static bool filter_input_alpha(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function evas_filter_input_alpha was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IInternalConcrete)wrapper).FilterInputAlpha(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return evas_filter_input_alpha_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return evas_filter_input_alpha_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static evas_filter_input_alpha_delegate evas_filter_input_alpha_static_delegate; + private static evas_filter_input_alpha_delegate evas_filter_input_alpha_static_delegate; - private delegate void evas_filter_state_prepare_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data); + + private delegate void evas_filter_state_prepare_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data); + + public delegate void evas_filter_state_prepare_api_delegate(System.IntPtr obj, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data); - public delegate void evas_filter_state_prepare_api_delegate(System.IntPtr obj, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data); - public static Efl.Eo.FunctionWrapper evas_filter_state_prepare_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_state_prepare"); - private static void filter_state_prepare(System.IntPtr obj, System.IntPtr pd, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data) - { - Eina.Log.Debug("function evas_filter_state_prepare was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Filter.State _out_state = default(Efl.Canvas.Filter.State); + public static Efl.Eo.FunctionWrapper evas_filter_state_prepare_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_state_prepare"); + + private static void filter_state_prepare(System.IntPtr obj, System.IntPtr pd, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data) + { + Eina.Log.Debug("function evas_filter_state_prepare was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Filter.State _out_state = default(Efl.Canvas.Filter.State); - try { - ((IInternalConcrete)wrapper).FilterStatePrepare( out _out_state, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((IInternalConcrete)wrapper).FilterStatePrepare(out _out_state, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + state = _out_state; - } else { - evas_filter_state_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out state, data); + + } + else + { + evas_filter_state_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out state, data); + } } - } - private static evas_filter_state_prepare_delegate evas_filter_state_prepare_static_delegate; + private static evas_filter_state_prepare_delegate evas_filter_state_prepare_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool evas_filter_input_render_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, [MarshalAs(UnmanagedType.U1)] bool do_async); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool evas_filter_input_render_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, [MarshalAs(UnmanagedType.U1)] bool do_async); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool evas_filter_input_render_api_delegate(System.IntPtr obj, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, [MarshalAs(UnmanagedType.U1)] bool do_async); + + public static Efl.Eo.FunctionWrapper evas_filter_input_render_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_input_render"); + + private static bool filter_input_render(System.IntPtr obj, System.IntPtr pd, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, bool do_async) + { + Eina.Log.Debug("function evas_filter_input_render was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IInternalConcrete)wrapper).FilterInputRender(filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool evas_filter_input_render_api_delegate(System.IntPtr obj, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, [MarshalAs(UnmanagedType.U1)] bool do_async); - public static Efl.Eo.FunctionWrapper evas_filter_input_render_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_input_render"); - private static bool filter_input_render(System.IntPtr obj, System.IntPtr pd, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, bool do_async) - { - Eina.Log.Debug("function evas_filter_input_render was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IInternalConcrete)wrapper).FilterInputRender( filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return evas_filter_input_render_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); + + } + else + { + return evas_filter_input_render_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); + } } - } - private static evas_filter_input_render_delegate evas_filter_input_render_static_delegate; + private static evas_filter_input_render_delegate evas_filter_input_render_static_delegate; - private delegate void evas_filter_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void evas_filter_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void evas_filter_dirty_api_delegate(System.IntPtr obj); - public delegate void evas_filter_dirty_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper evas_filter_dirty_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_dirty"); - private static void filter_dirty(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function evas_filter_dirty was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInternalConcrete)wrapper).FilterDirty(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - evas_filter_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + public static Efl.Eo.FunctionWrapper evas_filter_dirty_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_dirty"); + + private static void filter_dirty(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function evas_filter_dirty was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInternalConcrete)wrapper).FilterDirty(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + evas_filter_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static evas_filter_dirty_delegate evas_filter_dirty_static_delegate; + private static evas_filter_dirty_delegate evas_filter_dirty_static_delegate; - private delegate void efl_gfx_filter_program_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); + + private delegate void efl_gfx_filter_program_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); + + public delegate void efl_gfx_filter_program_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); - public delegate void efl_gfx_filter_program_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_program_get"); - private static void filter_program_get(System.IntPtr obj, System.IntPtr pd, out System.String code, out System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_program_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_code = default(System.String); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_program_get"); + + private static void filter_program_get(System.IntPtr obj, System.IntPtr pd, out System.String code, out System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_program_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_code = default(System.String); System.String _out_name = default(System.String); - try { - ((IInternalConcrete)wrapper).GetFilterProgram( out _out_code, out _out_name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((IInternalConcrete)wrapper).GetFilterProgram(out _out_code, out _out_name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + code = _out_code; name = _out_name; - } else { - efl_gfx_filter_program_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out code, out name); + + } + else + { + efl_gfx_filter_program_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out code, out name); + } } - } - private static efl_gfx_filter_program_get_delegate efl_gfx_filter_program_get_static_delegate; + private static efl_gfx_filter_program_get_delegate efl_gfx_filter_program_get_static_delegate; + + + private delegate void efl_gfx_filter_program_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - private delegate void efl_gfx_filter_program_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public delegate void efl_gfx_filter_program_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_program_set"); - public delegate void efl_gfx_filter_program_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_program_set"); - private static void filter_program_set(System.IntPtr obj, System.IntPtr pd, System.String code, System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_program_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInternalConcrete)wrapper).SetFilterProgram( code, name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_program_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code, name); + private static void filter_program_set(System.IntPtr obj, System.IntPtr pd, System.String code, System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_program_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInternalConcrete)wrapper).SetFilterProgram(code, name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_program_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code, name); + } } - } - private static efl_gfx_filter_program_set_delegate efl_gfx_filter_program_set_static_delegate; + private static efl_gfx_filter_program_set_delegate efl_gfx_filter_program_set_static_delegate; + + + private delegate void efl_gfx_filter_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); - private delegate void efl_gfx_filter_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); + + public delegate void efl_gfx_filter_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_state_get"); - public delegate void efl_gfx_filter_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_state_get"); - private static void filter_state_get(System.IntPtr obj, System.IntPtr pd, out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) - { - Eina.Log.Debug("function efl_gfx_filter_state_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_cur_state = default(System.String); + private static void filter_state_get(System.IntPtr obj, System.IntPtr pd, out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) + { + Eina.Log.Debug("function efl_gfx_filter_state_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_cur_state = default(System.String); cur_val = default(double); System.String _out_next_state = default(System.String); next_val = default(double); pos = default(double); - try { - ((IInternalConcrete)wrapper).GetFilterState( out _out_cur_state, out cur_val, out _out_next_state, out next_val, out pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((IInternalConcrete)wrapper).GetFilterState(out _out_cur_state, out cur_val, out _out_next_state, out next_val, out pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + cur_state = _out_cur_state; next_state = _out_next_state; - } else { - efl_gfx_filter_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cur_state, out cur_val, out next_state, out next_val, out pos); + + } + else + { + efl_gfx_filter_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cur_state, out cur_val, out next_state, out next_val, out pos); + } } - } - private static efl_gfx_filter_state_get_delegate efl_gfx_filter_state_get_static_delegate; + private static efl_gfx_filter_state_get_delegate efl_gfx_filter_state_get_static_delegate; - private delegate void efl_gfx_filter_state_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); + + private delegate void efl_gfx_filter_state_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); + + public delegate void efl_gfx_filter_state_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); - public delegate void efl_gfx_filter_state_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_state_set"); - private static void filter_state_set(System.IntPtr obj, System.IntPtr pd, System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) - { - Eina.Log.Debug("function efl_gfx_filter_state_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInternalConcrete)wrapper).SetFilterState( cur_state, cur_val, next_state, next_val, pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur_state, cur_val, next_state, next_val, pos); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_state_set"); + + private static void filter_state_set(System.IntPtr obj, System.IntPtr pd, System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) + { + Eina.Log.Debug("function efl_gfx_filter_state_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInternalConcrete)wrapper).SetFilterState(cur_state, cur_val, next_state, next_val, pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur_state, cur_val, next_state, next_val, pos); + } } - } - private static efl_gfx_filter_state_set_delegate efl_gfx_filter_state_set_static_delegate; + private static efl_gfx_filter_state_set_delegate efl_gfx_filter_state_set_static_delegate; + + + private delegate void efl_gfx_filter_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); - private delegate void efl_gfx_filter_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + public delegate void efl_gfx_filter_padding_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_padding_get"); - public delegate void efl_gfx_filter_padding_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_padding_get"); - private static void filter_padding_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) - { - Eina.Log.Debug("function efl_gfx_filter_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(int); r = default(int); t = default(int); b = default(int); - try { - ((IInternalConcrete)wrapper).GetFilterPadding( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + private static void filter_padding_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_filter_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((IInternalConcrete)wrapper).GetFilterPadding(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + } } - } - private static efl_gfx_filter_padding_get_delegate efl_gfx_filter_padding_get_static_delegate; + private static efl_gfx_filter_padding_get_delegate efl_gfx_filter_padding_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_source_get"); + + private static Efl.Gfx.IEntity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_source_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((IInternalConcrete)wrapper).GetFilterSource(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_source_get"); - private static Efl.Gfx.IEntity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_source_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((IInternalConcrete)wrapper).GetFilterSource( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + + } + else + { + return efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } } - } - private static efl_gfx_filter_source_get_delegate efl_gfx_filter_source_get_static_delegate; + private static efl_gfx_filter_source_get_delegate efl_gfx_filter_source_get_static_delegate; - private delegate void efl_gfx_filter_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity source); + + private delegate void efl_gfx_filter_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity source); + + public delegate void efl_gfx_filter_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity source); - public delegate void efl_gfx_filter_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity source); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_source_set"); - private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.IEntity source) - { - Eina.Log.Debug("function efl_gfx_filter_source_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInternalConcrete)wrapper).SetFilterSource( name, source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_source_set"); + + private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.IEntity source) + { + Eina.Log.Debug("function efl_gfx_filter_source_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInternalConcrete)wrapper).SetFilterSource(name, source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source); + } } - } - private static efl_gfx_filter_source_set_delegate efl_gfx_filter_source_set_static_delegate; + private static efl_gfx_filter_source_set_delegate efl_gfx_filter_source_set_static_delegate; - private delegate void efl_gfx_filter_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); + + private delegate void efl_gfx_filter_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); + + public delegate void efl_gfx_filter_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); - public delegate void efl_gfx_filter_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_data_get"); - private static void filter_data_get(System.IntPtr obj, System.IntPtr pd, System.String name, out System.String value, out bool execute) - { - Eina.Log.Debug("function efl_gfx_filter_data_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_value = default(System.String); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_data_get"); + + private static void filter_data_get(System.IntPtr obj, System.IntPtr pd, System.String name, out System.String value, out bool execute) + { + Eina.Log.Debug("function efl_gfx_filter_data_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_value = default(System.String); execute = default(bool); - try { - ((IInternalConcrete)wrapper).GetFilterData( name, out _out_value, out execute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((IInternalConcrete)wrapper).GetFilterData(name, out _out_value, out execute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + value = _out_value; - } else { - efl_gfx_filter_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, out value, out execute); + + } + else + { + efl_gfx_filter_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, out value, out execute); + } } - } - private static efl_gfx_filter_data_get_delegate efl_gfx_filter_data_get_static_delegate; + private static efl_gfx_filter_data_get_delegate efl_gfx_filter_data_get_static_delegate; - private delegate void efl_gfx_filter_data_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); + + private delegate void efl_gfx_filter_data_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); + + public delegate void efl_gfx_filter_data_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); - public delegate void efl_gfx_filter_data_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_data_set"); - private static void filter_data_set(System.IntPtr obj, System.IntPtr pd, System.String name, System.String value, bool execute) - { - Eina.Log.Debug("function efl_gfx_filter_data_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInternalConcrete)wrapper).SetFilterData( name, value, execute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value, execute); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_data_set"); + + private static void filter_data_set(System.IntPtr obj, System.IntPtr pd, System.String name, System.String value, bool execute) + { + Eina.Log.Debug("function efl_gfx_filter_data_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInternalConcrete)wrapper).SetFilterData(name, value, execute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value, execute); + } } - } - private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate; + + private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } } -namespace Efl { namespace Gfx { +} + +} + +} + +namespace Efl { + +namespace Gfx { + /// 32 bit color data structure [StructLayout(LayoutKind.Sequential)] public struct Color32 @@ -820,10 +1134,10 @@ public struct Color32 public byte A; ///Constructor for Color32. public Color32( - byte R=default(byte), - byte G=default(byte), - byte B=default(byte), - byte A=default(byte) ) + byte R = default(byte), + byte G = default(byte), + byte B = default(byte), + byte A = default(byte) ) { this.R = R; this.G = G; @@ -875,8 +1189,16 @@ public struct Color32 } -} } -namespace Efl { namespace Canvas { namespace Filter { +} + +} + +namespace Efl { + +namespace Canvas { + +namespace Filter { + /// Filter state name structure [StructLayout(LayoutKind.Sequential)] public struct StateName @@ -887,8 +1209,8 @@ public struct StateName public double Value; ///Constructor for StateName. public StateName( - System.String Name=default(System.String), - double Value=default(double) ) + System.String Name = default(System.String), + double Value = default(double) ) { this.Name = Name; this.Value = Value; @@ -930,8 +1252,18 @@ public struct StateName } -} } } -namespace Efl { namespace Canvas { namespace Filter { +} + +} + +} + +namespace Efl { + +namespace Canvas { + +namespace Filter { + /// Filter state text structure [StructLayout(LayoutKind.Sequential)] public struct StateText @@ -946,10 +1278,10 @@ public struct StateText public Efl.Gfx.Color32 Glow2; ///Constructor for StateText. public StateText( - Efl.Gfx.Color32 Outline=default(Efl.Gfx.Color32), - Efl.Gfx.Color32 Shadow=default(Efl.Gfx.Color32), - Efl.Gfx.Color32 Glow=default(Efl.Gfx.Color32), - Efl.Gfx.Color32 Glow2=default(Efl.Gfx.Color32) ) + Efl.Gfx.Color32 Outline = default(Efl.Gfx.Color32), + Efl.Gfx.Color32 Shadow = default(Efl.Gfx.Color32), + Efl.Gfx.Color32 Glow = default(Efl.Gfx.Color32), + Efl.Gfx.Color32 Glow2 = default(Efl.Gfx.Color32) ) { this.Outline = Outline; this.Shadow = Shadow; @@ -1001,8 +1333,18 @@ public struct StateText } -} } } -namespace Efl { namespace Canvas { namespace Filter { +} + +} + +} + +namespace Efl { + +namespace Canvas { + +namespace Filter { + /// Internal structure representing the state of a Gfx Filter [StructLayout(LayoutKind.Sequential)] public struct State @@ -1025,14 +1367,14 @@ public struct State public double Pos; ///Constructor for State. public State( - Efl.Canvas.Filter.StateText Text=default(Efl.Canvas.Filter.StateText), - Efl.Gfx.Color32 Color=default(Efl.Gfx.Color32), - Efl.Canvas.Filter.StateName Cur=default(Efl.Canvas.Filter.StateName), - Efl.Canvas.Filter.StateName Next=default(Efl.Canvas.Filter.StateName), - int W=default(int), - int H=default(int), - double Scale=default(double), - double Pos=default(double) ) + Efl.Canvas.Filter.StateText Text = default(Efl.Canvas.Filter.StateText), + Efl.Gfx.Color32 Color = default(Efl.Gfx.Color32), + Efl.Canvas.Filter.StateName Cur = default(Efl.Canvas.Filter.StateName), + Efl.Canvas.Filter.StateName Next = default(Efl.Canvas.Filter.StateName), + int W = default(int), + int H = default(int), + double Scale = default(double), + double Pos = default(double) ) { this.Text = Text; this.Color = Color; @@ -1104,4 +1446,9 @@ public struct State } -} } } +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture.eo.cs index b4a4153..081d310 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture.eo.cs @@ -3,36 +3,49 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// EFL Gesture abstract class -[GestureNativeInherit] +[Efl.Canvas.Gesture.NativeMethods] public abstract class Gesture : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Gesture)) - return Efl.Canvas.GestureNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Gesture)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_gesture_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Gesture(Efl.Object parent= null - ) : - base(efl_canvas_gesture_class_get(), typeof(Gesture), parent) + ) : base(efl_canvas_gesture_class_get(), typeof(Gesture), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Gesture(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class GestureRealized : Gesture { @@ -40,35 +53,46 @@ public abstract class Gesture : Efl.Object, Efl.Eo.IWrapper { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Gesture(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Gesture(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) { - var other = obj as Efl.Object; + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) + { + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// This property holds the type of the gesture. /// gesture type - virtual public Efl.EventDescription GetType() { - var _ret_var = Efl.Canvas.GestureNativeInherit.efl_gesture_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + virtual public Efl.EventDescription GetGestureType() { + var _ret_var = Efl.Canvas.Gesture.NativeMethods.efl_gesture_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); @@ -77,214 +101,309 @@ public abstract class Gesture : Efl.Object, Efl.Eo.IWrapper /// This property holds the current state of the gesture. /// gesture state virtual public Efl.Canvas.GestureState GetState() { - var _ret_var = Efl.Canvas.GestureNativeInherit.efl_gesture_state_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Gesture.NativeMethods.efl_gesture_state_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This property holds the current state of the gesture. /// gesture state - /// - virtual public void SetState( Efl.Canvas.GestureState state) { - Efl.Canvas.GestureNativeInherit.efl_gesture_state_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), state); + virtual public void SetState(Efl.Canvas.GestureState state) { + Efl.Canvas.Gesture.NativeMethods.efl_gesture_state_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),state); Eina.Error.RaiseIfUnhandledException(); } /// This property holds the hotspot of the current gesture. /// hotspot co-ordinate virtual public Eina.Vector2 GetHotspot() { - var _ret_var = Efl.Canvas.GestureNativeInherit.efl_gesture_hotspot_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Gesture.NativeMethods.efl_gesture_hotspot_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This property holds the hotspot of the current gesture. /// hotspot co-ordinate - /// - virtual public void SetHotspot( Eina.Vector2 hotspot) { + virtual public void SetHotspot(Eina.Vector2 hotspot) { Eina.Vector2.NativeStruct _in_hotspot = hotspot; - Efl.Canvas.GestureNativeInherit.efl_gesture_hotspot_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_hotspot); + Efl.Canvas.Gesture.NativeMethods.efl_gesture_hotspot_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_hotspot); Eina.Error.RaiseIfUnhandledException(); } /// This property holds the type of the gesture. /// gesture type - public Efl.EventDescription Type { - get { return GetType(); } + public Efl.EventDescription GestureType { + get { return GetGestureType(); } } /// This property holds the current state of the gesture. /// gesture state public Efl.Canvas.GestureState State { get { return GetState(); } - set { SetState( value); } + set { SetState(value); } } /// This property holds the hotspot of the current gesture. /// hotspot co-ordinate public Eina.Vector2 Hotspot { get { return GetHotspot(); } - set { SetHotspot( value); } + set { SetHotspot(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Gesture.efl_canvas_gesture_class_get(); } -} -public class GestureNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_gesture_type_get_static_delegate == null) - efl_gesture_type_get_static_delegate = new efl_gesture_type_get_delegate(type_get); - if (methods.FirstOrDefault(m => m.Name == "GetType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_type_get_static_delegate)}); - if (efl_gesture_state_get_static_delegate == null) - efl_gesture_state_get_static_delegate = new efl_gesture_state_get_delegate(state_get); - if (methods.FirstOrDefault(m => m.Name == "GetState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_state_get_static_delegate)}); - if (efl_gesture_state_set_static_delegate == null) - efl_gesture_state_set_static_delegate = new efl_gesture_state_set_delegate(state_set); - if (methods.FirstOrDefault(m => m.Name == "SetState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_state_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_state_set_static_delegate)}); - if (efl_gesture_hotspot_get_static_delegate == null) - efl_gesture_hotspot_get_static_delegate = new efl_gesture_hotspot_get_delegate(hotspot_get); - if (methods.FirstOrDefault(m => m.Name == "GetHotspot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_hotspot_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_hotspot_get_static_delegate)}); - if (efl_gesture_hotspot_set_static_delegate == null) - efl_gesture_hotspot_set_static_delegate = new efl_gesture_hotspot_set_delegate(hotspot_set); - if (methods.FirstOrDefault(m => m.Name == "SetHotspot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_hotspot_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_hotspot_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Gesture.efl_canvas_gesture_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Canvas.Gesture.efl_canvas_gesture_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_gesture_type_get_static_delegate == null) + { + efl_gesture_type_get_static_delegate = new efl_gesture_type_get_delegate(type_get); + } - private delegate System.IntPtr efl_gesture_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetGestureType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_type_get_static_delegate) }); + } + if (efl_gesture_state_get_static_delegate == null) + { + efl_gesture_state_get_static_delegate = new efl_gesture_state_get_delegate(state_get); + } - public delegate System.IntPtr efl_gesture_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gesture_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_type_get"); - private static System.IntPtr type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gesture_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.EventDescription _ret_var = default(Efl.EventDescription); - try { - _ret_var = ((Gesture)wrapper).GetType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_state_get_static_delegate) }); } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_gesture_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_gesture_state_set_static_delegate == null) + { + efl_gesture_state_set_static_delegate = new efl_gesture_state_set_delegate(state_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_state_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_state_set_static_delegate) }); + } + + if (efl_gesture_hotspot_get_static_delegate == null) + { + efl_gesture_hotspot_get_static_delegate = new efl_gesture_hotspot_get_delegate(hotspot_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetHotspot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_hotspot_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_hotspot_get_static_delegate) }); + } + + if (efl_gesture_hotspot_set_static_delegate == null) + { + efl_gesture_hotspot_set_static_delegate = new efl_gesture_hotspot_set_delegate(hotspot_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetHotspot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_hotspot_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_hotspot_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Gesture.efl_canvas_gesture_class_get(); } - } - private static efl_gesture_type_get_delegate efl_gesture_type_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate Efl.Canvas.GestureState efl_gesture_state_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_gesture_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_gesture_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gesture_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_type_get"); + + private static System.IntPtr type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gesture_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.EventDescription _ret_var = default(Efl.EventDescription); + try + { + _ret_var = ((Gesture)wrapper).GetGestureType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - public delegate Efl.Canvas.GestureState efl_gesture_state_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gesture_state_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_state_get"); - private static Efl.Canvas.GestureState state_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gesture_state_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.GestureState _ret_var = default(Efl.Canvas.GestureState); - try { - _ret_var = ((Gesture)wrapper).GetState(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gesture_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gesture_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gesture_state_get_delegate efl_gesture_state_get_static_delegate; + private static efl_gesture_type_get_delegate efl_gesture_type_get_static_delegate; - private delegate void efl_gesture_state_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.GestureState state); + + private delegate Efl.Canvas.GestureState efl_gesture_state_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Canvas.GestureState efl_gesture_state_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gesture_state_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_state_get"); + + private static Efl.Canvas.GestureState state_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gesture_state_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.GestureState _ret_var = default(Efl.Canvas.GestureState); + try + { + _ret_var = ((Gesture)wrapper).GetState(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_gesture_state_set_api_delegate(System.IntPtr obj, Efl.Canvas.GestureState state); - public static Efl.Eo.FunctionWrapper efl_gesture_state_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_state_set"); - private static void state_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.GestureState state) - { - Eina.Log.Debug("function efl_gesture_state_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Gesture)wrapper).SetState( state); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gesture_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state); + else + { + return efl_gesture_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gesture_state_set_delegate efl_gesture_state_set_static_delegate; + private static efl_gesture_state_get_delegate efl_gesture_state_get_static_delegate; - private delegate Eina.Vector2.NativeStruct efl_gesture_hotspot_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gesture_state_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.GestureState state); + + public delegate void efl_gesture_state_set_api_delegate(System.IntPtr obj, Efl.Canvas.GestureState state); - public delegate Eina.Vector2.NativeStruct efl_gesture_hotspot_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gesture_hotspot_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_hotspot_get"); - private static Eina.Vector2.NativeStruct hotspot_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gesture_hotspot_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Vector2 _ret_var = default(Eina.Vector2); - try { - _ret_var = ((Gesture)wrapper).GetHotspot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gesture_state_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_state_set"); + + private static void state_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.GestureState state) + { + Eina.Log.Debug("function efl_gesture_state_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Gesture)wrapper).SetState(state); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gesture_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state); } + } + + private static efl_gesture_state_set_delegate efl_gesture_state_set_static_delegate; + + + private delegate Eina.Vector2.NativeStruct efl_gesture_hotspot_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Vector2.NativeStruct efl_gesture_hotspot_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gesture_hotspot_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_hotspot_get"); + + private static Eina.Vector2.NativeStruct hotspot_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gesture_hotspot_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Vector2 _ret_var = default(Eina.Vector2); + try + { + _ret_var = ((Gesture)wrapper).GetHotspot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gesture_hotspot_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gesture_hotspot_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gesture_hotspot_get_delegate efl_gesture_hotspot_get_static_delegate; + private static efl_gesture_hotspot_get_delegate efl_gesture_hotspot_get_static_delegate; - private delegate void efl_gesture_hotspot_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Vector2.NativeStruct hotspot); + + private delegate void efl_gesture_hotspot_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Vector2.NativeStruct hotspot); + + public delegate void efl_gesture_hotspot_set_api_delegate(System.IntPtr obj, Eina.Vector2.NativeStruct hotspot); - public delegate void efl_gesture_hotspot_set_api_delegate(System.IntPtr obj, Eina.Vector2.NativeStruct hotspot); - public static Efl.Eo.FunctionWrapper efl_gesture_hotspot_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_hotspot_set"); - private static void hotspot_set(System.IntPtr obj, System.IntPtr pd, Eina.Vector2.NativeStruct hotspot) - { - Eina.Log.Debug("function efl_gesture_hotspot_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Vector2 _in_hotspot = hotspot; + public static Efl.Eo.FunctionWrapper efl_gesture_hotspot_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_hotspot_set"); + + private static void hotspot_set(System.IntPtr obj, System.IntPtr pd, Eina.Vector2.NativeStruct hotspot) + { + Eina.Log.Debug("function efl_gesture_hotspot_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Vector2 _in_hotspot = hotspot; - try { - ((Gesture)wrapper).SetHotspot( _in_hotspot); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((Gesture)wrapper).SetHotspot(_in_hotspot); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gesture_hotspot_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hotspot); } - } else { - efl_gesture_hotspot_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hotspot); } - } - private static efl_gesture_hotspot_set_delegate efl_gesture_hotspot_set_static_delegate; + + private static efl_gesture_hotspot_set_delegate efl_gesture_hotspot_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_long_tap.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_long_tap.eo.cs index ddc6366..43a7ad5 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_long_tap.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_long_tap.eo.cs @@ -3,133 +3,175 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + ///Event argument wrapper for event . public class GestureLongTapGestureLongTapEvt_Args : EventArgs { ///Actual event payload. public Efl.Canvas.Gesture arg { get; set; } } /// EFL Gesture Long Tap class -[GestureLongTapNativeInherit] +[Efl.Canvas.GestureLongTap.NativeMethods] public class GestureLongTap : Efl.Canvas.Gesture, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GestureLongTap)) - return Efl.Canvas.GestureLongTapNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GestureLongTap)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_gesture_long_tap_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public GestureLongTap(Efl.Object parent= null - ) : - base(efl_canvas_gesture_long_tap_class_get(), typeof(GestureLongTap), parent) + ) : base(efl_canvas_gesture_long_tap_class_get(), typeof(GestureLongTap), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GestureLongTap(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GestureLongTap(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GestureLongTap(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object GestureLongTapEvtKey = new object(); + /// Event for tap gesture public event EventHandler GestureLongTapEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.GestureLongTapGestureLongTapEvt_Args args = new Efl.Canvas.GestureLongTapGestureLongTapEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Canvas.Gesture); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_GESTURE_LONG_TAP"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_GestureLongTapEvt_delegate)) { - eventHandlers.AddHandler(GestureLongTapEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_GESTURE_LONG_TAP"; - if (RemoveNativeEventHandler(key, this.evt_GestureLongTapEvt_delegate)) { - eventHandlers.RemoveHandler(GestureLongTapEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event GestureLongTapEvt. - public void On_GestureLongTapEvt(Efl.Canvas.GestureLongTapGestureLongTapEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[GestureLongTapEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_GestureLongTapEvt_delegate; - private void on_GestureLongTapEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnGestureLongTapEvt(Efl.Canvas.GestureLongTapGestureLongTapEvt_Args e) { - Efl.Canvas.GestureLongTapGestureLongTapEvt_Args args = new Efl.Canvas.GestureLongTapGestureLongTapEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Canvas.Gesture); - try { - On_GestureLongTapEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_GESTURE_LONG_TAP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_GestureLongTapEvt_delegate = new Efl.EventCb(on_GestureLongTapEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } private static IntPtr GetEflClassStatic() { return Efl.Canvas.GestureLongTap.efl_canvas_gesture_long_tap_class_get(); } -} -public class GestureLongTapNativeInherit : Efl.Canvas.GestureNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.GestureLongTap.efl_canvas_gesture_long_tap_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Gesture.NativeMethods { - return Efl.Canvas.GestureLongTap.efl_canvas_gesture_long_tap_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.GestureLongTap.efl_canvas_gesture_long_tap_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_manager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_manager.eo.cs index 36545f4..1c973b9 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_manager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_manager.eo.cs @@ -3,82 +3,105 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// EFL Gesture Manager class -[GestureManagerNativeInherit] +[Efl.Canvas.GestureManager.NativeMethods] public class GestureManager : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GestureManager)) - return Efl.Canvas.GestureManagerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GestureManager)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_gesture_manager_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public GestureManager(Efl.Object parent= null - ) : - base(efl_canvas_gesture_manager_class_get(), typeof(GestureManager), parent) + ) : base(efl_canvas_gesture_manager_class_get(), typeof(GestureManager), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GestureManager(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GestureManager(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GestureManager(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// This property holds the config value for the recognizer /// propery name /// value of the property - virtual public Eina.Value GetConfig( System.String name) { - var _ret_var = Efl.Canvas.GestureManagerNativeInherit.efl_gesture_manager_config_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Eina.Value GetConfig(System.String name) { + var _ret_var = Efl.Canvas.GestureManager.NativeMethods.efl_gesture_manager_config_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This property holds the config value for the recognizer /// propery name /// value of the property - /// - virtual public void SetConfig( System.String name, Eina.Value value) { - Efl.Canvas.GestureManagerNativeInherit.efl_gesture_manager_config_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, value); + virtual public void SetConfig(System.String name, Eina.Value value) { + Efl.Canvas.GestureManager.NativeMethods.efl_gesture_manager_config_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, value); Eina.Error.RaiseIfUnhandledException(); } /// This function is called to register a new Efl.Canvas.Gesture_Recognizer /// The gesture recognizer object /// Returns the Efl.Event_Description type the recognizer supports - virtual public Efl.EventDescription RecognizerRegister( Efl.Canvas.GestureRecognizer recognizer) { - var _ret_var = Efl.Canvas.GestureManagerNativeInherit.efl_gesture_manager_recognizer_register_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), recognizer); + virtual public Efl.EventDescription RecognizerRegister(Efl.Canvas.GestureRecognizer recognizer) { + var _ret_var = Efl.Canvas.GestureManager.NativeMethods.efl_gesture_manager_recognizer_register_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),recognizer); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); @@ -86,146 +109,225 @@ public class GestureManager : Efl.Object, Efl.Eo.IWrapper } /// This function is called to unregister a Efl.Canvas.Gesture_Recognizer /// The gesture recognizer object - /// - virtual public void RecognizerUnregister( Efl.Canvas.GestureRecognizer recognizer) { - Efl.Canvas.GestureManagerNativeInherit.efl_gesture_manager_recognizer_unregister_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), recognizer); + virtual public void RecognizerUnregister(Efl.Canvas.GestureRecognizer recognizer) { + Efl.Canvas.GestureManager.NativeMethods.efl_gesture_manager_recognizer_unregister_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),recognizer); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Canvas.GestureManager.efl_canvas_gesture_manager_class_get(); } -} -public class GestureManagerNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_gesture_manager_config_get_static_delegate == null) - efl_gesture_manager_config_get_static_delegate = new efl_gesture_manager_config_get_delegate(config_get); - if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_manager_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_manager_config_get_static_delegate)}); - if (efl_gesture_manager_config_set_static_delegate == null) - efl_gesture_manager_config_set_static_delegate = new efl_gesture_manager_config_set_delegate(config_set); - if (methods.FirstOrDefault(m => m.Name == "SetConfig") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_manager_config_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_manager_config_set_static_delegate)}); - if (efl_gesture_manager_recognizer_register_static_delegate == null) - efl_gesture_manager_recognizer_register_static_delegate = new efl_gesture_manager_recognizer_register_delegate(recognizer_register); - if (methods.FirstOrDefault(m => m.Name == "RecognizerRegister") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_manager_recognizer_register"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_manager_recognizer_register_static_delegate)}); - if (efl_gesture_manager_recognizer_unregister_static_delegate == null) - efl_gesture_manager_recognizer_unregister_static_delegate = new efl_gesture_manager_recognizer_unregister_delegate(recognizer_unregister); - if (methods.FirstOrDefault(m => m.Name == "RecognizerUnregister") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_manager_recognizer_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_manager_recognizer_unregister_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.GestureManager.efl_canvas_gesture_manager_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Canvas.GestureManager.efl_canvas_gesture_manager_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_gesture_manager_config_get_static_delegate == null) + { + efl_gesture_manager_config_get_static_delegate = new efl_gesture_manager_config_get_delegate(config_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] private delegate Eina.Value efl_gesture_manager_config_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_manager_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_manager_config_get_static_delegate) }); + } + if (efl_gesture_manager_config_set_static_delegate == null) + { + efl_gesture_manager_config_set_static_delegate = new efl_gesture_manager_config_set_delegate(config_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] public delegate Eina.Value efl_gesture_manager_config_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_gesture_manager_config_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_manager_config_get"); - private static Eina.Value config_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_gesture_manager_config_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Value _ret_var = default(Eina.Value); - try { - _ret_var = ((GestureManager)wrapper).GetConfig( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetConfig") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_manager_config_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_manager_config_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gesture_manager_config_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + + if (efl_gesture_manager_recognizer_register_static_delegate == null) + { + efl_gesture_manager_recognizer_register_static_delegate = new efl_gesture_manager_recognizer_register_delegate(recognizer_register); + } + + if (methods.FirstOrDefault(m => m.Name == "RecognizerRegister") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_manager_recognizer_register"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_manager_recognizer_register_static_delegate) }); + } + + if (efl_gesture_manager_recognizer_unregister_static_delegate == null) + { + efl_gesture_manager_recognizer_unregister_static_delegate = new efl_gesture_manager_recognizer_unregister_delegate(recognizer_unregister); + } + + if (methods.FirstOrDefault(m => m.Name == "RecognizerUnregister") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_manager_recognizer_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_manager_recognizer_unregister_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.GestureManager.efl_canvas_gesture_manager_class_get(); } - } - private static efl_gesture_manager_config_get_delegate efl_gesture_manager_config_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_gesture_manager_config_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + private delegate Eina.Value efl_gesture_manager_config_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + public delegate Eina.Value efl_gesture_manager_config_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public delegate void efl_gesture_manager_config_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); - public static Efl.Eo.FunctionWrapper efl_gesture_manager_config_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_manager_config_set"); - private static void config_set(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.Value value) - { - Eina.Log.Debug("function efl_gesture_manager_config_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((GestureManager)wrapper).SetConfig( name, value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gesture_manager_config_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value); + public static Efl.Eo.FunctionWrapper efl_gesture_manager_config_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_manager_config_get"); + + private static Eina.Value config_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_gesture_manager_config_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = ((GestureManager)wrapper).GetConfig(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gesture_manager_config_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } } - } - private static efl_gesture_manager_config_set_delegate efl_gesture_manager_config_set_static_delegate; + private static efl_gesture_manager_config_get_delegate efl_gesture_manager_config_get_static_delegate; - private delegate System.IntPtr efl_gesture_manager_recognizer_register_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.GestureRecognizer recognizer); + + private delegate void efl_gesture_manager_config_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + + public delegate void efl_gesture_manager_config_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); - public delegate System.IntPtr efl_gesture_manager_recognizer_register_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.GestureRecognizer recognizer); - public static Efl.Eo.FunctionWrapper efl_gesture_manager_recognizer_register_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_manager_recognizer_register"); - private static System.IntPtr recognizer_register(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.GestureRecognizer recognizer) - { - Eina.Log.Debug("function efl_gesture_manager_recognizer_register was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.EventDescription _ret_var = default(Efl.EventDescription); - try { - _ret_var = ((GestureManager)wrapper).RecognizerRegister( recognizer); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gesture_manager_config_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_manager_config_set"); + + private static void config_set(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.Value value) + { + Eina.Log.Debug("function efl_gesture_manager_config_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((GestureManager)wrapper).SetConfig(name, value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gesture_manager_config_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value); + } + } + + private static efl_gesture_manager_config_set_delegate efl_gesture_manager_config_set_static_delegate; + + + private delegate System.IntPtr efl_gesture_manager_recognizer_register_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.GestureRecognizer recognizer); + + + public delegate System.IntPtr efl_gesture_manager_recognizer_register_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.GestureRecognizer recognizer); + + public static Efl.Eo.FunctionWrapper efl_gesture_manager_recognizer_register_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_manager_recognizer_register"); + + private static System.IntPtr recognizer_register(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.GestureRecognizer recognizer) + { + Eina.Log.Debug("function efl_gesture_manager_recognizer_register was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.EventDescription _ret_var = default(Efl.EventDescription); + try + { + _ret_var = ((GestureManager)wrapper).RecognizerRegister(recognizer); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_gesture_manager_recognizer_register_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recognizer); + + } + else + { + return efl_gesture_manager_recognizer_register_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recognizer); + } } - } - private static efl_gesture_manager_recognizer_register_delegate efl_gesture_manager_recognizer_register_static_delegate; + private static efl_gesture_manager_recognizer_register_delegate efl_gesture_manager_recognizer_register_static_delegate; - private delegate void efl_gesture_manager_recognizer_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.GestureRecognizer recognizer); + + private delegate void efl_gesture_manager_recognizer_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.GestureRecognizer recognizer); + + public delegate void efl_gesture_manager_recognizer_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.GestureRecognizer recognizer); - public delegate void efl_gesture_manager_recognizer_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.GestureRecognizer recognizer); - public static Efl.Eo.FunctionWrapper efl_gesture_manager_recognizer_unregister_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_manager_recognizer_unregister"); - private static void recognizer_unregister(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.GestureRecognizer recognizer) - { - Eina.Log.Debug("function efl_gesture_manager_recognizer_unregister was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((GestureManager)wrapper).RecognizerUnregister( recognizer); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gesture_manager_recognizer_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recognizer); + public static Efl.Eo.FunctionWrapper efl_gesture_manager_recognizer_unregister_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_manager_recognizer_unregister"); + + private static void recognizer_unregister(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.GestureRecognizer recognizer) + { + Eina.Log.Debug("function efl_gesture_manager_recognizer_unregister was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((GestureManager)wrapper).RecognizerUnregister(recognizer); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gesture_manager_recognizer_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recognizer); + } } - } - private static efl_gesture_manager_recognizer_unregister_delegate efl_gesture_manager_recognizer_unregister_static_delegate; + + private static efl_gesture_manager_recognizer_unregister_delegate efl_gesture_manager_recognizer_unregister_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer.eo.cs index b945ff2..2410e8d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer.eo.cs @@ -3,36 +3,49 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// EFL Gesture Recognizer abstract class -[GestureRecognizerNativeInherit] +[Efl.Canvas.GestureRecognizer.NativeMethods] public abstract class GestureRecognizer : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GestureRecognizer)) - return Efl.Canvas.GestureRecognizerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GestureRecognizer)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas )] internal static extern System.IntPtr efl_canvas_gesture_recognizer_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public GestureRecognizer(Efl.Object parent= null - ) : - base(efl_canvas_gesture_recognizer_class_get(), typeof(GestureRecognizer), parent) + ) : base(efl_canvas_gesture_recognizer_class_get(), typeof(GestureRecognizer), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GestureRecognizer(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class GestureRecognizerRealized : GestureRecognizer { @@ -40,44 +53,55 @@ public abstract class GestureRecognizer : Efl.Object, Efl.Eo.IWrapper { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GestureRecognizer(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GestureRecognizer(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// This property holds the config value for the recognizer /// propery name /// value of the property - virtual public Eina.Value GetConfig( System.String name) { - var _ret_var = Efl.Canvas.GestureRecognizerNativeInherit.efl_gesture_recognizer_config_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Eina.Value GetConfig(System.String name) { + var _ret_var = Efl.Canvas.GestureRecognizer.NativeMethods.efl_gesture_recognizer_config_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This function is called to create a new Efl.Canvas.Gesture object for the given target /// The target widget /// Returns the Efl.Canvas.Gesture event object - virtual public Efl.Canvas.Gesture Create( Efl.Object target) { - var _ret_var = Efl.Canvas.GestureRecognizerNativeInherit.efl_gesture_recognizer_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), target); + virtual public Efl.Canvas.Gesture Create(Efl.Object target) { + var _ret_var = Efl.Canvas.GestureRecognizer.NativeMethods.efl_gesture_recognizer_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),target); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -87,154 +111,233 @@ public abstract class GestureRecognizer : Efl.Object, Efl.Eo.IWrapper /// The watched object /// The pointer event /// Returns the Efl.Canvas.Gesture event object - virtual public Efl.Canvas.GestureRecognizerResult Recognize( Efl.Canvas.Gesture gesture, Efl.Object watched, Efl.Canvas.GestureTouch kw_event) { - var _ret_var = Efl.Canvas.GestureRecognizerNativeInherit.efl_gesture_recognizer_recognize_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), gesture, watched, kw_event); + virtual public Efl.Canvas.GestureRecognizerResult Recognize(Efl.Canvas.Gesture gesture, Efl.Object watched, Efl.Canvas.GestureTouch kw_event) { + var _ret_var = Efl.Canvas.GestureRecognizer.NativeMethods.efl_gesture_recognizer_recognize_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),gesture, watched, kw_event); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This function is called by the framework to reset a given gesture. /// The gesture object - /// - virtual public void Reset( Efl.Canvas.Gesture gesture) { - Efl.Canvas.GestureRecognizerNativeInherit.efl_gesture_recognizer_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), gesture); + virtual public void Reset(Efl.Canvas.Gesture gesture) { + Efl.Canvas.GestureRecognizer.NativeMethods.efl_gesture_recognizer_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),gesture); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Canvas.GestureRecognizer.efl_canvas_gesture_recognizer_class_get(); } -} -public class GestureRecognizerNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas ); - 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_gesture_recognizer_config_get_static_delegate == null) - efl_gesture_recognizer_config_get_static_delegate = new efl_gesture_recognizer_config_get_delegate(config_get); - if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_recognizer_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_recognizer_config_get_static_delegate)}); - if (efl_gesture_recognizer_create_static_delegate == null) - efl_gesture_recognizer_create_static_delegate = new efl_gesture_recognizer_create_delegate(create); - if (methods.FirstOrDefault(m => m.Name == "Create") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_recognizer_create"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_recognizer_create_static_delegate)}); - if (efl_gesture_recognizer_recognize_static_delegate == null) - efl_gesture_recognizer_recognize_static_delegate = new efl_gesture_recognizer_recognize_delegate(recognize); - if (methods.FirstOrDefault(m => m.Name == "Recognize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_recognizer_recognize"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_recognizer_recognize_static_delegate)}); - if (efl_gesture_recognizer_reset_static_delegate == null) - efl_gesture_recognizer_reset_static_delegate = new efl_gesture_recognizer_reset_delegate(reset); - if (methods.FirstOrDefault(m => m.Name == "Reset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_recognizer_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_recognizer_reset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Canvas.GestureRecognizer.efl_canvas_gesture_recognizer_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Canvas.GestureRecognizer.efl_canvas_gesture_recognizer_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas ); + /// 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_gesture_recognizer_config_get_static_delegate == null) + { + efl_gesture_recognizer_config_get_static_delegate = new efl_gesture_recognizer_config_get_delegate(config_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] private delegate Eina.Value efl_gesture_recognizer_config_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_recognizer_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_recognizer_config_get_static_delegate) }); + } + if (efl_gesture_recognizer_create_static_delegate == null) + { + efl_gesture_recognizer_create_static_delegate = new efl_gesture_recognizer_create_delegate(create); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] public delegate Eina.Value efl_gesture_recognizer_config_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_gesture_recognizer_config_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_recognizer_config_get"); - private static Eina.Value config_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_gesture_recognizer_config_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Value _ret_var = default(Eina.Value); - try { - _ret_var = ((GestureRecognizer)wrapper).GetConfig( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Create") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_recognizer_create"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_recognizer_create_static_delegate) }); } - return _ret_var; - } else { - return efl_gesture_recognizer_config_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); - } - } - private static efl_gesture_recognizer_config_get_delegate efl_gesture_recognizer_config_get_static_delegate; + if (efl_gesture_recognizer_recognize_static_delegate == null) + { + efl_gesture_recognizer_recognize_static_delegate = new efl_gesture_recognizer_recognize_delegate(recognize); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Gesture efl_gesture_recognizer_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target); + if (methods.FirstOrDefault(m => m.Name == "Recognize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_recognizer_recognize"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_recognizer_recognize_static_delegate) }); + } + if (efl_gesture_recognizer_reset_static_delegate == null) + { + efl_gesture_recognizer_reset_static_delegate = new efl_gesture_recognizer_reset_delegate(reset); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Gesture efl_gesture_recognizer_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target); - public static Efl.Eo.FunctionWrapper efl_gesture_recognizer_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_recognizer_create"); - private static Efl.Canvas.Gesture create(System.IntPtr obj, System.IntPtr pd, Efl.Object target) - { - Eina.Log.Debug("function efl_gesture_recognizer_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Gesture _ret_var = default(Efl.Canvas.Gesture); - try { - _ret_var = ((GestureRecognizer)wrapper).Create( target); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Reset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_recognizer_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_recognizer_reset_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.GestureRecognizer.efl_canvas_gesture_recognizer_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + private delegate Eina.Value efl_gesture_recognizer_config_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + public delegate Eina.Value efl_gesture_recognizer_config_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_gesture_recognizer_config_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_recognizer_config_get"); + + private static Eina.Value config_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_gesture_recognizer_config_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = ((GestureRecognizer)wrapper).GetConfig(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gesture_recognizer_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), target); + + } + else + { + return efl_gesture_recognizer_config_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } } - } - private static efl_gesture_recognizer_create_delegate efl_gesture_recognizer_create_static_delegate; + private static efl_gesture_recognizer_config_get_delegate efl_gesture_recognizer_config_get_static_delegate; - private delegate Efl.Canvas.GestureRecognizerResult efl_gesture_recognizer_recognize_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Gesture gesture, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object watched, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.GestureTouch kw_event); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Gesture efl_gesture_recognizer_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object target); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Gesture efl_gesture_recognizer_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object target); - public delegate Efl.Canvas.GestureRecognizerResult efl_gesture_recognizer_recognize_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Gesture gesture, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object watched, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.GestureTouch kw_event); - public static Efl.Eo.FunctionWrapper efl_gesture_recognizer_recognize_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_recognizer_recognize"); - private static Efl.Canvas.GestureRecognizerResult recognize(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Gesture gesture, Efl.Object watched, Efl.Canvas.GestureTouch kw_event) - { - Eina.Log.Debug("function efl_gesture_recognizer_recognize was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.GestureRecognizerResult _ret_var = default(Efl.Canvas.GestureRecognizerResult); - try { - _ret_var = ((GestureRecognizer)wrapper).Recognize( gesture, watched, kw_event); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gesture_recognizer_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_recognizer_create"); + + private static Efl.Canvas.Gesture create(System.IntPtr obj, System.IntPtr pd, Efl.Object target) + { + Eina.Log.Debug("function efl_gesture_recognizer_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Gesture _ret_var = default(Efl.Canvas.Gesture); + try + { + _ret_var = ((GestureRecognizer)wrapper).Create(target); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gesture_recognizer_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), target); } + } + + private static efl_gesture_recognizer_create_delegate efl_gesture_recognizer_create_static_delegate; + + + private delegate Efl.Canvas.GestureRecognizerResult efl_gesture_recognizer_recognize_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Gesture gesture, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object watched, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.GestureTouch kw_event); + + + public delegate Efl.Canvas.GestureRecognizerResult efl_gesture_recognizer_recognize_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Gesture gesture, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object watched, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.GestureTouch kw_event); + + public static Efl.Eo.FunctionWrapper efl_gesture_recognizer_recognize_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_recognizer_recognize"); + + private static Efl.Canvas.GestureRecognizerResult recognize(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Gesture gesture, Efl.Object watched, Efl.Canvas.GestureTouch kw_event) + { + Eina.Log.Debug("function efl_gesture_recognizer_recognize was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.GestureRecognizerResult _ret_var = default(Efl.Canvas.GestureRecognizerResult); + try + { + _ret_var = ((GestureRecognizer)wrapper).Recognize(gesture, watched, kw_event); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gesture_recognizer_recognize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture, watched, kw_event); + + } + else + { + return efl_gesture_recognizer_recognize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture, watched, kw_event); + } } - } - private static efl_gesture_recognizer_recognize_delegate efl_gesture_recognizer_recognize_static_delegate; + private static efl_gesture_recognizer_recognize_delegate efl_gesture_recognizer_recognize_static_delegate; - private delegate void efl_gesture_recognizer_reset_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Gesture gesture); + + private delegate void efl_gesture_recognizer_reset_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Gesture gesture); + + public delegate void efl_gesture_recognizer_reset_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Gesture gesture); - public delegate void efl_gesture_recognizer_reset_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Gesture gesture); - public static Efl.Eo.FunctionWrapper efl_gesture_recognizer_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_recognizer_reset"); - private static void reset(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Gesture gesture) - { - Eina.Log.Debug("function efl_gesture_recognizer_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((GestureRecognizer)wrapper).Reset( gesture); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gesture_recognizer_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture); + public static Efl.Eo.FunctionWrapper efl_gesture_recognizer_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_recognizer_reset"); + + private static void reset(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Gesture gesture) + { + Eina.Log.Debug("function efl_gesture_recognizer_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((GestureRecognizer)wrapper).Reset(gesture); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gesture_recognizer_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture); + } } - } - private static efl_gesture_recognizer_reset_delegate efl_gesture_recognizer_reset_static_delegate; + + private static efl_gesture_recognizer_reset_delegate efl_gesture_recognizer_reset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_tap.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_tap.eo.cs index 63832fb..b7d1496 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_tap.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_tap.eo.cs @@ -3,133 +3,175 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + ///Event argument wrapper for event . public class GestureTapGestureTapEvt_Args : EventArgs { ///Actual event payload. public Efl.Canvas.Gesture arg { get; set; } } /// EFL Gesture Tap class -[GestureTapNativeInherit] +[Efl.Canvas.GestureTap.NativeMethods] public class GestureTap : Efl.Canvas.Gesture, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GestureTap)) - return Efl.Canvas.GestureTapNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GestureTap)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_gesture_tap_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public GestureTap(Efl.Object parent= null - ) : - base(efl_canvas_gesture_tap_class_get(), typeof(GestureTap), parent) + ) : base(efl_canvas_gesture_tap_class_get(), typeof(GestureTap), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GestureTap(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GestureTap(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GestureTap(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object GestureTapEvtKey = new object(); + /// Event for tap gesture public event EventHandler GestureTapEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.GestureTapGestureTapEvt_Args args = new Efl.Canvas.GestureTapGestureTapEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Canvas.Gesture); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_GESTURE_TAP"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_GestureTapEvt_delegate)) { - eventHandlers.AddHandler(GestureTapEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_GESTURE_TAP"; - if (RemoveNativeEventHandler(key, this.evt_GestureTapEvt_delegate)) { - eventHandlers.RemoveHandler(GestureTapEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event GestureTapEvt. - public void On_GestureTapEvt(Efl.Canvas.GestureTapGestureTapEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[GestureTapEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_GestureTapEvt_delegate; - private void on_GestureTapEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnGestureTapEvt(Efl.Canvas.GestureTapGestureTapEvt_Args e) { - Efl.Canvas.GestureTapGestureTapEvt_Args args = new Efl.Canvas.GestureTapGestureTapEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Canvas.Gesture); - try { - On_GestureTapEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_GESTURE_TAP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_GestureTapEvt_delegate = new Efl.EventCb(on_GestureTapEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } private static IntPtr GetEflClassStatic() { return Efl.Canvas.GestureTap.efl_canvas_gesture_tap_class_get(); } -} -public class GestureTapNativeInherit : Efl.Canvas.GestureNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.GestureTap.efl_canvas_gesture_tap_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Gesture.NativeMethods { - return Efl.Canvas.GestureTap.efl_canvas_gesture_tap_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.GestureTap.efl_canvas_gesture_tap_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_touch.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_touch.eo.cs index b1107ca..4f6f05b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_touch.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_touch.eo.cs @@ -3,79 +3,103 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// EFL Gesture Touch class -[GestureTouchNativeInherit] +[Efl.Canvas.GestureTouch.NativeMethods] public class GestureTouch : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GestureTouch)) - return Efl.Canvas.GestureTouchNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GestureTouch)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_gesture_touch_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public GestureTouch(Efl.Object parent= null - ) : - base(efl_canvas_gesture_touch_class_get(), typeof(GestureTouch), parent) + ) : base(efl_canvas_gesture_touch_class_get(), typeof(GestureTouch), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GestureTouch(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GestureTouch(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GestureTouch(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Returns the first touch point. /// The start position. virtual public Eina.Vector2 GetStartPoint() { - var _ret_var = Efl.Canvas.GestureTouchNativeInherit.efl_gesture_touch_start_point_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.GestureTouch.NativeMethods.efl_gesture_touch_start_point_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This property tells if the event is multi touch. /// returns true if its a multi touch virtual public bool GetMultiTouch() { - var _ret_var = Efl.Canvas.GestureTouchNativeInherit.efl_gesture_touch_multi_touch_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.GestureTouch.NativeMethods.efl_gesture_touch_multi_touch_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This property holds the state of the touch event. /// touch event state virtual public Efl.Canvas.GestureTouchState GetState() { - var _ret_var = Efl.Canvas.GestureTouchNativeInherit.efl_gesture_touch_state_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.GestureTouch.NativeMethods.efl_gesture_touch_state_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -84,25 +108,24 @@ public class GestureTouch : Efl.Object, Efl.Eo.IWrapper /// Position of the event /// The timestamp of the event /// action of the event - /// - virtual public void PointRecord( int tool, Eina.Vector2 pos, double timestamp, Efl.Pointer.Action action) { + virtual public void PointRecord(int tool, Eina.Vector2 pos, double timestamp, Efl.Pointer.Action action) { Eina.Vector2.NativeStruct _in_pos = pos; - Efl.Canvas.GestureTouchNativeInherit.efl_gesture_touch_point_record_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), tool, _in_pos, timestamp, action); + Efl.Canvas.GestureTouch.NativeMethods.efl_gesture_touch_point_record_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),tool, _in_pos, timestamp, action); Eina.Error.RaiseIfUnhandledException(); } /// Compute the distance between the last two events /// The finger id /// The distance vector. - virtual public Eina.Vector2 Delta( int tool) { - var _ret_var = Efl.Canvas.GestureTouchNativeInherit.efl_gesture_touch_delta_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), tool); + virtual public Eina.Vector2 Delta(int tool) { + var _ret_var = Efl.Canvas.GestureTouch.NativeMethods.efl_gesture_touch_delta_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),tool); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Compute the distance between the first touch and the last event. /// The finger id /// The distance vector. - virtual public Eina.Vector2 Distance( int tool) { - var _ret_var = Efl.Canvas.GestureTouchNativeInherit.efl_gesture_touch_distance_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), tool); + virtual public Eina.Vector2 Distance(int tool) { + var _ret_var = Efl.Canvas.GestureTouch.NativeMethods.efl_gesture_touch_distance_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),tool); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -125,197 +148,311 @@ public class GestureTouch : Efl.Object, Efl.Eo.IWrapper { return Efl.Canvas.GestureTouch.efl_canvas_gesture_touch_class_get(); } -} -public class GestureTouchNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_gesture_touch_start_point_get_static_delegate == null) - efl_gesture_touch_start_point_get_static_delegate = new efl_gesture_touch_start_point_get_delegate(start_point_get); - if (methods.FirstOrDefault(m => m.Name == "GetStartPoint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_touch_start_point_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_start_point_get_static_delegate)}); - if (efl_gesture_touch_multi_touch_get_static_delegate == null) - efl_gesture_touch_multi_touch_get_static_delegate = new efl_gesture_touch_multi_touch_get_delegate(multi_touch_get); - if (methods.FirstOrDefault(m => m.Name == "GetMultiTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_touch_multi_touch_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_multi_touch_get_static_delegate)}); - if (efl_gesture_touch_state_get_static_delegate == null) - efl_gesture_touch_state_get_static_delegate = new efl_gesture_touch_state_get_delegate(state_get); - if (methods.FirstOrDefault(m => m.Name == "GetState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_touch_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_state_get_static_delegate)}); - if (efl_gesture_touch_point_record_static_delegate == null) - efl_gesture_touch_point_record_static_delegate = new efl_gesture_touch_point_record_delegate(point_record); - if (methods.FirstOrDefault(m => m.Name == "PointRecord") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_touch_point_record"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_point_record_static_delegate)}); - if (efl_gesture_touch_delta_static_delegate == null) - efl_gesture_touch_delta_static_delegate = new efl_gesture_touch_delta_delegate(delta); - if (methods.FirstOrDefault(m => m.Name == "Delta") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_touch_delta"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_delta_static_delegate)}); - if (efl_gesture_touch_distance_static_delegate == null) - efl_gesture_touch_distance_static_delegate = new efl_gesture_touch_distance_delegate(distance); - if (methods.FirstOrDefault(m => m.Name == "Distance") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gesture_touch_distance"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_distance_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.GestureTouch.efl_canvas_gesture_touch_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Canvas.GestureTouch.efl_canvas_gesture_touch_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_gesture_touch_start_point_get_static_delegate == null) + { + efl_gesture_touch_start_point_get_static_delegate = new efl_gesture_touch_start_point_get_delegate(start_point_get); + } - private delegate Eina.Vector2.NativeStruct efl_gesture_touch_start_point_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetStartPoint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_touch_start_point_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_start_point_get_static_delegate) }); + } + if (efl_gesture_touch_multi_touch_get_static_delegate == null) + { + efl_gesture_touch_multi_touch_get_static_delegate = new efl_gesture_touch_multi_touch_get_delegate(multi_touch_get); + } - public delegate Eina.Vector2.NativeStruct efl_gesture_touch_start_point_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gesture_touch_start_point_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_touch_start_point_get"); - private static Eina.Vector2.NativeStruct start_point_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gesture_touch_start_point_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Vector2 _ret_var = default(Eina.Vector2); - try { - _ret_var = ((GestureTouch)wrapper).GetStartPoint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMultiTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_touch_multi_touch_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_multi_touch_get_static_delegate) }); + } + + if (efl_gesture_touch_state_get_static_delegate == null) + { + efl_gesture_touch_state_get_static_delegate = new efl_gesture_touch_state_get_delegate(state_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_touch_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_state_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gesture_touch_start_point_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gesture_touch_start_point_get_delegate efl_gesture_touch_start_point_get_static_delegate; + if (efl_gesture_touch_point_record_static_delegate == null) + { + efl_gesture_touch_point_record_static_delegate = new efl_gesture_touch_point_record_delegate(point_record); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gesture_touch_multi_touch_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "PointRecord") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_touch_point_record"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_point_record_static_delegate) }); + } + if (efl_gesture_touch_delta_static_delegate == null) + { + efl_gesture_touch_delta_static_delegate = new efl_gesture_touch_delta_delegate(delta); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gesture_touch_multi_touch_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gesture_touch_multi_touch_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_touch_multi_touch_get"); - private static bool multi_touch_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gesture_touch_multi_touch_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((GestureTouch)wrapper).GetMultiTouch(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Delta") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_touch_delta"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_delta_static_delegate) }); + } + + if (efl_gesture_touch_distance_static_delegate == null) + { + efl_gesture_touch_distance_static_delegate = new efl_gesture_touch_distance_delegate(distance); } + + if (methods.FirstOrDefault(m => m.Name == "Distance") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gesture_touch_distance"), func = Marshal.GetFunctionPointerForDelegate(efl_gesture_touch_distance_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.GestureTouch.efl_canvas_gesture_touch_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.Vector2.NativeStruct efl_gesture_touch_start_point_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Vector2.NativeStruct efl_gesture_touch_start_point_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gesture_touch_start_point_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_touch_start_point_get"); + + private static Eina.Vector2.NativeStruct start_point_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gesture_touch_start_point_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Vector2 _ret_var = default(Eina.Vector2); + try + { + _ret_var = ((GestureTouch)wrapper).GetStartPoint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gesture_touch_multi_touch_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gesture_touch_start_point_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gesture_touch_multi_touch_get_delegate efl_gesture_touch_multi_touch_get_static_delegate; + private static efl_gesture_touch_start_point_get_delegate efl_gesture_touch_start_point_get_static_delegate; - private delegate Efl.Canvas.GestureTouchState efl_gesture_touch_state_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gesture_touch_multi_touch_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gesture_touch_multi_touch_get_api_delegate(System.IntPtr obj); - public delegate Efl.Canvas.GestureTouchState efl_gesture_touch_state_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gesture_touch_state_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_touch_state_get"); - private static Efl.Canvas.GestureTouchState state_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gesture_touch_state_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.GestureTouchState _ret_var = default(Efl.Canvas.GestureTouchState); - try { - _ret_var = ((GestureTouch)wrapper).GetState(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gesture_touch_multi_touch_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_touch_multi_touch_get"); + + private static bool multi_touch_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gesture_touch_multi_touch_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GestureTouch)wrapper).GetMultiTouch(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gesture_touch_multi_touch_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_gesture_touch_multi_touch_get_delegate efl_gesture_touch_multi_touch_get_static_delegate; + + + private delegate Efl.Canvas.GestureTouchState efl_gesture_touch_state_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Canvas.GestureTouchState efl_gesture_touch_state_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gesture_touch_state_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_touch_state_get"); + + private static Efl.Canvas.GestureTouchState state_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gesture_touch_state_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.GestureTouchState _ret_var = default(Efl.Canvas.GestureTouchState); + try + { + _ret_var = ((GestureTouch)wrapper).GetState(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gesture_touch_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gesture_touch_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gesture_touch_state_get_delegate efl_gesture_touch_state_get_static_delegate; + private static efl_gesture_touch_state_get_delegate efl_gesture_touch_state_get_static_delegate; - private delegate void efl_gesture_touch_point_record_delegate(System.IntPtr obj, System.IntPtr pd, int tool, Eina.Vector2.NativeStruct pos, double timestamp, Efl.Pointer.Action action); + + private delegate void efl_gesture_touch_point_record_delegate(System.IntPtr obj, System.IntPtr pd, int tool, Eina.Vector2.NativeStruct pos, double timestamp, Efl.Pointer.Action action); + + public delegate void efl_gesture_touch_point_record_api_delegate(System.IntPtr obj, int tool, Eina.Vector2.NativeStruct pos, double timestamp, Efl.Pointer.Action action); - public delegate void efl_gesture_touch_point_record_api_delegate(System.IntPtr obj, int tool, Eina.Vector2.NativeStruct pos, double timestamp, Efl.Pointer.Action action); - public static Efl.Eo.FunctionWrapper efl_gesture_touch_point_record_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_touch_point_record"); - private static void point_record(System.IntPtr obj, System.IntPtr pd, int tool, Eina.Vector2.NativeStruct pos, double timestamp, Efl.Pointer.Action action) - { - Eina.Log.Debug("function efl_gesture_touch_point_record was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Vector2 _in_pos = pos; + public static Efl.Eo.FunctionWrapper efl_gesture_touch_point_record_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_touch_point_record"); + + private static void point_record(System.IntPtr obj, System.IntPtr pd, int tool, Eina.Vector2.NativeStruct pos, double timestamp, Efl.Pointer.Action action) + { + Eina.Log.Debug("function efl_gesture_touch_point_record was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Vector2 _in_pos = pos; - try { - ((GestureTouch)wrapper).PointRecord( tool, _in_pos, timestamp, action); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((GestureTouch)wrapper).PointRecord(tool, _in_pos, timestamp, action); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gesture_touch_point_record_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), tool, pos, timestamp, action); } - } else { - efl_gesture_touch_point_record_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), tool, pos, timestamp, action); } - } - private static efl_gesture_touch_point_record_delegate efl_gesture_touch_point_record_static_delegate; + private static efl_gesture_touch_point_record_delegate efl_gesture_touch_point_record_static_delegate; - private delegate Eina.Vector2.NativeStruct efl_gesture_touch_delta_delegate(System.IntPtr obj, System.IntPtr pd, int tool); + + private delegate Eina.Vector2.NativeStruct efl_gesture_touch_delta_delegate(System.IntPtr obj, System.IntPtr pd, int tool); + + public delegate Eina.Vector2.NativeStruct efl_gesture_touch_delta_api_delegate(System.IntPtr obj, int tool); + + public static Efl.Eo.FunctionWrapper efl_gesture_touch_delta_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_touch_delta"); + + private static Eina.Vector2.NativeStruct delta(System.IntPtr obj, System.IntPtr pd, int tool) + { + Eina.Log.Debug("function efl_gesture_touch_delta was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Vector2 _ret_var = default(Eina.Vector2); + try + { + _ret_var = ((GestureTouch)wrapper).Delta(tool); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Vector2.NativeStruct efl_gesture_touch_delta_api_delegate(System.IntPtr obj, int tool); - public static Efl.Eo.FunctionWrapper efl_gesture_touch_delta_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_touch_delta"); - private static Eina.Vector2.NativeStruct delta(System.IntPtr obj, System.IntPtr pd, int tool) - { - Eina.Log.Debug("function efl_gesture_touch_delta was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Vector2 _ret_var = default(Eina.Vector2); - try { - _ret_var = ((GestureTouch)wrapper).Delta( tool); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gesture_touch_delta_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), tool); + + } + else + { + return efl_gesture_touch_delta_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), tool); + } } - } - private static efl_gesture_touch_delta_delegate efl_gesture_touch_delta_static_delegate; + private static efl_gesture_touch_delta_delegate efl_gesture_touch_delta_static_delegate; - private delegate Eina.Vector2.NativeStruct efl_gesture_touch_distance_delegate(System.IntPtr obj, System.IntPtr pd, int tool); + + private delegate Eina.Vector2.NativeStruct efl_gesture_touch_distance_delegate(System.IntPtr obj, System.IntPtr pd, int tool); + + public delegate Eina.Vector2.NativeStruct efl_gesture_touch_distance_api_delegate(System.IntPtr obj, int tool); + + public static Efl.Eo.FunctionWrapper efl_gesture_touch_distance_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gesture_touch_distance"); + + private static Eina.Vector2.NativeStruct distance(System.IntPtr obj, System.IntPtr pd, int tool) + { + Eina.Log.Debug("function efl_gesture_touch_distance was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Vector2 _ret_var = default(Eina.Vector2); + try + { + _ret_var = ((GestureTouch)wrapper).Distance(tool); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Vector2.NativeStruct efl_gesture_touch_distance_api_delegate(System.IntPtr obj, int tool); - public static Efl.Eo.FunctionWrapper efl_gesture_touch_distance_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gesture_touch_distance"); - private static Eina.Vector2.NativeStruct distance(System.IntPtr obj, System.IntPtr pd, int tool) - { - Eina.Log.Debug("function efl_gesture_touch_distance was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Vector2 _ret_var = default(Eina.Vector2); - try { - _ret_var = ((GestureTouch)wrapper).Distance( tool); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gesture_touch_distance_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), tool); + + } + else + { + return efl_gesture_touch_distance_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), tool); + } } - } - private static efl_gesture_touch_distance_delegate efl_gesture_touch_distance_static_delegate; + + private static efl_gesture_touch_distance_delegate efl_gesture_touch_distance_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_types.eot.cs index 7012a86..8c20bcb 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_types.eot.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// This enum type describes the state of a touch event. public enum GestureTouchState { @@ -17,8 +21,15 @@ Update = 2, /// Last fingure touch up End = 3, } -} } -namespace Efl { namespace Canvas { + +} + +} + +namespace Efl { + +namespace Canvas { + /// This enum type describes the state of a gesture. public enum GestureState { @@ -33,8 +44,15 @@ Finished = 3, /// A gesture was canceled. Canceled = 4, } -} } -namespace Efl { namespace Canvas { + +} + +} + +namespace Efl { + +namespace Canvas { + /// This enum type describes the state of a gesture recognizer. public enum GestureRecognizerResult { @@ -51,4 +69,8 @@ Cancel = 16, /// The gesture result mask ResultMask = 255, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_group.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_group.eo.cs index 2a356ac..12e11ba 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_group.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_group.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + ///Event argument wrapper for event . public class GroupMemberAddedEvt_Args : EventArgs { ///Actual event payload. @@ -18,151 +22,189 @@ public class GroupMemberRemovedEvt_Args : EventArgs { /// A group object is a container for other canvas objects. Its children move along their parent and are often clipped with a common clipper. This is part of the legacy smart object concept. /// A group is not necessarily a container (see ) in the sense that a standard widget may not have any empty slots for content. However it's still a group of low-level canvas objects (clipper, raw objects, etc.). /// (Since EFL 1.22) -[GroupNativeInherit] +[Efl.Canvas.Group.NativeMethods] public class Group : Efl.Canvas.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Group)) - return Efl.Canvas.GroupNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Group)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_group_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Group(Efl.Object parent= null - ) : - base(efl_canvas_group_class_get(), typeof(Group), parent) + ) : base(efl_canvas_group_class_get(), typeof(Group), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Group(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Group(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Group(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object MemberAddedEvtKey = new object(); + /// Called when a member is added to the group. /// (Since EFL 1.22) public event EventHandler MemberAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.GroupMemberAddedEvt_Args args = new Efl.Canvas.GroupMemberAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_ADDED"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_MemberAddedEvt_delegate)) { - eventHandlers.AddHandler(MemberAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_MemberAddedEvt_delegate)) { - eventHandlers.RemoveHandler(MemberAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event MemberAddedEvt. - public void On_MemberAddedEvt(Efl.Canvas.GroupMemberAddedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[MemberAddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_MemberAddedEvt_delegate; - private void on_MemberAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnMemberAddedEvt(Efl.Canvas.GroupMemberAddedEvt_Args e) { - Efl.Canvas.GroupMemberAddedEvt_Args args = new Efl.Canvas.GroupMemberAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_MemberAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object MemberRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when a member is removed from the group. /// (Since EFL 1.22) public event EventHandler MemberRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.GroupMemberRemovedEvt_Args args = new Efl.Canvas.GroupMemberRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_MemberRemovedEvt_delegate)) { - eventHandlers.AddHandler(MemberRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_MemberRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(MemberRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event MemberRemovedEvt. - public void On_MemberRemovedEvt(Efl.Canvas.GroupMemberRemovedEvt_Args e) + public void OnMemberRemovedEvt(Efl.Canvas.GroupMemberRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[MemberRemovedEvtKey]; + var key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_MemberRemovedEvt_delegate; - private void on_MemberRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Canvas.GroupMemberRemovedEvt_Args args = new Efl.Canvas.GroupMemberRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_MemberRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_MemberAddedEvt_delegate = new Efl.EventCb(on_MemberAddedEvt_NativeCallback); - evt_MemberRemovedEvt_delegate = new Efl.EventCb(on_MemberRemovedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Indicates that the group's layout needs to be recalculated. /// If this flag is set, then the function will be called, during rendering phase of the canvas. After that, this flag will be automatically unset. @@ -173,7 +215,7 @@ private static object MemberRemovedEvtKey = new object(); /// (Since EFL 1.22) /// true if the group layout needs to be recalculated, false otherwise virtual public bool GetGroupNeedRecalculate() { - var _ret_var = Efl.Canvas.GroupNativeInherit.efl_canvas_group_need_recalculate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Group.NativeMethods.efl_canvas_group_need_recalculate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -185,33 +227,30 @@ private static object MemberRemovedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// true if the group layout needs to be recalculated, false otherwise - /// - virtual public void SetGroupNeedRecalculate( bool value) { - Efl.Canvas.GroupNativeInherit.efl_canvas_group_need_recalculate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetGroupNeedRecalculate(bool value) { + Efl.Canvas.Group.NativeMethods.efl_canvas_group_need_recalculate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Get the internal clipper. /// (Since EFL 1.22) /// A clipper rectangle. virtual public Efl.Canvas.Object GetGroupClipper() { - var _ret_var = Efl.Canvas.GroupNativeInherit.efl_canvas_group_clipper_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Group.NativeMethods.efl_canvas_group_clipper_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Marks the object as dirty. /// This also forcefully marks the given object as needing recalculation. As an effect, on the next rendering cycle its method will be called. /// (Since EFL 1.22) - /// virtual public void GroupChange() { - Efl.Canvas.GroupNativeInherit.efl_canvas_group_change_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Canvas.Group.NativeMethods.efl_canvas_group_change_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Triggers an immediate recalculation of this object's geometry. /// This will also reset the flag . /// (Since EFL 1.22) - /// virtual public void CalculateGroup() { - Efl.Canvas.GroupNativeInherit.efl_canvas_group_calculate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Canvas.Group.NativeMethods.efl_canvas_group_calculate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Returns an iterator over the children of this object, which are canvas objects. @@ -219,7 +258,7 @@ private static object MemberRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Iterator to object children virtual public Eina.Iterator GroupMembersIterate() { - var _ret_var = Efl.Canvas.GroupNativeInherit.efl_canvas_group_members_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Group.NativeMethods.efl_canvas_group_members_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -231,9 +270,8 @@ private static object MemberRemovedEvtKey = new object(); /// See also . See also . /// (Since EFL 1.22) /// The member object. - /// - virtual public void AddGroupMember( Efl.Canvas.Object sub_obj) { - Efl.Canvas.GroupNativeInherit.efl_canvas_group_member_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sub_obj); + virtual public void AddGroupMember(Efl.Canvas.Object sub_obj) { + Efl.Canvas.Group.NativeMethods.efl_canvas_group_member_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sub_obj); Eina.Error.RaiseIfUnhandledException(); } /// Removes a member object from a given smart object. @@ -242,17 +280,16 @@ private static object MemberRemovedEvtKey = new object(); /// See also . See also . /// (Since EFL 1.22) /// The member object to remove. - /// - virtual public void GroupMemberRemove( Efl.Canvas.Object sub_obj) { - Efl.Canvas.GroupNativeInherit.efl_canvas_group_member_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sub_obj); + virtual public void GroupMemberRemove(Efl.Canvas.Object sub_obj) { + Efl.Canvas.Group.NativeMethods.efl_canvas_group_member_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sub_obj); Eina.Error.RaiseIfUnhandledException(); } /// Finds out if a given object is a member of this group. /// (Since EFL 1.22) /// A potential sub object. /// true if sub_obj is a member of this group. - virtual public bool IsGroupMember( Efl.Canvas.Object sub_obj) { - var _ret_var = Efl.Canvas.GroupNativeInherit.efl_canvas_group_member_is_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sub_obj); + virtual public bool IsGroupMember(Efl.Canvas.Object sub_obj) { + var _ret_var = Efl.Canvas.Group.NativeMethods.efl_canvas_group_member_is_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sub_obj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -266,7 +303,7 @@ private static object MemberRemovedEvtKey = new object(); /// true if the group layout needs to be recalculated, false otherwise public bool GroupNeedRecalculate { get { return GetGroupNeedRecalculate(); } - set { SetGroupNeedRecalculate( value); } + set { SetGroupNeedRecalculate(value); } } /// The internal clipper object used by this group. /// This is the object clipping all the child objects. Do not delete or otherwise modify this clipper! @@ -279,279 +316,444 @@ private static object MemberRemovedEvtKey = new object(); { return Efl.Canvas.Group.efl_canvas_group_class_get(); } -} -public class GroupNativeInherit : Efl.Canvas.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_canvas_group_need_recalculate_get_static_delegate == null) - efl_canvas_group_need_recalculate_get_static_delegate = new efl_canvas_group_need_recalculate_get_delegate(group_need_recalculate_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupNeedRecalculate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_group_need_recalculate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_need_recalculate_get_static_delegate)}); - if (efl_canvas_group_need_recalculate_set_static_delegate == null) - efl_canvas_group_need_recalculate_set_static_delegate = new efl_canvas_group_need_recalculate_set_delegate(group_need_recalculate_set); - if (methods.FirstOrDefault(m => m.Name == "SetGroupNeedRecalculate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_group_need_recalculate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_need_recalculate_set_static_delegate)}); - if (efl_canvas_group_clipper_get_static_delegate == null) - efl_canvas_group_clipper_get_static_delegate = new efl_canvas_group_clipper_get_delegate(group_clipper_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupClipper") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_group_clipper_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_clipper_get_static_delegate)}); - if (efl_canvas_group_change_static_delegate == null) - efl_canvas_group_change_static_delegate = new efl_canvas_group_change_delegate(group_change); - if (methods.FirstOrDefault(m => m.Name == "GroupChange") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_group_change"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_change_static_delegate)}); - if (efl_canvas_group_calculate_static_delegate == null) - efl_canvas_group_calculate_static_delegate = new efl_canvas_group_calculate_delegate(group_calculate); - if (methods.FirstOrDefault(m => m.Name == "CalculateGroup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_group_calculate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_calculate_static_delegate)}); - if (efl_canvas_group_members_iterate_static_delegate == null) - efl_canvas_group_members_iterate_static_delegate = new efl_canvas_group_members_iterate_delegate(group_members_iterate); - if (methods.FirstOrDefault(m => m.Name == "GroupMembersIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_group_members_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_members_iterate_static_delegate)}); - if (efl_canvas_group_member_add_static_delegate == null) - efl_canvas_group_member_add_static_delegate = new efl_canvas_group_member_add_delegate(group_member_add); - if (methods.FirstOrDefault(m => m.Name == "AddGroupMember") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_group_member_add"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_member_add_static_delegate)}); - if (efl_canvas_group_member_remove_static_delegate == null) - efl_canvas_group_member_remove_static_delegate = new efl_canvas_group_member_remove_delegate(group_member_remove); - if (methods.FirstOrDefault(m => m.Name == "GroupMemberRemove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_group_member_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_member_remove_static_delegate)}); - if (efl_canvas_group_member_is_static_delegate == null) - efl_canvas_group_member_is_static_delegate = new efl_canvas_group_member_is_delegate(group_member_is); - if (methods.FirstOrDefault(m => m.Name == "IsGroupMember") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_group_member_is"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_member_is_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Group.efl_canvas_group_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Object.NativeMethods { - return Efl.Canvas.Group.efl_canvas_group_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_canvas_group_need_recalculate_get_static_delegate == null) + { + efl_canvas_group_need_recalculate_get_static_delegate = new efl_canvas_group_need_recalculate_get_delegate(group_need_recalculate_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetGroupNeedRecalculate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_need_recalculate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_need_recalculate_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_group_need_recalculate_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_canvas_group_need_recalculate_set_static_delegate == null) + { + efl_canvas_group_need_recalculate_set_static_delegate = new efl_canvas_group_need_recalculate_set_delegate(group_need_recalculate_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGroupNeedRecalculate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_need_recalculate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_need_recalculate_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_group_need_recalculate_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_group_need_recalculate_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_group_need_recalculate_get"); - private static bool group_need_recalculate_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_group_need_recalculate_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Group)wrapper).GetGroupNeedRecalculate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_group_clipper_get_static_delegate == null) + { + efl_canvas_group_clipper_get_static_delegate = new efl_canvas_group_clipper_get_delegate(group_clipper_get); } - return _ret_var; - } else { - return efl_canvas_group_need_recalculate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_group_need_recalculate_get_delegate efl_canvas_group_need_recalculate_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetGroupClipper") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_clipper_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_clipper_get_static_delegate) }); + } - private delegate void efl_canvas_group_need_recalculate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool value); + if (efl_canvas_group_change_static_delegate == null) + { + efl_canvas_group_change_static_delegate = new efl_canvas_group_change_delegate(group_change); + } + if (methods.FirstOrDefault(m => m.Name == "GroupChange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_change"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_change_static_delegate) }); + } - public delegate void efl_canvas_group_need_recalculate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool value); - public static Efl.Eo.FunctionWrapper efl_canvas_group_need_recalculate_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_group_need_recalculate_set"); - private static void group_need_recalculate_set(System.IntPtr obj, System.IntPtr pd, bool value) - { - Eina.Log.Debug("function efl_canvas_group_need_recalculate_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Group)wrapper).SetGroupNeedRecalculate( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_group_need_recalculate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_canvas_group_need_recalculate_set_delegate efl_canvas_group_need_recalculate_set_static_delegate; + if (efl_canvas_group_calculate_static_delegate == null) + { + efl_canvas_group_calculate_static_delegate = new efl_canvas_group_calculate_delegate(group_calculate); + } + if (methods.FirstOrDefault(m => m.Name == "CalculateGroup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_calculate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_calculate_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_canvas_group_clipper_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_canvas_group_members_iterate_static_delegate == null) + { + efl_canvas_group_members_iterate_static_delegate = new efl_canvas_group_members_iterate_delegate(group_members_iterate); + } + if (methods.FirstOrDefault(m => m.Name == "GroupMembersIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_members_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_members_iterate_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_canvas_group_clipper_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_group_clipper_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_group_clipper_get"); - private static Efl.Canvas.Object group_clipper_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_group_clipper_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Group)wrapper).GetGroupClipper(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_group_member_add_static_delegate == null) + { + efl_canvas_group_member_add_static_delegate = new efl_canvas_group_member_add_delegate(group_member_add); } - return _ret_var; - } else { - return efl_canvas_group_clipper_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_group_clipper_get_delegate efl_canvas_group_clipper_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "AddGroupMember") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_member_add"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_member_add_static_delegate) }); + } - private delegate void efl_canvas_group_change_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_canvas_group_member_remove_static_delegate == null) + { + efl_canvas_group_member_remove_static_delegate = new efl_canvas_group_member_remove_delegate(group_member_remove); + } + if (methods.FirstOrDefault(m => m.Name == "GroupMemberRemove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_member_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_member_remove_static_delegate) }); + } - public delegate void efl_canvas_group_change_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_group_change_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_group_change"); - private static void group_change(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_group_change was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Group)wrapper).GroupChange(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_group_change_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + if (efl_canvas_group_member_is_static_delegate == null) + { + efl_canvas_group_member_is_static_delegate = new efl_canvas_group_member_is_delegate(group_member_is); + } + + if (methods.FirstOrDefault(m => m.Name == "IsGroupMember") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_group_member_is"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_group_member_is_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Group.efl_canvas_group_class_get(); } - } - private static efl_canvas_group_change_delegate efl_canvas_group_change_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_group_need_recalculate_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_group_need_recalculate_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_group_need_recalculate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_need_recalculate_get"); + + private static bool group_need_recalculate_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_group_need_recalculate_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Group)wrapper).GetGroupNeedRecalculate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_canvas_group_calculate_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_canvas_group_need_recalculate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_canvas_group_need_recalculate_get_delegate efl_canvas_group_need_recalculate_get_static_delegate; + + + private delegate void efl_canvas_group_need_recalculate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool value); + + + public delegate void efl_canvas_group_need_recalculate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool value); + + public static Efl.Eo.FunctionWrapper efl_canvas_group_need_recalculate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_need_recalculate_set"); + + private static void group_need_recalculate_set(System.IntPtr obj, System.IntPtr pd, bool value) + { + Eina.Log.Debug("function efl_canvas_group_need_recalculate_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Group)wrapper).SetGroupNeedRecalculate(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_canvas_group_calculate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_group_calculate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_group_calculate"); - private static void group_calculate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_group_calculate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Group)wrapper).CalculateGroup(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_group_calculate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_canvas_group_need_recalculate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } } - } - private static efl_canvas_group_calculate_delegate efl_canvas_group_calculate_static_delegate; + private static efl_canvas_group_need_recalculate_set_delegate efl_canvas_group_need_recalculate_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_canvas_group_clipper_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_canvas_group_clipper_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_group_clipper_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_clipper_get"); + + private static Efl.Canvas.Object group_clipper_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_group_clipper_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Group)wrapper).GetGroupClipper(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate System.IntPtr efl_canvas_group_members_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_canvas_group_clipper_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate System.IntPtr efl_canvas_group_members_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_group_members_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_group_members_iterate"); - private static System.IntPtr group_members_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_group_members_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Group)wrapper).GroupMembersIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_canvas_group_clipper_get_delegate efl_canvas_group_clipper_get_static_delegate; + + + private delegate void efl_canvas_group_change_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_canvas_group_change_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_group_change_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_change"); + + private static void group_change(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_group_change was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Group)wrapper).GroupChange(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_group_change_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_canvas_group_members_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_canvas_group_members_iterate_delegate efl_canvas_group_members_iterate_static_delegate; + private static efl_canvas_group_change_delegate efl_canvas_group_change_static_delegate; + + + private delegate void efl_canvas_group_calculate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_canvas_group_calculate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_group_calculate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_calculate"); + + private static void group_calculate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_group_calculate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Group)wrapper).CalculateGroup(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_group_calculate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_canvas_group_member_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sub_obj); + private static efl_canvas_group_calculate_delegate efl_canvas_group_calculate_static_delegate; + + + private delegate System.IntPtr efl_canvas_group_members_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_canvas_group_members_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_group_members_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_members_iterate"); + + private static System.IntPtr group_members_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_group_members_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Group)wrapper).GroupMembersIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - public delegate void efl_canvas_group_member_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sub_obj); - public static Efl.Eo.FunctionWrapper efl_canvas_group_member_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_group_member_add"); - private static void group_member_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) - { - Eina.Log.Debug("function efl_canvas_group_member_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Group)wrapper).AddGroupMember( sub_obj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_group_member_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); + } + else + { + return efl_canvas_group_members_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_group_member_add_delegate efl_canvas_group_member_add_static_delegate; + private static efl_canvas_group_members_iterate_delegate efl_canvas_group_members_iterate_static_delegate; + + + private delegate void efl_canvas_group_member_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); + + + public delegate void efl_canvas_group_member_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_group_member_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_member_add"); + + private static void group_member_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) + { + Eina.Log.Debug("function efl_canvas_group_member_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Group)wrapper).AddGroupMember(sub_obj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_canvas_group_member_remove_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sub_obj); + + } + else + { + efl_canvas_group_member_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); + } + } + private static efl_canvas_group_member_add_delegate efl_canvas_group_member_add_static_delegate; + + + private delegate void efl_canvas_group_member_remove_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); + + + public delegate void efl_canvas_group_member_remove_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_group_member_remove_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_member_remove"); + + private static void group_member_remove(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) + { + Eina.Log.Debug("function efl_canvas_group_member_remove was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Group)wrapper).GroupMemberRemove(sub_obj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_canvas_group_member_remove_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sub_obj); - public static Efl.Eo.FunctionWrapper efl_canvas_group_member_remove_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_group_member_remove"); - private static void group_member_remove(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) - { - Eina.Log.Debug("function efl_canvas_group_member_remove was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Group)wrapper).GroupMemberRemove( sub_obj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_group_member_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); + + } + else + { + efl_canvas_group_member_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); + } } - } - private static efl_canvas_group_member_remove_delegate efl_canvas_group_member_remove_static_delegate; + private static efl_canvas_group_member_remove_delegate efl_canvas_group_member_remove_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_group_member_is_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_group_member_is_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_group_member_is_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_group_member_is"); + + private static bool group_member_is(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) + { + Eina.Log.Debug("function efl_canvas_group_member_is was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Group)wrapper).IsGroupMember(sub_obj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_group_member_is_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sub_obj); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_group_member_is_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sub_obj); - public static Efl.Eo.FunctionWrapper efl_canvas_group_member_is_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_group_member_is"); - private static bool group_member_is(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) - { - Eina.Log.Debug("function efl_canvas_group_member_is was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Group)wrapper).IsGroupMember( sub_obj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_canvas_group_member_is_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); + else + { + return efl_canvas_group_member_is_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); + } } - } - private static efl_canvas_group_member_is_delegate efl_canvas_group_member_is_static_delegate; + + private static efl_canvas_group_member_is_delegate efl_canvas_group_member_is_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_image.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_image.eo.cs index 2d25dd8..eea1a12 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_image.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_image.eo.cs @@ -3,158 +3,206 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Low-level Image object. /// This replaces the legacy Evas Object Image, with only image-related interfaces: file and data images only. This object does not implement any special features such as proxy, snapshot or GL. -[ImageNativeInherit] +[Efl.Canvas.Image.NativeMethods] public class Image : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper,Efl.IFile,Efl.Gfx.IFrameController,Efl.Gfx.IImageLoadController { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Image)) - return Efl.Canvas.ImageNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Image)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_image_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Image(Efl.Object parent= null - ) : - base(efl_canvas_image_class_get(), typeof(Image), parent) + ) : base(efl_canvas_image_class_get(), typeof(Image), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Image(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Image(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Image(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object LoadDoneEvtKey = new object(); + /// Called when he image was loaded public event EventHandler LoadDoneEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LoadDoneEvt_delegate)) { - eventHandlers.AddHandler(LoadDoneEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; - if (RemoveNativeEventHandler(key, this.evt_LoadDoneEvt_delegate)) { - eventHandlers.RemoveHandler(LoadDoneEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LoadDoneEvt. - public void On_LoadDoneEvt(EventArgs e) + public void OnLoadDoneEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadDoneEvtKey]; + var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadDoneEvt_delegate; - private void on_LoadDoneEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_LoadDoneEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object LoadErrorEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when an error happened during image loading public event EventHandler LoadErrorEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args args = new Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args(); + args.arg = (Eina.Error)Marshal.PtrToStructure(evt.Info, typeof(Eina.Error)); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LoadErrorEvt_delegate)) { - eventHandlers.AddHandler(LoadErrorEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; - if (RemoveNativeEventHandler(key, this.evt_LoadErrorEvt_delegate)) { - eventHandlers.RemoveHandler(LoadErrorEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LoadErrorEvt. - public void On_LoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadErrorEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadErrorEvt_delegate; - private void on_LoadErrorEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) { - Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args args = new Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args(); - args.arg = (Eina.Error)Marshal.PtrToStructure(evt.Info, typeof(Eina.Error)); - try { - On_LoadErrorEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_LoadDoneEvt_delegate = new Efl.EventCb(on_LoadDoneEvt_NativeCallback); - evt_LoadErrorEvt_delegate = new Efl.EventCb(on_LoadErrorEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc((int)e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Get the mmaped file from where an object will fetch the real data (it must be an ). /// (Since EFL 1.22) /// The handle to the that will be used virtual public Eina.File GetMmap() { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -163,8 +211,8 @@ private static object LoadErrorEvtKey = new object(); /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise - virtual public Eina.Error SetMmap( Eina.File f) { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public Eina.Error SetMmap(Eina.File f) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -173,7 +221,7 @@ private static object LoadErrorEvtKey = new object(); /// (Since EFL 1.22) /// The file path. virtual public System.String GetFile() { - var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -182,8 +230,8 @@ private static object LoadErrorEvtKey = new object(); /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise - virtual public Eina.Error SetFile( System.String file) { - var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file); + virtual public Eina.Error SetFile(System.String file) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -194,7 +242,7 @@ private static object LoadErrorEvtKey = new object(); /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. virtual public System.String GetKey() { - var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -202,16 +250,15 @@ private static object LoadErrorEvtKey = new object(); /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. - /// - virtual public void SetKey( System.String key) { - Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public void SetKey(System.String key) { + Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. virtual public bool GetLoaded() { - var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -222,7 +269,7 @@ private static object LoadErrorEvtKey = new object(); /// (Since EFL 1.22) /// 0 on success, error code otherwise virtual public Eina.Error Load() { - var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -231,16 +278,15 @@ private static object LoadErrorEvtKey = new object(); /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) - /// virtual public void Unload() { - Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Check if an object can be animated (has multiple frames). /// This will be true for animated object for instance but false for a single frame object. /// true if the object is animated virtual public bool GetAnimated() { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_animated_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_animated_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -248,15 +294,15 @@ private static object LoadErrorEvtKey = new object(); /// Ranges from 1 to . Valid only if . /// The index of current frame. virtual public int GetFrame() { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_frame_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the frame to current frame of an animated object. /// The index of current frame. /// Returns true if the frame index is valid. - virtual public bool SetFrame( int frame_index) { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_frame_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), frame_index); + virtual public bool SetFrame(int frame_index) { + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),frame_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -264,7 +310,7 @@ private static object LoadErrorEvtKey = new object(); /// Returns -1 if not animated. /// The number of frames in the animated object. virtual public int GetFrameCount() { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -278,7 +324,7 @@ private static object LoadErrorEvtKey = new object(); /// The default type is . /// Loop type of the animated object. virtual public Efl.Gfx.FrameControllerLoopHint GetLoopType() { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -288,7 +334,7 @@ private static object LoadErrorEvtKey = new object(); /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops). /// The number of loop of an animated object. virtual public int GetLoopCount() { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -299,54 +345,52 @@ private static object LoadErrorEvtKey = new object(); /// The first frame, rangers from 1 to . /// Number of frames in the sequence, starts from 0. /// Duration in seconds - virtual public double GetFrameDuration( int start_frame, int frame_num) { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), start_frame, frame_num); + virtual public double GetFrameDuration(int start_frame, int frame_num) { + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),start_frame, frame_num); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Returns the requested load size. /// The image load size. virtual public Eina.Size2D GetLoadSize() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests the canvas to load the image at the given size. /// EFL will try to load an image of the requested size but does not guarantee an exact match between the request and the loaded image dimensions. /// The image load size. - /// - virtual public void SetLoadSize( Eina.Size2D size) { + virtual public void SetLoadSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Get the DPI resolution of a loaded image object in the canvas. /// This function returns the DPI resolution of the given canvas image. /// The DPI resolution. virtual public double GetLoadDpi() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the DPI resolution of an image object's source image. /// This function sets the DPI resolution of a given loaded canvas image. Most useful for the SVG image loader. /// The DPI resolution. - /// - virtual public void SetLoadDpi( double dpi) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dpi); + virtual public void SetLoadDpi(double dpi) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dpi); Eina.Error.RaiseIfUnhandledException(); } /// Indicates whether the property is supported for the current file. /// true if region load of the image is supported, false otherwise virtual public bool GetLoadRegionSupport() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Retrieve the coordinates of a given image object's selective (source image) load region. /// A region of the image. virtual public Eina.Rect GetLoadRegion() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -355,26 +399,24 @@ private static object LoadErrorEvtKey = new object(); /// /// Note: The image loader for the image format in question has to support selective region loading in order for this function to work. /// A region of the image. - /// - virtual public void SetLoadRegion( Eina.Rect region) { + virtual public void SetLoadRegion(Eina.Rect region) { Eina.Rect.NativeStruct _in_region = region; - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_region); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_region); Eina.Error.RaiseIfUnhandledException(); } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. virtual public bool GetLoadOrientation() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. - /// - virtual public void SetLoadOrientation( bool enable) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enable); + virtual public void SetLoadOrientation(bool enable) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enable); Eina.Error.RaiseIfUnhandledException(); } /// The scale down factor is a divider on the original image size. @@ -385,44 +427,40 @@ private static object LoadErrorEvtKey = new object(); /// Powers of two (2, 4, 8) are best supported (especially with JPEG) /// The scale down dividing factor. virtual public int GetLoadScaleDown() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests the image loader to scale down by div times. Call this before starting the actual image load. /// The scale down dividing factor. - /// - virtual public void SetLoadScaleDown( int div) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), div); + virtual public void SetLoadScaleDown(int div) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),div); Eina.Error.RaiseIfUnhandledException(); } /// Initial load should skip header check and leave it all to data load /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set). /// Will be true if header is to be skipped. virtual public bool GetLoadSkipHeader() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the skip header state for susbsequent loads of a file. /// Will be true if header is to be skipped. - /// - virtual public void SetLoadSkipHeader( bool skip) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), skip); + virtual public void SetLoadSkipHeader(bool skip) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),skip); Eina.Error.RaiseIfUnhandledException(); } /// Begin preloading an image object's image data in the background. /// Once the background task is complete the event load,done will be emitted. - /// virtual public void LoadAsyncStart() { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Cancel preloading an image object's image data in the background. /// The object should be left in a state where it has no image data. If cancel is called too late, the image will be kept in memory. - /// virtual public void LoadAsyncCancel() { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Get the mmaped file from where an object will fetch the real data (it must be an ). @@ -430,7 +468,7 @@ private static object LoadErrorEvtKey = new object(); /// The handle to the that will be used public Eina.File Mmap { get { return GetMmap(); } - set { SetMmap( value); } + set { SetMmap(value); } } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. @@ -438,7 +476,7 @@ private static object LoadErrorEvtKey = new object(); /// The file path. public System.String File { get { return GetFile(); } - set { SetFile( value); } + set { SetFile(value); } } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -448,7 +486,7 @@ private static object LoadErrorEvtKey = new object(); /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String Key { get { return GetKey(); } - set { SetKey( value); } + set { SetKey(value); } } /// Get the load state of the object. /// (Since EFL 1.22) @@ -467,7 +505,7 @@ private static object LoadErrorEvtKey = new object(); /// The index of current frame. public int Frame { get { return GetFrame(); } - set { SetFrame( value); } + set { SetFrame(value); } } /// Get the total number of frames of the object, if animated. /// Returns -1 if not animated. @@ -502,14 +540,14 @@ private static object LoadErrorEvtKey = new object(); /// The image load size. public Eina.Size2D LoadSize { get { return GetLoadSize(); } - set { SetLoadSize( value); } + set { SetLoadSize(value); } } /// Get the DPI resolution of a loaded image object in the canvas. /// This function returns the DPI resolution of the given canvas image. /// The DPI resolution. public double LoadDpi { get { return GetLoadDpi(); } - set { SetLoadDpi( value); } + set { SetLoadDpi(value); } } /// Indicates whether the property is supported for the current file. /// true if region load of the image is supported, false otherwise @@ -520,14 +558,14 @@ private static object LoadErrorEvtKey = new object(); /// A region of the image. public Eina.Rect LoadRegion { get { return GetLoadRegion(); } - set { SetLoadRegion( value); } + set { SetLoadRegion(value); } } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. public bool LoadOrientation { get { return GetLoadOrientation(); } - set { SetLoadOrientation( value); } + set { SetLoadOrientation(value); } } /// The scale down factor is a divider on the original image size. /// Setting the scale down factor can reduce load time and memory usage at the cost of having a scaled down image in memory. @@ -538,927 +576,1466 @@ private static object LoadErrorEvtKey = new object(); /// The scale down dividing factor. public int LoadScaleDown { get { return GetLoadScaleDown(); } - set { SetLoadScaleDown( value); } + set { SetLoadScaleDown(value); } } /// Initial load should skip header check and leave it all to data load /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set). /// Will be true if header is to be skipped. public bool LoadSkipHeader { get { return GetLoadSkipHeader(); } - set { SetLoadSkipHeader( value); } + set { SetLoadSkipHeader(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Image.efl_canvas_image_class_get(); } -} -public class ImageNativeInherit : Efl.Canvas.ImageInternalNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_file_mmap_get_static_delegate == null) - efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate)}); - if (efl_file_mmap_set_static_delegate == null) - efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate)}); - if (efl_file_get_static_delegate == null) - efl_file_get_static_delegate = new efl_file_get_delegate(file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate)}); - if (efl_file_set_static_delegate == null) - efl_file_set_static_delegate = new efl_file_set_delegate(file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate)}); - if (efl_file_key_get_static_delegate == null) - efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate)}); - if (efl_file_key_set_static_delegate == null) - efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate)}); - if (efl_file_loaded_get_static_delegate == null) - efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate)}); - if (efl_file_load_static_delegate == null) - efl_file_load_static_delegate = new efl_file_load_delegate(load); - if (methods.FirstOrDefault(m => m.Name == "Load") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate)}); - if (efl_file_unload_static_delegate == null) - efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); - if (methods.FirstOrDefault(m => m.Name == "Unload") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate)}); - if (efl_gfx_frame_controller_animated_get_static_delegate == null) - efl_gfx_frame_controller_animated_get_static_delegate = new efl_gfx_frame_controller_animated_get_delegate(animated_get); - if (methods.FirstOrDefault(m => m.Name == "GetAnimated") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_animated_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_animated_get_static_delegate)}); - if (efl_gfx_frame_controller_frame_get_static_delegate == null) - efl_gfx_frame_controller_frame_get_static_delegate = new efl_gfx_frame_controller_frame_get_delegate(frame_get); - if (methods.FirstOrDefault(m => m.Name == "GetFrame") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_frame_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_get_static_delegate)}); - if (efl_gfx_frame_controller_frame_set_static_delegate == null) - efl_gfx_frame_controller_frame_set_static_delegate = new efl_gfx_frame_controller_frame_set_delegate(frame_set); - if (methods.FirstOrDefault(m => m.Name == "SetFrame") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_frame_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_set_static_delegate)}); - if (efl_gfx_frame_controller_frame_count_get_static_delegate == null) - efl_gfx_frame_controller_frame_count_get_static_delegate = new efl_gfx_frame_controller_frame_count_get_delegate(frame_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetFrameCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_frame_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_count_get_static_delegate)}); - if (efl_gfx_frame_controller_loop_type_get_static_delegate == null) - efl_gfx_frame_controller_loop_type_get_static_delegate = new efl_gfx_frame_controller_loop_type_get_delegate(loop_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoopType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_loop_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_loop_type_get_static_delegate)}); - if (efl_gfx_frame_controller_loop_count_get_static_delegate == null) - efl_gfx_frame_controller_loop_count_get_static_delegate = new efl_gfx_frame_controller_loop_count_get_delegate(loop_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoopCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_loop_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_loop_count_get_static_delegate)}); - if (efl_gfx_frame_controller_frame_duration_get_static_delegate == null) - efl_gfx_frame_controller_frame_duration_get_static_delegate = new efl_gfx_frame_controller_frame_duration_get_delegate(frame_duration_get); - if (methods.FirstOrDefault(m => m.Name == "GetFrameDuration") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_frame_duration_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_duration_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_size_get_static_delegate == null) - efl_gfx_image_load_controller_load_size_get_static_delegate = new efl_gfx_image_load_controller_load_size_get_delegate(load_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_size_set_static_delegate == null) - efl_gfx_image_load_controller_load_size_set_static_delegate = new efl_gfx_image_load_controller_load_size_set_delegate(load_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_dpi_get_static_delegate == null) - efl_gfx_image_load_controller_load_dpi_get_static_delegate = new efl_gfx_image_load_controller_load_dpi_get_delegate(load_dpi_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadDpi") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_dpi_set_static_delegate == null) - efl_gfx_image_load_controller_load_dpi_set_static_delegate = new efl_gfx_image_load_controller_load_dpi_set_delegate(load_dpi_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadDpi") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_dpi_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_support_get_static_delegate == null) - efl_gfx_image_load_controller_load_region_support_get_static_delegate = new efl_gfx_image_load_controller_load_region_support_get_delegate(load_region_support_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadRegionSupport") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_support_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_support_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_get_static_delegate == null) - efl_gfx_image_load_controller_load_region_get_static_delegate = new efl_gfx_image_load_controller_load_region_get_delegate(load_region_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_set_static_delegate == null) - efl_gfx_image_load_controller_load_region_set_static_delegate = new efl_gfx_image_load_controller_load_region_set_delegate(load_region_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_orientation_get_static_delegate == null) - efl_gfx_image_load_controller_load_orientation_get_static_delegate = new efl_gfx_image_load_controller_load_orientation_get_delegate(load_orientation_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_orientation_set_static_delegate == null) - efl_gfx_image_load_controller_load_orientation_set_static_delegate = new efl_gfx_image_load_controller_load_orientation_set_delegate(load_orientation_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_scale_down_get_static_delegate == null) - efl_gfx_image_load_controller_load_scale_down_get_static_delegate = new efl_gfx_image_load_controller_load_scale_down_get_delegate(load_scale_down_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadScaleDown") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_scale_down_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_scale_down_set_static_delegate == null) - efl_gfx_image_load_controller_load_scale_down_set_static_delegate = new efl_gfx_image_load_controller_load_scale_down_set_delegate(load_scale_down_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadScaleDown") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_scale_down_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_skip_header_get_static_delegate == null) - efl_gfx_image_load_controller_load_skip_header_get_static_delegate = new efl_gfx_image_load_controller_load_skip_header_get_delegate(load_skip_header_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadSkipHeader") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_skip_header_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_skip_header_set_static_delegate == null) - efl_gfx_image_load_controller_load_skip_header_set_static_delegate = new efl_gfx_image_load_controller_load_skip_header_set_delegate(load_skip_header_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadSkipHeader") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_skip_header_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_async_start_static_delegate == null) - efl_gfx_image_load_controller_load_async_start_static_delegate = new efl_gfx_image_load_controller_load_async_start_delegate(load_async_start); - if (methods.FirstOrDefault(m => m.Name == "LoadAsyncStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_async_start"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_start_static_delegate)}); - if (efl_gfx_image_load_controller_load_async_cancel_static_delegate == null) - efl_gfx_image_load_controller_load_async_cancel_static_delegate = new efl_gfx_image_load_controller_load_async_cancel_delegate(load_async_cancel); - if (methods.FirstOrDefault(m => m.Name == "LoadAsyncCancel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_async_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_cancel_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Image.efl_canvas_image_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.ImageInternal.NativeMethods { - return Efl.Canvas.Image.efl_canvas_image_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_file_mmap_get_static_delegate == null) + { + efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) }); + } - private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_mmap_set_static_delegate == null) + { + efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) }); + } - public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_get"); - private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_mmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.File _ret_var = default(Eina.File); - try { - _ret_var = ((Image)wrapper).GetMmap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_get_static_delegate == null) + { + efl_file_get_static_delegate = new efl_file_get_delegate(file_get); } - return _ret_var; - } else { - return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) }); + } - private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + if (efl_file_set_static_delegate == null) + { + efl_file_set_static_delegate = new efl_file_set_delegate(file_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) }); + } - public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); - public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_set"); - private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) - { - Eina.Log.Debug("function efl_file_mmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Image)wrapper).SetMmap( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_key_get_static_delegate == null) + { + efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); } - return _ret_var; - } else { - return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_key_set_static_delegate == null) + { + efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_get"); - private static System.String file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Image)wrapper).GetFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_loaded_get_static_delegate == null) + { + efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); } - return _ret_var; - } else { - return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_get_delegate efl_file_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) }); + } - private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + if (efl_file_load_static_delegate == null) + { + efl_file_load_static_delegate = new efl_file_load_delegate(load); + } + if (methods.FirstOrDefault(m => m.Name == "Load") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) }); + } - public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_set"); - private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) - { - Eina.Log.Debug("function efl_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Image)wrapper).SetFile( file); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_unload_static_delegate == null) + { + efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); } - return _ret_var; - } else { - return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); - } - } - private static efl_file_set_delegate efl_file_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Unload") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_frame_controller_animated_get_static_delegate == null) + { + efl_gfx_frame_controller_animated_get_static_delegate = new efl_gfx_frame_controller_animated_get_delegate(animated_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetAnimated") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_animated_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_animated_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Image)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_frame_controller_frame_get_static_delegate == null) + { + efl_gfx_frame_controller_frame_get_static_delegate = new efl_gfx_frame_controller_frame_get_delegate(frame_get); } - return _ret_var; - } else { - return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFrame") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_get_static_delegate) }); + } - private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + if (efl_gfx_frame_controller_frame_set_static_delegate == null) + { + efl_gfx_frame_controller_frame_set_static_delegate = new efl_gfx_frame_controller_frame_set_delegate(frame_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFrame") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_set_static_delegate) }); + } - public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_file_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetKey( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); - } - } - private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + if (efl_gfx_frame_controller_frame_count_get_static_delegate == null) + { + efl_gfx_frame_controller_frame_count_get_static_delegate = new efl_gfx_frame_controller_frame_count_get_delegate(frame_count_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFrameCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_count_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_frame_controller_loop_type_get_static_delegate == null) + { + efl_gfx_frame_controller_loop_type_get_static_delegate = new efl_gfx_frame_controller_loop_type_get_delegate(loop_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoopType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_loop_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_loop_type_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_loaded_get"); - private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_loaded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetLoaded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_frame_controller_loop_count_get_static_delegate == null) + { + efl_gfx_frame_controller_loop_count_get_static_delegate = new efl_gfx_frame_controller_loop_count_get_delegate(loop_count_get); } - return _ret_var; - } else { - return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoopCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_loop_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_loop_count_get_static_delegate) }); + } - private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_frame_controller_frame_duration_get_static_delegate == null) + { + efl_gfx_frame_controller_frame_duration_get_static_delegate = new efl_gfx_frame_controller_frame_duration_get_delegate(frame_duration_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFrameDuration") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_duration_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_duration_get_static_delegate) }); + } - public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_load"); - private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_load was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Image)wrapper).Load(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_load_controller_load_size_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_size_get_static_delegate = new efl_gfx_image_load_controller_load_size_get_delegate(load_size_get); } - return _ret_var; - } else { - return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_load_delegate efl_file_load_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoadSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_get_static_delegate) }); + } - private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_load_controller_load_size_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_size_set_static_delegate = new efl_gfx_image_load_controller_load_size_set_delegate(load_size_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetLoadSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_set_static_delegate) }); + } - public delegate void efl_file_unload_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_unload"); - private static void unload(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_unload was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).Unload(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_unload_delegate efl_file_unload_static_delegate; + if (efl_gfx_image_load_controller_load_dpi_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_dpi_get_static_delegate = new efl_gfx_image_load_controller_load_dpi_get_delegate(load_dpi_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoadDpi") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_frame_controller_animated_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_load_controller_load_dpi_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_dpi_set_static_delegate = new efl_gfx_image_load_controller_load_dpi_set_delegate(load_dpi_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetLoadDpi") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_dpi_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_frame_controller_animated_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_animated_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_animated_get"); - private static bool animated_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_frame_controller_animated_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetAnimated(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_load_controller_load_region_support_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_support_get_static_delegate = new efl_gfx_image_load_controller_load_region_support_get_delegate(load_region_support_get); } - return _ret_var; - } else { - return efl_gfx_frame_controller_animated_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_frame_controller_animated_get_delegate efl_gfx_frame_controller_animated_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoadRegionSupport") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_support_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_support_get_static_delegate) }); + } - private delegate int efl_gfx_frame_controller_frame_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_load_controller_load_region_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_get_static_delegate = new efl_gfx_image_load_controller_load_region_get_delegate(load_region_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoadRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_get_static_delegate) }); + } - public delegate int efl_gfx_frame_controller_frame_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_frame_get"); - private static int frame_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_frame_controller_frame_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Image)wrapper).GetFrame(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_load_controller_load_region_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_set_static_delegate = new efl_gfx_image_load_controller_load_region_set_delegate(load_region_set); } - return _ret_var; - } else { - return efl_gfx_frame_controller_frame_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_frame_controller_frame_get_delegate efl_gfx_frame_controller_frame_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetLoadRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_frame_controller_frame_set_delegate(System.IntPtr obj, System.IntPtr pd, int frame_index); + if (efl_gfx_image_load_controller_load_orientation_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_orientation_get_static_delegate = new efl_gfx_image_load_controller_load_orientation_get_delegate(load_orientation_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoadOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_frame_controller_frame_set_api_delegate(System.IntPtr obj, int frame_index); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_frame_set"); - private static bool frame_set(System.IntPtr obj, System.IntPtr pd, int frame_index) - { - Eina.Log.Debug("function efl_gfx_frame_controller_frame_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).SetFrame( frame_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_load_controller_load_orientation_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_orientation_set_static_delegate = new efl_gfx_image_load_controller_load_orientation_set_delegate(load_orientation_set); } - return _ret_var; - } else { - return efl_gfx_frame_controller_frame_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), frame_index); - } - } - private static efl_gfx_frame_controller_frame_set_delegate efl_gfx_frame_controller_frame_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetLoadOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_set_static_delegate) }); + } - private delegate int efl_gfx_frame_controller_frame_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_load_controller_load_scale_down_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_scale_down_get_static_delegate = new efl_gfx_image_load_controller_load_scale_down_get_delegate(load_scale_down_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoadScaleDown") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_scale_down_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_get_static_delegate) }); + } - public delegate int efl_gfx_frame_controller_frame_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_frame_count_get"); - private static int frame_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_frame_controller_frame_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Image)wrapper).GetFrameCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_load_controller_load_scale_down_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_scale_down_set_static_delegate = new efl_gfx_image_load_controller_load_scale_down_set_delegate(load_scale_down_set); } - return _ret_var; - } else { - return efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_frame_controller_frame_count_get_delegate efl_gfx_frame_controller_frame_count_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetLoadScaleDown") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_scale_down_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_set_static_delegate) }); + } - private delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_load_controller_load_skip_header_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_skip_header_get_static_delegate = new efl_gfx_image_load_controller_load_skip_header_get_delegate(load_skip_header_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoadSkipHeader") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_skip_header_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_get_static_delegate) }); + } - public delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_loop_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_loop_type_get"); - private static Efl.Gfx.FrameControllerLoopHint loop_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_frame_controller_loop_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.FrameControllerLoopHint _ret_var = default(Efl.Gfx.FrameControllerLoopHint); - try { - _ret_var = ((Image)wrapper).GetLoopType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_load_controller_load_skip_header_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_skip_header_set_static_delegate = new efl_gfx_image_load_controller_load_skip_header_set_delegate(load_skip_header_set); } - return _ret_var; - } else { - return efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_frame_controller_loop_type_get_delegate efl_gfx_frame_controller_loop_type_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetLoadSkipHeader") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_skip_header_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_set_static_delegate) }); + } - private delegate int efl_gfx_frame_controller_loop_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_load_controller_load_async_start_static_delegate == null) + { + efl_gfx_image_load_controller_load_async_start_static_delegate = new efl_gfx_image_load_controller_load_async_start_delegate(load_async_start); + } + if (methods.FirstOrDefault(m => m.Name == "LoadAsyncStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_async_start"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_start_static_delegate) }); + } - public delegate int efl_gfx_frame_controller_loop_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_loop_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_loop_count_get"); - private static int loop_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_frame_controller_loop_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Image)wrapper).GetLoopCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_load_controller_load_async_cancel_static_delegate == null) + { + efl_gfx_image_load_controller_load_async_cancel_static_delegate = new efl_gfx_image_load_controller_load_async_cancel_delegate(load_async_cancel); } - return _ret_var; - } else { - return efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (methods.FirstOrDefault(m => m.Name == "LoadAsyncCancel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_async_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_cancel_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Image.efl_canvas_image_class_get(); } - } - private static efl_gfx_frame_controller_loop_count_get_delegate efl_gfx_frame_controller_loop_count_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_get"); + + private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_mmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.File _ret_var = default(Eina.File); + try + { + _ret_var = ((Image)wrapper).GetMmap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate double efl_gfx_frame_controller_frame_duration_get_delegate(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num); + private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + + + private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + + + public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_set"); + + private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) + { + Eina.Log.Debug("function efl_file_mmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Image)wrapper).SetMmap(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_gfx_frame_controller_frame_duration_get_api_delegate(System.IntPtr obj, int start_frame, int frame_num); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_duration_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_frame_duration_get"); - private static double frame_duration_get(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num) - { - Eina.Log.Debug("function efl_gfx_frame_controller_frame_duration_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Image)wrapper).GetFrameDuration( start_frame, frame_num); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_frame, frame_num); + else + { + return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } } - } - private static efl_gfx_frame_controller_frame_duration_get_delegate efl_gfx_frame_controller_frame_duration_get_static_delegate; + private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_get"); + + private static System.String file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Image)wrapper).GetFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_file_get_delegate efl_file_get_static_delegate; + + + private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + + public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_set"); + + private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) + { + Eina.Log.Debug("function efl_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Image)wrapper).SetFile(file); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_size_get"); - private static Eina.Size2D.NativeStruct load_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Image)wrapper).GetLoadSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); + } + } + + private static efl_file_set_delegate efl_file_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_get"); + + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Image)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_size_get_delegate efl_gfx_image_load_controller_load_size_get_static_delegate; + private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + + + private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_file_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetKey(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_load_controller_load_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + } + else + { + efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } + } + private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_loaded_get"); + + private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_loaded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetLoaded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_image_load_controller_load_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_size_set"); - private static void load_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; - - try { - ((Image)wrapper).SetLoadSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + return _ret_var; + + } + else + { + return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_size_set_delegate efl_gfx_image_load_controller_load_size_set_static_delegate; + private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + + + private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_load"); + + private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_load was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Image)wrapper).Load(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_gfx_image_load_controller_load_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate double efl_gfx_image_load_controller_load_dpi_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_dpi_get"); - private static double load_dpi_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Image)wrapper).GetLoadDpi(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_file_load_delegate efl_file_load_static_delegate; + + + private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_file_unload_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_unload"); + + private static void unload(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_unload was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).Unload(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_load_controller_load_dpi_get_delegate efl_gfx_image_load_controller_load_dpi_get_static_delegate; + private static efl_file_unload_delegate efl_file_unload_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_frame_controller_animated_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_frame_controller_animated_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_animated_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_animated_get"); + + private static bool animated_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_frame_controller_animated_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetAnimated(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_frame_controller_animated_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_image_load_controller_load_dpi_set_delegate(System.IntPtr obj, System.IntPtr pd, double dpi); + private static efl_gfx_frame_controller_animated_get_delegate efl_gfx_frame_controller_animated_get_static_delegate; + + + private delegate int efl_gfx_frame_controller_frame_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_gfx_frame_controller_frame_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_frame_get"); + + private static int frame_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_frame_controller_frame_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Image)wrapper).GetFrame(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_image_load_controller_load_dpi_set_api_delegate(System.IntPtr obj, double dpi); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_dpi_set"); - private static void load_dpi_set(System.IntPtr obj, System.IntPtr pd, double dpi) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetLoadDpi( dpi); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dpi); + } + else + { + return efl_gfx_frame_controller_frame_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_dpi_set_delegate efl_gfx_image_load_controller_load_dpi_set_static_delegate; + private static efl_gfx_frame_controller_frame_get_delegate efl_gfx_frame_controller_frame_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_frame_controller_frame_set_delegate(System.IntPtr obj, System.IntPtr pd, int frame_index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_frame_controller_frame_set_api_delegate(System.IntPtr obj, int frame_index); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_frame_set"); + + private static bool frame_set(System.IntPtr obj, System.IntPtr pd, int frame_index) + { + Eina.Log.Debug("function efl_gfx_frame_controller_frame_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).SetFrame(frame_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_frame_controller_frame_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), frame_index); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_region_support_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_frame_controller_frame_set_delegate efl_gfx_frame_controller_frame_set_static_delegate; + + + private delegate int efl_gfx_frame_controller_frame_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_gfx_frame_controller_frame_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_frame_count_get"); + + private static int frame_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_frame_controller_frame_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Image)wrapper).GetFrameCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_region_support_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_support_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_support_get"); - private static bool load_region_support_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_support_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetLoadRegionSupport(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_frame_controller_frame_count_get_delegate efl_gfx_frame_controller_frame_count_get_static_delegate; + + + private delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_loop_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_loop_type_get"); + + private static Efl.Gfx.FrameControllerLoopHint loop_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_frame_controller_loop_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.FrameControllerLoopHint _ret_var = default(Efl.Gfx.FrameControllerLoopHint); + try + { + _ret_var = ((Image)wrapper).GetLoopType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_region_support_get_delegate efl_gfx_image_load_controller_load_region_support_get_static_delegate; + private static efl_gfx_frame_controller_loop_type_get_delegate efl_gfx_frame_controller_loop_type_get_static_delegate; + + + private delegate int efl_gfx_frame_controller_loop_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_gfx_frame_controller_loop_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_loop_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_loop_count_get"); + + private static int loop_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_frame_controller_loop_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Image)wrapper).GetLoopCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_frame_controller_loop_count_get_delegate efl_gfx_frame_controller_loop_count_get_static_delegate; + + + private delegate double efl_gfx_frame_controller_frame_duration_get_delegate(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num); + + + public delegate double efl_gfx_frame_controller_frame_duration_get_api_delegate(System.IntPtr obj, int start_frame, int frame_num); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_duration_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_frame_duration_get"); + + private static double frame_duration_get(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num) + { + Eina.Log.Debug("function efl_gfx_frame_controller_frame_duration_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)wrapper).GetFrameDuration(start_frame, frame_num); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_get"); - private static Eina.Rect.NativeStruct load_region_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Image)wrapper).GetLoadRegion(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_frame, frame_num); + } + } + + private static efl_gfx_frame_controller_frame_duration_get_delegate efl_gfx_frame_controller_frame_duration_get_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_size_get"); + + private static Eina.Size2D.NativeStruct load_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Image)wrapper).GetLoadSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_region_get_delegate efl_gfx_image_load_controller_load_region_get_static_delegate; + private static efl_gfx_image_load_controller_load_size_get_delegate efl_gfx_image_load_controller_load_size_get_static_delegate; - private delegate void efl_gfx_image_load_controller_load_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region); + + private delegate void efl_gfx_image_load_controller_load_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_gfx_image_load_controller_load_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public delegate void efl_gfx_image_load_controller_load_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_set"); - private static void load_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_region = region; + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_size_set"); + + private static void load_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; - try { - ((Image)wrapper).SetLoadRegion( _in_region); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region); - } - } - private static efl_gfx_image_load_controller_load_region_set_delegate efl_gfx_image_load_controller_load_region_set_static_delegate; + try + { + ((Image)wrapper).SetLoadSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_load_controller_load_size_set_delegate efl_gfx_image_load_controller_load_size_set_static_delegate; + + + private delegate double efl_gfx_image_load_controller_load_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_load_controller_load_dpi_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_dpi_get"); + + private static double load_dpi_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)wrapper).GetLoadDpi(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_orientation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_orientation_get"); - private static bool load_orientation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetLoadOrientation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_orientation_get_delegate efl_gfx_image_load_controller_load_orientation_get_static_delegate; + private static efl_gfx_image_load_controller_load_dpi_get_delegate efl_gfx_image_load_controller_load_dpi_get_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_dpi_set_delegate(System.IntPtr obj, System.IntPtr pd, double dpi); + + + public delegate void efl_gfx_image_load_controller_load_dpi_set_api_delegate(System.IntPtr obj, double dpi); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_dpi_set"); + + private static void load_dpi_set(System.IntPtr obj, System.IntPtr pd, double dpi) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetLoadDpi(dpi); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dpi); + } + } - private delegate void efl_gfx_image_load_controller_load_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + private static efl_gfx_image_load_controller_load_dpi_set_delegate efl_gfx_image_load_controller_load_dpi_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_region_support_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_region_support_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_support_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_support_get"); + + private static bool load_region_support_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_support_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetLoadRegionSupport(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_image_load_controller_load_orientation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_orientation_set"); - private static void load_orientation_set(System.IntPtr obj, System.IntPtr pd, bool enable) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetLoadOrientation( enable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); + } + else + { + return efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_orientation_set_delegate efl_gfx_image_load_controller_load_orientation_set_static_delegate; - - private delegate int efl_gfx_image_load_controller_load_scale_down_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_load_controller_load_region_support_get_delegate efl_gfx_image_load_controller_load_region_support_get_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_get"); + + private static Eina.Rect.NativeStruct load_region_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Image)wrapper).GetLoadRegion(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_gfx_image_load_controller_load_scale_down_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_scale_down_get"); - private static int load_scale_down_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Image)wrapper).GetLoadScaleDown(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_scale_down_get_delegate efl_gfx_image_load_controller_load_scale_down_get_static_delegate; + private static efl_gfx_image_load_controller_load_region_get_delegate efl_gfx_image_load_controller_load_region_get_static_delegate; - private delegate void efl_gfx_image_load_controller_load_scale_down_set_delegate(System.IntPtr obj, System.IntPtr pd, int div); + + private delegate void efl_gfx_image_load_controller_load_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region); + + public delegate void efl_gfx_image_load_controller_load_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region); - public delegate void efl_gfx_image_load_controller_load_scale_down_set_api_delegate(System.IntPtr obj, int div); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_scale_down_set"); - private static void load_scale_down_set(System.IntPtr obj, System.IntPtr pd, int div) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetLoadScaleDown( div); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), div); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_set"); + + private static void load_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_region = region; + + try + { + ((Image)wrapper).SetLoadRegion(_in_region); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region); + } } - } - private static efl_gfx_image_load_controller_load_scale_down_set_delegate efl_gfx_image_load_controller_load_scale_down_set_static_delegate; + private static efl_gfx_image_load_controller_load_region_set_delegate efl_gfx_image_load_controller_load_region_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_orientation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_orientation_get"); + + private static bool load_orientation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetLoadOrientation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_skip_header_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_skip_header_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_skip_header_get"); - private static bool load_skip_header_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetLoadSkipHeader(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_image_load_controller_load_orientation_get_delegate efl_gfx_image_load_controller_load_orientation_get_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + + + public delegate void efl_gfx_image_load_controller_load_orientation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_orientation_set"); + + private static void load_orientation_set(System.IntPtr obj, System.IntPtr pd, bool enable) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetLoadOrientation(enable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_load_controller_load_skip_header_get_delegate efl_gfx_image_load_controller_load_skip_header_get_static_delegate; + private static efl_gfx_image_load_controller_load_orientation_set_delegate efl_gfx_image_load_controller_load_orientation_set_static_delegate; + + + private delegate int efl_gfx_image_load_controller_load_scale_down_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_gfx_image_load_controller_load_scale_down_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_scale_down_get"); + + private static int load_scale_down_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Image)wrapper).GetLoadScaleDown(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_load_controller_load_skip_header_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool skip); + return _ret_var; + } + else + { + return efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_image_load_controller_load_skip_header_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool skip); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_skip_header_set"); - private static void load_skip_header_set(System.IntPtr obj, System.IntPtr pd, bool skip) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetLoadSkipHeader( skip); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), skip); + private static efl_gfx_image_load_controller_load_scale_down_get_delegate efl_gfx_image_load_controller_load_scale_down_get_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_scale_down_set_delegate(System.IntPtr obj, System.IntPtr pd, int div); + + + public delegate void efl_gfx_image_load_controller_load_scale_down_set_api_delegate(System.IntPtr obj, int div); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_scale_down_set"); + + private static void load_scale_down_set(System.IntPtr obj, System.IntPtr pd, int div) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetLoadScaleDown(div); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), div); + } } - } - private static efl_gfx_image_load_controller_load_skip_header_set_delegate efl_gfx_image_load_controller_load_skip_header_set_static_delegate; + private static efl_gfx_image_load_controller_load_scale_down_set_delegate efl_gfx_image_load_controller_load_scale_down_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_skip_header_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_skip_header_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_skip_header_get"); + + private static bool load_skip_header_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetLoadSkipHeader(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_load_controller_load_async_start_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_load_controller_load_skip_header_get_delegate efl_gfx_image_load_controller_load_skip_header_get_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_skip_header_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool skip); + + + public delegate void efl_gfx_image_load_controller_load_skip_header_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool skip); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_skip_header_set"); + + private static void load_skip_header_set(System.IntPtr obj, System.IntPtr pd, bool skip) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetLoadSkipHeader(skip); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_image_load_controller_load_async_start_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_async_start"); - private static void load_async_start(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Image)wrapper).LoadAsyncStart(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), skip); + } } - } - private static efl_gfx_image_load_controller_load_async_start_delegate efl_gfx_image_load_controller_load_async_start_static_delegate; + private static efl_gfx_image_load_controller_load_skip_header_set_delegate efl_gfx_image_load_controller_load_skip_header_set_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_async_start_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_image_load_controller_load_async_start_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_async_start"); + + private static void load_async_start(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).LoadAsyncStart(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_image_load_controller_load_async_cancel_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_load_controller_load_async_start_delegate efl_gfx_image_load_controller_load_async_start_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_async_cancel_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_image_load_controller_load_async_cancel_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_cancel_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_async_cancel"); + + private static void load_async_cancel(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_cancel was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).LoadAsyncCancel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_gfx_image_load_controller_load_async_cancel_delegate efl_gfx_image_load_controller_load_async_cancel_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_gfx_image_load_controller_load_async_cancel_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_cancel_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_async_cancel"); - private static void load_async_cancel(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_cancel was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).LoadAsyncCancel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_load_controller_load_async_cancel_delegate efl_gfx_image_load_controller_load_async_cancel_static_delegate; } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_image_internal.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_image_internal.eo.cs index 7bd25dd..3ceb889 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_image_internal.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_image_internal.eo.cs @@ -3,36 +3,49 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Efl canvas internal image class -[ImageInternalNativeInherit] +[Efl.Canvas.ImageInternal.NativeMethods] public abstract class ImageInternal : Efl.Canvas.Object, Efl.Eo.IWrapper,Efl.IFileSave,Efl.IOrientation,Efl.Canvas.Filter.IInternal,Efl.Gfx.IBuffer,Efl.Gfx.IFill,Efl.Gfx.IFilter,Efl.Gfx.IImage,Efl.Gfx.IView { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ImageInternal)) - return Efl.Canvas.ImageInternalNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ImageInternal)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_image_internal_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ImageInternal(Efl.Object parent= null - ) : - base(efl_canvas_image_internal_class_get(), typeof(ImageInternal), parent) + ) : base(efl_canvas_image_internal_class_get(), typeof(ImageInternal), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ImageInternal(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class ImageInternalRealized : ImageInternal { @@ -40,165 +53,200 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.Eo.IWrapper,Efl.IFi { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ImageInternal(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ImageInternal(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ImagePreloadEvtKey = new object(); + /// Image data has been preloaded. public event EventHandler ImagePreloadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImagePreloadEvt_delegate)) { - eventHandlers.AddHandler(ImagePreloadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; - if (RemoveNativeEventHandler(key, this.evt_ImagePreloadEvt_delegate)) { - eventHandlers.RemoveHandler(ImagePreloadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImagePreloadEvt. - public void On_ImagePreloadEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImagePreloadEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImagePreloadEvt_delegate; - private void on_ImagePreloadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnImagePreloadEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ImagePreloadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ImageResizeEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Image was resized (its pixel data). public event EventHandler ImageResizeEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImageResizeEvt_delegate)) { - eventHandlers.AddHandler(ImageResizeEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; - if (RemoveNativeEventHandler(key, this.evt_ImageResizeEvt_delegate)) { - eventHandlers.RemoveHandler(ImageResizeEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImageResizeEvt. - public void On_ImageResizeEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImageResizeEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImageResizeEvt_delegate; - private void on_ImageResizeEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnImageResizeEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ImageResizeEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ImageUnloadEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Image data has been unloaded (by some mechanism in EFL that threw out the original image data). public event EventHandler ImageUnloadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImageUnloadEvt_delegate)) { - eventHandlers.AddHandler(ImageUnloadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; - if (RemoveNativeEventHandler(key, this.evt_ImageUnloadEvt_delegate)) { - eventHandlers.RemoveHandler(ImageUnloadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImageUnloadEvt. - public void On_ImageUnloadEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImageUnloadEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImageUnloadEvt_delegate; - private void on_ImageUnloadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnImageUnloadEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ImageUnloadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ImagePreloadEvt_delegate = new Efl.EventCb(on_ImagePreloadEvt_NativeCallback); - evt_ImageResizeEvt_delegate = new Efl.EventCb(on_ImageResizeEvt_NativeCallback); - evt_ImageUnloadEvt_delegate = new Efl.EventCb(on_ImageUnloadEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Save the given image object's contents to an (image) file. /// The extension suffix on file will determine which saver module Evas is to use when saving, thus the final file's format. If the file supports multiple data stored in it (Eet ones), you can specify the key to be used as the index of the image in it. @@ -209,9 +257,9 @@ private static object ImageUnloadEvtKey = new object(); /// The image key in the file (if an Eet one), or null, otherwise. /// The flags to be used (null for defaults). /// true on success, false otherwise - virtual public bool Save( System.String file, System.String key, ref Efl.FileSaveInfo info) { + virtual public bool Save(System.String file, System.String key, ref Efl.FileSaveInfo info) { Efl.FileSaveInfo.NativeStruct _in_info = info; - var _ret_var = Efl.IFileSaveNativeInherit.efl_file_save_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file, key, ref _in_info); + var _ret_var = Efl.IFileSaveConcrete.NativeMethods.efl_file_save_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file, key, ref _in_info); Eina.Error.RaiseIfUnhandledException(); info = _in_info; return _ret_var; @@ -220,70 +268,65 @@ private static object ImageUnloadEvtKey = new object(); /// This can be used to set the rotation on an image or a window, for instance. /// The rotation angle (CCW), see . virtual public Efl.Orient GetOrientation() { - var _ret_var = Efl.IOrientationNativeInherit.efl_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IOrientationConcrete.NativeMethods.efl_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the orientation of a given object. /// This can be used to set the rotation on an image or a window, for instance. /// The rotation angle (CCW), see . - /// - virtual public void SetOrientation( Efl.Orient dir) { - Efl.IOrientationNativeInherit.efl_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetOrientation(Efl.Orient dir) { + Efl.IOrientationConcrete.NativeMethods.efl_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// Control the flip of the given image /// Use this function to change how your image is to be flipped: vertically or horizontally or transpose or traverse. /// Flip method virtual public Efl.Flip GetFlip() { - var _ret_var = Efl.IOrientationNativeInherit.efl_orientation_flip_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IOrientationConcrete.NativeMethods.efl_orientation_flip_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the flip of the given image /// Use this function to change how your image is to be flipped: vertically or horizontally or transpose or traverse. /// Flip method - /// - virtual public void SetFlip( Efl.Flip flip) { - Efl.IOrientationNativeInherit.efl_orientation_flip_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), flip); + virtual public void SetFlip(Efl.Flip flip) { + Efl.IOrientationConcrete.NativeMethods.efl_orientation_flip_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),flip); Eina.Error.RaiseIfUnhandledException(); } /// Marks this filter as changed. /// true if filter changed, false otherwise - /// - virtual public void SetFilterChanged( bool val) { - Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_changed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetFilterChanged(bool val) { + Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_changed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Marks this filter as invalid. /// true if filter is invalid, false otherwise - /// - virtual public void SetFilterInvalid( bool val) { - Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_invalid_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetFilterInvalid(bool val) { + Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_invalid_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Retrieve cached output buffer, if any. /// Does not increment the reference count. /// Output buffer virtual public System.IntPtr GetFilterOutputBuffer() { - var _ret_var = Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_output_buffer_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_output_buffer_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Called by Efl.Canvas.Filter.Internal to determine whether the input is alpha or rgba. /// true on success, false otherwise virtual public bool FilterInputAlpha() { - var _ret_var = Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_input_alpha_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_input_alpha_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Called by Efl.Canvas.Filter.Internal to request the parent class for state information (color, etc...). /// State info to fill in /// Private data for the class - /// - virtual public void FilterStatePrepare( out Efl.Canvas.Filter.State state, System.IntPtr data) { + virtual public void FilterStatePrepare(out Efl.Canvas.Filter.State state, System.IntPtr data) { var _out_state = new Efl.Canvas.Filter.State.NativeStruct(); - Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_state_prepare_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out _out_state, data); + Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_state_prepare_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out _out_state, data); Eina.Error.RaiseIfUnhandledException(); state = _out_state; } @@ -301,54 +344,51 @@ private static object ImageUnloadEvtKey = new object(); /// Y offset /// true when the operation should be done asynchronously, false otherwise /// Indicates success from the object render function. - virtual public bool FilterInputRender( System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, bool do_async) { - var _ret_var = Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_input_render_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); + virtual public bool FilterInputRender(System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, bool do_async) { + var _ret_var = Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_input_render_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Called when filter changes must trigger a redraw of the object. /// Virtual, to be implemented in the parent class. - /// virtual public void FilterDirty() { - Efl.Canvas.Filter.IInternalNativeInherit.evas_filter_dirty_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Canvas.Filter.IInternalConcrete.NativeMethods.evas_filter_dirty_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Rectangular size of the pixel buffer as allocated in memory. /// Size of the buffer in pixels. virtual public Eina.Size2D GetBufferSize() { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Potentially not implemented, may be read-only. /// Size of the buffer in pixels. - /// - virtual public void SetBufferSize( Eina.Size2D sz) { + virtual public void SetBufferSize(Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_sz); + Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_sz); Eina.Error.RaiseIfUnhandledException(); } /// Returns the current encoding of this buffer's pixels. /// See for more information on the supported formats. /// Colorspace virtual public Efl.Gfx.Colorspace GetColorspace() { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_colorspace_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_colorspace_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Retrieve whether alpha channel data is used on this object. /// Whether to use alpha channel (true) data or not (false). virtual public bool GetAlpha() { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_alpha_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_alpha_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Change alpha channel usage for this object. /// This function sets a flag on an image object indicating whether or not to use alpha channel data. A value of true makes it use alpha channel data, and false makes it ignore that data. Note that this has nothing to do with an object's color as manipulated by . /// Whether to use alpha channel (true) data or not (false). - /// - virtual public void SetAlpha( bool alpha) { - Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_alpha_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), alpha); + virtual public void SetAlpha(bool alpha) { + Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_alpha_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),alpha); Eina.Error.RaiseIfUnhandledException(); } /// Length in bytes of one row of pixels in memory. @@ -357,7 +397,7 @@ private static object ImageUnloadEvtKey = new object(); /// When applicable, this will include the as well as potential extra padding. /// Stride virtual public int GetStride() { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_stride_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_stride_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -367,18 +407,16 @@ private static object ImageUnloadEvtKey = new object(); /// Right border pixels, usually 0 or 1 /// Top border pixels, usually 0 or 1 /// Bottom border pixels, usually 0 or 1 - /// - virtual public void GetBufferBorders( out uint l, out uint r, out uint t, out uint b) { - Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_borders_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out l, out r, out t, out b); + virtual public void GetBufferBorders(out uint l, out uint r, out uint t, out uint b) { + Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_borders_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Mark a sub-region of the given image object to be redrawn. /// This function schedules a particular rectangular region of an image object to be updated (redrawn) at the next rendering cycle. /// The updated region. - /// - virtual public void AddBufferUpdate( ref Eina.Rect region) { + virtual public void AddBufferUpdate(ref Eina.Rect region) { Eina.Rect.NativeStruct _in_region = region; - Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_update_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref _in_region); + Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_update_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref _in_region); Eina.Error.RaiseIfUnhandledException(); region = _in_region; } @@ -392,9 +430,9 @@ private static object ImageUnloadEvtKey = new object(); /// Plane ID. 0 by default. Useful for planar formats only. /// Returns the length in bytes of a mapped line /// The data slice. In case of failure, the memory pointer will be null. - virtual public Eina.RwSlice BufferMap( Efl.Gfx.BufferAccessMode mode, ref Eina.Rect region, Efl.Gfx.Colorspace cspace, int plane, out int stride) { + virtual public Eina.RwSlice BufferMap(Efl.Gfx.BufferAccessMode mode, ref Eina.Rect region, Efl.Gfx.Colorspace cspace, int plane, out int stride) { Eina.Rect.NativeStruct _in_region = region; - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_map_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mode, ref _in_region, cspace, plane, out stride); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_map_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode, ref _in_region, cspace, plane, out stride); Eina.Error.RaiseIfUnhandledException(); region = _in_region; return _ret_var; @@ -405,8 +443,8 @@ private static object ImageUnloadEvtKey = new object(); /// Note: The slice struct does not need to be the one returned by , only its contents (mem and len) must match. But after a call to the original slice structure is not valid anymore. /// Data slice returned by a previous call to map. /// true on success, false otherwise - virtual public bool BufferUnmap( Eina.RwSlice slice) { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_unmap_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), slice); + virtual public bool BufferUnmap(Eina.RwSlice slice) { + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_unmap_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),slice); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -424,10 +462,10 @@ private static object ImageUnloadEvtKey = new object(); /// argb8888 by default. /// Plane ID. 0 by default. Useful for planar formats only. /// true on success, false otherwise - virtual public bool SetBufferCopy( Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane) { + virtual public bool SetBufferCopy(Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane) { var _in_slice = Eina.PrimitiveConversion.ManagedToPointerAlloc(slice); Eina.Size2D.NativeStruct _in_size = size; - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_copy_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_slice, _in_size, stride, cspace, plane); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_copy_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_slice, _in_size, stride, cspace, plane); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -445,10 +483,10 @@ private static object ImageUnloadEvtKey = new object(); /// argb8888 by default. /// Plane ID. 0 by default. Useful for planar formats only. /// true on success, false otherwise - virtual public bool SetBufferManaged( Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane) { + virtual public bool SetBufferManaged(Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane) { var _in_slice = Eina.PrimitiveConversion.ManagedToPointerAlloc(slice); Eina.Size2D.NativeStruct _in_size = size; - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_managed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_slice, _in_size, stride, cspace, plane); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_managed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_slice, _in_size, stride, cspace, plane); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -456,8 +494,8 @@ private static object ImageUnloadEvtKey = new object(); /// This will return null unless was used to pass in an external data pointer. /// Plane ID. 0 by default. Useful for planar formats only. /// The data slice. The memory pointer will be null in case of failure. - virtual public Eina.Slice GetBufferManaged( int plane) { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_managed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), plane); + virtual public Eina.Slice GetBufferManaged(int plane) { + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_managed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),plane); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -469,7 +507,7 @@ private static object ImageUnloadEvtKey = new object(); /// This flag is true by default (used to be false with the old APIs, and was known as "filled"). /// true to make the fill property follow object size or false otherwise. virtual public bool GetFillAuto() { - var _ret_var = Efl.Gfx.IFillNativeInherit.efl_gfx_fill_auto_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IFillConcrete.NativeMethods.efl_gfx_fill_auto_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -480,9 +518,8 @@ private static object ImageUnloadEvtKey = new object(); /// /// This flag is true by default (used to be false with the old APIs, and was known as "filled"). /// true to make the fill property follow object size or false otherwise. - /// - virtual public void SetFillAuto( bool filled) { - Efl.Gfx.IFillNativeInherit.efl_gfx_fill_auto_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), filled); + virtual public void SetFillAuto(bool filled) { + Efl.Gfx.IFillConcrete.NativeMethods.efl_gfx_fill_auto_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),filled); Eina.Error.RaiseIfUnhandledException(); } /// Specifies how to tile an image to fill its rectangle geometry. @@ -491,7 +528,7 @@ private static object ImageUnloadEvtKey = new object(); /// Setting this property will reset the to false. /// The top-left corner to start drawing from as well as the size at which the bound image will be displayed. virtual public Eina.Rect GetFill() { - var _ret_var = Efl.Gfx.IFillNativeInherit.efl_gfx_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IFillConcrete.NativeMethods.efl_gfx_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -500,18 +537,16 @@ private static object ImageUnloadEvtKey = new object(); /// /// Setting this property will reset the to false. /// The top-left corner to start drawing from as well as the size at which the bound image will be displayed. - /// - virtual public void SetFill( Eina.Rect fill) { + virtual public void SetFill(Eina.Rect fill) { Eina.Rect.NativeStruct _in_fill = fill; - Efl.Gfx.IFillNativeInherit.efl_gfx_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_fill); + Efl.Gfx.IFillConcrete.NativeMethods.efl_gfx_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_fill); Eina.Error.RaiseIfUnhandledException(); } /// Gets the code of the filter program set on this object. May be null. /// The Lua program source code. /// An optional name for this filter. - /// - virtual public void GetFilterProgram( out System.String code, out System.String name) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_program_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out code, out name); + virtual public void GetFilterProgram(out System.String code, out System.String name) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_program_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out code, out name); Eina.Error.RaiseIfUnhandledException(); } /// Set a graphical filter program on this object. @@ -522,9 +557,8 @@ private static object ImageUnloadEvtKey = new object(); /// Set to null to disable filtering. /// The Lua program source code. /// An optional name for this filter. - /// - virtual public void SetFilterProgram( System.String code, System.String name) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_program_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), code, name); + virtual public void SetFilterProgram(System.String code, System.String name) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_program_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),code, name); Eina.Error.RaiseIfUnhandledException(); } /// Set the current state of the filter. @@ -536,9 +570,8 @@ private static object ImageUnloadEvtKey = new object(); /// Next filter state, optional /// Next value, optional /// Position, optional - /// - virtual public void GetFilterState( out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_state_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out cur_state, out cur_val, out next_state, out next_val, out pos); + virtual public void GetFilterState(out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_state_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out cur_state, out cur_val, out next_state, out next_val, out pos); Eina.Error.RaiseIfUnhandledException(); } /// Set the current state of the filter. @@ -550,9 +583,8 @@ private static object ImageUnloadEvtKey = new object(); /// Next filter state, optional /// Next value, optional /// Position, optional - /// - virtual public void SetFilterState( System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_state_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur_state, cur_val, next_state, next_val, pos); + virtual public void SetFilterState(System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_state_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur_state, cur_val, next_state, next_val, pos); Eina.Error.RaiseIfUnhandledException(); } /// Gets the padding required to apply this filter. @@ -560,17 +592,16 @@ private static object ImageUnloadEvtKey = new object(); /// Padding on the right /// Padding on the top /// Padding on the bottom - /// - virtual public void GetFilterPadding( out int l, out int r, out int t, out int b) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out l, out r, out t, out b); + virtual public void GetFilterPadding(out int l, out int r, out int t, out int b) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Bind an object to use as a mask or texture in a filter program. /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered). /// Buffer name as used in the program. /// Object to use as a source of pixels. - virtual public Efl.Gfx.IEntity GetFilterSource( System.String name) { - var _ret_var = Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Efl.Gfx.IEntity GetFilterSource(System.String name) { + var _ret_var = Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -578,9 +609,8 @@ private static object ImageUnloadEvtKey = new object(); /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered). /// Buffer name as used in the program. /// Object to use as a source of pixels. - /// - virtual public void SetFilterSource( System.String name, Efl.Gfx.IEntity source) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, source); + virtual public void SetFilterSource(System.String name, Efl.Gfx.IEntity source) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, source); Eina.Error.RaiseIfUnhandledException(); } /// Extra data used by the filter program. @@ -590,9 +620,8 @@ private static object ImageUnloadEvtKey = new object(); /// Name of the global variable /// String value to use as data /// If true, execute 'name = value' - /// - virtual public void GetFilterData( System.String name, out System.String value, out bool execute) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, out value, out execute); + virtual public void GetFilterData(System.String name, out System.String value, out bool execute) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, out value, out execute); Eina.Error.RaiseIfUnhandledException(); } /// Extra data used by the filter program. @@ -602,9 +631,8 @@ private static object ImageUnloadEvtKey = new object(); /// Name of the global variable /// String value to use as data /// If true, execute 'name = value' - /// - virtual public void SetFilterData( System.String name, System.String value, bool execute) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_data_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, value, execute); + virtual public void SetFilterData(System.String name, System.String value, bool execute) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, value, execute); Eina.Error.RaiseIfUnhandledException(); } /// Whether to use high-quality image scaling algorithm for this image. @@ -613,7 +641,7 @@ private static object ImageUnloadEvtKey = new object(); /// true by default /// Whether to use smooth scale or not. virtual public bool GetSmoothScale() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_smooth_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -622,29 +650,27 @@ private static object ImageUnloadEvtKey = new object(); /// /// true by default /// Whether to use smooth scale or not. - /// - virtual public void SetSmoothScale( bool smooth_scale) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_smooth_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), smooth_scale); + virtual public void SetSmoothScale(bool smooth_scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),smooth_scale); Eina.Error.RaiseIfUnhandledException(); } /// Control how the image is scaled. /// Image scale type virtual public Efl.Gfx.ImageScaleType GetScaleType() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control how the image is scaled. /// Image scale type - /// - virtual public void SetScaleType( Efl.Gfx.ImageScaleType scale_type) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale_type); + virtual public void SetScaleType(Efl.Gfx.ImageScaleType scale_type) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale_type); Eina.Error.RaiseIfUnhandledException(); } /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. virtual public double GetRatio() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_ratio_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_ratio_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -662,9 +688,8 @@ private static object ImageUnloadEvtKey = new object(); /// The border's right width. /// The border's top height. /// The border's bottom height. - /// - virtual public void GetBorder( out int l, out int r, out int t, out int b) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out l, out r, out t, out b); + virtual public void GetBorder(out int l, out int r, out int t, out int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Dimensions of this image's border, a region that does not scale with the center area. @@ -681,9 +706,8 @@ private static object ImageUnloadEvtKey = new object(); /// The border's right width. /// The border's top height. /// The border's bottom height. - /// - virtual public void SetBorder( int l, int r, int t, int b) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), l, r, t, b); + virtual public void SetBorder(int l, int r, int t, int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),l, r, t, b); Eina.Error.RaiseIfUnhandledException(); } /// Scaling factor applied to the image borders. @@ -692,7 +716,7 @@ private static object ImageUnloadEvtKey = new object(); /// Default value is 1.0 (no scaling). /// The scale factor. virtual public double GetBorderScale() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -701,9 +725,8 @@ private static object ImageUnloadEvtKey = new object(); /// /// Default value is 1.0 (no scaling). /// The scale factor. - /// - virtual public void SetBorderScale( double scale) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale); + virtual public void SetBorderScale(double scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale); Eina.Error.RaiseIfUnhandledException(); } /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. @@ -712,7 +735,7 @@ private static object ImageUnloadEvtKey = new object(); /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. virtual public Efl.Gfx.BorderFillMode GetBorderCenterFill() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_center_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -721,9 +744,8 @@ private static object ImageUnloadEvtKey = new object(); /// /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. - /// - virtual public void SetBorderCenterFill( Efl.Gfx.BorderFillMode fill) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_center_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fill); + virtual public void SetBorderCenterFill(Efl.Gfx.BorderFillMode fill) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fill); Eina.Error.RaiseIfUnhandledException(); } /// This represents the size of the original image in pixels. @@ -732,7 +754,7 @@ private static object ImageUnloadEvtKey = new object(); /// This is a read-only property, and may return 0x0. /// The size in pixels. virtual public Eina.Size2D GetImageSize() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -740,38 +762,36 @@ private static object ImageUnloadEvtKey = new object(); /// This returns #EVAS_IMAGE_CONTENT_HINT_NONE on error. /// Dynamic or static content hint, see virtual public Efl.Gfx.ImageContentHint GetContentHint() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_content_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the content hint setting of a given image object of the canvas. /// This function sets the content hint value of the given image of the canvas. For example, if you're on the GL engine and your driver implementation supports it, setting this hint to #EVAS_IMAGE_CONTENT_HINT_DYNAMIC will make it need zero copies at texture upload time, which is an "expensive" operation. /// Dynamic or static content hint, see - /// - virtual public void SetContentHint( Efl.Gfx.ImageContentHint hint) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_content_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hint); + virtual public void SetContentHint(Efl.Gfx.ImageContentHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hint); Eina.Error.RaiseIfUnhandledException(); } /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see virtual public Efl.Gfx.ImageScaleHint GetScaleHint() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the scale hint of a given image of the canvas. /// This function sets the scale hint value of the given image object in the canvas, which will affect how Evas is to cache scaled versions of its original source image. /// Scalable or static size hint, see - /// - virtual public void SetScaleHint( Efl.Gfx.ImageScaleHint hint) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hint); + virtual public void SetScaleHint(Efl.Gfx.ImageScaleHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hint); Eina.Error.RaiseIfUnhandledException(); } /// Gets the (last) file loading error for a given object. /// The load error code. virtual public Eina.Error GetImageLoadError() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_load_error_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_load_error_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -787,7 +807,7 @@ private static object ImageUnloadEvtKey = new object(); /// Refer to each implementing class specific documentation for more details. /// Size of the view. virtual public Eina.Size2D GetViewSize() { - var _ret_var = Efl.Gfx.IViewNativeInherit.efl_gfx_view_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IViewConcrete.NativeMethods.efl_gfx_view_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -802,10 +822,9 @@ private static object ImageUnloadEvtKey = new object(); /// /// Refer to each implementing class specific documentation for more details. /// Size of the view. - /// - virtual public void SetViewSize( Eina.Size2D size) { + virtual public void SetViewSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IViewNativeInherit.efl_gfx_view_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Gfx.IViewConcrete.NativeMethods.efl_gfx_view_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Control the orientation of a given object. @@ -813,24 +832,24 @@ private static object ImageUnloadEvtKey = new object(); /// The rotation angle (CCW), see . public Efl.Orient Orientation { get { return GetOrientation(); } - set { SetOrientation( value); } + set { SetOrientation(value); } } /// Control the flip of the given image /// Use this function to change how your image is to be flipped: vertically or horizontally or transpose or traverse. /// Flip method public Efl.Flip Flip { get { return GetFlip(); } - set { SetFlip( value); } + set { SetFlip(value); } } /// Marks this filter as changed. /// true if filter changed, false otherwise public bool FilterChanged { - set { SetFilterChanged( value); } + set { SetFilterChanged(value); } } /// Marks this filter as invalid. /// true if filter is invalid, false otherwise public bool FilterInvalid { - set { SetFilterInvalid( value); } + set { SetFilterInvalid(value); } } /// Retrieve cached output buffer, if any. /// Does not increment the reference count. @@ -842,7 +861,7 @@ private static object ImageUnloadEvtKey = new object(); /// Size of the buffer in pixels. public Eina.Size2D BufferSize { get { return GetBufferSize(); } - set { SetBufferSize( value); } + set { SetBufferSize(value); } } /// The colorspace defines how pixels are encoded in the image in memory. /// By default, images are encoded in 32-bit BGRA, ie. each pixel takes 4 bytes in memory, with each channel B,G,R,A encoding the color with values from 0 to 255. @@ -857,7 +876,7 @@ private static object ImageUnloadEvtKey = new object(); /// Whether to use alpha channel (true) data or not (false). public bool Alpha { get { return GetAlpha(); } - set { SetAlpha( value); } + set { SetAlpha(value); } } /// Length in bytes of one row of pixels in memory. /// Usually this will be equal to width * 4, with a plain BGRA image. This may return 0 if the stride is not applicable. @@ -876,7 +895,7 @@ private static object ImageUnloadEvtKey = new object(); /// true to make the fill property follow object size or false otherwise. public bool FillAuto { get { return GetFillAuto(); } - set { SetFillAuto( value); } + set { SetFillAuto(value); } } /// Specifies how to tile an image to fill its rectangle geometry. /// Note that if w or h are smaller than the dimensions of the object, the displayed image will be tiled around the object's area. To have only one copy of the bound image drawn, x and y must be 0 and w and h need to be the exact width and height of the image object itself, respectively. @@ -885,7 +904,7 @@ private static object ImageUnloadEvtKey = new object(); /// The top-left corner to start drawing from as well as the size at which the bound image will be displayed. public Eina.Rect Fill { get { return GetFill(); } - set { SetFill( value); } + set { SetFill(value); } } /// Whether to use high-quality image scaling algorithm for this image. /// When enabled, a higher quality image scaling algorithm is used when scaling images to sizes other than the source image's original one. This gives better results but is more computationally expensive. @@ -894,13 +913,13 @@ private static object ImageUnloadEvtKey = new object(); /// Whether to use smooth scale or not. public bool SmoothScale { get { return GetSmoothScale(); } - set { SetSmoothScale( value); } + set { SetSmoothScale(value); } } /// Control how the image is scaled. /// Image scale type public Efl.Gfx.ImageScaleType ScaleType { get { return GetScaleType(); } - set { SetScaleType( value); } + set { SetScaleType(value); } } /// The native width/height ratio of the image. /// The image's ratio. @@ -914,7 +933,7 @@ private static object ImageUnloadEvtKey = new object(); /// The scale factor. public double BorderScale { get { return GetBorderScale(); } - set { SetBorderScale( value); } + set { SetBorderScale(value); } } /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. /// This function sets how the center part of the image object's source image is to be drawn, which must be one of the values in . By center we mean the complementary part of that defined by . This is very useful for making frames and decorations. You would most probably also be using a filled image (as in ) to use as a frame. @@ -923,7 +942,7 @@ private static object ImageUnloadEvtKey = new object(); /// Fill mode of the center region. public Efl.Gfx.BorderFillMode BorderCenterFill { get { return GetBorderCenterFill(); } - set { SetBorderCenterFill( value); } + set { SetBorderCenterFill(value); } } /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. @@ -938,14 +957,14 @@ private static object ImageUnloadEvtKey = new object(); /// Dynamic or static content hint, see public Efl.Gfx.ImageContentHint ContentHint { get { return GetContentHint(); } - set { SetContentHint( value); } + set { SetContentHint(value); } } /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see public Efl.Gfx.ImageScaleHint ScaleHint { get { return GetScaleHint(); } - set { SetScaleHint( value); } + set { SetScaleHint(value); } } /// Gets the (last) file loading error for a given object. /// The load error code. @@ -965,1678 +984,2659 @@ private static object ImageUnloadEvtKey = new object(); /// Size of the view. public Eina.Size2D ViewSize { get { return GetViewSize(); } - set { SetViewSize( value); } + set { SetViewSize(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.ImageInternal.efl_canvas_image_internal_class_get(); } -} -public class ImageInternalNativeInherit : Efl.Canvas.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_file_save_static_delegate == null) - efl_file_save_static_delegate = new efl_file_save_delegate(save); - if (methods.FirstOrDefault(m => m.Name == "Save") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_save"), func = Marshal.GetFunctionPointerForDelegate(efl_file_save_static_delegate)}); - if (efl_orientation_get_static_delegate == null) - efl_orientation_get_static_delegate = new efl_orientation_get_delegate(orientation_get); - if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_get_static_delegate)}); - if (efl_orientation_set_static_delegate == null) - efl_orientation_set_static_delegate = new efl_orientation_set_delegate(orientation_set); - if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_set_static_delegate)}); - if (efl_orientation_flip_get_static_delegate == null) - efl_orientation_flip_get_static_delegate = new efl_orientation_flip_get_delegate(flip_get); - if (methods.FirstOrDefault(m => m.Name == "GetFlip") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_flip_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_get_static_delegate)}); - if (efl_orientation_flip_set_static_delegate == null) - efl_orientation_flip_set_static_delegate = new efl_orientation_flip_set_delegate(flip_set); - if (methods.FirstOrDefault(m => m.Name == "SetFlip") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_flip_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_set_static_delegate)}); - if (evas_filter_changed_set_static_delegate == null) - evas_filter_changed_set_static_delegate = new evas_filter_changed_set_delegate(filter_changed_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterChanged") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_changed_set"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_changed_set_static_delegate)}); - if (evas_filter_invalid_set_static_delegate == null) - evas_filter_invalid_set_static_delegate = new evas_filter_invalid_set_delegate(filter_invalid_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterInvalid") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_invalid_set"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_invalid_set_static_delegate)}); - if (evas_filter_output_buffer_get_static_delegate == null) - evas_filter_output_buffer_get_static_delegate = new evas_filter_output_buffer_get_delegate(filter_output_buffer_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterOutputBuffer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_output_buffer_get"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_output_buffer_get_static_delegate)}); - if (evas_filter_input_alpha_static_delegate == null) - evas_filter_input_alpha_static_delegate = new evas_filter_input_alpha_delegate(filter_input_alpha); - if (methods.FirstOrDefault(m => m.Name == "FilterInputAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_input_alpha"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_input_alpha_static_delegate)}); - if (evas_filter_state_prepare_static_delegate == null) - evas_filter_state_prepare_static_delegate = new evas_filter_state_prepare_delegate(filter_state_prepare); - if (methods.FirstOrDefault(m => m.Name == "FilterStatePrepare") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_state_prepare"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_state_prepare_static_delegate)}); - if (evas_filter_input_render_static_delegate == null) - evas_filter_input_render_static_delegate = new evas_filter_input_render_delegate(filter_input_render); - if (methods.FirstOrDefault(m => m.Name == "FilterInputRender") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_input_render"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_input_render_static_delegate)}); - if (evas_filter_dirty_static_delegate == null) - evas_filter_dirty_static_delegate = new evas_filter_dirty_delegate(filter_dirty); - if (methods.FirstOrDefault(m => m.Name == "FilterDirty") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "evas_filter_dirty"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_dirty_static_delegate)}); - if (efl_gfx_buffer_size_get_static_delegate == null) - efl_gfx_buffer_size_get_static_delegate = new efl_gfx_buffer_size_get_delegate(buffer_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetBufferSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_size_get_static_delegate)}); - if (efl_gfx_buffer_size_set_static_delegate == null) - efl_gfx_buffer_size_set_static_delegate = new efl_gfx_buffer_size_set_delegate(buffer_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetBufferSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_size_set_static_delegate)}); - if (efl_gfx_buffer_colorspace_get_static_delegate == null) - efl_gfx_buffer_colorspace_get_static_delegate = new efl_gfx_buffer_colorspace_get_delegate(colorspace_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorspace") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_colorspace_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_colorspace_get_static_delegate)}); - if (efl_gfx_buffer_alpha_get_static_delegate == null) - efl_gfx_buffer_alpha_get_static_delegate = new efl_gfx_buffer_alpha_get_delegate(alpha_get); - if (methods.FirstOrDefault(m => m.Name == "GetAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_alpha_get_static_delegate)}); - if (efl_gfx_buffer_alpha_set_static_delegate == null) - efl_gfx_buffer_alpha_set_static_delegate = new efl_gfx_buffer_alpha_set_delegate(alpha_set); - if (methods.FirstOrDefault(m => m.Name == "SetAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_alpha_set_static_delegate)}); - if (efl_gfx_buffer_stride_get_static_delegate == null) - efl_gfx_buffer_stride_get_static_delegate = new efl_gfx_buffer_stride_get_delegate(stride_get); - if (methods.FirstOrDefault(m => m.Name == "GetStride") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_stride_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_stride_get_static_delegate)}); - if (efl_gfx_buffer_borders_get_static_delegate == null) - efl_gfx_buffer_borders_get_static_delegate = new efl_gfx_buffer_borders_get_delegate(buffer_borders_get); - if (methods.FirstOrDefault(m => m.Name == "GetBufferBorders") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_borders_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_borders_get_static_delegate)}); - if (efl_gfx_buffer_update_add_static_delegate == null) - efl_gfx_buffer_update_add_static_delegate = new efl_gfx_buffer_update_add_delegate(buffer_update_add); - if (methods.FirstOrDefault(m => m.Name == "AddBufferUpdate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_update_add"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_update_add_static_delegate)}); - if (efl_gfx_buffer_map_static_delegate == null) - efl_gfx_buffer_map_static_delegate = new efl_gfx_buffer_map_delegate(buffer_map); - if (methods.FirstOrDefault(m => m.Name == "BufferMap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_map"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_map_static_delegate)}); - if (efl_gfx_buffer_unmap_static_delegate == null) - efl_gfx_buffer_unmap_static_delegate = new efl_gfx_buffer_unmap_delegate(buffer_unmap); - if (methods.FirstOrDefault(m => m.Name == "BufferUnmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_unmap"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_unmap_static_delegate)}); - if (efl_gfx_buffer_copy_set_static_delegate == null) - efl_gfx_buffer_copy_set_static_delegate = new efl_gfx_buffer_copy_set_delegate(buffer_copy_set); - if (methods.FirstOrDefault(m => m.Name == "SetBufferCopy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_copy_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_copy_set_static_delegate)}); - if (efl_gfx_buffer_managed_set_static_delegate == null) - efl_gfx_buffer_managed_set_static_delegate = new efl_gfx_buffer_managed_set_delegate(buffer_managed_set); - if (methods.FirstOrDefault(m => m.Name == "SetBufferManaged") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_managed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_managed_set_static_delegate)}); - if (efl_gfx_buffer_managed_get_static_delegate == null) - efl_gfx_buffer_managed_get_static_delegate = new efl_gfx_buffer_managed_get_delegate(buffer_managed_get); - if (methods.FirstOrDefault(m => m.Name == "GetBufferManaged") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_managed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_managed_get_static_delegate)}); - if (efl_gfx_fill_auto_get_static_delegate == null) - efl_gfx_fill_auto_get_static_delegate = new efl_gfx_fill_auto_get_delegate(fill_auto_get); - if (methods.FirstOrDefault(m => m.Name == "GetFillAuto") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_auto_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_auto_get_static_delegate)}); - if (efl_gfx_fill_auto_set_static_delegate == null) - efl_gfx_fill_auto_set_static_delegate = new efl_gfx_fill_auto_set_delegate(fill_auto_set); - if (methods.FirstOrDefault(m => m.Name == "SetFillAuto") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_auto_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_auto_set_static_delegate)}); - if (efl_gfx_fill_get_static_delegate == null) - efl_gfx_fill_get_static_delegate = new efl_gfx_fill_get_delegate(fill_get); - if (methods.FirstOrDefault(m => m.Name == "GetFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_get_static_delegate)}); - if (efl_gfx_fill_set_static_delegate == null) - efl_gfx_fill_set_static_delegate = new efl_gfx_fill_set_delegate(fill_set); - if (methods.FirstOrDefault(m => m.Name == "SetFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_set_static_delegate)}); - if (efl_gfx_filter_program_get_static_delegate == null) - efl_gfx_filter_program_get_static_delegate = new efl_gfx_filter_program_get_delegate(filter_program_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterProgram") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_program_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_get_static_delegate)}); - if (efl_gfx_filter_program_set_static_delegate == null) - efl_gfx_filter_program_set_static_delegate = new efl_gfx_filter_program_set_delegate(filter_program_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterProgram") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_program_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_set_static_delegate)}); - if (efl_gfx_filter_state_get_static_delegate == null) - efl_gfx_filter_state_get_static_delegate = new efl_gfx_filter_state_get_delegate(filter_state_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_get_static_delegate)}); - if (efl_gfx_filter_state_set_static_delegate == null) - efl_gfx_filter_state_set_static_delegate = new efl_gfx_filter_state_set_delegate(filter_state_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_state_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_set_static_delegate)}); - if (efl_gfx_filter_padding_get_static_delegate == null) - efl_gfx_filter_padding_get_static_delegate = new efl_gfx_filter_padding_get_delegate(filter_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_padding_get_static_delegate)}); - if (efl_gfx_filter_source_get_static_delegate == null) - efl_gfx_filter_source_get_static_delegate = new efl_gfx_filter_source_get_delegate(filter_source_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_get_static_delegate)}); - if (efl_gfx_filter_source_set_static_delegate == null) - efl_gfx_filter_source_set_static_delegate = new efl_gfx_filter_source_set_delegate(filter_source_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_set_static_delegate)}); - if (efl_gfx_filter_data_get_static_delegate == null) - efl_gfx_filter_data_get_static_delegate = new efl_gfx_filter_data_get_delegate(filter_data_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_get_static_delegate)}); - if (efl_gfx_filter_data_set_static_delegate == null) - efl_gfx_filter_data_set_static_delegate = new efl_gfx_filter_data_set_delegate(filter_data_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_set_static_delegate)}); - if (efl_gfx_image_smooth_scale_get_static_delegate == null) - efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetSmoothScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_smooth_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_get_static_delegate)}); - if (efl_gfx_image_smooth_scale_set_static_delegate == null) - efl_gfx_image_smooth_scale_set_static_delegate = new efl_gfx_image_smooth_scale_set_delegate(smooth_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetSmoothScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_smooth_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_set_static_delegate)}); - if (efl_gfx_image_scale_type_get_static_delegate == null) - efl_gfx_image_scale_type_get_static_delegate = new efl_gfx_image_scale_type_get_delegate(scale_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetScaleType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_get_static_delegate)}); - if (efl_gfx_image_scale_type_set_static_delegate == null) - efl_gfx_image_scale_type_set_static_delegate = new efl_gfx_image_scale_type_set_delegate(scale_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetScaleType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate)}); - if (efl_gfx_image_ratio_get_static_delegate == null) - efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); - if (methods.FirstOrDefault(m => m.Name == "GetRatio") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_ratio_get_static_delegate)}); - if (efl_gfx_image_border_get_static_delegate == null) - efl_gfx_image_border_get_static_delegate = new efl_gfx_image_border_get_delegate(border_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_get_static_delegate)}); - if (efl_gfx_image_border_set_static_delegate == null) - efl_gfx_image_border_set_static_delegate = new efl_gfx_image_border_set_delegate(border_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_set_static_delegate)}); - if (efl_gfx_image_border_scale_get_static_delegate == null) - efl_gfx_image_border_scale_get_static_delegate = new efl_gfx_image_border_scale_get_delegate(border_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_get_static_delegate)}); - if (efl_gfx_image_border_scale_set_static_delegate == null) - efl_gfx_image_border_scale_set_static_delegate = new efl_gfx_image_border_scale_set_delegate(border_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorderScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_set_static_delegate)}); - if (efl_gfx_image_border_center_fill_get_static_delegate == null) - efl_gfx_image_border_center_fill_get_static_delegate = new efl_gfx_image_border_center_fill_get_delegate(border_center_fill_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderCenterFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_center_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_get_static_delegate)}); - if (efl_gfx_image_border_center_fill_set_static_delegate == null) - efl_gfx_image_border_center_fill_set_static_delegate = new efl_gfx_image_border_center_fill_set_delegate(border_center_fill_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorderCenterFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_center_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_set_static_delegate)}); - if (efl_gfx_image_size_get_static_delegate == null) - efl_gfx_image_size_get_static_delegate = new efl_gfx_image_size_get_delegate(image_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_size_get_static_delegate)}); - if (efl_gfx_image_content_hint_get_static_delegate == null) - efl_gfx_image_content_hint_get_static_delegate = new efl_gfx_image_content_hint_get_delegate(content_hint_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_content_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_get_static_delegate)}); - if (efl_gfx_image_content_hint_set_static_delegate == null) - efl_gfx_image_content_hint_set_static_delegate = new efl_gfx_image_content_hint_set_delegate(content_hint_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_content_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_set_static_delegate)}); - if (efl_gfx_image_scale_hint_get_static_delegate == null) - efl_gfx_image_scale_hint_get_static_delegate = new efl_gfx_image_scale_hint_get_delegate(scale_hint_get); - if (methods.FirstOrDefault(m => m.Name == "GetScaleHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_get_static_delegate)}); - if (efl_gfx_image_scale_hint_set_static_delegate == null) - efl_gfx_image_scale_hint_set_static_delegate = new efl_gfx_image_scale_hint_set_delegate(scale_hint_set); - if (methods.FirstOrDefault(m => m.Name == "SetScaleHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_set_static_delegate)}); - if (efl_gfx_image_load_error_get_static_delegate == null) - efl_gfx_image_load_error_get_static_delegate = new efl_gfx_image_load_error_get_delegate(image_load_error_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageLoadError") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_error_get_static_delegate)}); - if (efl_gfx_view_size_get_static_delegate == null) - efl_gfx_view_size_get_static_delegate = new efl_gfx_view_size_get_delegate(view_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_view_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_get_static_delegate)}); - if (efl_gfx_view_size_set_static_delegate == null) - efl_gfx_view_size_set_static_delegate = new efl_gfx_view_size_set_delegate(view_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetViewSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_view_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.ImageInternal.efl_canvas_image_internal_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Object.NativeMethods { - return Efl.Canvas.ImageInternal.efl_canvas_image_internal_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_file_save_static_delegate == null) + { + efl_file_save_static_delegate = new efl_file_save_delegate(save); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_save_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, ref Efl.FileSaveInfo.NativeStruct info); + if (methods.FirstOrDefault(m => m.Name == "Save") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_save"), func = Marshal.GetFunctionPointerForDelegate(efl_file_save_static_delegate) }); + } + if (efl_orientation_get_static_delegate == null) + { + efl_orientation_get_static_delegate = new efl_orientation_get_delegate(orientation_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_save_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, ref Efl.FileSaveInfo.NativeStruct info); - public static Efl.Eo.FunctionWrapper efl_file_save_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_save"); - private static bool save(System.IntPtr obj, System.IntPtr pd, System.String file, System.String key, ref Efl.FileSaveInfo.NativeStruct info) - { - Eina.Log.Debug("function efl_file_save was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.FileSaveInfo _in_info = info; - bool _ret_var = default(bool); - try { - _ret_var = ((ImageInternal)wrapper).Save( file, key, ref _in_info); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_get_static_delegate) }); } - info = _in_info; - return _ret_var; - } else { - return efl_file_save_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file, key, ref info); - } - } - private static efl_file_save_delegate efl_file_save_static_delegate; + if (efl_orientation_set_static_delegate == null) + { + efl_orientation_set_static_delegate = new efl_orientation_set_delegate(orientation_set); + } - private delegate Efl.Orient efl_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_set_static_delegate) }); + } + if (efl_orientation_flip_get_static_delegate == null) + { + efl_orientation_flip_get_static_delegate = new efl_orientation_flip_get_delegate(flip_get); + } - public delegate Efl.Orient efl_orientation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_orientation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_get"); - private static Efl.Orient orientation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_orientation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Orient _ret_var = default(Efl.Orient); - try { - _ret_var = ((ImageInternal)wrapper).GetOrientation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFlip") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_flip_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_get_static_delegate) }); } - return _ret_var; - } else { - return efl_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_orientation_get_delegate efl_orientation_get_static_delegate; + if (efl_orientation_flip_set_static_delegate == null) + { + efl_orientation_flip_set_static_delegate = new efl_orientation_flip_set_delegate(flip_set); + } - private delegate void efl_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir); + if (methods.FirstOrDefault(m => m.Name == "SetFlip") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_flip_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_set_static_delegate) }); + } + if (evas_filter_changed_set_static_delegate == null) + { + evas_filter_changed_set_static_delegate = new evas_filter_changed_set_delegate(filter_changed_set); + } - public delegate void efl_orientation_set_api_delegate(System.IntPtr obj, Efl.Orient dir); - public static Efl.Eo.FunctionWrapper efl_orientation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_set"); - private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir) - { - Eina.Log.Debug("function efl_orientation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetOrientation( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_orientation_set_delegate efl_orientation_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetFilterChanged") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_changed_set"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_changed_set_static_delegate) }); + } + if (evas_filter_invalid_set_static_delegate == null) + { + evas_filter_invalid_set_static_delegate = new evas_filter_invalid_set_delegate(filter_invalid_set); + } - private delegate Efl.Flip efl_orientation_flip_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFilterInvalid") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_invalid_set"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_invalid_set_static_delegate) }); + } + if (evas_filter_output_buffer_get_static_delegate == null) + { + evas_filter_output_buffer_get_static_delegate = new evas_filter_output_buffer_get_delegate(filter_output_buffer_get); + } - public delegate Efl.Flip efl_orientation_flip_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_orientation_flip_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_flip_get"); - private static Efl.Flip flip_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_orientation_flip_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Flip _ret_var = default(Efl.Flip); - try { - _ret_var = ((ImageInternal)wrapper).GetFlip(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFilterOutputBuffer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_output_buffer_get"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_output_buffer_get_static_delegate) }); } - return _ret_var; - } else { - return efl_orientation_flip_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_orientation_flip_get_delegate efl_orientation_flip_get_static_delegate; + if (evas_filter_input_alpha_static_delegate == null) + { + evas_filter_input_alpha_static_delegate = new evas_filter_input_alpha_delegate(filter_input_alpha); + } - private delegate void efl_orientation_flip_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip); + if (methods.FirstOrDefault(m => m.Name == "FilterInputAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_input_alpha"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_input_alpha_static_delegate) }); + } + if (evas_filter_state_prepare_static_delegate == null) + { + evas_filter_state_prepare_static_delegate = new evas_filter_state_prepare_delegate(filter_state_prepare); + } - public delegate void efl_orientation_flip_set_api_delegate(System.IntPtr obj, Efl.Flip flip); - public static Efl.Eo.FunctionWrapper efl_orientation_flip_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_flip_set"); - private static void flip_set(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip) - { - Eina.Log.Debug("function efl_orientation_flip_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetFlip( flip); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_orientation_flip_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flip); - } - } - private static efl_orientation_flip_set_delegate efl_orientation_flip_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "FilterStatePrepare") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_state_prepare"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_state_prepare_static_delegate) }); + } + if (evas_filter_input_render_static_delegate == null) + { + evas_filter_input_render_static_delegate = new evas_filter_input_render_delegate(filter_input_render); + } - private delegate void evas_filter_changed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + if (methods.FirstOrDefault(m => m.Name == "FilterInputRender") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_input_render"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_input_render_static_delegate) }); + } + if (evas_filter_dirty_static_delegate == null) + { + evas_filter_dirty_static_delegate = new evas_filter_dirty_delegate(filter_dirty); + } - public delegate void evas_filter_changed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper evas_filter_changed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_changed_set"); - private static void filter_changed_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function evas_filter_changed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetFilterChanged( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - evas_filter_changed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); - } - } - private static evas_filter_changed_set_delegate evas_filter_changed_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "FilterDirty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "evas_filter_dirty"), func = Marshal.GetFunctionPointerForDelegate(evas_filter_dirty_static_delegate) }); + } + if (efl_gfx_buffer_size_get_static_delegate == null) + { + efl_gfx_buffer_size_get_static_delegate = new efl_gfx_buffer_size_get_delegate(buffer_size_get); + } - private delegate void evas_filter_invalid_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + if (methods.FirstOrDefault(m => m.Name == "GetBufferSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_size_get_static_delegate) }); + } + if (efl_gfx_buffer_size_set_static_delegate == null) + { + efl_gfx_buffer_size_set_static_delegate = new efl_gfx_buffer_size_set_delegate(buffer_size_set); + } - public delegate void evas_filter_invalid_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper evas_filter_invalid_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_invalid_set"); - private static void filter_invalid_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function evas_filter_invalid_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetFilterInvalid( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - evas_filter_invalid_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); - } - } - private static evas_filter_invalid_set_delegate evas_filter_invalid_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetBufferSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_size_set_static_delegate) }); + } + if (efl_gfx_buffer_colorspace_get_static_delegate == null) + { + efl_gfx_buffer_colorspace_get_static_delegate = new efl_gfx_buffer_colorspace_get_delegate(colorspace_get); + } - private delegate System.IntPtr evas_filter_output_buffer_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetColorspace") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_colorspace_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_colorspace_get_static_delegate) }); + } + if (efl_gfx_buffer_alpha_get_static_delegate == null) + { + efl_gfx_buffer_alpha_get_static_delegate = new efl_gfx_buffer_alpha_get_delegate(alpha_get); + } - public delegate System.IntPtr evas_filter_output_buffer_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper evas_filter_output_buffer_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_output_buffer_get"); - private static System.IntPtr filter_output_buffer_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function evas_filter_output_buffer_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((ImageInternal)wrapper).GetFilterOutputBuffer(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_alpha_get_static_delegate) }); } - return _ret_var; - } else { - return evas_filter_output_buffer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static evas_filter_output_buffer_get_delegate evas_filter_output_buffer_get_static_delegate; + if (efl_gfx_buffer_alpha_set_static_delegate == null) + { + efl_gfx_buffer_alpha_set_static_delegate = new efl_gfx_buffer_alpha_set_delegate(alpha_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool evas_filter_input_alpha_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_alpha_set_static_delegate) }); + } + if (efl_gfx_buffer_stride_get_static_delegate == null) + { + efl_gfx_buffer_stride_get_static_delegate = new efl_gfx_buffer_stride_get_delegate(stride_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool evas_filter_input_alpha_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper evas_filter_input_alpha_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_input_alpha"); - private static bool filter_input_alpha(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function evas_filter_input_alpha was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ImageInternal)wrapper).FilterInputAlpha(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetStride") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_stride_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_stride_get_static_delegate) }); } - return _ret_var; - } else { - return evas_filter_input_alpha_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static evas_filter_input_alpha_delegate evas_filter_input_alpha_static_delegate; + if (efl_gfx_buffer_borders_get_static_delegate == null) + { + efl_gfx_buffer_borders_get_static_delegate = new efl_gfx_buffer_borders_get_delegate(buffer_borders_get); + } - private delegate void evas_filter_state_prepare_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data); + if (methods.FirstOrDefault(m => m.Name == "GetBufferBorders") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_borders_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_borders_get_static_delegate) }); + } + if (efl_gfx_buffer_update_add_static_delegate == null) + { + efl_gfx_buffer_update_add_static_delegate = new efl_gfx_buffer_update_add_delegate(buffer_update_add); + } - public delegate void evas_filter_state_prepare_api_delegate(System.IntPtr obj, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data); - public static Efl.Eo.FunctionWrapper evas_filter_state_prepare_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_state_prepare"); - private static void filter_state_prepare(System.IntPtr obj, System.IntPtr pd, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data) - { - Eina.Log.Debug("function evas_filter_state_prepare was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Filter.State _out_state = default(Efl.Canvas.Filter.State); - - try { - ((ImageInternal)wrapper).FilterStatePrepare( out _out_state, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "AddBufferUpdate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_update_add"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_update_add_static_delegate) }); } - state = _out_state; - } else { - evas_filter_state_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out state, data); - } - } - private static evas_filter_state_prepare_delegate evas_filter_state_prepare_static_delegate; + if (efl_gfx_buffer_map_static_delegate == null) + { + efl_gfx_buffer_map_static_delegate = new efl_gfx_buffer_map_delegate(buffer_map); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool evas_filter_input_render_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, [MarshalAs(UnmanagedType.U1)] bool do_async); + if (methods.FirstOrDefault(m => m.Name == "BufferMap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_map"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_map_static_delegate) }); + } + if (efl_gfx_buffer_unmap_static_delegate == null) + { + efl_gfx_buffer_unmap_static_delegate = new efl_gfx_buffer_unmap_delegate(buffer_unmap); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool evas_filter_input_render_api_delegate(System.IntPtr obj, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, [MarshalAs(UnmanagedType.U1)] bool do_async); - public static Efl.Eo.FunctionWrapper evas_filter_input_render_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_input_render"); - private static bool filter_input_render(System.IntPtr obj, System.IntPtr pd, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, bool do_async) - { - Eina.Log.Debug("function evas_filter_input_render was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ImageInternal)wrapper).FilterInputRender( filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "BufferUnmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_unmap"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_unmap_static_delegate) }); } - return _ret_var; - } else { - return evas_filter_input_render_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); - } - } - private static evas_filter_input_render_delegate evas_filter_input_render_static_delegate; + if (efl_gfx_buffer_copy_set_static_delegate == null) + { + efl_gfx_buffer_copy_set_static_delegate = new efl_gfx_buffer_copy_set_delegate(buffer_copy_set); + } - private delegate void evas_filter_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetBufferCopy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_copy_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_copy_set_static_delegate) }); + } + if (efl_gfx_buffer_managed_set_static_delegate == null) + { + efl_gfx_buffer_managed_set_static_delegate = new efl_gfx_buffer_managed_set_delegate(buffer_managed_set); + } - public delegate void evas_filter_dirty_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper evas_filter_dirty_ptr = new Efl.Eo.FunctionWrapper(_Module, "evas_filter_dirty"); - private static void filter_dirty(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function evas_filter_dirty was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).FilterDirty(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBufferManaged") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_managed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_managed_set_static_delegate) }); } - } else { - evas_filter_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static evas_filter_dirty_delegate evas_filter_dirty_static_delegate; + if (efl_gfx_buffer_managed_get_static_delegate == null) + { + efl_gfx_buffer_managed_get_static_delegate = new efl_gfx_buffer_managed_get_delegate(buffer_managed_get); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_buffer_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetBufferManaged") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_managed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_managed_get_static_delegate) }); + } + if (efl_gfx_fill_auto_get_static_delegate == null) + { + efl_gfx_fill_auto_get_static_delegate = new efl_gfx_fill_auto_get_delegate(fill_auto_get); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_buffer_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_size_get"); - private static Eina.Size2D.NativeStruct buffer_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_buffer_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((ImageInternal)wrapper).GetBufferSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFillAuto") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_fill_auto_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_auto_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_buffer_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_buffer_size_get_delegate efl_gfx_buffer_size_get_static_delegate; + if (efl_gfx_fill_auto_set_static_delegate == null) + { + efl_gfx_fill_auto_set_static_delegate = new efl_gfx_fill_auto_set_delegate(fill_auto_set); + } - private delegate void efl_gfx_buffer_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + if (methods.FirstOrDefault(m => m.Name == "SetFillAuto") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_fill_auto_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_auto_set_static_delegate) }); + } + if (efl_gfx_fill_get_static_delegate == null) + { + efl_gfx_fill_get_static_delegate = new efl_gfx_fill_get_delegate(fill_get); + } - public delegate void efl_gfx_buffer_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_size_set"); - private static void buffer_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_buffer_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; - - try { - ((ImageInternal)wrapper).SetBufferSize( _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_get_static_delegate) }); } - } else { - efl_gfx_buffer_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); - } - } - private static efl_gfx_buffer_size_set_delegate efl_gfx_buffer_size_set_static_delegate; + if (efl_gfx_fill_set_static_delegate == null) + { + efl_gfx_fill_set_static_delegate = new efl_gfx_fill_set_delegate(fill_set); + } - private delegate Efl.Gfx.Colorspace efl_gfx_buffer_colorspace_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_set_static_delegate) }); + } + if (efl_gfx_filter_program_get_static_delegate == null) + { + efl_gfx_filter_program_get_static_delegate = new efl_gfx_filter_program_get_delegate(filter_program_get); + } - public delegate Efl.Gfx.Colorspace efl_gfx_buffer_colorspace_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_colorspace_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_colorspace_get"); - private static Efl.Gfx.Colorspace colorspace_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_buffer_colorspace_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.Colorspace _ret_var = default(Efl.Gfx.Colorspace); - try { - _ret_var = ((ImageInternal)wrapper).GetColorspace(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFilterProgram") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_program_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_buffer_colorspace_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_buffer_colorspace_get_delegate efl_gfx_buffer_colorspace_get_static_delegate; + if (efl_gfx_filter_program_set_static_delegate == null) + { + efl_gfx_filter_program_set_static_delegate = new efl_gfx_filter_program_set_delegate(filter_program_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_buffer_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFilterProgram") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_program_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_set_static_delegate) }); + } + if (efl_gfx_filter_state_get_static_delegate == null) + { + efl_gfx_filter_state_get_static_delegate = new efl_gfx_filter_state_get_delegate(filter_state_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_buffer_alpha_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_alpha_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_alpha_get"); - private static bool alpha_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_buffer_alpha_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ImageInternal)wrapper).GetAlpha(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFilterState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_buffer_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_buffer_alpha_get_delegate efl_gfx_buffer_alpha_get_static_delegate; + if (efl_gfx_filter_state_set_static_delegate == null) + { + efl_gfx_filter_state_set_static_delegate = new efl_gfx_filter_state_set_delegate(filter_state_set); + } - private delegate void efl_gfx_buffer_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool alpha); + if (methods.FirstOrDefault(m => m.Name == "SetFilterState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_state_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_set_static_delegate) }); + } + if (efl_gfx_filter_padding_get_static_delegate == null) + { + efl_gfx_filter_padding_get_static_delegate = new efl_gfx_filter_padding_get_delegate(filter_padding_get); + } - public delegate void efl_gfx_buffer_alpha_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool alpha); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_alpha_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_alpha_set"); - private static void alpha_set(System.IntPtr obj, System.IntPtr pd, bool alpha) - { - Eina.Log.Debug("function efl_gfx_buffer_alpha_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetAlpha( alpha); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_buffer_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), alpha); - } - } - private static efl_gfx_buffer_alpha_set_delegate efl_gfx_buffer_alpha_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFilterPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_padding_get_static_delegate) }); + } + if (efl_gfx_filter_source_get_static_delegate == null) + { + efl_gfx_filter_source_get_static_delegate = new efl_gfx_filter_source_get_delegate(filter_source_get); + } - private delegate int efl_gfx_buffer_stride_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFilterSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_get_static_delegate) }); + } + if (efl_gfx_filter_source_set_static_delegate == null) + { + efl_gfx_filter_source_set_static_delegate = new efl_gfx_filter_source_set_delegate(filter_source_set); + } - public delegate int efl_gfx_buffer_stride_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_stride_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_stride_get"); - private static int stride_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_buffer_stride_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ImageInternal)wrapper).GetStride(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFilterSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_buffer_stride_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_buffer_stride_get_delegate efl_gfx_buffer_stride_get_static_delegate; + if (efl_gfx_filter_data_get_static_delegate == null) + { + efl_gfx_filter_data_get_static_delegate = new efl_gfx_filter_data_get_delegate(filter_data_get); + } - private delegate void efl_gfx_buffer_borders_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint l, out uint r, out uint t, out uint b); + if (methods.FirstOrDefault(m => m.Name == "GetFilterData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_get_static_delegate) }); + } + if (efl_gfx_filter_data_set_static_delegate == null) + { + efl_gfx_filter_data_set_static_delegate = new efl_gfx_filter_data_set_delegate(filter_data_set); + } - public delegate void efl_gfx_buffer_borders_get_api_delegate(System.IntPtr obj, out uint l, out uint r, out uint t, out uint b); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_borders_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_borders_get"); - private static void buffer_borders_get(System.IntPtr obj, System.IntPtr pd, out uint l, out uint r, out uint t, out uint b) - { - Eina.Log.Debug("function efl_gfx_buffer_borders_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(uint); r = default(uint); t = default(uint); b = default(uint); - try { - ((ImageInternal)wrapper).GetBufferBorders( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_buffer_borders_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); - } - } - private static efl_gfx_buffer_borders_get_delegate efl_gfx_buffer_borders_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetFilterData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_set_static_delegate) }); + } + if (efl_gfx_image_smooth_scale_get_static_delegate == null) + { + efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); + } - private delegate void efl_gfx_buffer_update_add_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Rect.NativeStruct region); + if (methods.FirstOrDefault(m => m.Name == "GetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_get_static_delegate) }); + } + if (efl_gfx_image_smooth_scale_set_static_delegate == null) + { + efl_gfx_image_smooth_scale_set_static_delegate = new efl_gfx_image_smooth_scale_set_delegate(smooth_scale_set); + } - public delegate void efl_gfx_buffer_update_add_api_delegate(System.IntPtr obj, ref Eina.Rect.NativeStruct region); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_update_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_update_add"); - private static void buffer_update_add(System.IntPtr obj, System.IntPtr pd, ref Eina.Rect.NativeStruct region) - { - Eina.Log.Debug("function efl_gfx_buffer_update_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_region = region; - - try { - ((ImageInternal)wrapper).AddBufferUpdate( ref _in_region); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_set_static_delegate) }); } - region = _in_region; - } else { - efl_gfx_buffer_update_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref region); - } - } - private static efl_gfx_buffer_update_add_delegate efl_gfx_buffer_update_add_static_delegate; + if (efl_gfx_image_scale_type_get_static_delegate == null) + { + efl_gfx_image_scale_type_get_static_delegate = new efl_gfx_image_scale_type_get_delegate(scale_type_get); + } - private delegate Eina.RwSlice efl_gfx_buffer_map_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride); + if (methods.FirstOrDefault(m => m.Name == "GetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_get_static_delegate) }); + } + if (efl_gfx_image_scale_type_set_static_delegate == null) + { + efl_gfx_image_scale_type_set_static_delegate = new efl_gfx_image_scale_type_set_delegate(scale_type_set); + } - public delegate Eina.RwSlice efl_gfx_buffer_map_api_delegate(System.IntPtr obj, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_map_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_map"); - private static Eina.RwSlice buffer_map(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride) - { - Eina.Log.Debug("function efl_gfx_buffer_map was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_region = region; - stride = default(int); Eina.RwSlice _ret_var = default(Eina.RwSlice); - try { - _ret_var = ((ImageInternal)wrapper).BufferMap( mode, ref _in_region, cspace, plane, out stride); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate) }); } - region = _in_region; - return _ret_var; - } else { - return efl_gfx_buffer_map_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode, ref region, cspace, plane, out stride); - } - } - private static efl_gfx_buffer_map_delegate efl_gfx_buffer_map_static_delegate; + if (efl_gfx_image_ratio_get_static_delegate == null) + { + efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_buffer_unmap_delegate(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice); + if (methods.FirstOrDefault(m => m.Name == "GetRatio") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_ratio_get_static_delegate) }); + } + if (efl_gfx_image_border_get_static_delegate == null) + { + efl_gfx_image_border_get_static_delegate = new efl_gfx_image_border_get_delegate(border_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_buffer_unmap_api_delegate(System.IntPtr obj, Eina.RwSlice slice); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_unmap_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_unmap"); - private static bool buffer_unmap(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice) - { - Eina.Log.Debug("function efl_gfx_buffer_unmap was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ImageInternal)wrapper).BufferUnmap( slice); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_buffer_unmap_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice); - } - } - private static efl_gfx_buffer_unmap_delegate efl_gfx_buffer_unmap_static_delegate; + if (efl_gfx_image_border_set_static_delegate == null) + { + efl_gfx_image_border_set_static_delegate = new efl_gfx_image_border_set_delegate(border_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_buffer_copy_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); + if (methods.FirstOrDefault(m => m.Name == "SetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_set_static_delegate) }); + } + if (efl_gfx_image_border_scale_get_static_delegate == null) + { + efl_gfx_image_border_scale_get_static_delegate = new efl_gfx_image_border_scale_get_delegate(border_scale_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_buffer_copy_set_api_delegate(System.IntPtr obj, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_copy_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_copy_set"); - private static bool buffer_copy_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane) - { - Eina.Log.Debug("function efl_gfx_buffer_copy_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_slice = Eina.PrimitiveConversion.PointerToManaged(slice); - Eina.Size2D _in_size = size; - bool _ret_var = default(bool); - try { - _ret_var = ((ImageInternal)wrapper).SetBufferCopy( _in_slice, _in_size, stride, cspace, plane); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_buffer_copy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice, size, stride, cspace, plane); - } - } - private static efl_gfx_buffer_copy_set_delegate efl_gfx_buffer_copy_set_static_delegate; + if (efl_gfx_image_border_scale_set_static_delegate == null) + { + efl_gfx_image_border_scale_set_static_delegate = new efl_gfx_image_border_scale_set_delegate(border_scale_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_buffer_managed_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); + if (methods.FirstOrDefault(m => m.Name == "SetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_set_static_delegate) }); + } + if (efl_gfx_image_border_center_fill_get_static_delegate == null) + { + efl_gfx_image_border_center_fill_get_static_delegate = new efl_gfx_image_border_center_fill_get_delegate(border_center_fill_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_buffer_managed_set_api_delegate(System.IntPtr obj, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_managed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_managed_set"); - private static bool buffer_managed_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane) - { - Eina.Log.Debug("function efl_gfx_buffer_managed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_slice = Eina.PrimitiveConversion.PointerToManaged(slice); - Eina.Size2D _in_size = size; - bool _ret_var = default(bool); - try { - _ret_var = ((ImageInternal)wrapper).SetBufferManaged( _in_slice, _in_size, stride, cspace, plane); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_buffer_managed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice, size, stride, cspace, plane); - } - } - private static efl_gfx_buffer_managed_set_delegate efl_gfx_buffer_managed_set_static_delegate; + if (efl_gfx_image_border_center_fill_set_static_delegate == null) + { + efl_gfx_image_border_center_fill_set_static_delegate = new efl_gfx_image_border_center_fill_set_delegate(border_center_fill_set); + } - private delegate Eina.Slice efl_gfx_buffer_managed_get_delegate(System.IntPtr obj, System.IntPtr pd, int plane); + if (methods.FirstOrDefault(m => m.Name == "SetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_set_static_delegate) }); + } + if (efl_gfx_image_size_get_static_delegate == null) + { + efl_gfx_image_size_get_static_delegate = new efl_gfx_image_size_get_delegate(image_size_get); + } - public delegate Eina.Slice efl_gfx_buffer_managed_get_api_delegate(System.IntPtr obj, int plane); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_managed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_managed_get"); - private static Eina.Slice buffer_managed_get(System.IntPtr obj, System.IntPtr pd, int plane) - { - Eina.Log.Debug("function efl_gfx_buffer_managed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Slice _ret_var = default(Eina.Slice); - try { - _ret_var = ((ImageInternal)wrapper).GetBufferManaged( plane); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetImageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_size_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_buffer_managed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), plane); - } - } - private static efl_gfx_buffer_managed_get_delegate efl_gfx_buffer_managed_get_static_delegate; + if (efl_gfx_image_content_hint_get_static_delegate == null) + { + efl_gfx_image_content_hint_get_static_delegate = new efl_gfx_image_content_hint_get_delegate(content_hint_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_fill_auto_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_get_static_delegate) }); + } + if (efl_gfx_image_content_hint_set_static_delegate == null) + { + efl_gfx_image_content_hint_set_static_delegate = new efl_gfx_image_content_hint_set_delegate(content_hint_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_fill_auto_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_fill_auto_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_fill_auto_get"); - private static bool fill_auto_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_fill_auto_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ImageInternal)wrapper).GetFillAuto(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_fill_auto_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_fill_auto_get_delegate efl_gfx_fill_auto_get_static_delegate; + if (efl_gfx_image_scale_hint_get_static_delegate == null) + { + efl_gfx_image_scale_hint_get_static_delegate = new efl_gfx_image_scale_hint_get_delegate(scale_hint_get); + } - private delegate void efl_gfx_fill_auto_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool filled); + if (methods.FirstOrDefault(m => m.Name == "GetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_get_static_delegate) }); + } + if (efl_gfx_image_scale_hint_set_static_delegate == null) + { + efl_gfx_image_scale_hint_set_static_delegate = new efl_gfx_image_scale_hint_set_delegate(scale_hint_set); + } - public delegate void efl_gfx_fill_auto_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool filled); - public static Efl.Eo.FunctionWrapper efl_gfx_fill_auto_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_fill_auto_set"); - private static void fill_auto_set(System.IntPtr obj, System.IntPtr pd, bool filled) - { - Eina.Log.Debug("function efl_gfx_fill_auto_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetFillAuto( filled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_fill_auto_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), filled); - } - } - private static efl_gfx_fill_auto_set_delegate efl_gfx_fill_auto_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_set_static_delegate) }); + } + + if (efl_gfx_image_load_error_get_static_delegate == null) + { + efl_gfx_image_load_error_get_static_delegate = new efl_gfx_image_load_error_get_delegate(image_load_error_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetImageLoadError") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_error_get_static_delegate) }); + } + + if (efl_gfx_view_size_get_static_delegate == null) + { + efl_gfx_view_size_get_static_delegate = new efl_gfx_view_size_get_delegate(view_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetViewSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_view_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_get_static_delegate) }); + } + + if (efl_gfx_view_size_set_static_delegate == null) + { + efl_gfx_view_size_set_static_delegate = new efl_gfx_view_size_set_delegate(view_size_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetViewSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_view_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.ImageInternal.efl_canvas_image_internal_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_save_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, ref Efl.FileSaveInfo.NativeStruct info); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_save_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, ref Efl.FileSaveInfo.NativeStruct info); + + public static Efl.Eo.FunctionWrapper efl_file_save_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_save"); + + private static bool save(System.IntPtr obj, System.IntPtr pd, System.String file, System.String key, ref Efl.FileSaveInfo.NativeStruct info) + { + Eina.Log.Debug("function efl_file_save was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.FileSaveInfo _in_info = info; + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageInternal)wrapper).Save(file, key, ref _in_info); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + info = _in_info; + return _ret_var; + + } + else + { + return efl_file_save_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file, key, ref info); + } + } + + private static efl_file_save_delegate efl_file_save_static_delegate; + + + private delegate Efl.Orient efl_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Orient efl_orientation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_get"); + + private static Efl.Orient orientation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_orientation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Orient _ret_var = default(Efl.Orient); + try + { + _ret_var = ((ImageInternal)wrapper).GetOrientation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_orientation_get_delegate efl_orientation_get_static_delegate; + + + private delegate void efl_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir); + + + public delegate void efl_orientation_set_api_delegate(System.IntPtr obj, Efl.Orient dir); + + public static Efl.Eo.FunctionWrapper efl_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_set"); + + private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir) + { + Eina.Log.Debug("function efl_orientation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetOrientation(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } + + private static efl_orientation_set_delegate efl_orientation_set_static_delegate; + + + private delegate Efl.Flip efl_orientation_flip_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Flip efl_orientation_flip_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_orientation_flip_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_flip_get"); + + private static Efl.Flip flip_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_orientation_flip_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Flip _ret_var = default(Efl.Flip); + try + { + _ret_var = ((ImageInternal)wrapper).GetFlip(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_orientation_flip_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_orientation_flip_get_delegate efl_orientation_flip_get_static_delegate; + + + private delegate void efl_orientation_flip_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip); + + + public delegate void efl_orientation_flip_set_api_delegate(System.IntPtr obj, Efl.Flip flip); + + public static Efl.Eo.FunctionWrapper efl_orientation_flip_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_flip_set"); + + private static void flip_set(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip) + { + Eina.Log.Debug("function efl_orientation_flip_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetFlip(flip); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_orientation_flip_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flip); + } + } + + private static efl_orientation_flip_set_delegate efl_orientation_flip_set_static_delegate; + + + private delegate void evas_filter_changed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void evas_filter_changed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper evas_filter_changed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_changed_set"); + + private static void filter_changed_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function evas_filter_changed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetFilterChanged(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + evas_filter_changed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } + } + + private static evas_filter_changed_set_delegate evas_filter_changed_set_static_delegate; + + + private delegate void evas_filter_invalid_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void evas_filter_invalid_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper evas_filter_invalid_set_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_invalid_set"); + + private static void filter_invalid_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function evas_filter_invalid_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetFilterInvalid(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + evas_filter_invalid_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } + } + + private static evas_filter_invalid_set_delegate evas_filter_invalid_set_static_delegate; + + + private delegate System.IntPtr evas_filter_output_buffer_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr evas_filter_output_buffer_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper evas_filter_output_buffer_get_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_output_buffer_get"); + + private static System.IntPtr filter_output_buffer_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function evas_filter_output_buffer_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((ImageInternal)wrapper).GetFilterOutputBuffer(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return evas_filter_output_buffer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static evas_filter_output_buffer_get_delegate evas_filter_output_buffer_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool evas_filter_input_alpha_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool evas_filter_input_alpha_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper evas_filter_input_alpha_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_input_alpha"); + + private static bool filter_input_alpha(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function evas_filter_input_alpha was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageInternal)wrapper).FilterInputAlpha(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return evas_filter_input_alpha_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static evas_filter_input_alpha_delegate evas_filter_input_alpha_static_delegate; + + + private delegate void evas_filter_state_prepare_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data); + + + public delegate void evas_filter_state_prepare_api_delegate(System.IntPtr obj, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper evas_filter_state_prepare_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_state_prepare"); + + private static void filter_state_prepare(System.IntPtr obj, System.IntPtr pd, out Efl.Canvas.Filter.State.NativeStruct state, System.IntPtr data) + { + Eina.Log.Debug("function evas_filter_state_prepare was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Filter.State _out_state = default(Efl.Canvas.Filter.State); + + try + { + ((ImageInternal)wrapper).FilterStatePrepare(out _out_state, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + state = _out_state; + + } + else + { + evas_filter_state_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out state, data); + } + } + + private static evas_filter_state_prepare_delegate evas_filter_state_prepare_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool evas_filter_input_render_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, [MarshalAs(UnmanagedType.U1)] bool do_async); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool evas_filter_input_render_api_delegate(System.IntPtr obj, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, [MarshalAs(UnmanagedType.U1)] bool do_async); + + public static Efl.Eo.FunctionWrapper evas_filter_input_render_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_input_render"); + + private static bool filter_input_render(System.IntPtr obj, System.IntPtr pd, System.IntPtr filter, System.IntPtr engine, System.IntPtr output, System.IntPtr drawctx, System.IntPtr data, int l, int r, int t, int b, int x, int y, bool do_async) + { + Eina.Log.Debug("function evas_filter_input_render was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageInternal)wrapper).FilterInputRender(filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return evas_filter_input_render_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), filter, engine, output, drawctx, data, l, r, t, b, x, y, do_async); + } + } + + private static evas_filter_input_render_delegate evas_filter_input_render_static_delegate; + + + private delegate void evas_filter_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void evas_filter_dirty_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper evas_filter_dirty_ptr = new Efl.Eo.FunctionWrapper(Module, "evas_filter_dirty"); + + private static void filter_dirty(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function evas_filter_dirty was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).FilterDirty(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + evas_filter_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static evas_filter_dirty_delegate evas_filter_dirty_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_buffer_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_buffer_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_size_get"); + + private static Eina.Size2D.NativeStruct buffer_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_buffer_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((ImageInternal)wrapper).GetBufferSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_buffer_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_buffer_size_get_delegate efl_gfx_buffer_size_get_static_delegate; + + + private delegate void efl_gfx_buffer_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + + public delegate void efl_gfx_buffer_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_size_set"); + + private static void buffer_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_buffer_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((ImageInternal)wrapper).SetBufferSize(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_buffer_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + } + } + + private static efl_gfx_buffer_size_set_delegate efl_gfx_buffer_size_set_static_delegate; + + + private delegate Efl.Gfx.Colorspace efl_gfx_buffer_colorspace_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.Colorspace efl_gfx_buffer_colorspace_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_colorspace_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_colorspace_get"); + + private static Efl.Gfx.Colorspace colorspace_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_buffer_colorspace_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.Colorspace _ret_var = default(Efl.Gfx.Colorspace); + try + { + _ret_var = ((ImageInternal)wrapper).GetColorspace(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_buffer_colorspace_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_buffer_colorspace_get_delegate efl_gfx_buffer_colorspace_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_buffer_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_buffer_alpha_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_alpha_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_alpha_get"); + + private static bool alpha_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_buffer_alpha_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageInternal)wrapper).GetAlpha(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_buffer_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_buffer_alpha_get_delegate efl_gfx_buffer_alpha_get_static_delegate; + + + private delegate void efl_gfx_buffer_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool alpha); + + + public delegate void efl_gfx_buffer_alpha_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool alpha); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_alpha_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_alpha_set"); + + private static void alpha_set(System.IntPtr obj, System.IntPtr pd, bool alpha) + { + Eina.Log.Debug("function efl_gfx_buffer_alpha_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetAlpha(alpha); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_buffer_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), alpha); + } + } + + private static efl_gfx_buffer_alpha_set_delegate efl_gfx_buffer_alpha_set_static_delegate; + + + private delegate int efl_gfx_buffer_stride_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_gfx_buffer_stride_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_stride_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_stride_get"); + + private static int stride_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_buffer_stride_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ImageInternal)wrapper).GetStride(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_buffer_stride_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_buffer_stride_get_delegate efl_gfx_buffer_stride_get_static_delegate; + + + private delegate void efl_gfx_buffer_borders_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint l, out uint r, out uint t, out uint b); + + + public delegate void efl_gfx_buffer_borders_get_api_delegate(System.IntPtr obj, out uint l, out uint r, out uint t, out uint b); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_borders_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_borders_get"); + + private static void buffer_borders_get(System.IntPtr obj, System.IntPtr pd, out uint l, out uint r, out uint t, out uint b) + { + Eina.Log.Debug("function efl_gfx_buffer_borders_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(uint); r = default(uint); t = default(uint); b = default(uint); + try + { + ((ImageInternal)wrapper).GetBufferBorders(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_buffer_borders_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + } + } + + private static efl_gfx_buffer_borders_get_delegate efl_gfx_buffer_borders_get_static_delegate; + + + private delegate void efl_gfx_buffer_update_add_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Rect.NativeStruct region); + + + public delegate void efl_gfx_buffer_update_add_api_delegate(System.IntPtr obj, ref Eina.Rect.NativeStruct region); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_update_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_update_add"); + + private static void buffer_update_add(System.IntPtr obj, System.IntPtr pd, ref Eina.Rect.NativeStruct region) + { + Eina.Log.Debug("function efl_gfx_buffer_update_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_region = region; + + try + { + ((ImageInternal)wrapper).AddBufferUpdate(ref _in_region); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + region = _in_region; + + } + else + { + efl_gfx_buffer_update_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref region); + } + } + + private static efl_gfx_buffer_update_add_delegate efl_gfx_buffer_update_add_static_delegate; + + + private delegate Eina.RwSlice efl_gfx_buffer_map_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride); + + + public delegate Eina.RwSlice efl_gfx_buffer_map_api_delegate(System.IntPtr obj, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_map_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_map"); + + private static Eina.RwSlice buffer_map(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride) + { + Eina.Log.Debug("function efl_gfx_buffer_map was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_region = region; + stride = default(int); Eina.RwSlice _ret_var = default(Eina.RwSlice); + try + { + _ret_var = ((ImageInternal)wrapper).BufferMap(mode, ref _in_region, cspace, plane, out stride); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + region = _in_region; + return _ret_var; + + } + else + { + return efl_gfx_buffer_map_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode, ref region, cspace, plane, out stride); + } + } + + private static efl_gfx_buffer_map_delegate efl_gfx_buffer_map_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_buffer_unmap_delegate(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_buffer_unmap_api_delegate(System.IntPtr obj, Eina.RwSlice slice); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_unmap_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_unmap"); + + private static bool buffer_unmap(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice) + { + Eina.Log.Debug("function efl_gfx_buffer_unmap was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageInternal)wrapper).BufferUnmap(slice); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_buffer_unmap_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice); + } + } + + private static efl_gfx_buffer_unmap_delegate efl_gfx_buffer_unmap_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_buffer_copy_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_buffer_copy_set_api_delegate(System.IntPtr obj, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_copy_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_copy_set"); + + private static bool buffer_copy_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane) + { + Eina.Log.Debug("function efl_gfx_buffer_copy_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_slice = Eina.PrimitiveConversion.PointerToManaged(slice); + Eina.Size2D _in_size = size; + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageInternal)wrapper).SetBufferCopy(_in_slice, _in_size, stride, cspace, plane); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_buffer_copy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice, size, stride, cspace, plane); + } + } + + private static efl_gfx_buffer_copy_set_delegate efl_gfx_buffer_copy_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_buffer_managed_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_buffer_managed_set_api_delegate(System.IntPtr obj, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_managed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_managed_set"); + + private static bool buffer_managed_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane) + { + Eina.Log.Debug("function efl_gfx_buffer_managed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_slice = Eina.PrimitiveConversion.PointerToManaged(slice); + Eina.Size2D _in_size = size; + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageInternal)wrapper).SetBufferManaged(_in_slice, _in_size, stride, cspace, plane); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_buffer_managed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice, size, stride, cspace, plane); + } + } + + private static efl_gfx_buffer_managed_set_delegate efl_gfx_buffer_managed_set_static_delegate; + + + private delegate Eina.Slice efl_gfx_buffer_managed_get_delegate(System.IntPtr obj, System.IntPtr pd, int plane); + + + public delegate Eina.Slice efl_gfx_buffer_managed_get_api_delegate(System.IntPtr obj, int plane); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_managed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_managed_get"); + + private static Eina.Slice buffer_managed_get(System.IntPtr obj, System.IntPtr pd, int plane) + { + Eina.Log.Debug("function efl_gfx_buffer_managed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Slice _ret_var = default(Eina.Slice); + try + { + _ret_var = ((ImageInternal)wrapper).GetBufferManaged(plane); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_buffer_managed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), plane); + } + } + + private static efl_gfx_buffer_managed_get_delegate efl_gfx_buffer_managed_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_fill_auto_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_fill_auto_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_fill_auto_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_fill_auto_get"); + + private static bool fill_auto_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_fill_auto_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageInternal)wrapper).GetFillAuto(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_fill_auto_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_fill_auto_get_delegate efl_gfx_fill_auto_get_static_delegate; + + + private delegate void efl_gfx_fill_auto_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool filled); + + + public delegate void efl_gfx_fill_auto_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool filled); + + public static Efl.Eo.FunctionWrapper efl_gfx_fill_auto_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_fill_auto_set"); + + private static void fill_auto_set(System.IntPtr obj, System.IntPtr pd, bool filled) + { + Eina.Log.Debug("function efl_gfx_fill_auto_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetFillAuto(filled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_fill_auto_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), filled); + } + } + + private static efl_gfx_fill_auto_set_delegate efl_gfx_fill_auto_set_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_gfx_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_gfx_fill_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_fill_get"); + + private static Eina.Rect.NativeStruct fill_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_fill_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((ImageInternal)wrapper).GetFill(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_fill_get_delegate efl_gfx_fill_get_static_delegate; + + + private delegate void efl_gfx_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct fill); + + + public delegate void efl_gfx_fill_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct fill); + + public static Efl.Eo.FunctionWrapper efl_gfx_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_fill_set"); + + private static void fill_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct fill) + { + Eina.Log.Debug("function efl_gfx_fill_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_fill = fill; + + try + { + ((ImageInternal)wrapper).SetFill(_in_fill); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); + } + } + + private static efl_gfx_fill_set_delegate efl_gfx_fill_set_static_delegate; + + + private delegate void efl_gfx_filter_program_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); + + + public delegate void efl_gfx_filter_program_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_program_get"); + + private static void filter_program_get(System.IntPtr obj, System.IntPtr pd, out System.String code, out System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_program_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_code = default(System.String); + System.String _out_name = default(System.String); + + try + { + ((ImageInternal)wrapper).GetFilterProgram(out _out_code, out _out_name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + code = _out_code; + name = _out_name; + + } + else + { + efl_gfx_filter_program_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out code, out name); + } + } + + private static efl_gfx_filter_program_get_delegate efl_gfx_filter_program_get_static_delegate; + + + private delegate void efl_gfx_filter_program_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + + public delegate void efl_gfx_filter_program_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_program_set"); + + private static void filter_program_set(System.IntPtr obj, System.IntPtr pd, System.String code, System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_program_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetFilterProgram(code, name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_program_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code, name); + } + } + + private static efl_gfx_filter_program_set_delegate efl_gfx_filter_program_set_static_delegate; + + + private delegate void efl_gfx_filter_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); + + + public delegate void efl_gfx_filter_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_state_get"); + + private static void filter_state_get(System.IntPtr obj, System.IntPtr pd, out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) + { + Eina.Log.Debug("function efl_gfx_filter_state_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_cur_state = default(System.String); + cur_val = default(double); System.String _out_next_state = default(System.String); + next_val = default(double); pos = default(double); + try + { + ((ImageInternal)wrapper).GetFilterState(out _out_cur_state, out cur_val, out _out_next_state, out next_val, out pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + cur_state = _out_cur_state; + next_state = _out_next_state; + + } + else + { + efl_gfx_filter_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cur_state, out cur_val, out next_state, out next_val, out pos); + } + } + + private static efl_gfx_filter_state_get_delegate efl_gfx_filter_state_get_static_delegate; + + private delegate void efl_gfx_filter_state_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); - private delegate Eina.Rect.NativeStruct efl_gfx_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_gfx_filter_state_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_state_set"); - public delegate Eina.Rect.NativeStruct efl_gfx_fill_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_fill_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_fill_get"); - private static Eina.Rect.NativeStruct fill_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_fill_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((ImageInternal)wrapper).GetFill(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void filter_state_set(System.IntPtr obj, System.IntPtr pd, System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) + { + Eina.Log.Debug("function efl_gfx_filter_state_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetFilterState(cur_state, cur_val, next_state, next_val, pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur_state, cur_val, next_state, next_val, pos); } - return _ret_var; - } else { - return efl_gfx_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_fill_get_delegate efl_gfx_fill_get_static_delegate; + private static efl_gfx_filter_state_set_delegate efl_gfx_filter_state_set_static_delegate; - private delegate void efl_gfx_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct fill); + + private delegate void efl_gfx_filter_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + public delegate void efl_gfx_filter_padding_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public delegate void efl_gfx_fill_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct fill); - public static Efl.Eo.FunctionWrapper efl_gfx_fill_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_fill_set"); - private static void fill_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct fill) - { - Eina.Log.Debug("function efl_gfx_fill_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_fill = fill; - - try { - ((ImageInternal)wrapper).SetFill( _in_fill); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_padding_get"); + + private static void filter_padding_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_filter_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((ImageInternal)wrapper).GetFilterPadding(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); } - } else { - efl_gfx_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); } - } - private static efl_gfx_fill_set_delegate efl_gfx_fill_set_static_delegate; + private static efl_gfx_filter_padding_get_delegate efl_gfx_filter_padding_get_static_delegate; - private delegate void efl_gfx_filter_program_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_source_get"); + + private static Efl.Gfx.IEntity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_source_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((ImageInternal)wrapper).GetFilterSource(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_gfx_filter_program_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_program_get"); - private static void filter_program_get(System.IntPtr obj, System.IntPtr pd, out System.String code, out System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_program_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_code = default(System.String); - System.String _out_name = default(System.String); - - try { - ((ImageInternal)wrapper).GetFilterProgram( out _out_code, out _out_name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - code = _out_code; - name = _out_name; - } else { - efl_gfx_filter_program_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out code, out name); + else + { + return efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } } - } - private static efl_gfx_filter_program_get_delegate efl_gfx_filter_program_get_static_delegate; + private static efl_gfx_filter_source_get_delegate efl_gfx_filter_source_get_static_delegate; - private delegate void efl_gfx_filter_program_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + private delegate void efl_gfx_filter_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity source); + + public delegate void efl_gfx_filter_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity source); - public delegate void efl_gfx_filter_program_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_program_set"); - private static void filter_program_set(System.IntPtr obj, System.IntPtr pd, System.String code, System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_program_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetFilterProgram( code, name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_source_set"); + + private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.IEntity source) + { + Eina.Log.Debug("function efl_gfx_filter_source_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetFilterSource(name, source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source); } - } else { - efl_gfx_filter_program_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code, name); } - } - private static efl_gfx_filter_program_set_delegate efl_gfx_filter_program_set_static_delegate; + private static efl_gfx_filter_source_set_delegate efl_gfx_filter_source_set_static_delegate; - private delegate void efl_gfx_filter_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); + + private delegate void efl_gfx_filter_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); + + public delegate void efl_gfx_filter_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); - public delegate void efl_gfx_filter_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_state_get"); - private static void filter_state_get(System.IntPtr obj, System.IntPtr pd, out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) - { - Eina.Log.Debug("function efl_gfx_filter_state_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_cur_state = default(System.String); - cur_val = default(double); System.String _out_next_state = default(System.String); - next_val = default(double); pos = default(double); - try { - ((ImageInternal)wrapper).GetFilterState( out _out_cur_state, out cur_val, out _out_next_state, out next_val, out pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_data_get"); + + private static void filter_data_get(System.IntPtr obj, System.IntPtr pd, System.String name, out System.String value, out bool execute) + { + Eina.Log.Debug("function efl_gfx_filter_data_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_value = default(System.String); + execute = default(bool); + try + { + ((ImageInternal)wrapper).GetFilterData(name, out _out_value, out execute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + value = _out_value; + + } + else + { + efl_gfx_filter_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, out value, out execute); } - cur_state = _out_cur_state; - next_state = _out_next_state; - } else { - efl_gfx_filter_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cur_state, out cur_val, out next_state, out next_val, out pos); } - } - private static efl_gfx_filter_state_get_delegate efl_gfx_filter_state_get_static_delegate; + private static efl_gfx_filter_data_get_delegate efl_gfx_filter_data_get_static_delegate; - private delegate void efl_gfx_filter_state_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); + + private delegate void efl_gfx_filter_data_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); + + public delegate void efl_gfx_filter_data_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); - public delegate void efl_gfx_filter_state_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_state_set"); - private static void filter_state_set(System.IntPtr obj, System.IntPtr pd, System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) - { - Eina.Log.Debug("function efl_gfx_filter_state_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetFilterState( cur_state, cur_val, next_state, next_val, pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur_state, cur_val, next_state, next_val, pos); - } - } - private static efl_gfx_filter_state_set_delegate efl_gfx_filter_state_set_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_data_set"); + private static void filter_data_set(System.IntPtr obj, System.IntPtr pd, System.String name, System.String value, bool execute) + { + Eina.Log.Debug("function efl_gfx_filter_data_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetFilterData(name, value, execute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value, execute); + } + } - private delegate void efl_gfx_filter_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_filter_padding_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_padding_get"); - private static void filter_padding_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) - { - Eina.Log.Debug("function efl_gfx_filter_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(int); r = default(int); t = default(int); b = default(int); - try { - ((ImageInternal)wrapper).GetFilterPadding( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); - } - } - private static efl_gfx_filter_padding_get_delegate efl_gfx_filter_padding_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageInternal)wrapper).GetSmoothScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_source_get"); - private static Efl.Gfx.IEntity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_source_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((ImageInternal)wrapper).GetFilterSource( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + else + { + return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_filter_source_get_delegate efl_gfx_filter_source_get_static_delegate; + private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; - private delegate void efl_gfx_filter_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity source); + + private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); - public delegate void efl_gfx_filter_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity source); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_source_set"); - private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.IEntity source) - { - Eina.Log.Debug("function efl_gfx_filter_source_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetFilterSource( name, source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_set"); + + private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetSmoothScale(smooth_scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); } - } else { - efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source); } - } - private static efl_gfx_filter_source_set_delegate efl_gfx_filter_source_set_static_delegate; + private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; - private delegate void efl_gfx_filter_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); + + private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_get"); + + private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); + try + { + _ret_var = ((ImageInternal)wrapper).GetScaleType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_gfx_filter_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_data_get"); - private static void filter_data_get(System.IntPtr obj, System.IntPtr pd, System.String name, out System.String value, out bool execute) - { - Eina.Log.Debug("function efl_gfx_filter_data_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_value = default(System.String); - execute = default(bool); - try { - ((ImageInternal)wrapper).GetFilterData( name, out _out_value, out execute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - value = _out_value; - } else { - efl_gfx_filter_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, out value, out execute); + else + { + return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_filter_data_get_delegate efl_gfx_filter_data_get_static_delegate; + private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; - private delegate void efl_gfx_filter_data_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); + + private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + + public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); - public delegate void efl_gfx_filter_data_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_data_set"); - private static void filter_data_set(System.IntPtr obj, System.IntPtr pd, System.String name, System.String value, bool execute) - { - Eina.Log.Debug("function efl_gfx_filter_data_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetFilterData( name, value, execute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value, execute); + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_set"); + + private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetScaleType(scale_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); + } } - } - private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate; + private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_ratio_get"); + + private static double ratio_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ImageInternal)wrapper).GetRatio(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_smooth_scale_get"); - private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ImageInternal)wrapper).GetSmoothScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; + private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; - private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_smooth_scale_set"); - private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) - { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetSmoothScale( smooth_scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_get"); + + private static void border_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_image_border_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((ImageInternal)wrapper).GetBorder(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + } } - } - private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; + private static efl_gfx_image_border_get_delegate efl_gfx_image_border_get_static_delegate; - private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_image_border_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + + public delegate void efl_gfx_image_border_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); - public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_type_get"); - private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); - try { - _ret_var = ((ImageInternal)wrapper).GetScaleType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_set"); + + private static void border_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) + { + Eina.Log.Debug("function efl_gfx_image_border_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetBorder(l, r, t, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); } - return _ret_var; - } else { - return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; - - private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + private static efl_gfx_image_border_set_delegate efl_gfx_image_border_set_static_delegate; + + private delegate double efl_gfx_image_border_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_type_set"); - private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) - { - Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetScaleType( scale_type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); - } - } - private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + + public delegate double efl_gfx_image_border_scale_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_get"); - private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static double border_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ImageInternal)wrapper).GetBorderScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_ratio_get"); - private static double ratio_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ImageInternal)wrapper).GetRatio(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_border_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + private static efl_gfx_image_border_scale_get_delegate efl_gfx_image_border_scale_get_static_delegate; - private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + private delegate void efl_gfx_image_border_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + public delegate void efl_gfx_image_border_scale_set_api_delegate(System.IntPtr obj, double scale); - public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_get"); - private static void border_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) - { - Eina.Log.Debug("function efl_gfx_image_border_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(int); r = default(int); t = default(int); b = default(int); - try { - ((ImageInternal)wrapper).GetBorder( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); - } - } - private static efl_gfx_image_border_get_delegate efl_gfx_image_border_get_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_set"); + + private static void border_scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetBorderScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_image_border_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + } + } - private delegate void efl_gfx_image_border_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + private static efl_gfx_image_border_scale_set_delegate efl_gfx_image_border_scale_set_static_delegate; + + private delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_image_border_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_set"); - private static void border_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) - { - Eina.Log.Debug("function efl_gfx_image_border_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetBorder( l, r, t, b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); - } - } - private static efl_gfx_image_border_set_delegate efl_gfx_image_border_set_static_delegate; + + public delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_get"); - private delegate double efl_gfx_image_border_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Gfx.BorderFillMode border_center_fill_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.BorderFillMode _ret_var = default(Efl.Gfx.BorderFillMode); + try + { + _ret_var = ((ImageInternal)wrapper).GetBorderCenterFill(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_gfx_image_border_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_scale_get"); - private static double border_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_border_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ImageInternal)wrapper).GetBorderScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_border_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_border_scale_get_delegate efl_gfx_image_border_scale_get_static_delegate; + private static efl_gfx_image_border_center_fill_get_delegate efl_gfx_image_border_center_fill_get_static_delegate; - private delegate void efl_gfx_image_border_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + private delegate void efl_gfx_image_border_center_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill); + + public delegate void efl_gfx_image_border_center_fill_set_api_delegate(System.IntPtr obj, Efl.Gfx.BorderFillMode fill); - public delegate void efl_gfx_image_border_scale_set_api_delegate(System.IntPtr obj, double scale); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_scale_set"); - private static void border_scale_set(System.IntPtr obj, System.IntPtr pd, double scale) - { - Eina.Log.Debug("function efl_gfx_image_border_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetBorderScale( scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_set"); + + private static void border_center_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetBorderCenterFill(fill); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); + } } - } - private static efl_gfx_image_border_scale_set_delegate efl_gfx_image_border_scale_set_static_delegate; + private static efl_gfx_image_border_center_fill_set_delegate efl_gfx_image_border_center_fill_set_static_delegate; - private delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_size_get"); + + private static Eina.Size2D.NativeStruct image_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((ImageInternal)wrapper).GetImageSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_center_fill_get"); - private static Efl.Gfx.BorderFillMode border_center_fill_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_border_center_fill_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.BorderFillMode _ret_var = default(Efl.Gfx.BorderFillMode); - try { - _ret_var = ((ImageInternal)wrapper).GetBorderCenterFill(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_border_center_fill_get_delegate efl_gfx_image_border_center_fill_get_static_delegate; + } + else + { + return efl_gfx_image_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_image_border_center_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill); + private static efl_gfx_image_size_get_delegate efl_gfx_image_size_get_static_delegate; + + private delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_image_border_center_fill_set_api_delegate(System.IntPtr obj, Efl.Gfx.BorderFillMode fill); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_center_fill_set"); - private static void border_center_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill) - { - Eina.Log.Debug("function efl_gfx_image_border_center_fill_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetBorderCenterFill( fill); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); - } - } - private static efl_gfx_image_border_center_fill_set_delegate efl_gfx_image_border_center_fill_set_static_delegate; + + public delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_get"); - private delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Gfx.ImageContentHint content_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageContentHint _ret_var = default(Efl.Gfx.ImageContentHint); + try + { + _ret_var = ((ImageInternal)wrapper).GetContentHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_size_get"); - private static Eina.Size2D.NativeStruct image_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((ImageInternal)wrapper).GetImageSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_content_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_size_get_delegate efl_gfx_image_size_get_static_delegate; + private static efl_gfx_image_content_hint_get_delegate efl_gfx_image_content_hint_get_static_delegate; - private delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_image_content_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint); + + public delegate void efl_gfx_image_content_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageContentHint hint); - public delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_content_hint_get"); - private static Efl.Gfx.ImageContentHint content_hint_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_content_hint_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageContentHint _ret_var = default(Efl.Gfx.ImageContentHint); - try { - _ret_var = ((ImageInternal)wrapper).GetContentHint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_set"); + + private static void content_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetContentHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_content_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); } - return _ret_var; - } else { - return efl_gfx_image_content_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_content_hint_get_delegate efl_gfx_image_content_hint_get_static_delegate; + private static efl_gfx_image_content_hint_set_delegate efl_gfx_image_content_hint_set_static_delegate; - private delegate void efl_gfx_image_content_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint); + + private delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_image_content_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageContentHint hint); - public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_content_hint_set"); - private static void content_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint) - { - Eina.Log.Debug("function efl_gfx_image_content_hint_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetContentHint( hint); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_content_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); - } - } - private static efl_gfx_image_content_hint_set_delegate efl_gfx_image_content_hint_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_get"); - private delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Gfx.ImageScaleHint scale_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageScaleHint _ret_var = default(Efl.Gfx.ImageScaleHint); + try + { + _ret_var = ((ImageInternal)wrapper).GetScaleHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_hint_get"); - private static Efl.Gfx.ImageScaleHint scale_hint_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_scale_hint_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageScaleHint _ret_var = default(Efl.Gfx.ImageScaleHint); - try { - _ret_var = ((ImageInternal)wrapper).GetScaleHint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_scale_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_scale_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_scale_hint_get_delegate efl_gfx_image_scale_hint_get_static_delegate; + private static efl_gfx_image_scale_hint_get_delegate efl_gfx_image_scale_hint_get_static_delegate; - private delegate void efl_gfx_image_scale_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint); + + private delegate void efl_gfx_image_scale_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint); + + public delegate void efl_gfx_image_scale_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleHint hint); - public delegate void efl_gfx_image_scale_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleHint hint); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_hint_set"); - private static void scale_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint) - { - Eina.Log.Debug("function efl_gfx_image_scale_hint_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageInternal)wrapper).SetScaleHint( hint); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_scale_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_set"); + + private static void scale_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageInternal)wrapper).SetScaleHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_scale_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } } - } - private static efl_gfx_image_scale_hint_set_delegate efl_gfx_image_scale_hint_set_static_delegate; + private static efl_gfx_image_scale_hint_set_delegate efl_gfx_image_scale_hint_set_static_delegate; - private delegate Eina.Error efl_gfx_image_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Error efl_gfx_image_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Error efl_gfx_image_load_error_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_error_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_error_get"); + + private static Eina.Error image_load_error_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_error_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((ImageInternal)wrapper).GetImageLoadError(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Error efl_gfx_image_load_error_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_error_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_error_get"); - private static Eina.Error image_load_error_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_error_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((ImageInternal)wrapper).GetImageLoadError(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_error_get_delegate efl_gfx_image_load_error_get_static_delegate; + private static efl_gfx_image_load_error_get_delegate efl_gfx_image_load_error_get_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_view_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_view_size_get"); + + private static Eina.Size2D.NativeStruct view_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_view_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((ImageInternal)wrapper).GetViewSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_view_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_view_size_get"); - private static Eina.Size2D.NativeStruct view_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_view_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((ImageInternal)wrapper).GetViewSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_view_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_view_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_view_size_get_delegate efl_gfx_view_size_get_static_delegate; + private static efl_gfx_view_size_get_delegate efl_gfx_view_size_get_static_delegate; - private delegate void efl_gfx_view_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + private delegate void efl_gfx_view_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_gfx_view_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public delegate void efl_gfx_view_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_view_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_view_size_set"); - private static void view_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_view_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; + public static Efl.Eo.FunctionWrapper efl_gfx_view_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_view_size_set"); + + private static void view_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_view_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; - try { - ((ImageInternal)wrapper).SetViewSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((ImageInternal)wrapper).SetViewSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_view_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - } else { - efl_gfx_view_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - } - private static efl_gfx_view_size_set_delegate efl_gfx_view_size_set_static_delegate; + + private static efl_gfx_view_size_set_delegate efl_gfx_view_size_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout.eo.cs index a4f760f..2d6c5df 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout.eo.cs @@ -3,319 +3,393 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + ///Event argument wrapper for event . public class LayoutPartInvalidEvt_Args : EventArgs { ///Actual event payload. public System.String arg { get; set; } } /// Edje object class -[LayoutNativeInherit] +[Efl.Canvas.Layout.NativeMethods] public class Layout : Efl.Canvas.Group, Efl.Eo.IWrapper,Efl.IContainer,Efl.IFile,Efl.IObserver,Efl.IPart,Efl.IPlayer,Efl.Gfx.IColorClass,Efl.Gfx.ISizeClass,Efl.Gfx.ITextClass,Efl.Layout.ICalc,Efl.Layout.IGroup,Efl.Layout.ISignal { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Layout)) - return Efl.Canvas.LayoutNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Layout)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr efl_canvas_layout_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Layout(Efl.Object parent= null - ) : - base(efl_canvas_layout_class_get(), typeof(Layout), parent) + ) : base(efl_canvas_layout_class_get(), typeof(Layout), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Layout(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Layout(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Layout(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object PartInvalidEvtKey = new object(); + /// Emitted when trying to use an invalid part. The value passed is the part name. public event EventHandler PartInvalidEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.LayoutPartInvalidEvt_Args args = new Efl.Canvas.LayoutPartInvalidEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LAYOUT_EVENT_PART_INVALID"; - if (AddNativeEventHandler(efl.Libs.Edje, key, this.evt_PartInvalidEvt_delegate)) { - eventHandlers.AddHandler(PartInvalidEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Edje, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LAYOUT_EVENT_PART_INVALID"; - if (RemoveNativeEventHandler(key, this.evt_PartInvalidEvt_delegate)) { - eventHandlers.RemoveHandler(PartInvalidEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Edje, key, value); } } } ///Method to raise event PartInvalidEvt. - public void On_PartInvalidEvt(Efl.Canvas.LayoutPartInvalidEvt_Args e) + public void OnPartInvalidEvt(Efl.Canvas.LayoutPartInvalidEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PartInvalidEvtKey]; + var key = "_EFL_LAYOUT_EVENT_PART_INVALID"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Edje, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PartInvalidEvt_delegate; - private void on_PartInvalidEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Canvas.LayoutPartInvalidEvt_Args args = new Efl.Canvas.LayoutPartInvalidEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_PartInvalidEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); } } - -private static object ContentAddedEvtKey = new object(); /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RecalcEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// The layout was recalculated. /// (Since EFL 1.22) public event EventHandler RecalcEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LAYOUT_EVENT_RECALC"; - if (AddNativeEventHandler(efl.Libs.Edje, key, this.evt_RecalcEvt_delegate)) { - eventHandlers.AddHandler(RecalcEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Edje, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LAYOUT_EVENT_RECALC"; - if (RemoveNativeEventHandler(key, this.evt_RecalcEvt_delegate)) { - eventHandlers.RemoveHandler(RecalcEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Edje, key, value); } } } ///Method to raise event RecalcEvt. - public void On_RecalcEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RecalcEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RecalcEvt_delegate; - private void on_RecalcEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRecalcEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_RecalcEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LAYOUT_EVENT_RECALC"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Edje, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CircularDependencyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// A circular dependency between parts of the object was found. /// (Since EFL 1.22) public event EventHandler CircularDependencyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Layout.ICalcCircularDependencyEvt_Args args = new Efl.Layout.ICalcCircularDependencyEvt_Args(); + args.arg = new Eina.Array(evt.Info, false, false); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; - if (AddNativeEventHandler(efl.Libs.Edje, key, this.evt_CircularDependencyEvt_delegate)) { - eventHandlers.AddHandler(CircularDependencyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Edje, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; - if (RemoveNativeEventHandler(key, this.evt_CircularDependencyEvt_delegate)) { - eventHandlers.RemoveHandler(CircularDependencyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Edje, key, value); } } } ///Method to raise event CircularDependencyEvt. - public void On_CircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CircularDependencyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CircularDependencyEvt_delegate; - private void on_CircularDependencyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) { - Efl.Layout.ICalcCircularDependencyEvt_Args args = new Efl.Layout.ICalcCircularDependencyEvt_Args(); - args.arg = new Eina.Array(evt.Info, false, false); - try { - On_CircularDependencyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Edje, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_PartInvalidEvt_delegate = new Efl.EventCb(on_PartInvalidEvt_NativeCallback); - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); - evt_RecalcEvt_delegate = new Efl.EventCb(on_RecalcEvt_NativeCallback); - evt_CircularDependencyEvt_delegate = new Efl.EventCb(on_CircularDependencyEvt_NativeCallback); + IntPtr info = e.arg.Handle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Get the current state of animation, true by default. /// The animation state, true by default. virtual public bool GetAnimation() { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_animation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_animation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Start or stop animating this object. /// The animation state, true by default. - /// - virtual public void SetAnimation( bool on) { - Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_animation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), on); + virtual public void SetAnimation(bool on) { + Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_animation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),on); Eina.Error.RaiseIfUnhandledException(); } /// Returns the seat device given its Edje's name. /// Edje references seats by a name that differs from Evas. Edje naming follows a incrementional convention: first registered name is "seat1", second is "seat2", differently from Evas. /// The name's character string. /// The seat device or null if not found. - virtual public Efl.Input.Device GetSeat( System.String name) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_seat_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Efl.Input.Device GetSeat(System.String name) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_seat_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -323,15 +397,15 @@ private static object CircularDependencyEvtKey = new object(); /// Edje references seats by a name that differs from Evas. Edje naming follows a incrementional convention: first registered name is "seat1", second is "seat2", differently from Evas. /// The seat device /// The name's character string or null if not found. - virtual public System.String GetSeatName( Efl.Input.Device device) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_seat_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), device); + virtual public System.String GetSeatName(Efl.Input.Device device) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_seat_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),device); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the (last) file loading error for a given object. /// The load error code. virtual public Eina.Error GetLayoutLoadError() { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_load_error_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_load_error_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -344,8 +418,8 @@ private static object CircularDependencyEvtKey = new object(); /// The min width policy /// The min height policy /// true on success, or false on error - virtual public bool GetPartTextMinPolicy( System.String part, System.String state_name, out bool min_x, out bool min_y) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_min_policy_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part, state_name, out min_x, out min_y); + virtual public bool GetPartTextMinPolicy(System.String part, System.String state_name, out bool min_x, out bool min_y) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_min_policy_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part, state_name, out min_x, out min_y); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -358,8 +432,8 @@ private static object CircularDependencyEvtKey = new object(); /// The min width policy /// The min height policy /// true on success, or false on error - virtual public bool SetPartTextMinPolicy( System.String part, System.String state_name, bool min_x, bool min_y) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_min_policy_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part, state_name, min_x, min_y); + virtual public bool SetPartTextMinPolicy(System.String part, System.String state_name, bool min_x, bool min_y) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_min_policy_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part, state_name, min_x, min_y); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -367,8 +441,8 @@ private static object CircularDependencyEvtKey = new object(); /// Do not use this API without understanding whats going on. It is made for internal usage. @internal /// The part name /// The valign 0.0~1.0. -1.0 for respect EDC's align value. - virtual public double GetPartTextValign( System.String part) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_valign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part); + virtual public double GetPartTextValign(System.String part) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_valign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -377,8 +451,8 @@ private static object CircularDependencyEvtKey = new object(); /// The part name /// The valign 0.0~1.0. -1.0 for respect EDC's align value. /// true, on success or false, on error - virtual public bool SetPartTextValign( System.String part, double valign) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_valign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part, valign); + virtual public bool SetPartTextValign(System.String part, double valign) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_valign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part, valign); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -386,8 +460,8 @@ private static object CircularDependencyEvtKey = new object(); /// Do not use this API without understanding whats going on. It is made for internal usage. @internal /// The part name /// The duration. 0.0 for respect EDC's duration value. - virtual public double GetPartTextMarqueeDuration( System.String part) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_marquee_duration_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part); + virtual public double GetPartTextMarqueeDuration(System.String part) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_marquee_duration_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -396,8 +470,8 @@ private static object CircularDependencyEvtKey = new object(); /// The part name /// The duration. 0.0 for respect EDC's duration value. /// true, on success or false, on error - virtual public bool SetPartTextMarqueeDuration( System.String part, double duration) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_marquee_duration_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part, duration); + virtual public bool SetPartTextMarqueeDuration(System.String part, double duration) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_marquee_duration_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part, duration); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -405,8 +479,8 @@ private static object CircularDependencyEvtKey = new object(); /// Do not use this API without understanding whats going on. It is made for internal usage. @internal /// The part name /// The speed. 0.0 for respect EDC's speed value. - virtual public double GetPartTextMarqueeSpeed( System.String part) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_marquee_speed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part); + virtual public double GetPartTextMarqueeSpeed(System.String part) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_marquee_speed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -415,8 +489,8 @@ private static object CircularDependencyEvtKey = new object(); /// The part name /// The speed. 0.0 for respect EDC's speed value. /// true, on success or false, on error - virtual public bool SetPartTextMarqueeSpeed( System.String part, double speed) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_marquee_speed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part, speed); + virtual public bool SetPartTextMarqueeSpeed(System.String part, double speed) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_marquee_speed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part, speed); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -424,8 +498,8 @@ private static object CircularDependencyEvtKey = new object(); /// Do not use this API without understanding whats going on. It is made for internal usage. @internal /// The part name /// The always mode - virtual public bool GetPartTextMarqueeAlways( System.String part) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_marquee_always_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part); + virtual public bool GetPartTextMarqueeAlways(System.String part) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_marquee_always_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -434,8 +508,8 @@ private static object CircularDependencyEvtKey = new object(); /// The part name /// The always mode /// true, on success or false, on error - virtual public bool SetPartTextMarqueeAlways( System.String part, bool always) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_marquee_always_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part, always); + virtual public bool SetPartTextMarqueeAlways(System.String part, bool always) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_marquee_always_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part, always); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -443,8 +517,8 @@ private static object CircularDependencyEvtKey = new object(); /// Do not use this API without understanding whats going on. It is made for internal usage. @internal /// The part name /// The valign 0.0~1.0. -1.0 for respect EDC's align value. - virtual public double GetPartValign( System.String part) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_valign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part); + virtual public double GetPartValign(System.String part) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_valign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -453,39 +527,37 @@ private static object CircularDependencyEvtKey = new object(); /// The part name /// The valign 0.0~1.0. -1.0 for respect EDC's align value. /// true, on success or false, on error - virtual public bool SetPartValign( System.String part, double valign) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_valign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part, valign); + virtual public bool SetPartValign(System.String part, double valign) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_valign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part, valign); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Iterates over all accessibility-enabled part names. /// Part name iterator virtual public Eina.Iterator AccessPartIterate() { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_access_part_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_access_part_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } /// Unswallow an object from this Edje. /// To be removed content. /// false if content was not a child or can not be removed. - virtual public bool ContentRemove( Efl.Gfx.IEntity content) { - var _ret_var = Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_content_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + virtual public bool ContentRemove(Efl.Gfx.IEntity content) { + var _ret_var = Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_content_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the parent object for color class. /// @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif @internal /// The parent object for color class - /// - virtual public void SetColorClassParent( Efl.Object parent) { - Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_color_class_parent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), parent); + virtual public void SetColorClassParent(Efl.Object parent) { + Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_color_class_parent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),parent); Eina.Error.RaiseIfUnhandledException(); } /// Unsets the parent object for color class. /// @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif @internal - /// virtual public void UnsetColorClassParent() { - Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_color_class_parent_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_color_class_parent_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Get a position of the given cursor @@ -494,9 +566,8 @@ private static object CircularDependencyEvtKey = new object(); /// cursor type /// w /// h - /// - virtual public void GetPartTextCursorCoord( System.String part, Edje.Cursor cur, out int x, out int y) { - Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_cursor_coord_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part, cur, out x, out y); + virtual public void GetPartTextCursorCoord(System.String part, Edje.Cursor cur, out int x, out int y) { + Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_cursor_coord_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part, cur, out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Get a size of the given cursor @@ -505,9 +576,8 @@ private static object CircularDependencyEvtKey = new object(); /// cursor type /// w /// h - /// - virtual public void GetPartTextCursorSize( System.String part, Edje.Cursor cur, out int w, out int h) { - Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_cursor_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part, cur, out w, out h); + virtual public void GetPartTextCursorSize(System.String part, Edje.Cursor cur, out int w, out int h) { + Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_cursor_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part, cur, out w, out h); Eina.Error.RaiseIfUnhandledException(); } /// Returns the cursor geometry of the part relative to the edje object. The cursor geometry is kept in mouse down and move. @@ -517,16 +587,15 @@ private static object CircularDependencyEvtKey = new object(); /// Cursor Y position /// Cursor width /// Cursor height - /// - virtual public void GetPartTextCursorOnMouseGeometry( System.String part, out int x, out int y, out int w, out int h) { - Efl.Canvas.LayoutNativeInherit.efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part, out x, out y, out w, out h); + virtual public void GetPartTextCursorOnMouseGeometry(System.String part, out int x, out int y, out int w, out int h) { + Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part, out x, out y, out w, out h); Eina.Error.RaiseIfUnhandledException(); } /// Begin iterating over this object's contents. /// (Since EFL 1.22) /// Iterator to object content virtual public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -534,7 +603,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements virtual public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -542,7 +611,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The handle to the that will be used virtual public Eina.File GetMmap() { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -551,8 +620,8 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise - virtual public Eina.Error SetMmap( Eina.File f) { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public Eina.Error SetMmap(Eina.File f) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -561,7 +630,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The file path. virtual public System.String GetFile() { - var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -570,8 +639,8 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise - virtual public Eina.Error SetFile( System.String file) { - var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file); + virtual public Eina.Error SetFile(System.String file) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -582,7 +651,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. virtual public System.String GetKey() { - var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -590,16 +659,15 @@ private static object CircularDependencyEvtKey = new object(); /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. - /// - virtual public void SetKey( System.String key) { - Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public void SetKey(System.String key) { + Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. virtual public bool GetLoaded() { - var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -610,7 +678,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// 0 on success, error code otherwise virtual public Eina.Error Load() { - var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -619,72 +687,68 @@ private static object CircularDependencyEvtKey = new object(); /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) - /// virtual public void Unload() { - Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Update observer according to the changes of observable object. /// An observable object /// A key to classify observer groups /// Required data to update the observer, usually passed by observable object - /// - virtual public void Update( Efl.Object obs, System.String key, System.IntPtr data) { - Efl.IObserverNativeInherit.efl_observer_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), obs, key, data); + virtual public void Update(Efl.Object obs, System.String key, System.IntPtr data) { + Efl.IObserverConcrete.NativeMethods.efl_observer_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),obs, key, data); Eina.Error.RaiseIfUnhandledException(); } /// Get a proxy object referring to a part of an object. /// (Since EFL 1.22) /// The part name. /// A (proxy) object, valid for a single call. - virtual public Efl.Object GetPart( System.String name) { - var _ret_var = Efl.IPartNativeInherit.efl_part_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Efl.Object GetPart(System.String name) { + var _ret_var = Efl.IPartConcrete.NativeMethods.efl_part_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether or not the playable can be played. /// true if the object have playable data, false otherwise virtual public bool GetPlayable() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get play/pause state of the media file. /// true if playing, false otherwise. virtual public bool GetPlay() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_play_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set play/pause state of the media file. /// This functions sets the currently playing status of the video. Using this function to play or pause the video doesn't alter it's current position. /// true if playing, false otherwise. - /// - virtual public void SetPlay( bool play) { - Efl.IPlayerNativeInherit.efl_player_play_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), play); + virtual public void SetPlay(bool play) { + Efl.IPlayerConcrete.NativeMethods.efl_player_play_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),play); Eina.Error.RaiseIfUnhandledException(); } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). virtual public double GetPos() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the position in the media file. /// This functions sets the current position of the media file to "sec", this only works on seekable streams. Setting the position doesn't change the playing state of the media file. /// The position (in seconds). - /// - virtual public void SetPos( double sec) { - Efl.IPlayerNativeInherit.efl_player_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sec); + virtual public void SetPos(double sec) { + Efl.IPlayerConcrete.NativeMethods.efl_player_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sec); Eina.Error.RaiseIfUnhandledException(); } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. /// The progress within the [0, 1] range. virtual public double GetProgress() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_progress_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_progress_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -692,72 +756,67 @@ private static object CircularDependencyEvtKey = new object(); /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. virtual public double GetPlaySpeed() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_play_speed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the play speed of the media file. /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. - /// - virtual public void SetPlaySpeed( double speed) { - Efl.IPlayerNativeInherit.efl_player_play_speed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), speed); + virtual public void SetPlaySpeed(double speed) { + Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),speed); Eina.Error.RaiseIfUnhandledException(); } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level virtual public double GetVolume() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_volume_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_volume_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level - /// - virtual public void SetVolume( double volume) { - Efl.IPlayerNativeInherit.efl_player_volume_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), volume); + virtual public void SetVolume(double volume) { + Efl.IPlayerConcrete.NativeMethods.efl_player_volume_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),volume); Eina.Error.RaiseIfUnhandledException(); } /// This property controls the audio mute state. /// The mute state. true or false. virtual public bool GetMute() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_mute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_mute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This property controls the audio mute state. /// The mute state. true or false. - /// - virtual public void SetMute( bool mute) { - Efl.IPlayerNativeInherit.efl_player_mute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mute); + virtual public void SetMute(bool mute) { + Efl.IPlayerConcrete.NativeMethods.efl_player_mute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mute); Eina.Error.RaiseIfUnhandledException(); } /// Get the length of play for the media file. /// The length of the stream in seconds. virtual public double GetLength() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get whether the media file is seekable. /// true if seekable. virtual public bool GetSeekable() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Start a playing playable object. - /// virtual public void Start() { - Efl.IPlayerNativeInherit.efl_player_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPlayerConcrete.NativeMethods.efl_player_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Stop playable object. - /// virtual public void Stop() { - Efl.IPlayerNativeInherit.efl_player_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPlayerConcrete.NativeMethods.efl_player_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Get the color of color class. @@ -773,8 +832,8 @@ private static object CircularDependencyEvtKey = new object(); /// The intensity of the blue color /// The alpha value /// true if getting the color succeeded, false otherwise - virtual public bool GetColorClass( System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a) { - var _ret_var = Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), color_class, layer, out r, out g, out b, out a); + virtual public bool GetColorClass(System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a) { + var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),color_class, layer, out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -793,8 +852,8 @@ private static object CircularDependencyEvtKey = new object(); /// The intensity of the blue color /// The alpha value /// true if setting the color succeeded, false otherwise - virtual public bool SetColorClass( System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a) { - var _ret_var = Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), color_class, layer, r, g, b, a); + virtual public bool SetColorClass(System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a) { + var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),color_class, layer, r, g, b, a); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -809,8 +868,8 @@ private static object CircularDependencyEvtKey = new object(); /// The name of color class /// The layer to set the color /// the hex color code. - virtual public System.String GetColorClassCode( System.String color_class, Efl.Gfx.ColorClassLayer layer) { - var _ret_var = Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), color_class, layer); + virtual public System.String GetColorClassCode(System.String color_class, Efl.Gfx.ColorClassLayer layer) { + var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),color_class, layer); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -826,8 +885,8 @@ private static object CircularDependencyEvtKey = new object(); /// The layer to set the color /// the hex color code. /// true if setting the color succeeded, false otherwise - virtual public bool SetColorClassCode( System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) { - var _ret_var = Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), color_class, layer, colorcode); + virtual public bool SetColorClassCode(System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) { + var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),color_class, layer, colorcode); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -835,8 +894,8 @@ private static object CircularDependencyEvtKey = new object(); /// This function gets the description of a color class in use by an object. /// The name of color class /// The description of the target color class or null if not found - virtual public System.String GetColorClassDescription( System.String color_class) { - var _ret_var = Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_description_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), color_class); + virtual public System.String GetColorClassDescription(System.String color_class) { + var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_description_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),color_class); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -847,16 +906,14 @@ private static object CircularDependencyEvtKey = new object(); /// /// Deleting the color class will emit the signal "color_class,del" for the given Edje object. /// The name of color_class - /// - virtual public void DelColorClass( System.String color_class) { - Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), color_class); + virtual public void DelColorClass(System.String color_class) { + Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),color_class); Eina.Error.RaiseIfUnhandledException(); } /// Delete all color classes defined in object level. /// This function deletes any color classes defined in object level. Clearing color classes will revert the color of all edje parts to the values defined in global level or theme file. - /// virtual public void ClearColorClass() { - Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Get width and height of size class. @@ -867,8 +924,8 @@ private static object CircularDependencyEvtKey = new object(); /// maximum width /// maximum height /// true, on success or false, on error - virtual public bool GetSizeClass( System.String size_class, out int minw, out int minh, out int maxw, out int maxh) { - var _ret_var = Efl.Gfx.ISizeClassNativeInherit.efl_gfx_size_class_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), size_class, out minw, out minh, out maxw, out maxh); + virtual public bool GetSizeClass(System.String size_class, out int minw, out int minh, out int maxw, out int maxh) { + var _ret_var = Efl.Gfx.ISizeClassConcrete.NativeMethods.efl_gfx_size_class_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),size_class, out minw, out minh, out maxw, out maxh); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -880,8 +937,8 @@ private static object CircularDependencyEvtKey = new object(); /// maximum width /// maximum height /// true, on success or false, on error - virtual public bool SetSizeClass( System.String size_class, int minw, int minh, int maxw, int maxh) { - var _ret_var = Efl.Gfx.ISizeClassNativeInherit.efl_gfx_size_class_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), size_class, minw, minh, maxw, maxh); + virtual public bool SetSizeClass(System.String size_class, int minw, int minh, int maxw, int maxh) { + var _ret_var = Efl.Gfx.ISizeClassConcrete.NativeMethods.efl_gfx_size_class_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),size_class, minw, minh, maxw, maxh); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -890,9 +947,8 @@ private static object CircularDependencyEvtKey = new object(); /// /// Deleting the size class will revert it to the values defined by or the size class defined in the theme file. /// The size class to be deleted. - /// - virtual public void DelSizeClass( System.String size_class) { - Efl.Gfx.ISizeClassNativeInherit.efl_gfx_size_class_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), size_class); + virtual public void DelSizeClass(System.String size_class) { + Efl.Gfx.ISizeClassConcrete.NativeMethods.efl_gfx_size_class_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),size_class); Eina.Error.RaiseIfUnhandledException(); } /// Get font and font size from edje text class. @@ -901,8 +957,8 @@ private static object CircularDependencyEvtKey = new object(); /// Font name /// Font Size /// true, on success or false, on error - virtual public bool GetTextClass( System.String text_class, out System.String font, out Efl.Font.Size size) { - var _ret_var = Efl.Gfx.ITextClassNativeInherit.efl_gfx_text_class_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text_class, out font, out size); + virtual public bool GetTextClass(System.String text_class, out System.String font, out Efl.Font.Size size) { + var _ret_var = Efl.Gfx.ITextClassConcrete.NativeMethods.efl_gfx_text_class_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text_class, out font, out size); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -912,8 +968,8 @@ private static object CircularDependencyEvtKey = new object(); /// Font name /// Font Size /// true, on success or false, on error - virtual public bool SetTextClass( System.String text_class, System.String font, Efl.Font.Size size) { - var _ret_var = Efl.Gfx.ITextClassNativeInherit.efl_gfx_text_class_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text_class, font, size); + virtual public bool SetTextClass(System.String text_class, System.String font, Efl.Font.Size size) { + var _ret_var = Efl.Gfx.ITextClassConcrete.NativeMethods.efl_gfx_text_class_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text_class, font, size); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -922,25 +978,23 @@ private static object CircularDependencyEvtKey = new object(); /// /// Deleting the text class will revert it to the values defined by or the text class defined in the theme file. /// The text class to be deleted. - /// - virtual public void DelTextClass( System.String text_class) { - Efl.Gfx.ITextClassNativeInherit.efl_gfx_text_class_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text_class); + virtual public void DelTextClass(System.String text_class) { + Efl.Gfx.ITextClassConcrete.NativeMethods.efl_gfx_text_class_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text_class); Eina.Error.RaiseIfUnhandledException(); } /// Whether this object updates its size hints automatically. /// (Since EFL 1.22) /// Whether or not update the size hints. virtual public bool GetCalcAutoUpdateHints() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable or disable auto-update of size hints. /// (Since EFL 1.22) /// Whether or not update the size hints. - /// - virtual public void SetCalcAutoUpdateHints( bool update) { - Efl.Layout.ICalcNativeInherit.efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), update); + virtual public void SetCalcAutoUpdateHints(bool update) { + Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),update); Eina.Error.RaiseIfUnhandledException(); } /// Calculates the minimum required size for a given layout object. @@ -952,9 +1006,9 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The minimum size constraint as input, the returned size can not be lower than this (in both directions). /// The minimum required size. - virtual public Eina.Size2D CalcSizeMin( Eina.Size2D restricted) { + virtual public Eina.Size2D CalcSizeMin(Eina.Size2D restricted) { Eina.Size2D.NativeStruct _in_restricted = restricted; - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_size_min_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_restricted); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_size_min_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_restricted); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -965,7 +1019,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The calculated region. virtual public Eina.Rect CalcPartsExtends() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_parts_extends_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_parts_extends_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -976,7 +1030,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The frozen state or 0 on error virtual public int FreezeCalc() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -989,7 +1043,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The frozen state or 0 if the object is not frozen or on error. virtual public int ThawCalc() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_thaw_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_thaw_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -998,9 +1052,8 @@ private static object CircularDependencyEvtKey = new object(); /// /// See also and . /// (Since EFL 1.22) - /// virtual public void CalcForce() { - Efl.Layout.ICalcNativeInherit.efl_layout_calc_force_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_force_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Gets the minimum size specified -- as an EDC property -- for a given Edje object @@ -1014,7 +1067,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The minimum size as set in EDC. virtual public Eina.Size2D GetGroupSizeMin() { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_size_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_size_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1029,7 +1082,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The maximum size as set in EDC. virtual public Eina.Size2D GetGroupSizeMax() { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_size_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_size_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1044,8 +1097,8 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The data field's key string /// The data's value string. - virtual public System.String GetGroupData( System.String key) { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public System.String GetGroupData(System.String key) { + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1053,8 +1106,8 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The part name to check. /// true if the part exists, false otherwise. - virtual public bool GetPartExist( System.String part) { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_part_exist_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part); + virtual public bool GetPartExist(System.String part) { + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_part_exist_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1067,9 +1120,8 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// A identification number for the message to be sent /// The message's payload - /// - virtual public void MessageSend( int id, Eina.Value msg) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_message_send_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id, msg); + virtual public void MessageSend(int id, Eina.Value msg) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_message_send_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),id, msg); Eina.Error.RaiseIfUnhandledException(); } /// Adds a callback for an arriving Edje signal, emitted by a given Edje object. @@ -1093,9 +1145,9 @@ private static object CircularDependencyEvtKey = new object(); /// The signal's "source" string /// The callback function to be executed when the signal is emitted. /// true in case of success, false in case of error. - virtual public bool AddSignalCallback( System.String emission, System.String source, EflLayoutSignalCb func) { + virtual public bool AddSignalCallback(System.String emission, System.String source, EflLayoutSignalCb func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.Layout.ISignalNativeInherit.efl_layout_signal_callback_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_callback_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1108,9 +1160,9 @@ private static object CircularDependencyEvtKey = new object(); /// The signal's "source" string /// The callback function to be executed when the signal is emitted. /// true in case of success, false in case of error. - virtual public bool DelSignalCallback( System.String emission, System.String source, EflLayoutSignalCb func) { + virtual public bool DelSignalCallback(System.String emission, System.String source, EflLayoutSignalCb func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.Layout.ISignalNativeInherit.efl_layout_signal_callback_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_callback_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1123,9 +1175,8 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The signal's "emission" string /// The signal's "source" string - /// - virtual public void EmitSignal( System.String emission, System.String source) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_emit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), emission, source); + virtual public void EmitSignal(System.String emission, System.String source) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_emit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),emission, source); Eina.Error.RaiseIfUnhandledException(); } /// Processes an object's messages and signals queue. @@ -1134,9 +1185,8 @@ private static object CircularDependencyEvtKey = new object(); /// If recurse is true, this function will be called recursively on all subobjects. /// (Since EFL 1.22) /// Whether to process messages on children objects. - /// - virtual public void SignalProcess( bool recurse) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_process_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), recurse); + virtual public void SignalProcess(bool recurse) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_process_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),recurse); Eina.Error.RaiseIfUnhandledException(); } /// Whether this object is animating or not. @@ -1146,7 +1196,7 @@ private static object CircularDependencyEvtKey = new object(); /// The animation state, true by default. public bool Animation { get { return GetAnimation(); } - set { SetAnimation( value); } + set { SetAnimation(value); } } /// Gets the (last) file loading error for a given object. /// The load error code. @@ -1158,7 +1208,7 @@ private static object CircularDependencyEvtKey = new object(); /// The handle to the that will be used public Eina.File Mmap { get { return GetMmap(); } - set { SetMmap( value); } + set { SetMmap(value); } } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. @@ -1166,7 +1216,7 @@ private static object CircularDependencyEvtKey = new object(); /// The file path. public System.String File { get { return GetFile(); } - set { SetFile( value); } + set { SetFile(value); } } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -1176,7 +1226,7 @@ private static object CircularDependencyEvtKey = new object(); /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String Key { get { return GetKey(); } - set { SetKey( value); } + set { SetKey(value); } } /// Get the load state of the object. /// (Since EFL 1.22) @@ -1193,14 +1243,14 @@ private static object CircularDependencyEvtKey = new object(); /// true if playing, false otherwise. public bool Play { get { return GetPlay(); } - set { SetPlay( value); } + set { SetPlay(value); } } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). public double Pos { get { return GetPos(); } - set { SetPos( value); } + set { SetPos(value); } } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. @@ -1213,20 +1263,20 @@ private static object CircularDependencyEvtKey = new object(); /// The play speed in the [0, infinity) range. public double PlaySpeed { get { return GetPlaySpeed(); } - set { SetPlaySpeed( value); } + set { SetPlaySpeed(value); } } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level public double Volume { get { return GetVolume(); } - set { SetVolume( value); } + set { SetVolume(value); } } /// This property controls the audio mute state. /// The mute state. true or false. public bool Mute { get { return GetMute(); } - set { SetMute( value); } + set { SetMute(value); } } /// Get the length of play for the media file. /// The length of the stream in seconds. @@ -1246,7 +1296,7 @@ private static object CircularDependencyEvtKey = new object(); /// Whether or not update the size hints. public bool CalcAutoUpdateHints { get { return GetCalcAutoUpdateHints(); } - set { SetCalcAutoUpdateHints( value); } + set { SetCalcAutoUpdateHints(value); } } /// Gets the minimum size specified -- as an EDC property -- for a given Edje object /// This function retrieves the obj object's minimum size values, as declared in its EDC group definition. For instance, for an Edje object of minimum size 100x100 pixels: collections { group { name: "a_group"; min: 100 100; } } @@ -1278,2381 +1328,3787 @@ private static object CircularDependencyEvtKey = new object(); { return Efl.Canvas.Layout.efl_canvas_layout_class_get(); } -} -public class LayoutNativeInherit : Efl.Canvas.GroupNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Edje); - 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_canvas_layout_animation_get_static_delegate == null) - efl_canvas_layout_animation_get_static_delegate = new efl_canvas_layout_animation_get_delegate(animation_get); - if (methods.FirstOrDefault(m => m.Name == "GetAnimation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_animation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_animation_get_static_delegate)}); - if (efl_canvas_layout_animation_set_static_delegate == null) - efl_canvas_layout_animation_set_static_delegate = new efl_canvas_layout_animation_set_delegate(animation_set); - if (methods.FirstOrDefault(m => m.Name == "SetAnimation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_animation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_animation_set_static_delegate)}); - if (efl_canvas_layout_seat_get_static_delegate == null) - efl_canvas_layout_seat_get_static_delegate = new efl_canvas_layout_seat_get_delegate(seat_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeat") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_seat_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_seat_get_static_delegate)}); - if (efl_canvas_layout_seat_name_get_static_delegate == null) - efl_canvas_layout_seat_name_get_static_delegate = new efl_canvas_layout_seat_name_get_delegate(seat_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeatName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_seat_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_seat_name_get_static_delegate)}); - if (efl_canvas_layout_load_error_get_static_delegate == null) - efl_canvas_layout_load_error_get_static_delegate = new efl_canvas_layout_load_error_get_delegate(layout_load_error_get); - if (methods.FirstOrDefault(m => m.Name == "GetLayoutLoadError") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_load_error_get_static_delegate)}); - if (efl_canvas_layout_part_text_min_policy_get_static_delegate == null) - efl_canvas_layout_part_text_min_policy_get_static_delegate = new efl_canvas_layout_part_text_min_policy_get_delegate(part_text_min_policy_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartTextMinPolicy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_min_policy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_min_policy_get_static_delegate)}); - if (efl_canvas_layout_part_text_min_policy_set_static_delegate == null) - efl_canvas_layout_part_text_min_policy_set_static_delegate = new efl_canvas_layout_part_text_min_policy_set_delegate(part_text_min_policy_set); - if (methods.FirstOrDefault(m => m.Name == "SetPartTextMinPolicy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_min_policy_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_min_policy_set_static_delegate)}); - if (efl_canvas_layout_part_text_valign_get_static_delegate == null) - efl_canvas_layout_part_text_valign_get_static_delegate = new efl_canvas_layout_part_text_valign_get_delegate(part_text_valign_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartTextValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_valign_get_static_delegate)}); - if (efl_canvas_layout_part_text_valign_set_static_delegate == null) - efl_canvas_layout_part_text_valign_set_static_delegate = new efl_canvas_layout_part_text_valign_set_delegate(part_text_valign_set); - if (methods.FirstOrDefault(m => m.Name == "SetPartTextValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_valign_set_static_delegate)}); - if (efl_canvas_layout_part_text_marquee_duration_get_static_delegate == null) - efl_canvas_layout_part_text_marquee_duration_get_static_delegate = new efl_canvas_layout_part_text_marquee_duration_get_delegate(part_text_marquee_duration_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartTextMarqueeDuration") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_marquee_duration_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_duration_get_static_delegate)}); - if (efl_canvas_layout_part_text_marquee_duration_set_static_delegate == null) - efl_canvas_layout_part_text_marquee_duration_set_static_delegate = new efl_canvas_layout_part_text_marquee_duration_set_delegate(part_text_marquee_duration_set); - if (methods.FirstOrDefault(m => m.Name == "SetPartTextMarqueeDuration") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_marquee_duration_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_duration_set_static_delegate)}); - if (efl_canvas_layout_part_text_marquee_speed_get_static_delegate == null) - efl_canvas_layout_part_text_marquee_speed_get_static_delegate = new efl_canvas_layout_part_text_marquee_speed_get_delegate(part_text_marquee_speed_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartTextMarqueeSpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_marquee_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_speed_get_static_delegate)}); - if (efl_canvas_layout_part_text_marquee_speed_set_static_delegate == null) - efl_canvas_layout_part_text_marquee_speed_set_static_delegate = new efl_canvas_layout_part_text_marquee_speed_set_delegate(part_text_marquee_speed_set); - if (methods.FirstOrDefault(m => m.Name == "SetPartTextMarqueeSpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_marquee_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_speed_set_static_delegate)}); - if (efl_canvas_layout_part_text_marquee_always_get_static_delegate == null) - efl_canvas_layout_part_text_marquee_always_get_static_delegate = new efl_canvas_layout_part_text_marquee_always_get_delegate(part_text_marquee_always_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartTextMarqueeAlways") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_marquee_always_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_always_get_static_delegate)}); - if (efl_canvas_layout_part_text_marquee_always_set_static_delegate == null) - efl_canvas_layout_part_text_marquee_always_set_static_delegate = new efl_canvas_layout_part_text_marquee_always_set_delegate(part_text_marquee_always_set); - if (methods.FirstOrDefault(m => m.Name == "SetPartTextMarqueeAlways") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_marquee_always_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_always_set_static_delegate)}); - if (efl_canvas_layout_part_valign_get_static_delegate == null) - efl_canvas_layout_part_valign_get_static_delegate = new efl_canvas_layout_part_valign_get_delegate(part_valign_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_valign_get_static_delegate)}); - if (efl_canvas_layout_part_valign_set_static_delegate == null) - efl_canvas_layout_part_valign_set_static_delegate = new efl_canvas_layout_part_valign_set_delegate(part_valign_set); - if (methods.FirstOrDefault(m => m.Name == "SetPartValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_valign_set_static_delegate)}); - if (efl_canvas_layout_access_part_iterate_static_delegate == null) - efl_canvas_layout_access_part_iterate_static_delegate = new efl_canvas_layout_access_part_iterate_delegate(access_part_iterate); - if (methods.FirstOrDefault(m => m.Name == "AccessPartIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_access_part_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_access_part_iterate_static_delegate)}); - if (efl_canvas_layout_content_remove_static_delegate == null) - efl_canvas_layout_content_remove_static_delegate = new efl_canvas_layout_content_remove_delegate(content_remove); - if (methods.FirstOrDefault(m => m.Name == "ContentRemove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_content_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_content_remove_static_delegate)}); - if (efl_canvas_layout_color_class_parent_set_static_delegate == null) - efl_canvas_layout_color_class_parent_set_static_delegate = new efl_canvas_layout_color_class_parent_set_delegate(color_class_parent_set); - if (methods.FirstOrDefault(m => m.Name == "SetColorClassParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_color_class_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_color_class_parent_set_static_delegate)}); - if (efl_canvas_layout_color_class_parent_unset_static_delegate == null) - efl_canvas_layout_color_class_parent_unset_static_delegate = new efl_canvas_layout_color_class_parent_unset_delegate(color_class_parent_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetColorClassParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_color_class_parent_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_color_class_parent_unset_static_delegate)}); - if (efl_canvas_layout_part_text_cursor_coord_get_static_delegate == null) - efl_canvas_layout_part_text_cursor_coord_get_static_delegate = new efl_canvas_layout_part_text_cursor_coord_get_delegate(part_text_cursor_coord_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartTextCursorCoord") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_cursor_coord_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_cursor_coord_get_static_delegate)}); - if (efl_canvas_layout_part_text_cursor_size_get_static_delegate == null) - efl_canvas_layout_part_text_cursor_size_get_static_delegate = new efl_canvas_layout_part_text_cursor_size_get_delegate(part_text_cursor_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartTextCursorSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_cursor_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_cursor_size_get_static_delegate)}); - if (efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_static_delegate == null) - efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_static_delegate = new efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_delegate(part_text_cursor_on_mouse_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartTextCursorOnMouseGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_cursor_on_mouse_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_static_delegate)}); - if (efl_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - if (efl_file_mmap_get_static_delegate == null) - efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate)}); - if (efl_file_mmap_set_static_delegate == null) - efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate)}); - if (efl_file_get_static_delegate == null) - efl_file_get_static_delegate = new efl_file_get_delegate(file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate)}); - if (efl_file_set_static_delegate == null) - efl_file_set_static_delegate = new efl_file_set_delegate(file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate)}); - if (efl_file_key_get_static_delegate == null) - efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate)}); - if (efl_file_key_set_static_delegate == null) - efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate)}); - if (efl_file_loaded_get_static_delegate == null) - efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate)}); - if (efl_file_load_static_delegate == null) - efl_file_load_static_delegate = new efl_file_load_delegate(load); - if (methods.FirstOrDefault(m => m.Name == "Load") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate)}); - if (efl_file_unload_static_delegate == null) - efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); - if (methods.FirstOrDefault(m => m.Name == "Unload") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate)}); - if (efl_observer_update_static_delegate == null) - efl_observer_update_static_delegate = new efl_observer_update_delegate(update); - if (methods.FirstOrDefault(m => m.Name == "Update") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_observer_update"), func = Marshal.GetFunctionPointerForDelegate(efl_observer_update_static_delegate)}); - if (efl_part_get_static_delegate == null) - efl_part_get_static_delegate = new efl_part_get_delegate(part_get); - if (methods.FirstOrDefault(m => m.Name == "GetPart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_part_get"), func = Marshal.GetFunctionPointerForDelegate(efl_part_get_static_delegate)}); - if (efl_player_playable_get_static_delegate == null) - efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_playable_get_static_delegate)}); - if (efl_player_play_get_static_delegate == null) - efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_get_static_delegate)}); - if (efl_player_play_set_static_delegate == null) - efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set); - if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_set_static_delegate)}); - if (efl_player_pos_get_static_delegate == null) - efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_get_static_delegate)}); - if (efl_player_pos_set_static_delegate == null) - efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_set_static_delegate)}); - if (efl_player_progress_get_static_delegate == null) - efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get); - if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_progress_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_progress_get_static_delegate)}); - if (efl_player_play_speed_get_static_delegate == null) - efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_get_static_delegate)}); - if (efl_player_play_speed_set_static_delegate == null) - efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set); - if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_set_static_delegate)}); - if (efl_player_volume_get_static_delegate == null) - efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get); - if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_volume_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_get_static_delegate)}); - if (efl_player_volume_set_static_delegate == null) - efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set); - if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_volume_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_set_static_delegate)}); - if (efl_player_mute_get_static_delegate == null) - efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get); - if (methods.FirstOrDefault(m => m.Name == "GetMute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_mute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_get_static_delegate)}); - if (efl_player_mute_set_static_delegate == null) - efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set); - if (methods.FirstOrDefault(m => m.Name == "SetMute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_mute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_set_static_delegate)}); - if (efl_player_length_get_static_delegate == null) - efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get); - if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_length_get_static_delegate)}); - if (efl_player_seekable_get_static_delegate == null) - efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_seekable_get_static_delegate)}); - if (efl_player_start_static_delegate == null) - efl_player_start_static_delegate = new efl_player_start_delegate(start); - if (methods.FirstOrDefault(m => m.Name == "Start") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_start"), func = Marshal.GetFunctionPointerForDelegate(efl_player_start_static_delegate)}); - if (efl_player_stop_static_delegate == null) - efl_player_stop_static_delegate = new efl_player_stop_delegate(stop); - if (methods.FirstOrDefault(m => m.Name == "Stop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate)}); - if (efl_gfx_color_class_get_static_delegate == null) - efl_gfx_color_class_get_static_delegate = new efl_gfx_color_class_get_delegate(color_class_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_get_static_delegate)}); - if (efl_gfx_color_class_set_static_delegate == null) - efl_gfx_color_class_set_static_delegate = new efl_gfx_color_class_set_delegate(color_class_set); - if (methods.FirstOrDefault(m => m.Name == "SetColorClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_set_static_delegate)}); - if (efl_gfx_color_class_code_get_static_delegate == null) - efl_gfx_color_class_code_get_static_delegate = new efl_gfx_color_class_code_get_delegate(color_class_code_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorClassCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_code_get_static_delegate)}); - if (efl_gfx_color_class_code_set_static_delegate == null) - efl_gfx_color_class_code_set_static_delegate = new efl_gfx_color_class_code_set_delegate(color_class_code_set); - if (methods.FirstOrDefault(m => m.Name == "SetColorClassCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_code_set_static_delegate)}); - if (efl_gfx_color_class_description_get_static_delegate == null) - efl_gfx_color_class_description_get_static_delegate = new efl_gfx_color_class_description_get_delegate(color_class_description_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorClassDescription") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_description_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_description_get_static_delegate)}); - if (efl_gfx_color_class_del_static_delegate == null) - efl_gfx_color_class_del_static_delegate = new efl_gfx_color_class_del_delegate(color_class_del); - if (methods.FirstOrDefault(m => m.Name == "DelColorClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_del_static_delegate)}); - if (efl_gfx_color_class_clear_static_delegate == null) - efl_gfx_color_class_clear_static_delegate = new efl_gfx_color_class_clear_delegate(color_class_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearColorClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_clear_static_delegate)}); - if (efl_gfx_size_class_get_static_delegate == null) - efl_gfx_size_class_get_static_delegate = new efl_gfx_size_class_get_delegate(size_class_get); - if (methods.FirstOrDefault(m => m.Name == "GetSizeClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_size_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_get_static_delegate)}); - if (efl_gfx_size_class_set_static_delegate == null) - efl_gfx_size_class_set_static_delegate = new efl_gfx_size_class_set_delegate(size_class_set); - if (methods.FirstOrDefault(m => m.Name == "SetSizeClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_size_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_set_static_delegate)}); - if (efl_gfx_size_class_del_static_delegate == null) - efl_gfx_size_class_del_static_delegate = new efl_gfx_size_class_del_delegate(size_class_del); - if (methods.FirstOrDefault(m => m.Name == "DelSizeClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_size_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_del_static_delegate)}); - if (efl_gfx_text_class_get_static_delegate == null) - efl_gfx_text_class_get_static_delegate = new efl_gfx_text_class_get_delegate(text_class_get); - if (methods.FirstOrDefault(m => m.Name == "GetTextClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_text_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_get_static_delegate)}); - if (efl_gfx_text_class_set_static_delegate == null) - efl_gfx_text_class_set_static_delegate = new efl_gfx_text_class_set_delegate(text_class_set); - if (methods.FirstOrDefault(m => m.Name == "SetTextClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_text_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_set_static_delegate)}); - if (efl_gfx_text_class_del_static_delegate == null) - efl_gfx_text_class_del_static_delegate = new efl_gfx_text_class_del_delegate(text_class_del); - if (methods.FirstOrDefault(m => m.Name == "DelTextClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_text_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_del_static_delegate)}); - if (efl_layout_calc_auto_update_hints_get_static_delegate == null) - efl_layout_calc_auto_update_hints_get_static_delegate = new efl_layout_calc_auto_update_hints_get_delegate(calc_auto_update_hints_get); - if (methods.FirstOrDefault(m => m.Name == "GetCalcAutoUpdateHints") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_auto_update_hints_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_get_static_delegate)}); - if (efl_layout_calc_auto_update_hints_set_static_delegate == null) - efl_layout_calc_auto_update_hints_set_static_delegate = new efl_layout_calc_auto_update_hints_set_delegate(calc_auto_update_hints_set); - if (methods.FirstOrDefault(m => m.Name == "SetCalcAutoUpdateHints") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_auto_update_hints_set"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_set_static_delegate)}); - if (efl_layout_calc_size_min_static_delegate == null) - efl_layout_calc_size_min_static_delegate = new efl_layout_calc_size_min_delegate(calc_size_min); - if (methods.FirstOrDefault(m => m.Name == "CalcSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_size_min"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_size_min_static_delegate)}); - if (efl_layout_calc_parts_extends_static_delegate == null) - efl_layout_calc_parts_extends_static_delegate = new efl_layout_calc_parts_extends_delegate(calc_parts_extends); - if (methods.FirstOrDefault(m => m.Name == "CalcPartsExtends") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_parts_extends"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_parts_extends_static_delegate)}); - if (efl_layout_calc_freeze_static_delegate == null) - efl_layout_calc_freeze_static_delegate = new efl_layout_calc_freeze_delegate(calc_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeCalc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_freeze_static_delegate)}); - if (efl_layout_calc_thaw_static_delegate == null) - efl_layout_calc_thaw_static_delegate = new efl_layout_calc_thaw_delegate(calc_thaw); - if (methods.FirstOrDefault(m => m.Name == "ThawCalc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_thaw"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_thaw_static_delegate)}); - if (efl_layout_calc_force_static_delegate == null) - efl_layout_calc_force_static_delegate = new efl_layout_calc_force_delegate(calc_force); - if (methods.FirstOrDefault(m => m.Name == "CalcForce") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_force"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_force_static_delegate)}); - if (efl_layout_group_size_min_get_static_delegate == null) - efl_layout_group_size_min_get_static_delegate = new efl_layout_group_size_min_get_delegate(group_size_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_min_get_static_delegate)}); - if (efl_layout_group_size_max_get_static_delegate == null) - efl_layout_group_size_max_get_static_delegate = new efl_layout_group_size_max_get_delegate(group_size_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_max_get_static_delegate)}); - if (efl_layout_group_data_get_static_delegate == null) - efl_layout_group_data_get_static_delegate = new efl_layout_group_data_get_delegate(group_data_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_data_get_static_delegate)}); - if (efl_layout_group_part_exist_get_static_delegate == null) - efl_layout_group_part_exist_get_static_delegate = new efl_layout_group_part_exist_get_delegate(part_exist_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartExist") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_part_exist_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_part_exist_get_static_delegate)}); - if (efl_layout_signal_message_send_static_delegate == null) - efl_layout_signal_message_send_static_delegate = new efl_layout_signal_message_send_delegate(message_send); - if (methods.FirstOrDefault(m => m.Name == "MessageSend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_message_send"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_message_send_static_delegate)}); - if (efl_layout_signal_callback_add_static_delegate == null) - efl_layout_signal_callback_add_static_delegate = new efl_layout_signal_callback_add_delegate(signal_callback_add); - if (methods.FirstOrDefault(m => m.Name == "AddSignalCallback") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_callback_add"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_add_static_delegate)}); - if (efl_layout_signal_callback_del_static_delegate == null) - efl_layout_signal_callback_del_static_delegate = new efl_layout_signal_callback_del_delegate(signal_callback_del); - if (methods.FirstOrDefault(m => m.Name == "DelSignalCallback") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_callback_del"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_del_static_delegate)}); - if (efl_layout_signal_emit_static_delegate == null) - efl_layout_signal_emit_static_delegate = new efl_layout_signal_emit_delegate(signal_emit); - if (methods.FirstOrDefault(m => m.Name == "EmitSignal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_emit"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_emit_static_delegate)}); - if (efl_layout_signal_process_static_delegate == null) - efl_layout_signal_process_static_delegate = new efl_layout_signal_process_delegate(signal_process); - if (methods.FirstOrDefault(m => m.Name == "SignalProcess") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_process"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_process_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Layout.efl_canvas_layout_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Group.NativeMethods { - return Efl.Canvas.Layout.efl_canvas_layout_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Edje); + /// 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_canvas_layout_animation_get_static_delegate == null) + { + efl_canvas_layout_animation_get_static_delegate = new efl_canvas_layout_animation_get_delegate(animation_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetAnimation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_animation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_animation_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_layout_animation_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_canvas_layout_animation_set_static_delegate == null) + { + efl_canvas_layout_animation_set_static_delegate = new efl_canvas_layout_animation_set_delegate(animation_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetAnimation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_animation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_animation_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_layout_animation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_animation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_animation_get"); - private static bool animation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_layout_animation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetAnimation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_layout_seat_get_static_delegate == null) + { + efl_canvas_layout_seat_get_static_delegate = new efl_canvas_layout_seat_get_delegate(seat_get); } - return _ret_var; - } else { - return efl_canvas_layout_animation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_layout_animation_get_delegate efl_canvas_layout_animation_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetSeat") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_seat_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_seat_get_static_delegate) }); + } - private delegate void efl_canvas_layout_animation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool on); + if (efl_canvas_layout_seat_name_get_static_delegate == null) + { + efl_canvas_layout_seat_name_get_static_delegate = new efl_canvas_layout_seat_name_get_delegate(seat_name_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetSeatName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_seat_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_seat_name_get_static_delegate) }); + } - public delegate void efl_canvas_layout_animation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool on); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_animation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_animation_set"); - private static void animation_set(System.IntPtr obj, System.IntPtr pd, bool on) - { - Eina.Log.Debug("function efl_canvas_layout_animation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).SetAnimation( on); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_layout_animation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), on); - } - } - private static efl_canvas_layout_animation_set_delegate efl_canvas_layout_animation_set_static_delegate; + if (efl_canvas_layout_load_error_get_static_delegate == null) + { + efl_canvas_layout_load_error_get_static_delegate = new efl_canvas_layout_load_error_get_delegate(layout_load_error_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLayoutLoadError") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_load_error_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_canvas_layout_seat_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String name); + if (efl_canvas_layout_part_text_min_policy_get_static_delegate == null) + { + efl_canvas_layout_part_text_min_policy_get_static_delegate = new efl_canvas_layout_part_text_min_policy_get_delegate(part_text_min_policy_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPartTextMinPolicy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_min_policy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_min_policy_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_canvas_layout_seat_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_seat_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_seat_get"); - private static Efl.Input.Device seat_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_canvas_layout_seat_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((Layout)wrapper).GetSeat( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_layout_part_text_min_policy_set_static_delegate == null) + { + efl_canvas_layout_part_text_min_policy_set_static_delegate = new efl_canvas_layout_part_text_min_policy_set_delegate(part_text_min_policy_set); } - return _ret_var; - } else { - return efl_canvas_layout_seat_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); - } - } - private static efl_canvas_layout_seat_get_delegate efl_canvas_layout_seat_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPartTextMinPolicy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_min_policy_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_min_policy_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] private delegate System.String efl_canvas_layout_seat_name_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device device); + if (efl_canvas_layout_part_text_valign_get_static_delegate == null) + { + efl_canvas_layout_part_text_valign_get_static_delegate = new efl_canvas_layout_part_text_valign_get_delegate(part_text_valign_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPartTextValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_valign_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] public delegate System.String efl_canvas_layout_seat_name_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device device); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_seat_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_seat_name_get"); - private static System.String seat_name_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device device) - { - Eina.Log.Debug("function efl_canvas_layout_seat_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Layout)wrapper).GetSeatName( device); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_layout_part_text_valign_set_static_delegate == null) + { + efl_canvas_layout_part_text_valign_set_static_delegate = new efl_canvas_layout_part_text_valign_set_delegate(part_text_valign_set); } - return _ret_var; - } else { - return efl_canvas_layout_seat_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), device); - } - } - private static efl_canvas_layout_seat_name_get_delegate efl_canvas_layout_seat_name_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPartTextValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_valign_set_static_delegate) }); + } - private delegate Eina.Error efl_canvas_layout_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_canvas_layout_part_text_marquee_duration_get_static_delegate == null) + { + efl_canvas_layout_part_text_marquee_duration_get_static_delegate = new efl_canvas_layout_part_text_marquee_duration_get_delegate(part_text_marquee_duration_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPartTextMarqueeDuration") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_marquee_duration_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_duration_get_static_delegate) }); + } - public delegate Eina.Error efl_canvas_layout_load_error_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_load_error_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_load_error_get"); - private static Eina.Error layout_load_error_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_layout_load_error_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Layout)wrapper).GetLayoutLoadError(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_layout_part_text_marquee_duration_set_static_delegate == null) + { + efl_canvas_layout_part_text_marquee_duration_set_static_delegate = new efl_canvas_layout_part_text_marquee_duration_set_delegate(part_text_marquee_duration_set); } - return _ret_var; - } else { - return efl_canvas_layout_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_layout_load_error_get_delegate efl_canvas_layout_load_error_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPartTextMarqueeDuration") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_marquee_duration_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_duration_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_layout_part_text_min_policy_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String state_name, [MarshalAs(UnmanagedType.U1)] out bool min_x, [MarshalAs(UnmanagedType.U1)] out bool min_y); + if (efl_canvas_layout_part_text_marquee_speed_get_static_delegate == null) + { + efl_canvas_layout_part_text_marquee_speed_get_static_delegate = new efl_canvas_layout_part_text_marquee_speed_get_delegate(part_text_marquee_speed_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPartTextMarqueeSpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_marquee_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_speed_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_layout_part_text_min_policy_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String state_name, [MarshalAs(UnmanagedType.U1)] out bool min_x, [MarshalAs(UnmanagedType.U1)] out bool min_y); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_min_policy_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_min_policy_get"); - private static bool part_text_min_policy_get(System.IntPtr obj, System.IntPtr pd, System.String part, System.String state_name, out bool min_x, out bool min_y) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_min_policy_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - min_x = default(bool); min_y = default(bool); bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetPartTextMinPolicy( part, state_name, out min_x, out min_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_layout_part_text_marquee_speed_set_static_delegate == null) + { + efl_canvas_layout_part_text_marquee_speed_set_static_delegate = new efl_canvas_layout_part_text_marquee_speed_set_delegate(part_text_marquee_speed_set); } - return _ret_var; - } else { - return efl_canvas_layout_part_text_min_policy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, state_name, out min_x, out min_y); - } - } - private static efl_canvas_layout_part_text_min_policy_get_delegate efl_canvas_layout_part_text_min_policy_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPartTextMarqueeSpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_marquee_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_speed_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_layout_part_text_min_policy_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String state_name, [MarshalAs(UnmanagedType.U1)] bool min_x, [MarshalAs(UnmanagedType.U1)] bool min_y); + if (efl_canvas_layout_part_text_marquee_always_get_static_delegate == null) + { + efl_canvas_layout_part_text_marquee_always_get_static_delegate = new efl_canvas_layout_part_text_marquee_always_get_delegate(part_text_marquee_always_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPartTextMarqueeAlways") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_marquee_always_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_always_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_layout_part_text_min_policy_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String state_name, [MarshalAs(UnmanagedType.U1)] bool min_x, [MarshalAs(UnmanagedType.U1)] bool min_y); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_min_policy_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_min_policy_set"); - private static bool part_text_min_policy_set(System.IntPtr obj, System.IntPtr pd, System.String part, System.String state_name, bool min_x, bool min_y) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_min_policy_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).SetPartTextMinPolicy( part, state_name, min_x, min_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_layout_part_text_marquee_always_set_static_delegate == null) + { + efl_canvas_layout_part_text_marquee_always_set_static_delegate = new efl_canvas_layout_part_text_marquee_always_set_delegate(part_text_marquee_always_set); } - return _ret_var; - } else { - return efl_canvas_layout_part_text_min_policy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, state_name, min_x, min_y); - } - } - private static efl_canvas_layout_part_text_min_policy_set_delegate efl_canvas_layout_part_text_min_policy_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPartTextMarqueeAlways") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_marquee_always_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_marquee_always_set_static_delegate) }); + } - private delegate double efl_canvas_layout_part_text_valign_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + if (efl_canvas_layout_part_valign_get_static_delegate == null) + { + efl_canvas_layout_part_valign_get_static_delegate = new efl_canvas_layout_part_valign_get_delegate(part_valign_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPartValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_valign_get_static_delegate) }); + } - public delegate double efl_canvas_layout_part_text_valign_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_valign_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_valign_get"); - private static double part_text_valign_get(System.IntPtr obj, System.IntPtr pd, System.String part) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_valign_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Layout)wrapper).GetPartTextValign( part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_layout_part_valign_set_static_delegate == null) + { + efl_canvas_layout_part_valign_set_static_delegate = new efl_canvas_layout_part_valign_set_delegate(part_valign_set); } - return _ret_var; - } else { - return efl_canvas_layout_part_text_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); - } - } - private static efl_canvas_layout_part_text_valign_get_delegate efl_canvas_layout_part_text_valign_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPartValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_valign_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_layout_part_text_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double valign); + if (efl_canvas_layout_access_part_iterate_static_delegate == null) + { + efl_canvas_layout_access_part_iterate_static_delegate = new efl_canvas_layout_access_part_iterate_delegate(access_part_iterate); + } + if (methods.FirstOrDefault(m => m.Name == "AccessPartIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_access_part_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_access_part_iterate_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_layout_part_text_valign_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double valign); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_valign_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_valign_set"); - private static bool part_text_valign_set(System.IntPtr obj, System.IntPtr pd, System.String part, double valign) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_valign_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).SetPartTextValign( part, valign); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_layout_content_remove_static_delegate == null) + { + efl_canvas_layout_content_remove_static_delegate = new efl_canvas_layout_content_remove_delegate(content_remove); } - return _ret_var; - } else { - return efl_canvas_layout_part_text_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, valign); - } - } - private static efl_canvas_layout_part_text_valign_set_delegate efl_canvas_layout_part_text_valign_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ContentRemove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_content_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_content_remove_static_delegate) }); + } - private delegate double efl_canvas_layout_part_text_marquee_duration_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + if (efl_canvas_layout_color_class_parent_set_static_delegate == null) + { + efl_canvas_layout_color_class_parent_set_static_delegate = new efl_canvas_layout_color_class_parent_set_delegate(color_class_parent_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetColorClassParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_color_class_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_color_class_parent_set_static_delegate) }); + } - public delegate double efl_canvas_layout_part_text_marquee_duration_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_duration_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_marquee_duration_get"); - private static double part_text_marquee_duration_get(System.IntPtr obj, System.IntPtr pd, System.String part) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_duration_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Layout)wrapper).GetPartTextMarqueeDuration( part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_layout_color_class_parent_unset_static_delegate == null) + { + efl_canvas_layout_color_class_parent_unset_static_delegate = new efl_canvas_layout_color_class_parent_unset_delegate(color_class_parent_unset); } - return _ret_var; - } else { - return efl_canvas_layout_part_text_marquee_duration_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); - } - } - private static efl_canvas_layout_part_text_marquee_duration_get_delegate efl_canvas_layout_part_text_marquee_duration_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UnsetColorClassParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_color_class_parent_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_color_class_parent_unset_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_layout_part_text_marquee_duration_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double duration); + if (efl_canvas_layout_part_text_cursor_coord_get_static_delegate == null) + { + efl_canvas_layout_part_text_cursor_coord_get_static_delegate = new efl_canvas_layout_part_text_cursor_coord_get_delegate(part_text_cursor_coord_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPartTextCursorCoord") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_cursor_coord_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_cursor_coord_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_layout_part_text_marquee_duration_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double duration); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_duration_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_marquee_duration_set"); - private static bool part_text_marquee_duration_set(System.IntPtr obj, System.IntPtr pd, System.String part, double duration) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_duration_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).SetPartTextMarqueeDuration( part, duration); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_layout_part_text_cursor_size_get_static_delegate == null) + { + efl_canvas_layout_part_text_cursor_size_get_static_delegate = new efl_canvas_layout_part_text_cursor_size_get_delegate(part_text_cursor_size_get); } - return _ret_var; - } else { - return efl_canvas_layout_part_text_marquee_duration_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, duration); - } - } - private static efl_canvas_layout_part_text_marquee_duration_set_delegate efl_canvas_layout_part_text_marquee_duration_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPartTextCursorSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_cursor_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_cursor_size_get_static_delegate) }); + } - private delegate double efl_canvas_layout_part_text_marquee_speed_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + if (efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_static_delegate == null) + { + efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_static_delegate = new efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_delegate(part_text_cursor_on_mouse_geometry_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPartTextCursorOnMouseGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_cursor_on_mouse_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_static_delegate) }); + } - public delegate double efl_canvas_layout_part_text_marquee_speed_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_speed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_marquee_speed_get"); - private static double part_text_marquee_speed_get(System.IntPtr obj, System.IntPtr pd, System.String part) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_speed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Layout)wrapper).GetPartTextMarqueeSpeed( part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); } - return _ret_var; - } else { - return efl_canvas_layout_part_text_marquee_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); - } - } - private static efl_canvas_layout_part_text_marquee_speed_get_delegate efl_canvas_layout_part_text_marquee_speed_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_layout_part_text_marquee_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double speed); + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_layout_part_text_marquee_speed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double speed); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_speed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_marquee_speed_set"); - private static bool part_text_marquee_speed_set(System.IntPtr obj, System.IntPtr pd, System.String part, double speed) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_speed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).SetPartTextMarqueeSpeed( part, speed); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_mmap_get_static_delegate == null) + { + efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); } - return _ret_var; - } else { - return efl_canvas_layout_part_text_marquee_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, speed); - } - } - private static efl_canvas_layout_part_text_marquee_speed_set_delegate efl_canvas_layout_part_text_marquee_speed_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_layout_part_text_marquee_always_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + if (efl_file_mmap_set_static_delegate == null) + { + efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_layout_part_text_marquee_always_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_always_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_marquee_always_get"); - private static bool part_text_marquee_always_get(System.IntPtr obj, System.IntPtr pd, System.String part) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_always_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetPartTextMarqueeAlways( part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_get_static_delegate == null) + { + efl_file_get_static_delegate = new efl_file_get_delegate(file_get); } - return _ret_var; - } else { - return efl_canvas_layout_part_text_marquee_always_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); - } - } - private static efl_canvas_layout_part_text_marquee_always_get_delegate efl_canvas_layout_part_text_marquee_always_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_layout_part_text_marquee_always_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.U1)] bool always); + if (efl_file_set_static_delegate == null) + { + efl_file_set_static_delegate = new efl_file_set_delegate(file_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_layout_part_text_marquee_always_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.U1)] bool always); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_always_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_marquee_always_set"); - private static bool part_text_marquee_always_set(System.IntPtr obj, System.IntPtr pd, System.String part, bool always) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_always_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).SetPartTextMarqueeAlways( part, always); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_key_get_static_delegate == null) + { + efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); } - return _ret_var; - } else { - return efl_canvas_layout_part_text_marquee_always_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, always); - } - } - private static efl_canvas_layout_part_text_marquee_always_set_delegate efl_canvas_layout_part_text_marquee_always_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) }); + } - private delegate double efl_canvas_layout_part_valign_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + if (efl_file_key_set_static_delegate == null) + { + efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) }); + } - public delegate double efl_canvas_layout_part_valign_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_valign_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_valign_get"); - private static double part_valign_get(System.IntPtr obj, System.IntPtr pd, System.String part) - { - Eina.Log.Debug("function efl_canvas_layout_part_valign_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Layout)wrapper).GetPartValign( part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_loaded_get_static_delegate == null) + { + efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); } - return _ret_var; - } else { - return efl_canvas_layout_part_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); - } - } - private static efl_canvas_layout_part_valign_get_delegate efl_canvas_layout_part_valign_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_layout_part_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double valign); + if (efl_file_load_static_delegate == null) + { + efl_file_load_static_delegate = new efl_file_load_delegate(load); + } + if (methods.FirstOrDefault(m => m.Name == "Load") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_layout_part_valign_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double valign); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_valign_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_valign_set"); - private static bool part_valign_set(System.IntPtr obj, System.IntPtr pd, System.String part, double valign) - { - Eina.Log.Debug("function efl_canvas_layout_part_valign_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).SetPartValign( part, valign); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_unload_static_delegate == null) + { + efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); } - return _ret_var; - } else { - return efl_canvas_layout_part_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, valign); - } - } - private static efl_canvas_layout_part_valign_set_delegate efl_canvas_layout_part_valign_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Unload") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) }); + } - private delegate System.IntPtr efl_canvas_layout_access_part_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_observer_update_static_delegate == null) + { + efl_observer_update_static_delegate = new efl_observer_update_delegate(update); + } + if (methods.FirstOrDefault(m => m.Name == "Update") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_observer_update"), func = Marshal.GetFunctionPointerForDelegate(efl_observer_update_static_delegate) }); + } - public delegate System.IntPtr efl_canvas_layout_access_part_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_access_part_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_access_part_iterate"); - private static System.IntPtr access_part_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_layout_access_part_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Layout)wrapper).AccessPartIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_part_get_static_delegate == null) + { + efl_part_get_static_delegate = new efl_part_get_delegate(part_get); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_canvas_layout_access_part_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_layout_access_part_iterate_delegate efl_canvas_layout_access_part_iterate_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_part_get"), func = Marshal.GetFunctionPointerForDelegate(efl_part_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_layout_content_remove_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + if (efl_player_playable_get_static_delegate == null) + { + efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_playable_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_layout_content_remove_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_content_remove_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_content_remove"); - private static bool content_remove(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_canvas_layout_content_remove was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).ContentRemove( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_play_get_static_delegate == null) + { + efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get); } - return _ret_var; - } else { - return efl_canvas_layout_content_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_canvas_layout_content_remove_delegate efl_canvas_layout_content_remove_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_get_static_delegate) }); + } - private delegate void efl_canvas_layout_color_class_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object parent); + if (efl_player_play_set_static_delegate == null) + { + efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_set_static_delegate) }); + } - public delegate void efl_canvas_layout_color_class_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object parent); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_color_class_parent_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_color_class_parent_set"); - private static void color_class_parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Object parent) - { - Eina.Log.Debug("function efl_canvas_layout_color_class_parent_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).SetColorClassParent( parent); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_layout_color_class_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); - } - } - private static efl_canvas_layout_color_class_parent_set_delegate efl_canvas_layout_color_class_parent_set_static_delegate; + if (efl_player_pos_get_static_delegate == null) + { + efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_get_static_delegate) }); + } - private delegate void efl_canvas_layout_color_class_parent_unset_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_pos_set_static_delegate == null) + { + efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_set_static_delegate) }); + } - public delegate void efl_canvas_layout_color_class_parent_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_color_class_parent_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_color_class_parent_unset"); - private static void color_class_parent_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_layout_color_class_parent_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).UnsetColorClassParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_progress_get_static_delegate == null) + { + efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get); } - } else { - efl_canvas_layout_color_class_parent_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_layout_color_class_parent_unset_delegate efl_canvas_layout_color_class_parent_unset_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_progress_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_progress_get_static_delegate) }); + } - private delegate void efl_canvas_layout_part_text_cursor_coord_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, Edje.Cursor cur, out int x, out int y); + if (efl_player_play_speed_get_static_delegate == null) + { + efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_get_static_delegate) }); + } - public delegate void efl_canvas_layout_part_text_cursor_coord_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, Edje.Cursor cur, out int x, out int y); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_cursor_coord_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_cursor_coord_get"); - private static void part_text_cursor_coord_get(System.IntPtr obj, System.IntPtr pd, System.String part, Edje.Cursor cur, out int x, out int y) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_cursor_coord_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); - try { - ((Layout)wrapper).GetPartTextCursorCoord( part, cur, out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_layout_part_text_cursor_coord_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, cur, out x, out y); - } - } - private static efl_canvas_layout_part_text_cursor_coord_get_delegate efl_canvas_layout_part_text_cursor_coord_get_static_delegate; + if (efl_player_play_speed_set_static_delegate == null) + { + efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_set_static_delegate) }); + } - private delegate void efl_canvas_layout_part_text_cursor_size_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, Edje.Cursor cur, out int w, out int h); + if (efl_player_volume_get_static_delegate == null) + { + efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_get_static_delegate) }); + } - public delegate void efl_canvas_layout_part_text_cursor_size_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, Edje.Cursor cur, out int w, out int h); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_cursor_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_cursor_size_get"); - private static void part_text_cursor_size_get(System.IntPtr obj, System.IntPtr pd, System.String part, Edje.Cursor cur, out int w, out int h) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_cursor_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - w = default(int); h = default(int); - try { - ((Layout)wrapper).GetPartTextCursorSize( part, cur, out w, out h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_layout_part_text_cursor_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, cur, out w, out h); - } - } - private static efl_canvas_layout_part_text_cursor_size_get_delegate efl_canvas_layout_part_text_cursor_size_get_static_delegate; + if (efl_player_volume_set_static_delegate == null) + { + efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_set_static_delegate) }); + } - private delegate void efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, out int x, out int y, out int w, out int h); + if (efl_player_mute_get_static_delegate == null) + { + efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_get_static_delegate) }); + } - public delegate void efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, out int x, out int y, out int w, out int h); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_cursor_on_mouse_geometry_get"); - private static void part_text_cursor_on_mouse_geometry_get(System.IntPtr obj, System.IntPtr pd, System.String part, out int x, out int y, out int w, out int h) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_cursor_on_mouse_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); w = default(int); h = default(int); - try { - ((Layout)wrapper).GetPartTextCursorOnMouseGeometry( part, out x, out y, out w, out h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, out x, out y, out w, out h); - } - } - private static efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_delegate efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_static_delegate; + if (efl_player_mute_set_static_delegate == null) + { + efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_set_static_delegate) }); + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_length_get_static_delegate == null) + { + efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_length_get_static_delegate) }); + } - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Layout)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_seekable_get_static_delegate == null) + { + efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_seekable_get_static_delegate) }); + } - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_start_static_delegate == null) + { + efl_player_start_static_delegate = new efl_player_start_delegate(start); + } + if (methods.FirstOrDefault(m => m.Name == "Start") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_start"), func = Marshal.GetFunctionPointerForDelegate(efl_player_start_static_delegate) }); + } - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Layout)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_stop_static_delegate == null) + { + efl_player_stop_static_delegate = new efl_player_stop_delegate(stop); } - return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_count_delegate efl_content_count_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Stop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate) }); + } - private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_color_class_get_static_delegate == null) + { + efl_gfx_color_class_get_static_delegate = new efl_gfx_color_class_get_delegate(color_class_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetColorClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_get_static_delegate) }); + } - public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_get"); - private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_mmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.File _ret_var = default(Eina.File); - try { - _ret_var = ((Layout)wrapper).GetMmap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_color_class_set_static_delegate == null) + { + efl_gfx_color_class_set_static_delegate = new efl_gfx_color_class_set_delegate(color_class_set); } - return _ret_var; - } else { - return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetColorClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_set_static_delegate) }); + } - private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + if (efl_gfx_color_class_code_get_static_delegate == null) + { + efl_gfx_color_class_code_get_static_delegate = new efl_gfx_color_class_code_get_delegate(color_class_code_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetColorClassCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_code_get_static_delegate) }); + } - public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); - public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_set"); - private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) - { - Eina.Log.Debug("function efl_file_mmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Layout)wrapper).SetMmap( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_color_class_code_set_static_delegate == null) + { + efl_gfx_color_class_code_set_static_delegate = new efl_gfx_color_class_code_set_delegate(color_class_code_set); } - return _ret_var; - } else { - return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetColorClassCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_code_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); - + if (efl_gfx_color_class_description_get_static_delegate == null) + { + efl_gfx_color_class_description_get_static_delegate = new efl_gfx_color_class_description_get_delegate(color_class_description_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_get"); - private static System.String file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Layout)wrapper).GetFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetColorClassDescription") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_description_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_description_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_get_delegate efl_file_get_static_delegate; + if (efl_gfx_color_class_del_static_delegate == null) + { + efl_gfx_color_class_del_static_delegate = new efl_gfx_color_class_del_delegate(color_class_del); + } - private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + if (methods.FirstOrDefault(m => m.Name == "DelColorClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_del_static_delegate) }); + } + if (efl_gfx_color_class_clear_static_delegate == null) + { + efl_gfx_color_class_clear_static_delegate = new efl_gfx_color_class_clear_delegate(color_class_clear); + } - public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_set"); - private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) - { - Eina.Log.Debug("function efl_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Layout)wrapper).SetFile( file); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ClearColorClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_clear_static_delegate) }); } - return _ret_var; - } else { - return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); - } - } - private static efl_file_set_delegate efl_file_set_static_delegate; + if (efl_gfx_size_class_get_static_delegate == null) + { + efl_gfx_size_class_get_static_delegate = new efl_gfx_size_class_get_delegate(size_class_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSizeClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_size_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_get_static_delegate) }); + } + if (efl_gfx_size_class_set_static_delegate == null) + { + efl_gfx_size_class_set_static_delegate = new efl_gfx_size_class_set_delegate(size_class_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Layout)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSizeClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_size_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_set_static_delegate) }); } - return _ret_var; - } else { - return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + if (efl_gfx_size_class_del_static_delegate == null) + { + efl_gfx_size_class_del_static_delegate = new efl_gfx_size_class_del_delegate(size_class_del); + } - private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + if (methods.FirstOrDefault(m => m.Name == "DelSizeClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_size_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_del_static_delegate) }); + } + if (efl_gfx_text_class_get_static_delegate == null) + { + efl_gfx_text_class_get_static_delegate = new efl_gfx_text_class_get_delegate(text_class_get); + } - public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_file_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).SetKey( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); - } - } - private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetTextClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_text_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_get_static_delegate) }); + } + if (efl_gfx_text_class_set_static_delegate == null) + { + efl_gfx_text_class_set_static_delegate = new efl_gfx_text_class_set_delegate(text_class_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetTextClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_text_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_set_static_delegate) }); + } + if (efl_gfx_text_class_del_static_delegate == null) + { + efl_gfx_text_class_del_static_delegate = new efl_gfx_text_class_del_delegate(text_class_del); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_loaded_get"); - private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_loaded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetLoaded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DelTextClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_text_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_del_static_delegate) }); } - return _ret_var; - } else { - return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + if (efl_layout_calc_auto_update_hints_get_static_delegate == null) + { + efl_layout_calc_auto_update_hints_get_static_delegate = new efl_layout_calc_auto_update_hints_get_delegate(calc_auto_update_hints_get); + } - private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCalcAutoUpdateHints") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_auto_update_hints_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_get_static_delegate) }); + } + if (efl_layout_calc_auto_update_hints_set_static_delegate == null) + { + efl_layout_calc_auto_update_hints_set_static_delegate = new efl_layout_calc_auto_update_hints_set_delegate(calc_auto_update_hints_set); + } - public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_load"); - private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_load was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Layout)wrapper).Load(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCalcAutoUpdateHints") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_auto_update_hints_set"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_set_static_delegate) }); } - return _ret_var; - } else { - return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_load_delegate efl_file_load_static_delegate; + if (efl_layout_calc_size_min_static_delegate == null) + { + efl_layout_calc_size_min_static_delegate = new efl_layout_calc_size_min_delegate(calc_size_min); + } - private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "CalcSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_size_min"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_size_min_static_delegate) }); + } + if (efl_layout_calc_parts_extends_static_delegate == null) + { + efl_layout_calc_parts_extends_static_delegate = new efl_layout_calc_parts_extends_delegate(calc_parts_extends); + } - public delegate void efl_file_unload_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_unload"); - private static void unload(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_unload was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).Unload(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "CalcPartsExtends") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_parts_extends"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_parts_extends_static_delegate) }); } - } else { - efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_unload_delegate efl_file_unload_static_delegate; + if (efl_layout_calc_freeze_static_delegate == null) + { + efl_layout_calc_freeze_static_delegate = new efl_layout_calc_freeze_delegate(calc_freeze); + } - private delegate void efl_observer_update_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object obs, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); + if (methods.FirstOrDefault(m => m.Name == "FreezeCalc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_freeze_static_delegate) }); + } + if (efl_layout_calc_thaw_static_delegate == null) + { + efl_layout_calc_thaw_static_delegate = new efl_layout_calc_thaw_delegate(calc_thaw); + } - public delegate void efl_observer_update_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object obs, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_observer_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_observer_update"); - private static void update(System.IntPtr obj, System.IntPtr pd, Efl.Object obs, System.String key, System.IntPtr data) - { - Eina.Log.Debug("function efl_observer_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).Update( obs, key, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_observer_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), obs, key, data); - } - } - private static efl_observer_update_delegate efl_observer_update_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ThawCalc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_thaw"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_thaw_static_delegate) }); + } + if (efl_layout_calc_force_static_delegate == null) + { + efl_layout_calc_force_static_delegate = new efl_layout_calc_force_delegate(calc_force); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_part_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + if (methods.FirstOrDefault(m => m.Name == "CalcForce") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_force"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_force_static_delegate) }); + } + if (efl_layout_group_size_min_get_static_delegate == null) + { + efl_layout_group_size_min_get_static_delegate = new efl_layout_group_size_min_get_delegate(group_size_min_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_part_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_part_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_part_get"); - private static Efl.Object part_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_part_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((Layout)wrapper).GetPart( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_min_get_static_delegate) }); } - return _ret_var; - } else { - return efl_part_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); - } - } - private static efl_part_get_delegate efl_part_get_static_delegate; + if (efl_layout_group_size_max_get_static_delegate == null) + { + efl_layout_group_size_max_get_static_delegate = new efl_layout_group_size_max_get_delegate(group_size_max_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_max_get_static_delegate) }); + } + if (efl_layout_group_data_get_static_delegate == null) + { + efl_layout_group_data_get_static_delegate = new efl_layout_group_data_get_delegate(group_data_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_playable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_playable_get"); - private static bool playable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_playable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetPlayable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGroupData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_data_get_static_delegate) }); } - return _ret_var; - } else { - return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate; + if (efl_layout_group_part_exist_get_static_delegate == null) + { + efl_layout_group_part_exist_get_static_delegate = new efl_layout_group_part_exist_get_delegate(part_exist_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPartExist") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_part_exist_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_part_exist_get_static_delegate) }); + } + if (efl_layout_signal_message_send_static_delegate == null) + { + efl_layout_signal_message_send_static_delegate = new efl_layout_signal_message_send_delegate(message_send); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_play_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_get"); - private static bool play_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_play_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetPlay(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "MessageSend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_message_send"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_message_send_static_delegate) }); } - return _ret_var; - } else { - return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_play_get_delegate efl_player_play_get_static_delegate; + if (efl_layout_signal_callback_add_static_delegate == null) + { + efl_layout_signal_callback_add_static_delegate = new efl_layout_signal_callback_add_delegate(signal_callback_add); + } - private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play); + if (methods.FirstOrDefault(m => m.Name == "AddSignalCallback") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_callback_add"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_add_static_delegate) }); + } + if (efl_layout_signal_callback_del_static_delegate == null) + { + efl_layout_signal_callback_del_static_delegate = new efl_layout_signal_callback_del_delegate(signal_callback_del); + } - public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play); - public static Efl.Eo.FunctionWrapper efl_player_play_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_set"); - private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play) - { - Eina.Log.Debug("function efl_player_play_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).SetPlay( play); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play); - } - } - private static efl_player_play_set_delegate efl_player_play_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "DelSignalCallback") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_callback_del"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_del_static_delegate) }); + } + if (efl_layout_signal_emit_static_delegate == null) + { + efl_layout_signal_emit_static_delegate = new efl_layout_signal_emit_delegate(signal_emit); + } - private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "EmitSignal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_emit"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_emit_static_delegate) }); + } + if (efl_layout_signal_process_static_delegate == null) + { + efl_layout_signal_process_static_delegate = new efl_layout_signal_process_delegate(signal_process); + } - public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_pos_get"); - private static double pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Layout)wrapper).GetPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SignalProcess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_process"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_process_static_delegate) }); } - return _ret_var; - } else { - return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Layout.efl_canvas_layout_class_get(); + } - private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + #pragma warning disable CA1707, SA1300, SA1600 + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_layout_animation_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec); - public static Efl.Eo.FunctionWrapper efl_player_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_pos_set"); - private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec) - { - Eina.Log.Debug("function efl_player_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).SetPos( sec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); - } - } - private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_layout_animation_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_canvas_layout_animation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_animation_get"); - private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool animation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_layout_animation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetAnimation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_progress_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_progress_get"); - private static double progress_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_progress_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Layout)wrapper).GetProgress(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_layout_animation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate; - - - private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_canvas_layout_animation_get_delegate efl_canvas_layout_animation_get_static_delegate; + + + private delegate void efl_canvas_layout_animation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool on); + + + public delegate void efl_canvas_layout_animation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool on); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_animation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_animation_set"); + + private static void animation_set(System.IntPtr obj, System.IntPtr pd, bool on) + { + Eina.Log.Debug("function efl_canvas_layout_animation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).SetAnimation(on); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_play_speed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_speed_get"); - private static double play_speed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_play_speed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Layout)wrapper).GetPlaySpeed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_canvas_layout_animation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), on); } - return _ret_var; - } else { - return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate; + private static efl_canvas_layout_animation_set_delegate efl_canvas_layout_animation_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_canvas_layout_seat_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String name); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_canvas_layout_seat_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_seat_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_seat_get"); + + private static Efl.Input.Device seat_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_canvas_layout_seat_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((Layout)wrapper).GetSeat(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed); - + return _ret_var; - public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed); - public static Efl.Eo.FunctionWrapper efl_player_play_speed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_speed_set"); - private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed) - { - Eina.Log.Debug("function efl_player_play_speed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).SetPlaySpeed( speed); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed); + } + else + { + return efl_canvas_layout_seat_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } } - } - private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate; - - private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_canvas_layout_seat_get_delegate efl_canvas_layout_seat_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] + private delegate System.String efl_canvas_layout_seat_name_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device device); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] + public delegate System.String efl_canvas_layout_seat_name_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device device); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_seat_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_seat_name_get"); + + private static System.String seat_name_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device device) + { + Eina.Log.Debug("function efl_canvas_layout_seat_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Layout)wrapper).GetSeatName(device); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_volume_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_volume_get"); - private static double volume_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_volume_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Layout)wrapper).GetVolume(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_layout_seat_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), device); + } } - } - private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate; + private static efl_canvas_layout_seat_name_get_delegate efl_canvas_layout_seat_name_get_static_delegate; + + + private delegate Eina.Error efl_canvas_layout_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_canvas_layout_load_error_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_load_error_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_load_error_get"); + + private static Eina.Error layout_load_error_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_layout_load_error_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Layout)wrapper).GetLayoutLoadError(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume); - + return _ret_var; - public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume); - public static Efl.Eo.FunctionWrapper efl_player_volume_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_volume_set"); - private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume) - { - Eina.Log.Debug("function efl_player_volume_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).SetVolume( volume); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume); + } + else + { + return efl_canvas_layout_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_canvas_layout_load_error_get_delegate efl_canvas_layout_load_error_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_layout_part_text_min_policy_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String state_name, [MarshalAs(UnmanagedType.U1)] out bool min_x, [MarshalAs(UnmanagedType.U1)] out bool min_y); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_layout_part_text_min_policy_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String state_name, [MarshalAs(UnmanagedType.U1)] out bool min_x, [MarshalAs(UnmanagedType.U1)] out bool min_y); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_min_policy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_min_policy_get"); + + private static bool part_text_min_policy_get(System.IntPtr obj, System.IntPtr pd, System.String part, System.String state_name, out bool min_x, out bool min_y) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_min_policy_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + min_x = default(bool); min_y = default(bool); bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetPartTextMinPolicy(part, state_name, out min_x, out min_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_mute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_mute_get"); - private static bool mute_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_mute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetMute(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_layout_part_text_min_policy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, state_name, out min_x, out min_y); + } } - } - private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate; + private static efl_canvas_layout_part_text_min_policy_get_delegate efl_canvas_layout_part_text_min_policy_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_layout_part_text_min_policy_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String state_name, [MarshalAs(UnmanagedType.U1)] bool min_x, [MarshalAs(UnmanagedType.U1)] bool min_y); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_layout_part_text_min_policy_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String state_name, [MarshalAs(UnmanagedType.U1)] bool min_x, [MarshalAs(UnmanagedType.U1)] bool min_y); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_min_policy_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_min_policy_set"); + + private static bool part_text_min_policy_set(System.IntPtr obj, System.IntPtr pd, System.String part, System.String state_name, bool min_x, bool min_y) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_min_policy_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).SetPartTextMinPolicy(part, state_name, min_x, min_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute); - + return _ret_var; - public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute); - public static Efl.Eo.FunctionWrapper efl_player_mute_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_mute_set"); - private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute) - { - Eina.Log.Debug("function efl_player_mute_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).SetMute( mute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute); + } + else + { + return efl_canvas_layout_part_text_min_policy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, state_name, min_x, min_y); + } } - } - private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate; - - private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_canvas_layout_part_text_min_policy_set_delegate efl_canvas_layout_part_text_min_policy_set_static_delegate; + + + private delegate double efl_canvas_layout_part_text_valign_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + + public delegate double efl_canvas_layout_part_text_valign_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_valign_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_valign_get"); + + private static double part_text_valign_get(System.IntPtr obj, System.IntPtr pd, System.String part) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_valign_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Layout)wrapper).GetPartTextValign(part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_player_length_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_length_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_length_get"); - private static double length_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_length_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Layout)wrapper).GetLength(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_layout_part_text_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + } } - } - private static efl_player_length_get_delegate efl_player_length_get_static_delegate; + private static efl_canvas_layout_part_text_valign_get_delegate efl_canvas_layout_part_text_valign_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_layout_part_text_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double valign); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_layout_part_text_valign_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double valign); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_valign_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_valign_set"); + + private static bool part_text_valign_set(System.IntPtr obj, System.IntPtr pd, System.String part, double valign) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_valign_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).SetPartTextValign(part, valign); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_seekable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_seekable_get"); - private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_seekable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetSeekable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_layout_part_text_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, valign); + } } - } - private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate; - - private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_canvas_layout_part_text_valign_set_delegate efl_canvas_layout_part_text_valign_set_static_delegate; + + + private delegate double efl_canvas_layout_part_text_marquee_duration_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + + public delegate double efl_canvas_layout_part_text_marquee_duration_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_duration_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_marquee_duration_get"); + + private static double part_text_marquee_duration_get(System.IntPtr obj, System.IntPtr pd, System.String part) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_duration_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Layout)wrapper).GetPartTextMarqueeDuration(part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_player_start_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_start"); - private static void start(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).Start(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_layout_part_text_marquee_duration_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + } } - } - private static efl_player_start_delegate efl_player_start_static_delegate; + private static efl_canvas_layout_part_text_marquee_duration_get_delegate efl_canvas_layout_part_text_marquee_duration_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_layout_part_text_marquee_duration_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double duration); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_layout_part_text_marquee_duration_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double duration); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_duration_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_marquee_duration_set"); + + private static bool part_text_marquee_duration_set(System.IntPtr obj, System.IntPtr pd, System.String part, double duration) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_duration_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).SetPartTextMarqueeDuration(part, duration); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - public delegate void efl_player_stop_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_stop_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_stop"); - private static void stop(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_stop was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).Stop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_layout_part_text_marquee_duration_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, duration); + } } - } - private static efl_player_stop_delegate efl_player_stop_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_color_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a); + private static efl_canvas_layout_part_text_marquee_duration_set_delegate efl_canvas_layout_part_text_marquee_duration_set_static_delegate; + + + private delegate double efl_canvas_layout_part_text_marquee_speed_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + + public delegate double efl_canvas_layout_part_text_marquee_speed_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_speed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_marquee_speed_get"); + + private static double part_text_marquee_speed_get(System.IntPtr obj, System.IntPtr pd, System.String part) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_speed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Layout)wrapper).GetPartTextMarqueeSpeed(part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_color_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_get"); - private static bool color_class_get(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_color_class_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetColorClass( color_class, layer, out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_color_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, out r, out g, out b, out a); + else + { + return efl_canvas_layout_part_text_marquee_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + } } - } - private static efl_gfx_color_class_get_delegate efl_gfx_color_class_get_static_delegate; + private static efl_canvas_layout_part_text_marquee_speed_get_delegate efl_canvas_layout_part_text_marquee_speed_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_layout_part_text_marquee_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double speed); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_layout_part_text_marquee_speed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double speed); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_speed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_marquee_speed_set"); + + private static bool part_text_marquee_speed_set(System.IntPtr obj, System.IntPtr pd, System.String part, double speed) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_speed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).SetPartTextMarqueeSpeed(part, speed); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_color_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_color_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_set"); - private static bool color_class_set(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_color_class_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).SetColorClass( color_class, layer, r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_color_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, r, g, b, a); + else + { + return efl_canvas_layout_part_text_marquee_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, speed); + } } - } - private static efl_gfx_color_class_set_delegate efl_gfx_color_class_set_static_delegate; - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_gfx_color_class_code_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer); + private static efl_canvas_layout_part_text_marquee_speed_set_delegate efl_canvas_layout_part_text_marquee_speed_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_layout_part_text_marquee_always_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_layout_part_text_marquee_always_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_always_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_marquee_always_get"); + + private static bool part_text_marquee_always_get(System.IntPtr obj, System.IntPtr pd, System.String part) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_always_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetPartTextMarqueeAlways(part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_gfx_color_class_code_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_code_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_code_get"); - private static System.String color_class_code_get(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer) - { - Eina.Log.Debug("function efl_gfx_color_class_code_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Layout)wrapper).GetColorClassCode( color_class, layer); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_color_class_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer); + else + { + return efl_canvas_layout_part_text_marquee_always_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + } } - } - private static efl_gfx_color_class_code_get_delegate efl_gfx_color_class_code_get_static_delegate; + private static efl_canvas_layout_part_text_marquee_always_get_delegate efl_canvas_layout_part_text_marquee_always_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_layout_part_text_marquee_always_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.U1)] bool always); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_layout_part_text_marquee_always_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, [MarshalAs(UnmanagedType.U1)] bool always); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_marquee_always_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_marquee_always_set"); + + private static bool part_text_marquee_always_set(System.IntPtr obj, System.IntPtr pd, System.String part, bool always) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_marquee_always_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).SetPartTextMarqueeAlways(part, always); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_color_class_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_color_class_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_code_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_code_set"); - private static bool color_class_code_set(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) - { - Eina.Log.Debug("function efl_gfx_color_class_code_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).SetColorClassCode( color_class, layer, colorcode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_color_class_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, colorcode); + else + { + return efl_canvas_layout_part_text_marquee_always_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, always); + } } - } - private static efl_gfx_color_class_code_set_delegate efl_gfx_color_class_code_set_static_delegate; - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_gfx_color_class_description_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); + private static efl_canvas_layout_part_text_marquee_always_set_delegate efl_canvas_layout_part_text_marquee_always_set_static_delegate; + + + private delegate double efl_canvas_layout_part_valign_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + + public delegate double efl_canvas_layout_part_valign_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_valign_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_valign_get"); + + private static double part_valign_get(System.IntPtr obj, System.IntPtr pd, System.String part) + { + Eina.Log.Debug("function efl_canvas_layout_part_valign_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Layout)wrapper).GetPartValign(part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_gfx_color_class_description_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_description_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_description_get"); - private static System.String color_class_description_get(System.IntPtr obj, System.IntPtr pd, System.String color_class) - { - Eina.Log.Debug("function efl_gfx_color_class_description_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Layout)wrapper).GetColorClassDescription( color_class); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_color_class_description_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class); + else + { + return efl_canvas_layout_part_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + } } - } - private static efl_gfx_color_class_description_get_delegate efl_gfx_color_class_description_get_static_delegate; + private static efl_canvas_layout_part_valign_get_delegate efl_canvas_layout_part_valign_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_layout_part_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double valign); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_layout_part_valign_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, double valign); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_valign_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_valign_set"); + + private static bool part_valign_set(System.IntPtr obj, System.IntPtr pd, System.String part, double valign) + { + Eina.Log.Debug("function efl_canvas_layout_part_valign_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).SetPartValign(part, valign); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_color_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); - + return _ret_var; - public delegate void efl_gfx_color_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_del"); - private static void color_class_del(System.IntPtr obj, System.IntPtr pd, System.String color_class) - { - Eina.Log.Debug("function efl_gfx_color_class_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).DelColorClass( color_class); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class); + } + else + { + return efl_canvas_layout_part_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, valign); + } } - } - private static efl_gfx_color_class_del_delegate efl_gfx_color_class_del_static_delegate; - - private delegate void efl_gfx_color_class_clear_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_canvas_layout_part_valign_set_delegate efl_canvas_layout_part_valign_set_static_delegate; + + + private delegate System.IntPtr efl_canvas_layout_access_part_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_canvas_layout_access_part_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_access_part_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_access_part_iterate"); + + private static System.IntPtr access_part_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_layout_access_part_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Layout)wrapper).AccessPartIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - public delegate void efl_gfx_color_class_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_clear"); - private static void color_class_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_color_class_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).ClearColorClass(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_color_class_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_layout_access_part_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_color_class_clear_delegate efl_gfx_color_class_clear_static_delegate; + private static efl_canvas_layout_access_part_iterate_delegate efl_canvas_layout_access_part_iterate_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_layout_content_remove_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_layout_content_remove_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_content_remove_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_content_remove"); + + private static bool content_remove(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_canvas_layout_content_remove was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).ContentRemove(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_size_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, out int minw, out int minh, out int maxw, out int maxh); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_size_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, out int minw, out int minh, out int maxw, out int maxh); - public static Efl.Eo.FunctionWrapper efl_gfx_size_class_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_size_class_get"); - private static bool size_class_get(System.IntPtr obj, System.IntPtr pd, System.String size_class, out int minw, out int minh, out int maxw, out int maxh) - { - Eina.Log.Debug("function efl_gfx_size_class_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - minw = default(int); minh = default(int); maxw = default(int); maxh = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetSizeClass( size_class, out minw, out minh, out maxw, out maxh); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_size_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class, out minw, out minh, out maxw, out maxh); + else + { + return efl_canvas_layout_content_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } } - } - private static efl_gfx_size_class_get_delegate efl_gfx_size_class_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_size_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, int minw, int minh, int maxw, int maxh); + private static efl_canvas_layout_content_remove_delegate efl_canvas_layout_content_remove_static_delegate; + + + private delegate void efl_canvas_layout_color_class_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object parent); + + + public delegate void efl_canvas_layout_color_class_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object parent); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_color_class_parent_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_color_class_parent_set"); + + private static void color_class_parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Object parent) + { + Eina.Log.Debug("function efl_canvas_layout_color_class_parent_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).SetColorClassParent(parent); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_canvas_layout_color_class_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_size_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, int minw, int minh, int maxw, int maxh); - public static Efl.Eo.FunctionWrapper efl_gfx_size_class_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_size_class_set"); - private static bool size_class_set(System.IntPtr obj, System.IntPtr pd, System.String size_class, int minw, int minh, int maxw, int maxh) - { - Eina.Log.Debug("function efl_gfx_size_class_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).SetSizeClass( size_class, minw, minh, maxw, maxh); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_canvas_layout_color_class_parent_set_delegate efl_canvas_layout_color_class_parent_set_static_delegate; + + + private delegate void efl_canvas_layout_color_class_parent_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_canvas_layout_color_class_parent_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_color_class_parent_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_color_class_parent_unset"); + + private static void color_class_parent_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_layout_color_class_parent_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).UnsetColorClassParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_layout_color_class_parent_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_gfx_size_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class, minw, minh, maxw, maxh); } - } - private static efl_gfx_size_class_set_delegate efl_gfx_size_class_set_static_delegate; + private static efl_canvas_layout_color_class_parent_unset_delegate efl_canvas_layout_color_class_parent_unset_static_delegate; + + + private delegate void efl_canvas_layout_part_text_cursor_coord_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, Edje.Cursor cur, out int x, out int y); + + + public delegate void efl_canvas_layout_part_text_cursor_coord_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, Edje.Cursor cur, out int x, out int y); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_cursor_coord_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_cursor_coord_get"); + + private static void part_text_cursor_coord_get(System.IntPtr obj, System.IntPtr pd, System.String part, Edje.Cursor cur, out int x, out int y) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_cursor_coord_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); + try + { + ((Layout)wrapper).GetPartTextCursorCoord(part, cur, out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_size_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class); + + } + else + { + efl_canvas_layout_part_text_cursor_coord_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, cur, out x, out y); + } + } + private static efl_canvas_layout_part_text_cursor_coord_get_delegate efl_canvas_layout_part_text_cursor_coord_get_static_delegate; + + + private delegate void efl_canvas_layout_part_text_cursor_size_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, Edje.Cursor cur, out int w, out int h); + + + public delegate void efl_canvas_layout_part_text_cursor_size_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, Edje.Cursor cur, out int w, out int h); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_cursor_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_cursor_size_get"); + + private static void part_text_cursor_size_get(System.IntPtr obj, System.IntPtr pd, System.String part, Edje.Cursor cur, out int w, out int h) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_cursor_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + w = default(int); h = default(int); + try + { + ((Layout)wrapper).GetPartTextCursorSize(part, cur, out w, out h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_size_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class); - public static Efl.Eo.FunctionWrapper efl_gfx_size_class_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_size_class_del"); - private static void size_class_del(System.IntPtr obj, System.IntPtr pd, System.String size_class) - { - Eina.Log.Debug("function efl_gfx_size_class_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).DelSizeClass( size_class); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_size_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class); + + } + else + { + efl_canvas_layout_part_text_cursor_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, cur, out w, out h); + } } - } - private static efl_gfx_size_class_del_delegate efl_gfx_size_class_del_static_delegate; + private static efl_canvas_layout_part_text_cursor_size_get_delegate efl_canvas_layout_part_text_cursor_size_get_static_delegate; + + + private delegate void efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, out int x, out int y, out int w, out int h); + + + public delegate void efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part, out int x, out int y, out int w, out int h); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_cursor_on_mouse_geometry_get"); + + private static void part_text_cursor_on_mouse_geometry_get(System.IntPtr obj, System.IntPtr pd, System.String part, out int x, out int y, out int w, out int h) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_cursor_on_mouse_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); w = default(int); h = default(int); + try + { + ((Layout)wrapper).GetPartTextCursorOnMouseGeometry(part, out x, out y, out w, out h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part, out x, out y, out w, out h); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_text_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + private static efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_delegate efl_canvas_layout_part_text_cursor_on_mouse_geometry_get_static_delegate; + + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Layout)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_text_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_gfx_text_class_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_text_class_get"); - private static bool text_class_get(System.IntPtr obj, System.IntPtr pd, System.String text_class, out System.String font, out Efl.Font.Size size) - { - Eina.Log.Debug("function efl_gfx_text_class_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_font = default(System.String); - size = default(Efl.Font.Size); bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetTextClass( text_class, out _out_font, out size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - font = _out_font; - return _ret_var; - } else { - return efl_gfx_text_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class, out font, out size); + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_text_class_get_delegate efl_gfx_text_class_get_static_delegate; + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Layout)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_text_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_text_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_gfx_text_class_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_text_class_set"); - private static bool text_class_set(System.IntPtr obj, System.IntPtr pd, System.String text_class, System.String font, Efl.Font.Size size) - { - Eina.Log.Debug("function efl_gfx_text_class_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).SetTextClass( text_class, font, size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_text_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class, font, size); + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_text_class_set_delegate efl_gfx_text_class_set_static_delegate; + private static efl_content_count_delegate efl_content_count_static_delegate; + + + private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_get"); + + private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_mmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.File _ret_var = default(Eina.File); + try + { + _ret_var = ((Layout)wrapper).GetMmap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_text_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class); + return _ret_var; + } + else + { + return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_text_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class); - public static Efl.Eo.FunctionWrapper efl_gfx_text_class_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_text_class_del"); - private static void text_class_del(System.IntPtr obj, System.IntPtr pd, System.String text_class) - { - Eina.Log.Debug("function efl_gfx_text_class_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).DelTextClass( text_class); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_text_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class); + private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + + + private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + + + public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_set"); + + private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) + { + Eina.Log.Debug("function efl_file_mmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Layout)wrapper).SetMmap(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } } - } - private static efl_gfx_text_class_del_delegate efl_gfx_text_class_del_static_delegate; + private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_get"); + + private static System.String file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Layout)wrapper).GetFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_calc_auto_update_hints_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_calc_auto_update_hints_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_auto_update_hints_get"); - private static bool calc_auto_update_hints_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_auto_update_hints_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetCalcAutoUpdateHints(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_file_get_delegate efl_file_get_static_delegate; + + + private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + + public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_set"); + + private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) + { + Eina.Log.Debug("function efl_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Layout)wrapper).SetFile(file); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); } + } + + private static efl_file_set_delegate efl_file_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_get"); + + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Layout)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_auto_update_hints_get_delegate efl_layout_calc_auto_update_hints_get_static_delegate; + private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + + + private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_file_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).SetKey(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_layout_calc_auto_update_hints_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool update); + + } + else + { + efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } + } + private static efl_file_key_set_delegate efl_file_key_set_static_delegate; - public delegate void efl_layout_calc_auto_update_hints_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool update); - public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_auto_update_hints_set"); - private static void calc_auto_update_hints_set(System.IntPtr obj, System.IntPtr pd, bool update) - { - Eina.Log.Debug("function efl_layout_calc_auto_update_hints_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).SetCalcAutoUpdateHints( update); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), update); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_loaded_get"); + + private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_loaded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetLoaded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_auto_update_hints_set_delegate efl_layout_calc_auto_update_hints_set_static_delegate; + private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + + + private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_load"); + + private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_load was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Layout)wrapper).Load(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted); + return _ret_var; + } + else + { + return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct restricted); - public static Efl.Eo.FunctionWrapper efl_layout_calc_size_min_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_size_min"); - private static Eina.Size2D.NativeStruct calc_size_min(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted) - { - Eina.Log.Debug("function efl_layout_calc_size_min was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_restricted = restricted; - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Layout)wrapper).CalcSizeMin( _in_restricted); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_file_load_delegate efl_file_load_static_delegate; + + + private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_file_unload_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_unload"); + + private static void unload(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_unload was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).Unload(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_layout_calc_size_min_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), restricted); } - } - private static efl_layout_calc_size_min_delegate efl_layout_calc_size_min_static_delegate; + private static efl_file_unload_delegate efl_file_unload_static_delegate; + + + private delegate void efl_observer_update_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object obs, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); + + + public delegate void efl_observer_update_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object obs, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper efl_observer_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_observer_update"); + + private static void update(System.IntPtr obj, System.IntPtr pd, Efl.Object obs, System.String key, System.IntPtr data) + { + Eina.Log.Debug("function efl_observer_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).Update(obs, key, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_observer_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), obs, key, data); + } + } - private delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_observer_update_delegate efl_observer_update_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_part_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_part_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_part_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_part_get"); + + private static Efl.Object part_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_part_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((Layout)wrapper).GetPart(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_parts_extends_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_parts_extends"); - private static Eina.Rect.NativeStruct calc_parts_extends(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_parts_extends was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Layout)wrapper).CalcPartsExtends(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_layout_calc_parts_extends_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_part_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } } - } - private static efl_layout_calc_parts_extends_delegate efl_layout_calc_parts_extends_static_delegate; + private static efl_part_get_delegate efl_part_get_static_delegate; - private delegate int efl_layout_calc_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj); - public delegate int efl_layout_calc_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_freeze"); - private static int calc_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Layout)wrapper).FreezeCalc(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_player_playable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_playable_get"); + + private static bool playable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_playable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetPlayable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_play_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_get"); + + private static bool play_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_play_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetPlay(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_calc_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_freeze_delegate efl_layout_calc_freeze_static_delegate; + private static efl_player_play_get_delegate efl_player_play_get_static_delegate; + + + private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play); + + + public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play); + + public static Efl.Eo.FunctionWrapper efl_player_play_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_set"); + + private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play) + { + Eina.Log.Debug("function efl_player_play_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).SetPlay(play); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate int efl_layout_calc_thaw_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play); + } + } + private static efl_player_play_set_delegate efl_player_play_set_static_delegate; + + + private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_pos_get"); + + private static double pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Layout)wrapper).GetPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_layout_calc_thaw_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_thaw_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_thaw"); - private static int calc_thaw(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_thaw was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Layout)wrapper).ThawCalc(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + return _ret_var; + + } + else + { + return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate; + + + private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + + + public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec); + + public static Efl.Eo.FunctionWrapper efl_player_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_pos_set"); + + private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec) + { + Eina.Log.Debug("function efl_player_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).SetPos(sec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); + } + } + + private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate; + + + private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_progress_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_progress_get"); + + private static double progress_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_progress_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Layout)wrapper).GetProgress(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_calc_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_thaw_delegate efl_layout_calc_thaw_static_delegate; + private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate; + + + private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_play_speed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_speed_get"); + + private static double play_speed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_play_speed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Layout)wrapper).GetPlaySpeed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_layout_calc_force_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate; + + + private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed); + + + public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed); + + public static Efl.Eo.FunctionWrapper efl_player_play_speed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_speed_set"); + + private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed) + { + Eina.Log.Debug("function efl_player_play_speed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).SetPlaySpeed(speed); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_layout_calc_force_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_force_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_force"); - private static void calc_force(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_force was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Layout)wrapper).CalcForce(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_layout_calc_force_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed); + } } - } - private static efl_layout_calc_force_delegate efl_layout_calc_force_static_delegate; + private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate; + + + private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_volume_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_volume_get"); + + private static double volume_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_volume_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Layout)wrapper).GetVolume(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate; + + + private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume); + + + public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume); + + public static Efl.Eo.FunctionWrapper efl_player_volume_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_volume_set"); + + private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume) + { + Eina.Log.Debug("function efl_player_volume_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).SetVolume(volume); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_group_size_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_size_min_get"); - private static Eina.Size2D.NativeStruct group_size_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_group_size_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Layout)wrapper).GetGroupSizeMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + else + { + efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume); + } + } + + private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_mute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_mute_get"); + + private static bool mute_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_mute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetMute(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_group_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_group_size_min_get_delegate efl_layout_group_size_min_get_static_delegate; + private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate; + + + private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute); + + + public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute); + + public static Efl.Eo.FunctionWrapper efl_player_mute_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_mute_set"); + + private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute) + { + Eina.Log.Debug("function efl_player_mute_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).SetMute(mute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute); + } + } + private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate; + + + private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_length_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_length_get"); + + private static double length_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_length_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Layout)wrapper).GetLength(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_group_size_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_size_max_get"); - private static Eina.Size2D.NativeStruct group_size_max_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_group_size_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Layout)wrapper).GetGroupSizeMax(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_length_get_delegate efl_player_length_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_seekable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_seekable_get"); + + private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_seekable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetSeekable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_group_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_group_size_max_get_delegate efl_layout_group_size_max_get_static_delegate; + private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate; + + + private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_player_start_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_start"); + + private static void start(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).Start(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_layout_group_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + private static efl_player_start_delegate efl_player_start_static_delegate; + + + private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_player_stop_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_stop_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_stop"); + + private static void stop(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_stop was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).Stop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_player_stop_delegate efl_player_stop_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_color_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_color_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_get"); + + private static bool color_class_get(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_color_class_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetColorClass(color_class, layer, out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_layout_group_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_layout_group_data_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_data_get"); - private static System.String group_data_get(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_layout_group_data_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Layout)wrapper).GetGroupData( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_layout_group_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + else + { + return efl_gfx_color_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, out r, out g, out b, out a); + } } - } - private static efl_layout_group_data_get_delegate efl_layout_group_data_get_static_delegate; + private static efl_gfx_color_class_get_delegate efl_gfx_color_class_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_color_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_color_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_set"); + + private static bool color_class_set(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_color_class_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).SetColorClass(color_class, layer, r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_group_part_exist_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + return _ret_var; + } + else + { + return efl_gfx_color_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, r, g, b, a); + } + } + + private static efl_gfx_color_class_set_delegate efl_gfx_color_class_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_gfx_color_class_code_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_gfx_color_class_code_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_code_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_code_get"); + + private static System.String color_class_code_get(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer) + { + Eina.Log.Debug("function efl_gfx_color_class_code_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Layout)wrapper).GetColorClassCode(color_class, layer); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_group_part_exist_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_layout_group_part_exist_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_part_exist_get"); - private static bool part_exist_get(System.IntPtr obj, System.IntPtr pd, System.String part) - { - Eina.Log.Debug("function efl_layout_group_part_exist_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetPartExist( part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_gfx_color_class_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer); + } + } + + private static efl_gfx_color_class_code_get_delegate efl_gfx_color_class_code_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_color_class_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_color_class_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_code_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_code_set"); + + private static bool color_class_code_set(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) + { + Eina.Log.Debug("function efl_gfx_color_class_code_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).SetColorClassCode(color_class, layer, colorcode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_color_class_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, colorcode); + } + } + + private static efl_gfx_color_class_code_set_delegate efl_gfx_color_class_code_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_gfx_color_class_description_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_gfx_color_class_description_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_description_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_description_get"); + + private static System.String color_class_description_get(System.IntPtr obj, System.IntPtr pd, System.String color_class) + { + Eina.Log.Debug("function efl_gfx_color_class_description_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Layout)wrapper).GetColorClassDescription(color_class); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_group_part_exist_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + + } + else + { + return efl_gfx_color_class_description_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class); + } } - } - private static efl_layout_group_part_exist_get_delegate efl_layout_group_part_exist_get_static_delegate; + private static efl_gfx_color_class_description_get_delegate efl_gfx_color_class_description_get_static_delegate; + + + private delegate void efl_gfx_color_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); + + + public delegate void efl_gfx_color_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_del"); + + private static void color_class_del(System.IntPtr obj, System.IntPtr pd, System.String color_class) + { + Eina.Log.Debug("function efl_gfx_color_class_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).DelColorClass(color_class); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_layout_signal_message_send_delegate(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg); + + } + else + { + efl_gfx_color_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class); + } + } + private static efl_gfx_color_class_del_delegate efl_gfx_color_class_del_static_delegate; + + + private delegate void efl_gfx_color_class_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_color_class_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_clear"); + + private static void color_class_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_color_class_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).ClearColorClass(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_class_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_layout_signal_message_send_api_delegate(System.IntPtr obj, int id, Eina.ValueNative msg); - public static Efl.Eo.FunctionWrapper efl_layout_signal_message_send_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_message_send"); - private static void message_send(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg) - { - Eina.Log.Debug("function efl_layout_signal_message_send was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).MessageSend( id, msg); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_color_class_clear_delegate efl_gfx_color_class_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_size_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, out int minw, out int minh, out int maxw, out int maxh); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_size_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, out int minw, out int minh, out int maxw, out int maxh); + + public static Efl.Eo.FunctionWrapper efl_gfx_size_class_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_size_class_get"); + + private static bool size_class_get(System.IntPtr obj, System.IntPtr pd, System.String size_class, out int minw, out int minh, out int maxw, out int maxh) + { + Eina.Log.Debug("function efl_gfx_size_class_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + minw = default(int); minh = default(int); maxw = default(int); maxh = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetSizeClass(size_class, out minw, out minh, out maxw, out maxh); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_size_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class, out minw, out minh, out maxw, out maxh); } - } else { - efl_layout_signal_message_send_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id, msg); } - } - private static efl_layout_signal_message_send_delegate efl_layout_signal_message_send_static_delegate; + private static efl_gfx_size_class_get_delegate efl_gfx_size_class_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_size_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, int minw, int minh, int maxw, int maxh); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_size_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, int minw, int minh, int maxw, int maxh); + + public static Efl.Eo.FunctionWrapper efl_gfx_size_class_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_size_class_set"); + + private static bool size_class_set(System.IntPtr obj, System.IntPtr pd, System.String size_class, int minw, int minh, int maxw, int maxh) + { + Eina.Log.Debug("function efl_gfx_size_class_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).SetSizeClass(size_class, minw, minh, maxw, maxh); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_signal_callback_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + } + else + { + return efl_gfx_size_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class, minw, minh, maxw, maxh); + } + } + private static efl_gfx_size_class_set_delegate efl_gfx_size_class_set_static_delegate; + + + private delegate void efl_gfx_size_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class); + + + public delegate void efl_gfx_size_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class); + + public static Efl.Eo.FunctionWrapper efl_gfx_size_class_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_size_class_del"); + + private static void size_class_del(System.IntPtr obj, System.IntPtr pd, System.String size_class) + { + Eina.Log.Debug("function efl_gfx_size_class_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).DelSizeClass(size_class); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_signal_callback_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_callback_add"); - private static bool signal_callback_add(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_layout_signal_callback_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).AddSignalCallback( emission, source, func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + else + { + efl_gfx_size_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class); + } + } + + private static efl_gfx_size_class_del_delegate efl_gfx_size_class_del_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_text_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_text_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + + public static Efl.Eo.FunctionWrapper efl_gfx_text_class_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_text_class_get"); + + private static bool text_class_get(System.IntPtr obj, System.IntPtr pd, System.String text_class, out System.String font, out Efl.Font.Size size) + { + Eina.Log.Debug("function efl_gfx_text_class_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_font = default(System.String); + size = default(Efl.Font.Size); bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetTextClass(text_class, out _out_font, out size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + font = _out_font; + return _ret_var; + + } + else + { + return efl_gfx_text_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class, out font, out size); + } + } + + private static efl_gfx_text_class_get_delegate efl_gfx_text_class_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_text_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_text_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + + public static Efl.Eo.FunctionWrapper efl_gfx_text_class_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_text_class_set"); + + private static bool text_class_set(System.IntPtr obj, System.IntPtr pd, System.String text_class, System.String font, Efl.Font.Size size) + { + Eina.Log.Debug("function efl_gfx_text_class_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).SetTextClass(text_class, font, size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_signal_callback_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + + } + else + { + return efl_gfx_text_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class, font, size); + } } - } - private static efl_layout_signal_callback_add_delegate efl_layout_signal_callback_add_static_delegate; + private static efl_gfx_text_class_set_delegate efl_gfx_text_class_set_static_delegate; + + + private delegate void efl_gfx_text_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class); + + + public delegate void efl_gfx_text_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class); + + public static Efl.Eo.FunctionWrapper efl_gfx_text_class_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_text_class_del"); + + private static void text_class_del(System.IntPtr obj, System.IntPtr pd, System.String text_class) + { + Eina.Log.Debug("function efl_gfx_text_class_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).DelTextClass(text_class); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_signal_callback_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + + } + else + { + efl_gfx_text_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class); + } + } + private static efl_gfx_text_class_del_delegate efl_gfx_text_class_del_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_signal_callback_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_callback_del"); - private static bool signal_callback_del(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_layout_signal_callback_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_calc_auto_update_hints_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_calc_auto_update_hints_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_auto_update_hints_get"); + + private static bool calc_auto_update_hints_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_auto_update_hints_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).DelSignalCallback( emission, source, func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + _ret_var = ((Layout)wrapper).GetCalcAutoUpdateHints(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_layout_signal_callback_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); } - } - private static efl_layout_signal_callback_del_delegate efl_layout_signal_callback_del_static_delegate; + private static efl_layout_calc_auto_update_hints_get_delegate efl_layout_calc_auto_update_hints_get_static_delegate; + + + private delegate void efl_layout_calc_auto_update_hints_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool update); + + + public delegate void efl_layout_calc_auto_update_hints_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool update); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_auto_update_hints_set"); + + private static void calc_auto_update_hints_set(System.IntPtr obj, System.IntPtr pd, bool update) + { + Eina.Log.Debug("function efl_layout_calc_auto_update_hints_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).SetCalcAutoUpdateHints(update); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_layout_signal_emit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); + + } + else + { + efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), update); + } + } + private static efl_layout_calc_auto_update_hints_set_delegate efl_layout_calc_auto_update_hints_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted); + + + public delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct restricted); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_size_min_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_size_min"); + + private static Eina.Size2D.NativeStruct calc_size_min(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted) + { + Eina.Log.Debug("function efl_layout_calc_size_min was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_restricted = restricted; + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Layout)wrapper).CalcSizeMin(_in_restricted); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_layout_signal_emit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); - public static Efl.Eo.FunctionWrapper efl_layout_signal_emit_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_emit"); - private static void signal_emit(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source) - { - Eina.Log.Debug("function efl_layout_signal_emit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).EmitSignal( emission, source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_layout_signal_emit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source); + else + { + return efl_layout_calc_size_min_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), restricted); + } } - } - private static efl_layout_signal_emit_delegate efl_layout_signal_emit_static_delegate; + private static efl_layout_calc_size_min_delegate efl_layout_calc_size_min_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_parts_extends_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_parts_extends"); + + private static Eina.Rect.NativeStruct calc_parts_extends(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_parts_extends was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Layout)wrapper).CalcPartsExtends(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_layout_calc_parts_extends_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_layout_calc_parts_extends_delegate efl_layout_calc_parts_extends_static_delegate; + + + private delegate int efl_layout_calc_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_layout_calc_freeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_freeze"); + + private static int calc_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Layout)wrapper).FreezeCalc(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_layout_calc_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_layout_signal_process_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool recurse); + private static efl_layout_calc_freeze_delegate efl_layout_calc_freeze_static_delegate; + + + private delegate int efl_layout_calc_thaw_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_layout_calc_thaw_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_thaw_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_thaw"); + + private static int calc_thaw(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_thaw was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Layout)wrapper).ThawCalc(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_layout_signal_process_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool recurse); - public static Efl.Eo.FunctionWrapper efl_layout_signal_process_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_process"); - private static void signal_process(System.IntPtr obj, System.IntPtr pd, bool recurse) - { - Eina.Log.Debug("function efl_layout_signal_process was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).SignalProcess( recurse); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_signal_process_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recurse); + } + else + { + return efl_layout_calc_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_signal_process_delegate efl_layout_signal_process_static_delegate; + + private static efl_layout_calc_thaw_delegate efl_layout_calc_thaw_static_delegate; + + + private delegate void efl_layout_calc_force_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_layout_calc_force_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_force_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_force"); + + private static void calc_force(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_force was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).CalcForce(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_calc_force_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_layout_calc_force_delegate efl_layout_calc_force_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_group_size_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_size_min_get"); + + private static Eina.Size2D.NativeStruct group_size_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_group_size_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Layout)wrapper).GetGroupSizeMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_layout_group_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_layout_group_size_min_get_delegate efl_layout_group_size_min_get_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_group_size_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_size_max_get"); + + private static Eina.Size2D.NativeStruct group_size_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_group_size_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Layout)wrapper).GetGroupSizeMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_layout_group_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_layout_group_size_max_get_delegate efl_layout_group_size_max_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_layout_group_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_layout_group_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_layout_group_data_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_data_get"); + + private static System.String group_data_get(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_layout_group_data_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Layout)wrapper).GetGroupData(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_layout_group_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } + } + + private static efl_layout_group_data_get_delegate efl_layout_group_data_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_group_part_exist_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_group_part_exist_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + public static Efl.Eo.FunctionWrapper efl_layout_group_part_exist_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_part_exist_get"); + + private static bool part_exist_get(System.IntPtr obj, System.IntPtr pd, System.String part) + { + Eina.Log.Debug("function efl_layout_group_part_exist_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetPartExist(part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_layout_group_part_exist_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + } + } + + private static efl_layout_group_part_exist_get_delegate efl_layout_group_part_exist_get_static_delegate; + + + private delegate void efl_layout_signal_message_send_delegate(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg); + + + public delegate void efl_layout_signal_message_send_api_delegate(System.IntPtr obj, int id, Eina.ValueNative msg); + + public static Efl.Eo.FunctionWrapper efl_layout_signal_message_send_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_message_send"); + + private static void message_send(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg) + { + Eina.Log.Debug("function efl_layout_signal_message_send was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).MessageSend(id, msg); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_message_send_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id, msg); + } + } + + private static efl_layout_signal_message_send_delegate efl_layout_signal_message_send_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_signal_callback_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_signal_callback_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + + public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_callback_add"); + + private static bool signal_callback_add(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_layout_signal_callback_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).AddSignalCallback(emission, source, func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_layout_signal_callback_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + } + } + + private static efl_layout_signal_callback_add_delegate efl_layout_signal_callback_add_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_signal_callback_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_signal_callback_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + + public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_callback_del"); + + private static bool signal_callback_del(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_layout_signal_callback_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).DelSignalCallback(emission, source, func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_layout_signal_callback_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + } + } + + private static efl_layout_signal_callback_del_delegate efl_layout_signal_callback_del_static_delegate; + + + private delegate void efl_layout_signal_emit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); + + + public delegate void efl_layout_signal_emit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); + + public static Efl.Eo.FunctionWrapper efl_layout_signal_emit_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_emit"); + + private static void signal_emit(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source) + { + Eina.Log.Debug("function efl_layout_signal_emit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).EmitSignal(emission, source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_emit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source); + } + } + + private static efl_layout_signal_emit_delegate efl_layout_signal_emit_static_delegate; + + + private delegate void efl_layout_signal_process_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool recurse); + + + public delegate void efl_layout_signal_process_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool recurse); + + public static Efl.Eo.FunctionWrapper efl_layout_signal_process_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_process"); + + private static void signal_process(System.IntPtr obj, System.IntPtr pd, bool recurse) + { + Eina.Log.Debug("function efl_layout_signal_process was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).SignalProcess(recurse); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_process_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recurse); + } + } + + private static efl_layout_signal_process_delegate efl_layout_signal_process_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part.eo.cs index 9a9a9e6..10f8b8e 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part.eo.cs @@ -3,216 +3,289 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Common class for part proxy objects for . /// As an implementation class, all objects of this class are meant to be used for one and only one function call. In pseudo-code, the use of object of this type looks like the following: rect = layout.part("somepart").geometry_get(); -[LayoutPartNativeInherit] +[Efl.Canvas.LayoutPart.NativeMethods] public class LayoutPart : Efl.Object, Efl.Eo.IWrapper,Efl.Gfx.IEntity,Efl.Ui.IDrag { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPart)) - return Efl.Canvas.LayoutPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr efl_canvas_layout_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPart(Efl.Object parent= null - ) : - base(efl_canvas_layout_part_class_get(), typeof(LayoutPart), parent) + ) : base(efl_canvas_layout_part_class_get(), typeof(LayoutPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object VisibilityChangedEvtKey = new object(); + /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) public event EventHandler VisibilityChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.AddHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.RemoveHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event VisibilityChangedEvt. - public void On_VisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) + public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[VisibilityChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_VisibilityChangedEvt_delegate; - private void on_VisibilityChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_VisibilityChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PositionChangedEvtKey = new object(); /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) public event EventHandler PositionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.AddHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PositionChangedEvt. - public void On_PositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) + public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PositionChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PositionChangedEvt_delegate; - private void on_PositionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PositionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object SizeChangedEvtKey = new object(); /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) public event EventHandler SizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.AddHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SizeChangedEvt. - public void On_SizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) + public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SizeChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SizeChangedEvt_delegate; - private void on_SizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_SizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_VisibilityChangedEvt_delegate = new Efl.EventCb(on_VisibilityChangedEvt_NativeCallback); - evt_PositionChangedEvt_delegate = new Efl.EventCb(on_PositionChangedEvt_NativeCallback); - evt_SizeChangedEvt_delegate = new Efl.EventCb(on_SizeChangedEvt_NativeCallback); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// The name and value of the current state of this part (read-only). /// This is the state name as it appears in EDC description blocks. A state has both a name and a value (double). The default state is "default" 0.0, but this function will return "" if the part is invalid. /// The name of the state. /// The value of the state. - /// - virtual public void GetState( out System.String state, out double val) { - Efl.Canvas.LayoutPartNativeInherit.efl_canvas_layout_part_state_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out state, out val); + virtual public void GetState(out System.String state, out double val) { + Efl.Canvas.LayoutPart.NativeMethods.efl_canvas_layout_part_state_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out state, out val); Eina.Error.RaiseIfUnhandledException(); } /// Returns the type of the part. /// One of the types or none if not an existing part. virtual public Efl.Canvas.LayoutPartType GetPartType() { - var _ret_var = Efl.Canvas.LayoutPartNativeInherit.efl_canvas_layout_part_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.LayoutPart.NativeMethods.efl_canvas_layout_part_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -220,24 +293,23 @@ private static object SizeChangedEvtKey = new object(); /// (Since EFL 1.22) /// A 2D coordinate in pixel units. virtual public Eina.Position2D GetPosition() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Moves the given canvas object to the given location inside its canvas' viewport. If unchanged this call may be entirely skipped, but if changed this will trigger move events, as well as potential pointer,in or pointer,out events. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. - /// - virtual public void SetPosition( Eina.Position2D pos) { + virtual public void SetPosition(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the (rectangular) size of the given Evas object. /// (Since EFL 1.22) /// A 2D size in pixel units. virtual public Eina.Size2D GetSize() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -245,67 +317,63 @@ private static object SizeChangedEvtKey = new object(); /// Note that setting the actual size of an object might be the job of its container, so this function might have no effect. Look at instead, when manipulating widgets. /// (Since EFL 1.22) /// A 2D size in pixel units. - /// - virtual public void SetSize( Eina.Size2D size) { + virtual public void SetSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. virtual public Eina.Rect GetGeometry() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. - /// - virtual public void SetGeometry( Eina.Rect rect) { + virtual public void SetGeometry(Eina.Rect rect) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves whether or not the given canvas object is visible. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise virtual public bool GetVisible() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Shows or hides this object. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise - /// - virtual public void SetVisible( bool v) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), v); + virtual public void SetVisible(bool v) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),v); Eina.Error.RaiseIfUnhandledException(); } /// Gets an object's scaling factor. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) virtual public double GetScale() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the scaling factor of an object. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) - /// - virtual public void SetScale( double scale) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale); + virtual public void SetScale(double scale) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale); Eina.Error.RaiseIfUnhandledException(); } /// 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 - virtual public bool GetDragValue( out double dx, out double dy) { - var _ret_var = Efl.Ui.IDragNativeInherit.efl_ui_drag_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out dx, out dy); + virtual public bool GetDragValue(out double dx, out double dy) { + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out dx, out dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -314,8 +382,8 @@ private static object SizeChangedEvtKey = new object(); /// The x relative position, from 0 to 1. /// The y relative position, from 0 to 1. /// true on success, false otherwise - virtual public bool SetDragValue( double dx, double dy) { - var _ret_var = Efl.Ui.IDragNativeInherit.efl_ui_drag_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dx, dy); + virtual public bool SetDragValue(double dx, double dy) { + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -323,8 +391,8 @@ private static object SizeChangedEvtKey = new object(); /// The drag relative width, from 0 to 1. /// The drag relative height, from 0 to 1. /// true on success, false otherwise - virtual public bool GetDragSize( out double dw, out double dh) { - var _ret_var = Efl.Ui.IDragNativeInherit.efl_ui_drag_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out dw, out dh); + virtual public bool GetDragSize(out double dw, out double dh) { + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out dw, out dh); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -332,15 +400,15 @@ private static object SizeChangedEvtKey = new object(); /// The drag relative width, from 0 to 1. /// The drag relative height, from 0 to 1. /// true on success, false otherwise - virtual public bool SetDragSize( double dw, double dh) { - var _ret_var = Efl.Ui.IDragNativeInherit.efl_ui_drag_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dw, dh); + virtual public bool SetDragSize(double dw, double dh) { + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dw, dh); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the draggable direction. /// The direction(s) premitted for drag. virtual public Efl.Ui.DragDir GetDragDir() { - var _ret_var = Efl.Ui.IDragNativeInherit.efl_ui_drag_dir_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_dir_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -348,8 +416,8 @@ private static object SizeChangedEvtKey = new object(); /// The x step relative amount, from 0 to 1. /// The y step relative amount, from 0 to 1. /// true on success, false otherwise - virtual public bool GetDragStep( out double dx, out double dy) { - var _ret_var = Efl.Ui.IDragNativeInherit.efl_ui_drag_step_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out dx, out dy); + virtual public bool GetDragStep(out double dx, out double dy) { + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out dx, out dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -357,8 +425,8 @@ private static object SizeChangedEvtKey = new object(); /// The x step relative amount, from 0 to 1. /// The y step relative amount, from 0 to 1. /// true on success, false otherwise - virtual public bool SetDragStep( double dx, double dy) { - var _ret_var = Efl.Ui.IDragNativeInherit.efl_ui_drag_step_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dx, dy); + virtual public bool SetDragStep(double dx, double dy) { + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -366,8 +434,8 @@ private static object SizeChangedEvtKey = new object(); /// The x page step increment /// The y page step increment /// true on success, false otherwise - virtual public bool GetDragPage( out double dx, out double dy) { - var _ret_var = Efl.Ui.IDragNativeInherit.efl_ui_drag_page_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out dx, out dy); + virtual public bool GetDragPage(out double dx, out double dy) { + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out dx, out dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -375,8 +443,8 @@ private static object SizeChangedEvtKey = new object(); /// The x page step increment /// The y page step increment /// true on success, false otherwise - virtual public bool SetDragPage( double dx, double dy) { - var _ret_var = Efl.Ui.IDragNativeInherit.efl_ui_drag_page_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dx, dy); + virtual public bool SetDragPage(double dx, double dy) { + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -387,8 +455,8 @@ private static object SizeChangedEvtKey = new object(); /// The number of steps horizontally. /// The number of steps vertically. /// true on success, false otherwise - virtual public bool MoveDragStep( double dx, double dy) { - var _ret_var = Efl.Ui.IDragNativeInherit.efl_ui_drag_step_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dx, dy); + virtual public bool MoveDragStep(double dx, double dy) { + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_step_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -401,8 +469,8 @@ private static object SizeChangedEvtKey = new object(); /// The number of pages horizontally. /// The number of pages vertically. /// true on success, false otherwise - virtual public bool MoveDragPage( double dx, double dy) { - var _ret_var = Efl.Ui.IDragNativeInherit.efl_ui_drag_page_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dx, dy); + virtual public bool MoveDragPage(double dx, double dy) { + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_page_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dx, dy); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -417,21 +485,21 @@ private static object SizeChangedEvtKey = new object(); /// A 2D coordinate in pixel units. public Eina.Position2D Position { get { return GetPosition(); } - set { SetPosition( value); } + set { SetPosition(value); } } /// The 2D size of a canvas object. /// (Since EFL 1.22) /// A 2D size in pixel units. public Eina.Size2D Size { get { return GetSize(); } - set { SetSize( value); } + set { SetSize(value); } } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. public Eina.Rect Geometry { get { return GetGeometry(); } - set { SetGeometry( value); } + set { SetGeometry(value); } } /// The visibility of a canvas object. /// All canvas objects will become visible by default just before render. This means that it is not required to call after creating an object unless you want to create it without showing it. Note that this behavior is new since 1.21, and only applies to canvas objects created with the EO API (i.e. not the legacy C-only API). Other types of Gfx objects may or may not be visible by default. @@ -441,7 +509,7 @@ private static object SizeChangedEvtKey = new object(); /// true if to make the object visible, false otherwise public bool Visible { get { return GetVisible(); } - set { SetVisible( value); } + set { SetVisible(value); } } /// The scaling factor of an object. /// This property is an individual scaling factor on the object (Edje or UI widget). This property (or Edje's global scaling factor, when applicable), will affect this object's part sizes. If scale is not zero, than the individual scaling will override any global scaling set, for the object obj's parts. Set it back to zero to get the effects of the global scaling again. @@ -451,7 +519,7 @@ private static object SizeChangedEvtKey = new object(); /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) public double Scale { get { return GetScale(); } - set { SetScale( value); } + set { SetScale(value); } } /// 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. @@ -463,689 +531,1092 @@ private static object SizeChangedEvtKey = new object(); { return Efl.Canvas.LayoutPart.efl_canvas_layout_part_class_get(); } -} -public class LayoutPartNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Edje); - 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_canvas_layout_part_state_get_static_delegate == null) - efl_canvas_layout_part_state_get_static_delegate = new efl_canvas_layout_part_state_get_delegate(state_get); - if (methods.FirstOrDefault(m => m.Name == "GetState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_state_get_static_delegate)}); - if (efl_canvas_layout_part_type_get_static_delegate == null) - efl_canvas_layout_part_type_get_static_delegate = new efl_canvas_layout_part_type_get_delegate(part_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_type_get_static_delegate)}); - if (efl_gfx_entity_position_get_static_delegate == null) - efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate)}); - if (efl_gfx_entity_position_set_static_delegate == null) - efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate)}); - if (efl_gfx_entity_size_get_static_delegate == null) - efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); - if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate)}); - if (efl_gfx_entity_size_set_static_delegate == null) - efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); - if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate)}); - if (efl_gfx_entity_geometry_get_static_delegate == null) - efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate)}); - if (efl_gfx_entity_geometry_set_static_delegate == null) - efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); - if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate)}); - if (efl_gfx_entity_visible_get_static_delegate == null) - efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); - if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate)}); - if (efl_gfx_entity_visible_set_static_delegate == null) - efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); - if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate)}); - if (efl_gfx_entity_scale_get_static_delegate == null) - efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate)}); - if (efl_gfx_entity_scale_set_static_delegate == null) - efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_static_delegate)}); - 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)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Canvas.LayoutPart.efl_canvas_layout_part_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Canvas.LayoutPart.efl_canvas_layout_part_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Edje); + /// 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_canvas_layout_part_state_get_static_delegate == null) + { + efl_canvas_layout_part_state_get_static_delegate = new efl_canvas_layout_part_state_get_delegate(state_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_state_get_static_delegate) }); + } - private delegate void efl_canvas_layout_part_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String state, out double val); + if (efl_canvas_layout_part_type_get_static_delegate == null) + { + efl_canvas_layout_part_type_get_static_delegate = new efl_canvas_layout_part_type_get_delegate(part_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPartType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_type_get_static_delegate) }); + } - public delegate void efl_canvas_layout_part_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String state, out double val); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_state_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_state_get"); - private static void state_get(System.IntPtr obj, System.IntPtr pd, out System.String state, out double val) - { - Eina.Log.Debug("function efl_canvas_layout_part_state_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_state = default(System.String); - val = default(double); - try { - ((LayoutPart)wrapper).GetState( out _out_state, out val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_entity_position_get_static_delegate == null) + { + efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); } - state = _out_state; - } else { - efl_canvas_layout_part_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out state, out val); - } - } - private static efl_canvas_layout_part_state_get_delegate efl_canvas_layout_part_state_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate) }); + } - private delegate Efl.Canvas.LayoutPartType efl_canvas_layout_part_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_entity_position_set_static_delegate == null) + { + efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate) }); + } - public delegate Efl.Canvas.LayoutPartType efl_canvas_layout_part_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_type_get"); - private static Efl.Canvas.LayoutPartType part_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_layout_part_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.LayoutPartType _ret_var = default(Efl.Canvas.LayoutPartType); - try { - _ret_var = ((LayoutPart)wrapper).GetPartType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_entity_size_get_static_delegate == null) + { + efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); } - return _ret_var; - } else { - return efl_canvas_layout_part_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_layout_part_type_get_delegate efl_canvas_layout_part_type_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate) }); + } - private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_entity_size_set_static_delegate == null) + { + efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate) }); + } - public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_get"); - private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((LayoutPart)wrapper).GetPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_entity_geometry_get_static_delegate == null) + { + efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); } - return _ret_var; - } else { - return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate) }); + } - private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (efl_gfx_entity_geometry_set_static_delegate == null) + { + efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate) }); + } - public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_set"); - private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_gfx_entity_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((LayoutPart)wrapper).SetPosition( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; + if (efl_gfx_entity_visible_get_static_delegate == null) + { + efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate) }); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_entity_visible_set_static_delegate == null) + { + efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate) }); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_get"); - private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((LayoutPart)wrapper).GetSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_entity_scale_get_static_delegate == null) + { + efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); } - return _ret_var; - } else { - return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate) }); + } - private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + if (efl_gfx_entity_scale_set_static_delegate == null) + { + efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_static_delegate) }); + } - public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_set"); - private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_entity_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; - - try { - ((LayoutPart)wrapper).SetSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; + 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) }); + } - private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + 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) }); + } - public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_get"); - private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((LayoutPart)wrapper).GetGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + 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); } - return _ret_var; - } else { - return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; + 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) }); + } - private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + 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) }); + } - public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_set"); - private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - - try { - ((LayoutPart)wrapper).SetGeometry( _in_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); - } - } - private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_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) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + 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) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_get"); - private static bool visible_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPart)wrapper).GetVisible(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + 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); } - return _ret_var; - } else { - return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; + 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) }); + } - private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + 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) }); + } - public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_set"); - private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) - { - Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPart)wrapper).SetVisible( v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); - } - } - private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_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) }); + } - private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + 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) }); + } - public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_get"); - private static double scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((LayoutPart)wrapper).GetScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + 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); } - return _ret_var; - } else { - return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; + 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) }); + } - private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.LayoutPart.efl_canvas_layout_part_class_get(); + } + #pragma warning disable CA1707, SA1300, SA1600 - public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_set"); - private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) - { - Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPart)wrapper).SetScale( scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); - } - } - private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + + private delegate void efl_canvas_layout_part_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String state, out double val); + + public delegate void efl_canvas_layout_part_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String state, out double val); - [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); + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_state_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_state_get"); + private static void state_get(System.IntPtr obj, System.IntPtr pd, out System.String state, out double val) + { + Eina.Log.Debug("function efl_canvas_layout_part_state_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_state = default(System.String); + val = default(double); + try + { + ((LayoutPart)wrapper).GetState(out _out_state, out val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - dx = default(double); dy = default(double); bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPart)wrapper).GetDragValue( out dx, out dy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + state = _out_state; + + } + else + { + efl_canvas_layout_part_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out state, out val); } - 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; + private static efl_canvas_layout_part_state_get_delegate efl_canvas_layout_part_state_get_static_delegate; + + + private delegate Efl.Canvas.LayoutPartType efl_canvas_layout_part_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Canvas.LayoutPartType efl_canvas_layout_part_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_type_get"); + + private static Efl.Canvas.LayoutPartType part_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_layout_part_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.LayoutPartType _ret_var = default(Efl.Canvas.LayoutPartType); + try + { + _ret_var = ((LayoutPart)wrapper).GetPartType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); + return _ret_var; + } + else + { + return efl_canvas_layout_part_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_layout_part_type_get_delegate efl_canvas_layout_part_type_get_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_get"); + + private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((LayoutPart)wrapper).GetPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPart)wrapper).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); + else + { + return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_drag_value_set_delegate efl_ui_drag_value_set_static_delegate; + private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_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); + + private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - dw = default(double); dh = default(double); bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPart)wrapper).GetDragSize( out dw, out dh); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_set"); + + private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_gfx_entity_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((LayoutPart)wrapper).SetPosition(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - 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); + private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_get"); + + private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((LayoutPart)wrapper).GetSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPart)wrapper).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); + else + { + return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_drag_size_set_delegate efl_ui_drag_size_set_static_delegate; + private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; - private delegate Efl.Ui.DragDir efl_ui_drag_dir_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - 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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.DragDir _ret_var = default(Efl.Ui.DragDir); - try { - _ret_var = ((LayoutPart)wrapper).GetDragDir(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_set"); + + private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_entity_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; + + try + { + ((LayoutPart)wrapper).SetSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } + } + + private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_get"); + + private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((LayoutPart)wrapper).GetGeometry(); + } + 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))); + + } + else + { + return efl_gfx_entity_geometry_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; + private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_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); + + private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + + public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - dx = default(double); dy = default(double); bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPart)wrapper).GetDragStep( out dx, out dy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_set"); + + private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + + try + { + ((LayoutPart)wrapper).SetGeometry(_in_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); } - 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; + private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_get"); + + private static bool visible_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPart)wrapper).GetVisible(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); + return _ret_var; + } + else + { + return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPart)wrapper).SetDragStep( dx, dy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; + + + private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + + + public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_set"); + + private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) + { + Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPart)wrapper).SetVisible(v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); } - 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; + private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; + + + private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_get"); + + private static double scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((LayoutPart)wrapper).GetScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [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 _ret_var; + } + else + { + return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - dx = default(double); dy = default(double); bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPart)wrapper).GetDragPage( out dx, out dy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; + + + private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + + public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_set"); + + private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPart)wrapper).SetScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); } + } + + private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + + [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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + dx = default(double); dy = default(double); bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPart)wrapper).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_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dx, out dy); + + } + 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_page_get_delegate efl_ui_drag_page_get_static_delegate; + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPart)wrapper).SetDragValue(dx, dy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_page_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); + 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); + } + } - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPart)wrapper).SetDragPage( dx, dy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + dw = default(double); dh = default(double); bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPart)wrapper).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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPart)wrapper).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_page_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); + + } + 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_page_set_delegate efl_ui_drag_page_set_static_delegate; + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.DragDir _ret_var = default(Efl.Ui.DragDir); + try + { + _ret_var = ((LayoutPart)wrapper).GetDragDir(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_step_move_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); + } + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + dx = default(double); dy = default(double); bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPart)wrapper).GetDragStep(out dx, out dy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPart)wrapper).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_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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPart)wrapper).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_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); + + } + 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_move_delegate efl_ui_drag_step_move_static_delegate; + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + dx = default(double); dy = default(double); bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPart)wrapper).GetDragPage(out dx, out dy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_page_move_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPart)wrapper).SetDragPage(dx, dy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPart)wrapper).MoveDragPage( dx, dy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPart)wrapper).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_page_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); + + } + 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_page_move_delegate efl_ui_drag_page_move_static_delegate; + + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPart)wrapper).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, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_box.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_box.eo.cs index f91ad1f..0dc5e0a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_box.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_box.eo.cs @@ -3,161 +3,203 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Represents a Box created as part of a layout. /// Its lifetime is limited to one function call only, unless an extra reference is explicitly held. -[LayoutPartBoxNativeInherit] +[Efl.Canvas.LayoutPartBox.NativeMethods] public class LayoutPartBox : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IContainer,Efl.IPack,Efl.IPackLinear,Efl.Ui.IDirection,Efl.Ui.IDirectionReadonly { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPartBox)) - return Efl.Canvas.LayoutPartBoxNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPartBox)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr efl_canvas_layout_part_box_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPartBox(Efl.Object parent= null - ) : - base(efl_canvas_layout_part_box_class_get(), typeof(LayoutPartBox), parent) + ) : base(efl_canvas_layout_part_box_class_get(), typeof(LayoutPartBox), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPartBox(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPartBox(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPartBox(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentAddedEvtKey = new object(); + /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Begin iterating over this object's contents. /// (Since EFL 1.22) /// Iterator to object content virtual public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -165,48 +207,44 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements virtual public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_horiz, out align_vert); + virtual public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert); + virtual public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pad_horiz, out pad_vert, out scalable); + virtual public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable); + virtual public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise virtual public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -214,15 +252,15 @@ private static object ContentRemovedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise virtual public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - virtual public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -232,8 +270,8 @@ private static object ContentRemovedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - virtual public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -241,21 +279,21 @@ private static object ContentRemovedEvtKey = new object(); /// This is the same as (subobj, 0). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack. - /// false if subobj could not be packed - virtual public bool PackBegin( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// Item to pack at the beginning. + /// false if subobj could not be packed. + virtual public bool PackBegin(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Append object at the end of this container. + /// Append item at the end of this container. /// This is the same as (subobj, -1). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Item to pack at the end. - /// false if subobj could not be packed - virtual public bool PackEnd( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// false if subobj could not be packed. + virtual public bool PackEnd(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -264,8 +302,8 @@ private static object ContentRemovedEvtKey = new object(); /// Item to pack before existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -274,46 +312,54 @@ private static object ContentRemovedEvtKey = new object(); /// Item to pack after existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Inserts subobj at the specified index. - /// Valid range: -count to +count. -1 refers to the last element. Out of range indices will trigger an append. + /// Inserts subobj BEFORE the item at position index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack at given index. - /// A position. + /// Item to pack. + /// Index of item to insert BEFORE. Valid range is -count to (count-1). /// false if subobj could not be packed. - virtual public bool PackAt( Efl.Gfx.IEntity subobj, int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, index); + virtual public bool PackAt(Efl.Gfx.IEntity subobj, int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Content at a given index in this container. - /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1). - /// Index number + /// Content at a given index in this container. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will return the first item whereas index greater than count-1 will return the last item. + /// Index of the item to retrieve. Valid range is -count to (count-1). /// The object contained at the given index. - virtual public Efl.Gfx.IEntity GetPackContent( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity GetPackContent(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the index of a child in this container. /// An object contained in this pack. - /// -1 in case of failure, or the index of this item. - virtual public int GetPackIndex( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// -1 in case subobj is not a child of this object, or the index of this item in the range 0 to (count-1). + virtual public int GetPackIndex(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Pop out item at specified index. - /// Equivalent to unpack(content_at(index)). - /// Index number + /// Pop out (remove) the item at the specified index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will remove the first item whereas index greater than count-1 will remove the last item. + /// + /// Equivalent to ((index)). + /// Index of item to remove. Valid range is -count to (count-1). /// The child item if it could be removed. - virtual public Efl.Gfx.IEntity PackUnpackAt( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -323,7 +369,7 @@ private static object ContentRemovedEvtKey = new object(); /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. virtual public Efl.Ui.Dir GetDirection() { - var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -332,9 +378,8 @@ private static object ContentRemovedEvtKey = new object(); /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. - /// - virtual public void SetDirection( Efl.Ui.Dir dir) { - Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetDirection(Efl.Ui.Dir dir) { + Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// Control the direction of a given widget. @@ -344,604 +389,956 @@ private static object ContentRemovedEvtKey = new object(); /// Direction of the widget. public Efl.Ui.Dir Direction { get { return GetDirection(); } - set { SetDirection( value); } + set { SetDirection(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.LayoutPartBox.efl_canvas_layout_part_box_class_get(); } -} -public class LayoutPartBoxNativeInherit : Efl.Canvas.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Edje); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.LayoutPart.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - if (efl_pack_begin_static_delegate == null) - efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); - if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate)}); - if (efl_pack_end_static_delegate == null) - efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); - if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate)}); - if (efl_pack_before_static_delegate == null) - efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); - if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate)}); - if (efl_pack_after_static_delegate == null) - efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); - if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate)}); - if (efl_pack_at_static_delegate == null) - efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); - if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate)}); - if (efl_pack_content_get_static_delegate == null) - efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate)}); - if (efl_pack_index_get_static_delegate == null) - efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate)}); - if (efl_pack_unpack_at_static_delegate == null) - efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); - if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate)}); - if (efl_ui_direction_get_static_delegate == null) - efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)}); - if (efl_ui_direction_set_static_delegate == null) - efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.LayoutPartBox.efl_canvas_layout_part_box_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Canvas.LayoutPartBox.efl_canvas_layout_part_box_class_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Edje); + /// 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_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((LayoutPartBox)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartBox)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_count_delegate efl_content_count_static_delegate; + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); + } - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((LayoutPartBox)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); + } + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartBox)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); - } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); + } + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((LayoutPartBox)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); - } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); + } + if (efl_pack_begin_static_delegate == null) + { + efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); + } + if (efl_pack_end_static_delegate == null) + { + efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartBox)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); - } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); + } + if (efl_pack_before_static_delegate == null) + { + efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); + } + if (efl_pack_after_static_delegate == null) + { + efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + if (efl_pack_at_static_delegate == null) + { + efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); + } + if (efl_pack_content_get_static_delegate == null) + { + efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + if (efl_pack_index_get_static_delegate == null) + { + efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); + } + if (efl_pack_unpack_at_static_delegate == null) + { + efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + if (efl_ui_direction_get_static_delegate == null) + { + efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate) }); + } + if (efl_ui_direction_set_static_delegate == null) + { + efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_delegate efl_pack_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.LayoutPartBox.efl_canvas_layout_part_box_class_get(); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((LayoutPartBox)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_begin"); - private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_begin was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).PackBegin( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartBox)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + return _ret_var; + } + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_end"); - private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).PackEnd( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_content_count_delegate efl_content_count_static_delegate; + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((LayoutPartBox)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); } - return _ret_var; - } else { - return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } - } - private static efl_pack_end_delegate efl_pack_end_static_delegate; + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartBox)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((LayoutPartBox)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); + } + } + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartBox)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } + + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_before"); - private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_before was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).PackBefore( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_before_delegate efl_pack_before_static_delegate; + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + return _ret_var; + } + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_after"); - private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_after was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).PackAfter( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_after_delegate efl_pack_after_static_delegate; + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); + return _ret_var; + + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + private static efl_pack_delegate efl_pack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); + + private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_begin was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackBegin(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_at"); - private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) - { - Eina.Log.Debug("function efl_pack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).PackAt( subobj, index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + else + { + return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_at_delegate efl_pack_at_static_delegate; + private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); + + private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackEnd(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + return _ret_var; + } + else + { + return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_end_delegate efl_pack_end_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); + + private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_before was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackBefore(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_content_get"); - private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartBox)wrapper).GetPackContent( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + else + { + return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } } - } - private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + private static efl_pack_before_delegate efl_pack_before_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); + + private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_after was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackAfter(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } - private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_pack_after_delegate efl_pack_after_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); + + private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) + { + Eina.Log.Debug("function efl_pack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackAt(subobj, index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_index_get"); - private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_index_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartBox)wrapper).GetPackIndex( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + } } - } - private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + private static efl_pack_at_delegate efl_pack_at_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); + + private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartBox)wrapper).GetPackContent(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + return _ret_var; + } + else + { + return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_at"); - private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_unpack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartBox)wrapper).PackUnpackAt( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + + + private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); + + private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_index_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartBox)wrapper).GetPackIndex(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } + } + + private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); + + private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_unpack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackUnpackAt(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + + } + else + { + return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } } - } - private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + + private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_get"); + + private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); + try + { + _ret_var = ((LayoutPartBox)wrapper).GetDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_get"); - private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); - try { - _ret_var = ((LayoutPartBox)wrapper).GetDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + + + private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + + public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_set"); + + private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartBox)wrapper).SetDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - return _ret_var; - } else { - return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; - private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_set"); - private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartBox)wrapper).SetDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_external.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_external.eo.cs index 52c0c71..973dccd 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_external.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_external.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Class representing an external part in Edje layouts. /// An object of this type is an Efl.Part object, which means its lifecycle is limited to only one function call. /// @@ -13,245 +17,340 @@ namespace Efl { namespace Canvas { /// Common usage in pseudo-C would be as follows: Eo *widget = efl_content_get(efl_part(layout, "extpartname")); efl_text_set(widget, "hello"); /// /// Note that as a shortcut the widget's functions can be called directly on this part object. In C++: efl::eo::downcast<efl::Text>(layout.part("title")).text_set("hello"); Or in pseudo-C: efl_text_set(efl_part(layout, "title"), "hello"); Or in pseudo-script: layout["title"].text = "hello"; -[LayoutPartExternalNativeInherit] +[Efl.Canvas.LayoutPartExternal.NativeMethods] public class LayoutPartExternal : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPartExternal)) - return Efl.Canvas.LayoutPartExternalNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPartExternal)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr efl_canvas_layout_part_external_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPartExternal(Efl.Object parent= null - ) : - base(efl_canvas_layout_part_external_class_get(), typeof(LayoutPartExternal), parent) + ) : base(efl_canvas_layout_part_external_class_get(), typeof(LayoutPartExternal), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPartExternal(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPartExternal(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPartExternal(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.LayoutPartExternal.efl_canvas_layout_part_external_class_get(); } -} -public class LayoutPartExternalNativeInherit : Efl.Canvas.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Edje); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.LayoutPartExternal.efl_canvas_layout_part_external_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.LayoutPart.NativeMethods { - return Efl.Canvas.LayoutPartExternal.efl_canvas_layout_part_external_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Edje); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartExternal)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.LayoutPartExternal.efl_canvas_layout_part_external_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartExternal)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartExternal)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartExternal)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartExternal)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartExternal)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_swallow.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_swallow.eo.cs index f85eed2..63aecbc 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_swallow.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_swallow.eo.cs @@ -3,249 +3,348 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Represents a SWALLOW part of an Edje object. /// Its lifetime is limited to one function call only, unless an extra reference is explicitely held. -[LayoutPartSwallowNativeInherit] +[Efl.Canvas.LayoutPartSwallow.NativeMethods] public class LayoutPartSwallow : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPartSwallow)) - return Efl.Canvas.LayoutPartSwallowNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPartSwallow)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr efl_canvas_layout_part_swallow_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPartSwallow(Efl.Object parent= null - ) : - base(efl_canvas_layout_part_swallow_class_get(), typeof(LayoutPartSwallow), parent) + ) : base(efl_canvas_layout_part_swallow_class_get(), typeof(LayoutPartSwallow), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPartSwallow(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPartSwallow(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPartSwallow(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.LayoutPartSwallow.efl_canvas_layout_part_swallow_class_get(); } -} -public class LayoutPartSwallowNativeInherit : Efl.Canvas.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Edje); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.LayoutPartSwallow.efl_canvas_layout_part_swallow_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.LayoutPart.NativeMethods { - return Efl.Canvas.LayoutPartSwallow.efl_canvas_layout_part_swallow_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Edje); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartSwallow)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.LayoutPartSwallow.efl_canvas_layout_part_swallow_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartSwallow)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartSwallow)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartSwallow)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartSwallow)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartSwallow)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_table.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_table.eo.cs index 2d787e3..a93c839 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_table.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_table.eo.cs @@ -3,161 +3,203 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Represents a Table created as part of a layout. /// Can not be deleted, this is only a representation of an internal object of an EFL layout. -[LayoutPartTableNativeInherit] +[Efl.Canvas.LayoutPartTable.NativeMethods] public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IContainer,Efl.IPack,Efl.IPackTable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPartTable)) - return Efl.Canvas.LayoutPartTableNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPartTable)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr efl_canvas_layout_part_table_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPartTable(Efl.Object parent= null - ) : - base(efl_canvas_layout_part_table_class_get(), typeof(LayoutPartTable), parent) + ) : base(efl_canvas_layout_part_table_class_get(), typeof(LayoutPartTable), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPartTable(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPartTable(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPartTable(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentAddedEvtKey = new object(); + /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Begin iterating over this object's contents. /// (Since EFL 1.22) /// Iterator to object content virtual public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -165,48 +207,44 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements virtual public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_horiz, out align_vert); + virtual public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert); + virtual public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pad_horiz, out pad_vert, out scalable); + virtual public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable); + virtual public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise virtual public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -214,15 +252,15 @@ private static object ContentRemovedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise virtual public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - virtual public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -232,8 +270,8 @@ private static object ContentRemovedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - virtual public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -244,71 +282,65 @@ private static object ContentRemovedEvtKey = new object(); /// Column span /// Row span /// Returns false if item is not a child - virtual public bool GetTablePosition( Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, out col, out row, out colspan, out rowspan); + virtual public bool GetTablePosition(Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, out col, out row, out colspan, out rowspan); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Combines and /// Number of columns /// Number of rows - /// - virtual public void GetTableSize( out int cols, out int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out cols, out rows); + virtual public void GetTableSize(out int cols, out int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out cols, out rows); Eina.Error.RaiseIfUnhandledException(); } /// Combines and /// Number of columns /// Number of rows - /// - virtual public void SetTableSize( int cols, int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cols, rows); + virtual public void SetTableSize(int cols, int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cols, rows); Eina.Error.RaiseIfUnhandledException(); } /// Gird columns property /// Number of columns virtual public int GetTableColumns() { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_columns_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_columns_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies limit for linear adds - if direction is horizontal /// Number of columns - /// - virtual public void SetTableColumns( int cols) { - Efl.IPackTableNativeInherit.efl_pack_table_columns_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cols); + virtual public void SetTableColumns(int cols) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_columns_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cols); Eina.Error.RaiseIfUnhandledException(); } /// Table rows property /// Number of rows virtual public int GetTableRows() { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_rows_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_rows_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies limit for linear adds - if direction is vertical /// Number of rows - /// - virtual public void SetTableRows( int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_rows_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), rows); + virtual public void SetTableRows(int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_rows_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),rows); Eina.Error.RaiseIfUnhandledException(); } /// Primary and secondary up/left/right/down directions for linear apis. /// Default is horizontal and vertical. This overrides . /// Primary direction /// Secondary direction - /// - virtual public void GetTableDirection( out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) { - Efl.IPackTableNativeInherit.efl_pack_table_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out primary, out secondary); + virtual public void GetTableDirection(out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out primary, out secondary); Eina.Error.RaiseIfUnhandledException(); } /// Primary and secondary up/left/right/down directions for linear apis. /// Default is horizontal and vertical. This overrides . /// Primary direction /// Secondary direction - /// - virtual public void SetTableDirection( Efl.Ui.Dir primary, Efl.Ui.Dir secondary) { - Efl.IPackTableNativeInherit.efl_pack_table_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), primary, secondary); + virtual public void SetTableDirection(Efl.Ui.Dir primary, Efl.Ui.Dir secondary) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),primary, secondary); Eina.Error.RaiseIfUnhandledException(); } /// Pack object at a given location in the table. @@ -319,8 +351,8 @@ private static object ContentRemovedEvtKey = new object(); /// 0 means 1, -1 means /// 0 means 1, -1 means /// true on success, false otherwise - virtual public bool PackTable( Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, col, row, colspan, rowspan); + virtual public bool PackTable(Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, col, row, colspan, rowspan); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -329,8 +361,8 @@ private static object ContentRemovedEvtKey = new object(); /// Row number /// If true get objects spanning over this cell. /// Iterator to table contents - virtual public Eina.Iterator GetTableContents( int col, int row, bool below) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_contents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), col, row, below); + virtual public Eina.Iterator GetTableContents(int col, int row, bool below) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_contents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),col, row, below); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -338,8 +370,8 @@ private static object ContentRemovedEvtKey = new object(); /// Column number /// Row number /// Child object - virtual public Efl.Gfx.IEntity GetTableContent( int col, int row) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), col, row); + virtual public Efl.Gfx.IEntity GetTableContent(int col, int row) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),col, row); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -347,663 +379,1049 @@ private static object ContentRemovedEvtKey = new object(); /// Number of columns public int TableColumns { get { return GetTableColumns(); } - set { SetTableColumns( value); } + set { SetTableColumns(value); } } /// Table rows property /// Number of rows public int TableRows { get { return GetTableRows(); } - set { SetTableRows( value); } + set { SetTableRows(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.LayoutPartTable.efl_canvas_layout_part_table_class_get(); } -} -public class LayoutPartTableNativeInherit : Efl.Canvas.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Edje); - 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_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - if (efl_pack_table_position_get_static_delegate == null) - efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate)}); - if (efl_pack_table_size_get_static_delegate == null) - efl_pack_table_size_get_static_delegate = new efl_pack_table_size_get_delegate(table_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_get_static_delegate)}); - if (efl_pack_table_size_set_static_delegate == null) - efl_pack_table_size_set_static_delegate = new efl_pack_table_size_set_delegate(table_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_set_static_delegate)}); - if (efl_pack_table_columns_get_static_delegate == null) - efl_pack_table_columns_get_static_delegate = new efl_pack_table_columns_get_delegate(table_columns_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableColumns") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_columns_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_get_static_delegate)}); - if (efl_pack_table_columns_set_static_delegate == null) - efl_pack_table_columns_set_static_delegate = new efl_pack_table_columns_set_delegate(table_columns_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableColumns") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_columns_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_set_static_delegate)}); - if (efl_pack_table_rows_get_static_delegate == null) - efl_pack_table_rows_get_static_delegate = new efl_pack_table_rows_get_delegate(table_rows_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableRows") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_rows_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_get_static_delegate)}); - if (efl_pack_table_rows_set_static_delegate == null) - efl_pack_table_rows_set_static_delegate = new efl_pack_table_rows_set_delegate(table_rows_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableRows") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_rows_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_set_static_delegate)}); - if (efl_pack_table_direction_get_static_delegate == null) - efl_pack_table_direction_get_static_delegate = new efl_pack_table_direction_get_delegate(table_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_get_static_delegate)}); - if (efl_pack_table_direction_set_static_delegate == null) - efl_pack_table_direction_set_static_delegate = new efl_pack_table_direction_set_delegate(table_direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_set_static_delegate)}); - if (efl_pack_table_static_delegate == null) - efl_pack_table_static_delegate = new efl_pack_table_delegate(pack_table); - if (methods.FirstOrDefault(m => m.Name == "PackTable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_static_delegate)}); - if (efl_pack_table_contents_get_static_delegate == null) - efl_pack_table_contents_get_static_delegate = new efl_pack_table_contents_get_delegate(table_contents_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableContents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_contents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_contents_get_static_delegate)}); - if (efl_pack_table_content_get_static_delegate == null) - efl_pack_table_content_get_static_delegate = new efl_pack_table_content_get_delegate(table_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_content_get_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.LayoutPartTable.efl_canvas_layout_part_table_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.LayoutPart.NativeMethods { - return Efl.Canvas.LayoutPartTable.efl_canvas_layout_part_table_class_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Edje); + /// 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_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((LayoutPartTable)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartTable)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_count_delegate efl_content_count_static_delegate; + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); + } - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((LayoutPartTable)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); + } + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); - } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); + } + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((LayoutPartTable)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); - } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); + } + if (efl_pack_table_position_get_static_delegate == null) + { + efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate) }); + } + if (efl_pack_table_size_get_static_delegate == null) + { + efl_pack_table_size_get_static_delegate = new efl_pack_table_size_get_delegate(table_size_get); + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); - } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetTableSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_get_static_delegate) }); + } + if (efl_pack_table_size_set_static_delegate == null) + { + efl_pack_table_size_set_static_delegate = new efl_pack_table_size_set_delegate(table_size_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetTableSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_set_static_delegate) }); + } + if (efl_pack_table_columns_get_static_delegate == null) + { + efl_pack_table_columns_get_static_delegate = new efl_pack_table_columns_get_delegate(table_columns_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTableColumns") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_columns_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + if (efl_pack_table_columns_set_static_delegate == null) + { + efl_pack_table_columns_set_static_delegate = new efl_pack_table_columns_set_delegate(table_columns_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetTableColumns") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_columns_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_set_static_delegate) }); + } + if (efl_pack_table_rows_get_static_delegate == null) + { + efl_pack_table_rows_get_static_delegate = new efl_pack_table_rows_get_delegate(table_rows_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTableRows") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_rows_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + if (efl_pack_table_rows_set_static_delegate == null) + { + efl_pack_table_rows_set_static_delegate = new efl_pack_table_rows_set_delegate(table_rows_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "SetTableRows") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_rows_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_set_static_delegate) }); + } + if (efl_pack_table_direction_get_static_delegate == null) + { + efl_pack_table_direction_get_static_delegate = new efl_pack_table_direction_get_delegate(table_direction_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTableDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + if (efl_pack_table_direction_set_static_delegate == null) + { + efl_pack_table_direction_set_static_delegate = new efl_pack_table_direction_set_delegate(table_direction_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "SetTableDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_set_static_delegate) }); + } + if (efl_pack_table_static_delegate == null) + { + efl_pack_table_static_delegate = new efl_pack_table_delegate(pack_table); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackTable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_delegate efl_pack_static_delegate; + if (efl_pack_table_contents_get_static_delegate == null) + { + efl_pack_table_contents_get_static_delegate = new efl_pack_table_contents_get_delegate(table_contents_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + if (methods.FirstOrDefault(m => m.Name == "GetTableContents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_contents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_contents_get_static_delegate) }); + } + if (efl_pack_table_content_get_static_delegate == null) + { + efl_pack_table_content_get_static_delegate = new efl_pack_table_content_get_delegate(table_content_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_position_get"); - private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) - { - Eina.Log.Debug("function efl_pack_table_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).GetTablePosition( subobj, out col, out row, out colspan, out rowspan); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTableContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_content_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); - } - } - private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.LayoutPartTable.efl_canvas_layout_part_table_class_get(); + } - private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((LayoutPartTable)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - public delegate void efl_pack_table_size_get_api_delegate(System.IntPtr obj, out int cols, out int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_size_get"); - private static void table_size_get(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows) - { - Eina.Log.Debug("function efl_pack_table_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - cols = default(int); rows = default(int); - try { - ((LayoutPartTable)wrapper).GetTableSize( out cols, out rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cols, out rows); + } + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_size_get_delegate efl_pack_table_size_get_static_delegate; + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartTable)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_table_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols, int rows); - + return _ret_var; - public delegate void efl_pack_table_size_set_api_delegate(System.IntPtr obj, int cols, int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_size_set"); - private static void table_size_set(System.IntPtr obj, System.IntPtr pd, int cols, int rows) - { - Eina.Log.Debug("function efl_pack_table_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetTableSize( cols, rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols, rows); + } + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_size_set_delegate efl_pack_table_size_set_static_delegate; - - private delegate int efl_pack_table_columns_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_content_count_delegate efl_content_count_static_delegate; + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((LayoutPartTable)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); + } + } + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } - public delegate int efl_pack_table_columns_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_table_columns_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_columns_get"); - private static int table_columns_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_table_columns_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartTable)wrapper).GetTableColumns(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((LayoutPartTable)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); } - return _ret_var; - } else { - return efl_pack_table_columns_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_pack_table_columns_get_delegate efl_pack_table_columns_get_static_delegate; + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } - private delegate void efl_pack_table_columns_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols); + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_pack_table_columns_set_api_delegate(System.IntPtr obj, int cols); - public static Efl.Eo.FunctionWrapper efl_pack_table_columns_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_columns_set"); - private static void table_columns_set(System.IntPtr obj, System.IntPtr pd, int cols) - { - Eina.Log.Debug("function efl_pack_table_columns_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetTableColumns( cols); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_columns_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols); + } + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_columns_set_delegate efl_pack_table_columns_set_static_delegate; + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate int efl_pack_table_rows_get_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - public delegate int efl_pack_table_rows_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_table_rows_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_rows_get"); - private static int table_rows_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_table_rows_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartTable)wrapper).GetTableRows(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_table_rows_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_rows_get_delegate efl_pack_table_rows_get_static_delegate; + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_table_rows_set_delegate(System.IntPtr obj, System.IntPtr pd, int rows); + return _ret_var; + } + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } - public delegate void efl_pack_table_rows_set_api_delegate(System.IntPtr obj, int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_rows_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_rows_set"); - private static void table_rows_set(System.IntPtr obj, System.IntPtr pd, int rows) - { - Eina.Log.Debug("function efl_pack_table_rows_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetTableRows( rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_rows_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rows); + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_table_rows_set_delegate efl_pack_table_rows_set_static_delegate; + private static efl_pack_delegate efl_pack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_position_get"); + + private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) + { + Eina.Log.Debug("function efl_pack_table_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).GetTablePosition(subobj, out col, out row, out colspan, out rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_table_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + return _ret_var; + } + else + { + return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); + } + } - public delegate void efl_pack_table_direction_get_api_delegate(System.IntPtr obj, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); - public static Efl.Eo.FunctionWrapper efl_pack_table_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_direction_get"); - private static void table_direction_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) - { - Eina.Log.Debug("function efl_pack_table_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - primary = default(Efl.Ui.Dir); secondary = default(Efl.Ui.Dir); - try { - ((LayoutPartTable)wrapper).GetTableDirection( out primary, out secondary); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out primary, out secondary); + private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + + + private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); + + + public delegate void efl_pack_table_size_get_api_delegate(System.IntPtr obj, out int cols, out int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_size_get"); + + private static void table_size_get(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows) + { + Eina.Log.Debug("function efl_pack_table_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + cols = default(int); rows = default(int); + try + { + ((LayoutPartTable)wrapper).GetTableSize(out cols, out rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cols, out rows); + } } - } - private static efl_pack_table_direction_get_delegate efl_pack_table_direction_get_static_delegate; + private static efl_pack_table_size_get_delegate efl_pack_table_size_get_static_delegate; + + + private delegate void efl_pack_table_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols, int rows); + + + public delegate void efl_pack_table_size_set_api_delegate(System.IntPtr obj, int cols, int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_size_set"); + + private static void table_size_set(System.IntPtr obj, System.IntPtr pd, int cols, int rows) + { + Eina.Log.Debug("function efl_pack_table_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetTableSize(cols, rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols, rows); + } + } - private delegate void efl_pack_table_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + private static efl_pack_table_size_set_delegate efl_pack_table_size_set_static_delegate; + + + private delegate int efl_pack_table_columns_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_pack_table_columns_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_table_columns_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_columns_get"); + + private static int table_columns_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_table_columns_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartTable)wrapper).GetTableColumns(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_pack_table_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); - public static Efl.Eo.FunctionWrapper efl_pack_table_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_direction_set"); - private static void table_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary) - { - Eina.Log.Debug("function efl_pack_table_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetTableDirection( primary, secondary); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), primary, secondary); + } + else + { + return efl_pack_table_columns_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_direction_set_delegate efl_pack_table_direction_set_static_delegate; + private static efl_pack_table_columns_get_delegate efl_pack_table_columns_get_static_delegate; + + + private delegate void efl_pack_table_columns_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols); + + + public delegate void efl_pack_table_columns_set_api_delegate(System.IntPtr obj, int cols); + + public static Efl.Eo.FunctionWrapper efl_pack_table_columns_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_columns_set"); + + private static void table_columns_set(System.IntPtr obj, System.IntPtr pd, int cols) + { + Eina.Log.Debug("function efl_pack_table_columns_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetTableColumns(cols); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_columns_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_table_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + private static efl_pack_table_columns_set_delegate efl_pack_table_columns_set_static_delegate; + + + private delegate int efl_pack_table_rows_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_pack_table_rows_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_table_rows_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_rows_get"); + + private static int table_rows_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_table_rows_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartTable)wrapper).GetTableRows(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_table_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table"); - private static bool pack_table(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) - { - Eina.Log.Debug("function efl_pack_table was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).PackTable( subobj, col, row, colspan, rowspan); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_table_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, row, colspan, rowspan); + else + { + return efl_pack_table_rows_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_delegate efl_pack_table_static_delegate; + private static efl_pack_table_rows_get_delegate efl_pack_table_rows_get_static_delegate; + + + private delegate void efl_pack_table_rows_set_delegate(System.IntPtr obj, System.IntPtr pd, int rows); + + + public delegate void efl_pack_table_rows_set_api_delegate(System.IntPtr obj, int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_rows_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_rows_set"); + + private static void table_rows_set(System.IntPtr obj, System.IntPtr pd, int rows) + { + Eina.Log.Debug("function efl_pack_table_rows_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetTableRows(rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_rows_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rows); + } + } - private delegate System.IntPtr efl_pack_table_contents_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); - + private static efl_pack_table_rows_set_delegate efl_pack_table_rows_set_static_delegate; + + + private delegate void efl_pack_table_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + + + public delegate void efl_pack_table_direction_get_api_delegate(System.IntPtr obj, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + + public static Efl.Eo.FunctionWrapper efl_pack_table_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_direction_get"); + + private static void table_direction_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) + { + Eina.Log.Debug("function efl_pack_table_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + primary = default(Efl.Ui.Dir); secondary = default(Efl.Ui.Dir); + try + { + ((LayoutPartTable)wrapper).GetTableDirection(out primary, out secondary); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out primary, out secondary); + } + } - public delegate System.IntPtr efl_pack_table_contents_get_api_delegate(System.IntPtr obj, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); - public static Efl.Eo.FunctionWrapper efl_pack_table_contents_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_contents_get"); - private static System.IntPtr table_contents_get(System.IntPtr obj, System.IntPtr pd, int col, int row, bool below) - { - Eina.Log.Debug("function efl_pack_table_contents_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((LayoutPartTable)wrapper).GetTableContents( col, row, below); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_table_direction_get_delegate efl_pack_table_direction_get_static_delegate; + + + private delegate void efl_pack_table_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + + + public delegate void efl_pack_table_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + + public static Efl.Eo.FunctionWrapper efl_pack_table_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_direction_set"); + + private static void table_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary) + { + Eina.Log.Debug("function efl_pack_table_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetTableDirection(primary, secondary); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), primary, secondary); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_pack_table_contents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row, below); } - } - private static efl_pack_table_contents_get_delegate efl_pack_table_contents_get_static_delegate; + private static efl_pack_table_direction_set_delegate efl_pack_table_direction_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table"); + + private static bool pack_table(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) + { + Eina.Log.Debug("function efl_pack_table was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).PackTable(subobj, col, row, colspan, rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_table_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row); + return _ret_var; + } + else + { + return efl_pack_table_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, row, colspan, rowspan); + } + } + + private static efl_pack_table_delegate efl_pack_table_static_delegate; + + + private delegate System.IntPtr efl_pack_table_contents_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); + + + public delegate System.IntPtr efl_pack_table_contents_get_api_delegate(System.IntPtr obj, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); + + public static Efl.Eo.FunctionWrapper efl_pack_table_contents_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_contents_get"); + + private static System.IntPtr table_contents_get(System.IntPtr obj, System.IntPtr pd, int col, int row, bool below) + { + Eina.Log.Debug("function efl_pack_table_contents_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((LayoutPartTable)wrapper).GetTableContents(col, row, below); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_table_content_get_api_delegate(System.IntPtr obj, int col, int row); - public static Efl.Eo.FunctionWrapper efl_pack_table_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_content_get"); - private static Efl.Gfx.IEntity table_content_get(System.IntPtr obj, System.IntPtr pd, int col, int row) - { - Eina.Log.Debug("function efl_pack_table_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartTable)wrapper).GetTableContent( col, row); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_pack_table_contents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row, below); + } + } + + private static efl_pack_table_contents_get_delegate efl_pack_table_contents_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_table_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_table_content_get_api_delegate(System.IntPtr obj, int col, int row); + + public static Efl.Eo.FunctionWrapper efl_pack_table_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_content_get"); + + private static Efl.Gfx.IEntity table_content_get(System.IntPtr obj, System.IntPtr pd, int col, int row) + { + Eina.Log.Debug("function efl_pack_table_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartTable)wrapper).GetTableContent(col, row); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_pack_table_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row); + + } + else + { + return efl_pack_table_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row); + } } - } - private static efl_pack_table_content_get_delegate efl_pack_table_content_get_static_delegate; + + private static efl_pack_table_content_get_delegate efl_pack_table_content_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_text.eo.cs index ba8c838..e930148 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_text.eo.cs @@ -3,76 +3,97 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Represents a TEXT part of a layout /// Its lifetime is limited to one function call only, unless an extra reference is explicitly held. -[LayoutPartTextNativeInherit] +[Efl.Canvas.LayoutPartText.NativeMethods] public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,Efl.ITextCursor,Efl.ITextFont,Efl.ITextFormat,Efl.ITextMarkup,Efl.ITextMarkupInteractive,Efl.ITextStyle { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPartText)) - return Efl.Canvas.LayoutPartTextNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPartText)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr efl_canvas_layout_part_text_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPartText(Efl.Object parent= null - ) : - base(efl_canvas_layout_part_text_class_get(), typeof(LayoutPartText), parent) + ) : base(efl_canvas_layout_part_text_class_get(), typeof(LayoutPartText), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPartText(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPartText(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPartText(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Sizing policy for text parts. /// This will determine whether to consider height or width constraints, if text-specific behaviors occur (such as ellipsis, line-wrapping etc. - /// virtual public Efl.Canvas.LayoutPartTextExpand GetTextExpand() { - var _ret_var = Efl.Canvas.LayoutPartTextNativeInherit.efl_canvas_layout_part_text_expand_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.LayoutPartText.NativeMethods.efl_canvas_layout_part_text_expand_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sizing policy for text parts. /// This will determine whether to consider height or width constraints, if text-specific behaviors occur (such as ellipsis, line-wrapping etc. - /// - /// - virtual public void SetTextExpand( Efl.Canvas.LayoutPartTextExpand type) { - Efl.Canvas.LayoutPartTextNativeInherit.efl_canvas_layout_part_text_expand_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetTextExpand(Efl.Canvas.LayoutPartTextExpand type) { + Efl.Canvas.LayoutPartText.NativeMethods.efl_canvas_layout_part_text_expand_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the text string currently being displayed by the given text object. @@ -82,7 +103,7 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -90,40 +111,38 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// The object's main cursor. /// Cursor type /// Text cursor object - virtual public Efl.TextCursorCursor GetTextCursor( Efl.TextCursorGetType get_type) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), get_type); + virtual public Efl.TextCursorCursor GetTextCursor(Efl.TextCursorGetType get_type) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),get_type); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Cursor position /// Cursor object /// Cursor position - virtual public int GetCursorPosition( Efl.TextCursorCursor cur) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public int GetCursorPosition(Efl.TextCursorCursor cur) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Cursor position /// Cursor object /// Cursor position - /// - virtual public void SetCursorPosition( Efl.TextCursorCursor cur, int position) { - Efl.ITextCursorNativeInherit.efl_text_cursor_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur, position); + virtual public void SetCursorPosition(Efl.TextCursorCursor cur, int position) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur, position); Eina.Error.RaiseIfUnhandledException(); } /// The content of the cursor (the character under the cursor) /// Cursor object /// The unicode codepoint of the character - virtual public Eina.Unicode GetCursorContent( Efl.TextCursorCursor cur) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public Eina.Unicode GetCursorContent(Efl.TextCursorCursor cur) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -140,31 +159,30 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// The width of the lower cursor /// The height of the lower cursor /// true if split cursor, false otherwise. - virtual public bool GetCursorGeometry( Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); + virtual public bool GetCursorGeometry(Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Create new cursor /// Cursor object virtual public Efl.TextCursorCursor NewCursor() { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Free existing cursor /// Cursor object - /// - virtual public void CursorFree( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_free_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorFree(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_free_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Check if two cursors are equal /// Cursor 1 object /// Cursor 2 object /// true if cursors are equal, false otherwise - virtual public bool CursorEqual( Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_equal_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur1, cur2); + virtual public bool CursorEqual(Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_equal_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur1, cur2); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -172,157 +190,138 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Cursor 1 object /// Cursor 2 object /// Difference between cursors - virtual public int CursorCompare( Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_compare_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur1, cur2); + virtual public int CursorCompare(Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_compare_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur1, cur2); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Copy existing cursor /// Destination cursor /// Source cursor - /// - virtual public void CursorCopy( Efl.TextCursorCursor dst, Efl.TextCursorCursor src) { - Efl.ITextCursorNativeInherit.efl_text_cursor_copy_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dst, src); + virtual public void CursorCopy(Efl.TextCursorCursor dst, Efl.TextCursorCursor src) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_copy_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dst, src); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the next character /// Cursor object - /// - virtual public void CursorCharNext( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_char_next_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorCharNext(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_char_next_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the previous character /// Cursor object - /// - virtual public void CursorCharPrev( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_char_prev_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorCharPrev(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_char_prev_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the next grapheme cluster /// Cursor object - /// - virtual public void CursorClusterNext( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_cluster_next_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorClusterNext(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_cluster_next_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the previous grapheme cluster /// Cursor object - /// - virtual public void CursorClusterPrev( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_cluster_prev_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorClusterPrev(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_cluster_prev_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the first character in this paragraph /// Cursor object - /// - virtual public void CursorParagraphCharFirst( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_char_first_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorParagraphCharFirst(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_char_first_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the last character in this paragraph /// Cursor object - /// - virtual public void CursorParagraphCharLast( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_char_last_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorParagraphCharLast(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_char_last_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current word start /// Cursor object - /// - virtual public void CursorWordStart( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_word_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorWordStart(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_word_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current word end /// Cursor object - /// - virtual public void CursorWordEnd( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_word_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorWordEnd(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_word_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current line first character /// Cursor object - /// - virtual public void CursorLineCharFirst( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_line_char_first_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorLineCharFirst(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_line_char_first_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current line last character /// Cursor object - /// - virtual public void CursorLineCharLast( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_line_char_last_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorLineCharLast(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_line_char_last_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current paragraph first character /// Cursor object - /// - virtual public void CursorParagraphFirst( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_first_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorParagraphFirst(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_first_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current paragraph last character /// Cursor object - /// - virtual public void CursorParagraphLast( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_last_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorParagraphLast(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_last_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the start of the next text node /// Cursor object - /// - virtual public void CursorParagraphNext( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_next_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorParagraphNext(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_next_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the end of the previous text node /// Cursor object - /// - virtual public void CursorParagraphPrev( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_prev_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorParagraphPrev(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_prev_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Jump the cursor by the given number of lines /// Cursor object /// Number of lines - /// - virtual public void CursorLineJumpBy( Efl.TextCursorCursor cur, int by) { - Efl.ITextCursorNativeInherit.efl_text_cursor_line_jump_by_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur, by); + virtual public void CursorLineJumpBy(Efl.TextCursorCursor cur, int by) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_line_jump_by_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur, by); Eina.Error.RaiseIfUnhandledException(); } /// Set cursor coordinates /// Cursor object /// X coord to set by. /// Y coord to set by. - /// - virtual public void SetCursorCoord( Efl.TextCursorCursor cur, int x, int y) { - Efl.ITextCursorNativeInherit.efl_text_cursor_coord_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur, x, y); + virtual public void SetCursorCoord(Efl.TextCursorCursor cur, int x, int y) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_coord_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur, x, y); Eina.Error.RaiseIfUnhandledException(); } /// Set cursor coordinates according to grapheme clusters. It does not allow to put a cursor to the middle of a grapheme cluster. /// Cursor object /// X coord to set by. /// Y coord to set by. - /// - virtual public void SetCursorClusterCoord( Efl.TextCursorCursor cur, int x, int y) { - Efl.ITextCursorNativeInherit.efl_text_cursor_cluster_coord_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur, x, y); + virtual public void SetCursorClusterCoord(Efl.TextCursorCursor cur, int x, int y) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_cluster_coord_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur, x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds text to the current cursor position and set the cursor to *after* the start of the text just added. /// Cursor object /// Text to append (UTF-8 format). /// Length of the appended text. - virtual public int CursorTextInsert( Efl.TextCursorCursor cur, System.String text) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_text_insert_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur, text); + virtual public int CursorTextInsert(Efl.TextCursorCursor cur, System.String text) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_text_insert_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur, text); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Deletes a single character from position pointed by given cursor. /// Cursor object - /// - virtual public void CursorCharDelete( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_char_delete_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur); + virtual public void CursorCharDelete(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_char_delete_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur); Eina.Error.RaiseIfUnhandledException(); } /// Retrieve the font family and size in use on a given text object. @@ -331,9 +330,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// See also . /// The font family name or filename. /// The font size, in points. - /// - virtual public void GetFont( out System.String font, out Efl.Font.Size size) { - Efl.ITextFontNativeInherit.efl_text_font_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out font, out size); + virtual public void GetFont(out System.String font, out Efl.Font.Size size) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out font, out size); Eina.Error.RaiseIfUnhandledException(); } /// Set the font family, filename and size for a given text object. @@ -342,16 +340,15 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// See also , . /// The font family name or filename. /// The font size, in points. - /// - virtual public void SetFont( System.String font, Efl.Font.Size size) { - Efl.ITextFontNativeInherit.efl_text_font_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), font, size); + virtual public void SetFont(System.String font, Efl.Font.Size size) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),font, size); Eina.Error.RaiseIfUnhandledException(); } /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. virtual public System.String GetFontSource() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -360,287 +357,268 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// /// See also . /// The font file's path. - /// - virtual public void SetFontSource( System.String font_source) { - Efl.ITextFontNativeInherit.efl_text_font_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), font_source); + virtual public void SetFontSource(System.String font_source) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),font_source); Eina.Error.RaiseIfUnhandledException(); } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks virtual public System.String GetFontFallbacks() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_fallbacks_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks - /// - virtual public void SetFontFallbacks( System.String font_fallbacks) { - Efl.ITextFontNativeInherit.efl_text_font_fallbacks_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), font_fallbacks); + virtual public void SetFontFallbacks(System.String font_fallbacks) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),font_fallbacks); Eina.Error.RaiseIfUnhandledException(); } /// Type of weight of the displayed font /// Default is . /// Font weight virtual public Efl.TextFontWeight GetFontWeight() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_weight_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of weight of the displayed font /// Default is . /// Font weight - /// - virtual public void SetFontWeight( Efl.TextFontWeight font_weight) { - Efl.ITextFontNativeInherit.efl_text_font_weight_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), font_weight); + virtual public void SetFontWeight(Efl.TextFontWeight font_weight) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),font_weight); Eina.Error.RaiseIfUnhandledException(); } /// Type of slant of the displayed font /// Default is . /// Font slant virtual public Efl.TextFontSlant GetFontSlant() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_slant_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of slant of the displayed font /// Default is . /// Font slant - /// - virtual public void SetFontSlant( Efl.TextFontSlant style) { - Efl.ITextFontNativeInherit.efl_text_font_slant_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), style); + virtual public void SetFontSlant(Efl.TextFontSlant style) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),style); Eina.Error.RaiseIfUnhandledException(); } /// Type of width of the displayed font /// Default is . /// Font width virtual public Efl.TextFontWidth GetFontWidth() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_width_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of width of the displayed font /// Default is . /// Font width - /// - virtual public void SetFontWidth( Efl.TextFontWidth width) { - Efl.ITextFontNativeInherit.efl_text_font_width_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), width); + virtual public void SetFontWidth(Efl.TextFontWidth width) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),width); Eina.Error.RaiseIfUnhandledException(); } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language virtual public System.String GetFontLang() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_lang_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language - /// - virtual public void SetFontLang( System.String lang) { - Efl.ITextFontNativeInherit.efl_text_font_lang_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), lang); + virtual public void SetFontLang(System.String lang) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),lang); Eina.Error.RaiseIfUnhandledException(); } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable virtual public Efl.TextFontBitmapScalable GetFontBitmapScalable() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_bitmap_scalable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable - /// - virtual public void SetFontBitmapScalable( Efl.TextFontBitmapScalable scalable) { - Efl.ITextFontNativeInherit.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scalable); + virtual public void SetFontBitmapScalable(Efl.TextFontBitmapScalable scalable) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scalable); Eina.Error.RaiseIfUnhandledException(); } /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value virtual public double GetEllipsis() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_ellipsis_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_ellipsis_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value - /// - virtual public void SetEllipsis( double value) { - Efl.ITextFormatNativeInherit.efl_text_ellipsis_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetEllipsis(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_ellipsis_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Wrap mode for use in the text /// Wrap mode virtual public Efl.TextFormatWrap GetWrap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_wrap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_wrap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Wrap mode for use in the text /// Wrap mode - /// - virtual public void SetWrap( Efl.TextFormatWrap wrap) { - Efl.ITextFormatNativeInherit.efl_text_wrap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), wrap); + virtual public void SetWrap(Efl.TextFormatWrap wrap) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_wrap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),wrap); Eina.Error.RaiseIfUnhandledException(); } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise virtual public bool GetMultiline() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_multiline_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_multiline_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise - /// - virtual public void SetMultiline( bool enabled) { - Efl.ITextFormatNativeInherit.efl_text_multiline_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enabled); + virtual public void SetMultiline(bool enabled) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_multiline_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enabled); Eina.Error.RaiseIfUnhandledException(); } /// Horizontal alignment of text /// Alignment type virtual public Efl.TextFormatHorizontalAlignmentAutoType GetHalignAutoType() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_halign_auto_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_auto_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Horizontal alignment of text /// Alignment type - /// - virtual public void SetHalignAutoType( Efl.TextFormatHorizontalAlignmentAutoType value) { - Efl.ITextFormatNativeInherit.efl_text_halign_auto_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetHalignAutoType(Efl.TextFormatHorizontalAlignmentAutoType value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_auto_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Horizontal alignment of text /// Horizontal alignment value virtual public double GetHalign() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_halign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Horizontal alignment of text /// Horizontal alignment value - /// - virtual public void SetHalign( double value) { - Efl.ITextFormatNativeInherit.efl_text_halign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetHalign(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Vertical alignment of text /// Vertical alignment value virtual public double GetValign() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_valign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_valign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Vertical alignment of text /// Vertical alignment value - /// - virtual public void SetValign( double value) { - Efl.ITextFormatNativeInherit.efl_text_valign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetValign(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_valign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value virtual public double GetLinegap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_linegap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_linegap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value - /// - virtual public void SetLinegap( double value) { - Efl.ITextFormatNativeInherit.efl_text_linegap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetLinegap(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_linegap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value virtual public double GetLinerelgap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_linerelgap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_linerelgap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value - /// - virtual public void SetLinerelgap( double value) { - Efl.ITextFormatNativeInherit.efl_text_linerelgap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetLinerelgap(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_linerelgap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Tabstops value /// Tapstops value virtual public int GetTabstops() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_tabstops_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_tabstops_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Tabstops value /// Tapstops value - /// - virtual public void SetTabstops( int value) { - Efl.ITextFormatNativeInherit.efl_text_tabstops_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetTabstops(int value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_tabstops_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Whether text is a password /// true if the text is a password, false otherwise virtual public bool GetPassword() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_password_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_password_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether text is a password /// true if the text is a password, false otherwise - /// - virtual public void SetPassword( bool enabled) { - Efl.ITextFormatNativeInherit.efl_text_password_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enabled); + virtual public void SetPassword(bool enabled) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_password_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enabled); Eina.Error.RaiseIfUnhandledException(); } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character virtual public System.String GetReplacementChar() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_replacement_char_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_replacement_char_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character - /// - virtual public void SetReplacementChar( System.String repch) { - Efl.ITextFormatNativeInherit.efl_text_replacement_char_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), repch); + virtual public void SetReplacementChar(System.String repch) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_replacement_char_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),repch); Eina.Error.RaiseIfUnhandledException(); } /// Markup property /// The markup-text representation set to this text. virtual public System.String GetMarkup() { - var _ret_var = Efl.ITextMarkupNativeInherit.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Markup property /// The markup-text representation set to this text. - /// - virtual public void SetMarkup( System.String markup) { - Efl.ITextMarkupNativeInherit.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), markup); + virtual public void SetMarkup(System.String markup) { + Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),markup); Eina.Error.RaiseIfUnhandledException(); } /// Markup of a given range in the text /// Start of the markup region /// End of markup region /// The markup-text representation set to this text of a given range - virtual public System.String GetMarkupRange( Efl.TextCursorCursor start, Efl.TextCursorCursor end) { - var _ret_var = Efl.ITextMarkupInteractiveNativeInherit.efl_text_markup_interactive_markup_range_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), start, end); + virtual public System.String GetMarkupRange(Efl.TextCursorCursor start, Efl.TextCursorCursor end) { + var _ret_var = Efl.ITextMarkupInteractiveConcrete.NativeMethods.efl_text_markup_interactive_markup_range_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),start, end); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -648,17 +626,15 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Start of the markup region /// End of markup region /// The markup-text representation set to this text of a given range - /// - virtual public void SetMarkupRange( Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String markup) { - Efl.ITextMarkupInteractiveNativeInherit.efl_text_markup_interactive_markup_range_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), start, end, markup); + virtual public void SetMarkupRange(Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String markup) { + Efl.ITextMarkupInteractiveConcrete.NativeMethods.efl_text_markup_interactive_markup_range_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),start, end, markup); Eina.Error.RaiseIfUnhandledException(); } /// Inserts a markup text to the text object in a given cursor position /// Cursor position to insert markup /// The markup text to insert - /// - virtual public void CursorMarkupInsert( Efl.TextCursorCursor cur, System.String markup) { - Efl.ITextMarkupInteractiveNativeInherit.efl_text_markup_interactive_cursor_markup_insert_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur, markup); + virtual public void CursorMarkupInsert(Efl.TextCursorCursor cur, System.String markup) { + Efl.ITextMarkupInteractiveConcrete.NativeMethods.efl_text_markup_interactive_cursor_markup_insert_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur, markup); Eina.Error.RaiseIfUnhandledException(); } /// Color of text, excluding style @@ -666,9 +642,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void GetNormalColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_normal_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetNormalColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_normal_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of text, excluding style @@ -676,23 +651,21 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void SetNormalColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_normal_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetNormalColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_normal_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Enable or disable backing type /// Backing type virtual public Efl.TextStyleBackingType GetBackingType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_backing_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable or disable backing type /// Backing type - /// - virtual public void SetBackingType( Efl.TextStyleBackingType type) { - Efl.ITextStyleNativeInherit.efl_text_backing_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetBackingType(Efl.TextStyleBackingType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Backing color @@ -700,9 +673,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void GetBackingColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_backing_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetBackingColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Backing color @@ -710,23 +682,21 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void SetBackingColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_backing_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetBackingColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Sets an underline style on the text /// Underline type virtual public Efl.TextStyleUnderlineType GetUnderlineType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets an underline style on the text /// Underline type - /// - virtual public void SetUnderlineType( Efl.TextStyleUnderlineType type) { - Efl.ITextStyleNativeInherit.efl_text_underline_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetUnderlineType(Efl.TextStyleUnderlineType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Color of normal underline style @@ -734,9 +704,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void GetUnderlineColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetUnderlineColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of normal underline style @@ -744,23 +713,21 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void SetUnderlineColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetUnderlineColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Height of underline style /// Height virtual public double GetUnderlineHeight() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_height_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_height_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Height of underline style /// Height - /// - virtual public void SetUnderlineHeight( double height) { - Efl.ITextStyleNativeInherit.efl_text_underline_height_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), height); + virtual public void SetUnderlineHeight(double height) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_height_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),height); Eina.Error.RaiseIfUnhandledException(); } /// Color of dashed underline style @@ -768,9 +735,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void GetUnderlineDashedColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetUnderlineDashedColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of dashed underline style @@ -778,37 +744,34 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void SetUnderlineDashedColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetUnderlineDashedColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Width of dashed underline style /// Width virtual public int GetUnderlineDashedWidth() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_dashed_width_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_width_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Width of dashed underline style /// Width - /// - virtual public void SetUnderlineDashedWidth( int width) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_width_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), width); + virtual public void SetUnderlineDashedWidth(int width) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_width_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),width); Eina.Error.RaiseIfUnhandledException(); } /// Gap of dashed underline style /// Gap virtual public int GetUnderlineDashedGap() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_dashed_gap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_gap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gap of dashed underline style /// Gap - /// - virtual public void SetUnderlineDashedGap( int gap) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_gap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), gap); + virtual public void SetUnderlineDashedGap(int gap) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_gap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),gap); Eina.Error.RaiseIfUnhandledException(); } /// Color of underline2 style @@ -816,9 +779,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void GetUnderline2Color( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline2_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetUnderline2Color(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline2_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of underline2 style @@ -826,23 +788,21 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void SetUnderline2Color( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline2_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetUnderline2Color(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline2_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Type of strikethrough style /// Strikethrough type virtual public Efl.TextStyleStrikethroughType GetStrikethroughType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_strikethrough_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of strikethrough style /// Strikethrough type - /// - virtual public void SetStrikethroughType( Efl.TextStyleStrikethroughType type) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetStrikethroughType(Efl.TextStyleStrikethroughType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Color of strikethrough_style @@ -850,9 +810,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void GetStrikethroughColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetStrikethroughColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of strikethrough_style @@ -860,23 +819,21 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void SetStrikethroughColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetStrikethroughColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Type of effect used for the displayed text /// Effect type virtual public Efl.TextStyleEffectType GetEffectType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_effect_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_effect_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of effect used for the displayed text /// Effect type - /// - virtual public void SetEffectType( Efl.TextStyleEffectType type) { - Efl.ITextStyleNativeInherit.efl_text_effect_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetEffectType(Efl.TextStyleEffectType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_effect_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Color of outline effect @@ -884,9 +841,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void GetOutlineColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_outline_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetOutlineColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_outline_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of outline effect @@ -894,23 +850,21 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void SetOutlineColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_outline_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetOutlineColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_outline_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Direction of shadow effect /// Shadow direction virtual public Efl.TextStyleShadowDirection GetShadowDirection() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_shadow_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Direction of shadow effect /// Shadow direction - /// - virtual public void SetShadowDirection( Efl.TextStyleShadowDirection type) { - Efl.ITextStyleNativeInherit.efl_text_shadow_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetShadowDirection(Efl.TextStyleShadowDirection type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Color of shadow effect @@ -918,9 +872,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void GetShadowColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_shadow_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetShadowColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of shadow effect @@ -928,9 +881,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void SetShadowColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_shadow_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetShadowColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Color of glow effect @@ -938,9 +890,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void GetGlowColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetGlowColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of glow effect @@ -948,9 +899,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void SetGlowColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetGlowColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Second color of the glow effect @@ -958,9 +908,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void GetGlow2Color( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow2_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetGlow2Color(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow2_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Second color of the glow effect @@ -968,3483 +917,5433 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.Eo.IWrapper,Efl.IText,E /// Green component /// Blue component /// Alpha component - /// - virtual public void SetGlow2Color( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow2_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetGlow2Color(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow2_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Program that applies a special filter /// See . /// Filter code virtual public System.String GetGfxFilter() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_gfx_filter_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_gfx_filter_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Program that applies a special filter /// See . /// Filter code - /// - virtual public void SetGfxFilter( System.String code) { - Efl.ITextStyleNativeInherit.efl_text_gfx_filter_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), code); + virtual public void SetGfxFilter(System.String code) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_gfx_filter_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),code); Eina.Error.RaiseIfUnhandledException(); } /// Sizing policy for text parts. /// This will determine whether to consider height or width constraints, if text-specific behaviors occur (such as ellipsis, line-wrapping etc. -/// public Efl.Canvas.LayoutPartTextExpand TextExpand { get { return GetTextExpand(); } - set { SetTextExpand( value); } + set { SetTextExpand(value); } } /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. public System.String FontSource { get { return GetFontSource(); } - set { SetFontSource( value); } + set { SetFontSource(value); } } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks public System.String FontFallbacks { get { return GetFontFallbacks(); } - set { SetFontFallbacks( value); } + set { SetFontFallbacks(value); } } /// Type of weight of the displayed font /// Default is . /// Font weight public Efl.TextFontWeight FontWeight { get { return GetFontWeight(); } - set { SetFontWeight( value); } + set { SetFontWeight(value); } } /// Type of slant of the displayed font /// Default is . /// Font slant public Efl.TextFontSlant FontSlant { get { return GetFontSlant(); } - set { SetFontSlant( value); } + set { SetFontSlant(value); } } /// Type of width of the displayed font /// Default is . /// Font width public Efl.TextFontWidth FontWidth { get { return GetFontWidth(); } - set { SetFontWidth( value); } + set { SetFontWidth(value); } } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language public System.String FontLang { get { return GetFontLang(); } - set { SetFontLang( value); } + set { SetFontLang(value); } } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable public Efl.TextFontBitmapScalable FontBitmapScalable { get { return GetFontBitmapScalable(); } - set { SetFontBitmapScalable( value); } + set { SetFontBitmapScalable(value); } } /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value public double Ellipsis { get { return GetEllipsis(); } - set { SetEllipsis( value); } + set { SetEllipsis(value); } } /// Wrap mode for use in the text /// Wrap mode public Efl.TextFormatWrap Wrap { get { return GetWrap(); } - set { SetWrap( value); } + set { SetWrap(value); } } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise public bool Multiline { get { return GetMultiline(); } - set { SetMultiline( value); } + set { SetMultiline(value); } } /// Horizontal alignment of text /// Alignment type public Efl.TextFormatHorizontalAlignmentAutoType HalignAutoType { get { return GetHalignAutoType(); } - set { SetHalignAutoType( value); } + set { SetHalignAutoType(value); } } /// Horizontal alignment of text /// Horizontal alignment value public double Halign { get { return GetHalign(); } - set { SetHalign( value); } + set { SetHalign(value); } } /// Vertical alignment of text /// Vertical alignment value public double Valign { get { return GetValign(); } - set { SetValign( value); } + set { SetValign(value); } } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value public double Linegap { get { return GetLinegap(); } - set { SetLinegap( value); } + set { SetLinegap(value); } } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value public double Linerelgap { get { return GetLinerelgap(); } - set { SetLinerelgap( value); } + set { SetLinerelgap(value); } } /// Tabstops value /// Tapstops value public int Tabstops { get { return GetTabstops(); } - set { SetTabstops( value); } + set { SetTabstops(value); } } /// Whether text is a password /// true if the text is a password, false otherwise public bool Password { get { return GetPassword(); } - set { SetPassword( value); } + set { SetPassword(value); } } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character public System.String ReplacementChar { get { return GetReplacementChar(); } - set { SetReplacementChar( value); } + set { SetReplacementChar(value); } } /// Markup property /// The markup-text representation set to this text. public System.String Markup { get { return GetMarkup(); } - set { SetMarkup( value); } + set { SetMarkup(value); } } /// Enable or disable backing type /// Backing type public Efl.TextStyleBackingType BackingType { get { return GetBackingType(); } - set { SetBackingType( value); } + set { SetBackingType(value); } } /// Sets an underline style on the text /// Underline type public Efl.TextStyleUnderlineType UnderlineType { get { return GetUnderlineType(); } - set { SetUnderlineType( value); } + set { SetUnderlineType(value); } } /// Height of underline style /// Height public double UnderlineHeight { get { return GetUnderlineHeight(); } - set { SetUnderlineHeight( value); } + set { SetUnderlineHeight(value); } } /// Width of dashed underline style /// Width public int UnderlineDashedWidth { get { return GetUnderlineDashedWidth(); } - set { SetUnderlineDashedWidth( value); } + set { SetUnderlineDashedWidth(value); } } /// Gap of dashed underline style /// Gap public int UnderlineDashedGap { get { return GetUnderlineDashedGap(); } - set { SetUnderlineDashedGap( value); } + set { SetUnderlineDashedGap(value); } } /// Type of strikethrough style /// Strikethrough type public Efl.TextStyleStrikethroughType StrikethroughType { get { return GetStrikethroughType(); } - set { SetStrikethroughType( value); } + set { SetStrikethroughType(value); } } /// Type of effect used for the displayed text /// Effect type public Efl.TextStyleEffectType EffectType { get { return GetEffectType(); } - set { SetEffectType( value); } + set { SetEffectType(value); } } /// Direction of shadow effect /// Shadow direction public Efl.TextStyleShadowDirection ShadowDirection { get { return GetShadowDirection(); } - set { SetShadowDirection( value); } + set { SetShadowDirection(value); } } /// Program that applies a special filter /// See . /// Filter code public System.String GfxFilter { get { return GetGfxFilter(); } - set { SetGfxFilter( value); } + set { SetGfxFilter(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.LayoutPartText.efl_canvas_layout_part_text_class_get(); } -} -public class LayoutPartTextNativeInherit : Efl.Canvas.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Edje); - 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_canvas_layout_part_text_expand_get_static_delegate == null) - efl_canvas_layout_part_text_expand_get_static_delegate = new efl_canvas_layout_part_text_expand_get_delegate(text_expand_get); - if (methods.FirstOrDefault(m => m.Name == "GetTextExpand") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_expand_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_expand_get_static_delegate)}); - if (efl_canvas_layout_part_text_expand_set_static_delegate == null) - efl_canvas_layout_part_text_expand_set_static_delegate = new efl_canvas_layout_part_text_expand_set_delegate(text_expand_set); - if (methods.FirstOrDefault(m => m.Name == "SetTextExpand") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_layout_part_text_expand_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_expand_set_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_text_cursor_get_static_delegate == null) - efl_text_cursor_get_static_delegate = new efl_text_cursor_get_delegate(text_cursor_get); - if (methods.FirstOrDefault(m => m.Name == "GetTextCursor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_get_static_delegate)}); - if (efl_text_cursor_position_get_static_delegate == null) - efl_text_cursor_position_get_static_delegate = new efl_text_cursor_position_get_delegate(cursor_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_get_static_delegate)}); - if (efl_text_cursor_position_set_static_delegate == null) - efl_text_cursor_position_set_static_delegate = new efl_text_cursor_position_set_delegate(cursor_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursorPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_set_static_delegate)}); - if (efl_text_cursor_content_get_static_delegate == null) - efl_text_cursor_content_get_static_delegate = new efl_text_cursor_content_get_delegate(cursor_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_content_get_static_delegate)}); - if (efl_text_cursor_geometry_get_static_delegate == null) - efl_text_cursor_geometry_get_static_delegate = new efl_text_cursor_geometry_get_delegate(cursor_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_geometry_get_static_delegate)}); - if (efl_text_cursor_new_static_delegate == null) - efl_text_cursor_new_static_delegate = new efl_text_cursor_new_delegate(cursor_new); - if (methods.FirstOrDefault(m => m.Name == "NewCursor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_new"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_new_static_delegate)}); - if (efl_text_cursor_free_static_delegate == null) - efl_text_cursor_free_static_delegate = new efl_text_cursor_free_delegate(cursor_free); - if (methods.FirstOrDefault(m => m.Name == "CursorFree") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_free"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_free_static_delegate)}); - if (efl_text_cursor_equal_static_delegate == null) - efl_text_cursor_equal_static_delegate = new efl_text_cursor_equal_delegate(cursor_equal); - if (methods.FirstOrDefault(m => m.Name == "CursorEqual") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_equal"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_equal_static_delegate)}); - if (efl_text_cursor_compare_static_delegate == null) - efl_text_cursor_compare_static_delegate = new efl_text_cursor_compare_delegate(cursor_compare); - if (methods.FirstOrDefault(m => m.Name == "CursorCompare") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_compare"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_compare_static_delegate)}); - if (efl_text_cursor_copy_static_delegate == null) - efl_text_cursor_copy_static_delegate = new efl_text_cursor_copy_delegate(cursor_copy); - if (methods.FirstOrDefault(m => m.Name == "CursorCopy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_copy_static_delegate)}); - if (efl_text_cursor_char_next_static_delegate == null) - efl_text_cursor_char_next_static_delegate = new efl_text_cursor_char_next_delegate(cursor_char_next); - if (methods.FirstOrDefault(m => m.Name == "CursorCharNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_char_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_next_static_delegate)}); - if (efl_text_cursor_char_prev_static_delegate == null) - efl_text_cursor_char_prev_static_delegate = new efl_text_cursor_char_prev_delegate(cursor_char_prev); - if (methods.FirstOrDefault(m => m.Name == "CursorCharPrev") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_char_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_prev_static_delegate)}); - if (efl_text_cursor_cluster_next_static_delegate == null) - efl_text_cursor_cluster_next_static_delegate = new efl_text_cursor_cluster_next_delegate(cursor_cluster_next); - if (methods.FirstOrDefault(m => m.Name == "CursorClusterNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_cluster_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_next_static_delegate)}); - if (efl_text_cursor_cluster_prev_static_delegate == null) - efl_text_cursor_cluster_prev_static_delegate = new efl_text_cursor_cluster_prev_delegate(cursor_cluster_prev); - if (methods.FirstOrDefault(m => m.Name == "CursorClusterPrev") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_cluster_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_prev_static_delegate)}); - if (efl_text_cursor_paragraph_char_first_static_delegate == null) - efl_text_cursor_paragraph_char_first_static_delegate = new efl_text_cursor_paragraph_char_first_delegate(cursor_paragraph_char_first); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharFirst") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_first_static_delegate)}); - if (efl_text_cursor_paragraph_char_last_static_delegate == null) - efl_text_cursor_paragraph_char_last_static_delegate = new efl_text_cursor_paragraph_char_last_delegate(cursor_paragraph_char_last); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharLast") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_last_static_delegate)}); - if (efl_text_cursor_word_start_static_delegate == null) - efl_text_cursor_word_start_static_delegate = new efl_text_cursor_word_start_delegate(cursor_word_start); - if (methods.FirstOrDefault(m => m.Name == "CursorWordStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_word_start"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_start_static_delegate)}); - if (efl_text_cursor_word_end_static_delegate == null) - efl_text_cursor_word_end_static_delegate = new efl_text_cursor_word_end_delegate(cursor_word_end); - if (methods.FirstOrDefault(m => m.Name == "CursorWordEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_word_end"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_end_static_delegate)}); - if (efl_text_cursor_line_char_first_static_delegate == null) - efl_text_cursor_line_char_first_static_delegate = new efl_text_cursor_line_char_first_delegate(cursor_line_char_first); - if (methods.FirstOrDefault(m => m.Name == "CursorLineCharFirst") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_line_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_first_static_delegate)}); - if (efl_text_cursor_line_char_last_static_delegate == null) - efl_text_cursor_line_char_last_static_delegate = new efl_text_cursor_line_char_last_delegate(cursor_line_char_last); - if (methods.FirstOrDefault(m => m.Name == "CursorLineCharLast") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_line_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_last_static_delegate)}); - if (efl_text_cursor_paragraph_first_static_delegate == null) - efl_text_cursor_paragraph_first_static_delegate = new efl_text_cursor_paragraph_first_delegate(cursor_paragraph_first); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphFirst") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_first_static_delegate)}); - if (efl_text_cursor_paragraph_last_static_delegate == null) - efl_text_cursor_paragraph_last_static_delegate = new efl_text_cursor_paragraph_last_delegate(cursor_paragraph_last); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphLast") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_last_static_delegate)}); - if (efl_text_cursor_paragraph_next_static_delegate == null) - efl_text_cursor_paragraph_next_static_delegate = new efl_text_cursor_paragraph_next_delegate(cursor_paragraph_next); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_next_static_delegate)}); - if (efl_text_cursor_paragraph_prev_static_delegate == null) - efl_text_cursor_paragraph_prev_static_delegate = new efl_text_cursor_paragraph_prev_delegate(cursor_paragraph_prev); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphPrev") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_prev_static_delegate)}); - if (efl_text_cursor_line_jump_by_static_delegate == null) - efl_text_cursor_line_jump_by_static_delegate = new efl_text_cursor_line_jump_by_delegate(cursor_line_jump_by); - if (methods.FirstOrDefault(m => m.Name == "CursorLineJumpBy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_line_jump_by"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_jump_by_static_delegate)}); - if (efl_text_cursor_coord_set_static_delegate == null) - efl_text_cursor_coord_set_static_delegate = new efl_text_cursor_coord_set_delegate(cursor_coord_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursorCoord") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_coord_set_static_delegate)}); - if (efl_text_cursor_cluster_coord_set_static_delegate == null) - efl_text_cursor_cluster_coord_set_static_delegate = new efl_text_cursor_cluster_coord_set_delegate(cursor_cluster_coord_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursorClusterCoord") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_cluster_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_coord_set_static_delegate)}); - if (efl_text_cursor_text_insert_static_delegate == null) - efl_text_cursor_text_insert_static_delegate = new efl_text_cursor_text_insert_delegate(cursor_text_insert); - if (methods.FirstOrDefault(m => m.Name == "CursorTextInsert") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_text_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_text_insert_static_delegate)}); - if (efl_text_cursor_char_delete_static_delegate == null) - efl_text_cursor_char_delete_static_delegate = new efl_text_cursor_char_delete_delegate(cursor_char_delete); - if (methods.FirstOrDefault(m => m.Name == "CursorCharDelete") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_char_delete"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_delete_static_delegate)}); - if (efl_text_font_get_static_delegate == null) - efl_text_font_get_static_delegate = new efl_text_font_get_delegate(font_get); - if (methods.FirstOrDefault(m => m.Name == "GetFont") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_get_static_delegate)}); - if (efl_text_font_set_static_delegate == null) - efl_text_font_set_static_delegate = new efl_text_font_set_delegate(font_set); - if (methods.FirstOrDefault(m => m.Name == "SetFont") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_set_static_delegate)}); - if (efl_text_font_source_get_static_delegate == null) - efl_text_font_source_get_static_delegate = new efl_text_font_source_get_delegate(font_source_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_get_static_delegate)}); - if (efl_text_font_source_set_static_delegate == null) - efl_text_font_source_set_static_delegate = new efl_text_font_source_set_delegate(font_source_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_set_static_delegate)}); - if (efl_text_font_fallbacks_get_static_delegate == null) - efl_text_font_fallbacks_get_static_delegate = new efl_text_font_fallbacks_get_delegate(font_fallbacks_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontFallbacks") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_fallbacks_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_get_static_delegate)}); - if (efl_text_font_fallbacks_set_static_delegate == null) - efl_text_font_fallbacks_set_static_delegate = new efl_text_font_fallbacks_set_delegate(font_fallbacks_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontFallbacks") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_fallbacks_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_set_static_delegate)}); - if (efl_text_font_weight_get_static_delegate == null) - efl_text_font_weight_get_static_delegate = new efl_text_font_weight_get_delegate(font_weight_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_get_static_delegate)}); - if (efl_text_font_weight_set_static_delegate == null) - efl_text_font_weight_set_static_delegate = new efl_text_font_weight_set_delegate(font_weight_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_set_static_delegate)}); - if (efl_text_font_slant_get_static_delegate == null) - efl_text_font_slant_get_static_delegate = new efl_text_font_slant_get_delegate(font_slant_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontSlant") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_slant_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_get_static_delegate)}); - if (efl_text_font_slant_set_static_delegate == null) - efl_text_font_slant_set_static_delegate = new efl_text_font_slant_set_delegate(font_slant_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontSlant") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_slant_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_set_static_delegate)}); - if (efl_text_font_width_get_static_delegate == null) - efl_text_font_width_get_static_delegate = new efl_text_font_width_get_delegate(font_width_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_get_static_delegate)}); - if (efl_text_font_width_set_static_delegate == null) - efl_text_font_width_set_static_delegate = new efl_text_font_width_set_delegate(font_width_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_set_static_delegate)}); - if (efl_text_font_lang_get_static_delegate == null) - efl_text_font_lang_get_static_delegate = new efl_text_font_lang_get_delegate(font_lang_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontLang") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_lang_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_get_static_delegate)}); - if (efl_text_font_lang_set_static_delegate == null) - efl_text_font_lang_set_static_delegate = new efl_text_font_lang_set_delegate(font_lang_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontLang") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_lang_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_set_static_delegate)}); - if (efl_text_font_bitmap_scalable_get_static_delegate == null) - efl_text_font_bitmap_scalable_get_static_delegate = new efl_text_font_bitmap_scalable_get_delegate(font_bitmap_scalable_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontBitmapScalable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_bitmap_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_get_static_delegate)}); - if (efl_text_font_bitmap_scalable_set_static_delegate == null) - efl_text_font_bitmap_scalable_set_static_delegate = new efl_text_font_bitmap_scalable_set_delegate(font_bitmap_scalable_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontBitmapScalable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_bitmap_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_set_static_delegate)}); - if (efl_text_ellipsis_get_static_delegate == null) - efl_text_ellipsis_get_static_delegate = new efl_text_ellipsis_get_delegate(ellipsis_get); - if (methods.FirstOrDefault(m => m.Name == "GetEllipsis") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_ellipsis_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_get_static_delegate)}); - if (efl_text_ellipsis_set_static_delegate == null) - efl_text_ellipsis_set_static_delegate = new efl_text_ellipsis_set_delegate(ellipsis_set); - if (methods.FirstOrDefault(m => m.Name == "SetEllipsis") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_ellipsis_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_set_static_delegate)}); - if (efl_text_wrap_get_static_delegate == null) - efl_text_wrap_get_static_delegate = new efl_text_wrap_get_delegate(wrap_get); - if (methods.FirstOrDefault(m => m.Name == "GetWrap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_wrap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_get_static_delegate)}); - if (efl_text_wrap_set_static_delegate == null) - efl_text_wrap_set_static_delegate = new efl_text_wrap_set_delegate(wrap_set); - if (methods.FirstOrDefault(m => m.Name == "SetWrap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_wrap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_set_static_delegate)}); - if (efl_text_multiline_get_static_delegate == null) - efl_text_multiline_get_static_delegate = new efl_text_multiline_get_delegate(multiline_get); - if (methods.FirstOrDefault(m => m.Name == "GetMultiline") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_multiline_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_get_static_delegate)}); - if (efl_text_multiline_set_static_delegate == null) - efl_text_multiline_set_static_delegate = new efl_text_multiline_set_delegate(multiline_set); - if (methods.FirstOrDefault(m => m.Name == "SetMultiline") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_multiline_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_set_static_delegate)}); - if (efl_text_halign_auto_type_get_static_delegate == null) - efl_text_halign_auto_type_get_static_delegate = new efl_text_halign_auto_type_get_delegate(halign_auto_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetHalignAutoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_auto_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_get_static_delegate)}); - if (efl_text_halign_auto_type_set_static_delegate == null) - efl_text_halign_auto_type_set_static_delegate = new efl_text_halign_auto_type_set_delegate(halign_auto_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetHalignAutoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_auto_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_set_static_delegate)}); - if (efl_text_halign_get_static_delegate == null) - efl_text_halign_get_static_delegate = new efl_text_halign_get_delegate(halign_get); - if (methods.FirstOrDefault(m => m.Name == "GetHalign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_get_static_delegate)}); - if (efl_text_halign_set_static_delegate == null) - efl_text_halign_set_static_delegate = new efl_text_halign_set_delegate(halign_set); - if (methods.FirstOrDefault(m => m.Name == "SetHalign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_set_static_delegate)}); - if (efl_text_valign_get_static_delegate == null) - efl_text_valign_get_static_delegate = new efl_text_valign_get_delegate(valign_get); - if (methods.FirstOrDefault(m => m.Name == "GetValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_get_static_delegate)}); - if (efl_text_valign_set_static_delegate == null) - efl_text_valign_set_static_delegate = new efl_text_valign_set_delegate(valign_set); - if (methods.FirstOrDefault(m => m.Name == "SetValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_set_static_delegate)}); - if (efl_text_linegap_get_static_delegate == null) - efl_text_linegap_get_static_delegate = new efl_text_linegap_get_delegate(linegap_get); - if (methods.FirstOrDefault(m => m.Name == "GetLinegap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linegap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_get_static_delegate)}); - if (efl_text_linegap_set_static_delegate == null) - efl_text_linegap_set_static_delegate = new efl_text_linegap_set_delegate(linegap_set); - if (methods.FirstOrDefault(m => m.Name == "SetLinegap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linegap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_set_static_delegate)}); - if (efl_text_linerelgap_get_static_delegate == null) - efl_text_linerelgap_get_static_delegate = new efl_text_linerelgap_get_delegate(linerelgap_get); - if (methods.FirstOrDefault(m => m.Name == "GetLinerelgap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linerelgap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_get_static_delegate)}); - if (efl_text_linerelgap_set_static_delegate == null) - efl_text_linerelgap_set_static_delegate = new efl_text_linerelgap_set_delegate(linerelgap_set); - if (methods.FirstOrDefault(m => m.Name == "SetLinerelgap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linerelgap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_set_static_delegate)}); - if (efl_text_tabstops_get_static_delegate == null) - efl_text_tabstops_get_static_delegate = new efl_text_tabstops_get_delegate(tabstops_get); - if (methods.FirstOrDefault(m => m.Name == "GetTabstops") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_tabstops_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_get_static_delegate)}); - if (efl_text_tabstops_set_static_delegate == null) - efl_text_tabstops_set_static_delegate = new efl_text_tabstops_set_delegate(tabstops_set); - if (methods.FirstOrDefault(m => m.Name == "SetTabstops") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_tabstops_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_set_static_delegate)}); - if (efl_text_password_get_static_delegate == null) - efl_text_password_get_static_delegate = new efl_text_password_get_delegate(password_get); - if (methods.FirstOrDefault(m => m.Name == "GetPassword") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_password_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_get_static_delegate)}); - if (efl_text_password_set_static_delegate == null) - efl_text_password_set_static_delegate = new efl_text_password_set_delegate(password_set); - if (methods.FirstOrDefault(m => m.Name == "SetPassword") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_password_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_set_static_delegate)}); - if (efl_text_replacement_char_get_static_delegate == null) - efl_text_replacement_char_get_static_delegate = new efl_text_replacement_char_get_delegate(replacement_char_get); - if (methods.FirstOrDefault(m => m.Name == "GetReplacementChar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_replacement_char_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_get_static_delegate)}); - if (efl_text_replacement_char_set_static_delegate == null) - efl_text_replacement_char_set_static_delegate = new efl_text_replacement_char_set_delegate(replacement_char_set); - if (methods.FirstOrDefault(m => m.Name == "SetReplacementChar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_replacement_char_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_set_static_delegate)}); - if (efl_text_markup_get_static_delegate == null) - efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); - if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate)}); - if (efl_text_markup_set_static_delegate == null) - efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); - if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate)}); - if (efl_text_markup_interactive_markup_range_get_static_delegate == null) - efl_text_markup_interactive_markup_range_get_static_delegate = new efl_text_markup_interactive_markup_range_get_delegate(markup_range_get); - if (methods.FirstOrDefault(m => m.Name == "GetMarkupRange") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_interactive_markup_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_markup_range_get_static_delegate)}); - if (efl_text_markup_interactive_markup_range_set_static_delegate == null) - efl_text_markup_interactive_markup_range_set_static_delegate = new efl_text_markup_interactive_markup_range_set_delegate(markup_range_set); - if (methods.FirstOrDefault(m => m.Name == "SetMarkupRange") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_interactive_markup_range_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_markup_range_set_static_delegate)}); - if (efl_text_markup_interactive_cursor_markup_insert_static_delegate == null) - efl_text_markup_interactive_cursor_markup_insert_static_delegate = new efl_text_markup_interactive_cursor_markup_insert_delegate(cursor_markup_insert); - if (methods.FirstOrDefault(m => m.Name == "CursorMarkupInsert") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_interactive_cursor_markup_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_cursor_markup_insert_static_delegate)}); - if (efl_text_normal_color_get_static_delegate == null) - efl_text_normal_color_get_static_delegate = new efl_text_normal_color_get_delegate(normal_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetNormalColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_normal_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_get_static_delegate)}); - if (efl_text_normal_color_set_static_delegate == null) - efl_text_normal_color_set_static_delegate = new efl_text_normal_color_set_delegate(normal_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetNormalColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_normal_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_set_static_delegate)}); - if (efl_text_backing_type_get_static_delegate == null) - efl_text_backing_type_get_static_delegate = new efl_text_backing_type_get_delegate(backing_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetBackingType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_get_static_delegate)}); - if (efl_text_backing_type_set_static_delegate == null) - efl_text_backing_type_set_static_delegate = new efl_text_backing_type_set_delegate(backing_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetBackingType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_set_static_delegate)}); - if (efl_text_backing_color_get_static_delegate == null) - efl_text_backing_color_get_static_delegate = new efl_text_backing_color_get_delegate(backing_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetBackingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_get_static_delegate)}); - if (efl_text_backing_color_set_static_delegate == null) - efl_text_backing_color_set_static_delegate = new efl_text_backing_color_set_delegate(backing_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetBackingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_set_static_delegate)}); - if (efl_text_underline_type_get_static_delegate == null) - efl_text_underline_type_get_static_delegate = new efl_text_underline_type_get_delegate(underline_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_get_static_delegate)}); - if (efl_text_underline_type_set_static_delegate == null) - efl_text_underline_type_set_static_delegate = new efl_text_underline_type_set_delegate(underline_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_set_static_delegate)}); - if (efl_text_underline_color_get_static_delegate == null) - efl_text_underline_color_get_static_delegate = new efl_text_underline_color_get_delegate(underline_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_get_static_delegate)}); - if (efl_text_underline_color_set_static_delegate == null) - efl_text_underline_color_set_static_delegate = new efl_text_underline_color_set_delegate(underline_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_set_static_delegate)}); - if (efl_text_underline_height_get_static_delegate == null) - efl_text_underline_height_get_static_delegate = new efl_text_underline_height_get_delegate(underline_height_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineHeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_height_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_get_static_delegate)}); - if (efl_text_underline_height_set_static_delegate == null) - efl_text_underline_height_set_static_delegate = new efl_text_underline_height_set_delegate(underline_height_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineHeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_height_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_set_static_delegate)}); - if (efl_text_underline_dashed_color_get_static_delegate == null) - efl_text_underline_dashed_color_get_static_delegate = new efl_text_underline_dashed_color_get_delegate(underline_dashed_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_get_static_delegate)}); - if (efl_text_underline_dashed_color_set_static_delegate == null) - efl_text_underline_dashed_color_set_static_delegate = new efl_text_underline_dashed_color_set_delegate(underline_dashed_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_set_static_delegate)}); - if (efl_text_underline_dashed_width_get_static_delegate == null) - efl_text_underline_dashed_width_get_static_delegate = new efl_text_underline_dashed_width_get_delegate(underline_dashed_width_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_get_static_delegate)}); - if (efl_text_underline_dashed_width_set_static_delegate == null) - efl_text_underline_dashed_width_set_static_delegate = new efl_text_underline_dashed_width_set_delegate(underline_dashed_width_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_set_static_delegate)}); - if (efl_text_underline_dashed_gap_get_static_delegate == null) - efl_text_underline_dashed_gap_get_static_delegate = new efl_text_underline_dashed_gap_get_delegate(underline_dashed_gap_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedGap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_gap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_get_static_delegate)}); - if (efl_text_underline_dashed_gap_set_static_delegate == null) - efl_text_underline_dashed_gap_set_static_delegate = new efl_text_underline_dashed_gap_set_delegate(underline_dashed_gap_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedGap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_gap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_set_static_delegate)}); - if (efl_text_underline2_color_get_static_delegate == null) - efl_text_underline2_color_get_static_delegate = new efl_text_underline2_color_get_delegate(underline2_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderline2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_get_static_delegate)}); - if (efl_text_underline2_color_set_static_delegate == null) - efl_text_underline2_color_set_static_delegate = new efl_text_underline2_color_set_delegate(underline2_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderline2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_set_static_delegate)}); - if (efl_text_strikethrough_type_get_static_delegate == null) - efl_text_strikethrough_type_get_static_delegate = new efl_text_strikethrough_type_get_delegate(strikethrough_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_get_static_delegate)}); - if (efl_text_strikethrough_type_set_static_delegate == null) - efl_text_strikethrough_type_set_static_delegate = new efl_text_strikethrough_type_set_delegate(strikethrough_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_set_static_delegate)}); - if (efl_text_strikethrough_color_get_static_delegate == null) - efl_text_strikethrough_color_get_static_delegate = new efl_text_strikethrough_color_get_delegate(strikethrough_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_get_static_delegate)}); - if (efl_text_strikethrough_color_set_static_delegate == null) - efl_text_strikethrough_color_set_static_delegate = new efl_text_strikethrough_color_set_delegate(strikethrough_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_set_static_delegate)}); - if (efl_text_effect_type_get_static_delegate == null) - efl_text_effect_type_get_static_delegate = new efl_text_effect_type_get_delegate(effect_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetEffectType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_effect_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_get_static_delegate)}); - if (efl_text_effect_type_set_static_delegate == null) - efl_text_effect_type_set_static_delegate = new efl_text_effect_type_set_delegate(effect_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetEffectType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_effect_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_set_static_delegate)}); - if (efl_text_outline_color_get_static_delegate == null) - efl_text_outline_color_get_static_delegate = new efl_text_outline_color_get_delegate(outline_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetOutlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_outline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_get_static_delegate)}); - if (efl_text_outline_color_set_static_delegate == null) - efl_text_outline_color_set_static_delegate = new efl_text_outline_color_set_delegate(outline_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetOutlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_outline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_set_static_delegate)}); - if (efl_text_shadow_direction_get_static_delegate == null) - efl_text_shadow_direction_get_static_delegate = new efl_text_shadow_direction_get_delegate(shadow_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetShadowDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_get_static_delegate)}); - if (efl_text_shadow_direction_set_static_delegate == null) - efl_text_shadow_direction_set_static_delegate = new efl_text_shadow_direction_set_delegate(shadow_direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetShadowDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_set_static_delegate)}); - if (efl_text_shadow_color_get_static_delegate == null) - efl_text_shadow_color_get_static_delegate = new efl_text_shadow_color_get_delegate(shadow_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetShadowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_get_static_delegate)}); - if (efl_text_shadow_color_set_static_delegate == null) - efl_text_shadow_color_set_static_delegate = new efl_text_shadow_color_set_delegate(shadow_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetShadowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_set_static_delegate)}); - if (efl_text_glow_color_get_static_delegate == null) - efl_text_glow_color_get_static_delegate = new efl_text_glow_color_get_delegate(glow_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetGlowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_get_static_delegate)}); - if (efl_text_glow_color_set_static_delegate == null) - efl_text_glow_color_set_static_delegate = new efl_text_glow_color_set_delegate(glow_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetGlowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_set_static_delegate)}); - if (efl_text_glow2_color_get_static_delegate == null) - efl_text_glow2_color_get_static_delegate = new efl_text_glow2_color_get_delegate(glow2_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetGlow2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_get_static_delegate)}); - if (efl_text_glow2_color_set_static_delegate == null) - efl_text_glow2_color_set_static_delegate = new efl_text_glow2_color_set_delegate(glow2_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetGlow2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_set_static_delegate)}); - if (efl_text_gfx_filter_get_static_delegate == null) - efl_text_gfx_filter_get_static_delegate = new efl_text_gfx_filter_get_delegate(gfx_filter_get); - if (methods.FirstOrDefault(m => m.Name == "GetGfxFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_gfx_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_get_static_delegate)}); - if (efl_text_gfx_filter_set_static_delegate == null) - efl_text_gfx_filter_set_static_delegate = new efl_text_gfx_filter_set_delegate(gfx_filter_set); - if (methods.FirstOrDefault(m => m.Name == "SetGfxFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_gfx_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.LayoutPartText.efl_canvas_layout_part_text_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.LayoutPart.NativeMethods { - return Efl.Canvas.LayoutPartText.efl_canvas_layout_part_text_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Edje); + /// 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_canvas_layout_part_text_expand_get_static_delegate == null) + { + efl_canvas_layout_part_text_expand_get_static_delegate = new efl_canvas_layout_part_text_expand_get_delegate(text_expand_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTextExpand") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_expand_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_expand_get_static_delegate) }); + } - private delegate Efl.Canvas.LayoutPartTextExpand efl_canvas_layout_part_text_expand_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_canvas_layout_part_text_expand_set_static_delegate == null) + { + efl_canvas_layout_part_text_expand_set_static_delegate = new efl_canvas_layout_part_text_expand_set_delegate(text_expand_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTextExpand") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_layout_part_text_expand_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_layout_part_text_expand_set_static_delegate) }); + } - public delegate Efl.Canvas.LayoutPartTextExpand efl_canvas_layout_part_text_expand_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_expand_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_expand_get"); - private static Efl.Canvas.LayoutPartTextExpand text_expand_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_expand_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.LayoutPartTextExpand _ret_var = default(Efl.Canvas.LayoutPartTextExpand); - try { - _ret_var = ((LayoutPartText)wrapper).GetTextExpand(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); } - return _ret_var; - } else { - return efl_canvas_layout_part_text_expand_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_layout_part_text_expand_get_delegate efl_canvas_layout_part_text_expand_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } - private delegate void efl_canvas_layout_part_text_expand_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.LayoutPartTextExpand type); + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } - public delegate void efl_canvas_layout_part_text_expand_set_api_delegate(System.IntPtr obj, Efl.Canvas.LayoutPartTextExpand type); - public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_expand_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_layout_part_text_expand_set"); - private static void text_expand_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.LayoutPartTextExpand type) - { - Eina.Log.Debug("function efl_canvas_layout_part_text_expand_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetTextExpand( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_layout_part_text_expand_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); - } - } - private static efl_canvas_layout_part_text_expand_set_delegate efl_canvas_layout_part_text_expand_set_static_delegate; + if (efl_text_cursor_get_static_delegate == null) + { + efl_text_cursor_get_static_delegate = new efl_text_cursor_get_delegate(text_cursor_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTextCursor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_cursor_position_get_static_delegate == null) + { + efl_text_cursor_position_get_static_delegate = new efl_text_cursor_position_get_delegate(cursor_position_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCursorPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartText)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_position_set_static_delegate == null) + { + efl_text_cursor_position_set_static_delegate = new efl_text_cursor_position_set_delegate(cursor_position_set); } - return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetCursorPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_set_static_delegate) }); + } - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + if (efl_text_cursor_content_get_static_delegate == null) + { + efl_text_cursor_content_get_static_delegate = new efl_text_cursor_content_get_delegate(cursor_content_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCursorContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_content_get_static_delegate) }); + } - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); - } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + if (efl_text_cursor_geometry_get_static_delegate == null) + { + efl_text_cursor_geometry_get_static_delegate = new efl_text_cursor_geometry_get_delegate(cursor_geometry_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCursorGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_geometry_get_static_delegate) }); + } - private delegate Efl.TextCursorCursor efl_text_cursor_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type); + if (efl_text_cursor_new_static_delegate == null) + { + efl_text_cursor_new_static_delegate = new efl_text_cursor_new_delegate(cursor_new); + } + if (methods.FirstOrDefault(m => m.Name == "NewCursor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_new"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_new_static_delegate) }); + } - public delegate Efl.TextCursorCursor efl_text_cursor_get_api_delegate(System.IntPtr obj, Efl.TextCursorGetType get_type); - public static Efl.Eo.FunctionWrapper efl_text_cursor_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_get"); - private static Efl.TextCursorCursor text_cursor_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type) - { - Eina.Log.Debug("function efl_text_cursor_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); - try { - _ret_var = ((LayoutPartText)wrapper).GetTextCursor( get_type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_free_static_delegate == null) + { + efl_text_cursor_free_static_delegate = new efl_text_cursor_free_delegate(cursor_free); } - return _ret_var; - } else { - return efl_text_cursor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), get_type); - } - } - private static efl_text_cursor_get_delegate efl_text_cursor_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorFree") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_free"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_free_static_delegate) }); + } - private delegate int efl_text_cursor_position_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_equal_static_delegate == null) + { + efl_text_cursor_equal_static_delegate = new efl_text_cursor_equal_delegate(cursor_equal); + } + if (methods.FirstOrDefault(m => m.Name == "CursorEqual") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_equal"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_equal_static_delegate) }); + } - public delegate int efl_text_cursor_position_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_position_get"); - private static int cursor_position_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartText)wrapper).GetCursorPosition( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_compare_static_delegate == null) + { + efl_text_cursor_compare_static_delegate = new efl_text_cursor_compare_delegate(cursor_compare); } - return _ret_var; - } else { - return efl_text_cursor_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_position_get_delegate efl_text_cursor_position_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorCompare") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_compare"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_compare_static_delegate) }); + } - private delegate void efl_text_cursor_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position); + if (efl_text_cursor_copy_static_delegate == null) + { + efl_text_cursor_copy_static_delegate = new efl_text_cursor_copy_delegate(cursor_copy); + } + if (methods.FirstOrDefault(m => m.Name == "CursorCopy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_copy_static_delegate) }); + } - public delegate void efl_text_cursor_position_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int position); - public static Efl.Eo.FunctionWrapper efl_text_cursor_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_position_set"); - private static void cursor_position_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position) - { - Eina.Log.Debug("function efl_text_cursor_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetCursorPosition( cur, position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, position); - } - } - private static efl_text_cursor_position_set_delegate efl_text_cursor_position_set_static_delegate; + if (efl_text_cursor_char_next_static_delegate == null) + { + efl_text_cursor_char_next_static_delegate = new efl_text_cursor_char_next_delegate(cursor_char_next); + } + if (methods.FirstOrDefault(m => m.Name == "CursorCharNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_char_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_next_static_delegate) }); + } - private delegate Eina.Unicode efl_text_cursor_content_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_char_prev_static_delegate == null) + { + efl_text_cursor_char_prev_static_delegate = new efl_text_cursor_char_prev_delegate(cursor_char_prev); + } + if (methods.FirstOrDefault(m => m.Name == "CursorCharPrev") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_char_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_prev_static_delegate) }); + } - public delegate Eina.Unicode efl_text_cursor_content_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_content_get"); - private static Eina.Unicode cursor_content_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Unicode _ret_var = default(Eina.Unicode); - try { - _ret_var = ((LayoutPartText)wrapper).GetCursorContent( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_cluster_next_static_delegate == null) + { + efl_text_cursor_cluster_next_static_delegate = new efl_text_cursor_cluster_next_delegate(cursor_cluster_next); } - return _ret_var; - } else { - return efl_text_cursor_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_content_get_delegate efl_text_cursor_content_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorClusterNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_cluster_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_next_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_cursor_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); + if (efl_text_cursor_cluster_prev_static_delegate == null) + { + efl_text_cursor_cluster_prev_static_delegate = new efl_text_cursor_cluster_prev_delegate(cursor_cluster_prev); + } + if (methods.FirstOrDefault(m => m.Name == "CursorClusterPrev") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_cluster_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_prev_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_cursor_geometry_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); - public static Efl.Eo.FunctionWrapper efl_text_cursor_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_geometry_get"); - private static bool cursor_geometry_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) - { - Eina.Log.Debug("function efl_text_cursor_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - cx = default(int); cy = default(int); cw = default(int); ch = default(int); cx2 = default(int); cy2 = default(int); cw2 = default(int); ch2 = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartText)wrapper).GetCursorGeometry( cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_paragraph_char_first_static_delegate == null) + { + efl_text_cursor_paragraph_char_first_static_delegate = new efl_text_cursor_paragraph_char_first_delegate(cursor_paragraph_char_first); } - return _ret_var; - } else { - return efl_text_cursor_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); - } - } - private static efl_text_cursor_geometry_get_delegate efl_text_cursor_geometry_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharFirst") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_first_static_delegate) }); + } - private delegate Efl.TextCursorCursor efl_text_cursor_new_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_cursor_paragraph_char_last_static_delegate == null) + { + efl_text_cursor_paragraph_char_last_static_delegate = new efl_text_cursor_paragraph_char_last_delegate(cursor_paragraph_char_last); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharLast") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_last_static_delegate) }); + } - public delegate Efl.TextCursorCursor efl_text_cursor_new_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_cursor_new_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_new"); - private static Efl.TextCursorCursor cursor_new(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_cursor_new was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); - try { - _ret_var = ((LayoutPartText)wrapper).NewCursor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_word_start_static_delegate == null) + { + efl_text_cursor_word_start_static_delegate = new efl_text_cursor_word_start_delegate(cursor_word_start); } - return _ret_var; - } else { - return efl_text_cursor_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_cursor_new_delegate efl_text_cursor_new_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorWordStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_word_start"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_start_static_delegate) }); + } - private delegate void efl_text_cursor_free_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_word_end_static_delegate == null) + { + efl_text_cursor_word_end_static_delegate = new efl_text_cursor_word_end_delegate(cursor_word_end); + } + if (methods.FirstOrDefault(m => m.Name == "CursorWordEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_word_end"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_end_static_delegate) }); + } - public delegate void efl_text_cursor_free_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_free_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_free"); - private static void cursor_free(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_free was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorFree( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_free_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_free_delegate efl_text_cursor_free_static_delegate; + if (efl_text_cursor_line_char_first_static_delegate == null) + { + efl_text_cursor_line_char_first_static_delegate = new efl_text_cursor_line_char_first_delegate(cursor_line_char_first); + } + if (methods.FirstOrDefault(m => m.Name == "CursorLineCharFirst") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_line_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_first_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_cursor_equal_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + if (efl_text_cursor_line_char_last_static_delegate == null) + { + efl_text_cursor_line_char_last_static_delegate = new efl_text_cursor_line_char_last_delegate(cursor_line_char_last); + } + if (methods.FirstOrDefault(m => m.Name == "CursorLineCharLast") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_line_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_last_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_cursor_equal_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); - public static Efl.Eo.FunctionWrapper efl_text_cursor_equal_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_equal"); - private static bool cursor_equal(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) - { - Eina.Log.Debug("function efl_text_cursor_equal was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartText)wrapper).CursorEqual( cur1, cur2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_paragraph_first_static_delegate == null) + { + efl_text_cursor_paragraph_first_static_delegate = new efl_text_cursor_paragraph_first_delegate(cursor_paragraph_first); } - return _ret_var; - } else { - return efl_text_cursor_equal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); - } - } - private static efl_text_cursor_equal_delegate efl_text_cursor_equal_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphFirst") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_first_static_delegate) }); + } - private delegate int efl_text_cursor_compare_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + if (efl_text_cursor_paragraph_last_static_delegate == null) + { + efl_text_cursor_paragraph_last_static_delegate = new efl_text_cursor_paragraph_last_delegate(cursor_paragraph_last); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphLast") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_last_static_delegate) }); + } - public delegate int efl_text_cursor_compare_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); - public static Efl.Eo.FunctionWrapper efl_text_cursor_compare_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_compare"); - private static int cursor_compare(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) - { - Eina.Log.Debug("function efl_text_cursor_compare was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartText)wrapper).CursorCompare( cur1, cur2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_paragraph_next_static_delegate == null) + { + efl_text_cursor_paragraph_next_static_delegate = new efl_text_cursor_paragraph_next_delegate(cursor_paragraph_next); } - return _ret_var; - } else { - return efl_text_cursor_compare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); - } - } - private static efl_text_cursor_compare_delegate efl_text_cursor_compare_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_next_static_delegate) }); + } - private delegate void efl_text_cursor_copy_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); + if (efl_text_cursor_paragraph_prev_static_delegate == null) + { + efl_text_cursor_paragraph_prev_static_delegate = new efl_text_cursor_paragraph_prev_delegate(cursor_paragraph_prev); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphPrev") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_prev_static_delegate) }); + } - public delegate void efl_text_cursor_copy_api_delegate(System.IntPtr obj, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); - public static Efl.Eo.FunctionWrapper efl_text_cursor_copy_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_copy"); - private static void cursor_copy(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src) - { - Eina.Log.Debug("function efl_text_cursor_copy was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorCopy( dst, src); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dst, src); - } - } - private static efl_text_cursor_copy_delegate efl_text_cursor_copy_static_delegate; + if (efl_text_cursor_line_jump_by_static_delegate == null) + { + efl_text_cursor_line_jump_by_static_delegate = new efl_text_cursor_line_jump_by_delegate(cursor_line_jump_by); + } + if (methods.FirstOrDefault(m => m.Name == "CursorLineJumpBy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_line_jump_by"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_jump_by_static_delegate) }); + } - private delegate void efl_text_cursor_char_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_coord_set_static_delegate == null) + { + efl_text_cursor_coord_set_static_delegate = new efl_text_cursor_coord_set_delegate(cursor_coord_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCursorCoord") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_coord_set_static_delegate) }); + } - public delegate void efl_text_cursor_char_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_char_next_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_char_next"); - private static void cursor_char_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_char_next was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorCharNext( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_char_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_char_next_delegate efl_text_cursor_char_next_static_delegate; + if (efl_text_cursor_cluster_coord_set_static_delegate == null) + { + efl_text_cursor_cluster_coord_set_static_delegate = new efl_text_cursor_cluster_coord_set_delegate(cursor_cluster_coord_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCursorClusterCoord") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_cluster_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_coord_set_static_delegate) }); + } - private delegate void efl_text_cursor_char_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_text_insert_static_delegate == null) + { + efl_text_cursor_text_insert_static_delegate = new efl_text_cursor_text_insert_delegate(cursor_text_insert); + } + if (methods.FirstOrDefault(m => m.Name == "CursorTextInsert") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_text_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_text_insert_static_delegate) }); + } - public delegate void efl_text_cursor_char_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_char_prev_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_char_prev"); - private static void cursor_char_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_char_prev was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorCharPrev( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_char_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_char_prev_delegate efl_text_cursor_char_prev_static_delegate; + if (efl_text_cursor_char_delete_static_delegate == null) + { + efl_text_cursor_char_delete_static_delegate = new efl_text_cursor_char_delete_delegate(cursor_char_delete); + } + if (methods.FirstOrDefault(m => m.Name == "CursorCharDelete") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_char_delete"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_delete_static_delegate) }); + } - private delegate void efl_text_cursor_cluster_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_font_get_static_delegate == null) + { + efl_text_font_get_static_delegate = new efl_text_font_get_delegate(font_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFont") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_get_static_delegate) }); + } - public delegate void efl_text_cursor_cluster_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_next_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_cluster_next"); - private static void cursor_cluster_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_cluster_next was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorClusterNext( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_cluster_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_cluster_next_delegate efl_text_cursor_cluster_next_static_delegate; + if (efl_text_font_set_static_delegate == null) + { + efl_text_font_set_static_delegate = new efl_text_font_set_delegate(font_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFont") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_set_static_delegate) }); + } - private delegate void efl_text_cursor_cluster_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_font_source_get_static_delegate == null) + { + efl_text_font_source_get_static_delegate = new efl_text_font_source_get_delegate(font_source_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_get_static_delegate) }); + } - public delegate void efl_text_cursor_cluster_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_prev_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_cluster_prev"); - private static void cursor_cluster_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_cluster_prev was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorClusterPrev( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_cluster_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_cluster_prev_delegate efl_text_cursor_cluster_prev_static_delegate; + if (efl_text_font_source_set_static_delegate == null) + { + efl_text_font_source_set_static_delegate = new efl_text_font_source_set_delegate(font_source_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_set_static_delegate) }); + } - private delegate void efl_text_cursor_paragraph_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_font_fallbacks_get_static_delegate == null) + { + efl_text_font_fallbacks_get_static_delegate = new efl_text_font_fallbacks_get_delegate(font_fallbacks_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontFallbacks") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_fallbacks_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_get_static_delegate) }); + } - public delegate void efl_text_cursor_paragraph_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_first_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_char_first"); - private static void cursor_paragraph_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_char_first was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorParagraphCharFirst( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_paragraph_char_first_delegate efl_text_cursor_paragraph_char_first_static_delegate; + if (efl_text_font_fallbacks_set_static_delegate == null) + { + efl_text_font_fallbacks_set_static_delegate = new efl_text_font_fallbacks_set_delegate(font_fallbacks_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontFallbacks") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_fallbacks_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_set_static_delegate) }); + } - private delegate void efl_text_cursor_paragraph_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_font_weight_get_static_delegate == null) + { + efl_text_font_weight_get_static_delegate = new efl_text_font_weight_get_delegate(font_weight_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_get_static_delegate) }); + } - public delegate void efl_text_cursor_paragraph_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_last_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_char_last"); - private static void cursor_paragraph_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_char_last was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorParagraphCharLast( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_paragraph_char_last_delegate efl_text_cursor_paragraph_char_last_static_delegate; + if (efl_text_font_weight_set_static_delegate == null) + { + efl_text_font_weight_set_static_delegate = new efl_text_font_weight_set_delegate(font_weight_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_set_static_delegate) }); + } - private delegate void efl_text_cursor_word_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_font_slant_get_static_delegate == null) + { + efl_text_font_slant_get_static_delegate = new efl_text_font_slant_get_delegate(font_slant_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontSlant") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_slant_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_get_static_delegate) }); + } - public delegate void efl_text_cursor_word_start_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_word_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_word_start"); - private static void cursor_word_start(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_word_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorWordStart( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_word_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_word_start_delegate efl_text_cursor_word_start_static_delegate; + if (efl_text_font_slant_set_static_delegate == null) + { + efl_text_font_slant_set_static_delegate = new efl_text_font_slant_set_delegate(font_slant_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontSlant") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_slant_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_set_static_delegate) }); + } - private delegate void efl_text_cursor_word_end_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_font_width_get_static_delegate == null) + { + efl_text_font_width_get_static_delegate = new efl_text_font_width_get_delegate(font_width_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_get_static_delegate) }); + } - public delegate void efl_text_cursor_word_end_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_word_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_word_end"); - private static void cursor_word_end(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_word_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorWordEnd( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_word_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_word_end_delegate efl_text_cursor_word_end_static_delegate; + if (efl_text_font_width_set_static_delegate == null) + { + efl_text_font_width_set_static_delegate = new efl_text_font_width_set_delegate(font_width_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_set_static_delegate) }); + } - private delegate void efl_text_cursor_line_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_font_lang_get_static_delegate == null) + { + efl_text_font_lang_get_static_delegate = new efl_text_font_lang_get_delegate(font_lang_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontLang") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_lang_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_get_static_delegate) }); + } - public delegate void efl_text_cursor_line_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_first_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_line_char_first"); - private static void cursor_line_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_line_char_first was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorLineCharFirst( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_line_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_line_char_first_delegate efl_text_cursor_line_char_first_static_delegate; + if (efl_text_font_lang_set_static_delegate == null) + { + efl_text_font_lang_set_static_delegate = new efl_text_font_lang_set_delegate(font_lang_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontLang") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_lang_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_set_static_delegate) }); + } - private delegate void efl_text_cursor_line_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_font_bitmap_scalable_get_static_delegate == null) + { + efl_text_font_bitmap_scalable_get_static_delegate = new efl_text_font_bitmap_scalable_get_delegate(font_bitmap_scalable_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontBitmapScalable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_bitmap_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_get_static_delegate) }); + } - public delegate void efl_text_cursor_line_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_last_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_line_char_last"); - private static void cursor_line_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_line_char_last was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorLineCharLast( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_line_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_line_char_last_delegate efl_text_cursor_line_char_last_static_delegate; + if (efl_text_font_bitmap_scalable_set_static_delegate == null) + { + efl_text_font_bitmap_scalable_set_static_delegate = new efl_text_font_bitmap_scalable_set_delegate(font_bitmap_scalable_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontBitmapScalable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_bitmap_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_set_static_delegate) }); + } - private delegate void efl_text_cursor_paragraph_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_ellipsis_get_static_delegate == null) + { + efl_text_ellipsis_get_static_delegate = new efl_text_ellipsis_get_delegate(ellipsis_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetEllipsis") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_ellipsis_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_get_static_delegate) }); + } - public delegate void efl_text_cursor_paragraph_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_first_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_first"); - private static void cursor_paragraph_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_first was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorParagraphFirst( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_paragraph_first_delegate efl_text_cursor_paragraph_first_static_delegate; + if (efl_text_ellipsis_set_static_delegate == null) + { + efl_text_ellipsis_set_static_delegate = new efl_text_ellipsis_set_delegate(ellipsis_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEllipsis") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_ellipsis_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_set_static_delegate) }); + } - private delegate void efl_text_cursor_paragraph_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_wrap_get_static_delegate == null) + { + efl_text_wrap_get_static_delegate = new efl_text_wrap_get_delegate(wrap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetWrap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_wrap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_get_static_delegate) }); + } - public delegate void efl_text_cursor_paragraph_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_last_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_last"); - private static void cursor_paragraph_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_last was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorParagraphLast( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_paragraph_last_delegate efl_text_cursor_paragraph_last_static_delegate; + if (efl_text_wrap_set_static_delegate == null) + { + efl_text_wrap_set_static_delegate = new efl_text_wrap_set_delegate(wrap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetWrap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_wrap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_set_static_delegate) }); + } - private delegate void efl_text_cursor_paragraph_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_multiline_get_static_delegate == null) + { + efl_text_multiline_get_static_delegate = new efl_text_multiline_get_delegate(multiline_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMultiline") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_multiline_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_get_static_delegate) }); + } - public delegate void efl_text_cursor_paragraph_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_next_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_next"); - private static void cursor_paragraph_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_next was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorParagraphNext( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_paragraph_next_delegate efl_text_cursor_paragraph_next_static_delegate; + if (efl_text_multiline_set_static_delegate == null) + { + efl_text_multiline_set_static_delegate = new efl_text_multiline_set_delegate(multiline_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMultiline") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_multiline_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_set_static_delegate) }); + } - private delegate void efl_text_cursor_paragraph_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_halign_auto_type_get_static_delegate == null) + { + efl_text_halign_auto_type_get_static_delegate = new efl_text_halign_auto_type_get_delegate(halign_auto_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetHalignAutoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_auto_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_get_static_delegate) }); + } - public delegate void efl_text_cursor_paragraph_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_prev_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_prev"); - private static void cursor_paragraph_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_prev was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorParagraphPrev( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_paragraph_prev_delegate efl_text_cursor_paragraph_prev_static_delegate; + if (efl_text_halign_auto_type_set_static_delegate == null) + { + efl_text_halign_auto_type_set_static_delegate = new efl_text_halign_auto_type_set_delegate(halign_auto_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetHalignAutoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_auto_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_set_static_delegate) }); + } - private delegate void efl_text_cursor_line_jump_by_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by); + if (efl_text_halign_get_static_delegate == null) + { + efl_text_halign_get_static_delegate = new efl_text_halign_get_delegate(halign_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetHalign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_get_static_delegate) }); + } - public delegate void efl_text_cursor_line_jump_by_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int by); - public static Efl.Eo.FunctionWrapper efl_text_cursor_line_jump_by_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_line_jump_by"); - private static void cursor_line_jump_by(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by) - { - Eina.Log.Debug("function efl_text_cursor_line_jump_by was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorLineJumpBy( cur, by); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_line_jump_by_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, by); - } - } - private static efl_text_cursor_line_jump_by_delegate efl_text_cursor_line_jump_by_static_delegate; + if (efl_text_halign_set_static_delegate == null) + { + efl_text_halign_set_static_delegate = new efl_text_halign_set_delegate(halign_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetHalign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_set_static_delegate) }); + } - private delegate void efl_text_cursor_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + if (efl_text_valign_get_static_delegate == null) + { + efl_text_valign_get_static_delegate = new efl_text_valign_get_delegate(valign_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_get_static_delegate) }); + } - public delegate void efl_text_cursor_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); - public static Efl.Eo.FunctionWrapper efl_text_cursor_coord_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_coord_set"); - private static void cursor_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) - { - Eina.Log.Debug("function efl_text_cursor_coord_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetCursorCoord( cur, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); - } - } - private static efl_text_cursor_coord_set_delegate efl_text_cursor_coord_set_static_delegate; + if (efl_text_valign_set_static_delegate == null) + { + efl_text_valign_set_static_delegate = new efl_text_valign_set_delegate(valign_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_set_static_delegate) }); + } - private delegate void efl_text_cursor_cluster_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + if (efl_text_linegap_get_static_delegate == null) + { + efl_text_linegap_get_static_delegate = new efl_text_linegap_get_delegate(linegap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLinegap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linegap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_get_static_delegate) }); + } - public delegate void efl_text_cursor_cluster_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); - public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_coord_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_cluster_coord_set"); - private static void cursor_cluster_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) - { - Eina.Log.Debug("function efl_text_cursor_cluster_coord_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetCursorClusterCoord( cur, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_cluster_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); - } - } - private static efl_text_cursor_cluster_coord_set_delegate efl_text_cursor_cluster_coord_set_static_delegate; + if (efl_text_linegap_set_static_delegate == null) + { + efl_text_linegap_set_static_delegate = new efl_text_linegap_set_delegate(linegap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetLinegap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linegap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_set_static_delegate) }); + } - private delegate int efl_text_cursor_text_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + if (efl_text_linerelgap_get_static_delegate == null) + { + efl_text_linerelgap_get_static_delegate = new efl_text_linerelgap_get_delegate(linerelgap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLinerelgap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linerelgap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_get_static_delegate) }); + } - public delegate int efl_text_cursor_text_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_cursor_text_insert_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_text_insert"); - private static int cursor_text_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String text) - { - Eina.Log.Debug("function efl_text_cursor_text_insert was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartText)wrapper).CursorTextInsert( cur, text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_linerelgap_set_static_delegate == null) + { + efl_text_linerelgap_set_static_delegate = new efl_text_linerelgap_set_delegate(linerelgap_set); } - return _ret_var; - } else { - return efl_text_cursor_text_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, text); - } - } - private static efl_text_cursor_text_insert_delegate efl_text_cursor_text_insert_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetLinerelgap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linerelgap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_set_static_delegate) }); + } - private delegate void efl_text_cursor_char_delete_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_tabstops_get_static_delegate == null) + { + efl_text_tabstops_get_static_delegate = new efl_text_tabstops_get_delegate(tabstops_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTabstops") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_tabstops_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_get_static_delegate) }); + } - public delegate void efl_text_cursor_char_delete_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_char_delete_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_char_delete"); - private static void cursor_char_delete(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_char_delete was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorCharDelete( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_char_delete_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_char_delete_delegate efl_text_cursor_char_delete_static_delegate; + if (efl_text_tabstops_set_static_delegate == null) + { + efl_text_tabstops_set_static_delegate = new efl_text_tabstops_set_delegate(tabstops_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTabstops") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_tabstops_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_set_static_delegate) }); + } - private delegate void efl_text_font_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + if (efl_text_password_get_static_delegate == null) + { + efl_text_password_get_static_delegate = new efl_text_password_get_delegate(password_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPassword") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_password_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_get_static_delegate) }); + } - public delegate void efl_text_font_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_text_font_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_get"); - private static void font_get(System.IntPtr obj, System.IntPtr pd, out System.String font, out Efl.Font.Size size) - { - Eina.Log.Debug("function efl_text_font_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_font = default(System.String); - size = default(Efl.Font.Size); - try { - ((LayoutPartText)wrapper).GetFont( out _out_font, out size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_password_set_static_delegate == null) + { + efl_text_password_set_static_delegate = new efl_text_password_set_delegate(password_set); } - font = _out_font; - } else { - efl_text_font_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out font, out size); - } - } - private static efl_text_font_get_delegate efl_text_font_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPassword") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_password_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_set_static_delegate) }); + } - private delegate void efl_text_font_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + if (efl_text_replacement_char_get_static_delegate == null) + { + efl_text_replacement_char_get_static_delegate = new efl_text_replacement_char_get_delegate(replacement_char_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetReplacementChar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_replacement_char_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_get_static_delegate) }); + } - public delegate void efl_text_font_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_text_font_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_set"); - private static void font_set(System.IntPtr obj, System.IntPtr pd, System.String font, Efl.Font.Size size) - { - Eina.Log.Debug("function efl_text_font_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetFont( font, size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font, size); - } - } - private static efl_text_font_set_delegate efl_text_font_set_static_delegate; + if (efl_text_replacement_char_set_static_delegate == null) + { + efl_text_replacement_char_set_static_delegate = new efl_text_replacement_char_set_delegate(replacement_char_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetReplacementChar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_replacement_char_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_markup_get_static_delegate == null) + { + efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_source_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_source_get"); - private static System.String font_source_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_source_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartText)wrapper).GetFontSource(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_markup_set_static_delegate == null) + { + efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); } - return _ret_var; - } else { - return efl_text_font_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_source_get_delegate efl_text_font_source_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); + } - private delegate void efl_text_font_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + if (efl_text_markup_interactive_markup_range_get_static_delegate == null) + { + efl_text_markup_interactive_markup_range_get_static_delegate = new efl_text_markup_interactive_markup_range_get_delegate(markup_range_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMarkupRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_interactive_markup_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_markup_range_get_static_delegate) }); + } - public delegate void efl_text_font_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); - public static Efl.Eo.FunctionWrapper efl_text_font_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_source_set"); - private static void font_source_set(System.IntPtr obj, System.IntPtr pd, System.String font_source) - { - Eina.Log.Debug("function efl_text_font_source_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetFontSource( font_source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_source); - } - } - private static efl_text_font_source_set_delegate efl_text_font_source_set_static_delegate; + if (efl_text_markup_interactive_markup_range_set_static_delegate == null) + { + efl_text_markup_interactive_markup_range_set_static_delegate = new efl_text_markup_interactive_markup_range_set_delegate(markup_range_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMarkupRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_interactive_markup_range_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_markup_range_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_fallbacks_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_markup_interactive_cursor_markup_insert_static_delegate == null) + { + efl_text_markup_interactive_cursor_markup_insert_static_delegate = new efl_text_markup_interactive_cursor_markup_insert_delegate(cursor_markup_insert); + } + if (methods.FirstOrDefault(m => m.Name == "CursorMarkupInsert") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_interactive_cursor_markup_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_cursor_markup_insert_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_fallbacks_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_fallbacks_get"); - private static System.String font_fallbacks_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_fallbacks_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartText)wrapper).GetFontFallbacks(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_normal_color_get_static_delegate == null) + { + efl_text_normal_color_get_static_delegate = new efl_text_normal_color_get_delegate(normal_color_get); } - return _ret_var; - } else { - return efl_text_font_fallbacks_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_fallbacks_get_delegate efl_text_font_fallbacks_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetNormalColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_normal_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_get_static_delegate) }); + } - private delegate void efl_text_font_fallbacks_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + if (efl_text_normal_color_set_static_delegate == null) + { + efl_text_normal_color_set_static_delegate = new efl_text_normal_color_set_delegate(normal_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetNormalColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_normal_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_set_static_delegate) }); + } - public delegate void efl_text_font_fallbacks_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); - public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_fallbacks_set"); - private static void font_fallbacks_set(System.IntPtr obj, System.IntPtr pd, System.String font_fallbacks) - { - Eina.Log.Debug("function efl_text_font_fallbacks_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetFontFallbacks( font_fallbacks); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_fallbacks_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_fallbacks); - } - } - private static efl_text_font_fallbacks_set_delegate efl_text_font_fallbacks_set_static_delegate; + if (efl_text_backing_type_get_static_delegate == null) + { + efl_text_backing_type_get_static_delegate = new efl_text_backing_type_get_delegate(backing_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBackingType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_get_static_delegate) }); + } - private delegate Efl.TextFontWeight efl_text_font_weight_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_backing_type_set_static_delegate == null) + { + efl_text_backing_type_set_static_delegate = new efl_text_backing_type_set_delegate(backing_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBackingType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_set_static_delegate) }); + } - public delegate Efl.TextFontWeight efl_text_font_weight_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_weight_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_weight_get"); - private static Efl.TextFontWeight font_weight_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_weight_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontWeight _ret_var = default(Efl.TextFontWeight); - try { - _ret_var = ((LayoutPartText)wrapper).GetFontWeight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_backing_color_get_static_delegate == null) + { + efl_text_backing_color_get_static_delegate = new efl_text_backing_color_get_delegate(backing_color_get); } - return _ret_var; - } else { - return efl_text_font_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_weight_get_delegate efl_text_font_weight_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetBackingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_get_static_delegate) }); + } - private delegate void efl_text_font_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight); + if (efl_text_backing_color_set_static_delegate == null) + { + efl_text_backing_color_set_static_delegate = new efl_text_backing_color_set_delegate(backing_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBackingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_set_static_delegate) }); + } - public delegate void efl_text_font_weight_set_api_delegate(System.IntPtr obj, Efl.TextFontWeight font_weight); - public static Efl.Eo.FunctionWrapper efl_text_font_weight_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_weight_set"); - private static void font_weight_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight) - { - Eina.Log.Debug("function efl_text_font_weight_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetFontWeight( font_weight); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_weight); - } - } - private static efl_text_font_weight_set_delegate efl_text_font_weight_set_static_delegate; + if (efl_text_underline_type_get_static_delegate == null) + { + efl_text_underline_type_get_static_delegate = new efl_text_underline_type_get_delegate(underline_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_get_static_delegate) }); + } - private delegate Efl.TextFontSlant efl_text_font_slant_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_underline_type_set_static_delegate == null) + { + efl_text_underline_type_set_static_delegate = new efl_text_underline_type_set_delegate(underline_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_set_static_delegate) }); + } - public delegate Efl.TextFontSlant efl_text_font_slant_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_slant_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_slant_get"); - private static Efl.TextFontSlant font_slant_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_slant_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontSlant _ret_var = default(Efl.TextFontSlant); - try { - _ret_var = ((LayoutPartText)wrapper).GetFontSlant(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_underline_color_get_static_delegate == null) + { + efl_text_underline_color_get_static_delegate = new efl_text_underline_color_get_delegate(underline_color_get); } - return _ret_var; - } else { - return efl_text_font_slant_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_slant_get_delegate efl_text_font_slant_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_get_static_delegate) }); + } - private delegate void efl_text_font_slant_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style); + if (efl_text_underline_color_set_static_delegate == null) + { + efl_text_underline_color_set_static_delegate = new efl_text_underline_color_set_delegate(underline_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_set_static_delegate) }); + } - public delegate void efl_text_font_slant_set_api_delegate(System.IntPtr obj, Efl.TextFontSlant style); - public static Efl.Eo.FunctionWrapper efl_text_font_slant_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_slant_set"); - private static void font_slant_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style) - { - Eina.Log.Debug("function efl_text_font_slant_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetFontSlant( style); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_slant_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); - } - } - private static efl_text_font_slant_set_delegate efl_text_font_slant_set_static_delegate; + if (efl_text_underline_height_get_static_delegate == null) + { + efl_text_underline_height_get_static_delegate = new efl_text_underline_height_get_delegate(underline_height_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineHeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_height_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_get_static_delegate) }); + } - private delegate Efl.TextFontWidth efl_text_font_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_underline_height_set_static_delegate == null) + { + efl_text_underline_height_set_static_delegate = new efl_text_underline_height_set_delegate(underline_height_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineHeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_height_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_set_static_delegate) }); + } - public delegate Efl.TextFontWidth efl_text_font_width_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_width_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_width_get"); - private static Efl.TextFontWidth font_width_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_width_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontWidth _ret_var = default(Efl.TextFontWidth); - try { - _ret_var = ((LayoutPartText)wrapper).GetFontWidth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_underline_dashed_color_get_static_delegate == null) + { + efl_text_underline_dashed_color_get_static_delegate = new efl_text_underline_dashed_color_get_delegate(underline_dashed_color_get); } - return _ret_var; - } else { - return efl_text_font_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_width_get_delegate efl_text_font_width_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_get_static_delegate) }); + } - private delegate void efl_text_font_width_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width); + if (efl_text_underline_dashed_color_set_static_delegate == null) + { + efl_text_underline_dashed_color_set_static_delegate = new efl_text_underline_dashed_color_set_delegate(underline_dashed_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_set_static_delegate) }); + } - public delegate void efl_text_font_width_set_api_delegate(System.IntPtr obj, Efl.TextFontWidth width); - public static Efl.Eo.FunctionWrapper efl_text_font_width_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_width_set"); - private static void font_width_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width) - { - Eina.Log.Debug("function efl_text_font_width_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetFontWidth( width); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); - } - } - private static efl_text_font_width_set_delegate efl_text_font_width_set_static_delegate; + if (efl_text_underline_dashed_width_get_static_delegate == null) + { + efl_text_underline_dashed_width_get_static_delegate = new efl_text_underline_dashed_width_get_delegate(underline_dashed_width_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_lang_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_underline_dashed_width_set_static_delegate == null) + { + efl_text_underline_dashed_width_set_static_delegate = new efl_text_underline_dashed_width_set_delegate(underline_dashed_width_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_lang_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_lang_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_lang_get"); - private static System.String font_lang_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_lang_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartText)wrapper).GetFontLang(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_underline_dashed_gap_get_static_delegate == null) + { + efl_text_underline_dashed_gap_get_static_delegate = new efl_text_underline_dashed_gap_get_delegate(underline_dashed_gap_get); } - return _ret_var; - } else { - return efl_text_font_lang_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_lang_get_delegate efl_text_font_lang_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedGap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_gap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_get_static_delegate) }); + } - private delegate void efl_text_font_lang_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + if (efl_text_underline_dashed_gap_set_static_delegate == null) + { + efl_text_underline_dashed_gap_set_static_delegate = new efl_text_underline_dashed_gap_set_delegate(underline_dashed_gap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedGap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_gap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_set_static_delegate) }); + } - public delegate void efl_text_font_lang_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); - public static Efl.Eo.FunctionWrapper efl_text_font_lang_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_lang_set"); - private static void font_lang_set(System.IntPtr obj, System.IntPtr pd, System.String lang) - { - Eina.Log.Debug("function efl_text_font_lang_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetFontLang( lang); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_lang_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang); - } - } - private static efl_text_font_lang_set_delegate efl_text_font_lang_set_static_delegate; + if (efl_text_underline2_color_get_static_delegate == null) + { + efl_text_underline2_color_get_static_delegate = new efl_text_underline2_color_get_delegate(underline2_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderline2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_get_static_delegate) }); + } - private delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_underline2_color_set_static_delegate == null) + { + efl_text_underline2_color_set_static_delegate = new efl_text_underline2_color_set_delegate(underline2_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderline2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_set_static_delegate) }); + } - public delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_bitmap_scalable_get"); - private static Efl.TextFontBitmapScalable font_bitmap_scalable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_bitmap_scalable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontBitmapScalable _ret_var = default(Efl.TextFontBitmapScalable); - try { - _ret_var = ((LayoutPartText)wrapper).GetFontBitmapScalable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_strikethrough_type_get_static_delegate == null) + { + efl_text_strikethrough_type_get_static_delegate = new efl_text_strikethrough_type_get_delegate(strikethrough_type_get); } - return _ret_var; - } else { - return efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_bitmap_scalable_get_delegate efl_text_font_bitmap_scalable_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_get_static_delegate) }); + } - private delegate void efl_text_font_bitmap_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable); + if (efl_text_strikethrough_type_set_static_delegate == null) + { + efl_text_strikethrough_type_set_static_delegate = new efl_text_strikethrough_type_set_delegate(strikethrough_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_set_static_delegate) }); + } - public delegate void efl_text_font_bitmap_scalable_set_api_delegate(System.IntPtr obj, Efl.TextFontBitmapScalable scalable); - public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_bitmap_scalable_set"); - private static void font_bitmap_scalable_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable) - { - Eina.Log.Debug("function efl_text_font_bitmap_scalable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetFontBitmapScalable( scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scalable); - } - } - private static efl_text_font_bitmap_scalable_set_delegate efl_text_font_bitmap_scalable_set_static_delegate; + if (efl_text_strikethrough_color_get_static_delegate == null) + { + efl_text_strikethrough_color_get_static_delegate = new efl_text_strikethrough_color_get_delegate(strikethrough_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_get_static_delegate) }); + } - private delegate double efl_text_ellipsis_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_strikethrough_color_set_static_delegate == null) + { + efl_text_strikethrough_color_set_static_delegate = new efl_text_strikethrough_color_set_delegate(strikethrough_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_set_static_delegate) }); + } - public delegate double efl_text_ellipsis_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_ellipsis_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_ellipsis_get"); - private static double ellipsis_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_ellipsis_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((LayoutPartText)wrapper).GetEllipsis(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_effect_type_get_static_delegate == null) + { + efl_text_effect_type_get_static_delegate = new efl_text_effect_type_get_delegate(effect_type_get); } - return _ret_var; - } else { - return efl_text_ellipsis_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_ellipsis_get_delegate efl_text_ellipsis_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetEffectType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_effect_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_get_static_delegate) }); + } - private delegate void efl_text_ellipsis_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + if (efl_text_effect_type_set_static_delegate == null) + { + efl_text_effect_type_set_static_delegate = new efl_text_effect_type_set_delegate(effect_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEffectType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_effect_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_set_static_delegate) }); + } - public delegate void efl_text_ellipsis_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_ellipsis_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_ellipsis_set"); - private static void ellipsis_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_ellipsis_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetEllipsis( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_ellipsis_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_ellipsis_set_delegate efl_text_ellipsis_set_static_delegate; + if (efl_text_outline_color_get_static_delegate == null) + { + efl_text_outline_color_get_static_delegate = new efl_text_outline_color_get_delegate(outline_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetOutlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_outline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_get_static_delegate) }); + } - private delegate Efl.TextFormatWrap efl_text_wrap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_outline_color_set_static_delegate == null) + { + efl_text_outline_color_set_static_delegate = new efl_text_outline_color_set_delegate(outline_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetOutlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_outline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_set_static_delegate) }); + } - public delegate Efl.TextFormatWrap efl_text_wrap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_wrap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_wrap_get"); - private static Efl.TextFormatWrap wrap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_wrap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFormatWrap _ret_var = default(Efl.TextFormatWrap); - try { - _ret_var = ((LayoutPartText)wrapper).GetWrap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_shadow_direction_get_static_delegate == null) + { + efl_text_shadow_direction_get_static_delegate = new efl_text_shadow_direction_get_delegate(shadow_direction_get); } - return _ret_var; - } else { - return efl_text_wrap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_wrap_get_delegate efl_text_wrap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetShadowDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_get_static_delegate) }); + } - private delegate void efl_text_wrap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap); + if (efl_text_shadow_direction_set_static_delegate == null) + { + efl_text_shadow_direction_set_static_delegate = new efl_text_shadow_direction_set_delegate(shadow_direction_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetShadowDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_set_static_delegate) }); + } - public delegate void efl_text_wrap_set_api_delegate(System.IntPtr obj, Efl.TextFormatWrap wrap); - public static Efl.Eo.FunctionWrapper efl_text_wrap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_wrap_set"); - private static void wrap_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap) - { - Eina.Log.Debug("function efl_text_wrap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetWrap( wrap); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_wrap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), wrap); - } - } - private static efl_text_wrap_set_delegate efl_text_wrap_set_static_delegate; + if (efl_text_shadow_color_get_static_delegate == null) + { + efl_text_shadow_color_get_static_delegate = new efl_text_shadow_color_get_delegate(shadow_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetShadowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_multiline_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_shadow_color_set_static_delegate == null) + { + efl_text_shadow_color_set_static_delegate = new efl_text_shadow_color_set_delegate(shadow_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetShadowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_multiline_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_multiline_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_multiline_get"); - private static bool multiline_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_multiline_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartText)wrapper).GetMultiline(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_glow_color_get_static_delegate == null) + { + efl_text_glow_color_get_static_delegate = new efl_text_glow_color_get_delegate(glow_color_get); } - return _ret_var; - } else { - return efl_text_multiline_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_multiline_get_delegate efl_text_multiline_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetGlowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_get_static_delegate) }); + } - private delegate void efl_text_multiline_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + if (efl_text_glow_color_set_static_delegate == null) + { + efl_text_glow_color_set_static_delegate = new efl_text_glow_color_set_delegate(glow_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGlowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_set_static_delegate) }); + } - public delegate void efl_text_multiline_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_text_multiline_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_multiline_set"); - private static void multiline_set(System.IntPtr obj, System.IntPtr pd, bool enabled) - { - Eina.Log.Debug("function efl_text_multiline_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetMultiline( enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_multiline_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); - } - } - private static efl_text_multiline_set_delegate efl_text_multiline_set_static_delegate; + if (efl_text_glow2_color_get_static_delegate == null) + { + efl_text_glow2_color_get_static_delegate = new efl_text_glow2_color_get_delegate(glow2_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetGlow2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_get_static_delegate) }); + } - private delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_glow2_color_set_static_delegate == null) + { + efl_text_glow2_color_set_static_delegate = new efl_text_glow2_color_set_delegate(glow2_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGlow2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_set_static_delegate) }); + } - public delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_auto_type_get"); - private static Efl.TextFormatHorizontalAlignmentAutoType halign_auto_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_halign_auto_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFormatHorizontalAlignmentAutoType _ret_var = default(Efl.TextFormatHorizontalAlignmentAutoType); - try { - _ret_var = ((LayoutPartText)wrapper).GetHalignAutoType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_gfx_filter_get_static_delegate == null) + { + efl_text_gfx_filter_get_static_delegate = new efl_text_gfx_filter_get_delegate(gfx_filter_get); } - return _ret_var; - } else { - return efl_text_halign_auto_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_halign_auto_type_get_delegate efl_text_halign_auto_type_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetGfxFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_gfx_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_get_static_delegate) }); + } - private delegate void efl_text_halign_auto_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value); + if (efl_text_gfx_filter_set_static_delegate == null) + { + efl_text_gfx_filter_set_static_delegate = new efl_text_gfx_filter_set_delegate(gfx_filter_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGfxFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_gfx_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_set_static_delegate) }); + } - public delegate void efl_text_halign_auto_type_set_api_delegate(System.IntPtr obj, Efl.TextFormatHorizontalAlignmentAutoType value); - public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_auto_type_set"); - private static void halign_auto_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value) - { - Eina.Log.Debug("function efl_text_halign_auto_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetHalignAutoType( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_halign_auto_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.LayoutPartText.efl_canvas_layout_part_text_class_get(); } - } - private static efl_text_halign_auto_type_set_delegate efl_text_halign_auto_type_set_static_delegate; - - private delegate double efl_text_halign_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.Canvas.LayoutPartTextExpand efl_canvas_layout_part_text_expand_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Canvas.LayoutPartTextExpand efl_canvas_layout_part_text_expand_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_expand_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_expand_get"); + + private static Efl.Canvas.LayoutPartTextExpand text_expand_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_expand_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.LayoutPartTextExpand _ret_var = default(Efl.Canvas.LayoutPartTextExpand); + try + { + _ret_var = ((LayoutPartText)wrapper).GetTextExpand(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_text_halign_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_halign_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_get"); - private static double halign_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_halign_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((LayoutPartText)wrapper).GetHalign(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_halign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_layout_part_text_expand_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_halign_get_delegate efl_text_halign_get_static_delegate; - - private delegate void efl_text_halign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); - - - public delegate void efl_text_halign_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_halign_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_set"); - private static void halign_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_halign_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetHalign( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_halign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + private static efl_canvas_layout_part_text_expand_get_delegate efl_canvas_layout_part_text_expand_get_static_delegate; + + + private delegate void efl_canvas_layout_part_text_expand_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.LayoutPartTextExpand type); + + + public delegate void efl_canvas_layout_part_text_expand_set_api_delegate(System.IntPtr obj, Efl.Canvas.LayoutPartTextExpand type); + + public static Efl.Eo.FunctionWrapper efl_canvas_layout_part_text_expand_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_layout_part_text_expand_set"); + + private static void text_expand_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.LayoutPartTextExpand type) + { + Eina.Log.Debug("function efl_canvas_layout_part_text_expand_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetTextExpand(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_layout_part_text_expand_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } } - } - private static efl_text_halign_set_delegate efl_text_halign_set_static_delegate; + private static efl_canvas_layout_part_text_expand_set_delegate efl_canvas_layout_part_text_expand_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartText)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_text_valign_get_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - public delegate double efl_text_valign_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_valign_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_valign_get"); - private static double valign_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_valign_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((LayoutPartText)wrapper).GetValign(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_valign_get_delegate efl_text_valign_get_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; + + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + } + } - private delegate void efl_text_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + private static efl_text_set_delegate efl_text_set_static_delegate; + + + private delegate Efl.TextCursorCursor efl_text_cursor_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type); + + + public delegate Efl.TextCursorCursor efl_text_cursor_get_api_delegate(System.IntPtr obj, Efl.TextCursorGetType get_type); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_get"); + + private static Efl.TextCursorCursor text_cursor_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type) + { + Eina.Log.Debug("function efl_text_cursor_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); + try + { + _ret_var = ((LayoutPartText)wrapper).GetTextCursor(get_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_valign_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_valign_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_valign_set"); - private static void valign_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_valign_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetValign( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + else + { + return efl_text_cursor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), get_type); + } } - } - private static efl_text_valign_set_delegate efl_text_valign_set_static_delegate; - - private delegate double efl_text_linegap_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_cursor_get_delegate efl_text_cursor_get_static_delegate; + + + private delegate int efl_text_cursor_position_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate int efl_text_cursor_position_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_position_get"); + + private static int cursor_position_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartText)wrapper).GetCursorPosition(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_text_linegap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_linegap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linegap_get"); - private static double linegap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_linegap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((LayoutPartText)wrapper).GetLinegap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_linegap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_cursor_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_linegap_get_delegate efl_text_linegap_get_static_delegate; + private static efl_text_cursor_position_get_delegate efl_text_cursor_position_get_static_delegate; + + + private delegate void efl_text_cursor_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position); + + + public delegate void efl_text_cursor_position_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int position); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_position_set"); + + private static void cursor_position_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position) + { + Eina.Log.Debug("function efl_text_cursor_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetCursorPosition(cur, position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, position); + } + } - private delegate void efl_text_linegap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + private static efl_text_cursor_position_set_delegate efl_text_cursor_position_set_static_delegate; + + + private delegate Eina.Unicode efl_text_cursor_content_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate Eina.Unicode efl_text_cursor_content_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_content_get"); + + private static Eina.Unicode cursor_content_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Unicode _ret_var = default(Eina.Unicode); + try + { + _ret_var = ((LayoutPartText)wrapper).GetCursorContent(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_linegap_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_linegap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linegap_set"); - private static void linegap_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_linegap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetLinegap( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_linegap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + else + { + return efl_text_cursor_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_linegap_set_delegate efl_text_linegap_set_static_delegate; + private static efl_text_cursor_content_get_delegate efl_text_cursor_content_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_cursor_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_cursor_geometry_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_geometry_get"); + + private static bool cursor_geometry_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) + { + Eina.Log.Debug("function efl_text_cursor_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + cx = default(int); cy = default(int); cw = default(int); ch = default(int); cx2 = default(int); cy2 = default(int); cw2 = default(int); ch2 = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartText)wrapper).GetCursorGeometry(cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_text_linerelgap_get_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - public delegate double efl_text_linerelgap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_linerelgap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linerelgap_get"); - private static double linerelgap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_linerelgap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((LayoutPartText)wrapper).GetLinerelgap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_linerelgap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_cursor_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); + } } - } - private static efl_text_linerelgap_get_delegate efl_text_linerelgap_get_static_delegate; - - private delegate void efl_text_linerelgap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + private static efl_text_cursor_geometry_get_delegate efl_text_cursor_geometry_get_static_delegate; + + + private delegate Efl.TextCursorCursor efl_text_cursor_new_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextCursorCursor efl_text_cursor_new_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_new_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_new"); + + private static Efl.TextCursorCursor cursor_new(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_cursor_new was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); + try + { + _ret_var = ((LayoutPartText)wrapper).NewCursor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_linerelgap_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_linerelgap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linerelgap_set"); - private static void linerelgap_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_linerelgap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetLinerelgap( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_linerelgap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + else + { + return efl_text_cursor_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_linerelgap_set_delegate efl_text_linerelgap_set_static_delegate; + private static efl_text_cursor_new_delegate efl_text_cursor_new_static_delegate; + + + private delegate void efl_text_cursor_free_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_free_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_free_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_free"); + + private static void cursor_free(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_free was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorFree(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_free_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate int efl_text_tabstops_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_cursor_free_delegate efl_text_cursor_free_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_cursor_equal_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_cursor_equal_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_equal_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_equal"); + + private static bool cursor_equal(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) + { + Eina.Log.Debug("function efl_text_cursor_equal was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartText)wrapper).CursorEqual(cur1, cur2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_text_tabstops_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_tabstops_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_tabstops_get"); - private static int tabstops_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_tabstops_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartText)wrapper).GetTabstops(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_tabstops_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_cursor_equal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); + } } - } - private static efl_text_tabstops_get_delegate efl_text_tabstops_get_static_delegate; + private static efl_text_cursor_equal_delegate efl_text_cursor_equal_static_delegate; + + + private delegate int efl_text_cursor_compare_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + + public delegate int efl_text_cursor_compare_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_compare_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_compare"); + + private static int cursor_compare(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) + { + Eina.Log.Debug("function efl_text_cursor_compare was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartText)wrapper).CursorCompare(cur1, cur2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_tabstops_set_delegate(System.IntPtr obj, System.IntPtr pd, int value); + return _ret_var; + } + else + { + return efl_text_cursor_compare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); + } + } - public delegate void efl_text_tabstops_set_api_delegate(System.IntPtr obj, int value); - public static Efl.Eo.FunctionWrapper efl_text_tabstops_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_tabstops_set"); - private static void tabstops_set(System.IntPtr obj, System.IntPtr pd, int value) - { - Eina.Log.Debug("function efl_text_tabstops_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetTabstops( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_tabstops_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + private static efl_text_cursor_compare_delegate efl_text_cursor_compare_static_delegate; + + + private delegate void efl_text_cursor_copy_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); + + + public delegate void efl_text_cursor_copy_api_delegate(System.IntPtr obj, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_copy_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_copy"); + + private static void cursor_copy(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src) + { + Eina.Log.Debug("function efl_text_cursor_copy was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorCopy(dst, src); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dst, src); + } } - } - private static efl_text_tabstops_set_delegate efl_text_tabstops_set_static_delegate; + private static efl_text_cursor_copy_delegate efl_text_cursor_copy_static_delegate; + + + private delegate void efl_text_cursor_char_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_char_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_char_next_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_char_next"); + + private static void cursor_char_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_char_next was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorCharNext(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_char_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_password_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_cursor_char_next_delegate efl_text_cursor_char_next_static_delegate; + + + private delegate void efl_text_cursor_char_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_char_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_char_prev_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_char_prev"); + + private static void cursor_char_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_char_prev was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorCharPrev(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_char_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_char_prev_delegate efl_text_cursor_char_prev_static_delegate; + + + private delegate void efl_text_cursor_cluster_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_cluster_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_next_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_cluster_next"); + + private static void cursor_cluster_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_cluster_next was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorClusterNext(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_cluster_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_password_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_password_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_password_get"); - private static bool password_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_password_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartText)wrapper).GetPassword(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_cursor_cluster_next_delegate efl_text_cursor_cluster_next_static_delegate; + + + private delegate void efl_text_cursor_cluster_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_cluster_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_prev_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_cluster_prev"); + + private static void cursor_cluster_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_cluster_prev was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorClusterPrev(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_cluster_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); } - return _ret_var; - } else { - return efl_text_password_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_password_get_delegate efl_text_password_get_static_delegate; + private static efl_text_cursor_cluster_prev_delegate efl_text_cursor_cluster_prev_static_delegate; + + + private delegate void efl_text_cursor_paragraph_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_first_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_char_first"); + + private static void cursor_paragraph_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_char_first was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorParagraphCharFirst(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_password_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + private static efl_text_cursor_paragraph_char_first_delegate efl_text_cursor_paragraph_char_first_static_delegate; + + + private delegate void efl_text_cursor_paragraph_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_last_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_char_last"); + + private static void cursor_paragraph_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_char_last was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorParagraphCharLast(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_paragraph_char_last_delegate efl_text_cursor_paragraph_char_last_static_delegate; + + + private delegate void efl_text_cursor_word_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_word_start_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_word_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_word_start"); + + private static void cursor_word_start(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_word_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorWordStart(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_word_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - public delegate void efl_text_password_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_text_password_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_password_set"); - private static void password_set(System.IntPtr obj, System.IntPtr pd, bool enabled) - { - Eina.Log.Debug("function efl_text_password_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetPassword( enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_password_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); + private static efl_text_cursor_word_start_delegate efl_text_cursor_word_start_static_delegate; + + + private delegate void efl_text_cursor_word_end_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_word_end_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_word_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_word_end"); + + private static void cursor_word_end(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_word_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorWordEnd(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_word_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_password_set_delegate efl_text_password_set_static_delegate; + private static efl_text_cursor_word_end_delegate efl_text_cursor_word_end_static_delegate; + + + private delegate void efl_text_cursor_line_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_line_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_first_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_line_char_first"); + + private static void cursor_line_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_line_char_first was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorLineCharFirst(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_line_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_replacement_char_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_cursor_line_char_first_delegate efl_text_cursor_line_char_first_static_delegate; + + + private delegate void efl_text_cursor_line_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_line_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_last_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_line_char_last"); + + private static void cursor_line_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_line_char_last was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorLineCharLast(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_line_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_line_char_last_delegate efl_text_cursor_line_char_last_static_delegate; + + + private delegate void efl_text_cursor_paragraph_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_first_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_first"); + + private static void cursor_paragraph_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_first was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorParagraphFirst(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_replacement_char_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_replacement_char_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_replacement_char_get"); - private static System.String replacement_char_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_replacement_char_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartText)wrapper).GetReplacementChar(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_cursor_paragraph_first_delegate efl_text_cursor_paragraph_first_static_delegate; + + + private delegate void efl_text_cursor_paragraph_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_last_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_last"); + + private static void cursor_paragraph_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_last was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorParagraphLast(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); } - return _ret_var; - } else { - return efl_text_replacement_char_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_replacement_char_get_delegate efl_text_replacement_char_get_static_delegate; + private static efl_text_cursor_paragraph_last_delegate efl_text_cursor_paragraph_last_static_delegate; + + + private delegate void efl_text_cursor_paragraph_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_next_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_next"); + + private static void cursor_paragraph_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_next was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorParagraphNext(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_replacement_char_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + private static efl_text_cursor_paragraph_next_delegate efl_text_cursor_paragraph_next_static_delegate; + + + private delegate void efl_text_cursor_paragraph_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_prev_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_prev"); + + private static void cursor_paragraph_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_prev was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorParagraphPrev(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_paragraph_prev_delegate efl_text_cursor_paragraph_prev_static_delegate; + + + private delegate void efl_text_cursor_line_jump_by_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by); + + + public delegate void efl_text_cursor_line_jump_by_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int by); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_line_jump_by_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_line_jump_by"); + + private static void cursor_line_jump_by(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by) + { + Eina.Log.Debug("function efl_text_cursor_line_jump_by was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorLineJumpBy(cur, by); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_line_jump_by_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, by); + } + } - public delegate void efl_text_replacement_char_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); - public static Efl.Eo.FunctionWrapper efl_text_replacement_char_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_replacement_char_set"); - private static void replacement_char_set(System.IntPtr obj, System.IntPtr pd, System.String repch) - { - Eina.Log.Debug("function efl_text_replacement_char_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetReplacementChar( repch); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_replacement_char_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repch); + private static efl_text_cursor_line_jump_by_delegate efl_text_cursor_line_jump_by_static_delegate; + + + private delegate void efl_text_cursor_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + + + public delegate void efl_text_cursor_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_coord_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_coord_set"); + + private static void cursor_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) + { + Eina.Log.Debug("function efl_text_cursor_coord_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetCursorCoord(cur, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); + } } - } - private static efl_text_replacement_char_set_delegate efl_text_replacement_char_set_static_delegate; + private static efl_text_cursor_coord_set_delegate efl_text_cursor_coord_set_static_delegate; + + + private delegate void efl_text_cursor_cluster_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + + + public delegate void efl_text_cursor_cluster_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_coord_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_cluster_coord_set"); + + private static void cursor_cluster_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) + { + Eina.Log.Debug("function efl_text_cursor_cluster_coord_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetCursorClusterCoord(cur, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_cluster_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_cursor_cluster_coord_set_delegate efl_text_cursor_cluster_coord_set_static_delegate; + + + private delegate int efl_text_cursor_text_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + + public delegate int efl_text_cursor_text_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_text_insert_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_text_insert"); + + private static int cursor_text_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String text) + { + Eina.Log.Debug("function efl_text_cursor_text_insert was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartText)wrapper).CursorTextInsert(cur, text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_get"); - private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_markup_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartText)wrapper).GetMarkup(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_cursor_text_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, text); + } } - } - private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; + private static efl_text_cursor_text_insert_delegate efl_text_cursor_text_insert_static_delegate; + + + private delegate void efl_text_cursor_char_delete_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_char_delete_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_char_delete_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_char_delete"); + + private static void cursor_char_delete(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_char_delete was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorCharDelete(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_char_delete_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + private static efl_text_cursor_char_delete_delegate efl_text_cursor_char_delete_static_delegate; + + private delegate void efl_text_font_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); - public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_set"); - private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetMarkup( markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); - } - } - private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + + public delegate void efl_text_font_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + public static Efl.Eo.FunctionWrapper efl_text_font_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_get"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] private delegate System.String efl_text_markup_interactive_markup_range_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + private static void font_get(System.IntPtr obj, System.IntPtr pd, out System.String font, out Efl.Font.Size size) + { + Eina.Log.Debug("function efl_text_font_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_font = default(System.String); + size = default(Efl.Font.Size); + try + { + ((LayoutPartText)wrapper).GetFont(out _out_font, out size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + font = _out_font; + + } + else + { + efl_text_font_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out font, out size); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] public delegate System.String efl_text_markup_interactive_markup_range_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end); - public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_markup_range_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_interactive_markup_range_get"); - private static System.String markup_range_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end) - { - Eina.Log.Debug("function efl_text_markup_interactive_markup_range_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartText)wrapper).GetMarkupRange( start, end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_font_get_delegate efl_text_font_get_static_delegate; + + + private delegate void efl_text_font_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + + + public delegate void efl_text_font_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + + public static Efl.Eo.FunctionWrapper efl_text_font_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_set"); + + private static void font_set(System.IntPtr obj, System.IntPtr pd, System.String font, Efl.Font.Size size) + { + Eina.Log.Debug("function efl_text_font_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetFont(font, size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font, size); } - return _ret_var; - } else { - return efl_text_markup_interactive_markup_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); } - } - private static efl_text_markup_interactive_markup_range_get_delegate efl_text_markup_interactive_markup_range_get_static_delegate; + private static efl_text_font_set_delegate efl_text_font_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_source_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_source_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_source_get"); + + private static System.String font_source_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_source_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartText)wrapper).GetFontSource(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_markup_interactive_markup_range_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] System.String markup); + return _ret_var; + } + else + { + return efl_text_font_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_markup_interactive_markup_range_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_markup_range_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_interactive_markup_range_set"); - private static void markup_range_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_interactive_markup_range_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetMarkupRange( start, end, markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_markup_interactive_markup_range_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end, markup); + private static efl_text_font_source_get_delegate efl_text_font_source_get_static_delegate; + + + private delegate void efl_text_font_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + + + public delegate void efl_text_font_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + + public static Efl.Eo.FunctionWrapper efl_text_font_source_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_source_set"); + + private static void font_source_set(System.IntPtr obj, System.IntPtr pd, System.String font_source) + { + Eina.Log.Debug("function efl_text_font_source_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetFontSource(font_source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_source); + } } - } - private static efl_text_markup_interactive_markup_range_set_delegate efl_text_markup_interactive_markup_range_set_static_delegate; + private static efl_text_font_source_set_delegate efl_text_font_source_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_fallbacks_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_fallbacks_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_fallbacks_get"); + + private static System.String font_fallbacks_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_fallbacks_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartText)wrapper).GetFontFallbacks(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_markup_interactive_cursor_markup_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + return _ret_var; + } + else + { + return efl_text_font_fallbacks_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_markup_interactive_cursor_markup_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_cursor_markup_insert_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_interactive_cursor_markup_insert"); - private static void cursor_markup_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_interactive_cursor_markup_insert was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).CursorMarkupInsert( cur, markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_markup_interactive_cursor_markup_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, markup); + private static efl_text_font_fallbacks_get_delegate efl_text_font_fallbacks_get_static_delegate; + + + private delegate void efl_text_font_fallbacks_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + + + public delegate void efl_text_font_fallbacks_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + + public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_fallbacks_set"); + + private static void font_fallbacks_set(System.IntPtr obj, System.IntPtr pd, System.String font_fallbacks) + { + Eina.Log.Debug("function efl_text_font_fallbacks_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetFontFallbacks(font_fallbacks); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_fallbacks_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_fallbacks); + } } - } - private static efl_text_markup_interactive_cursor_markup_insert_delegate efl_text_markup_interactive_cursor_markup_insert_static_delegate; + private static efl_text_font_fallbacks_set_delegate efl_text_font_fallbacks_set_static_delegate; + + + private delegate Efl.TextFontWeight efl_text_font_weight_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontWeight efl_text_font_weight_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_weight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_weight_get"); + + private static Efl.TextFontWeight font_weight_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_weight_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontWeight _ret_var = default(Efl.TextFontWeight); + try + { + _ret_var = ((LayoutPartText)wrapper).GetFontWeight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_normal_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + return _ret_var; + } + else + { + return efl_text_font_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_normal_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_normal_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_normal_color_get"); - private static void normal_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_normal_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((LayoutPartText)wrapper).GetNormalColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_normal_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + private static efl_text_font_weight_get_delegate efl_text_font_weight_get_static_delegate; + + + private delegate void efl_text_font_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight); + + + public delegate void efl_text_font_weight_set_api_delegate(System.IntPtr obj, Efl.TextFontWeight font_weight); + + public static Efl.Eo.FunctionWrapper efl_text_font_weight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_weight_set"); + + private static void font_weight_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight) + { + Eina.Log.Debug("function efl_text_font_weight_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetFontWeight(font_weight); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_weight); + } } - } - private static efl_text_normal_color_get_delegate efl_text_normal_color_get_static_delegate; + private static efl_text_font_weight_set_delegate efl_text_font_weight_set_static_delegate; + + + private delegate Efl.TextFontSlant efl_text_font_slant_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontSlant efl_text_font_slant_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_slant_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_slant_get"); + + private static Efl.TextFontSlant font_slant_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_slant_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontSlant _ret_var = default(Efl.TextFontSlant); + try + { + _ret_var = ((LayoutPartText)wrapper).GetFontSlant(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_normal_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + return _ret_var; + } + else + { + return efl_text_font_slant_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_normal_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_normal_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_normal_color_set"); - private static void normal_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_normal_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetNormalColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_normal_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + private static efl_text_font_slant_get_delegate efl_text_font_slant_get_static_delegate; + + + private delegate void efl_text_font_slant_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style); + + + public delegate void efl_text_font_slant_set_api_delegate(System.IntPtr obj, Efl.TextFontSlant style); + + public static Efl.Eo.FunctionWrapper efl_text_font_slant_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_slant_set"); + + private static void font_slant_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style) + { + Eina.Log.Debug("function efl_text_font_slant_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetFontSlant(style); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_slant_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); + } } - } - private static efl_text_normal_color_set_delegate efl_text_normal_color_set_static_delegate; + private static efl_text_font_slant_set_delegate efl_text_font_slant_set_static_delegate; + + + private delegate Efl.TextFontWidth efl_text_font_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontWidth efl_text_font_width_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_width_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_width_get"); + + private static Efl.TextFontWidth font_width_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_width_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontWidth _ret_var = default(Efl.TextFontWidth); + try + { + _ret_var = ((LayoutPartText)wrapper).GetFontWidth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.TextStyleBackingType efl_text_backing_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_text_font_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.TextStyleBackingType efl_text_backing_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_backing_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_type_get"); - private static Efl.TextStyleBackingType backing_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_backing_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleBackingType _ret_var = default(Efl.TextStyleBackingType); - try { - _ret_var = ((LayoutPartText)wrapper).GetBackingType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_font_width_get_delegate efl_text_font_width_get_static_delegate; + + + private delegate void efl_text_font_width_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width); + + + public delegate void efl_text_font_width_set_api_delegate(System.IntPtr obj, Efl.TextFontWidth width); + + public static Efl.Eo.FunctionWrapper efl_text_font_width_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_width_set"); + + private static void font_width_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width) + { + Eina.Log.Debug("function efl_text_font_width_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetFontWidth(width); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); } - return _ret_var; - } else { - return efl_text_backing_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_backing_type_get_delegate efl_text_backing_type_get_static_delegate; + private static efl_text_font_width_set_delegate efl_text_font_width_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_lang_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_lang_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_lang_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_lang_get"); + + private static System.String font_lang_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_lang_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartText)wrapper).GetFontLang(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_backing_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type); + return _ret_var; + } + else + { + return efl_text_font_lang_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_backing_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleBackingType type); - public static Efl.Eo.FunctionWrapper efl_text_backing_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_type_set"); - private static void backing_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type) - { - Eina.Log.Debug("function efl_text_backing_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetBackingType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_backing_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + private static efl_text_font_lang_get_delegate efl_text_font_lang_get_static_delegate; + + + private delegate void efl_text_font_lang_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + + + public delegate void efl_text_font_lang_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + + public static Efl.Eo.FunctionWrapper efl_text_font_lang_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_lang_set"); + + private static void font_lang_set(System.IntPtr obj, System.IntPtr pd, System.String lang) + { + Eina.Log.Debug("function efl_text_font_lang_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetFontLang(lang); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_lang_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang); + } } - } - private static efl_text_backing_type_set_delegate efl_text_backing_type_set_static_delegate; + private static efl_text_font_lang_set_delegate efl_text_font_lang_set_static_delegate; + + + private delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_bitmap_scalable_get"); + + private static Efl.TextFontBitmapScalable font_bitmap_scalable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_bitmap_scalable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontBitmapScalable _ret_var = default(Efl.TextFontBitmapScalable); + try + { + _ret_var = ((LayoutPartText)wrapper).GetFontBitmapScalable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_backing_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + return _ret_var; + } + else + { + return efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_backing_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_backing_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_color_get"); - private static void backing_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_backing_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((LayoutPartText)wrapper).GetBackingColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_backing_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + private static efl_text_font_bitmap_scalable_get_delegate efl_text_font_bitmap_scalable_get_static_delegate; + + + private delegate void efl_text_font_bitmap_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable); + + + public delegate void efl_text_font_bitmap_scalable_set_api_delegate(System.IntPtr obj, Efl.TextFontBitmapScalable scalable); + + public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_bitmap_scalable_set"); + + private static void font_bitmap_scalable_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable) + { + Eina.Log.Debug("function efl_text_font_bitmap_scalable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetFontBitmapScalable(scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scalable); + } } - } - private static efl_text_backing_color_get_delegate efl_text_backing_color_get_static_delegate; + private static efl_text_font_bitmap_scalable_set_delegate efl_text_font_bitmap_scalable_set_static_delegate; + + + private delegate double efl_text_ellipsis_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_ellipsis_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_ellipsis_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_ellipsis_get"); + + private static double ellipsis_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_ellipsis_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((LayoutPartText)wrapper).GetEllipsis(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_backing_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + return _ret_var; + } + else + { + return efl_text_ellipsis_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_backing_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_backing_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_color_set"); - private static void backing_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_backing_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetBackingColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_backing_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + private static efl_text_ellipsis_get_delegate efl_text_ellipsis_get_static_delegate; + + + private delegate void efl_text_ellipsis_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_ellipsis_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_ellipsis_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_ellipsis_set"); + + private static void ellipsis_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_ellipsis_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetEllipsis(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_ellipsis_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } } - } - private static efl_text_backing_color_set_delegate efl_text_backing_color_set_static_delegate; + private static efl_text_ellipsis_set_delegate efl_text_ellipsis_set_static_delegate; + + + private delegate Efl.TextFormatWrap efl_text_wrap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFormatWrap efl_text_wrap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_wrap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_wrap_get"); + + private static Efl.TextFormatWrap wrap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_wrap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFormatWrap _ret_var = default(Efl.TextFormatWrap); + try + { + _ret_var = ((LayoutPartText)wrapper).GetWrap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_text_wrap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_type_get"); - private static Efl.TextStyleUnderlineType underline_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleUnderlineType _ret_var = default(Efl.TextStyleUnderlineType); - try { - _ret_var = ((LayoutPartText)wrapper).GetUnderlineType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_wrap_get_delegate efl_text_wrap_get_static_delegate; + + + private delegate void efl_text_wrap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap); + + + public delegate void efl_text_wrap_set_api_delegate(System.IntPtr obj, Efl.TextFormatWrap wrap); + + public static Efl.Eo.FunctionWrapper efl_text_wrap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_wrap_set"); + + private static void wrap_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap) + { + Eina.Log.Debug("function efl_text_wrap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetWrap(wrap); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_wrap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), wrap); } - return _ret_var; - } else { - return efl_text_underline_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_underline_type_get_delegate efl_text_underline_type_get_static_delegate; + private static efl_text_wrap_set_delegate efl_text_wrap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_multiline_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_multiline_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_multiline_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_multiline_get"); + + private static bool multiline_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_multiline_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartText)wrapper).GetMultiline(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type); + return _ret_var; + } + else + { + return efl_text_multiline_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_underline_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleUnderlineType type); - public static Efl.Eo.FunctionWrapper efl_text_underline_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_type_set"); - private static void underline_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type) - { - Eina.Log.Debug("function efl_text_underline_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetUnderlineType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + private static efl_text_multiline_get_delegate efl_text_multiline_get_static_delegate; + + + private delegate void efl_text_multiline_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + + public delegate void efl_text_multiline_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public static Efl.Eo.FunctionWrapper efl_text_multiline_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_multiline_set"); + + private static void multiline_set(System.IntPtr obj, System.IntPtr pd, bool enabled) + { + Eina.Log.Debug("function efl_text_multiline_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetMultiline(enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_multiline_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); + } } - } - private static efl_text_underline_type_set_delegate efl_text_underline_type_set_static_delegate; + private static efl_text_multiline_set_delegate efl_text_multiline_set_static_delegate; + + + private delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_auto_type_get"); + + private static Efl.TextFormatHorizontalAlignmentAutoType halign_auto_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_halign_auto_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFormatHorizontalAlignmentAutoType _ret_var = default(Efl.TextFormatHorizontalAlignmentAutoType); + try + { + _ret_var = ((LayoutPartText)wrapper).GetHalignAutoType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + return _ret_var; + } + else + { + return efl_text_halign_auto_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_underline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_color_get"); - private static void underline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((LayoutPartText)wrapper).GetUnderlineColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + private static efl_text_halign_auto_type_get_delegate efl_text_halign_auto_type_get_static_delegate; + + + private delegate void efl_text_halign_auto_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value); + + + public delegate void efl_text_halign_auto_type_set_api_delegate(System.IntPtr obj, Efl.TextFormatHorizontalAlignmentAutoType value); + + public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_auto_type_set"); + + private static void halign_auto_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value) + { + Eina.Log.Debug("function efl_text_halign_auto_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetHalignAutoType(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_halign_auto_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } } - } - private static efl_text_underline_color_get_delegate efl_text_underline_color_get_static_delegate; + private static efl_text_halign_auto_type_set_delegate efl_text_halign_auto_type_set_static_delegate; + + + private delegate double efl_text_halign_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_halign_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_halign_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_get"); + + private static double halign_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_halign_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((LayoutPartText)wrapper).GetHalign(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + return _ret_var; + } + else + { + return efl_text_halign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_underline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_color_set"); - private static void underline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetUnderlineColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + private static efl_text_halign_get_delegate efl_text_halign_get_static_delegate; + + + private delegate void efl_text_halign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_halign_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_halign_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_set"); + + private static void halign_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_halign_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetHalign(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_halign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } } - } - private static efl_text_underline_color_set_delegate efl_text_underline_color_set_static_delegate; + private static efl_text_halign_set_delegate efl_text_halign_set_static_delegate; + + + private delegate double efl_text_valign_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_valign_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_valign_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_valign_get"); + + private static double valign_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_valign_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((LayoutPartText)wrapper).GetValign(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_text_underline_height_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_text_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate double efl_text_underline_height_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_height_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_height_get"); - private static double underline_height_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_height_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((LayoutPartText)wrapper).GetUnderlineHeight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_valign_get_delegate efl_text_valign_get_static_delegate; + + + private delegate void efl_text_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_valign_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_valign_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_valign_set"); + + private static void valign_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_valign_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetValign(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } + } + + private static efl_text_valign_set_delegate efl_text_valign_set_static_delegate; + + + private delegate double efl_text_linegap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_linegap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_linegap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linegap_get"); + + private static double linegap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_linegap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((LayoutPartText)wrapper).GetLinegap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_underline_height_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_linegap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_height_get_delegate efl_text_underline_height_get_static_delegate; + private static efl_text_linegap_get_delegate efl_text_linegap_get_static_delegate; + + + private delegate void efl_text_linegap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_linegap_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_linegap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linegap_set"); + + private static void linegap_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_linegap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetLinegap(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_linegap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } - private delegate void efl_text_underline_height_set_delegate(System.IntPtr obj, System.IntPtr pd, double height); + private static efl_text_linegap_set_delegate efl_text_linegap_set_static_delegate; + + + private delegate double efl_text_linerelgap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_linerelgap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_linerelgap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linerelgap_get"); + + private static double linerelgap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_linerelgap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((LayoutPartText)wrapper).GetLinerelgap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_underline_height_set_api_delegate(System.IntPtr obj, double height); - public static Efl.Eo.FunctionWrapper efl_text_underline_height_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_height_set"); - private static void underline_height_set(System.IntPtr obj, System.IntPtr pd, double height) - { - Eina.Log.Debug("function efl_text_underline_height_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetUnderlineHeight( height); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_height_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), height); + } + else + { + return efl_text_linerelgap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_height_set_delegate efl_text_underline_height_set_static_delegate; + private static efl_text_linerelgap_get_delegate efl_text_linerelgap_get_static_delegate; + + + private delegate void efl_text_linerelgap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_linerelgap_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_linerelgap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linerelgap_set"); + + private static void linerelgap_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_linerelgap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetLinerelgap(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_linerelgap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } - private delegate void efl_text_underline_dashed_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static efl_text_linerelgap_set_delegate efl_text_linerelgap_set_static_delegate; + + + private delegate int efl_text_tabstops_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_tabstops_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_tabstops_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_tabstops_get"); + + private static int tabstops_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_tabstops_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartText)wrapper).GetTabstops(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_underline_dashed_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_color_get"); - private static void underline_dashed_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline_dashed_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((LayoutPartText)wrapper).GetUnderlineDashedColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + else + { + return efl_text_tabstops_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_dashed_color_get_delegate efl_text_underline_dashed_color_get_static_delegate; + private static efl_text_tabstops_get_delegate efl_text_tabstops_get_static_delegate; + + + private delegate void efl_text_tabstops_set_delegate(System.IntPtr obj, System.IntPtr pd, int value); + + + public delegate void efl_text_tabstops_set_api_delegate(System.IntPtr obj, int value); + + public static Efl.Eo.FunctionWrapper efl_text_tabstops_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_tabstops_set"); + + private static void tabstops_set(System.IntPtr obj, System.IntPtr pd, int value) + { + Eina.Log.Debug("function efl_text_tabstops_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetTabstops(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_tabstops_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } - private delegate void efl_text_underline_dashed_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + private static efl_text_tabstops_set_delegate efl_text_tabstops_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_password_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_password_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_password_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_password_get"); + + private static bool password_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_password_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartText)wrapper).GetPassword(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_underline_dashed_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_color_set"); - private static void underline_dashed_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline_dashed_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetUnderlineDashedColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + else + { + return efl_text_password_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_dashed_color_set_delegate efl_text_underline_dashed_color_set_static_delegate; + private static efl_text_password_get_delegate efl_text_password_get_static_delegate; + + + private delegate void efl_text_password_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + + public delegate void efl_text_password_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public static Efl.Eo.FunctionWrapper efl_text_password_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_password_set"); + + private static void password_set(System.IntPtr obj, System.IntPtr pd, bool enabled) + { + Eina.Log.Debug("function efl_text_password_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetPassword(enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_password_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); + } + } - private delegate int efl_text_underline_dashed_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_password_set_delegate efl_text_password_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_replacement_char_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_replacement_char_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_replacement_char_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_replacement_char_get"); + + private static System.String replacement_char_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_replacement_char_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartText)wrapper).GetReplacementChar(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_text_underline_dashed_width_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_width_get"); - private static int underline_dashed_width_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_dashed_width_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartText)wrapper).GetUnderlineDashedWidth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_underline_dashed_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_replacement_char_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_dashed_width_get_delegate efl_text_underline_dashed_width_get_static_delegate; + private static efl_text_replacement_char_get_delegate efl_text_replacement_char_get_static_delegate; + + + private delegate void efl_text_replacement_char_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + + + public delegate void efl_text_replacement_char_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + + public static Efl.Eo.FunctionWrapper efl_text_replacement_char_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_replacement_char_set"); + + private static void replacement_char_set(System.IntPtr obj, System.IntPtr pd, System.String repch) + { + Eina.Log.Debug("function efl_text_replacement_char_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetReplacementChar(repch); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_replacement_char_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repch); + } + } - private delegate void efl_text_underline_dashed_width_set_delegate(System.IntPtr obj, System.IntPtr pd, int width); + private static efl_text_replacement_char_set_delegate efl_text_replacement_char_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); + + private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_markup_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartText)wrapper).GetMarkup(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_underline_dashed_width_set_api_delegate(System.IntPtr obj, int width); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_width_set"); - private static void underline_dashed_width_set(System.IntPtr obj, System.IntPtr pd, int width) - { - Eina.Log.Debug("function efl_text_underline_dashed_width_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetUnderlineDashedWidth( width); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); + } + else + { + return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_dashed_width_set_delegate efl_text_underline_dashed_width_set_static_delegate; + private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; + + + private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + + public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); + + private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetMarkup(markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); + } + } - private delegate int efl_text_underline_dashed_gap_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + private delegate System.String efl_text_markup_interactive_markup_range_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + public delegate System.String efl_text_markup_interactive_markup_range_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + + public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_markup_range_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_interactive_markup_range_get"); + + private static System.String markup_range_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end) + { + Eina.Log.Debug("function efl_text_markup_interactive_markup_range_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartText)wrapper).GetMarkupRange(start, end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_text_underline_dashed_gap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_gap_get"); - private static int underline_dashed_gap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_dashed_gap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartText)wrapper).GetUnderlineDashedGap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_underline_dashed_gap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_markup_interactive_markup_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); + } } - } - private static efl_text_underline_dashed_gap_get_delegate efl_text_underline_dashed_gap_get_static_delegate; - - - private delegate void efl_text_underline_dashed_gap_set_delegate(System.IntPtr obj, System.IntPtr pd, int gap); + private static efl_text_markup_interactive_markup_range_get_delegate efl_text_markup_interactive_markup_range_get_static_delegate; + + + private delegate void efl_text_markup_interactive_markup_range_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] System.String markup); + + + public delegate void efl_text_markup_interactive_markup_range_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] System.String markup); + + public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_markup_range_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_interactive_markup_range_set"); + + private static void markup_range_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_interactive_markup_range_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetMarkupRange(start, end, markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_interactive_markup_range_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end, markup); + } + } - public delegate void efl_text_underline_dashed_gap_set_api_delegate(System.IntPtr obj, int gap); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_gap_set"); - private static void underline_dashed_gap_set(System.IntPtr obj, System.IntPtr pd, int gap) - { - Eina.Log.Debug("function efl_text_underline_dashed_gap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetUnderlineDashedGap( gap); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_gap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gap); + private static efl_text_markup_interactive_markup_range_set_delegate efl_text_markup_interactive_markup_range_set_static_delegate; + + + private delegate void efl_text_markup_interactive_cursor_markup_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + + public delegate void efl_text_markup_interactive_cursor_markup_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_cursor_markup_insert_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_interactive_cursor_markup_insert"); + + private static void cursor_markup_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_interactive_cursor_markup_insert was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).CursorMarkupInsert(cur, markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_interactive_cursor_markup_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, markup); + } } - } - private static efl_text_underline_dashed_gap_set_delegate efl_text_underline_dashed_gap_set_static_delegate; + private static efl_text_markup_interactive_cursor_markup_insert_delegate efl_text_markup_interactive_cursor_markup_insert_static_delegate; + + + private delegate void efl_text_normal_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_normal_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_normal_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_normal_color_get"); + + private static void normal_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_normal_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((LayoutPartText)wrapper).GetNormalColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + } + else + { + efl_text_normal_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_text_normal_color_get_delegate efl_text_normal_color_get_static_delegate; + + + private delegate void efl_text_normal_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_normal_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_normal_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_normal_color_set"); + + private static void normal_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_normal_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetNormalColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_underline2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline2_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline2_color_get"); - private static void underline2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline2_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((LayoutPartText)wrapper).GetUnderline2Color( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + + } + else + { + efl_text_normal_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } } - } - private static efl_text_underline2_color_get_delegate efl_text_underline2_color_get_static_delegate; + private static efl_text_normal_color_set_delegate efl_text_normal_color_set_static_delegate; + + + private delegate Efl.TextStyleBackingType efl_text_backing_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleBackingType efl_text_backing_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_backing_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_type_get"); + + private static Efl.TextStyleBackingType backing_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_backing_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleBackingType _ret_var = default(Efl.TextStyleBackingType); + try + { + _ret_var = ((LayoutPartText)wrapper).GetBackingType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + return _ret_var; + } + else + { + return efl_text_backing_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_underline2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline2_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline2_color_set"); - private static void underline2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline2_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetUnderline2Color( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + private static efl_text_backing_type_get_delegate efl_text_backing_type_get_static_delegate; + + + private delegate void efl_text_backing_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type); + + + public delegate void efl_text_backing_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleBackingType type); + + public static Efl.Eo.FunctionWrapper efl_text_backing_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_type_set"); + + private static void backing_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type) + { + Eina.Log.Debug("function efl_text_backing_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetBackingType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_backing_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } } - } - private static efl_text_underline2_color_set_delegate efl_text_underline2_color_set_static_delegate; + private static efl_text_backing_type_set_delegate efl_text_backing_type_set_static_delegate; + + + private delegate void efl_text_backing_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_backing_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_backing_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_color_get"); + + private static void backing_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_backing_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((LayoutPartText)wrapper).GetBackingColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_text_backing_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_text_backing_color_get_delegate efl_text_backing_color_get_static_delegate; + + + private delegate void efl_text_backing_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_backing_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_backing_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_color_set"); + + private static void backing_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_backing_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetBackingColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_type_get"); - private static Efl.TextStyleStrikethroughType strikethrough_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_strikethrough_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleStrikethroughType _ret_var = default(Efl.TextStyleStrikethroughType); - try { - _ret_var = ((LayoutPartText)wrapper).GetStrikethroughType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_text_backing_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); } - return _ret_var; - } else { - return efl_text_strikethrough_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_strikethrough_type_get_delegate efl_text_strikethrough_type_get_static_delegate; + private static efl_text_backing_color_set_delegate efl_text_backing_color_set_static_delegate; + + + private delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_type_get"); + + private static Efl.TextStyleUnderlineType underline_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleUnderlineType _ret_var = default(Efl.TextStyleUnderlineType); + try + { + _ret_var = ((LayoutPartText)wrapper).GetUnderlineType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_strikethrough_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type); + return _ret_var; + } + else + { + return efl_text_underline_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_strikethrough_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleStrikethroughType type); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_type_set"); - private static void strikethrough_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type) - { - Eina.Log.Debug("function efl_text_strikethrough_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetStrikethroughType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_strikethrough_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + private static efl_text_underline_type_get_delegate efl_text_underline_type_get_static_delegate; + + + private delegate void efl_text_underline_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type); + + + public delegate void efl_text_underline_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleUnderlineType type); + + public static Efl.Eo.FunctionWrapper efl_text_underline_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_type_set"); + + private static void underline_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type) + { + Eina.Log.Debug("function efl_text_underline_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetUnderlineType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } } - } - private static efl_text_strikethrough_type_set_delegate efl_text_strikethrough_type_set_static_delegate; + private static efl_text_underline_type_set_delegate efl_text_underline_type_set_static_delegate; + + + private delegate void efl_text_underline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_color_get"); + + private static void underline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((LayoutPartText)wrapper).GetUnderlineColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_strikethrough_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + } + else + { + efl_text_underline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_text_underline_color_get_delegate efl_text_underline_color_get_static_delegate; + + + private delegate void efl_text_underline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_color_set"); + + private static void underline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetUnderlineColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_strikethrough_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_color_get"); - private static void strikethrough_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_strikethrough_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((LayoutPartText)wrapper).GetStrikethroughColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_strikethrough_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + + } + else + { + efl_text_underline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } } - } - private static efl_text_strikethrough_color_get_delegate efl_text_strikethrough_color_get_static_delegate; + private static efl_text_underline_color_set_delegate efl_text_underline_color_set_static_delegate; + + + private delegate double efl_text_underline_height_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_underline_height_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_height_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_height_get"); + + private static double underline_height_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_height_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((LayoutPartText)wrapper).GetUnderlineHeight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_strikethrough_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + return _ret_var; + } + else + { + return efl_text_underline_height_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_strikethrough_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_color_set"); - private static void strikethrough_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_strikethrough_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetStrikethroughColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_strikethrough_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + private static efl_text_underline_height_get_delegate efl_text_underline_height_get_static_delegate; + + + private delegate void efl_text_underline_height_set_delegate(System.IntPtr obj, System.IntPtr pd, double height); + + + public delegate void efl_text_underline_height_set_api_delegate(System.IntPtr obj, double height); + + public static Efl.Eo.FunctionWrapper efl_text_underline_height_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_height_set"); + + private static void underline_height_set(System.IntPtr obj, System.IntPtr pd, double height) + { + Eina.Log.Debug("function efl_text_underline_height_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetUnderlineHeight(height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_height_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), height); + } } - } - private static efl_text_strikethrough_color_set_delegate efl_text_strikethrough_color_set_static_delegate; + private static efl_text_underline_height_set_delegate efl_text_underline_height_set_static_delegate; + + + private delegate void efl_text_underline_dashed_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline_dashed_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_color_get"); + + private static void underline_dashed_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline_dashed_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((LayoutPartText)wrapper).GetUnderlineDashedColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.TextStyleEffectType efl_text_effect_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_text_underline_dashed_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_text_underline_dashed_color_get_delegate efl_text_underline_dashed_color_get_static_delegate; + + + private delegate void efl_text_underline_dashed_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline_dashed_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_color_set"); + + private static void underline_dashed_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline_dashed_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetUnderlineDashedColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.TextStyleEffectType efl_text_effect_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_effect_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_effect_type_get"); - private static Efl.TextStyleEffectType effect_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_effect_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleEffectType _ret_var = default(Efl.TextStyleEffectType); - try { - _ret_var = ((LayoutPartText)wrapper).GetEffectType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_text_underline_dashed_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); } - return _ret_var; - } else { - return efl_text_effect_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_effect_type_get_delegate efl_text_effect_type_get_static_delegate; + private static efl_text_underline_dashed_color_set_delegate efl_text_underline_dashed_color_set_static_delegate; + + + private delegate int efl_text_underline_dashed_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_underline_dashed_width_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_width_get"); + + private static int underline_dashed_width_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_dashed_width_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartText)wrapper).GetUnderlineDashedWidth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_effect_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type); + return _ret_var; + } + else + { + return efl_text_underline_dashed_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_effect_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleEffectType type); - public static Efl.Eo.FunctionWrapper efl_text_effect_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_effect_type_set"); - private static void effect_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type) - { - Eina.Log.Debug("function efl_text_effect_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetEffectType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_effect_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + private static efl_text_underline_dashed_width_get_delegate efl_text_underline_dashed_width_get_static_delegate; + + + private delegate void efl_text_underline_dashed_width_set_delegate(System.IntPtr obj, System.IntPtr pd, int width); + + + public delegate void efl_text_underline_dashed_width_set_api_delegate(System.IntPtr obj, int width); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_width_set"); + + private static void underline_dashed_width_set(System.IntPtr obj, System.IntPtr pd, int width) + { + Eina.Log.Debug("function efl_text_underline_dashed_width_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetUnderlineDashedWidth(width); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); + } } - } - private static efl_text_effect_type_set_delegate efl_text_effect_type_set_static_delegate; + private static efl_text_underline_dashed_width_set_delegate efl_text_underline_dashed_width_set_static_delegate; + + + private delegate int efl_text_underline_dashed_gap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_underline_dashed_gap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_gap_get"); + + private static int underline_dashed_gap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_dashed_gap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartText)wrapper).GetUnderlineDashedGap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_outline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + return _ret_var; + } + else + { + return efl_text_underline_dashed_gap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_outline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_outline_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_outline_color_get"); - private static void outline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_outline_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((LayoutPartText)wrapper).GetOutlineColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_outline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + private static efl_text_underline_dashed_gap_get_delegate efl_text_underline_dashed_gap_get_static_delegate; + + + private delegate void efl_text_underline_dashed_gap_set_delegate(System.IntPtr obj, System.IntPtr pd, int gap); + + + public delegate void efl_text_underline_dashed_gap_set_api_delegate(System.IntPtr obj, int gap); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_gap_set"); + + private static void underline_dashed_gap_set(System.IntPtr obj, System.IntPtr pd, int gap) + { + Eina.Log.Debug("function efl_text_underline_dashed_gap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetUnderlineDashedGap(gap); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_gap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gap); + } } - } - private static efl_text_outline_color_get_delegate efl_text_outline_color_get_static_delegate; + private static efl_text_underline_dashed_gap_set_delegate efl_text_underline_dashed_gap_set_static_delegate; + + + private delegate void efl_text_underline2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline2_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline2_color_get"); + + private static void underline2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline2_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((LayoutPartText)wrapper).GetUnderline2Color(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_outline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + } + else + { + efl_text_underline2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_text_underline2_color_get_delegate efl_text_underline2_color_get_static_delegate; + + + private delegate void efl_text_underline2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline2_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline2_color_set"); + + private static void underline2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline2_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetUnderline2Color(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_outline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_outline_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_outline_color_set"); - private static void outline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_outline_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetOutlineColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_outline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + + } + else + { + efl_text_underline2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } } - } - private static efl_text_outline_color_set_delegate efl_text_outline_color_set_static_delegate; + private static efl_text_underline2_color_set_delegate efl_text_underline2_color_set_static_delegate; + + + private delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_type_get"); + + private static Efl.TextStyleStrikethroughType strikethrough_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_strikethrough_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleStrikethroughType _ret_var = default(Efl.TextStyleStrikethroughType); + try + { + _ret_var = ((LayoutPartText)wrapper).GetStrikethroughType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_text_strikethrough_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_direction_get"); - private static Efl.TextStyleShadowDirection shadow_direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_shadow_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleShadowDirection _ret_var = default(Efl.TextStyleShadowDirection); - try { - _ret_var = ((LayoutPartText)wrapper).GetShadowDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_strikethrough_type_get_delegate efl_text_strikethrough_type_get_static_delegate; + + + private delegate void efl_text_strikethrough_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type); + + + public delegate void efl_text_strikethrough_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleStrikethroughType type); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_type_set"); + + private static void strikethrough_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type) + { + Eina.Log.Debug("function efl_text_strikethrough_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetStrikethroughType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_strikethrough_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); } - return _ret_var; - } else { - return efl_text_shadow_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_shadow_direction_get_delegate efl_text_shadow_direction_get_static_delegate; + private static efl_text_strikethrough_type_set_delegate efl_text_strikethrough_type_set_static_delegate; + + + private delegate void efl_text_strikethrough_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_strikethrough_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_color_get"); + + private static void strikethrough_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_strikethrough_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((LayoutPartText)wrapper).GetStrikethroughColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_shadow_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type); + + } + else + { + efl_text_strikethrough_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_text_strikethrough_color_get_delegate efl_text_strikethrough_color_get_static_delegate; + + + private delegate void efl_text_strikethrough_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_strikethrough_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_color_set"); + + private static void strikethrough_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_strikethrough_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetStrikethroughColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_shadow_direction_set_api_delegate(System.IntPtr obj, Efl.TextStyleShadowDirection type); - public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_direction_set"); - private static void shadow_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type) - { - Eina.Log.Debug("function efl_text_shadow_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetShadowDirection( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_shadow_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + + } + else + { + efl_text_strikethrough_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } } - } - private static efl_text_shadow_direction_set_delegate efl_text_shadow_direction_set_static_delegate; + private static efl_text_strikethrough_color_set_delegate efl_text_strikethrough_color_set_static_delegate; + + + private delegate Efl.TextStyleEffectType efl_text_effect_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleEffectType efl_text_effect_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_effect_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_effect_type_get"); + + private static Efl.TextStyleEffectType effect_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_effect_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleEffectType _ret_var = default(Efl.TextStyleEffectType); + try + { + _ret_var = ((LayoutPartText)wrapper).GetEffectType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_shadow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + return _ret_var; + } + else + { + return efl_text_effect_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_shadow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_shadow_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_color_get"); - private static void shadow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_shadow_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((LayoutPartText)wrapper).GetShadowColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_shadow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + private static efl_text_effect_type_get_delegate efl_text_effect_type_get_static_delegate; + + + private delegate void efl_text_effect_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type); + + + public delegate void efl_text_effect_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleEffectType type); + + public static Efl.Eo.FunctionWrapper efl_text_effect_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_effect_type_set"); + + private static void effect_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type) + { + Eina.Log.Debug("function efl_text_effect_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetEffectType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_effect_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } } - } - private static efl_text_shadow_color_get_delegate efl_text_shadow_color_get_static_delegate; + private static efl_text_effect_type_set_delegate efl_text_effect_type_set_static_delegate; + + + private delegate void efl_text_outline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_outline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_outline_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_outline_color_get"); + + private static void outline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_outline_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((LayoutPartText)wrapper).GetOutlineColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_shadow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + } + else + { + efl_text_outline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_text_outline_color_get_delegate efl_text_outline_color_get_static_delegate; + + + private delegate void efl_text_outline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_outline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_outline_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_outline_color_set"); + + private static void outline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_outline_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetOutlineColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_shadow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_shadow_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_color_set"); - private static void shadow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_shadow_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetShadowColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_shadow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + + } + else + { + efl_text_outline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } } - } - private static efl_text_shadow_color_set_delegate efl_text_shadow_color_set_static_delegate; + private static efl_text_outline_color_set_delegate efl_text_outline_color_set_static_delegate; + + + private delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_direction_get"); + + private static Efl.TextStyleShadowDirection shadow_direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_shadow_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleShadowDirection _ret_var = default(Efl.TextStyleShadowDirection); + try + { + _ret_var = ((LayoutPartText)wrapper).GetShadowDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_glow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + return _ret_var; + } + else + { + return efl_text_shadow_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_glow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow_color_get"); - private static void glow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_glow_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((LayoutPartText)wrapper).GetGlowColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + private static efl_text_shadow_direction_get_delegate efl_text_shadow_direction_get_static_delegate; + + + private delegate void efl_text_shadow_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type); + + + public delegate void efl_text_shadow_direction_set_api_delegate(System.IntPtr obj, Efl.TextStyleShadowDirection type); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_direction_set"); + + private static void shadow_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type) + { + Eina.Log.Debug("function efl_text_shadow_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetShadowDirection(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_shadow_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } } - } - private static efl_text_glow_color_get_delegate efl_text_glow_color_get_static_delegate; + private static efl_text_shadow_direction_set_delegate efl_text_shadow_direction_set_static_delegate; + + + private delegate void efl_text_shadow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_shadow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_color_get"); + + private static void shadow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_shadow_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((LayoutPartText)wrapper).GetShadowColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_glow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + } + else + { + efl_text_shadow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_text_shadow_color_get_delegate efl_text_shadow_color_get_static_delegate; + + + private delegate void efl_text_shadow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_shadow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_color_set"); + + private static void shadow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_shadow_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetShadowColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_glow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow_color_set"); - private static void glow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_glow_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetGlowColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + + } + else + { + efl_text_shadow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } } - } - private static efl_text_glow_color_set_delegate efl_text_glow_color_set_static_delegate; + private static efl_text_shadow_color_set_delegate efl_text_shadow_color_set_static_delegate; + + + private delegate void efl_text_glow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_glow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow_color_get"); + + private static void glow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_glow_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((LayoutPartText)wrapper).GetGlowColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_glow2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + } + else + { + efl_text_glow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_text_glow_color_get_delegate efl_text_glow_color_get_static_delegate; + + + private delegate void efl_text_glow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_glow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow_color_set"); + + private static void glow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_glow_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetGlowColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_glow2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow2_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow2_color_get"); - private static void glow2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_glow2_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((LayoutPartText)wrapper).GetGlow2Color( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + + } + else + { + efl_text_glow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } } - } - private static efl_text_glow2_color_get_delegate efl_text_glow2_color_get_static_delegate; + private static efl_text_glow_color_set_delegate efl_text_glow_color_set_static_delegate; + + + private delegate void efl_text_glow2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_glow2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow2_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow2_color_get"); + + private static void glow2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_glow2_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((LayoutPartText)wrapper).GetGlow2Color(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_glow2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + } + else + { + efl_text_glow2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_text_glow2_color_get_delegate efl_text_glow2_color_get_static_delegate; + + + private delegate void efl_text_glow2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_glow2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow2_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow2_color_set"); + + private static void glow2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_glow2_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetGlow2Color(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_glow2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow2_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow2_color_set"); - private static void glow2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_glow2_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetGlow2Color( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + + } + else + { + efl_text_glow2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } } - } - private static efl_text_glow2_color_set_delegate efl_text_glow2_color_set_static_delegate; + private static efl_text_glow2_color_set_delegate efl_text_glow2_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_gfx_filter_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_gfx_filter_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_gfx_filter_get"); + + private static System.String gfx_filter_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_gfx_filter_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartText)wrapper).GetGfxFilter(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_gfx_filter_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_text_gfx_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_gfx_filter_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_gfx_filter_get"); - private static System.String gfx_filter_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_gfx_filter_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartText)wrapper).GetGfxFilter(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_gfx_filter_get_delegate efl_text_gfx_filter_get_static_delegate; + + + private delegate void efl_text_gfx_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + + + public delegate void efl_text_gfx_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + + public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_gfx_filter_set"); + + private static void gfx_filter_set(System.IntPtr obj, System.IntPtr pd, System.String code) + { + Eina.Log.Debug("function efl_text_gfx_filter_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetGfxFilter(code); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_gfx_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code); } - return _ret_var; - } else { - return efl_text_gfx_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_gfx_filter_get_delegate efl_text_gfx_filter_get_static_delegate; + private static efl_text_gfx_filter_set_delegate efl_text_gfx_filter_set_static_delegate; - private delegate void efl_text_gfx_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_text_gfx_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); - public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_gfx_filter_set"); - private static void gfx_filter_set(System.IntPtr obj, System.IntPtr pd, System.String code) - { - Eina.Log.Debug("function efl_text_gfx_filter_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetGfxFilter( code); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_gfx_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code); - } - } - private static efl_text_gfx_filter_set_delegate efl_text_gfx_filter_set_static_delegate; } -} } -namespace Efl { namespace Canvas { + +namespace Efl { + +namespace Canvas { + /// Text layout policy to enforce. If none is set, min/max descriptions are taken in considerations solely. public enum LayoutPartTextExpand { /// No policy. Use default description parameters. None = 0, -/// MinX = 1, -/// MinY = 2, -/// MaxX = 4, -/// MaxY = 8, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_object.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_object.eo.cs index 35cf76f..89b12f9 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_object.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_object.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + ///Event argument wrapper for event . public class ObjectAnimatorTickEvt_Args : EventArgs { ///Actual event payload. @@ -12,33 +16,42 @@ public class ObjectAnimatorTickEvt_Args : EventArgs { } /// Efl canvas object abstract class /// (Since EFL 1.22) -[ObjectNativeInherit] +[Efl.Canvas.Object.NativeMethods] public abstract class Object : Efl.LoopConsumer, Efl.Eo.IWrapper,Efl.Canvas.IPointer,Efl.Gfx.IColor,Efl.Gfx.IEntity,Efl.Gfx.IHint,Efl.Gfx.IMapping,Efl.Gfx.IStack,Efl.Input.IInterface,Efl.Ui.II18n { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Object)) - return Efl.Canvas.ObjectNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Object)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_object_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Object(Efl.Object parent= null - ) : - base(efl_canvas_object_class_get(), typeof(Object), parent) + ) : base(efl_canvas_object_class_get(), typeof(Object), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Object(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class ObjectRealized : Object { @@ -46,1053 +59,1291 @@ public abstract class Object : Efl.LoopConsumer, Efl.Eo.IWrapper,Efl.Canvas.IPoi { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Object(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Object(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object AnimatorTickEvtKey = new object(); + /// Animator tick synchronized with screen vsync if possible. /// (Since EFL 1.22) public event EventHandler AnimatorTickEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ObjectAnimatorTickEvt_Args args = new Efl.Canvas.ObjectAnimatorTickEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_OBJECT_EVENT_ANIMATOR_TICK"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_AnimatorTickEvt_delegate)) { - eventHandlers.AddHandler(AnimatorTickEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_OBJECT_EVENT_ANIMATOR_TICK"; - if (RemoveNativeEventHandler(key, this.evt_AnimatorTickEvt_delegate)) { - eventHandlers.RemoveHandler(AnimatorTickEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event AnimatorTickEvt. - public void On_AnimatorTickEvt(Efl.Canvas.ObjectAnimatorTickEvt_Args e) + public void OnAnimatorTickEvt(Efl.Canvas.ObjectAnimatorTickEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AnimatorTickEvtKey]; + var key = "_EFL_CANVAS_OBJECT_EVENT_ANIMATOR_TICK"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AnimatorTickEvt_delegate; - private void on_AnimatorTickEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Canvas.ObjectAnimatorTickEvt_Args args = new Efl.Canvas.ObjectAnimatorTickEvt_Args(); - args.arg = evt.Info;; - try { - On_AnimatorTickEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object VisibilityChangedEvtKey = new object(); /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) public event EventHandler VisibilityChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.AddHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.RemoveHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event VisibilityChangedEvt. - public void On_VisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) + public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[VisibilityChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_VisibilityChangedEvt_delegate; - private void on_VisibilityChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_VisibilityChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PositionChangedEvtKey = new object(); /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) public event EventHandler PositionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.AddHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PositionChangedEvt. - public void On_PositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) + public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PositionChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PositionChangedEvt_delegate; - private void on_PositionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PositionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object SizeChangedEvtKey = new object(); /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) public event EventHandler SizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.AddHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SizeChangedEvt. - public void On_SizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) + public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SizeChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SizeChangedEvt_delegate; - private void on_SizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_SizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object HintsChangedEvtKey = new object(); /// Object hints changed. /// (Since EFL 1.22) public event EventHandler HintsChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_HINTS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_HintsChangedEvt_delegate)) { - eventHandlers.AddHandler(HintsChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_HINTS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_HintsChangedEvt_delegate)) { - eventHandlers.RemoveHandler(HintsChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event HintsChangedEvt. - public void On_HintsChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[HintsChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_HintsChangedEvt_delegate; - private void on_HintsChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnHintsChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_HintsChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_ENTITY_EVENT_HINTS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object StackingChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Object stacking was changed. /// (Since EFL 1.22) public event EventHandler StackingChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_StackingChangedEvt_delegate)) { - eventHandlers.AddHandler(StackingChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_StackingChangedEvt_delegate)) { - eventHandlers.RemoveHandler(StackingChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event StackingChangedEvt. - public void On_StackingChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[StackingChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_StackingChangedEvt_delegate; - private void on_StackingChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnStackingChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_StackingChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerMoveEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Main pointer move (current and previous positions are known). public event EventHandler PointerMoveEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerMoveEvt_Args args = new Efl.Input.IInterfacePointerMoveEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_MOVE"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerMoveEvt_delegate)) { - eventHandlers.AddHandler(PointerMoveEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_MOVE"; - if (RemoveNativeEventHandler(key, this.evt_PointerMoveEvt_delegate)) { - eventHandlers.RemoveHandler(PointerMoveEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerMoveEvt. - public void On_PointerMoveEvt(Efl.Input.IInterfacePointerMoveEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerMoveEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerMoveEvt_delegate; - private void on_PointerMoveEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerMoveEvt(Efl.Input.IInterfacePointerMoveEvt_Args e) { - Efl.Input.IInterfacePointerMoveEvt_Args args = new Efl.Input.IInterfacePointerMoveEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerMoveEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_MOVE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerDownEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Main pointer button pressed (button id is known). public event EventHandler PointerDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerDownEvt_Args args = new Efl.Input.IInterfacePointerDownEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_DOWN"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerDownEvt_delegate)) { - eventHandlers.AddHandler(PointerDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_PointerDownEvt_delegate)) { - eventHandlers.RemoveHandler(PointerDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerDownEvt. - public void On_PointerDownEvt(Efl.Input.IInterfacePointerDownEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerDownEvt_delegate; - private void on_PointerDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerDownEvt(Efl.Input.IInterfacePointerDownEvt_Args e) { - Efl.Input.IInterfacePointerDownEvt_Args args = new Efl.Input.IInterfacePointerDownEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerUpEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Main pointer button released (button id is known). public event EventHandler PointerUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerUpEvt_Args args = new Efl.Input.IInterfacePointerUpEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_UP"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerUpEvt_delegate)) { - eventHandlers.AddHandler(PointerUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_UP"; - if (RemoveNativeEventHandler(key, this.evt_PointerUpEvt_delegate)) { - eventHandlers.RemoveHandler(PointerUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerUpEvt. - public void On_PointerUpEvt(Efl.Input.IInterfacePointerUpEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerUpEvt_delegate; - private void on_PointerUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerUpEvt(Efl.Input.IInterfacePointerUpEvt_Args e) { - Efl.Input.IInterfacePointerUpEvt_Args args = new Efl.Input.IInterfacePointerUpEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerCancelEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Main pointer button press was cancelled (button id is known). This can happen in rare cases when the window manager passes the focus to a more urgent window, for instance. You probably don't need to listen to this event, as it will be accompanied by an up event. public event EventHandler PointerCancelEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerCancelEvt_Args args = new Efl.Input.IInterfacePointerCancelEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_CANCEL"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerCancelEvt_delegate)) { - eventHandlers.AddHandler(PointerCancelEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_CANCEL"; - if (RemoveNativeEventHandler(key, this.evt_PointerCancelEvt_delegate)) { - eventHandlers.RemoveHandler(PointerCancelEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerCancelEvt. - public void On_PointerCancelEvt(Efl.Input.IInterfacePointerCancelEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerCancelEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerCancelEvt_delegate; - private void on_PointerCancelEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerCancelEvt(Efl.Input.IInterfacePointerCancelEvt_Args e) { - Efl.Input.IInterfacePointerCancelEvt_Args args = new Efl.Input.IInterfacePointerCancelEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerCancelEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_CANCEL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerInEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Pointer entered a window or a widget. public event EventHandler PointerInEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerInEvt_Args args = new Efl.Input.IInterfacePointerInEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_IN"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerInEvt_delegate)) { - eventHandlers.AddHandler(PointerInEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_IN"; - if (RemoveNativeEventHandler(key, this.evt_PointerInEvt_delegate)) { - eventHandlers.RemoveHandler(PointerInEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerInEvt. - public void On_PointerInEvt(Efl.Input.IInterfacePointerInEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerInEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerInEvt_delegate; - private void on_PointerInEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerInEvt(Efl.Input.IInterfacePointerInEvt_Args e) { - Efl.Input.IInterfacePointerInEvt_Args args = new Efl.Input.IInterfacePointerInEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerInEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_IN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerOutEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Pointer left a window or a widget. public event EventHandler PointerOutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerOutEvt_Args args = new Efl.Input.IInterfacePointerOutEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_OUT"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerOutEvt_delegate)) { - eventHandlers.AddHandler(PointerOutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_OUT"; - if (RemoveNativeEventHandler(key, this.evt_PointerOutEvt_delegate)) { - eventHandlers.RemoveHandler(PointerOutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerOutEvt. - public void On_PointerOutEvt(Efl.Input.IInterfacePointerOutEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerOutEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerOutEvt_delegate; - private void on_PointerOutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerOutEvt(Efl.Input.IInterfacePointerOutEvt_Args e) { - Efl.Input.IInterfacePointerOutEvt_Args args = new Efl.Input.IInterfacePointerOutEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerOutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_OUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerWheelEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Mouse wheel event. public event EventHandler PointerWheelEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerWheelEvt_Args args = new Efl.Input.IInterfacePointerWheelEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_WHEEL"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerWheelEvt_delegate)) { - eventHandlers.AddHandler(PointerWheelEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_WHEEL"; - if (RemoveNativeEventHandler(key, this.evt_PointerWheelEvt_delegate)) { - eventHandlers.RemoveHandler(PointerWheelEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerWheelEvt. - public void On_PointerWheelEvt(Efl.Input.IInterfacePointerWheelEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerWheelEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerWheelEvt_delegate; - private void on_PointerWheelEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerWheelEvt(Efl.Input.IInterfacePointerWheelEvt_Args e) { - Efl.Input.IInterfacePointerWheelEvt_Args args = new Efl.Input.IInterfacePointerWheelEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerWheelEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_WHEEL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerAxisEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Pen or other axis event update. public event EventHandler PointerAxisEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerAxisEvt_Args args = new Efl.Input.IInterfacePointerAxisEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_AXIS"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerAxisEvt_delegate)) { - eventHandlers.AddHandler(PointerAxisEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_AXIS"; - if (RemoveNativeEventHandler(key, this.evt_PointerAxisEvt_delegate)) { - eventHandlers.RemoveHandler(PointerAxisEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerAxisEvt. - public void On_PointerAxisEvt(Efl.Input.IInterfacePointerAxisEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerAxisEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerAxisEvt_delegate; - private void on_PointerAxisEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerAxisEvt(Efl.Input.IInterfacePointerAxisEvt_Args e) { - Efl.Input.IInterfacePointerAxisEvt_Args args = new Efl.Input.IInterfacePointerAxisEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerAxisEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_AXIS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FingerMoveEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Finger moved (current and previous positions are known). public event EventHandler FingerMoveEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceFingerMoveEvt_Args args = new Efl.Input.IInterfaceFingerMoveEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_FINGER_MOVE"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_FingerMoveEvt_delegate)) { - eventHandlers.AddHandler(FingerMoveEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_FINGER_MOVE"; - if (RemoveNativeEventHandler(key, this.evt_FingerMoveEvt_delegate)) { - eventHandlers.RemoveHandler(FingerMoveEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event FingerMoveEvt. - public void On_FingerMoveEvt(Efl.Input.IInterfaceFingerMoveEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FingerMoveEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FingerMoveEvt_delegate; - private void on_FingerMoveEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFingerMoveEvt(Efl.Input.IInterfaceFingerMoveEvt_Args e) { - Efl.Input.IInterfaceFingerMoveEvt_Args args = new Efl.Input.IInterfaceFingerMoveEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_FingerMoveEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_FINGER_MOVE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FingerDownEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Finger pressed (finger id is known). public event EventHandler FingerDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceFingerDownEvt_Args args = new Efl.Input.IInterfaceFingerDownEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_FINGER_DOWN"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_FingerDownEvt_delegate)) { - eventHandlers.AddHandler(FingerDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_FINGER_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_FingerDownEvt_delegate)) { - eventHandlers.RemoveHandler(FingerDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event FingerDownEvt. - public void On_FingerDownEvt(Efl.Input.IInterfaceFingerDownEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FingerDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FingerDownEvt_delegate; - private void on_FingerDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFingerDownEvt(Efl.Input.IInterfaceFingerDownEvt_Args e) { - Efl.Input.IInterfaceFingerDownEvt_Args args = new Efl.Input.IInterfaceFingerDownEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_FingerDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_FINGER_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FingerUpEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Finger released (finger id is known). public event EventHandler FingerUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceFingerUpEvt_Args args = new Efl.Input.IInterfaceFingerUpEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_FINGER_UP"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_FingerUpEvt_delegate)) { - eventHandlers.AddHandler(FingerUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_FINGER_UP"; - if (RemoveNativeEventHandler(key, this.evt_FingerUpEvt_delegate)) { - eventHandlers.RemoveHandler(FingerUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event FingerUpEvt. - public void On_FingerUpEvt(Efl.Input.IInterfaceFingerUpEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FingerUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FingerUpEvt_delegate; - private void on_FingerUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFingerUpEvt(Efl.Input.IInterfaceFingerUpEvt_Args e) { - Efl.Input.IInterfaceFingerUpEvt_Args args = new Efl.Input.IInterfaceFingerUpEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_FingerUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_FINGER_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object KeyDownEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Keyboard key press. public event EventHandler KeyDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceKeyDownEvt_Args args = new Efl.Input.IInterfaceKeyDownEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Key); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_KEY_DOWN"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_KeyDownEvt_delegate)) { - eventHandlers.AddHandler(KeyDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_KEY_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_KeyDownEvt_delegate)) { - eventHandlers.RemoveHandler(KeyDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event KeyDownEvt. - public void On_KeyDownEvt(Efl.Input.IInterfaceKeyDownEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[KeyDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_KeyDownEvt_delegate; - private void on_KeyDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnKeyDownEvt(Efl.Input.IInterfaceKeyDownEvt_Args e) { - Efl.Input.IInterfaceKeyDownEvt_Args args = new Efl.Input.IInterfaceKeyDownEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Key); - try { - On_KeyDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_KEY_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object KeyUpEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Keyboard key release. public event EventHandler KeyUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceKeyUpEvt_Args args = new Efl.Input.IInterfaceKeyUpEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Key); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_KEY_UP"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_KeyUpEvt_delegate)) { - eventHandlers.AddHandler(KeyUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_KEY_UP"; - if (RemoveNativeEventHandler(key, this.evt_KeyUpEvt_delegate)) { - eventHandlers.RemoveHandler(KeyUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event KeyUpEvt. - public void On_KeyUpEvt(Efl.Input.IInterfaceKeyUpEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[KeyUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_KeyUpEvt_delegate; - private void on_KeyUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnKeyUpEvt(Efl.Input.IInterfaceKeyUpEvt_Args e) { - Efl.Input.IInterfaceKeyUpEvt_Args args = new Efl.Input.IInterfaceKeyUpEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Key); - try { - On_KeyUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_KEY_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object HoldEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// All input events are on hold or resumed. public event EventHandler HoldEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceHoldEvt_Args args = new Efl.Input.IInterfaceHoldEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Hold); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_HOLD"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_HoldEvt_delegate)) { - eventHandlers.AddHandler(HoldEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_HOLD"; - if (RemoveNativeEventHandler(key, this.evt_HoldEvt_delegate)) { - eventHandlers.RemoveHandler(HoldEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event HoldEvt. - public void On_HoldEvt(Efl.Input.IInterfaceHoldEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[HoldEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_HoldEvt_delegate; - private void on_HoldEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnHoldEvt(Efl.Input.IInterfaceHoldEvt_Args e) { - Efl.Input.IInterfaceHoldEvt_Args args = new Efl.Input.IInterfaceHoldEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Hold); - try { - On_HoldEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_HOLD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FocusInEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// A focus in event. public event EventHandler FocusInEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceFocusInEvt_Args args = new Efl.Input.IInterfaceFocusInEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_FOCUS_IN"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_FocusInEvt_delegate)) { - eventHandlers.AddHandler(FocusInEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_FOCUS_IN"; - if (RemoveNativeEventHandler(key, this.evt_FocusInEvt_delegate)) { - eventHandlers.RemoveHandler(FocusInEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event FocusInEvt. - public void On_FocusInEvt(Efl.Input.IInterfaceFocusInEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusInEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusInEvt_delegate; - private void on_FocusInEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFocusInEvt(Efl.Input.IInterfaceFocusInEvt_Args e) { - Efl.Input.IInterfaceFocusInEvt_Args args = new Efl.Input.IInterfaceFocusInEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_FocusInEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_FOCUS_IN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FocusOutEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// A focus out event. public event EventHandler FocusOutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceFocusOutEvt_Args args = new Efl.Input.IInterfaceFocusOutEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_FOCUS_OUT"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_FocusOutEvt_delegate)) { - eventHandlers.AddHandler(FocusOutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_FOCUS_OUT"; - if (RemoveNativeEventHandler(key, this.evt_FocusOutEvt_delegate)) { - eventHandlers.RemoveHandler(FocusOutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event FocusOutEvt. - public void On_FocusOutEvt(Efl.Input.IInterfaceFocusOutEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusOutEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusOutEvt_delegate; - private void on_FocusOutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFocusOutEvt(Efl.Input.IInterfaceFocusOutEvt_Args e) { - Efl.Input.IInterfaceFocusOutEvt_Args args = new Efl.Input.IInterfaceFocusOutEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_FocusOutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_FOCUS_OUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_AnimatorTickEvt_delegate = new Efl.EventCb(on_AnimatorTickEvt_NativeCallback); - evt_VisibilityChangedEvt_delegate = new Efl.EventCb(on_VisibilityChangedEvt_NativeCallback); - evt_PositionChangedEvt_delegate = new Efl.EventCb(on_PositionChangedEvt_NativeCallback); - evt_SizeChangedEvt_delegate = new Efl.EventCb(on_SizeChangedEvt_NativeCallback); - evt_HintsChangedEvt_delegate = new Efl.EventCb(on_HintsChangedEvt_NativeCallback); - evt_StackingChangedEvt_delegate = new Efl.EventCb(on_StackingChangedEvt_NativeCallback); - evt_PointerMoveEvt_delegate = new Efl.EventCb(on_PointerMoveEvt_NativeCallback); - evt_PointerDownEvt_delegate = new Efl.EventCb(on_PointerDownEvt_NativeCallback); - evt_PointerUpEvt_delegate = new Efl.EventCb(on_PointerUpEvt_NativeCallback); - evt_PointerCancelEvt_delegate = new Efl.EventCb(on_PointerCancelEvt_NativeCallback); - evt_PointerInEvt_delegate = new Efl.EventCb(on_PointerInEvt_NativeCallback); - evt_PointerOutEvt_delegate = new Efl.EventCb(on_PointerOutEvt_NativeCallback); - evt_PointerWheelEvt_delegate = new Efl.EventCb(on_PointerWheelEvt_NativeCallback); - evt_PointerAxisEvt_delegate = new Efl.EventCb(on_PointerAxisEvt_NativeCallback); - evt_FingerMoveEvt_delegate = new Efl.EventCb(on_FingerMoveEvt_NativeCallback); - evt_FingerDownEvt_delegate = new Efl.EventCb(on_FingerDownEvt_NativeCallback); - evt_FingerUpEvt_delegate = new Efl.EventCb(on_FingerUpEvt_NativeCallback); - evt_KeyDownEvt_delegate = new Efl.EventCb(on_KeyDownEvt_NativeCallback); - evt_KeyUpEvt_delegate = new Efl.EventCb(on_KeyUpEvt_NativeCallback); - evt_HoldEvt_delegate = new Efl.EventCb(on_HoldEvt_NativeCallback); - evt_FocusInEvt_delegate = new Efl.EventCb(on_FocusInEvt_NativeCallback); - evt_FocusOutEvt_delegate = new Efl.EventCb(on_FocusOutEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Low-level pointer behaviour by device. See and for more explanation. /// (Since EFL 1.22) /// The pointer device to set/get the mode. Use null for the default pointer. /// The pointer mode - virtual public Efl.Input.ObjectPointerMode GetPointerModeByDevice( Efl.Input.Device dev) { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_pointer_mode_by_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dev); + virtual public Efl.Input.ObjectPointerMode GetPointerModeByDevice(Efl.Input.Device dev) { + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_pointer_mode_by_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dev); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1101,8 +1352,8 @@ private static object FocusOutEvtKey = new object(); /// The pointer device to set/get the mode. Use null for the default pointer. /// The pointer mode /// true if pointer mode was set, false otherwise - virtual public bool SetPointerModeByDevice( Efl.Input.Device dev, Efl.Input.ObjectPointerMode pointer_mode) { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_pointer_mode_by_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dev, pointer_mode); + virtual public bool SetPointerModeByDevice(Efl.Input.Device dev, Efl.Input.ObjectPointerMode pointer_mode) { + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_pointer_mode_by_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dev, pointer_mode); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1117,7 +1368,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Input pointer mode virtual public Efl.Input.ObjectPointerMode GetPointerMode() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_pointer_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_pointer_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1132,8 +1383,8 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Input pointer mode /// true if pointer behaviour was set, false otherwise - virtual public bool SetPointerMode( Efl.Input.ObjectPointerMode pointer_mode) { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_pointer_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pointer_mode); + virtual public bool SetPointerMode(Efl.Input.ObjectPointerMode pointer_mode) { + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_pointer_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pointer_mode); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1144,7 +1395,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Blend or copy. virtual public Efl.Gfx.RenderOp GetRenderOp() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_render_op_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_render_op_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1154,9 +1405,8 @@ private static object FocusOutEvtKey = new object(); /// Please do not assume that mode can be used to "poke" holes in a window (to see through it), as only the compositor can ensure that. Copy mode should only be used with otherwise opaque widgets or inside non-window surfaces (eg. a transparent background inside a buffer canvas). /// (Since EFL 1.22) /// Blend or copy. - /// - virtual public void SetRenderOp( Efl.Gfx.RenderOp render_op) { - Efl.Canvas.ObjectNativeInherit.efl_canvas_object_render_op_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), render_op); + virtual public void SetRenderOp(Efl.Gfx.RenderOp render_op) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_render_op_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),render_op); Eina.Error.RaiseIfUnhandledException(); } /// Get the object clipping obj (if any). @@ -1164,7 +1414,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The object to clip obj by. virtual public Efl.Canvas.Object GetClipper() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_clipper_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_clipper_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1186,16 +1436,15 @@ private static object FocusOutEvtKey = new object(); /// Note: Only rectangle and image (masks) objects can be used as clippers. Anything else will result in undefined behaviour. /// (Since EFL 1.22) /// The object to clip obj by. - /// - virtual public void SetClipper( Efl.Canvas.Object clipper) { - Efl.Canvas.ObjectNativeInherit.efl_canvas_object_clipper_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), clipper); + virtual public void SetClipper(Efl.Canvas.Object clipper) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_clipper_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),clipper); Eina.Error.RaiseIfUnhandledException(); } /// Determine whether an object is set to repeat events. /// (Since EFL 1.22) /// Whether obj is to repeat events (true) or not (false). virtual public bool GetRepeatEvents() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_repeat_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_repeat_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1205,9 +1454,8 @@ private static object FocusOutEvtKey = new object(); /// If repeat is false, events occurring on obj will be processed only on it. /// (Since EFL 1.22) /// Whether obj is to repeat events (true) or not (false). - /// - virtual public void SetRepeatEvents( bool repeat) { - Efl.Canvas.ObjectNativeInherit.efl_canvas_object_repeat_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), repeat); + virtual public void SetRepeatEvents(bool repeat) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_repeat_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),repeat); Eina.Error.RaiseIfUnhandledException(); } /// Indicates that this object is the keyboard event receiver on its canvas. @@ -1215,7 +1463,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// true when set as focused or false otherwise. virtual public bool GetKeyFocus() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_key_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_key_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1223,16 +1471,15 @@ private static object FocusOutEvtKey = new object(); /// Changing focus only affects where (key) input events go. There can be only one object focused at any time. If focus is true, obj will be set as the currently focused object and it will receive all keyboard events that are not exclusive key grabs on other objects. See also , , . /// (Since EFL 1.22) /// true when set as focused or false otherwise. - /// - virtual public void SetKeyFocus( bool focus) { - Efl.Canvas.ObjectNativeInherit.efl_canvas_object_key_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), focus); + virtual public void SetKeyFocus(bool focus) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_key_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),focus); Eina.Error.RaiseIfUnhandledException(); } /// Check if this object is focused. /// (Since EFL 1.22) /// true if focused by at least one seat or false otherwise. virtual public bool GetSeatFocus() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_seat_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_seat_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1240,7 +1487,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Whether to use precise point collision detection or not. The default value is false. virtual public bool GetPreciseIsInside() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_precise_is_inside_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_precise_is_inside_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1250,9 +1497,8 @@ private static object FocusOutEvtKey = new object(); /// Warning: By using precise point collision detection you'll be making Evas more resource intensive. /// (Since EFL 1.22) /// Whether to use precise point collision detection or not. The default value is false. - /// - virtual public void SetPreciseIsInside( bool precise) { - Efl.Canvas.ObjectNativeInherit.efl_canvas_object_precise_is_inside_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), precise); + virtual public void SetPreciseIsInside(bool precise) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_precise_is_inside_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),precise); Eina.Error.RaiseIfUnhandledException(); } /// Retrieve whether an Evas object is set to propagate events. @@ -1260,7 +1506,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Whether to propagate events (true) or not (false). virtual public bool GetPropagateEvents() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_propagate_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_propagate_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1272,9 +1518,8 @@ private static object FocusOutEvtKey = new object(); /// See also , . /// (Since EFL 1.22) /// Whether to propagate events (true) or not (false). - /// - virtual public void SetPropagateEvents( bool propagate) { - Efl.Canvas.ObjectNativeInherit.efl_canvas_object_propagate_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), propagate); + virtual public void SetPropagateEvents(bool propagate) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_propagate_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),propagate); Eina.Error.RaiseIfUnhandledException(); } /// Determine whether an object is set to pass (ignore) events. @@ -1282,7 +1527,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Whether obj is to pass events (true) or not (false). virtual public bool GetPassEvents() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_pass_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_pass_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1294,25 +1539,23 @@ private static object FocusOutEvtKey = new object(); /// See also , /// (Since EFL 1.22) /// Whether obj is to pass events (true) or not (false). - /// - virtual public void SetPassEvents( bool pass) { - Efl.Canvas.ObjectNativeInherit.efl_canvas_object_pass_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pass); + virtual public void SetPassEvents(bool pass) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_pass_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pass); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves whether or not the given Evas object is to be drawn anti_aliased. /// (Since EFL 1.22) /// true if the object is to be anti_aliased, false otherwise. virtual public bool GetAntiAlias() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_anti_alias_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_anti_alias_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets whether or not the given Evas object is to be drawn anti-aliased. /// (Since EFL 1.22) /// true if the object is to be anti_aliased, false otherwise. - /// - virtual public void SetAntiAlias( bool anti_alias) { - Efl.Canvas.ObjectNativeInherit.efl_canvas_object_anti_alias_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), anti_alias); + virtual public void SetAntiAlias(bool anti_alias) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_anti_alias_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),anti_alias); Eina.Error.RaiseIfUnhandledException(); } /// Return a list of objects currently clipped by obj. @@ -1322,7 +1565,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the list of objects clipped by obj. virtual public Eina.Iterator GetClippedObjects() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_clipped_objects_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_clipped_objects_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -1331,7 +1574,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The parent smart object of obj or null. virtual public Efl.Canvas.Object GetRenderParent() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_render_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_render_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1339,16 +1582,15 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Paragraph direction for the given object. virtual public Efl.TextBidirectionalType GetParagraphDirection() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_paragraph_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_paragraph_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This handles text paragraph direction of the given object. Even if the given object is not textblock or text, its smart child objects can inherit the paragraph direction from the given object. The default paragraph direction is inherit. /// (Since EFL 1.22) /// Paragraph direction for the given object. - /// - virtual public void SetParagraphDirection( Efl.TextBidirectionalType dir) { - Efl.Canvas.ObjectNativeInherit.efl_canvas_object_paragraph_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetParagraphDirection(Efl.TextBidirectionalType dir) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_paragraph_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// Returns the state of the "no-render" flag, which means, when true, that an object should never be rendered on the canvas. @@ -1356,7 +1598,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Enable "no-render" mode. virtual public bool GetNoRender() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_no_render_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_no_render_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1366,9 +1608,8 @@ private static object FocusOutEvtKey = new object(); /// This is different to the visible property, as even visible objects marked as "no-render" will never appear on screen. But those objects can still be used as proxy sources or clippers. When hidden, all "no-render" objects will completely disappear from the canvas, and hide their clippees or be invisible when used as proxy sources. /// (Since EFL 1.22) /// Enable "no-render" mode. - /// - virtual public void SetNoRender( bool enable) { - Efl.Canvas.ObjectNativeInherit.efl_canvas_object_no_render_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enable); + virtual public void SetNoRender(bool enable) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_no_render_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enable); Eina.Error.RaiseIfUnhandledException(); } /// Returns whether the coords are logically inside the object. @@ -1380,9 +1621,9 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The position in pixels. /// true if the coords are inside the object, false otherwise - virtual public bool GetCoordsInside( Eina.Position2D pos) { + virtual public bool GetCoordsInside(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_coords_inside_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_coords_inside_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1390,8 +1631,8 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The seat to check if the object is focused. Use null for the default seat. /// true if focused or false otherwise. - virtual public bool CheckSeatFocus( Efl.Input.Device seat) { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_seat_focus_check_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), seat); + virtual public bool CheckSeatFocus(Efl.Input.Device seat) { + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_seat_focus_check_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1402,8 +1643,8 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The seat that should be added to the focus list. Use null for the default seat. /// true if the focus has been set or false otherwise. - virtual public bool AddSeatFocus( Efl.Input.Device seat) { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_seat_focus_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), seat); + virtual public bool AddSeatFocus(Efl.Input.Device seat) { + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_seat_focus_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1411,8 +1652,8 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The seat that should be removed from the focus list. Use null for the default seat. /// true if the seat was removed from the focus list or false otherwise. - virtual public bool DelSeatFocus( Efl.Input.Device seat) { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_seat_focus_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), seat); + virtual public bool DelSeatFocus(Efl.Input.Device seat) { + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_seat_focus_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1420,7 +1661,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The number of objects clipped by obj virtual public uint ClippedObjectsCount() { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_clipped_objects_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_clipped_objects_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1438,8 +1679,8 @@ private static object FocusOutEvtKey = new object(); /// A combination of modifier keys that must not be present to trigger the event. /// Request that the obj is the only object receiving the keyname events. /// true if the call succeeded, false otherwise. - virtual public bool GrabKey( System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers, bool exclusive) { - var _ret_var = Efl.Canvas.ObjectNativeInherit.efl_canvas_object_key_grab_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), keyname, modifiers, not_modifiers, exclusive); + virtual public bool GrabKey(System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers, bool exclusive) { + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_key_grab_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),keyname, modifiers, not_modifiers, exclusive); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1451,9 +1692,8 @@ private static object FocusOutEvtKey = new object(); /// The key the grab is set for. /// A mask of modifiers that must be present to trigger the event. /// A mask of modifiers that must not not be present to trigger the event. - /// - virtual public void UngrabKey( System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers) { - Efl.Canvas.ObjectNativeInherit.efl_canvas_object_key_ungrab_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), keyname, modifiers, not_modifiers); + virtual public void UngrabKey(System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_key_ungrab_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),keyname, modifiers, not_modifiers); Eina.Error.RaiseIfUnhandledException(); } /// Returns whether the mouse pointer is logically inside the canvas. @@ -1465,8 +1705,8 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The seat to consider, if null then the default seat will be used. /// true if the mouse pointer is inside the canvas, false otherwise - virtual public bool GetPointerInside( Efl.Input.Device seat) { - var _ret_var = Efl.Canvas.IPointerNativeInherit.efl_canvas_pointer_inside_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), seat); + virtual public bool GetPointerInside(Efl.Input.Device seat) { + var _ret_var = Efl.Canvas.IPointerConcrete.NativeMethods.efl_canvas_pointer_inside_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1479,13 +1719,8 @@ private static object FocusOutEvtKey = new object(); /// /// Use null pointers on the components you're not interested in: they'll be ignored by the function. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - virtual public void GetColor( out int r, out int g, out int b, out int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetColor(out int r, out int g, out int b, out int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Sets the general/main color of the given Evas object to the given one. @@ -1493,53 +1728,46 @@ private static object FocusOutEvtKey = new object(); /// /// These color values are expected to be premultiplied by alpha. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - virtual public void SetColor( int r, int g, int b, int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetColor(int r, int g, int b, int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. virtual public System.String GetColorCode() { - var _ret_var = Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the color of given Evas object to the given hex color code(#RRGGBBAA). e.g. efl_gfx_color_code_set(obj, "#FFCCAACC"); /// (Since EFL 1.22) /// the hex color code. - /// - virtual public void SetColorCode( System.String colorcode) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), colorcode); + virtual public void SetColorCode(System.String colorcode) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),colorcode); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the position of the given canvas object. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. virtual public Eina.Position2D GetPosition() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Moves the given canvas object to the given location inside its canvas' viewport. If unchanged this call may be entirely skipped, but if changed this will trigger move events, as well as potential pointer,in or pointer,out events. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. - /// - virtual public void SetPosition( Eina.Position2D pos) { + virtual public void SetPosition(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the (rectangular) size of the given Evas object. /// (Since EFL 1.22) /// A 2D size in pixel units. virtual public Eina.Size2D GetSize() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1547,59 +1775,55 @@ private static object FocusOutEvtKey = new object(); /// Note that setting the actual size of an object might be the job of its container, so this function might have no effect. Look at instead, when manipulating widgets. /// (Since EFL 1.22) /// A 2D size in pixel units. - /// - virtual public void SetSize( Eina.Size2D size) { + virtual public void SetSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. virtual public Eina.Rect GetGeometry() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. - /// - virtual public void SetGeometry( Eina.Rect rect) { + virtual public void SetGeometry(Eina.Rect rect) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves whether or not the given canvas object is visible. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise virtual public bool GetVisible() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Shows or hides this object. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise - /// - virtual public void SetVisible( bool v) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), v); + virtual public void SetVisible(bool v) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),v); Eina.Error.RaiseIfUnhandledException(); } /// Gets an object's scaling factor. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) virtual public double GetScale() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the scaling factor of an object. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) - /// - virtual public void SetScale( double scale) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale); + virtual public void SetScale(double scale) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale); Eina.Error.RaiseIfUnhandledException(); } /// Defines the aspect ratio to respect when scaling this object. @@ -1609,10 +1833,9 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Mode of interpretation. /// Base size to use for aspecting. - /// - virtual public void GetHintAspect( out Efl.Gfx.HintAspect mode, out Eina.Size2D sz) { + virtual public void GetHintAspect(out Efl.Gfx.HintAspect mode, out Eina.Size2D sz) { var _out_sz = new Eina.Size2D.NativeStruct(); - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_aspect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out mode, out _out_sz); + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_aspect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out mode, out _out_sz); Eina.Error.RaiseIfUnhandledException(); sz = _out_sz; } @@ -1623,10 +1846,9 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Mode of interpretation. /// Base size to use for aspecting. - /// - virtual public void SetHintAspect( Efl.Gfx.HintAspect mode, Eina.Size2D sz) { + virtual public void SetHintAspect(Efl.Gfx.HintAspect mode, Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_aspect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mode, _in_sz); + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_aspect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode, _in_sz); Eina.Error.RaiseIfUnhandledException(); } /// Hints on the object's maximum size. @@ -1640,7 +1862,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). virtual public Eina.Size2D GetHintSizeMax() { - var _ret_var = Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1654,10 +1876,9 @@ private static object FocusOutEvtKey = new object(); /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). - /// - virtual public void SetHintSizeMax( Eina.Size2D sz) { + virtual public void SetHintSizeMax(Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_sz); + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_sz); Eina.Error.RaiseIfUnhandledException(); } /// Hints on the object's minimum size. @@ -1669,7 +1890,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Minimum size (hint) in pixels. virtual public Eina.Size2D GetHintSizeMin() { - var _ret_var = Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1681,27 +1902,25 @@ private static object FocusOutEvtKey = new object(); /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). /// (Since EFL 1.22) /// Minimum size (hint) in pixels. - /// - virtual public void SetHintSizeMin( Eina.Size2D sz) { + virtual public void SetHintSizeMin(Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_sz); + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_sz); Eina.Error.RaiseIfUnhandledException(); } /// Get the "intrinsic" minimum size of this object. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. virtual public Eina.Size2D GetHintSizeRestrictedMin() { - var _ret_var = Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_restricted_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_restricted_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This function is protected as it is meant for widgets to indicate their "intrinsic" minimum size. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. - /// - virtual public void SetHintSizeRestrictedMin( Eina.Size2D sz) { + virtual public void SetHintSizeRestrictedMin(Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_restricted_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_sz); + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_restricted_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_sz); Eina.Error.RaiseIfUnhandledException(); } /// Read-only minimum size combining both and hints. @@ -1709,7 +1928,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Minimum size (hint) in pixels. virtual public Eina.Size2D GetHintSizeCombinedMin() { - var _ret_var = Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_combined_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_combined_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1724,9 +1943,8 @@ private static object FocusOutEvtKey = new object(); /// Integer to specify right padding. /// Integer to specify top padding. /// Integer to specify bottom padding. - /// - virtual public void GetHintMargin( out int l, out int r, out int t, out int b) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_margin_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out l, out r, out t, out b); + virtual public void GetHintMargin(out int l, out int r, out int t, out int b) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_margin_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's margin or padding space. @@ -1740,9 +1958,8 @@ private static object FocusOutEvtKey = new object(); /// Integer to specify right padding. /// Integer to specify top padding. /// Integer to specify bottom padding. - /// - virtual public void SetHintMargin( int l, int r, int t, int b) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_margin_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), l, r, t, b); + virtual public void SetHintMargin(int l, int r, int t, int b) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_margin_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),l, r, t, b); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's weight. @@ -1754,9 +1971,8 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Non-negative double value to use as horizontal weight hint. /// Non-negative double value to use as vertical weight hint. - /// - virtual public void GetHintWeight( out double x, out double y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_weight_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetHintWeight(out double x, out double y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_weight_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's weight. @@ -1768,9 +1984,8 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Non-negative double value to use as horizontal weight hint. /// Non-negative double value to use as vertical weight hint. - /// - virtual public void SetHintWeight( double x, double y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_weight_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetHintWeight(double x, double y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_weight_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's alignment. @@ -1784,9 +1999,8 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Double, ranging from 0.0 to 1.0. /// Double, ranging from 0.0 to 1.0. - /// - virtual public void GetHintAlign( out double x, out double y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetHintAlign(out double x, out double y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's alignment. @@ -1800,9 +2014,8 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// Double, ranging from 0.0 to 1.0. /// Double, ranging from 0.0 to 1.0. - /// - virtual public void SetHintAlign( double x, double y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetHintAlign(double x, double y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's fill property that used to specify "justify" or "fill" by some users. specify whether to fill the space inside the boundaries of a container/manager. @@ -1816,9 +2029,8 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// true if to fill the object space, false otherwise, to use as horizontal fill hint. /// true if to fill the object space, false otherwise, to use as vertical fill hint. - /// - virtual public void GetHintFill( out bool x, out bool y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetHintFill(out bool x, out bool y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's fill property that used to specify "justify" or "fill" by some users. specify whether to fill the space inside the boundaries of a container/manager. @@ -1832,9 +2044,8 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// true if to fill the object space, false otherwise, to use as horizontal fill hint. /// true if to fill the object space, false otherwise, to use as vertical fill hint. - /// - virtual public void SetHintFill( bool x, bool y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetHintFill(bool x, bool y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Number of points of a map. @@ -1842,7 +2053,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The number of points of map virtual public int GetMappingPointCount() { - var _ret_var = Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_point_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_point_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1850,9 +2061,8 @@ private static object FocusOutEvtKey = new object(); /// This sets the number of points of map. Currently, the number of points must be multiples of 4. /// (Since EFL 1.22) /// The number of points of map - /// - virtual public void SetMappingPointCount( int count) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_point_count_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), count); + virtual public void SetMappingPointCount(int count) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_point_count_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),count); Eina.Error.RaiseIfUnhandledException(); } /// Clockwise state of a map (read-only). @@ -1860,7 +2070,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// true if clockwise, false if counter clockwise virtual public bool GetMappingClockwise() { - var _ret_var = Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_clockwise_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_clockwise_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1869,7 +2079,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// true by default. virtual public bool GetMappingSmooth() { - var _ret_var = Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_smooth_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_smooth_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1877,9 +2087,8 @@ private static object FocusOutEvtKey = new object(); /// This sets smoothing for map rendering. If the object is a type that has its own smoothing settings, then both the smooth settings for this object and the map must be turned off. By default smooth maps are enabled. /// (Since EFL 1.22) /// true by default. - /// - virtual public void SetMappingSmooth( bool smooth) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_smooth_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), smooth); + virtual public void SetMappingSmooth(bool smooth) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_smooth_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),smooth); Eina.Error.RaiseIfUnhandledException(); } /// Alpha flag for map rendering. @@ -1889,7 +2098,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// true by default. virtual public bool GetMappingAlpha() { - var _ret_var = Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_alpha_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_alpha_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1899,9 +2108,8 @@ private static object FocusOutEvtKey = new object(); /// Note that this may conflict with depending on which algorithm is used for anti-aliasing. /// (Since EFL 1.22) /// true by default. - /// - virtual public void SetMappingAlpha( bool alpha) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_alpha_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), alpha); + virtual public void SetMappingAlpha(bool alpha) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_alpha_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),alpha); Eina.Error.RaiseIfUnhandledException(); } /// A point's absolute coordinate on the canvas. @@ -1917,9 +2125,8 @@ private static object FocusOutEvtKey = new object(); /// Point X coordinate in absolute pixel coordinates. /// Point Y coordinate in absolute pixel coordinates. /// Point Z coordinate hint (pre-perspective transform). - /// - virtual public void GetMappingCoordAbsolute( int idx, out double x, out double y, out double z) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_coord_absolute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), idx, out x, out y, out z); + virtual public void GetMappingCoordAbsolute(int idx, out double x, out double y, out double z) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_coord_absolute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),idx, out x, out y, out z); Eina.Error.RaiseIfUnhandledException(); } /// A point's absolute coordinate on the canvas. @@ -1935,9 +2142,8 @@ private static object FocusOutEvtKey = new object(); /// Point X coordinate in absolute pixel coordinates. /// Point Y coordinate in absolute pixel coordinates. /// Point Z coordinate hint (pre-perspective transform). - /// - virtual public void SetMappingCoordAbsolute( int idx, double x, double y, double z) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_coord_absolute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), idx, x, y, z); + virtual public void SetMappingCoordAbsolute(int idx, double x, double y, double z) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_coord_absolute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),idx, x, y, z); Eina.Error.RaiseIfUnhandledException(); } /// Map point's U and V texture source point. @@ -1948,9 +2154,8 @@ private static object FocusOutEvtKey = new object(); /// ID of the point, from 0 to 3 (included). /// Relative X coordinate within the image, from 0 to 1. /// Relative Y coordinate within the image, from 0 to 1. - /// - virtual public void GetMappingUv( int idx, out double u, out double v) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_uv_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), idx, out u, out v); + virtual public void GetMappingUv(int idx, out double u, out double v) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_uv_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),idx, out u, out v); Eina.Error.RaiseIfUnhandledException(); } /// Map point's U and V texture source point. @@ -1961,9 +2166,8 @@ private static object FocusOutEvtKey = new object(); /// ID of the point, from 0 to 3 (included). /// Relative X coordinate within the image, from 0 to 1. /// Relative Y coordinate within the image, from 0 to 1. - /// - virtual public void SetMappingUv( int idx, double u, double v) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_uv_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), idx, u, v); + virtual public void SetMappingUv(int idx, double u, double v) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_uv_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),idx, u, v); Eina.Error.RaiseIfUnhandledException(); } /// Color of a vertex in the map. @@ -1976,9 +2180,8 @@ private static object FocusOutEvtKey = new object(); /// Green (0 - 255) /// Blue (0 - 255) /// Alpha (0 - 255) - /// - virtual public void GetMappingColor( int idx, out int r, out int g, out int b, out int a) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), idx, out r, out g, out b, out a); + virtual public void GetMappingColor(int idx, out int r, out int g, out int b, out int a) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),idx, out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of a vertex in the map. @@ -1991,9 +2194,8 @@ private static object FocusOutEvtKey = new object(); /// Green (0 - 255) /// Blue (0 - 255) /// Alpha (0 - 255) - /// - virtual public void SetMappingColor( int idx, int r, int g, int b, int a) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), idx, r, g, b, a); + virtual public void SetMappingColor(int idx, int r, int g, int b, int a) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),idx, r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Read-only property indicating whether an object is mapped. @@ -2001,16 +2203,15 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// true if the object is mapped. virtual public bool HasMapping() { - var _ret_var = Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_has_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_has_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Resets the map transformation to its default state. /// This will reset all transformations to identity, meaning the points' colors, positions and UV coordinates will be reset to their default values. will then return false. This function will not modify the values of or . /// (Since EFL 1.22) - /// virtual public void ResetMapping() { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Apply a translation to the object using map. @@ -2019,9 +2220,8 @@ private static object FocusOutEvtKey = new object(); /// Distance in pixels along the X axis. /// Distance in pixels along the Y axis. /// Distance in pixels along the Z axis. - /// - virtual public void Translate( double dx, double dy, double dz) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_translate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dx, dy, dz); + virtual public void Translate(double dx, double dy, double dz) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_translate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dx, dy, dz); Eina.Error.RaiseIfUnhandledException(); } /// Apply a rotation to the object. @@ -2035,9 +2235,8 @@ private static object FocusOutEvtKey = new object(); /// A pivot object for the center point, can be null. /// X relative coordinate of the center point. /// y relative coordinate of the center point. - /// - virtual public void Rotate( double degrees, Efl.Gfx.IEntity pivot, double cx, double cy) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), degrees, pivot, cx, cy); + virtual public void Rotate(double degrees, Efl.Gfx.IEntity pivot, double cx, double cy) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),degrees, pivot, cx, cy); Eina.Error.RaiseIfUnhandledException(); } /// Rotate the object around 3 axes in 3D. @@ -2052,9 +2251,8 @@ private static object FocusOutEvtKey = new object(); /// X relative coordinate of the center point. /// y relative coordinate of the center point. /// Z absolute coordinate of the center point. - /// - virtual public void Rotate3d( double dx, double dy, double dz, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_3d_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dx, dy, dz, pivot, cx, cy, cz); + virtual public void Rotate3d(double dx, double dy, double dz, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_3d_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dx, dy, dz, pivot, cx, cy, cz); Eina.Error.RaiseIfUnhandledException(); } /// Rotate the object in 3D using a unit quaternion. @@ -2070,9 +2268,8 @@ private static object FocusOutEvtKey = new object(); /// X relative coordinate of the center point. /// y relative coordinate of the center point. /// Z absolute coordinate of the center point. - /// - virtual public void RotateQuat( double qx, double qy, double qz, double qw, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_quat_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), qx, qy, qz, qw, pivot, cx, cy, cz); + virtual public void RotateQuat(double qx, double qy, double qz, double qw, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_quat_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),qx, qy, qz, qw, pivot, cx, cy, cz); Eina.Error.RaiseIfUnhandledException(); } /// Apply a zoom to the object. @@ -2085,9 +2282,8 @@ private static object FocusOutEvtKey = new object(); /// A pivot object for the center point, can be null. /// X relative coordinate of the center point. /// y relative coordinate of the center point. - /// - virtual public void Zoom( double zoomx, double zoomy, Efl.Gfx.IEntity pivot, double cx, double cy) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_zoom_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), zoomx, zoomy, pivot, cx, cy); + virtual public void Zoom(double zoomx, double zoomy, Efl.Gfx.IEntity pivot, double cx, double cy) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_zoom_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),zoomx, zoomy, pivot, cx, cy); Eina.Error.RaiseIfUnhandledException(); } /// Apply a lighting effect on the object. @@ -2105,9 +2301,8 @@ private static object FocusOutEvtKey = new object(); /// Ambient color red value (0 - 255). /// Ambient color green value (0 - 255). /// Ambient color blue value (0 - 255). - /// - virtual public void Lighting3d( Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_lighting_3d_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); + virtual public void Lighting3d(Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_lighting_3d_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); Eina.Error.RaiseIfUnhandledException(); } /// Apply a perspective transform to the map @@ -2120,9 +2315,8 @@ private static object FocusOutEvtKey = new object(); /// The perspective distance Y relative coordinate. /// The "0" Z plane value. /// The focal distance, must be greater than 0. - /// - virtual public void Perspective3d( Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_perspective_3d_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pivot, px, py, z0, foc); + virtual public void Perspective3d(Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_perspective_3d_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pivot, px, py, z0, foc); Eina.Error.RaiseIfUnhandledException(); } /// Apply a rotation to the object, using absolute coordinates. @@ -2133,9 +2327,8 @@ private static object FocusOutEvtKey = new object(); /// CCW rotation in degrees. /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. - /// - virtual public void RotateAbsolute( double degrees, double cx, double cy) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), degrees, cx, cy); + virtual public void RotateAbsolute(double degrees, double cx, double cy) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),degrees, cx, cy); Eina.Error.RaiseIfUnhandledException(); } /// Rotate the object around 3 axes in 3D, using absolute coordinates. @@ -2149,9 +2342,8 @@ private static object FocusOutEvtKey = new object(); /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. /// Z absolute coordinate of the center point. - /// - virtual public void Rotate3dAbsolute( double dx, double dy, double dz, double cx, double cy, double cz) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_3d_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dx, dy, dz, cx, cy, cz); + virtual public void Rotate3dAbsolute(double dx, double dy, double dz, double cx, double cy, double cz) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_3d_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dx, dy, dz, cx, cy, cz); Eina.Error.RaiseIfUnhandledException(); } /// Rotate the object in 3D using a unit quaternion, using absolute coordinates. @@ -2166,9 +2358,8 @@ private static object FocusOutEvtKey = new object(); /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. /// Z absolute coordinate of the center point. - /// - virtual public void RotateQuatAbsolute( double qx, double qy, double qz, double qw, double cx, double cy, double cz) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_quat_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), qx, qy, qz, qw, cx, cy, cz); + virtual public void RotateQuatAbsolute(double qx, double qy, double qz, double qw, double cx, double cy, double cz) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_quat_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),qx, qy, qz, qw, cx, cy, cz); Eina.Error.RaiseIfUnhandledException(); } /// Apply a zoom to the object, using absolute coordinates. @@ -2180,9 +2371,8 @@ private static object FocusOutEvtKey = new object(); /// Zoom in Y direction /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. - /// - virtual public void ZoomAbsolute( double zoomx, double zoomy, double cx, double cy) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_zoom_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), zoomx, zoomy, cx, cy); + virtual public void ZoomAbsolute(double zoomx, double zoomy, double cx, double cy) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_zoom_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),zoomx, zoomy, cx, cy); Eina.Error.RaiseIfUnhandledException(); } /// Apply a lighting effect to the object. @@ -2199,9 +2389,8 @@ private static object FocusOutEvtKey = new object(); /// Ambient color red value (0 - 255). /// Ambient color green value (0 - 255). /// Ambient color blue value (0 - 255). - /// - virtual public void Lighting3dAbsolute( double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_lighting_3d_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), lx, ly, lz, lr, lg, lb, ar, ag, ab); + virtual public void Lighting3dAbsolute(double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_lighting_3d_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),lx, ly, lz, lr, lg, lb, ar, ag, ab); Eina.Error.RaiseIfUnhandledException(); } /// Apply a perspective transform to the map @@ -2213,9 +2402,8 @@ private static object FocusOutEvtKey = new object(); /// The perspective distance Y relative coordinate. /// The "0" Z plane value. /// The focal distance, must be greater than 0. - /// - virtual public void Perspective3dAbsolute( double px, double py, double z0, double foc) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_perspective_3d_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), px, py, z0, foc); + virtual public void Perspective3dAbsolute(double px, double py, double z0, double foc) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_perspective_3d_absolute_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),px, py, z0, foc); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the layer of its canvas that the given object is part of. @@ -2223,7 +2411,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . virtual public short GetLayer() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_layer_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_layer_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2237,9 +2425,8 @@ private static object FocusOutEvtKey = new object(); /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . - /// - virtual public void SetLayer( short l) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_layer_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), l); + virtual public void SetLayer(short l) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_layer_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),l); Eina.Error.RaiseIfUnhandledException(); } /// Get the Evas object stacked right below obj @@ -2249,7 +2436,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. virtual public Efl.Gfx.IStack GetBelow() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_below_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_below_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2260,7 +2447,7 @@ private static object FocusOutEvtKey = new object(); /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. virtual public Efl.Gfx.IStack GetAbove() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_above_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_above_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2276,9 +2463,8 @@ private static object FocusOutEvtKey = new object(); /// See also , and /// (Since EFL 1.22) /// The object below which to stack - /// - virtual public void StackBelow( Efl.Gfx.IStack below) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_below_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), below); + virtual public void StackBelow(Efl.Gfx.IStack below) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_below_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),below); Eina.Error.RaiseIfUnhandledException(); } /// Raise obj to the top of its layer. @@ -2286,9 +2472,8 @@ private static object FocusOutEvtKey = new object(); /// /// See also , and /// (Since EFL 1.22) - /// virtual public void RaiseToTop() { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_raise_to_top_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_raise_to_top_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Stack obj immediately above @@ -2303,9 +2488,8 @@ private static object FocusOutEvtKey = new object(); /// See also , and /// (Since EFL 1.22) /// The object above which to stack - /// - virtual public void StackAbove( Efl.Gfx.IStack above) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_above_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), above); + virtual public void StackAbove(Efl.Gfx.IStack above) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_above_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),above); Eina.Error.RaiseIfUnhandledException(); } /// Lower obj to the bottom of its layer. @@ -2313,41 +2497,38 @@ private static object FocusOutEvtKey = new object(); /// /// See also , and /// (Since EFL 1.22) - /// virtual public void LowerToBottom() { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Check if input events from a given seat is enabled. /// The seat to act on. /// true to enable events for a seat or false otherwise. - virtual public bool GetSeatEventFilter( Efl.Input.Device seat) { - var _ret_var = Efl.Input.IInterfaceNativeInherit.efl_input_seat_event_filter_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), seat); + virtual public bool GetSeatEventFilter(Efl.Input.Device seat) { + var _ret_var = Efl.Input.IInterfaceConcrete.NativeMethods.efl_input_seat_event_filter_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Add or remove a given seat to the filter list. If the filter list is empty this object will report mouse, keyboard and focus events from any seat, otherwise those events will only be reported if the event comes from a seat that is in the list. /// The seat to act on. /// true to enable events for a seat or false otherwise. - /// - virtual public void SetSeatEventFilter( Efl.Input.Device seat, bool enable) { - Efl.Input.IInterfaceNativeInherit.efl_input_seat_event_filter_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), seat, enable); + virtual public void SetSeatEventFilter(Efl.Input.Device seat, bool enable) { + Efl.Input.IInterfaceConcrete.NativeMethods.efl_input_seat_event_filter_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),seat, enable); Eina.Error.RaiseIfUnhandledException(); } /// Whether this object should be mirrored. /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). /// true for RTL, false for LTR (default). virtual public bool GetMirrored() { - var _ret_var = Efl.Ui.II18nNativeInherit.efl_ui_mirrored_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether this object should be mirrored. /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). /// true for RTL, false for LTR (default). - /// - virtual public void SetMirrored( bool rtl) { - Efl.Ui.II18nNativeInherit.efl_ui_mirrored_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), rtl); + virtual public void SetMirrored(bool rtl) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),rtl); Eina.Error.RaiseIfUnhandledException(); } /// Whether the property should be set automatically. @@ -2356,7 +2537,7 @@ private static object FocusOutEvtKey = new object(); /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. /// Whether the widget uses automatic mirroring virtual public bool GetMirroredAutomatic() { - var _ret_var = Efl.Ui.II18nNativeInherit.efl_ui_mirrored_automatic_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2365,23 +2546,21 @@ private static object FocusOutEvtKey = new object(); /// /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. /// Whether the widget uses automatic mirroring - /// - virtual public void SetMirroredAutomatic( bool automatic) { - Efl.Ui.II18nNativeInherit.efl_ui_mirrored_automatic_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), automatic); + virtual public void SetMirroredAutomatic(bool automatic) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),automatic); Eina.Error.RaiseIfUnhandledException(); } /// Gets the language for this object. /// The current language. virtual public System.String GetLanguage() { - var _ret_var = Efl.Ui.II18nNativeInherit.efl_ui_language_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the language for this object. /// The current language. - /// - virtual public void SetLanguage( System.String language) { - Efl.Ui.II18nNativeInherit.efl_ui_language_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), language); + virtual public void SetLanguage(System.String language) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),language); Eina.Error.RaiseIfUnhandledException(); } /// Low-level pointer behaviour. @@ -2396,7 +2575,7 @@ private static object FocusOutEvtKey = new object(); /// Input pointer mode public Efl.Input.ObjectPointerMode PointerMode { get { return GetPointerMode(); } - set { SetPointerMode( value); } + set { SetPointerMode(value); } } /// Render mode to be used for compositing the Evas object. /// Only two modes are supported: - means the object will be merged on top of objects below it using simple alpha compositing. - means this object's pixels will replace everything that is below, making this object opaque. @@ -2406,7 +2585,7 @@ private static object FocusOutEvtKey = new object(); /// Blend or copy. public Efl.Gfx.RenderOp RenderOp { get { return GetRenderOp(); } - set { SetRenderOp( value); } + set { SetRenderOp(value); } } /// Get the object clipping obj (if any). /// This function returns the object clipping obj. If obj is not being clipped at all, null is returned. The object obj must be a valid Evas_Object. @@ -2414,14 +2593,14 @@ private static object FocusOutEvtKey = new object(); /// The object to clip obj by. public Efl.Canvas.Object Clipper { get { return GetClipper(); } - set { SetClipper( value); } + set { SetClipper(value); } } /// Determine whether an object is set to repeat events. /// (Since EFL 1.22) /// Whether obj is to repeat events (true) or not (false). public bool RepeatEvents { get { return GetRepeatEvents(); } - set { SetRepeatEvents( value); } + set { SetRepeatEvents(value); } } /// Indicates that this object is the keyboard event receiver on its canvas. /// Changing focus only affects where (key) input events go. There can be only one object focused at any time. If focus is true, obj will be set as the currently focused object and it will receive all keyboard events that are not exclusive key grabs on other objects. See also , , . @@ -2429,7 +2608,7 @@ private static object FocusOutEvtKey = new object(); /// true when set as focused or false otherwise. public bool KeyFocus { get { return GetKeyFocus(); } - set { SetKeyFocus( value); } + set { SetKeyFocus(value); } } /// Check if this object is focused. /// (Since EFL 1.22) @@ -2442,7 +2621,7 @@ private static object FocusOutEvtKey = new object(); /// Whether to use precise point collision detection or not. The default value is false. public bool PreciseIsInside { get { return GetPreciseIsInside(); } - set { SetPreciseIsInside( value); } + set { SetPreciseIsInside(value); } } /// Retrieve whether an Evas object is set to propagate events. /// See also , . @@ -2450,7 +2629,7 @@ private static object FocusOutEvtKey = new object(); /// Whether to propagate events (true) or not (false). public bool PropagateEvents { get { return GetPropagateEvents(); } - set { SetPropagateEvents( value); } + set { SetPropagateEvents(value); } } /// Determine whether an object is set to pass (ignore) events. /// See also , . @@ -2458,14 +2637,14 @@ private static object FocusOutEvtKey = new object(); /// Whether obj is to pass events (true) or not (false). public bool PassEvents { get { return GetPassEvents(); } - set { SetPassEvents( value); } + set { SetPassEvents(value); } } /// Retrieves whether or not the given Evas object is to be drawn anti_aliased. /// (Since EFL 1.22) /// true if the object is to be anti_aliased, false otherwise. public bool AntiAlias { get { return GetAntiAlias(); } - set { SetAntiAlias( value); } + set { SetAntiAlias(value); } } /// Return a list of objects currently clipped by obj. /// This returns the internal list handle containing all objects clipped by the object obj. If none are clipped by it, the call returns null. This list is only valid until the clip list is changed and should be fetched again with another call to this function if any objects being clipped by this object are unclipped, clipped by a new object, deleted or get the clipper deleted. These operations will invalidate the list returned, so it should not be used anymore after that point. Any use of the list after this may have undefined results, possibly leading to crashes. @@ -2488,7 +2667,7 @@ private static object FocusOutEvtKey = new object(); /// Paragraph direction for the given object. public Efl.TextBidirectionalType ParagraphDirection { get { return GetParagraphDirection(); } - set { SetParagraphDirection( value); } + set { SetParagraphDirection(value); } } /// Returns the state of the "no-render" flag, which means, when true, that an object should never be rendered on the canvas. /// This flag can be used to avoid rendering visible clippers on the canvas, even if they currently don't clip any object. @@ -2496,14 +2675,14 @@ private static object FocusOutEvtKey = new object(); /// Enable "no-render" mode. public bool NoRender { get { return GetNoRender(); } - set { SetNoRender( value); } + set { SetNoRender(value); } } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. public System.String ColorCode { get { return GetColorCode(); } - set { SetColorCode( value); } + set { SetColorCode(value); } } /// The 2D position of a canvas object. /// The position is absolute, in pixels, relative to the top-left corner of the window, within its border decorations (application space). @@ -2511,21 +2690,21 @@ private static object FocusOutEvtKey = new object(); /// A 2D coordinate in pixel units. public Eina.Position2D Position { get { return GetPosition(); } - set { SetPosition( value); } + set { SetPosition(value); } } /// The 2D size of a canvas object. /// (Since EFL 1.22) /// A 2D size in pixel units. public Eina.Size2D Size { get { return GetSize(); } - set { SetSize( value); } + set { SetSize(value); } } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. public Eina.Rect Geometry { get { return GetGeometry(); } - set { SetGeometry( value); } + set { SetGeometry(value); } } /// The visibility of a canvas object. /// All canvas objects will become visible by default just before render. This means that it is not required to call after creating an object unless you want to create it without showing it. Note that this behavior is new since 1.21, and only applies to canvas objects created with the EO API (i.e. not the legacy C-only API). Other types of Gfx objects may or may not be visible by default. @@ -2535,7 +2714,7 @@ private static object FocusOutEvtKey = new object(); /// true if to make the object visible, false otherwise public bool Visible { get { return GetVisible(); } - set { SetVisible( value); } + set { SetVisible(value); } } /// The scaling factor of an object. /// This property is an individual scaling factor on the object (Edje or UI widget). This property (or Edje's global scaling factor, when applicable), will affect this object's part sizes. If scale is not zero, than the individual scaling will override any global scaling set, for the object obj's parts. Set it back to zero to get the effects of the global scaling again. @@ -2545,7 +2724,7 @@ private static object FocusOutEvtKey = new object(); /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) public double Scale { get { return GetScale(); } - set { SetScale( value); } + set { SetScale(value); } } /// Hints on the object's maximum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. @@ -2559,7 +2738,7 @@ private static object FocusOutEvtKey = new object(); /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). public Eina.Size2D HintSizeMax { get { return GetHintSizeMax(); } - set { SetHintSizeMax( value); } + set { SetHintSizeMax(value); } } /// Hints on the object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly. @@ -2571,7 +2750,7 @@ private static object FocusOutEvtKey = new object(); /// Minimum size (hint) in pixels. public Eina.Size2D HintSizeMin { get { return GetHintSizeMin(); } - set { SetHintSizeMin( value); } + set { SetHintSizeMin(value); } } /// Internal hints for an object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. @@ -2583,7 +2762,7 @@ private static object FocusOutEvtKey = new object(); /// Minimum size (hint) in pixels. public Eina.Size2D HintSizeRestrictedMin { get { return GetHintSizeRestrictedMin(); } - set { SetHintSizeRestrictedMin( value); } + set { SetHintSizeRestrictedMin(value); } } /// Read-only minimum size combining both and hints. /// is intended for mostly internal usage and widget developers, and is intended to be set from application side. combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's minimum size. @@ -2598,7 +2777,7 @@ private static object FocusOutEvtKey = new object(); /// The number of points of map public int MappingPointCount { get { return GetMappingPointCount(); } - set { SetMappingPointCount( value); } + set { SetMappingPointCount(value); } } /// Clockwise state of a map (read-only). /// This determines if the output points (X and Y. Z is not used) are clockwise or counter-clockwise. This can be used for "back-face culling". This is where you hide objects that "face away" from you. In this case objects that are not clockwise. @@ -2613,7 +2792,7 @@ private static object FocusOutEvtKey = new object(); /// true by default. public bool MappingSmooth { get { return GetMappingSmooth(); } - set { SetMappingSmooth( value); } + set { SetMappingSmooth(value); } } /// Alpha flag for map rendering. /// This sets alpha flag for map rendering. If the object is a type that has its own alpha settings, then this will take precedence. Only image objects support this currently ( and its friends). Setting this to off stops alpha blending of the map area, and is useful if you know the object and/or all sub-objects is 100% solid. @@ -2623,7 +2802,7 @@ private static object FocusOutEvtKey = new object(); /// true by default. public bool MappingAlpha { get { return GetMappingAlpha(); } - set { SetMappingAlpha( value); } + set { SetMappingAlpha(value); } } /// Retrieves the layer of its canvas that the given object is part of. /// See also @@ -2631,7 +2810,7 @@ private static object FocusOutEvtKey = new object(); /// The number of the layer to place the object on. Must be between and . public short Layer { get { return GetLayer(); } - set { SetLayer( value); } + set { SetLayer(value); } } /// Get the Evas object stacked right below obj /// This function will traverse layers in its search, if there are objects on layers below the one obj is placed at. @@ -2656,7 +2835,7 @@ private static object FocusOutEvtKey = new object(); /// true for RTL, false for LTR (default). public bool Mirrored { get { return GetMirrored(); } - set { SetMirrored( value); } + set { SetMirrored(value); } } /// Whether the property should be set automatically. /// If enabled, the system or application configuration will be used to set the value of . @@ -2665,3175 +2844,5060 @@ private static object FocusOutEvtKey = new object(); /// Whether the widget uses automatic mirroring public bool MirroredAutomatic { get { return GetMirroredAutomatic(); } - set { SetMirroredAutomatic( value); } + set { SetMirroredAutomatic(value); } } /// The (human) language for this object. /// The current language. public System.String Language { get { return GetLanguage(); } - set { SetLanguage( value); } + set { SetLanguage(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Object.efl_canvas_object_class_get(); } -} -public class ObjectNativeInherit : Efl.LoopConsumerNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_canvas_object_pointer_mode_by_device_get_static_delegate == null) - efl_canvas_object_pointer_mode_by_device_get_static_delegate = new efl_canvas_object_pointer_mode_by_device_get_delegate(pointer_mode_by_device_get); - if (methods.FirstOrDefault(m => m.Name == "GetPointerModeByDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_pointer_mode_by_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pointer_mode_by_device_get_static_delegate)}); - if (efl_canvas_object_pointer_mode_by_device_set_static_delegate == null) - efl_canvas_object_pointer_mode_by_device_set_static_delegate = new efl_canvas_object_pointer_mode_by_device_set_delegate(pointer_mode_by_device_set); - if (methods.FirstOrDefault(m => m.Name == "SetPointerModeByDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_pointer_mode_by_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pointer_mode_by_device_set_static_delegate)}); - if (efl_canvas_object_pointer_mode_get_static_delegate == null) - efl_canvas_object_pointer_mode_get_static_delegate = new efl_canvas_object_pointer_mode_get_delegate(pointer_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetPointerMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_pointer_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pointer_mode_get_static_delegate)}); - if (efl_canvas_object_pointer_mode_set_static_delegate == null) - efl_canvas_object_pointer_mode_set_static_delegate = new efl_canvas_object_pointer_mode_set_delegate(pointer_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetPointerMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_pointer_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pointer_mode_set_static_delegate)}); - if (efl_canvas_object_render_op_get_static_delegate == null) - efl_canvas_object_render_op_get_static_delegate = new efl_canvas_object_render_op_get_delegate(render_op_get); - if (methods.FirstOrDefault(m => m.Name == "GetRenderOp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_render_op_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_render_op_get_static_delegate)}); - if (efl_canvas_object_render_op_set_static_delegate == null) - efl_canvas_object_render_op_set_static_delegate = new efl_canvas_object_render_op_set_delegate(render_op_set); - if (methods.FirstOrDefault(m => m.Name == "SetRenderOp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_render_op_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_render_op_set_static_delegate)}); - if (efl_canvas_object_clipper_get_static_delegate == null) - efl_canvas_object_clipper_get_static_delegate = new efl_canvas_object_clipper_get_delegate(clipper_get); - if (methods.FirstOrDefault(m => m.Name == "GetClipper") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_clipper_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_clipper_get_static_delegate)}); - if (efl_canvas_object_clipper_set_static_delegate == null) - efl_canvas_object_clipper_set_static_delegate = new efl_canvas_object_clipper_set_delegate(clipper_set); - if (methods.FirstOrDefault(m => m.Name == "SetClipper") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_clipper_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_clipper_set_static_delegate)}); - if (efl_canvas_object_repeat_events_get_static_delegate == null) - efl_canvas_object_repeat_events_get_static_delegate = new efl_canvas_object_repeat_events_get_delegate(repeat_events_get); - if (methods.FirstOrDefault(m => m.Name == "GetRepeatEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_repeat_events_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_repeat_events_get_static_delegate)}); - if (efl_canvas_object_repeat_events_set_static_delegate == null) - efl_canvas_object_repeat_events_set_static_delegate = new efl_canvas_object_repeat_events_set_delegate(repeat_events_set); - if (methods.FirstOrDefault(m => m.Name == "SetRepeatEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_repeat_events_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_repeat_events_set_static_delegate)}); - if (efl_canvas_object_key_focus_get_static_delegate == null) - efl_canvas_object_key_focus_get_static_delegate = new efl_canvas_object_key_focus_get_delegate(key_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetKeyFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_key_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_key_focus_get_static_delegate)}); - if (efl_canvas_object_key_focus_set_static_delegate == null) - efl_canvas_object_key_focus_set_static_delegate = new efl_canvas_object_key_focus_set_delegate(key_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetKeyFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_key_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_key_focus_set_static_delegate)}); - if (efl_canvas_object_seat_focus_get_static_delegate == null) - efl_canvas_object_seat_focus_get_static_delegate = new efl_canvas_object_seat_focus_get_delegate(seat_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeatFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_seat_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_seat_focus_get_static_delegate)}); - if (efl_canvas_object_precise_is_inside_get_static_delegate == null) - efl_canvas_object_precise_is_inside_get_static_delegate = new efl_canvas_object_precise_is_inside_get_delegate(precise_is_inside_get); - if (methods.FirstOrDefault(m => m.Name == "GetPreciseIsInside") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_precise_is_inside_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_precise_is_inside_get_static_delegate)}); - if (efl_canvas_object_precise_is_inside_set_static_delegate == null) - efl_canvas_object_precise_is_inside_set_static_delegate = new efl_canvas_object_precise_is_inside_set_delegate(precise_is_inside_set); - if (methods.FirstOrDefault(m => m.Name == "SetPreciseIsInside") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_precise_is_inside_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_precise_is_inside_set_static_delegate)}); - if (efl_canvas_object_propagate_events_get_static_delegate == null) - efl_canvas_object_propagate_events_get_static_delegate = new efl_canvas_object_propagate_events_get_delegate(propagate_events_get); - if (methods.FirstOrDefault(m => m.Name == "GetPropagateEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_propagate_events_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_propagate_events_get_static_delegate)}); - if (efl_canvas_object_propagate_events_set_static_delegate == null) - efl_canvas_object_propagate_events_set_static_delegate = new efl_canvas_object_propagate_events_set_delegate(propagate_events_set); - if (methods.FirstOrDefault(m => m.Name == "SetPropagateEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_propagate_events_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_propagate_events_set_static_delegate)}); - if (efl_canvas_object_pass_events_get_static_delegate == null) - efl_canvas_object_pass_events_get_static_delegate = new efl_canvas_object_pass_events_get_delegate(pass_events_get); - if (methods.FirstOrDefault(m => m.Name == "GetPassEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_pass_events_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pass_events_get_static_delegate)}); - if (efl_canvas_object_pass_events_set_static_delegate == null) - efl_canvas_object_pass_events_set_static_delegate = new efl_canvas_object_pass_events_set_delegate(pass_events_set); - if (methods.FirstOrDefault(m => m.Name == "SetPassEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_pass_events_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pass_events_set_static_delegate)}); - if (efl_canvas_object_anti_alias_get_static_delegate == null) - efl_canvas_object_anti_alias_get_static_delegate = new efl_canvas_object_anti_alias_get_delegate(anti_alias_get); - if (methods.FirstOrDefault(m => m.Name == "GetAntiAlias") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_anti_alias_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_anti_alias_get_static_delegate)}); - if (efl_canvas_object_anti_alias_set_static_delegate == null) - efl_canvas_object_anti_alias_set_static_delegate = new efl_canvas_object_anti_alias_set_delegate(anti_alias_set); - if (methods.FirstOrDefault(m => m.Name == "SetAntiAlias") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_anti_alias_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_anti_alias_set_static_delegate)}); - if (efl_canvas_object_clipped_objects_get_static_delegate == null) - efl_canvas_object_clipped_objects_get_static_delegate = new efl_canvas_object_clipped_objects_get_delegate(clipped_objects_get); - if (methods.FirstOrDefault(m => m.Name == "GetClippedObjects") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_clipped_objects_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_clipped_objects_get_static_delegate)}); - if (efl_canvas_object_render_parent_get_static_delegate == null) - efl_canvas_object_render_parent_get_static_delegate = new efl_canvas_object_render_parent_get_delegate(render_parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetRenderParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_render_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_render_parent_get_static_delegate)}); - if (efl_canvas_object_paragraph_direction_get_static_delegate == null) - efl_canvas_object_paragraph_direction_get_static_delegate = new efl_canvas_object_paragraph_direction_get_delegate(paragraph_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetParagraphDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_paragraph_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_paragraph_direction_get_static_delegate)}); - if (efl_canvas_object_paragraph_direction_set_static_delegate == null) - efl_canvas_object_paragraph_direction_set_static_delegate = new efl_canvas_object_paragraph_direction_set_delegate(paragraph_direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetParagraphDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_paragraph_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_paragraph_direction_set_static_delegate)}); - if (efl_canvas_object_no_render_get_static_delegate == null) - efl_canvas_object_no_render_get_static_delegate = new efl_canvas_object_no_render_get_delegate(no_render_get); - if (methods.FirstOrDefault(m => m.Name == "GetNoRender") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_no_render_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_no_render_get_static_delegate)}); - if (efl_canvas_object_no_render_set_static_delegate == null) - efl_canvas_object_no_render_set_static_delegate = new efl_canvas_object_no_render_set_delegate(no_render_set); - if (methods.FirstOrDefault(m => m.Name == "SetNoRender") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_no_render_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_no_render_set_static_delegate)}); - if (efl_canvas_object_coords_inside_get_static_delegate == null) - efl_canvas_object_coords_inside_get_static_delegate = new efl_canvas_object_coords_inside_get_delegate(coords_inside_get); - if (methods.FirstOrDefault(m => m.Name == "GetCoordsInside") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_coords_inside_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_coords_inside_get_static_delegate)}); - if (efl_canvas_object_seat_focus_check_static_delegate == null) - efl_canvas_object_seat_focus_check_static_delegate = new efl_canvas_object_seat_focus_check_delegate(seat_focus_check); - if (methods.FirstOrDefault(m => m.Name == "CheckSeatFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_seat_focus_check"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_seat_focus_check_static_delegate)}); - if (efl_canvas_object_seat_focus_add_static_delegate == null) - efl_canvas_object_seat_focus_add_static_delegate = new efl_canvas_object_seat_focus_add_delegate(seat_focus_add); - if (methods.FirstOrDefault(m => m.Name == "AddSeatFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_seat_focus_add"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_seat_focus_add_static_delegate)}); - if (efl_canvas_object_seat_focus_del_static_delegate == null) - efl_canvas_object_seat_focus_del_static_delegate = new efl_canvas_object_seat_focus_del_delegate(seat_focus_del); - if (methods.FirstOrDefault(m => m.Name == "DelSeatFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_seat_focus_del"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_seat_focus_del_static_delegate)}); - if (efl_canvas_object_clipped_objects_count_static_delegate == null) - efl_canvas_object_clipped_objects_count_static_delegate = new efl_canvas_object_clipped_objects_count_delegate(clipped_objects_count); - if (methods.FirstOrDefault(m => m.Name == "ClippedObjectsCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_clipped_objects_count"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_clipped_objects_count_static_delegate)}); - if (efl_canvas_object_key_grab_static_delegate == null) - efl_canvas_object_key_grab_static_delegate = new efl_canvas_object_key_grab_delegate(key_grab); - if (methods.FirstOrDefault(m => m.Name == "GrabKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_key_grab"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_key_grab_static_delegate)}); - if (efl_canvas_object_key_ungrab_static_delegate == null) - efl_canvas_object_key_ungrab_static_delegate = new efl_canvas_object_key_ungrab_delegate(key_ungrab); - if (methods.FirstOrDefault(m => m.Name == "UngrabKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_object_key_ungrab"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_key_ungrab_static_delegate)}); - if (efl_canvas_pointer_inside_get_static_delegate == null) - efl_canvas_pointer_inside_get_static_delegate = new efl_canvas_pointer_inside_get_delegate(pointer_inside_get); - if (methods.FirstOrDefault(m => m.Name == "GetPointerInside") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_pointer_inside_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_pointer_inside_get_static_delegate)}); - if (efl_gfx_color_get_static_delegate == null) - efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); - if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate)}); - if (efl_gfx_color_set_static_delegate == null) - efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); - if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate)}); - if (efl_gfx_color_code_get_static_delegate == null) - efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate)}); - if (efl_gfx_color_code_set_static_delegate == null) - efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); - if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate)}); - if (efl_gfx_entity_position_get_static_delegate == null) - efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate)}); - if (efl_gfx_entity_position_set_static_delegate == null) - efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate)}); - if (efl_gfx_entity_size_get_static_delegate == null) - efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); - if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate)}); - if (efl_gfx_entity_size_set_static_delegate == null) - efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); - if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate)}); - if (efl_gfx_entity_geometry_get_static_delegate == null) - efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate)}); - if (efl_gfx_entity_geometry_set_static_delegate == null) - efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); - if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate)}); - if (efl_gfx_entity_visible_get_static_delegate == null) - efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); - if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate)}); - if (efl_gfx_entity_visible_set_static_delegate == null) - efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); - if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate)}); - if (efl_gfx_entity_scale_get_static_delegate == null) - efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate)}); - if (efl_gfx_entity_scale_set_static_delegate == null) - efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_static_delegate)}); - if (efl_gfx_hint_aspect_get_static_delegate == null) - efl_gfx_hint_aspect_get_static_delegate = new efl_gfx_hint_aspect_get_delegate(hint_aspect_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintAspect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_aspect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_aspect_get_static_delegate)}); - if (efl_gfx_hint_aspect_set_static_delegate == null) - efl_gfx_hint_aspect_set_static_delegate = new efl_gfx_hint_aspect_set_delegate(hint_aspect_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintAspect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_aspect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_aspect_set_static_delegate)}); - if (efl_gfx_hint_size_max_get_static_delegate == null) - efl_gfx_hint_size_max_get_static_delegate = new efl_gfx_hint_size_max_get_delegate(hint_size_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintSizeMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_get_static_delegate)}); - if (efl_gfx_hint_size_max_set_static_delegate == null) - efl_gfx_hint_size_max_set_static_delegate = new efl_gfx_hint_size_max_set_delegate(hint_size_max_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintSizeMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_set_static_delegate)}); - if (efl_gfx_hint_size_min_get_static_delegate == null) - efl_gfx_hint_size_min_get_static_delegate = new efl_gfx_hint_size_min_get_delegate(hint_size_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_min_get_static_delegate)}); - if (efl_gfx_hint_size_min_set_static_delegate == null) - efl_gfx_hint_size_min_set_static_delegate = new efl_gfx_hint_size_min_set_delegate(hint_size_min_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_min_set_static_delegate)}); - if (efl_gfx_hint_size_restricted_min_get_static_delegate == null) - efl_gfx_hint_size_restricted_min_get_static_delegate = new efl_gfx_hint_size_restricted_min_get_delegate(hint_size_restricted_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintSizeRestrictedMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_restricted_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_min_get_static_delegate)}); - if (efl_gfx_hint_size_restricted_min_set_static_delegate == null) - efl_gfx_hint_size_restricted_min_set_static_delegate = new efl_gfx_hint_size_restricted_min_set_delegate(hint_size_restricted_min_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintSizeRestrictedMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_restricted_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_min_set_static_delegate)}); - if (efl_gfx_hint_size_combined_min_get_static_delegate == null) - efl_gfx_hint_size_combined_min_get_static_delegate = new efl_gfx_hint_size_combined_min_get_delegate(hint_size_combined_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintSizeCombinedMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_combined_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_combined_min_get_static_delegate)}); - if (efl_gfx_hint_margin_get_static_delegate == null) - efl_gfx_hint_margin_get_static_delegate = new efl_gfx_hint_margin_get_delegate(hint_margin_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintMargin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_margin_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_margin_get_static_delegate)}); - if (efl_gfx_hint_margin_set_static_delegate == null) - efl_gfx_hint_margin_set_static_delegate = new efl_gfx_hint_margin_set_delegate(hint_margin_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintMargin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_margin_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_margin_set_static_delegate)}); - if (efl_gfx_hint_weight_get_static_delegate == null) - efl_gfx_hint_weight_get_static_delegate = new efl_gfx_hint_weight_get_delegate(hint_weight_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_weight_get_static_delegate)}); - if (efl_gfx_hint_weight_set_static_delegate == null) - efl_gfx_hint_weight_set_static_delegate = new efl_gfx_hint_weight_set_delegate(hint_weight_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_weight_set_static_delegate)}); - if (efl_gfx_hint_align_get_static_delegate == null) - efl_gfx_hint_align_get_static_delegate = new efl_gfx_hint_align_get_delegate(hint_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_align_get_static_delegate)}); - if (efl_gfx_hint_align_set_static_delegate == null) - efl_gfx_hint_align_set_static_delegate = new efl_gfx_hint_align_set_delegate(hint_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_align_set_static_delegate)}); - if (efl_gfx_hint_fill_get_static_delegate == null) - efl_gfx_hint_fill_get_static_delegate = new efl_gfx_hint_fill_get_delegate(hint_fill_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_fill_get_static_delegate)}); - if (efl_gfx_hint_fill_set_static_delegate == null) - efl_gfx_hint_fill_set_static_delegate = new efl_gfx_hint_fill_set_delegate(hint_fill_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_fill_set_static_delegate)}); - if (efl_gfx_mapping_point_count_get_static_delegate == null) - efl_gfx_mapping_point_count_get_static_delegate = new efl_gfx_mapping_point_count_get_delegate(mapping_point_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingPointCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_point_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_point_count_get_static_delegate)}); - if (efl_gfx_mapping_point_count_set_static_delegate == null) - efl_gfx_mapping_point_count_set_static_delegate = new efl_gfx_mapping_point_count_set_delegate(mapping_point_count_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingPointCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_point_count_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_point_count_set_static_delegate)}); - if (efl_gfx_mapping_clockwise_get_static_delegate == null) - efl_gfx_mapping_clockwise_get_static_delegate = new efl_gfx_mapping_clockwise_get_delegate(mapping_clockwise_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingClockwise") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_clockwise_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_clockwise_get_static_delegate)}); - if (efl_gfx_mapping_smooth_get_static_delegate == null) - efl_gfx_mapping_smooth_get_static_delegate = new efl_gfx_mapping_smooth_get_delegate(mapping_smooth_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingSmooth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_smooth_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_smooth_get_static_delegate)}); - if (efl_gfx_mapping_smooth_set_static_delegate == null) - efl_gfx_mapping_smooth_set_static_delegate = new efl_gfx_mapping_smooth_set_delegate(mapping_smooth_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingSmooth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_smooth_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_smooth_set_static_delegate)}); - if (efl_gfx_mapping_alpha_get_static_delegate == null) - efl_gfx_mapping_alpha_get_static_delegate = new efl_gfx_mapping_alpha_get_delegate(mapping_alpha_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_alpha_get_static_delegate)}); - if (efl_gfx_mapping_alpha_set_static_delegate == null) - efl_gfx_mapping_alpha_set_static_delegate = new efl_gfx_mapping_alpha_set_delegate(mapping_alpha_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_alpha_set_static_delegate)}); - if (efl_gfx_mapping_coord_absolute_get_static_delegate == null) - efl_gfx_mapping_coord_absolute_get_static_delegate = new efl_gfx_mapping_coord_absolute_get_delegate(mapping_coord_absolute_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingCoordAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_coord_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_coord_absolute_get_static_delegate)}); - if (efl_gfx_mapping_coord_absolute_set_static_delegate == null) - efl_gfx_mapping_coord_absolute_set_static_delegate = new efl_gfx_mapping_coord_absolute_set_delegate(mapping_coord_absolute_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingCoordAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_coord_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_coord_absolute_set_static_delegate)}); - if (efl_gfx_mapping_uv_get_static_delegate == null) - efl_gfx_mapping_uv_get_static_delegate = new efl_gfx_mapping_uv_get_delegate(mapping_uv_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingUv") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_uv_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_uv_get_static_delegate)}); - if (efl_gfx_mapping_uv_set_static_delegate == null) - efl_gfx_mapping_uv_set_static_delegate = new efl_gfx_mapping_uv_set_delegate(mapping_uv_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingUv") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_uv_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_uv_set_static_delegate)}); - if (efl_gfx_mapping_color_get_static_delegate == null) - efl_gfx_mapping_color_get_static_delegate = new efl_gfx_mapping_color_get_delegate(mapping_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_color_get_static_delegate)}); - if (efl_gfx_mapping_color_set_static_delegate == null) - efl_gfx_mapping_color_set_static_delegate = new efl_gfx_mapping_color_set_delegate(mapping_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_color_set_static_delegate)}); - if (efl_gfx_mapping_has_static_delegate == null) - efl_gfx_mapping_has_static_delegate = new efl_gfx_mapping_has_delegate(mapping_has); - if (methods.FirstOrDefault(m => m.Name == "HasMapping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_has"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_has_static_delegate)}); - if (efl_gfx_mapping_reset_static_delegate == null) - efl_gfx_mapping_reset_static_delegate = new efl_gfx_mapping_reset_delegate(mapping_reset); - if (methods.FirstOrDefault(m => m.Name == "ResetMapping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_reset_static_delegate)}); - if (efl_gfx_mapping_translate_static_delegate == null) - efl_gfx_mapping_translate_static_delegate = new efl_gfx_mapping_translate_delegate(translate); - if (methods.FirstOrDefault(m => m.Name == "Translate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_translate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_translate_static_delegate)}); - if (efl_gfx_mapping_rotate_static_delegate == null) - efl_gfx_mapping_rotate_static_delegate = new efl_gfx_mapping_rotate_delegate(rotate); - if (methods.FirstOrDefault(m => m.Name == "Rotate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_static_delegate)}); - if (efl_gfx_mapping_rotate_3d_static_delegate == null) - efl_gfx_mapping_rotate_3d_static_delegate = new efl_gfx_mapping_rotate_3d_delegate(rotate_3d); - if (methods.FirstOrDefault(m => m.Name == "Rotate3d") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_3d_static_delegate)}); - if (efl_gfx_mapping_rotate_quat_static_delegate == null) - efl_gfx_mapping_rotate_quat_static_delegate = new efl_gfx_mapping_rotate_quat_delegate(rotate_quat); - if (methods.FirstOrDefault(m => m.Name == "RotateQuat") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate_quat"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_quat_static_delegate)}); - if (efl_gfx_mapping_zoom_static_delegate == null) - efl_gfx_mapping_zoom_static_delegate = new efl_gfx_mapping_zoom_delegate(zoom); - if (methods.FirstOrDefault(m => m.Name == "Zoom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_zoom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_zoom_static_delegate)}); - if (efl_gfx_mapping_lighting_3d_static_delegate == null) - efl_gfx_mapping_lighting_3d_static_delegate = new efl_gfx_mapping_lighting_3d_delegate(lighting_3d); - if (methods.FirstOrDefault(m => m.Name == "Lighting3d") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_lighting_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_lighting_3d_static_delegate)}); - if (efl_gfx_mapping_perspective_3d_static_delegate == null) - efl_gfx_mapping_perspective_3d_static_delegate = new efl_gfx_mapping_perspective_3d_delegate(perspective_3d); - if (methods.FirstOrDefault(m => m.Name == "Perspective3d") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_perspective_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_perspective_3d_static_delegate)}); - if (efl_gfx_mapping_rotate_absolute_static_delegate == null) - efl_gfx_mapping_rotate_absolute_static_delegate = new efl_gfx_mapping_rotate_absolute_delegate(rotate_absolute); - if (methods.FirstOrDefault(m => m.Name == "RotateAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_absolute_static_delegate)}); - if (efl_gfx_mapping_rotate_3d_absolute_static_delegate == null) - efl_gfx_mapping_rotate_3d_absolute_static_delegate = new efl_gfx_mapping_rotate_3d_absolute_delegate(rotate_3d_absolute); - if (methods.FirstOrDefault(m => m.Name == "Rotate3dAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_3d_absolute_static_delegate)}); - if (efl_gfx_mapping_rotate_quat_absolute_static_delegate == null) - efl_gfx_mapping_rotate_quat_absolute_static_delegate = new efl_gfx_mapping_rotate_quat_absolute_delegate(rotate_quat_absolute); - if (methods.FirstOrDefault(m => m.Name == "RotateQuatAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate_quat_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_quat_absolute_static_delegate)}); - if (efl_gfx_mapping_zoom_absolute_static_delegate == null) - efl_gfx_mapping_zoom_absolute_static_delegate = new efl_gfx_mapping_zoom_absolute_delegate(zoom_absolute); - if (methods.FirstOrDefault(m => m.Name == "ZoomAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_zoom_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_zoom_absolute_static_delegate)}); - if (efl_gfx_mapping_lighting_3d_absolute_static_delegate == null) - efl_gfx_mapping_lighting_3d_absolute_static_delegate = new efl_gfx_mapping_lighting_3d_absolute_delegate(lighting_3d_absolute); - if (methods.FirstOrDefault(m => m.Name == "Lighting3dAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_lighting_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_lighting_3d_absolute_static_delegate)}); - if (efl_gfx_mapping_perspective_3d_absolute_static_delegate == null) - efl_gfx_mapping_perspective_3d_absolute_static_delegate = new efl_gfx_mapping_perspective_3d_absolute_delegate(perspective_3d_absolute); - if (methods.FirstOrDefault(m => m.Name == "Perspective3dAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_perspective_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_perspective_3d_absolute_static_delegate)}); - if (efl_gfx_stack_layer_get_static_delegate == null) - efl_gfx_stack_layer_get_static_delegate = new efl_gfx_stack_layer_get_delegate(layer_get); - if (methods.FirstOrDefault(m => m.Name == "GetLayer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_layer_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_get_static_delegate)}); - if (efl_gfx_stack_layer_set_static_delegate == null) - efl_gfx_stack_layer_set_static_delegate = new efl_gfx_stack_layer_set_delegate(layer_set); - if (methods.FirstOrDefault(m => m.Name == "SetLayer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_layer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_set_static_delegate)}); - if (efl_gfx_stack_below_get_static_delegate == null) - efl_gfx_stack_below_get_static_delegate = new efl_gfx_stack_below_get_delegate(below_get); - if (methods.FirstOrDefault(m => m.Name == "GetBelow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_below_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_get_static_delegate)}); - if (efl_gfx_stack_above_get_static_delegate == null) - efl_gfx_stack_above_get_static_delegate = new efl_gfx_stack_above_get_delegate(above_get); - if (methods.FirstOrDefault(m => m.Name == "GetAbove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_above_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_get_static_delegate)}); - if (efl_gfx_stack_below_static_delegate == null) - efl_gfx_stack_below_static_delegate = new efl_gfx_stack_below_delegate(stack_below); - if (methods.FirstOrDefault(m => m.Name == "StackBelow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_below"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_static_delegate)}); - if (efl_gfx_stack_raise_to_top_static_delegate == null) - efl_gfx_stack_raise_to_top_static_delegate = new efl_gfx_stack_raise_to_top_delegate(raise_to_top); - if (methods.FirstOrDefault(m => m.Name == "RaiseToTop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_raise_to_top"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_raise_to_top_static_delegate)}); - if (efl_gfx_stack_above_static_delegate == null) - efl_gfx_stack_above_static_delegate = new efl_gfx_stack_above_delegate(stack_above); - if (methods.FirstOrDefault(m => m.Name == "StackAbove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_above"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_static_delegate)}); - if (efl_gfx_stack_lower_to_bottom_static_delegate == null) - efl_gfx_stack_lower_to_bottom_static_delegate = new efl_gfx_stack_lower_to_bottom_delegate(lower_to_bottom); - if (methods.FirstOrDefault(m => m.Name == "LowerToBottom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_lower_to_bottom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_lower_to_bottom_static_delegate)}); - if (efl_input_seat_event_filter_get_static_delegate == null) - efl_input_seat_event_filter_get_static_delegate = new efl_input_seat_event_filter_get_delegate(seat_event_filter_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeatEventFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_seat_event_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_seat_event_filter_get_static_delegate)}); - if (efl_input_seat_event_filter_set_static_delegate == null) - efl_input_seat_event_filter_set_static_delegate = new efl_input_seat_event_filter_set_delegate(seat_event_filter_set); - if (methods.FirstOrDefault(m => m.Name == "SetSeatEventFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_seat_event_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_seat_event_filter_set_static_delegate)}); - if (efl_ui_mirrored_get_static_delegate == null) - efl_ui_mirrored_get_static_delegate = new efl_ui_mirrored_get_delegate(mirrored_get); - if (methods.FirstOrDefault(m => m.Name == "GetMirrored") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_get_static_delegate)}); - if (efl_ui_mirrored_set_static_delegate == null) - efl_ui_mirrored_set_static_delegate = new efl_ui_mirrored_set_delegate(mirrored_set); - if (methods.FirstOrDefault(m => m.Name == "SetMirrored") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_set_static_delegate)}); - if (efl_ui_mirrored_automatic_get_static_delegate == null) - efl_ui_mirrored_automatic_get_static_delegate = new efl_ui_mirrored_automatic_get_delegate(mirrored_automatic_get); - if (methods.FirstOrDefault(m => m.Name == "GetMirroredAutomatic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_get_static_delegate)}); - if (efl_ui_mirrored_automatic_set_static_delegate == null) - efl_ui_mirrored_automatic_set_static_delegate = new efl_ui_mirrored_automatic_set_delegate(mirrored_automatic_set); - if (methods.FirstOrDefault(m => m.Name == "SetMirroredAutomatic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_set_static_delegate)}); - if (efl_ui_language_get_static_delegate == null) - efl_ui_language_get_static_delegate = new efl_ui_language_get_delegate(language_get); - if (methods.FirstOrDefault(m => m.Name == "GetLanguage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_get_static_delegate)}); - if (efl_ui_language_set_static_delegate == null) - efl_ui_language_set_static_delegate = new efl_ui_language_set_delegate(language_set); - if (methods.FirstOrDefault(m => m.Name == "SetLanguage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Object.efl_canvas_object_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopConsumer.NativeMethods { - return Efl.Canvas.Object.efl_canvas_object_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_canvas_object_pointer_mode_by_device_get_static_delegate == null) + { + efl_canvas_object_pointer_mode_by_device_get_static_delegate = new efl_canvas_object_pointer_mode_by_device_get_delegate(pointer_mode_by_device_get); + } - private delegate Efl.Input.ObjectPointerMode efl_canvas_object_pointer_mode_by_device_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); + if (methods.FirstOrDefault(m => m.Name == "GetPointerModeByDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_pointer_mode_by_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pointer_mode_by_device_get_static_delegate) }); + } + if (efl_canvas_object_pointer_mode_by_device_set_static_delegate == null) + { + efl_canvas_object_pointer_mode_by_device_set_static_delegate = new efl_canvas_object_pointer_mode_by_device_set_delegate(pointer_mode_by_device_set); + } - public delegate Efl.Input.ObjectPointerMode efl_canvas_object_pointer_mode_by_device_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); - public static Efl.Eo.FunctionWrapper efl_canvas_object_pointer_mode_by_device_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_pointer_mode_by_device_get"); - private static Efl.Input.ObjectPointerMode pointer_mode_by_device_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) - { - Eina.Log.Debug("function efl_canvas_object_pointer_mode_by_device_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.ObjectPointerMode _ret_var = default(Efl.Input.ObjectPointerMode); - try { - _ret_var = ((Object)wrapper).GetPointerModeByDevice( dev); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPointerModeByDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_pointer_mode_by_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pointer_mode_by_device_set_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_pointer_mode_by_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); - } - } - private static efl_canvas_object_pointer_mode_by_device_get_delegate efl_canvas_object_pointer_mode_by_device_get_static_delegate; + if (efl_canvas_object_pointer_mode_get_static_delegate == null) + { + efl_canvas_object_pointer_mode_get_static_delegate = new efl_canvas_object_pointer_mode_get_delegate(pointer_mode_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_pointer_mode_by_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev, Efl.Input.ObjectPointerMode pointer_mode); + if (methods.FirstOrDefault(m => m.Name == "GetPointerMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_pointer_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pointer_mode_get_static_delegate) }); + } + if (efl_canvas_object_pointer_mode_set_static_delegate == null) + { + efl_canvas_object_pointer_mode_set_static_delegate = new efl_canvas_object_pointer_mode_set_delegate(pointer_mode_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_pointer_mode_by_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev, Efl.Input.ObjectPointerMode pointer_mode); - public static Efl.Eo.FunctionWrapper efl_canvas_object_pointer_mode_by_device_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_pointer_mode_by_device_set"); - private static bool pointer_mode_by_device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev, Efl.Input.ObjectPointerMode pointer_mode) - { - Eina.Log.Debug("function efl_canvas_object_pointer_mode_by_device_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).SetPointerModeByDevice( dev, pointer_mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPointerMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_pointer_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pointer_mode_set_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_pointer_mode_by_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev, pointer_mode); - } - } - private static efl_canvas_object_pointer_mode_by_device_set_delegate efl_canvas_object_pointer_mode_by_device_set_static_delegate; + if (efl_canvas_object_render_op_get_static_delegate == null) + { + efl_canvas_object_render_op_get_static_delegate = new efl_canvas_object_render_op_get_delegate(render_op_get); + } - private delegate Efl.Input.ObjectPointerMode efl_canvas_object_pointer_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetRenderOp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_render_op_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_render_op_get_static_delegate) }); + } + if (efl_canvas_object_render_op_set_static_delegate == null) + { + efl_canvas_object_render_op_set_static_delegate = new efl_canvas_object_render_op_set_delegate(render_op_set); + } - public delegate Efl.Input.ObjectPointerMode efl_canvas_object_pointer_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_pointer_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_pointer_mode_get"); - private static Efl.Input.ObjectPointerMode pointer_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_pointer_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.ObjectPointerMode _ret_var = default(Efl.Input.ObjectPointerMode); - try { - _ret_var = ((Object)wrapper).GetPointerMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetRenderOp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_render_op_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_render_op_set_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_pointer_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_pointer_mode_get_delegate efl_canvas_object_pointer_mode_get_static_delegate; + if (efl_canvas_object_clipper_get_static_delegate == null) + { + efl_canvas_object_clipper_get_static_delegate = new efl_canvas_object_clipper_get_delegate(clipper_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_pointer_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.ObjectPointerMode pointer_mode); + if (methods.FirstOrDefault(m => m.Name == "GetClipper") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_clipper_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_clipper_get_static_delegate) }); + } + if (efl_canvas_object_clipper_set_static_delegate == null) + { + efl_canvas_object_clipper_set_static_delegate = new efl_canvas_object_clipper_set_delegate(clipper_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_pointer_mode_set_api_delegate(System.IntPtr obj, Efl.Input.ObjectPointerMode pointer_mode); - public static Efl.Eo.FunctionWrapper efl_canvas_object_pointer_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_pointer_mode_set"); - private static bool pointer_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.ObjectPointerMode pointer_mode) - { - Eina.Log.Debug("function efl_canvas_object_pointer_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).SetPointerMode( pointer_mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetClipper") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_clipper_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_clipper_set_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_pointer_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pointer_mode); - } - } - private static efl_canvas_object_pointer_mode_set_delegate efl_canvas_object_pointer_mode_set_static_delegate; + if (efl_canvas_object_repeat_events_get_static_delegate == null) + { + efl_canvas_object_repeat_events_get_static_delegate = new efl_canvas_object_repeat_events_get_delegate(repeat_events_get); + } - private delegate Efl.Gfx.RenderOp efl_canvas_object_render_op_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetRepeatEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_repeat_events_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_repeat_events_get_static_delegate) }); + } + if (efl_canvas_object_repeat_events_set_static_delegate == null) + { + efl_canvas_object_repeat_events_set_static_delegate = new efl_canvas_object_repeat_events_set_delegate(repeat_events_set); + } - public delegate Efl.Gfx.RenderOp efl_canvas_object_render_op_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_render_op_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_render_op_get"); - private static Efl.Gfx.RenderOp render_op_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_render_op_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.RenderOp _ret_var = default(Efl.Gfx.RenderOp); - try { - _ret_var = ((Object)wrapper).GetRenderOp(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetRepeatEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_repeat_events_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_repeat_events_set_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_render_op_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_render_op_get_delegate efl_canvas_object_render_op_get_static_delegate; + if (efl_canvas_object_key_focus_get_static_delegate == null) + { + efl_canvas_object_key_focus_get_static_delegate = new efl_canvas_object_key_focus_get_delegate(key_focus_get); + } - private delegate void efl_canvas_object_render_op_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.RenderOp render_op); + if (methods.FirstOrDefault(m => m.Name == "GetKeyFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_key_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_key_focus_get_static_delegate) }); + } + if (efl_canvas_object_key_focus_set_static_delegate == null) + { + efl_canvas_object_key_focus_set_static_delegate = new efl_canvas_object_key_focus_set_delegate(key_focus_set); + } - public delegate void efl_canvas_object_render_op_set_api_delegate(System.IntPtr obj, Efl.Gfx.RenderOp render_op); - public static Efl.Eo.FunctionWrapper efl_canvas_object_render_op_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_render_op_set"); - private static void render_op_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.RenderOp render_op) - { - Eina.Log.Debug("function efl_canvas_object_render_op_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetRenderOp( render_op); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_object_render_op_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), render_op); - } - } - private static efl_canvas_object_render_op_set_delegate efl_canvas_object_render_op_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetKeyFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_key_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_key_focus_set_static_delegate) }); + } + if (efl_canvas_object_seat_focus_get_static_delegate == null) + { + efl_canvas_object_seat_focus_get_static_delegate = new efl_canvas_object_seat_focus_get_delegate(seat_focus_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_canvas_object_clipper_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSeatFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_seat_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_seat_focus_get_static_delegate) }); + } + if (efl_canvas_object_precise_is_inside_get_static_delegate == null) + { + efl_canvas_object_precise_is_inside_get_static_delegate = new efl_canvas_object_precise_is_inside_get_delegate(precise_is_inside_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_canvas_object_clipper_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_clipper_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_clipper_get"); - private static Efl.Canvas.Object clipper_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_clipper_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Object)wrapper).GetClipper(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPreciseIsInside") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_precise_is_inside_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_precise_is_inside_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_clipper_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_clipper_get_delegate efl_canvas_object_clipper_get_static_delegate; + if (efl_canvas_object_precise_is_inside_set_static_delegate == null) + { + efl_canvas_object_precise_is_inside_set_static_delegate = new efl_canvas_object_precise_is_inside_set_delegate(precise_is_inside_set); + } - private delegate void efl_canvas_object_clipper_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object clipper); + if (methods.FirstOrDefault(m => m.Name == "SetPreciseIsInside") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_precise_is_inside_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_precise_is_inside_set_static_delegate) }); + } + if (efl_canvas_object_propagate_events_get_static_delegate == null) + { + efl_canvas_object_propagate_events_get_static_delegate = new efl_canvas_object_propagate_events_get_delegate(propagate_events_get); + } - public delegate void efl_canvas_object_clipper_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object clipper); - public static Efl.Eo.FunctionWrapper efl_canvas_object_clipper_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_clipper_set"); - private static void clipper_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object clipper) - { - Eina.Log.Debug("function efl_canvas_object_clipper_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetClipper( clipper); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_object_clipper_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), clipper); - } - } - private static efl_canvas_object_clipper_set_delegate efl_canvas_object_clipper_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPropagateEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_propagate_events_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_propagate_events_get_static_delegate) }); + } + if (efl_canvas_object_propagate_events_set_static_delegate == null) + { + efl_canvas_object_propagate_events_set_static_delegate = new efl_canvas_object_propagate_events_set_delegate(propagate_events_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_repeat_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetPropagateEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_propagate_events_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_propagate_events_set_static_delegate) }); + } + if (efl_canvas_object_pass_events_get_static_delegate == null) + { + efl_canvas_object_pass_events_get_static_delegate = new efl_canvas_object_pass_events_get_delegate(pass_events_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_repeat_events_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_repeat_events_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_repeat_events_get"); - private static bool repeat_events_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_repeat_events_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetRepeatEvents(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPassEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_pass_events_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pass_events_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_repeat_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_repeat_events_get_delegate efl_canvas_object_repeat_events_get_static_delegate; + if (efl_canvas_object_pass_events_set_static_delegate == null) + { + efl_canvas_object_pass_events_set_static_delegate = new efl_canvas_object_pass_events_set_delegate(pass_events_set); + } - private delegate void efl_canvas_object_repeat_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat); + if (methods.FirstOrDefault(m => m.Name == "SetPassEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_pass_events_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_pass_events_set_static_delegate) }); + } + if (efl_canvas_object_anti_alias_get_static_delegate == null) + { + efl_canvas_object_anti_alias_get_static_delegate = new efl_canvas_object_anti_alias_get_delegate(anti_alias_get); + } - public delegate void efl_canvas_object_repeat_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat); - public static Efl.Eo.FunctionWrapper efl_canvas_object_repeat_events_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_repeat_events_set"); - private static void repeat_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat) - { - Eina.Log.Debug("function efl_canvas_object_repeat_events_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetRepeatEvents( repeat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_object_repeat_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat); - } - } - private static efl_canvas_object_repeat_events_set_delegate efl_canvas_object_repeat_events_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetAntiAlias") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_anti_alias_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_anti_alias_get_static_delegate) }); + } + if (efl_canvas_object_anti_alias_set_static_delegate == null) + { + efl_canvas_object_anti_alias_set_static_delegate = new efl_canvas_object_anti_alias_set_delegate(anti_alias_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_key_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetAntiAlias") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_anti_alias_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_anti_alias_set_static_delegate) }); + } + if (efl_canvas_object_clipped_objects_get_static_delegate == null) + { + efl_canvas_object_clipped_objects_get_static_delegate = new efl_canvas_object_clipped_objects_get_delegate(clipped_objects_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_key_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_key_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_key_focus_get"); - private static bool key_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_key_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetKeyFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetClippedObjects") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_clipped_objects_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_clipped_objects_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_key_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_key_focus_get_delegate efl_canvas_object_key_focus_get_static_delegate; + if (efl_canvas_object_render_parent_get_static_delegate == null) + { + efl_canvas_object_render_parent_get_static_delegate = new efl_canvas_object_render_parent_get_delegate(render_parent_get); + } - private delegate void efl_canvas_object_key_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus); + if (methods.FirstOrDefault(m => m.Name == "GetRenderParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_render_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_render_parent_get_static_delegate) }); + } + if (efl_canvas_object_paragraph_direction_get_static_delegate == null) + { + efl_canvas_object_paragraph_direction_get_static_delegate = new efl_canvas_object_paragraph_direction_get_delegate(paragraph_direction_get); + } - public delegate void efl_canvas_object_key_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus); - public static Efl.Eo.FunctionWrapper efl_canvas_object_key_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_key_focus_set"); - private static void key_focus_set(System.IntPtr obj, System.IntPtr pd, bool focus) - { - Eina.Log.Debug("function efl_canvas_object_key_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetKeyFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_object_key_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_canvas_object_key_focus_set_delegate efl_canvas_object_key_focus_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetParagraphDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_paragraph_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_paragraph_direction_get_static_delegate) }); + } + if (efl_canvas_object_paragraph_direction_set_static_delegate == null) + { + efl_canvas_object_paragraph_direction_set_static_delegate = new efl_canvas_object_paragraph_direction_set_delegate(paragraph_direction_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_seat_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetParagraphDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_paragraph_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_paragraph_direction_set_static_delegate) }); + } + if (efl_canvas_object_no_render_get_static_delegate == null) + { + efl_canvas_object_no_render_get_static_delegate = new efl_canvas_object_no_render_get_delegate(no_render_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_seat_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_seat_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_seat_focus_get"); - private static bool seat_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_seat_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetSeatFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetNoRender") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_no_render_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_no_render_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_seat_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_seat_focus_get_delegate efl_canvas_object_seat_focus_get_static_delegate; + if (efl_canvas_object_no_render_set_static_delegate == null) + { + efl_canvas_object_no_render_set_static_delegate = new efl_canvas_object_no_render_set_delegate(no_render_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_precise_is_inside_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetNoRender") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_no_render_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_no_render_set_static_delegate) }); + } + if (efl_canvas_object_coords_inside_get_static_delegate == null) + { + efl_canvas_object_coords_inside_get_static_delegate = new efl_canvas_object_coords_inside_get_delegate(coords_inside_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_precise_is_inside_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_precise_is_inside_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_precise_is_inside_get"); - private static bool precise_is_inside_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_precise_is_inside_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetPreciseIsInside(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCoordsInside") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_coords_inside_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_coords_inside_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_precise_is_inside_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_precise_is_inside_get_delegate efl_canvas_object_precise_is_inside_get_static_delegate; + if (efl_canvas_object_seat_focus_check_static_delegate == null) + { + efl_canvas_object_seat_focus_check_static_delegate = new efl_canvas_object_seat_focus_check_delegate(seat_focus_check); + } - private delegate void efl_canvas_object_precise_is_inside_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool precise); + if (methods.FirstOrDefault(m => m.Name == "CheckSeatFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_seat_focus_check"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_seat_focus_check_static_delegate) }); + } + if (efl_canvas_object_seat_focus_add_static_delegate == null) + { + efl_canvas_object_seat_focus_add_static_delegate = new efl_canvas_object_seat_focus_add_delegate(seat_focus_add); + } - public delegate void efl_canvas_object_precise_is_inside_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool precise); - public static Efl.Eo.FunctionWrapper efl_canvas_object_precise_is_inside_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_precise_is_inside_set"); - private static void precise_is_inside_set(System.IntPtr obj, System.IntPtr pd, bool precise) - { - Eina.Log.Debug("function efl_canvas_object_precise_is_inside_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetPreciseIsInside( precise); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_object_precise_is_inside_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), precise); - } - } - private static efl_canvas_object_precise_is_inside_set_delegate efl_canvas_object_precise_is_inside_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "AddSeatFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_seat_focus_add"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_seat_focus_add_static_delegate) }); + } + if (efl_canvas_object_seat_focus_del_static_delegate == null) + { + efl_canvas_object_seat_focus_del_static_delegate = new efl_canvas_object_seat_focus_del_delegate(seat_focus_del); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_propagate_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "DelSeatFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_seat_focus_del"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_seat_focus_del_static_delegate) }); + } + if (efl_canvas_object_clipped_objects_count_static_delegate == null) + { + efl_canvas_object_clipped_objects_count_static_delegate = new efl_canvas_object_clipped_objects_count_delegate(clipped_objects_count); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_propagate_events_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_propagate_events_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_propagate_events_get"); - private static bool propagate_events_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_propagate_events_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetPropagateEvents(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ClippedObjectsCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_clipped_objects_count"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_clipped_objects_count_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_propagate_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_propagate_events_get_delegate efl_canvas_object_propagate_events_get_static_delegate; + if (efl_canvas_object_key_grab_static_delegate == null) + { + efl_canvas_object_key_grab_static_delegate = new efl_canvas_object_key_grab_delegate(key_grab); + } - private delegate void efl_canvas_object_propagate_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool propagate); + if (methods.FirstOrDefault(m => m.Name == "GrabKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_key_grab"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_key_grab_static_delegate) }); + } + if (efl_canvas_object_key_ungrab_static_delegate == null) + { + efl_canvas_object_key_ungrab_static_delegate = new efl_canvas_object_key_ungrab_delegate(key_ungrab); + } - public delegate void efl_canvas_object_propagate_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool propagate); - public static Efl.Eo.FunctionWrapper efl_canvas_object_propagate_events_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_propagate_events_set"); - private static void propagate_events_set(System.IntPtr obj, System.IntPtr pd, bool propagate) - { - Eina.Log.Debug("function efl_canvas_object_propagate_events_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetPropagateEvents( propagate); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_object_propagate_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), propagate); - } - } - private static efl_canvas_object_propagate_events_set_delegate efl_canvas_object_propagate_events_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UngrabKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_key_ungrab"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_key_ungrab_static_delegate) }); + } + if (efl_canvas_pointer_inside_get_static_delegate == null) + { + efl_canvas_pointer_inside_get_static_delegate = new efl_canvas_pointer_inside_get_delegate(pointer_inside_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_pass_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPointerInside") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_pointer_inside_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_pointer_inside_get_static_delegate) }); + } + if (efl_gfx_color_get_static_delegate == null) + { + efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_pass_events_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_pass_events_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_pass_events_get"); - private static bool pass_events_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_pass_events_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetPassEvents(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_pass_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_pass_events_get_delegate efl_canvas_object_pass_events_get_static_delegate; + if (efl_gfx_color_set_static_delegate == null) + { + efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); + } - private delegate void efl_canvas_object_pass_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool pass); + if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate) }); + } + if (efl_gfx_color_code_get_static_delegate == null) + { + efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); + } - public delegate void efl_canvas_object_pass_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool pass); - public static Efl.Eo.FunctionWrapper efl_canvas_object_pass_events_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_pass_events_set"); - private static void pass_events_set(System.IntPtr obj, System.IntPtr pd, bool pass) - { - Eina.Log.Debug("function efl_canvas_object_pass_events_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetPassEvents( pass); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_object_pass_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pass); - } - } - private static efl_canvas_object_pass_events_set_delegate efl_canvas_object_pass_events_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate) }); + } + if (efl_gfx_color_code_set_static_delegate == null) + { + efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_anti_alias_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate) }); + } + if (efl_gfx_entity_position_get_static_delegate == null) + { + efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_anti_alias_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_anti_alias_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_anti_alias_get"); - private static bool anti_alias_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_anti_alias_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetAntiAlias(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_anti_alias_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_anti_alias_get_delegate efl_canvas_object_anti_alias_get_static_delegate; + if (efl_gfx_entity_position_set_static_delegate == null) + { + efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); + } - private delegate void efl_canvas_object_anti_alias_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool anti_alias); + if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate) }); + } + if (efl_gfx_entity_size_get_static_delegate == null) + { + efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); + } - public delegate void efl_canvas_object_anti_alias_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool anti_alias); - public static Efl.Eo.FunctionWrapper efl_canvas_object_anti_alias_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_anti_alias_set"); - private static void anti_alias_set(System.IntPtr obj, System.IntPtr pd, bool anti_alias) - { - Eina.Log.Debug("function efl_canvas_object_anti_alias_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetAntiAlias( anti_alias); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_object_anti_alias_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), anti_alias); - } - } - private static efl_canvas_object_anti_alias_set_delegate efl_canvas_object_anti_alias_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate) }); + } + if (efl_gfx_entity_size_set_static_delegate == null) + { + efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); + } - private delegate System.IntPtr efl_canvas_object_clipped_objects_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate) }); + } + if (efl_gfx_entity_geometry_get_static_delegate == null) + { + efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); + } - public delegate System.IntPtr efl_canvas_object_clipped_objects_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_clipped_objects_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_clipped_objects_get"); - private static System.IntPtr clipped_objects_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_clipped_objects_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Object)wrapper).GetClippedObjects(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate) }); } - return _ret_var.Handle; - } else { - return efl_canvas_object_clipped_objects_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_clipped_objects_get_delegate efl_canvas_object_clipped_objects_get_static_delegate; + if (efl_gfx_entity_geometry_set_static_delegate == null) + { + efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_canvas_object_render_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate) }); + } + if (efl_gfx_entity_visible_get_static_delegate == null) + { + efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_canvas_object_render_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_render_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_render_parent_get"); - private static Efl.Canvas.Object render_parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_render_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Object)wrapper).GetRenderParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_render_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_render_parent_get_delegate efl_canvas_object_render_parent_get_static_delegate; + if (efl_gfx_entity_visible_set_static_delegate == null) + { + efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); + } - private delegate Efl.TextBidirectionalType efl_canvas_object_paragraph_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate) }); + } + if (efl_gfx_entity_scale_get_static_delegate == null) + { + efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); + } - public delegate Efl.TextBidirectionalType efl_canvas_object_paragraph_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_paragraph_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_paragraph_direction_get"); - private static Efl.TextBidirectionalType paragraph_direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_paragraph_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextBidirectionalType _ret_var = default(Efl.TextBidirectionalType); - try { - _ret_var = ((Object)wrapper).GetParagraphDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_paragraph_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_paragraph_direction_get_delegate efl_canvas_object_paragraph_direction_get_static_delegate; + if (efl_gfx_entity_scale_set_static_delegate == null) + { + efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); + } - private delegate void efl_canvas_object_paragraph_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextBidirectionalType dir); + if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_static_delegate) }); + } + if (efl_gfx_hint_aspect_get_static_delegate == null) + { + efl_gfx_hint_aspect_get_static_delegate = new efl_gfx_hint_aspect_get_delegate(hint_aspect_get); + } - public delegate void efl_canvas_object_paragraph_direction_set_api_delegate(System.IntPtr obj, Efl.TextBidirectionalType dir); - public static Efl.Eo.FunctionWrapper efl_canvas_object_paragraph_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_paragraph_direction_set"); - private static void paragraph_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.TextBidirectionalType dir) - { - Eina.Log.Debug("function efl_canvas_object_paragraph_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetParagraphDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_object_paragraph_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_canvas_object_paragraph_direction_set_delegate efl_canvas_object_paragraph_direction_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetHintAspect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_aspect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_aspect_get_static_delegate) }); + } + if (efl_gfx_hint_aspect_set_static_delegate == null) + { + efl_gfx_hint_aspect_set_static_delegate = new efl_gfx_hint_aspect_set_delegate(hint_aspect_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_no_render_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetHintAspect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_aspect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_aspect_set_static_delegate) }); + } + if (efl_gfx_hint_size_max_get_static_delegate == null) + { + efl_gfx_hint_size_max_get_static_delegate = new efl_gfx_hint_size_max_get_delegate(hint_size_max_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_no_render_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_no_render_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_no_render_get"); - private static bool no_render_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_no_render_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetNoRender(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_no_render_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_no_render_get_delegate efl_canvas_object_no_render_get_static_delegate; + if (efl_gfx_hint_size_max_set_static_delegate == null) + { + efl_gfx_hint_size_max_set_static_delegate = new efl_gfx_hint_size_max_set_delegate(hint_size_max_set); + } - private delegate void efl_canvas_object_no_render_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + if (methods.FirstOrDefault(m => m.Name == "SetHintSizeMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_set_static_delegate) }); + } + if (efl_gfx_hint_size_min_get_static_delegate == null) + { + efl_gfx_hint_size_min_get_static_delegate = new efl_gfx_hint_size_min_get_delegate(hint_size_min_get); + } - public delegate void efl_canvas_object_no_render_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper efl_canvas_object_no_render_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_no_render_set"); - private static void no_render_set(System.IntPtr obj, System.IntPtr pd, bool enable) - { - Eina.Log.Debug("function efl_canvas_object_no_render_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetNoRender( enable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_object_no_render_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); - } - } - private static efl_canvas_object_no_render_set_delegate efl_canvas_object_no_render_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_min_get_static_delegate) }); + } + if (efl_gfx_hint_size_min_set_static_delegate == null) + { + efl_gfx_hint_size_min_set_static_delegate = new efl_gfx_hint_size_min_set_delegate(hint_size_min_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_coords_inside_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (methods.FirstOrDefault(m => m.Name == "SetHintSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_min_set_static_delegate) }); + } + if (efl_gfx_hint_size_restricted_min_get_static_delegate == null) + { + efl_gfx_hint_size_restricted_min_get_static_delegate = new efl_gfx_hint_size_restricted_min_get_delegate(hint_size_restricted_min_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_coords_inside_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_canvas_object_coords_inside_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_coords_inside_get"); - private static bool coords_inside_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_canvas_object_coords_inside_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetCoordsInside( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeRestrictedMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_restricted_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_min_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_coords_inside_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_canvas_object_coords_inside_get_delegate efl_canvas_object_coords_inside_get_static_delegate; + if (efl_gfx_hint_size_restricted_min_set_static_delegate == null) + { + efl_gfx_hint_size_restricted_min_set_static_delegate = new efl_gfx_hint_size_restricted_min_set_delegate(hint_size_restricted_min_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_seat_focus_check_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + if (methods.FirstOrDefault(m => m.Name == "SetHintSizeRestrictedMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_restricted_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_min_set_static_delegate) }); + } + if (efl_gfx_hint_size_combined_min_get_static_delegate == null) + { + efl_gfx_hint_size_combined_min_get_static_delegate = new efl_gfx_hint_size_combined_min_get_delegate(hint_size_combined_min_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_seat_focus_check_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_canvas_object_seat_focus_check_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_seat_focus_check"); - private static bool seat_focus_check(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_canvas_object_seat_focus_check was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).CheckSeatFocus( seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeCombinedMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_combined_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_combined_min_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_seat_focus_check_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); - } - } - private static efl_canvas_object_seat_focus_check_delegate efl_canvas_object_seat_focus_check_static_delegate; + if (efl_gfx_hint_margin_get_static_delegate == null) + { + efl_gfx_hint_margin_get_static_delegate = new efl_gfx_hint_margin_get_delegate(hint_margin_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_seat_focus_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + if (methods.FirstOrDefault(m => m.Name == "GetHintMargin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_margin_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_margin_get_static_delegate) }); + } + if (efl_gfx_hint_margin_set_static_delegate == null) + { + efl_gfx_hint_margin_set_static_delegate = new efl_gfx_hint_margin_set_delegate(hint_margin_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_seat_focus_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_canvas_object_seat_focus_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_seat_focus_add"); - private static bool seat_focus_add(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_canvas_object_seat_focus_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).AddSeatFocus( seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetHintMargin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_margin_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_margin_set_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_seat_focus_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); - } - } - private static efl_canvas_object_seat_focus_add_delegate efl_canvas_object_seat_focus_add_static_delegate; + if (efl_gfx_hint_weight_get_static_delegate == null) + { + efl_gfx_hint_weight_get_static_delegate = new efl_gfx_hint_weight_get_delegate(hint_weight_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_seat_focus_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + if (methods.FirstOrDefault(m => m.Name == "GetHintWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_weight_get_static_delegate) }); + } + if (efl_gfx_hint_weight_set_static_delegate == null) + { + efl_gfx_hint_weight_set_static_delegate = new efl_gfx_hint_weight_set_delegate(hint_weight_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_seat_focus_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_canvas_object_seat_focus_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_seat_focus_del"); - private static bool seat_focus_del(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_canvas_object_seat_focus_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).DelSeatFocus( seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetHintWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_weight_set_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_seat_focus_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); - } - } - private static efl_canvas_object_seat_focus_del_delegate efl_canvas_object_seat_focus_del_static_delegate; + if (efl_gfx_hint_align_get_static_delegate == null) + { + efl_gfx_hint_align_get_static_delegate = new efl_gfx_hint_align_get_delegate(hint_align_get); + } - private delegate uint efl_canvas_object_clipped_objects_count_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetHintAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_align_get_static_delegate) }); + } + if (efl_gfx_hint_align_set_static_delegate == null) + { + efl_gfx_hint_align_set_static_delegate = new efl_gfx_hint_align_set_delegate(hint_align_set); + } - public delegate uint efl_canvas_object_clipped_objects_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_clipped_objects_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_clipped_objects_count"); - private static uint clipped_objects_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_object_clipped_objects_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((Object)wrapper).ClippedObjectsCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetHintAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_align_set_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_clipped_objects_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_object_clipped_objects_count_delegate efl_canvas_object_clipped_objects_count_static_delegate; + if (efl_gfx_hint_fill_get_static_delegate == null) + { + efl_gfx_hint_fill_get_static_delegate = new efl_gfx_hint_fill_get_delegate(hint_fill_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_object_key_grab_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers, [MarshalAs(UnmanagedType.U1)] bool exclusive); + if (methods.FirstOrDefault(m => m.Name == "GetHintFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_fill_get_static_delegate) }); + } + if (efl_gfx_hint_fill_set_static_delegate == null) + { + efl_gfx_hint_fill_set_static_delegate = new efl_gfx_hint_fill_set_delegate(hint_fill_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_key_grab_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers, [MarshalAs(UnmanagedType.U1)] bool exclusive); - public static Efl.Eo.FunctionWrapper efl_canvas_object_key_grab_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_key_grab"); - private static bool key_grab(System.IntPtr obj, System.IntPtr pd, System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers, bool exclusive) - { - Eina.Log.Debug("function efl_canvas_object_key_grab was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GrabKey( keyname, modifiers, not_modifiers, exclusive); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetHintFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_fill_set_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_object_key_grab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), keyname, modifiers, not_modifiers, exclusive); - } - } - private static efl_canvas_object_key_grab_delegate efl_canvas_object_key_grab_static_delegate; + if (efl_gfx_mapping_point_count_get_static_delegate == null) + { + efl_gfx_mapping_point_count_get_static_delegate = new efl_gfx_mapping_point_count_get_delegate(mapping_point_count_get); + } - private delegate void efl_canvas_object_key_ungrab_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers); + if (methods.FirstOrDefault(m => m.Name == "GetMappingPointCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_point_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_point_count_get_static_delegate) }); + } + if (efl_gfx_mapping_point_count_set_static_delegate == null) + { + efl_gfx_mapping_point_count_set_static_delegate = new efl_gfx_mapping_point_count_set_delegate(mapping_point_count_set); + } - public delegate void efl_canvas_object_key_ungrab_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers); - public static Efl.Eo.FunctionWrapper efl_canvas_object_key_ungrab_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_object_key_ungrab"); - private static void key_ungrab(System.IntPtr obj, System.IntPtr pd, System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers) - { - Eina.Log.Debug("function efl_canvas_object_key_ungrab was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).UngrabKey( keyname, modifiers, not_modifiers); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_object_key_ungrab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), keyname, modifiers, not_modifiers); - } - } - private static efl_canvas_object_key_ungrab_delegate efl_canvas_object_key_ungrab_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetMappingPointCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_point_count_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_point_count_set_static_delegate) }); + } + if (efl_gfx_mapping_clockwise_get_static_delegate == null) + { + efl_gfx_mapping_clockwise_get_static_delegate = new efl_gfx_mapping_clockwise_get_delegate(mapping_clockwise_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_pointer_inside_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + if (methods.FirstOrDefault(m => m.Name == "GetMappingClockwise") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_clockwise_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_clockwise_get_static_delegate) }); + } + if (efl_gfx_mapping_smooth_get_static_delegate == null) + { + efl_gfx_mapping_smooth_get_static_delegate = new efl_gfx_mapping_smooth_get_delegate(mapping_smooth_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_pointer_inside_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_canvas_pointer_inside_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_pointer_inside_get"); - private static bool pointer_inside_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_canvas_pointer_inside_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetPointerInside( seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMappingSmooth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_smooth_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_smooth_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_pointer_inside_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); - } - } - private static efl_canvas_pointer_inside_get_delegate efl_canvas_pointer_inside_get_static_delegate; + if (efl_gfx_mapping_smooth_set_static_delegate == null) + { + efl_gfx_mapping_smooth_set_static_delegate = new efl_gfx_mapping_smooth_set_delegate(mapping_smooth_set); + } - private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + if (methods.FirstOrDefault(m => m.Name == "SetMappingSmooth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_smooth_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_smooth_set_static_delegate) }); + } + if (efl_gfx_mapping_alpha_get_static_delegate == null) + { + efl_gfx_mapping_alpha_get_static_delegate = new efl_gfx_mapping_alpha_get_delegate(mapping_alpha_get); + } - public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_get"); - private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); - try { - ((Object)wrapper).GetColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetMappingAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_alpha_get_static_delegate) }); + } + if (efl_gfx_mapping_alpha_set_static_delegate == null) + { + efl_gfx_mapping_alpha_set_static_delegate = new efl_gfx_mapping_alpha_set_delegate(mapping_alpha_set); + } - private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + if (methods.FirstOrDefault(m => m.Name == "SetMappingAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_alpha_set_static_delegate) }); + } + if (efl_gfx_mapping_coord_absolute_get_static_delegate == null) + { + efl_gfx_mapping_coord_absolute_get_static_delegate = new efl_gfx_mapping_coord_absolute_get_delegate(mapping_coord_absolute_get); + } - public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_set"); - private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMappingCoordAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_coord_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_coord_absolute_get_static_delegate) }); } - } else { - efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_get"); - private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_color_code_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Object)wrapper).GetColorCode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_mapping_coord_absolute_set_static_delegate == null) + { + efl_gfx_mapping_coord_absolute_set_static_delegate = new efl_gfx_mapping_coord_absolute_set_delegate(mapping_coord_absolute_set); } - return _ret_var; - } else { - return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; - - private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + if (methods.FirstOrDefault(m => m.Name == "SetMappingCoordAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_coord_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_coord_absolute_set_static_delegate) }); + } + if (efl_gfx_mapping_uv_get_static_delegate == null) + { + efl_gfx_mapping_uv_get_static_delegate = new efl_gfx_mapping_uv_get_delegate(mapping_uv_get); + } - public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_set"); - private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) - { - Eina.Log.Debug("function efl_gfx_color_code_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetColorCode( colorcode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); - } - } - private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetMappingUv") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_uv_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_uv_get_static_delegate) }); + } + if (efl_gfx_mapping_uv_set_static_delegate == null) + { + efl_gfx_mapping_uv_set_static_delegate = new efl_gfx_mapping_uv_set_delegate(mapping_uv_set); + } - private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMappingUv") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_uv_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_uv_set_static_delegate) }); + } + if (efl_gfx_mapping_color_get_static_delegate == null) + { + efl_gfx_mapping_color_get_static_delegate = new efl_gfx_mapping_color_get_delegate(mapping_color_get); + } - public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_get"); - private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Object)wrapper).GetPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMappingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_color_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; + if (efl_gfx_mapping_color_set_static_delegate == null) + { + efl_gfx_mapping_color_set_static_delegate = new efl_gfx_mapping_color_set_delegate(mapping_color_set); + } - private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (methods.FirstOrDefault(m => m.Name == "SetMappingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_color_set_static_delegate) }); + } + if (efl_gfx_mapping_has_static_delegate == null) + { + efl_gfx_mapping_has_static_delegate = new efl_gfx_mapping_has_delegate(mapping_has); + } - public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_set"); - private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_gfx_entity_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((Object)wrapper).SetPosition( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "HasMapping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_has"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_has_static_delegate) }); } - } else { - efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; + if (efl_gfx_mapping_reset_static_delegate == null) + { + efl_gfx_mapping_reset_static_delegate = new efl_gfx_mapping_reset_delegate(mapping_reset); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "ResetMapping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_reset_static_delegate) }); + } + if (efl_gfx_mapping_translate_static_delegate == null) + { + efl_gfx_mapping_translate_static_delegate = new efl_gfx_mapping_translate_delegate(translate); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_get"); - private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Object)wrapper).GetSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Translate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_translate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_translate_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; + if (efl_gfx_mapping_rotate_static_delegate == null) + { + efl_gfx_mapping_rotate_static_delegate = new efl_gfx_mapping_rotate_delegate(rotate); + } - private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + if (methods.FirstOrDefault(m => m.Name == "Rotate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_static_delegate) }); + } + if (efl_gfx_mapping_rotate_3d_static_delegate == null) + { + efl_gfx_mapping_rotate_3d_static_delegate = new efl_gfx_mapping_rotate_3d_delegate(rotate_3d); + } - public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_set"); - private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_entity_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; - - try { - ((Object)wrapper).SetSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Rotate3d") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_3d_static_delegate) }); } - } else { - efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; + if (efl_gfx_mapping_rotate_quat_static_delegate == null) + { + efl_gfx_mapping_rotate_quat_static_delegate = new efl_gfx_mapping_rotate_quat_delegate(rotate_quat); + } - private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "RotateQuat") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate_quat"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_quat_static_delegate) }); + } + if (efl_gfx_mapping_zoom_static_delegate == null) + { + efl_gfx_mapping_zoom_static_delegate = new efl_gfx_mapping_zoom_delegate(zoom); + } - public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_get"); - private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Object)wrapper).GetGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Zoom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_zoom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_zoom_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; + if (efl_gfx_mapping_lighting_3d_static_delegate == null) + { + efl_gfx_mapping_lighting_3d_static_delegate = new efl_gfx_mapping_lighting_3d_delegate(lighting_3d); + } - private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + if (methods.FirstOrDefault(m => m.Name == "Lighting3d") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_lighting_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_lighting_3d_static_delegate) }); + } + if (efl_gfx_mapping_perspective_3d_static_delegate == null) + { + efl_gfx_mapping_perspective_3d_static_delegate = new efl_gfx_mapping_perspective_3d_delegate(perspective_3d); + } - public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_set"); - private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - - try { - ((Object)wrapper).SetGeometry( _in_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Perspective3d") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_perspective_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_perspective_3d_static_delegate) }); } - } else { - efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); - } - } - private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; + if (efl_gfx_mapping_rotate_absolute_static_delegate == null) + { + efl_gfx_mapping_rotate_absolute_static_delegate = new efl_gfx_mapping_rotate_absolute_delegate(rotate_absolute); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "RotateAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_absolute_static_delegate) }); + } + if (efl_gfx_mapping_rotate_3d_absolute_static_delegate == null) + { + efl_gfx_mapping_rotate_3d_absolute_static_delegate = new efl_gfx_mapping_rotate_3d_absolute_delegate(rotate_3d_absolute); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_get"); - private static bool visible_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetVisible(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Rotate3dAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_3d_absolute_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; + if (efl_gfx_mapping_rotate_quat_absolute_static_delegate == null) + { + efl_gfx_mapping_rotate_quat_absolute_static_delegate = new efl_gfx_mapping_rotate_quat_absolute_delegate(rotate_quat_absolute); + } - private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + if (methods.FirstOrDefault(m => m.Name == "RotateQuatAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate_quat_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_quat_absolute_static_delegate) }); + } + if (efl_gfx_mapping_zoom_absolute_static_delegate == null) + { + efl_gfx_mapping_zoom_absolute_static_delegate = new efl_gfx_mapping_zoom_absolute_delegate(zoom_absolute); + } - public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_set"); - private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) - { - Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetVisible( v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); - } - } - private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ZoomAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_zoom_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_zoom_absolute_static_delegate) }); + } + if (efl_gfx_mapping_lighting_3d_absolute_static_delegate == null) + { + efl_gfx_mapping_lighting_3d_absolute_static_delegate = new efl_gfx_mapping_lighting_3d_absolute_delegate(lighting_3d_absolute); + } - private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Lighting3dAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_lighting_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_lighting_3d_absolute_static_delegate) }); + } + if (efl_gfx_mapping_perspective_3d_absolute_static_delegate == null) + { + efl_gfx_mapping_perspective_3d_absolute_static_delegate = new efl_gfx_mapping_perspective_3d_absolute_delegate(perspective_3d_absolute); + } - public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_get"); - private static double scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Object)wrapper).GetScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Perspective3dAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_perspective_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_perspective_3d_absolute_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; + if (efl_gfx_stack_layer_get_static_delegate == null) + { + efl_gfx_stack_layer_get_static_delegate = new efl_gfx_stack_layer_get_delegate(layer_get); + } - private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + if (methods.FirstOrDefault(m => m.Name == "GetLayer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_layer_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_get_static_delegate) }); + } + if (efl_gfx_stack_layer_set_static_delegate == null) + { + efl_gfx_stack_layer_set_static_delegate = new efl_gfx_stack_layer_set_delegate(layer_set); + } - public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_set"); - private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) - { - Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetScale( scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); - } - } - private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetLayer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_layer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_set_static_delegate) }); + } + if (efl_gfx_stack_below_get_static_delegate == null) + { + efl_gfx_stack_below_get_static_delegate = new efl_gfx_stack_below_get_delegate(below_get); + } - private delegate void efl_gfx_hint_aspect_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz); + if (methods.FirstOrDefault(m => m.Name == "GetBelow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_below_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_get_static_delegate) }); + } + if (efl_gfx_stack_above_get_static_delegate == null) + { + efl_gfx_stack_above_get_static_delegate = new efl_gfx_stack_above_get_delegate(above_get); + } - public delegate void efl_gfx_hint_aspect_get_api_delegate(System.IntPtr obj, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_aspect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_aspect_get"); - private static void hint_aspect_get(System.IntPtr obj, System.IntPtr pd, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_hint_aspect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - mode = default(Efl.Gfx.HintAspect); Eina.Size2D _out_sz = default(Eina.Size2D); - - try { - ((Object)wrapper).GetHintAspect( out mode, out _out_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetAbove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_above_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_get_static_delegate) }); } - sz = _out_sz; - } else { - efl_gfx_hint_aspect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out mode, out sz); - } - } - private static efl_gfx_hint_aspect_get_delegate efl_gfx_hint_aspect_get_static_delegate; + if (efl_gfx_stack_below_static_delegate == null) + { + efl_gfx_stack_below_static_delegate = new efl_gfx_stack_below_delegate(stack_below); + } - private delegate void efl_gfx_hint_aspect_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz); + if (methods.FirstOrDefault(m => m.Name == "StackBelow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_below"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_static_delegate) }); + } + if (efl_gfx_stack_raise_to_top_static_delegate == null) + { + efl_gfx_stack_raise_to_top_static_delegate = new efl_gfx_stack_raise_to_top_delegate(raise_to_top); + } - public delegate void efl_gfx_hint_aspect_set_api_delegate(System.IntPtr obj, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_aspect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_aspect_set"); - private static void hint_aspect_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_hint_aspect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; - - try { - ((Object)wrapper).SetHintAspect( mode, _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "RaiseToTop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_raise_to_top"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_raise_to_top_static_delegate) }); } - } else { - efl_gfx_hint_aspect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode, sz); - } - } - private static efl_gfx_hint_aspect_set_delegate efl_gfx_hint_aspect_set_static_delegate; + if (efl_gfx_stack_above_static_delegate == null) + { + efl_gfx_stack_above_static_delegate = new efl_gfx_stack_above_delegate(stack_above); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "StackAbove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_above"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_static_delegate) }); + } + if (efl_gfx_stack_lower_to_bottom_static_delegate == null) + { + efl_gfx_stack_lower_to_bottom_static_delegate = new efl_gfx_stack_lower_to_bottom_delegate(lower_to_bottom); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_max_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_max_get"); - private static Eina.Size2D.NativeStruct hint_size_max_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_hint_size_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Object)wrapper).GetHintSizeMax(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "LowerToBottom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_lower_to_bottom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_lower_to_bottom_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_hint_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_hint_size_max_get_delegate efl_gfx_hint_size_max_get_static_delegate; + if (efl_input_seat_event_filter_get_static_delegate == null) + { + efl_input_seat_event_filter_get_static_delegate = new efl_input_seat_event_filter_get_delegate(seat_event_filter_get); + } - private delegate void efl_gfx_hint_size_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + if (methods.FirstOrDefault(m => m.Name == "GetSeatEventFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_seat_event_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_seat_event_filter_get_static_delegate) }); + } + if (efl_input_seat_event_filter_set_static_delegate == null) + { + efl_input_seat_event_filter_set_static_delegate = new efl_input_seat_event_filter_set_delegate(seat_event_filter_set); + } - public delegate void efl_gfx_hint_size_max_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_max_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_max_set"); - private static void hint_size_max_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_hint_size_max_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; - - try { - ((Object)wrapper).SetHintSizeMax( _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSeatEventFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_seat_event_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_seat_event_filter_set_static_delegate) }); } - } else { - efl_gfx_hint_size_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); - } - } - private static efl_gfx_hint_size_max_set_delegate efl_gfx_hint_size_max_set_static_delegate; + if (efl_ui_mirrored_get_static_delegate == null) + { + efl_ui_mirrored_get_static_delegate = new efl_ui_mirrored_get_delegate(mirrored_get); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_get_static_delegate) }); + } + if (efl_ui_mirrored_set_static_delegate == null) + { + efl_ui_mirrored_set_static_delegate = new efl_ui_mirrored_set_delegate(mirrored_set); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_min_get"); - private static Eina.Size2D.NativeStruct hint_size_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_hint_size_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Object)wrapper).GetHintSizeMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_hint_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_hint_size_min_get_delegate efl_gfx_hint_size_min_get_static_delegate; + if (efl_ui_mirrored_automatic_get_static_delegate == null) + { + efl_ui_mirrored_automatic_get_static_delegate = new efl_ui_mirrored_automatic_get_delegate(mirrored_automatic_get); + } - private delegate void efl_gfx_hint_size_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + if (methods.FirstOrDefault(m => m.Name == "GetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_get_static_delegate) }); + } + if (efl_ui_mirrored_automatic_set_static_delegate == null) + { + efl_ui_mirrored_automatic_set_static_delegate = new efl_ui_mirrored_automatic_set_delegate(mirrored_automatic_set); + } - public delegate void efl_gfx_hint_size_min_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_min_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_min_set"); - private static void hint_size_min_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_hint_size_min_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; - - try { - ((Object)wrapper).SetHintSizeMin( _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_set_static_delegate) }); } - } else { - efl_gfx_hint_size_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); - } - } - private static efl_gfx_hint_size_min_set_delegate efl_gfx_hint_size_min_set_static_delegate; + if (efl_ui_language_get_static_delegate == null) + { + efl_ui_language_get_static_delegate = new efl_ui_language_get_delegate(language_get); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_get_static_delegate) }); + } + if (efl_ui_language_set_static_delegate == null) + { + efl_ui_language_set_static_delegate = new efl_ui_language_set_delegate(language_set); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_restricted_min_get"); - private static Eina.Size2D.NativeStruct hint_size_restricted_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_hint_size_restricted_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Object)wrapper).GetHintSizeRestrictedMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_hint_size_restricted_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_hint_size_restricted_min_get_delegate efl_gfx_hint_size_restricted_min_get_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Object.efl_canvas_object_class_get(); + } - private delegate void efl_gfx_hint_size_restricted_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + #pragma warning disable CA1707, SA1300, SA1600 + + private delegate Efl.Input.ObjectPointerMode efl_canvas_object_pointer_mode_by_device_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); - public delegate void efl_gfx_hint_size_restricted_min_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_min_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_restricted_min_set"); - private static void hint_size_restricted_min_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_hint_size_restricted_min_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; - - try { - ((Object)wrapper).SetHintSizeRestrictedMin( _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_size_restricted_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); - } - } - private static efl_gfx_hint_size_restricted_min_set_delegate efl_gfx_hint_size_restricted_min_set_static_delegate; + + public delegate Efl.Input.ObjectPointerMode efl_canvas_object_pointer_mode_by_device_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); + public static Efl.Eo.FunctionWrapper efl_canvas_object_pointer_mode_by_device_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_pointer_mode_by_device_get"); - private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Input.ObjectPointerMode pointer_mode_by_device_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) + { + Eina.Log.Debug("function efl_canvas_object_pointer_mode_by_device_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.ObjectPointerMode _ret_var = default(Efl.Input.ObjectPointerMode); + try + { + _ret_var = ((Object)wrapper).GetPointerModeByDevice(dev); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_combined_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_combined_min_get"); - private static Eina.Size2D.NativeStruct hint_size_combined_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_hint_size_combined_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Object)wrapper).GetHintSizeCombinedMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_hint_size_combined_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_object_pointer_mode_by_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); + } } - } - private static efl_gfx_hint_size_combined_min_get_delegate efl_gfx_hint_size_combined_min_get_static_delegate; - - private delegate void efl_gfx_hint_margin_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + private static efl_canvas_object_pointer_mode_by_device_get_delegate efl_canvas_object_pointer_mode_by_device_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_pointer_mode_by_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev, Efl.Input.ObjectPointerMode pointer_mode); - public delegate void efl_gfx_hint_margin_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_margin_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_margin_get"); - private static void hint_margin_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) - { - Eina.Log.Debug("function efl_gfx_hint_margin_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(int); r = default(int); t = default(int); b = default(int); - try { - ((Object)wrapper).GetHintMargin( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_margin_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); - } - } - private static efl_gfx_hint_margin_get_delegate efl_gfx_hint_margin_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_pointer_mode_by_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev, Efl.Input.ObjectPointerMode pointer_mode); + public static Efl.Eo.FunctionWrapper efl_canvas_object_pointer_mode_by_device_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_pointer_mode_by_device_set"); - private delegate void efl_gfx_hint_margin_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + private static bool pointer_mode_by_device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev, Efl.Input.ObjectPointerMode pointer_mode) + { + Eina.Log.Debug("function efl_canvas_object_pointer_mode_by_device_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).SetPointerModeByDevice(dev, pointer_mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_hint_margin_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_margin_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_margin_set"); - private static void hint_margin_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) - { - Eina.Log.Debug("function efl_gfx_hint_margin_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetHintMargin( l, r, t, b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_hint_margin_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); + else + { + return efl_canvas_object_pointer_mode_by_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev, pointer_mode); + } } - } - private static efl_gfx_hint_margin_set_delegate efl_gfx_hint_margin_set_static_delegate; + private static efl_canvas_object_pointer_mode_by_device_set_delegate efl_canvas_object_pointer_mode_by_device_set_static_delegate; - private delegate void efl_gfx_hint_weight_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); - + + private delegate Efl.Input.ObjectPointerMode efl_canvas_object_pointer_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_hint_weight_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_weight_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_weight_get"); - private static void hint_weight_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_hint_weight_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((Object)wrapper).GetHintWeight( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_gfx_hint_weight_get_delegate efl_gfx_hint_weight_get_static_delegate; + + public delegate Efl.Input.ObjectPointerMode efl_canvas_object_pointer_mode_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_canvas_object_pointer_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_pointer_mode_get"); - private delegate void efl_gfx_hint_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + private static Efl.Input.ObjectPointerMode pointer_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_pointer_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.ObjectPointerMode _ret_var = default(Efl.Input.ObjectPointerMode); + try + { + _ret_var = ((Object)wrapper).GetPointerMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_hint_weight_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_weight_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_weight_set"); - private static void hint_weight_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_hint_weight_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetHintWeight( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_hint_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + else + { + return efl_canvas_object_pointer_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_hint_weight_set_delegate efl_gfx_hint_weight_set_static_delegate; - - private delegate void efl_gfx_hint_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + private static efl_canvas_object_pointer_mode_get_delegate efl_canvas_object_pointer_mode_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_pointer_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.ObjectPointerMode pointer_mode); - public delegate void efl_gfx_hint_align_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_align_get"); - private static void hint_align_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_hint_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((Object)wrapper).GetHintAlign( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_gfx_hint_align_get_delegate efl_gfx_hint_align_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_pointer_mode_set_api_delegate(System.IntPtr obj, Efl.Input.ObjectPointerMode pointer_mode); + public static Efl.Eo.FunctionWrapper efl_canvas_object_pointer_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_pointer_mode_set"); - private delegate void efl_gfx_hint_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + private static bool pointer_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.ObjectPointerMode pointer_mode) + { + Eina.Log.Debug("function efl_canvas_object_pointer_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).SetPointerMode(pointer_mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_hint_align_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_align_set"); - private static void hint_align_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_hint_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetHintAlign( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_hint_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + else + { + return efl_canvas_object_pointer_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pointer_mode); + } } - } - private static efl_gfx_hint_align_set_delegate efl_gfx_hint_align_set_static_delegate; + private static efl_canvas_object_pointer_mode_set_delegate efl_canvas_object_pointer_mode_set_static_delegate; - private delegate void efl_gfx_hint_fill_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool x, [MarshalAs(UnmanagedType.U1)] out bool y); - + + private delegate Efl.Gfx.RenderOp efl_canvas_object_render_op_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_hint_fill_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool x, [MarshalAs(UnmanagedType.U1)] out bool y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_fill_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_fill_get"); - private static void hint_fill_get(System.IntPtr obj, System.IntPtr pd, out bool x, out bool y) - { - Eina.Log.Debug("function efl_gfx_hint_fill_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(bool); y = default(bool); - try { - ((Object)wrapper).GetHintFill( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_gfx_hint_fill_get_delegate efl_gfx_hint_fill_get_static_delegate; + + public delegate Efl.Gfx.RenderOp efl_canvas_object_render_op_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_canvas_object_render_op_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_render_op_get"); - private delegate void efl_gfx_hint_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool x, [MarshalAs(UnmanagedType.U1)] bool y); + private static Efl.Gfx.RenderOp render_op_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_render_op_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.RenderOp _ret_var = default(Efl.Gfx.RenderOp); + try + { + _ret_var = ((Object)wrapper).GetRenderOp(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_hint_fill_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool x, [MarshalAs(UnmanagedType.U1)] bool y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_fill_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_fill_set"); - private static void hint_fill_set(System.IntPtr obj, System.IntPtr pd, bool x, bool y) - { - Eina.Log.Debug("function efl_gfx_hint_fill_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetHintFill( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_hint_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + else + { + return efl_canvas_object_render_op_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_hint_fill_set_delegate efl_gfx_hint_fill_set_static_delegate; + private static efl_canvas_object_render_op_get_delegate efl_canvas_object_render_op_get_static_delegate; + + + private delegate void efl_canvas_object_render_op_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.RenderOp render_op); - private delegate int efl_gfx_mapping_point_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_canvas_object_render_op_set_api_delegate(System.IntPtr obj, Efl.Gfx.RenderOp render_op); + public static Efl.Eo.FunctionWrapper efl_canvas_object_render_op_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_render_op_set"); - public delegate int efl_gfx_mapping_point_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_point_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_point_count_get"); - private static int mapping_point_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_point_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Object)wrapper).GetMappingPointCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void render_op_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.RenderOp render_op) + { + Eina.Log.Debug("function efl_canvas_object_render_op_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetRenderOp(render_op); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_object_render_op_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), render_op); } - return _ret_var; - } else { - return efl_gfx_mapping_point_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_mapping_point_count_get_delegate efl_gfx_mapping_point_count_get_static_delegate; + private static efl_canvas_object_render_op_set_delegate efl_canvas_object_render_op_set_static_delegate; - private delegate void efl_gfx_mapping_point_count_set_delegate(System.IntPtr obj, System.IntPtr pd, int count); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_canvas_object_clipper_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_canvas_object_clipper_get_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_mapping_point_count_set_api_delegate(System.IntPtr obj, int count); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_point_count_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_point_count_set"); - private static void mapping_point_count_set(System.IntPtr obj, System.IntPtr pd, int count) - { - Eina.Log.Debug("function efl_gfx_mapping_point_count_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetMappingPointCount( count); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_point_count_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), count); - } - } - private static efl_gfx_mapping_point_count_set_delegate efl_gfx_mapping_point_count_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_canvas_object_clipper_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_clipper_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_mapping_clockwise_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Canvas.Object clipper_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_clipper_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Object)wrapper).GetClipper(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_mapping_clockwise_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_clockwise_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_clockwise_get"); - private static bool mapping_clockwise_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_clockwise_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetMappingClockwise(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_mapping_clockwise_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_object_clipper_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_mapping_clockwise_get_delegate efl_gfx_mapping_clockwise_get_static_delegate; + private static efl_canvas_object_clipper_get_delegate efl_canvas_object_clipper_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_mapping_smooth_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_canvas_object_clipper_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object clipper); + + public delegate void efl_canvas_object_clipper_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object clipper); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_mapping_smooth_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_smooth_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_smooth_get"); - private static bool mapping_smooth_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_smooth_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetMappingSmooth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_canvas_object_clipper_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_clipper_set"); + + private static void clipper_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object clipper) + { + Eina.Log.Debug("function efl_canvas_object_clipper_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetClipper(clipper); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_object_clipper_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), clipper); } - return _ret_var; - } else { - return efl_gfx_mapping_smooth_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_mapping_smooth_get_delegate efl_gfx_mapping_smooth_get_static_delegate; + private static efl_canvas_object_clipper_set_delegate efl_canvas_object_clipper_set_static_delegate; - private delegate void efl_gfx_mapping_smooth_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_repeat_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_repeat_events_get_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_mapping_smooth_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_smooth_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_smooth_set"); - private static void mapping_smooth_set(System.IntPtr obj, System.IntPtr pd, bool smooth) - { - Eina.Log.Debug("function efl_gfx_mapping_smooth_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetMappingSmooth( smooth); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_smooth_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth); - } - } - private static efl_gfx_mapping_smooth_set_delegate efl_gfx_mapping_smooth_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_canvas_object_repeat_events_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_repeat_events_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_mapping_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool repeat_events_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_repeat_events_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetRepeatEvents(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_mapping_alpha_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_alpha_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_alpha_get"); - private static bool mapping_alpha_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_alpha_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetMappingAlpha(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_mapping_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_object_repeat_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_mapping_alpha_get_delegate efl_gfx_mapping_alpha_get_static_delegate; - - private delegate void efl_gfx_mapping_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool alpha); + private static efl_canvas_object_repeat_events_get_delegate efl_canvas_object_repeat_events_get_static_delegate; + + private delegate void efl_canvas_object_repeat_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat); - public delegate void efl_gfx_mapping_alpha_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool alpha); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_alpha_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_alpha_set"); - private static void mapping_alpha_set(System.IntPtr obj, System.IntPtr pd, bool alpha) - { - Eina.Log.Debug("function efl_gfx_mapping_alpha_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetMappingAlpha( alpha); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), alpha); - } - } - private static efl_gfx_mapping_alpha_set_delegate efl_gfx_mapping_alpha_set_static_delegate; - + + public delegate void efl_canvas_object_repeat_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat); - private delegate void efl_gfx_mapping_coord_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out double x, out double y, out double z); + public static Efl.Eo.FunctionWrapper efl_canvas_object_repeat_events_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_repeat_events_set"); + private static void repeat_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat) + { + Eina.Log.Debug("function efl_canvas_object_repeat_events_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetRepeatEvents(repeat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_mapping_coord_absolute_get_api_delegate(System.IntPtr obj, int idx, out double x, out double y, out double z); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_coord_absolute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_coord_absolute_get"); - private static void mapping_coord_absolute_get(System.IntPtr obj, System.IntPtr pd, int idx, out double x, out double y, out double z) - { - Eina.Log.Debug("function efl_gfx_mapping_coord_absolute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); z = default(double); - try { - ((Object)wrapper).GetMappingCoordAbsolute( idx, out x, out y, out z); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_coord_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out x, out y, out z); + + } + else + { + efl_canvas_object_repeat_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat); + } + } + + private static efl_canvas_object_repeat_events_set_delegate efl_canvas_object_repeat_events_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_key_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_key_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_key_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_key_focus_get"); + + private static bool key_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_key_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetKeyFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_key_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_key_focus_get_delegate efl_canvas_object_key_focus_get_static_delegate; + + + private delegate void efl_canvas_object_key_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus); + + + public delegate void efl_canvas_object_key_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_key_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_key_focus_set"); + + private static void key_focus_set(System.IntPtr obj, System.IntPtr pd, bool focus) + { + Eina.Log.Debug("function efl_canvas_object_key_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetKeyFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_object_key_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + } + } + + private static efl_canvas_object_key_focus_set_delegate efl_canvas_object_key_focus_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_seat_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_seat_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_seat_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_seat_focus_get"); + + private static bool seat_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_seat_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetSeatFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_seat_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_seat_focus_get_delegate efl_canvas_object_seat_focus_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_precise_is_inside_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_precise_is_inside_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_precise_is_inside_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_precise_is_inside_get"); + + private static bool precise_is_inside_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_precise_is_inside_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetPreciseIsInside(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_precise_is_inside_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_precise_is_inside_get_delegate efl_canvas_object_precise_is_inside_get_static_delegate; + + + private delegate void efl_canvas_object_precise_is_inside_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool precise); + + + public delegate void efl_canvas_object_precise_is_inside_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool precise); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_precise_is_inside_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_precise_is_inside_set"); + + private static void precise_is_inside_set(System.IntPtr obj, System.IntPtr pd, bool precise) + { + Eina.Log.Debug("function efl_canvas_object_precise_is_inside_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetPreciseIsInside(precise); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_object_precise_is_inside_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), precise); + } + } + + private static efl_canvas_object_precise_is_inside_set_delegate efl_canvas_object_precise_is_inside_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_propagate_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_propagate_events_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_propagate_events_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_propagate_events_get"); + + private static bool propagate_events_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_propagate_events_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetPropagateEvents(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_propagate_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_propagate_events_get_delegate efl_canvas_object_propagate_events_get_static_delegate; + + + private delegate void efl_canvas_object_propagate_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool propagate); + + + public delegate void efl_canvas_object_propagate_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool propagate); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_propagate_events_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_propagate_events_set"); + + private static void propagate_events_set(System.IntPtr obj, System.IntPtr pd, bool propagate) + { + Eina.Log.Debug("function efl_canvas_object_propagate_events_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetPropagateEvents(propagate); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_object_propagate_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), propagate); + } + } + + private static efl_canvas_object_propagate_events_set_delegate efl_canvas_object_propagate_events_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_pass_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_pass_events_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_pass_events_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_pass_events_get"); + + private static bool pass_events_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_pass_events_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetPassEvents(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_pass_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_pass_events_get_delegate efl_canvas_object_pass_events_get_static_delegate; + + + private delegate void efl_canvas_object_pass_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool pass); + + + public delegate void efl_canvas_object_pass_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool pass); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_pass_events_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_pass_events_set"); + + private static void pass_events_set(System.IntPtr obj, System.IntPtr pd, bool pass) + { + Eina.Log.Debug("function efl_canvas_object_pass_events_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetPassEvents(pass); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_object_pass_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pass); + } + } + + private static efl_canvas_object_pass_events_set_delegate efl_canvas_object_pass_events_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_anti_alias_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_anti_alias_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_anti_alias_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_anti_alias_get"); + + private static bool anti_alias_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_anti_alias_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetAntiAlias(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_anti_alias_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_anti_alias_get_delegate efl_canvas_object_anti_alias_get_static_delegate; + + + private delegate void efl_canvas_object_anti_alias_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool anti_alias); + + + public delegate void efl_canvas_object_anti_alias_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool anti_alias); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_anti_alias_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_anti_alias_set"); + + private static void anti_alias_set(System.IntPtr obj, System.IntPtr pd, bool anti_alias) + { + Eina.Log.Debug("function efl_canvas_object_anti_alias_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetAntiAlias(anti_alias); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_object_anti_alias_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), anti_alias); + } + } + + private static efl_canvas_object_anti_alias_set_delegate efl_canvas_object_anti_alias_set_static_delegate; + + + private delegate System.IntPtr efl_canvas_object_clipped_objects_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_canvas_object_clipped_objects_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_clipped_objects_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_clipped_objects_get"); + + private static System.IntPtr clipped_objects_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_clipped_objects_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Object)wrapper).GetClippedObjects(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; + + } + else + { + return efl_canvas_object_clipped_objects_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_clipped_objects_get_delegate efl_canvas_object_clipped_objects_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_canvas_object_render_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_canvas_object_render_parent_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_render_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_render_parent_get"); + + private static Efl.Canvas.Object render_parent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_render_parent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Object)wrapper).GetRenderParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_render_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_render_parent_get_delegate efl_canvas_object_render_parent_get_static_delegate; + + + private delegate Efl.TextBidirectionalType efl_canvas_object_paragraph_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextBidirectionalType efl_canvas_object_paragraph_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_paragraph_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_paragraph_direction_get"); + + private static Efl.TextBidirectionalType paragraph_direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_paragraph_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextBidirectionalType _ret_var = default(Efl.TextBidirectionalType); + try + { + _ret_var = ((Object)wrapper).GetParagraphDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_paragraph_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_paragraph_direction_get_delegate efl_canvas_object_paragraph_direction_get_static_delegate; + + + private delegate void efl_canvas_object_paragraph_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextBidirectionalType dir); + + + public delegate void efl_canvas_object_paragraph_direction_set_api_delegate(System.IntPtr obj, Efl.TextBidirectionalType dir); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_paragraph_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_paragraph_direction_set"); + + private static void paragraph_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.TextBidirectionalType dir) + { + Eina.Log.Debug("function efl_canvas_object_paragraph_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetParagraphDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_object_paragraph_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } + + private static efl_canvas_object_paragraph_direction_set_delegate efl_canvas_object_paragraph_direction_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_no_render_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_no_render_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_no_render_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_no_render_get"); + + private static bool no_render_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_no_render_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetNoRender(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_no_render_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_no_render_get_delegate efl_canvas_object_no_render_get_static_delegate; + + + private delegate void efl_canvas_object_no_render_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + + + public delegate void efl_canvas_object_no_render_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_no_render_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_no_render_set"); + + private static void no_render_set(System.IntPtr obj, System.IntPtr pd, bool enable) + { + Eina.Log.Debug("function efl_canvas_object_no_render_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetNoRender(enable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_object_no_render_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); + } + } + + private static efl_canvas_object_no_render_set_delegate efl_canvas_object_no_render_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_coords_inside_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_coords_inside_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_coords_inside_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_coords_inside_get"); + + private static bool coords_inside_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_canvas_object_coords_inside_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetCoordsInside(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_coords_inside_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + } + } + + private static efl_canvas_object_coords_inside_get_delegate efl_canvas_object_coords_inside_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_seat_focus_check_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_seat_focus_check_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_seat_focus_check_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_seat_focus_check"); + + private static bool seat_focus_check(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_canvas_object_seat_focus_check was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).CheckSeatFocus(seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_seat_focus_check_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + } + } + + private static efl_canvas_object_seat_focus_check_delegate efl_canvas_object_seat_focus_check_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_seat_focus_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_seat_focus_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_seat_focus_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_seat_focus_add"); + + private static bool seat_focus_add(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_canvas_object_seat_focus_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).AddSeatFocus(seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_seat_focus_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + } + } + + private static efl_canvas_object_seat_focus_add_delegate efl_canvas_object_seat_focus_add_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_seat_focus_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_seat_focus_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_seat_focus_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_seat_focus_del"); + + private static bool seat_focus_del(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_canvas_object_seat_focus_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).DelSeatFocus(seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_seat_focus_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + } + } + + private static efl_canvas_object_seat_focus_del_delegate efl_canvas_object_seat_focus_del_static_delegate; + + + private delegate uint efl_canvas_object_clipped_objects_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate uint efl_canvas_object_clipped_objects_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_clipped_objects_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_clipped_objects_count"); + + private static uint clipped_objects_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_clipped_objects_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((Object)wrapper).ClippedObjectsCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_clipped_objects_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_clipped_objects_count_delegate efl_canvas_object_clipped_objects_count_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_key_grab_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers, [MarshalAs(UnmanagedType.U1)] bool exclusive); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_key_grab_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers, [MarshalAs(UnmanagedType.U1)] bool exclusive); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_key_grab_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_key_grab"); + + private static bool key_grab(System.IntPtr obj, System.IntPtr pd, System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers, bool exclusive) + { + Eina.Log.Debug("function efl_canvas_object_key_grab was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GrabKey(keyname, modifiers, not_modifiers, exclusive); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_key_grab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), keyname, modifiers, not_modifiers, exclusive); + } + } + + private static efl_canvas_object_key_grab_delegate efl_canvas_object_key_grab_static_delegate; + + + private delegate void efl_canvas_object_key_ungrab_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers); + + + public delegate void efl_canvas_object_key_ungrab_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_key_ungrab_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_key_ungrab"); + + private static void key_ungrab(System.IntPtr obj, System.IntPtr pd, System.String keyname, Efl.Input.Modifier modifiers, Efl.Input.Modifier not_modifiers) + { + Eina.Log.Debug("function efl_canvas_object_key_ungrab was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).UngrabKey(keyname, modifiers, not_modifiers); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_object_key_ungrab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), keyname, modifiers, not_modifiers); + } + } + + private static efl_canvas_object_key_ungrab_delegate efl_canvas_object_key_ungrab_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_pointer_inside_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_pointer_inside_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + public static Efl.Eo.FunctionWrapper efl_canvas_pointer_inside_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_pointer_inside_get"); + + private static bool pointer_inside_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_canvas_pointer_inside_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetPointerInside(seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_pointer_inside_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + } + } + + private static efl_canvas_pointer_inside_get_delegate efl_canvas_pointer_inside_get_static_delegate; + + + private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + + + public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_get"); + + private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); + try + { + ((Object)wrapper).GetColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; + + + private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + + + public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_set"); + + private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_get"); + + private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_color_code_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Object)wrapper).GetColorCode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; + + + private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + + public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_set"); + + private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) + { + Eina.Log.Debug("function efl_gfx_color_code_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetColorCode(colorcode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); + } + } + + private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_get"); + + private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Object)wrapper).GetPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; + + + private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + + public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_set"); + + private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_gfx_entity_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((Object)wrapper).SetPosition(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + } + } + + private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_get"); + + private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Object)wrapper).GetSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; + + + private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + + public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_set"); + + private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_entity_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; + + try + { + ((Object)wrapper).SetSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } + } + + private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_get"); + + private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Object)wrapper).GetGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; + + + private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + + + public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_set"); + + private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + + try + { + ((Object)wrapper).SetGeometry(_in_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); + } + } + + private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_get"); + + private static bool visible_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetVisible(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; + + + private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + + + public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_set"); + + private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) + { + Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetVisible(v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); + } + } + + private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; + + + private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_get"); + + private static double scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Object)wrapper).GetScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; + + + private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + + public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_set"); + + private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + } + } + + private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + + + private delegate void efl_gfx_hint_aspect_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz); + + + public delegate void efl_gfx_hint_aspect_get_api_delegate(System.IntPtr obj, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_aspect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_aspect_get"); + + private static void hint_aspect_get(System.IntPtr obj, System.IntPtr pd, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_aspect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + mode = default(Efl.Gfx.HintAspect); Eina.Size2D _out_sz = default(Eina.Size2D); + + try + { + ((Object)wrapper).GetHintAspect(out mode, out _out_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + sz = _out_sz; + + } + else + { + efl_gfx_hint_aspect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out mode, out sz); + } + } + + private static efl_gfx_hint_aspect_get_delegate efl_gfx_hint_aspect_get_static_delegate; + + + private delegate void efl_gfx_hint_aspect_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz); + + + public delegate void efl_gfx_hint_aspect_set_api_delegate(System.IntPtr obj, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_aspect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_aspect_set"); + + private static void hint_aspect_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_aspect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((Object)wrapper).SetHintAspect(mode, _in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_aspect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode, sz); + } + } + + private static efl_gfx_hint_aspect_set_delegate efl_gfx_hint_aspect_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_max_get"); + + private static Eina.Size2D.NativeStruct hint_size_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Object)wrapper).GetHintSizeMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_hint_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_hint_size_max_get_delegate efl_gfx_hint_size_max_get_static_delegate; + + + private delegate void efl_gfx_hint_size_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + + public delegate void efl_gfx_hint_size_max_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_max_set"); + + private static void hint_size_max_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_size_max_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((Object)wrapper).SetHintSizeMax(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_size_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + } + } + + private static efl_gfx_hint_size_max_set_delegate efl_gfx_hint_size_max_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_min_get"); + + private static Eina.Size2D.NativeStruct hint_size_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Object)wrapper).GetHintSizeMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_hint_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_hint_size_min_get_delegate efl_gfx_hint_size_min_get_static_delegate; + + + private delegate void efl_gfx_hint_size_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + + public delegate void efl_gfx_hint_size_min_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_min_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_min_set"); + + private static void hint_size_min_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_size_min_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((Object)wrapper).SetHintSizeMin(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_size_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + } + } + + private static efl_gfx_hint_size_min_set_delegate efl_gfx_hint_size_min_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_restricted_min_get"); + + private static Eina.Size2D.NativeStruct hint_size_restricted_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_restricted_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Object)wrapper).GetHintSizeRestrictedMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_hint_size_restricted_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_hint_size_restricted_min_get_delegate efl_gfx_hint_size_restricted_min_get_static_delegate; + + + private delegate void efl_gfx_hint_size_restricted_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + + public delegate void efl_gfx_hint_size_restricted_min_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_min_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_restricted_min_set"); + + private static void hint_size_restricted_min_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_size_restricted_min_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((Object)wrapper).SetHintSizeRestrictedMin(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_size_restricted_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + } + } + + private static efl_gfx_hint_size_restricted_min_set_delegate efl_gfx_hint_size_restricted_min_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_combined_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_combined_min_get"); + + private static Eina.Size2D.NativeStruct hint_size_combined_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_combined_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Object)wrapper).GetHintSizeCombinedMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_hint_size_combined_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_hint_size_combined_min_get_delegate efl_gfx_hint_size_combined_min_get_static_delegate; + + + private delegate void efl_gfx_hint_margin_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + + public delegate void efl_gfx_hint_margin_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_margin_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_margin_get"); + + private static void hint_margin_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_hint_margin_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((Object)wrapper).GetHintMargin(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_margin_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + } + } + + private static efl_gfx_hint_margin_get_delegate efl_gfx_hint_margin_get_static_delegate; + + + private delegate void efl_gfx_hint_margin_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + + + public delegate void efl_gfx_hint_margin_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_margin_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_margin_set"); + + private static void hint_margin_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) + { + Eina.Log.Debug("function efl_gfx_hint_margin_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetHintMargin(l, r, t, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_margin_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); + } + } + + private static efl_gfx_hint_margin_set_delegate efl_gfx_hint_margin_set_static_delegate; + + + private delegate void efl_gfx_hint_weight_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_hint_weight_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_weight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_weight_get"); + + private static void hint_weight_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_hint_weight_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((Object)wrapper).GetHintWeight(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_gfx_hint_weight_get_delegate efl_gfx_hint_weight_get_static_delegate; + + + private delegate void efl_gfx_hint_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_hint_weight_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_weight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_weight_set"); + + private static void hint_weight_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_hint_weight_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetHintWeight(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_gfx_hint_weight_set_delegate efl_gfx_hint_weight_set_static_delegate; + + + private delegate void efl_gfx_hint_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_hint_align_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_align_get"); + + private static void hint_align_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_hint_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((Object)wrapper).GetHintAlign(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_gfx_hint_align_get_delegate efl_gfx_hint_align_get_static_delegate; + + + private delegate void efl_gfx_hint_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_hint_align_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_align_set"); + + private static void hint_align_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_hint_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetHintAlign(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_gfx_hint_align_set_delegate efl_gfx_hint_align_set_static_delegate; + + + private delegate void efl_gfx_hint_fill_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool x, [MarshalAs(UnmanagedType.U1)] out bool y); + + + public delegate void efl_gfx_hint_fill_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool x, [MarshalAs(UnmanagedType.U1)] out bool y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_fill_get"); + + private static void hint_fill_get(System.IntPtr obj, System.IntPtr pd, out bool x, out bool y) + { + Eina.Log.Debug("function efl_gfx_hint_fill_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(bool); y = default(bool); + try + { + ((Object)wrapper).GetHintFill(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_gfx_hint_fill_get_delegate efl_gfx_hint_fill_get_static_delegate; + + + private delegate void efl_gfx_hint_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool x, [MarshalAs(UnmanagedType.U1)] bool y); + + + public delegate void efl_gfx_hint_fill_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool x, [MarshalAs(UnmanagedType.U1)] bool y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_fill_set"); + + private static void hint_fill_set(System.IntPtr obj, System.IntPtr pd, bool x, bool y) + { + Eina.Log.Debug("function efl_gfx_hint_fill_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetHintFill(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_gfx_hint_fill_set_delegate efl_gfx_hint_fill_set_static_delegate; + + + private delegate int efl_gfx_mapping_point_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_gfx_mapping_point_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_point_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_point_count_get"); + + private static int mapping_point_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_point_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Object)wrapper).GetMappingPointCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_mapping_point_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_mapping_point_count_get_delegate efl_gfx_mapping_point_count_get_static_delegate; + + + private delegate void efl_gfx_mapping_point_count_set_delegate(System.IntPtr obj, System.IntPtr pd, int count); + + + public delegate void efl_gfx_mapping_point_count_set_api_delegate(System.IntPtr obj, int count); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_point_count_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_point_count_set"); + + private static void mapping_point_count_set(System.IntPtr obj, System.IntPtr pd, int count) + { + Eina.Log.Debug("function efl_gfx_mapping_point_count_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetMappingPointCount(count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_point_count_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), count); + } + } + + private static efl_gfx_mapping_point_count_set_delegate efl_gfx_mapping_point_count_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_mapping_clockwise_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_mapping_clockwise_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_clockwise_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_clockwise_get"); + + private static bool mapping_clockwise_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_clockwise_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetMappingClockwise(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_mapping_clockwise_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_mapping_coord_absolute_get_delegate efl_gfx_mapping_coord_absolute_get_static_delegate; + private static efl_gfx_mapping_clockwise_get_delegate efl_gfx_mapping_clockwise_get_static_delegate; - private delegate void efl_gfx_mapping_coord_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, double x, double y, double z); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_mapping_smooth_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_mapping_smooth_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_smooth_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_smooth_get"); + + private static bool mapping_smooth_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_smooth_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetMappingSmooth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_mapping_smooth_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_mapping_smooth_get_delegate efl_gfx_mapping_smooth_get_static_delegate; + + + private delegate void efl_gfx_mapping_smooth_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth); + + + public delegate void efl_gfx_mapping_smooth_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_smooth_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_smooth_set"); + + private static void mapping_smooth_set(System.IntPtr obj, System.IntPtr pd, bool smooth) + { + Eina.Log.Debug("function efl_gfx_mapping_smooth_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetMappingSmooth(smooth); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_smooth_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth); + } + } + + private static efl_gfx_mapping_smooth_set_delegate efl_gfx_mapping_smooth_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_mapping_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_mapping_alpha_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_alpha_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_alpha_get"); + + private static bool mapping_alpha_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_alpha_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetMappingAlpha(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_mapping_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_mapping_alpha_get_delegate efl_gfx_mapping_alpha_get_static_delegate; + + + private delegate void efl_gfx_mapping_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool alpha); + + + public delegate void efl_gfx_mapping_alpha_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool alpha); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_alpha_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_alpha_set"); + + private static void mapping_alpha_set(System.IntPtr obj, System.IntPtr pd, bool alpha) + { + Eina.Log.Debug("function efl_gfx_mapping_alpha_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetMappingAlpha(alpha); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), alpha); + } + } + + private static efl_gfx_mapping_alpha_set_delegate efl_gfx_mapping_alpha_set_static_delegate; + + + private delegate void efl_gfx_mapping_coord_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out double x, out double y, out double z); + + + public delegate void efl_gfx_mapping_coord_absolute_get_api_delegate(System.IntPtr obj, int idx, out double x, out double y, out double z); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_coord_absolute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_coord_absolute_get"); + + private static void mapping_coord_absolute_get(System.IntPtr obj, System.IntPtr pd, int idx, out double x, out double y, out double z) + { + Eina.Log.Debug("function efl_gfx_mapping_coord_absolute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); z = default(double); + try + { + ((Object)wrapper).GetMappingCoordAbsolute(idx, out x, out y, out z); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_coord_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out x, out y, out z); + } + } + + private static efl_gfx_mapping_coord_absolute_get_delegate efl_gfx_mapping_coord_absolute_get_static_delegate; + + + private delegate void efl_gfx_mapping_coord_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, double x, double y, double z); + + + public delegate void efl_gfx_mapping_coord_absolute_set_api_delegate(System.IntPtr obj, int idx, double x, double y, double z); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_coord_absolute_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_coord_absolute_set"); + + private static void mapping_coord_absolute_set(System.IntPtr obj, System.IntPtr pd, int idx, double x, double y, double z) + { + Eina.Log.Debug("function efl_gfx_mapping_coord_absolute_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetMappingCoordAbsolute(idx, x, y, z); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_coord_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, x, y, z); + } + } + + private static efl_gfx_mapping_coord_absolute_set_delegate efl_gfx_mapping_coord_absolute_set_static_delegate; + + + private delegate void efl_gfx_mapping_uv_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out double u, out double v); + + + public delegate void efl_gfx_mapping_uv_get_api_delegate(System.IntPtr obj, int idx, out double u, out double v); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_uv_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_uv_get"); + + private static void mapping_uv_get(System.IntPtr obj, System.IntPtr pd, int idx, out double u, out double v) + { + Eina.Log.Debug("function efl_gfx_mapping_uv_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + u = default(double); v = default(double); + try + { + ((Object)wrapper).GetMappingUv(idx, out u, out v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_uv_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out u, out v); + } + } + + private static efl_gfx_mapping_uv_get_delegate efl_gfx_mapping_uv_get_static_delegate; + + + private delegate void efl_gfx_mapping_uv_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, double u, double v); + + + public delegate void efl_gfx_mapping_uv_set_api_delegate(System.IntPtr obj, int idx, double u, double v); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_uv_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_uv_set"); + + private static void mapping_uv_set(System.IntPtr obj, System.IntPtr pd, int idx, double u, double v) + { + Eina.Log.Debug("function efl_gfx_mapping_uv_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetMappingUv(idx, u, v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_uv_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, u, v); + } + } + + private static efl_gfx_mapping_uv_set_delegate efl_gfx_mapping_uv_set_static_delegate; + + + private delegate void efl_gfx_mapping_color_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out int r, out int g, out int b, out int a); + + + public delegate void efl_gfx_mapping_color_get_api_delegate(System.IntPtr obj, int idx, out int r, out int g, out int b, out int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_color_get"); + + private static void mapping_color_get(System.IntPtr obj, System.IntPtr pd, int idx, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_mapping_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); + try + { + ((Object)wrapper).GetMappingColor(idx, out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out r, out g, out b, out a); + } + } + + private static efl_gfx_mapping_color_get_delegate efl_gfx_mapping_color_get_static_delegate; + + + private delegate void efl_gfx_mapping_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, int r, int g, int b, int a); + + + public delegate void efl_gfx_mapping_color_set_api_delegate(System.IntPtr obj, int idx, int r, int g, int b, int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_color_set"); + + private static void mapping_color_set(System.IntPtr obj, System.IntPtr pd, int idx, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_mapping_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetMappingColor(idx, r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, r, g, b, a); + } + } + + private static efl_gfx_mapping_color_set_delegate efl_gfx_mapping_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_mapping_has_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_mapping_has_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_has_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_has"); + + private static bool mapping_has(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_has was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).HasMapping(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_mapping_has_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_mapping_has_delegate efl_gfx_mapping_has_static_delegate; + + + private delegate void efl_gfx_mapping_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_mapping_reset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_reset"); + + private static void mapping_reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).ResetMapping(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_mapping_reset_delegate efl_gfx_mapping_reset_static_delegate; + + + private delegate void efl_gfx_mapping_translate_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz); + + + public delegate void efl_gfx_mapping_translate_api_delegate(System.IntPtr obj, double dx, double dy, double dz); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_translate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_translate"); + + private static void translate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz) + { + Eina.Log.Debug("function efl_gfx_mapping_translate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).Translate(dx, dy, dz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_translate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz); + } + } + + private static efl_gfx_mapping_translate_delegate efl_gfx_mapping_translate_static_delegate; + + + private delegate void efl_gfx_mapping_rotate_delegate(System.IntPtr obj, System.IntPtr pd, double degrees, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy); + + + public delegate void efl_gfx_mapping_rotate_api_delegate(System.IntPtr obj, double degrees, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate"); + + private static void rotate(System.IntPtr obj, System.IntPtr pd, double degrees, Efl.Gfx.IEntity pivot, double cx, double cy) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).Rotate(degrees, pivot, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_rotate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), degrees, pivot, cx, cy); + } + } + + private static efl_gfx_mapping_rotate_delegate efl_gfx_mapping_rotate_static_delegate; + + + private delegate void efl_gfx_mapping_rotate_3d_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); + + + public delegate void efl_gfx_mapping_rotate_3d_api_delegate(System.IntPtr obj, double dx, double dy, double dz, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_3d_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate_3d"); + + private static void rotate_3d(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate_3d was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).Rotate3d(dx, dy, dz, pivot, cx, cy, cz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_mapping_coord_absolute_set_api_delegate(System.IntPtr obj, int idx, double x, double y, double z); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_coord_absolute_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_coord_absolute_set"); - private static void mapping_coord_absolute_set(System.IntPtr obj, System.IntPtr pd, int idx, double x, double y, double z) - { - Eina.Log.Debug("function efl_gfx_mapping_coord_absolute_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Object)wrapper).SetMappingCoordAbsolute( idx, x, y, z); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_mapping_coord_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, x, y, z); + else + { + efl_gfx_mapping_rotate_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz, pivot, cx, cy, cz); + } } - } - private static efl_gfx_mapping_coord_absolute_set_delegate efl_gfx_mapping_coord_absolute_set_static_delegate; + private static efl_gfx_mapping_rotate_3d_delegate efl_gfx_mapping_rotate_3d_static_delegate; - private delegate void efl_gfx_mapping_uv_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out double u, out double v); + + private delegate void efl_gfx_mapping_rotate_quat_delegate(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); + + public delegate void efl_gfx_mapping_rotate_quat_api_delegate(System.IntPtr obj, double qx, double qy, double qz, double qw, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); - public delegate void efl_gfx_mapping_uv_get_api_delegate(System.IntPtr obj, int idx, out double u, out double v); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_uv_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_uv_get"); - private static void mapping_uv_get(System.IntPtr obj, System.IntPtr pd, int idx, out double u, out double v) - { - Eina.Log.Debug("function efl_gfx_mapping_uv_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - u = default(double); v = default(double); - try { - ((Object)wrapper).GetMappingUv( idx, out u, out v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_uv_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out u, out v); + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_quat_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate_quat"); + + private static void rotate_quat(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate_quat was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).RotateQuat(qx, qy, qz, qw, pivot, cx, cy, cz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_rotate_quat_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), qx, qy, qz, qw, pivot, cx, cy, cz); + } + } + + private static efl_gfx_mapping_rotate_quat_delegate efl_gfx_mapping_rotate_quat_static_delegate; + + + private delegate void efl_gfx_mapping_zoom_delegate(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy); + + + public delegate void efl_gfx_mapping_zoom_api_delegate(System.IntPtr obj, double zoomx, double zoomy, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_zoom_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_zoom"); + + private static void zoom(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, Efl.Gfx.IEntity pivot, double cx, double cy) + { + Eina.Log.Debug("function efl_gfx_mapping_zoom was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).Zoom(zoomx, zoomy, pivot, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_zoom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoomx, zoomy, pivot, cx, cy); + } + } + + private static efl_gfx_mapping_zoom_delegate efl_gfx_mapping_zoom_static_delegate; + + + private delegate void efl_gfx_mapping_lighting_3d_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); + + + public delegate void efl_gfx_mapping_lighting_3d_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_lighting_3d_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_lighting_3d"); + + private static void lighting_3d(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) + { + Eina.Log.Debug("function efl_gfx_mapping_lighting_3d was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).Lighting3d(pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_lighting_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); + } + } + + private static efl_gfx_mapping_lighting_3d_delegate efl_gfx_mapping_lighting_3d_static_delegate; + + + private delegate void efl_gfx_mapping_perspective_3d_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc); + + + public delegate void efl_gfx_mapping_perspective_3d_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_perspective_3d_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_perspective_3d"); + + private static void perspective_3d(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc) + { + Eina.Log.Debug("function efl_gfx_mapping_perspective_3d was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).Perspective3d(pivot, px, py, z0, foc); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_perspective_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pivot, px, py, z0, foc); + } + } + + private static efl_gfx_mapping_perspective_3d_delegate efl_gfx_mapping_perspective_3d_static_delegate; + + + private delegate void efl_gfx_mapping_rotate_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double degrees, double cx, double cy); + + + public delegate void efl_gfx_mapping_rotate_absolute_api_delegate(System.IntPtr obj, double degrees, double cx, double cy); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate_absolute"); + + private static void rotate_absolute(System.IntPtr obj, System.IntPtr pd, double degrees, double cx, double cy) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).RotateAbsolute(degrees, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_rotate_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), degrees, cx, cy); + } } - } - private static efl_gfx_mapping_uv_get_delegate efl_gfx_mapping_uv_get_static_delegate; + private static efl_gfx_mapping_rotate_absolute_delegate efl_gfx_mapping_rotate_absolute_static_delegate; - private delegate void efl_gfx_mapping_uv_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, double u, double v); + + private delegate void efl_gfx_mapping_rotate_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, double cx, double cy, double cz); + + + public delegate void efl_gfx_mapping_rotate_3d_absolute_api_delegate(System.IntPtr obj, double dx, double dy, double dz, double cx, double cy, double cz); + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate_3d_absolute"); - public delegate void efl_gfx_mapping_uv_set_api_delegate(System.IntPtr obj, int idx, double u, double v); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_uv_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_uv_set"); - private static void mapping_uv_set(System.IntPtr obj, System.IntPtr pd, int idx, double u, double v) - { - Eina.Log.Debug("function efl_gfx_mapping_uv_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetMappingUv( idx, u, v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_uv_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, u, v); + private static void rotate_3d_absolute(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, double cx, double cy, double cz) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate_3d_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).Rotate3dAbsolute(dx, dy, dz, cx, cy, cz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_rotate_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz, cx, cy, cz); + } } - } - private static efl_gfx_mapping_uv_set_delegate efl_gfx_mapping_uv_set_static_delegate; + private static efl_gfx_mapping_rotate_3d_absolute_delegate efl_gfx_mapping_rotate_3d_absolute_static_delegate; - private delegate void efl_gfx_mapping_color_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out int r, out int g, out int b, out int a); + + private delegate void efl_gfx_mapping_rotate_quat_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, double cx, double cy, double cz); + + public delegate void efl_gfx_mapping_rotate_quat_absolute_api_delegate(System.IntPtr obj, double qx, double qy, double qz, double qw, double cx, double cy, double cz); - public delegate void efl_gfx_mapping_color_get_api_delegate(System.IntPtr obj, int idx, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_color_get"); - private static void mapping_color_get(System.IntPtr obj, System.IntPtr pd, int idx, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_mapping_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); - try { - ((Object)wrapper).GetMappingColor( idx, out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out r, out g, out b, out a); - } - } - private static efl_gfx_mapping_color_get_delegate efl_gfx_mapping_color_get_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_quat_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate_quat_absolute"); + private static void rotate_quat_absolute(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, double cx, double cy, double cz) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate_quat_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).RotateQuatAbsolute(qx, qy, qz, qw, cx, cy, cz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_mapping_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, int r, int g, int b, int a); + + } + else + { + efl_gfx_mapping_rotate_quat_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), qx, qy, qz, qw, cx, cy, cz); + } + } + private static efl_gfx_mapping_rotate_quat_absolute_delegate efl_gfx_mapping_rotate_quat_absolute_static_delegate; - public delegate void efl_gfx_mapping_color_set_api_delegate(System.IntPtr obj, int idx, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_color_set"); - private static void mapping_color_set(System.IntPtr obj, System.IntPtr pd, int idx, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_mapping_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetMappingColor( idx, r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, r, g, b, a); - } - } - private static efl_gfx_mapping_color_set_delegate efl_gfx_mapping_color_set_static_delegate; + + private delegate void efl_gfx_mapping_zoom_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, double cx, double cy); + + public delegate void efl_gfx_mapping_zoom_absolute_api_delegate(System.IntPtr obj, double zoomx, double zoomy, double cx, double cy); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_mapping_has_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_zoom_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_zoom_absolute"); + private static void zoom_absolute(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, double cx, double cy) + { + Eina.Log.Debug("function efl_gfx_mapping_zoom_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).ZoomAbsolute(zoomx, zoomy, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_mapping_has_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_has_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_has"); - private static bool mapping_has(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_has was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).HasMapping(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_gfx_mapping_zoom_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoomx, zoomy, cx, cy); } - return _ret_var; - } else { - return efl_gfx_mapping_has_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_mapping_has_delegate efl_gfx_mapping_has_static_delegate; + private static efl_gfx_mapping_zoom_absolute_delegate efl_gfx_mapping_zoom_absolute_static_delegate; - private delegate void efl_gfx_mapping_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_mapping_lighting_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); + + public delegate void efl_gfx_mapping_lighting_3d_absolute_api_delegate(System.IntPtr obj, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); - public delegate void efl_gfx_mapping_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_reset"); - private static void mapping_reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).ResetMapping(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_lighting_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_lighting_3d_absolute"); + + private static void lighting_3d_absolute(System.IntPtr obj, System.IntPtr pd, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) + { + Eina.Log.Debug("function efl_gfx_mapping_lighting_3d_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).Lighting3dAbsolute(lx, ly, lz, lr, lg, lb, ar, ag, ab); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_lighting_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lx, ly, lz, lr, lg, lb, ar, ag, ab); } - } else { - efl_gfx_mapping_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_mapping_reset_delegate efl_gfx_mapping_reset_static_delegate; - - private delegate void efl_gfx_mapping_translate_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz); + private static efl_gfx_mapping_lighting_3d_absolute_delegate efl_gfx_mapping_lighting_3d_absolute_static_delegate; + + private delegate void efl_gfx_mapping_perspective_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double px, double py, double z0, double foc); - public delegate void efl_gfx_mapping_translate_api_delegate(System.IntPtr obj, double dx, double dy, double dz); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_translate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_translate"); - private static void translate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz) - { - Eina.Log.Debug("function efl_gfx_mapping_translate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).Translate( dx, dy, dz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_translate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz); - } - } - private static efl_gfx_mapping_translate_delegate efl_gfx_mapping_translate_static_delegate; - + + public delegate void efl_gfx_mapping_perspective_3d_absolute_api_delegate(System.IntPtr obj, double px, double py, double z0, double foc); - private delegate void efl_gfx_mapping_rotate_delegate(System.IntPtr obj, System.IntPtr pd, double degrees, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy); + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_perspective_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_perspective_3d_absolute"); + private static void perspective_3d_absolute(System.IntPtr obj, System.IntPtr pd, double px, double py, double z0, double foc) + { + Eina.Log.Debug("function efl_gfx_mapping_perspective_3d_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).Perspective3dAbsolute(px, py, z0, foc); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_mapping_rotate_api_delegate(System.IntPtr obj, double degrees, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate"); - private static void rotate(System.IntPtr obj, System.IntPtr pd, double degrees, Efl.Gfx.IEntity pivot, double cx, double cy) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).Rotate( degrees, pivot, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_gfx_mapping_perspective_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), px, py, z0, foc); } - } else { - efl_gfx_mapping_rotate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), degrees, pivot, cx, cy); } - } - private static efl_gfx_mapping_rotate_delegate efl_gfx_mapping_rotate_static_delegate; - - private delegate void efl_gfx_mapping_rotate_3d_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); + private static efl_gfx_mapping_perspective_3d_absolute_delegate efl_gfx_mapping_perspective_3d_absolute_static_delegate; + + private delegate short efl_gfx_stack_layer_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_mapping_rotate_3d_api_delegate(System.IntPtr obj, double dx, double dy, double dz, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_3d_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate_3d"); - private static void rotate_3d(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate_3d was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).Rotate3d( dx, dy, dz, pivot, cx, cy, cz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_rotate_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz, pivot, cx, cy, cz); - } - } - private static efl_gfx_mapping_rotate_3d_delegate efl_gfx_mapping_rotate_3d_static_delegate; + + public delegate short efl_gfx_stack_layer_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_layer_get"); - private delegate void efl_gfx_mapping_rotate_quat_delegate(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); + private static short layer_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_layer_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + short _ret_var = default(short); + try + { + _ret_var = ((Object)wrapper).GetLayer(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_mapping_rotate_quat_api_delegate(System.IntPtr obj, double qx, double qy, double qz, double qw, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_quat_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate_quat"); - private static void rotate_quat(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate_quat was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).RotateQuat( qx, qy, qz, qw, pivot, cx, cy, cz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_rotate_quat_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), qx, qy, qz, qw, pivot, cx, cy, cz); + } + else + { + return efl_gfx_stack_layer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_mapping_rotate_quat_delegate efl_gfx_mapping_rotate_quat_static_delegate; + private static efl_gfx_stack_layer_get_delegate efl_gfx_stack_layer_get_static_delegate; - private delegate void efl_gfx_mapping_zoom_delegate(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy); + + private delegate void efl_gfx_stack_layer_set_delegate(System.IntPtr obj, System.IntPtr pd, short l); + + public delegate void efl_gfx_stack_layer_set_api_delegate(System.IntPtr obj, short l); - public delegate void efl_gfx_mapping_zoom_api_delegate(System.IntPtr obj, double zoomx, double zoomy, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_zoom_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_zoom"); - private static void zoom(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, Efl.Gfx.IEntity pivot, double cx, double cy) - { - Eina.Log.Debug("function efl_gfx_mapping_zoom was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).Zoom( zoomx, zoomy, pivot, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_zoom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoomx, zoomy, pivot, cx, cy); - } - } - private static efl_gfx_mapping_zoom_delegate efl_gfx_mapping_zoom_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_layer_set"); + private static void layer_set(System.IntPtr obj, System.IntPtr pd, short l) + { + Eina.Log.Debug("function efl_gfx_stack_layer_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetLayer(l); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_mapping_lighting_3d_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); + + } + else + { + efl_gfx_stack_layer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l); + } + } + private static efl_gfx_stack_layer_set_delegate efl_gfx_stack_layer_set_static_delegate; - public delegate void efl_gfx_mapping_lighting_3d_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_lighting_3d_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_lighting_3d"); - private static void lighting_3d(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) - { - Eina.Log.Debug("function efl_gfx_mapping_lighting_3d was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).Lighting3d( pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_lighting_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); - } - } - private static efl_gfx_mapping_lighting_3d_delegate efl_gfx_mapping_lighting_3d_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IStack efl_gfx_stack_below_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IStack efl_gfx_stack_below_get_api_delegate(System.IntPtr obj); - private delegate void efl_gfx_mapping_perspective_3d_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_below_get"); + private static Efl.Gfx.IStack below_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_below_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); + try + { + _ret_var = ((Object)wrapper).GetBelow(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_mapping_perspective_3d_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_perspective_3d_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_perspective_3d"); - private static void perspective_3d(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc) - { - Eina.Log.Debug("function efl_gfx_mapping_perspective_3d was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).Perspective3d( pivot, px, py, z0, foc); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_perspective_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pivot, px, py, z0, foc); - } - } - private static efl_gfx_mapping_perspective_3d_delegate efl_gfx_mapping_perspective_3d_static_delegate; + return _ret_var; + } + else + { + return efl_gfx_stack_below_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_mapping_rotate_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double degrees, double cx, double cy); + private static efl_gfx_stack_below_get_delegate efl_gfx_stack_below_get_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IStack efl_gfx_stack_above_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_mapping_rotate_absolute_api_delegate(System.IntPtr obj, double degrees, double cx, double cy); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate_absolute"); - private static void rotate_absolute(System.IntPtr obj, System.IntPtr pd, double degrees, double cx, double cy) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).RotateAbsolute( degrees, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_rotate_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), degrees, cx, cy); - } - } - private static efl_gfx_mapping_rotate_absolute_delegate efl_gfx_mapping_rotate_absolute_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IStack efl_gfx_stack_above_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_above_get"); - private delegate void efl_gfx_mapping_rotate_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, double cx, double cy, double cz); + private static Efl.Gfx.IStack above_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_above_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); + try + { + _ret_var = ((Object)wrapper).GetAbove(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_mapping_rotate_3d_absolute_api_delegate(System.IntPtr obj, double dx, double dy, double dz, double cx, double cy, double cz); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate_3d_absolute"); - private static void rotate_3d_absolute(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, double cx, double cy, double cz) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate_3d_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).Rotate3dAbsolute( dx, dy, dz, cx, cy, cz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_mapping_rotate_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz, cx, cy, cz); + else + { + return efl_gfx_stack_above_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_mapping_rotate_3d_absolute_delegate efl_gfx_mapping_rotate_3d_absolute_static_delegate; - - private delegate void efl_gfx_mapping_rotate_quat_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, double cx, double cy, double cz); + private static efl_gfx_stack_above_get_delegate efl_gfx_stack_above_get_static_delegate; + + private delegate void efl_gfx_stack_below_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack below); - public delegate void efl_gfx_mapping_rotate_quat_absolute_api_delegate(System.IntPtr obj, double qx, double qy, double qz, double qw, double cx, double cy, double cz); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_quat_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate_quat_absolute"); - private static void rotate_quat_absolute(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, double cx, double cy, double cz) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate_quat_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).RotateQuatAbsolute( qx, qy, qz, qw, cx, cy, cz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_rotate_quat_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), qx, qy, qz, qw, cx, cy, cz); - } - } - private static efl_gfx_mapping_rotate_quat_absolute_delegate efl_gfx_mapping_rotate_quat_absolute_static_delegate; - + + public delegate void efl_gfx_stack_below_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack below); - private delegate void efl_gfx_mapping_zoom_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, double cx, double cy); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_below"); + private static void stack_below(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack below) + { + Eina.Log.Debug("function efl_gfx_stack_below was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).StackBelow(below); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_mapping_zoom_absolute_api_delegate(System.IntPtr obj, double zoomx, double zoomy, double cx, double cy); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_zoom_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_zoom_absolute"); - private static void zoom_absolute(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, double cx, double cy) - { - Eina.Log.Debug("function efl_gfx_mapping_zoom_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).ZoomAbsolute( zoomx, zoomy, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_gfx_stack_below_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), below); } - } else { - efl_gfx_mapping_zoom_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoomx, zoomy, cx, cy); } - } - private static efl_gfx_mapping_zoom_absolute_delegate efl_gfx_mapping_zoom_absolute_static_delegate; + private static efl_gfx_stack_below_delegate efl_gfx_stack_below_static_delegate; + + + private delegate void efl_gfx_stack_raise_to_top_delegate(System.IntPtr obj, System.IntPtr pd); - private delegate void efl_gfx_mapping_lighting_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); + + public delegate void efl_gfx_stack_raise_to_top_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_raise_to_top_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_raise_to_top"); - public delegate void efl_gfx_mapping_lighting_3d_absolute_api_delegate(System.IntPtr obj, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_lighting_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_lighting_3d_absolute"); - private static void lighting_3d_absolute(System.IntPtr obj, System.IntPtr pd, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) - { - Eina.Log.Debug("function efl_gfx_mapping_lighting_3d_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).Lighting3dAbsolute( lx, ly, lz, lr, lg, lb, ar, ag, ab); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_lighting_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lx, ly, lz, lr, lg, lb, ar, ag, ab); + private static void raise_to_top(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_raise_to_top was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).RaiseToTop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_stack_raise_to_top_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_mapping_lighting_3d_absolute_delegate efl_gfx_mapping_lighting_3d_absolute_static_delegate; + private static efl_gfx_stack_raise_to_top_delegate efl_gfx_stack_raise_to_top_static_delegate; + + + private delegate void efl_gfx_stack_above_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack above); + + + public delegate void efl_gfx_stack_above_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack above); - private delegate void efl_gfx_mapping_perspective_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double px, double py, double z0, double foc); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_above"); + private static void stack_above(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack above) + { + Eina.Log.Debug("function efl_gfx_stack_above was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).StackAbove(above); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_mapping_perspective_3d_absolute_api_delegate(System.IntPtr obj, double px, double py, double z0, double foc); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_perspective_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_perspective_3d_absolute"); - private static void perspective_3d_absolute(System.IntPtr obj, System.IntPtr pd, double px, double py, double z0, double foc) - { - Eina.Log.Debug("function efl_gfx_mapping_perspective_3d_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).Perspective3dAbsolute( px, py, z0, foc); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_gfx_stack_above_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), above); } - } else { - efl_gfx_mapping_perspective_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), px, py, z0, foc); } - } - private static efl_gfx_mapping_perspective_3d_absolute_delegate efl_gfx_mapping_perspective_3d_absolute_static_delegate; + private static efl_gfx_stack_above_delegate efl_gfx_stack_above_static_delegate; - private delegate short efl_gfx_stack_layer_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_stack_lower_to_bottom_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_gfx_stack_lower_to_bottom_api_delegate(System.IntPtr obj); - public delegate short efl_gfx_stack_layer_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_layer_get"); - private static short layer_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_layer_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - short _ret_var = default(short); - try { - _ret_var = ((Object)wrapper).GetLayer(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_lower_to_bottom_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_lower_to_bottom"); + + private static void lower_to_bottom(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_lower_to_bottom was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).LowerToBottom(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_gfx_stack_layer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_stack_layer_get_delegate efl_gfx_stack_layer_get_static_delegate; + private static efl_gfx_stack_lower_to_bottom_delegate efl_gfx_stack_lower_to_bottom_static_delegate; - private delegate void efl_gfx_stack_layer_set_delegate(System.IntPtr obj, System.IntPtr pd, short l); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_seat_event_filter_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_seat_event_filter_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); - public delegate void efl_gfx_stack_layer_set_api_delegate(System.IntPtr obj, short l); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_layer_set"); - private static void layer_set(System.IntPtr obj, System.IntPtr pd, short l) - { - Eina.Log.Debug("function efl_gfx_stack_layer_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetLayer( l); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_layer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l); - } - } - private static efl_gfx_stack_layer_set_delegate efl_gfx_stack_layer_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_input_seat_event_filter_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_seat_event_filter_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IStack efl_gfx_stack_below_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool seat_event_filter_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_input_seat_event_filter_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetSeatEventFilter(seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IStack efl_gfx_stack_below_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_below_get"); - private static Efl.Gfx.IStack below_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_below_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); - try { - _ret_var = ((Object)wrapper).GetBelow(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_stack_below_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_input_seat_event_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + } } - } - private static efl_gfx_stack_below_get_delegate efl_gfx_stack_below_get_static_delegate; + private static efl_input_seat_event_filter_get_delegate efl_input_seat_event_filter_get_static_delegate; + + + private delegate void efl_input_seat_event_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat, [MarshalAs(UnmanagedType.U1)] bool enable); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IStack efl_gfx_stack_above_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_input_seat_event_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat, [MarshalAs(UnmanagedType.U1)] bool enable); + public static Efl.Eo.FunctionWrapper efl_input_seat_event_filter_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_seat_event_filter_set"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IStack efl_gfx_stack_above_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_above_get"); - private static Efl.Gfx.IStack above_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_above_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); - try { - _ret_var = ((Object)wrapper).GetAbove(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void seat_event_filter_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat, bool enable) + { + Eina.Log.Debug("function efl_input_seat_event_filter_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetSeatEventFilter(seat, enable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_seat_event_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat, enable); } - return _ret_var; - } else { - return efl_gfx_stack_above_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_stack_above_get_delegate efl_gfx_stack_above_get_static_delegate; + private static efl_input_seat_event_filter_set_delegate efl_input_seat_event_filter_set_static_delegate; - private delegate void efl_gfx_stack_below_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack below); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_get_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_stack_below_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack below); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_below"); - private static void stack_below(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack below) - { - Eina.Log.Debug("function efl_gfx_stack_below was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).StackBelow( below); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_below_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), below); - } - } - private static efl_gfx_stack_below_delegate efl_gfx_stack_below_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_get"); - private delegate void efl_gfx_stack_raise_to_top_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool mirrored_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetMirrored(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_stack_raise_to_top_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_raise_to_top_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_raise_to_top"); - private static void raise_to_top(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_raise_to_top was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).RaiseToTop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_stack_raise_to_top_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_mirrored_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_stack_raise_to_top_delegate efl_gfx_stack_raise_to_top_static_delegate; - - private delegate void efl_gfx_stack_above_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack above); + private static efl_ui_mirrored_get_delegate efl_ui_mirrored_get_static_delegate; + + private delegate void efl_ui_mirrored_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool rtl); - public delegate void efl_gfx_stack_above_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack above); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_above"); - private static void stack_above(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack above) - { - Eina.Log.Debug("function efl_gfx_stack_above was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).StackAbove( above); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_above_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), above); - } - } - private static efl_gfx_stack_above_delegate efl_gfx_stack_above_static_delegate; - + + public delegate void efl_ui_mirrored_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool rtl); - private delegate void efl_gfx_stack_lower_to_bottom_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_set"); + private static void mirrored_set(System.IntPtr obj, System.IntPtr pd, bool rtl) + { + Eina.Log.Debug("function efl_ui_mirrored_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetMirrored(rtl); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_stack_lower_to_bottom_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_lower_to_bottom_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_lower_to_bottom"); - private static void lower_to_bottom(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_lower_to_bottom was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Object)wrapper).LowerToBottom(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_mirrored_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rtl); + } } - } - private static efl_gfx_stack_lower_to_bottom_delegate efl_gfx_stack_lower_to_bottom_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_seat_event_filter_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + private static efl_ui_mirrored_set_delegate efl_ui_mirrored_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_seat_event_filter_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_input_seat_event_filter_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_seat_event_filter_get"); - private static bool seat_event_filter_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_input_seat_event_filter_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetSeatEventFilter( seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_input_seat_event_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); - } - } - private static efl_input_seat_event_filter_get_delegate efl_input_seat_event_filter_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_automatic_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_get"); - private delegate void efl_input_seat_event_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat, [MarshalAs(UnmanagedType.U1)] bool enable); + private static bool mirrored_automatic_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetMirroredAutomatic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_input_seat_event_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper efl_input_seat_event_filter_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_seat_event_filter_set"); - private static void seat_event_filter_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat, bool enable) - { - Eina.Log.Debug("function efl_input_seat_event_filter_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetSeatEventFilter( seat, enable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_input_seat_event_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat, enable); + else + { + return efl_ui_mirrored_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_seat_event_filter_set_delegate efl_input_seat_event_filter_set_static_delegate; + private static efl_ui_mirrored_automatic_get_delegate efl_ui_mirrored_automatic_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_mirrored_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_mirrored_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + + + public delegate void efl_ui_mirrored_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_set"); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_mirrored_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_get"); - private static bool mirrored_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_mirrored_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetMirrored(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void mirrored_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetMirroredAutomatic(automatic); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_mirrored_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); } - return _ret_var; - } else { - return efl_ui_mirrored_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_mirrored_get_delegate efl_ui_mirrored_get_static_delegate; - - private delegate void efl_ui_mirrored_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool rtl); + private static efl_ui_mirrored_automatic_set_delegate efl_ui_mirrored_automatic_set_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_language_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_mirrored_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool rtl); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_set"); - private static void mirrored_set(System.IntPtr obj, System.IntPtr pd, bool rtl) - { - Eina.Log.Debug("function efl_ui_mirrored_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetMirrored( rtl); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_mirrored_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rtl); - } - } - private static efl_ui_mirrored_set_delegate efl_ui_mirrored_set_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_language_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_language_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_mirrored_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.String language_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_language_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Object)wrapper).GetLanguage(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_mirrored_automatic_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_automatic_get"); - private static bool mirrored_automatic_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_mirrored_automatic_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetMirroredAutomatic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_mirrored_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_mirrored_automatic_get_delegate efl_ui_mirrored_automatic_get_static_delegate; - - - private delegate void efl_ui_mirrored_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + private static efl_ui_language_get_delegate efl_ui_language_get_static_delegate; - public delegate void efl_ui_mirrored_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_automatic_set"); - private static void mirrored_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) - { - Eina.Log.Debug("function efl_ui_mirrored_automatic_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetMirroredAutomatic( automatic); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_mirrored_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); - } - } - private static efl_ui_mirrored_automatic_set_delegate efl_ui_mirrored_automatic_set_static_delegate; + + private delegate void efl_ui_language_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + public delegate void efl_ui_language_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_language_get_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_ui_language_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_set"); + private static void language_set(System.IntPtr obj, System.IntPtr pd, System.String language) + { + Eina.Log.Debug("function efl_ui_language_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetLanguage(language); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_language_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_language_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_language_get"); - private static System.String language_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_language_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Object)wrapper).GetLanguage(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_ui_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), language); } - return _ret_var; - } else { - return efl_ui_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_language_get_delegate efl_ui_language_get_static_delegate; + private static efl_ui_language_set_delegate efl_ui_language_set_static_delegate; - private delegate void efl_ui_language_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_language_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); - public static Efl.Eo.FunctionWrapper efl_ui_language_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_language_set"); - private static void language_set(System.IntPtr obj, System.IntPtr pd, System.String language) - { - Eina.Log.Debug("function efl_ui_language_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetLanguage( language); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), language); - } - } - private static efl_ui_language_set_delegate efl_ui_language_set_static_delegate; } -} } -namespace Efl { namespace Canvas { + +namespace Efl { + +namespace Canvas { + /// Information of animation events [StructLayout(LayoutKind.Sequential)] public struct ObjectAnimationEvent @@ -5869,8 +7933,12 @@ public struct ObjectAnimationEvent } -} } -namespace Efl { +} + +} + +namespace Efl { + /// EFL event animator tick data structure [StructLayout(LayoutKind.Sequential)] public struct EventAnimatorTick @@ -5879,7 +7947,7 @@ public struct EventAnimatorTick public Eina.Rect Update_area; ///Constructor for EventAnimatorTick. public EventAnimatorTick( - Eina.Rect Update_area=default(Eina.Rect) ) + Eina.Rect Update_area = default(Eina.Rect) ) { this.Update_area = Update_area; } @@ -5916,4 +7984,5 @@ public struct EventAnimatorTick } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_pointer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_pointer.eo.cs index 9518deb..1e4b516 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_pointer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_pointer.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Efl Canvas Pointer interface /// (Since EFL 1.22) -[IPointerNativeInherit] +[Efl.Canvas.IPointerConcrete.NativeMethods] public interface IPointer : Efl.Eo.IWrapper, IDisposable { @@ -20,7 +24,7 @@ public interface IPointer : /// (Since EFL 1.22) /// The seat to consider, if null then the default seat will be used. /// true if the mouse pointer is inside the canvas, false otherwise -bool GetPointerInside( Efl.Input.Device seat); +bool GetPointerInside(Efl.Input.Device seat); } /// Efl Canvas Pointer interface /// (Since EFL 1.22) @@ -30,68 +34,103 @@ IPointer { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IPointerConcrete)) - return Efl.Canvas.IPointerNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IPointerConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_canvas_pointer_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IPointerConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IPointerConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Returns whether the mouse pointer is logically inside the canvas. /// When this function is called it will return a value of either false or true, depending on whether a pointer,in or pointer,out event has been called previously. /// @@ -101,8 +140,8 @@ IPointer /// (Since EFL 1.22) /// The seat to consider, if null then the default seat will be used. /// true if the mouse pointer is inside the canvas, false otherwise - public bool GetPointerInside( Efl.Input.Device seat) { - var _ret_var = Efl.Canvas.IPointerNativeInherit.efl_canvas_pointer_inside_get_ptr.Value.Delegate(this.NativeHandle, seat); + public bool GetPointerInside(Efl.Input.Device seat) { + var _ret_var = Efl.Canvas.IPointerConcrete.NativeMethods.efl_canvas_pointer_inside_get_ptr.Value.Delegate(this.NativeHandle,seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -110,51 +149,80 @@ IPointer { return Efl.Canvas.IPointerConcrete.efl_canvas_pointer_interface_get(); } -} -public class IPointerNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_canvas_pointer_inside_get_static_delegate == null) - efl_canvas_pointer_inside_get_static_delegate = new efl_canvas_pointer_inside_get_delegate(pointer_inside_get); - if (methods.FirstOrDefault(m => m.Name == "GetPointerInside") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_pointer_inside_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_pointer_inside_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.IPointerConcrete.efl_canvas_pointer_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Canvas.IPointerConcrete.efl_canvas_pointer_interface_get(); - } + 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_canvas_pointer_inside_get_static_delegate == null) + { + efl_canvas_pointer_inside_get_static_delegate = new efl_canvas_pointer_inside_get_delegate(pointer_inside_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPointerInside") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_pointer_inside_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_pointer_inside_get_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.Canvas.IPointerConcrete.efl_canvas_pointer_interface_get(); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_pointer_inside_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + #pragma warning disable CA1707, SA1300, SA1600 + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_pointer_inside_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_pointer_inside_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + public static Efl.Eo.FunctionWrapper efl_canvas_pointer_inside_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_pointer_inside_get"); + + private static bool pointer_inside_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_canvas_pointer_inside_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPointer)wrapper).GetPointerInside(seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_pointer_inside_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_canvas_pointer_inside_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_pointer_inside_get"); - private static bool pointer_inside_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_canvas_pointer_inside_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPointer)wrapper).GetPointerInside( seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_canvas_pointer_inside_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + + } + else + { + return efl_canvas_pointer_inside_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + } } - } - private static efl_canvas_pointer_inside_get_delegate efl_canvas_pointer_inside_get_static_delegate; + + private static efl_canvas_pointer_inside_get_delegate efl_canvas_pointer_inside_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_polygon.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_polygon.eo.cs index feb71d1..bac2787 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_polygon.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_polygon.eo.cs @@ -3,153 +3,221 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Low-level polygon object -[PolygonNativeInherit] +[Efl.Canvas.Polygon.NativeMethods] public class Polygon : Efl.Canvas.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Polygon)) - return Efl.Canvas.PolygonNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Polygon)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_polygon_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Polygon(Efl.Object parent= null - ) : - base(efl_canvas_polygon_class_get(), typeof(Polygon), parent) + ) : base(efl_canvas_polygon_class_get(), typeof(Polygon), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Polygon(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Polygon(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Polygon(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Adds the given point to the given evas polygon object. /// A point coordinate. - /// - virtual public void AddPoint( Eina.Position2D pos) { + virtual public void AddPoint(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Canvas.PolygonNativeInherit.efl_canvas_polygon_point_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Canvas.Polygon.NativeMethods.efl_canvas_polygon_point_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// Removes all of the points from the given evas polygon object. - /// virtual public void ClearPoints() { - Efl.Canvas.PolygonNativeInherit.efl_canvas_polygon_points_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Canvas.Polygon.NativeMethods.efl_canvas_polygon_points_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Polygon.efl_canvas_polygon_class_get(); } -} -public class PolygonNativeInherit : Efl.Canvas.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_canvas_polygon_point_add_static_delegate == null) - efl_canvas_polygon_point_add_static_delegate = new efl_canvas_polygon_point_add_delegate(point_add); - if (methods.FirstOrDefault(m => m.Name == "AddPoint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_polygon_point_add"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_polygon_point_add_static_delegate)}); - if (efl_canvas_polygon_points_clear_static_delegate == null) - efl_canvas_polygon_points_clear_static_delegate = new efl_canvas_polygon_points_clear_delegate(points_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPoints") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_polygon_points_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_polygon_points_clear_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Polygon.efl_canvas_polygon_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Object.NativeMethods { - return Efl.Canvas.Polygon.efl_canvas_polygon_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_canvas_polygon_point_add_static_delegate == null) + { + efl_canvas_polygon_point_add_static_delegate = new efl_canvas_polygon_point_add_delegate(point_add); + } - private delegate void efl_canvas_polygon_point_add_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (methods.FirstOrDefault(m => m.Name == "AddPoint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_polygon_point_add"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_polygon_point_add_static_delegate) }); + } + if (efl_canvas_polygon_points_clear_static_delegate == null) + { + efl_canvas_polygon_points_clear_static_delegate = new efl_canvas_polygon_points_clear_delegate(points_clear); + } - public delegate void efl_canvas_polygon_point_add_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_canvas_polygon_point_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_polygon_point_add"); - private static void point_add(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_canvas_polygon_point_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((Polygon)wrapper).AddPoint( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ClearPoints") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_polygon_points_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_polygon_points_clear_static_delegate) }); } - } else { - efl_canvas_polygon_point_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Polygon.efl_canvas_polygon_class_get(); } - } - private static efl_canvas_polygon_point_add_delegate efl_canvas_polygon_point_add_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_canvas_polygon_points_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_canvas_polygon_point_add_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_canvas_polygon_point_add_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); + + public static Efl.Eo.FunctionWrapper efl_canvas_polygon_point_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_polygon_point_add"); + + private static void point_add(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_canvas_polygon_point_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((Polygon)wrapper).AddPoint(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_canvas_polygon_points_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_polygon_points_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_polygon_points_clear"); - private static void points_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_polygon_points_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Polygon)wrapper).ClearPoints(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_canvas_polygon_points_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_canvas_polygon_point_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + } } - } - private static efl_canvas_polygon_points_clear_delegate efl_canvas_polygon_points_clear_static_delegate; + + private static efl_canvas_polygon_point_add_delegate efl_canvas_polygon_point_add_static_delegate; + + + private delegate void efl_canvas_polygon_points_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_canvas_polygon_points_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_polygon_points_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_polygon_points_clear"); + + private static void points_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_polygon_points_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Polygon)wrapper).ClearPoints(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_polygon_points_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_polygon_points_clear_delegate efl_canvas_polygon_points_clear_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_proxy.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_proxy.eo.cs index a8858d6..55a624d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_proxy.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_proxy.eo.cs @@ -3,62 +3,86 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Low-level proxy image object. /// A proxy is a special kind of image containing the pixels from a source object attached to it. It can be used to apply some sort of image transformation to any object (eg. filters, map or zoom). -[ProxyNativeInherit] +[Efl.Canvas.Proxy.NativeMethods] public class Proxy : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Proxy)) - return Efl.Canvas.ProxyNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Proxy)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_proxy_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Proxy(Efl.Object parent= null - ) : - base(efl_canvas_proxy_class_get(), typeof(Proxy), parent) + ) : base(efl_canvas_proxy_class_get(), typeof(Proxy), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Proxy(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Proxy(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Proxy(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// The source object for this proxy. /// The proxy object will mirror the rendering contents of a given source object in its drawing region, without affecting that source in any way. The source must be another valid . Other effects may be applied to the proxy, such as a map (see ) to create a reflection of the original object (for example). /// @@ -69,7 +93,7 @@ public class Proxy : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper /// Warning: You cannot set a proxy as another proxy's source. /// Source object to use for the proxy. virtual public Efl.Canvas.Object GetSource() { - var _ret_var = Efl.Canvas.ProxyNativeInherit.efl_canvas_proxy_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Proxy.NativeMethods.efl_canvas_proxy_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -83,8 +107,8 @@ public class Proxy : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper /// Warning: You cannot set a proxy as another proxy's source. /// Source object to use for the proxy. /// Returns true in case of success. - virtual public bool SetSource( Efl.Canvas.Object src) { - var _ret_var = Efl.Canvas.ProxyNativeInherit.efl_canvas_proxy_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), src); + virtual public bool SetSource(Efl.Canvas.Object src) { + var _ret_var = Efl.Canvas.Proxy.NativeMethods.efl_canvas_proxy_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),src); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -94,7 +118,7 @@ public class Proxy : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper /// true means both objects will share the same clip. /// Whether obj is clipped by the source clipper (true) or not (false). virtual public bool GetSourceClip() { - var _ret_var = Efl.Canvas.ProxyNativeInherit.efl_canvas_proxy_source_clip_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Proxy.NativeMethods.efl_canvas_proxy_source_clip_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -103,9 +127,8 @@ public class Proxy : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper /// /// true means both objects will share the same clip. /// Whether obj is clipped by the source clipper (true) or not (false). - /// - virtual public void SetSourceClip( bool source_clip) { - Efl.Canvas.ProxyNativeInherit.efl_canvas_proxy_source_clip_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), source_clip); + virtual public void SetSourceClip(bool source_clip) { + Efl.Canvas.Proxy.NativeMethods.efl_canvas_proxy_source_clip_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),source_clip); Eina.Error.RaiseIfUnhandledException(); } /// Defines whether the events on this object are repeated to the source. @@ -114,7 +137,7 @@ public class Proxy : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper /// If source is false, events occurring on obj will be processed only on it. /// Whether this object should pass events (true) or not (false) to its source. virtual public bool GetSourceEvents() { - var _ret_var = Efl.Canvas.ProxyNativeInherit.efl_canvas_proxy_source_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Proxy.NativeMethods.efl_canvas_proxy_source_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -123,9 +146,8 @@ public class Proxy : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper /// /// If source is false, events occurring on obj will be processed only on it. /// Whether this object should pass events (true) or not (false) to its source. - /// - virtual public void SetSourceEvents( bool repeat) { - Efl.Canvas.ProxyNativeInherit.efl_canvas_proxy_source_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), repeat); + virtual public void SetSourceEvents(bool repeat) { + Efl.Canvas.Proxy.NativeMethods.efl_canvas_proxy_source_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),repeat); Eina.Error.RaiseIfUnhandledException(); } /// The source object for this proxy. @@ -139,7 +161,7 @@ public class Proxy : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper /// Source object to use for the proxy. public Efl.Canvas.Object Source { get { return GetSource(); } - set { SetSource( value); } + set { SetSource(value); } } /// Clip this proxy object with the source object's clipper. /// Use this if you want to overlay an existing object with its proxy, and apply some sort of transformation on it. @@ -148,7 +170,7 @@ public class Proxy : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper /// Whether obj is clipped by the source clipper (true) or not (false). public bool SourceClip { get { return GetSourceClip(); } - set { SetSourceClip( value); } + set { SetSourceClip(value); } } /// Defines whether the events on this object are repeated to the source. /// If source is true, it will make events on obj to also be repeated for the source object (see ). Even the obj and source geometries are different, the event position will be transformed to the source object's space. @@ -157,201 +179,315 @@ public class Proxy : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper /// Whether this object should pass events (true) or not (false) to its source. public bool SourceEvents { get { return GetSourceEvents(); } - set { SetSourceEvents( value); } + set { SetSourceEvents(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Proxy.efl_canvas_proxy_class_get(); } -} -public class ProxyNativeInherit : Efl.Canvas.ImageInternalNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.ImageInternal.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_canvas_proxy_source_get_static_delegate == null) - efl_canvas_proxy_source_get_static_delegate = new efl_canvas_proxy_source_get_delegate(source_get); - if (methods.FirstOrDefault(m => m.Name == "GetSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_proxy_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_get_static_delegate)}); - if (efl_canvas_proxy_source_set_static_delegate == null) - efl_canvas_proxy_source_set_static_delegate = new efl_canvas_proxy_source_set_delegate(source_set); - if (methods.FirstOrDefault(m => m.Name == "SetSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_proxy_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_set_static_delegate)}); - if (efl_canvas_proxy_source_clip_get_static_delegate == null) - efl_canvas_proxy_source_clip_get_static_delegate = new efl_canvas_proxy_source_clip_get_delegate(source_clip_get); - if (methods.FirstOrDefault(m => m.Name == "GetSourceClip") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_proxy_source_clip_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_clip_get_static_delegate)}); - if (efl_canvas_proxy_source_clip_set_static_delegate == null) - efl_canvas_proxy_source_clip_set_static_delegate = new efl_canvas_proxy_source_clip_set_delegate(source_clip_set); - if (methods.FirstOrDefault(m => m.Name == "SetSourceClip") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_proxy_source_clip_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_clip_set_static_delegate)}); - if (efl_canvas_proxy_source_events_get_static_delegate == null) - efl_canvas_proxy_source_events_get_static_delegate = new efl_canvas_proxy_source_events_get_delegate(source_events_get); - if (methods.FirstOrDefault(m => m.Name == "GetSourceEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_proxy_source_events_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_events_get_static_delegate)}); - if (efl_canvas_proxy_source_events_set_static_delegate == null) - efl_canvas_proxy_source_events_set_static_delegate = new efl_canvas_proxy_source_events_set_delegate(source_events_set); - if (methods.FirstOrDefault(m => m.Name == "SetSourceEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_proxy_source_events_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_events_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Proxy.efl_canvas_proxy_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Canvas.Proxy.efl_canvas_proxy_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_canvas_proxy_source_get_static_delegate == null) + { + efl_canvas_proxy_source_get_static_delegate = new efl_canvas_proxy_source_get_delegate(source_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_canvas_proxy_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_proxy_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_get_static_delegate) }); + } + if (efl_canvas_proxy_source_set_static_delegate == null) + { + efl_canvas_proxy_source_set_static_delegate = new efl_canvas_proxy_source_set_delegate(source_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_canvas_proxy_source_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_proxy_source_get"); - private static Efl.Canvas.Object source_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_proxy_source_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Proxy)wrapper).GetSource(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_proxy_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_set_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_proxy_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_canvas_proxy_source_clip_get_static_delegate == null) + { + efl_canvas_proxy_source_clip_get_static_delegate = new efl_canvas_proxy_source_clip_get_delegate(source_clip_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSourceClip") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_proxy_source_clip_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_clip_get_static_delegate) }); + } + + if (efl_canvas_proxy_source_clip_set_static_delegate == null) + { + efl_canvas_proxy_source_clip_set_static_delegate = new efl_canvas_proxy_source_clip_set_delegate(source_clip_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSourceClip") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_proxy_source_clip_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_clip_set_static_delegate) }); + } + + if (efl_canvas_proxy_source_events_get_static_delegate == null) + { + efl_canvas_proxy_source_events_get_static_delegate = new efl_canvas_proxy_source_events_get_delegate(source_events_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSourceEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_proxy_source_events_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_events_get_static_delegate) }); + } + + if (efl_canvas_proxy_source_events_set_static_delegate == null) + { + efl_canvas_proxy_source_events_set_static_delegate = new efl_canvas_proxy_source_events_set_delegate(source_events_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSourceEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_proxy_source_events_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_proxy_source_events_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Proxy.efl_canvas_proxy_class_get(); } - } - private static efl_canvas_proxy_source_get_delegate efl_canvas_proxy_source_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_proxy_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object src); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_canvas_proxy_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_canvas_proxy_source_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_proxy_source_get"); + + private static Efl.Canvas.Object source_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_proxy_source_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Proxy)wrapper).GetSource(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_proxy_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object src); - public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_proxy_source_set"); - private static bool source_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object src) - { - Eina.Log.Debug("function efl_canvas_proxy_source_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Proxy)wrapper).SetSource( src); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_canvas_proxy_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), src); + else + { + return efl_canvas_proxy_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_proxy_source_set_delegate efl_canvas_proxy_source_set_static_delegate; + private static efl_canvas_proxy_source_get_delegate efl_canvas_proxy_source_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_proxy_source_clip_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_proxy_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object src); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_proxy_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object src); + + public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_proxy_source_set"); + + private static bool source_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object src) + { + Eina.Log.Debug("function efl_canvas_proxy_source_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Proxy)wrapper).SetSource(src); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_proxy_source_clip_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_clip_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_proxy_source_clip_get"); - private static bool source_clip_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_proxy_source_clip_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Proxy)wrapper).GetSourceClip(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_canvas_proxy_source_clip_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_proxy_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), src); + } } - } - private static efl_canvas_proxy_source_clip_get_delegate efl_canvas_proxy_source_clip_get_static_delegate; + private static efl_canvas_proxy_source_set_delegate efl_canvas_proxy_source_set_static_delegate; - private delegate void efl_canvas_proxy_source_clip_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool source_clip); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_proxy_source_clip_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_proxy_source_clip_get_api_delegate(System.IntPtr obj); - public delegate void efl_canvas_proxy_source_clip_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool source_clip); - public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_clip_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_proxy_source_clip_set"); - private static void source_clip_set(System.IntPtr obj, System.IntPtr pd, bool source_clip) - { - Eina.Log.Debug("function efl_canvas_proxy_source_clip_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Proxy)wrapper).SetSourceClip( source_clip); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_clip_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_proxy_source_clip_get"); + + private static bool source_clip_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_proxy_source_clip_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Proxy)wrapper).GetSourceClip(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_proxy_source_clip_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_canvas_proxy_source_clip_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), source_clip); } - } - private static efl_canvas_proxy_source_clip_set_delegate efl_canvas_proxy_source_clip_set_static_delegate; + private static efl_canvas_proxy_source_clip_get_delegate efl_canvas_proxy_source_clip_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_proxy_source_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_canvas_proxy_source_clip_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool source_clip); + + public delegate void efl_canvas_proxy_source_clip_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool source_clip); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_proxy_source_events_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_events_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_proxy_source_events_get"); - private static bool source_events_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_proxy_source_events_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Proxy)wrapper).GetSourceEvents(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_clip_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_proxy_source_clip_set"); + + private static void source_clip_set(System.IntPtr obj, System.IntPtr pd, bool source_clip) + { + Eina.Log.Debug("function efl_canvas_proxy_source_clip_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Proxy)wrapper).SetSourceClip(source_clip); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_proxy_source_clip_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), source_clip); } + } + + private static efl_canvas_proxy_source_clip_set_delegate efl_canvas_proxy_source_clip_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_proxy_source_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_proxy_source_events_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_events_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_proxy_source_events_get"); + + private static bool source_events_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_proxy_source_events_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Proxy)wrapper).GetSourceEvents(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_canvas_proxy_source_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_canvas_proxy_source_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_proxy_source_events_get_delegate efl_canvas_proxy_source_events_get_static_delegate; + private static efl_canvas_proxy_source_events_get_delegate efl_canvas_proxy_source_events_get_static_delegate; - private delegate void efl_canvas_proxy_source_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat); + + private delegate void efl_canvas_proxy_source_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat); + + public delegate void efl_canvas_proxy_source_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat); - public delegate void efl_canvas_proxy_source_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat); - public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_events_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_proxy_source_events_set"); - private static void source_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat) - { - Eina.Log.Debug("function efl_canvas_proxy_source_events_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Proxy)wrapper).SetSourceEvents( repeat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_canvas_proxy_source_events_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_proxy_source_events_set"); + + private static void source_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat) + { + Eina.Log.Debug("function efl_canvas_proxy_source_events_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Proxy)wrapper).SetSourceEvents(repeat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_proxy_source_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat); } - } else { - efl_canvas_proxy_source_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat); } - } - private static efl_canvas_proxy_source_events_set_delegate efl_canvas_proxy_source_events_set_static_delegate; + + private static efl_canvas_proxy_source_events_set_delegate efl_canvas_proxy_source_events_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_rectangle.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_rectangle.eo.cs index b52930c..36263eb 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_rectangle.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_rectangle.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Evas canvas rectangle class -[RectangleNativeInherit] +[Efl.Canvas.Rectangle.NativeMethods] public class Rectangle : Efl.Canvas.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Rectangle)) - return Efl.Canvas.RectangleNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Rectangle)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_rectangle_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Rectangle(Efl.Object parent= null - ) : - base(efl_canvas_rectangle_class_get(), typeof(Rectangle), parent) + ) : base(efl_canvas_rectangle_class_get(), typeof(Rectangle), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Rectangle(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Rectangle(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Rectangle(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Canvas.Rectangle.efl_canvas_rectangle_class_get(); } -} -public class RectangleNativeInherit : Efl.Canvas.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Rectangle.efl_canvas_rectangle_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Object.NativeMethods { - return Efl.Canvas.Rectangle.efl_canvas_rectangle_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Rectangle.efl_canvas_rectangle_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_scene.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_scene.eo.cs index b09c332..c33ce54 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_scene.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_scene.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Interface containing basic canvas-related methods and events. /// (Since EFL 1.22) -[ISceneNativeInherit] +[Efl.Canvas.ISceneConcrete.NativeMethods] public interface IScene : Efl.Eo.IWrapper, IDisposable { @@ -18,7 +22,7 @@ public interface IScene : /// (Since EFL 1.22) /// The maximum image size (in pixels). /// true on success, false otherwise -bool GetImageMaxSize( out Eina.Size2D max); +bool GetImageMaxSize(out Eina.Size2D max); /// Get if the canvas is currently calculating group objects. /// (Since EFL 1.22) /// true if currently calculating group objects. @@ -27,12 +31,12 @@ bool GetGroupObjectsCalculating(); /// (Since EFL 1.22) /// The name of the seat to find. /// The device or seat, null if not found. -Efl.Input.Device GetDevice( System.String name); +Efl.Input.Device GetDevice(System.String name); /// Get a seat by id. /// (Since EFL 1.22) /// The id of the seat to find. /// The seat or null if not found. -Efl.Input.Device GetSeat( int id); +Efl.Input.Device GetSeat(int id); /// Get the default seat. /// (Since EFL 1.22) /// The default seat or null if one does not exist. @@ -43,10 +47,9 @@ Efl.Input.Device GetSeatDefault(); /// The seat, or null to use the default. /// The pointer position in pixels. /// true if a pointer exists for the given seat, otherwise false. -bool GetPointerPosition( Efl.Input.Device seat, out Eina.Position2D pos); +bool GetPointerPosition(Efl.Input.Device seat, out Eina.Position2D pos); /// Call user-provided calculate group functions and unset the flag signalling that the object needs to get recalculated to all group objects in the canvas. /// (Since EFL 1.22) -/// void CalculateGroupObjects(); /// Retrieve a list of objects at a given position in a canvas. /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas covering the given position. The user can exclude from the query objects which are hidden and/or which are set to pass events. @@ -57,7 +60,7 @@ void CalculateGroupObjects(); /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The list of objects that are over the given position in e. -Eina.Iterator GetObjectsAtXy( Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects); +Eina.Iterator GetObjectsAtXy(Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects); /// Retrieve the object stacked at the top of a given position in a canvas. /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas covering the given position. The user can exclude from the query objects which are hidden and/or which are set to pass events. /// @@ -67,7 +70,7 @@ Eina.Iterator GetObjectsAtXy( Eina.Position2D pos, bool includ /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The canvas object that is over all other objects at the given position. -Efl.Gfx.IEntity GetObjectTopAtXy( Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects); +Efl.Gfx.IEntity GetObjectTopAtXy(Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects); /// Retrieve a list of objects overlapping a given rectangular region in a canvas. /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas overlapping with the given rectangular region. The user can exclude from the query objects which are hidden and/or which are set to pass events. /// @@ -77,7 +80,7 @@ Efl.Gfx.IEntity GetObjectTopAtXy( Eina.Position2D pos, bool include_pass_events /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// Iterator to objects -Eina.Iterator GetObjectsInRectangle( Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects); +Eina.Iterator GetObjectsInRectangle(Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects); /// Retrieve the canvas object stacked at the top of a given rectangular region in a canvas /// This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas overlapping with the given rectangular region. The user can exclude from the query objects which are hidden and/or which are set to pass events. /// @@ -87,7 +90,7 @@ Eina.Iterator GetObjectsInRectangle( Eina.Rect rect, bool incl /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The object that is over all other objects at the given rectangular region. -Efl.Gfx.IEntity GetObjectTopInRectangle( Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects); +Efl.Gfx.IEntity GetObjectTopInRectangle(Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects); /// Iterate over the available input device seats for the canvas. /// A "seat" is the term used for a group of input devices, typically including a pointer and a keyboard. A seat object is the parent of the individual input devices. /// (Since EFL 1.22) @@ -184,544 +187,681 @@ IScene { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ISceneConcrete)) - return Efl.Canvas.ISceneNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ISceneConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_canvas_scene_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ISceneConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ISceneConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object SceneFocusInEvtKey = new object(); + /// Called when scene got focus /// (Since EFL 1.22) public event EventHandler SceneFocusInEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneSceneFocusInEvt_Args args = new Efl.Canvas.ISceneSceneFocusInEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SceneFocusInEvt_delegate)) { - eventHandlers.AddHandler(SceneFocusInEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN"; - if (RemoveNativeEventHandler(key, this.evt_SceneFocusInEvt_delegate)) { - eventHandlers.RemoveHandler(SceneFocusInEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SceneFocusInEvt. - public void On_SceneFocusInEvt(Efl.Canvas.ISceneSceneFocusInEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SceneFocusInEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SceneFocusInEvt_delegate; - private void on_SceneFocusInEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSceneFocusInEvt(Efl.Canvas.ISceneSceneFocusInEvt_Args e) { - Efl.Canvas.ISceneSceneFocusInEvt_Args args = new Efl.Canvas.ISceneSceneFocusInEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_SceneFocusInEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SceneFocusOutEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when scene lost focus /// (Since EFL 1.22) public event EventHandler SceneFocusOutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneSceneFocusOutEvt_Args args = new Efl.Canvas.ISceneSceneFocusOutEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SceneFocusOutEvt_delegate)) { - eventHandlers.AddHandler(SceneFocusOutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT"; - if (RemoveNativeEventHandler(key, this.evt_SceneFocusOutEvt_delegate)) { - eventHandlers.RemoveHandler(SceneFocusOutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SceneFocusOutEvt. - public void On_SceneFocusOutEvt(Efl.Canvas.ISceneSceneFocusOutEvt_Args e) + public void OnSceneFocusOutEvt(Efl.Canvas.ISceneSceneFocusOutEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SceneFocusOutEvtKey]; + var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SceneFocusOutEvt_delegate; - private void on_SceneFocusOutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Canvas.ISceneSceneFocusOutEvt_Args args = new Efl.Canvas.ISceneSceneFocusOutEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_SceneFocusOutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ObjectFocusInEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when object got focus /// (Since EFL 1.22) public event EventHandler ObjectFocusInEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneObjectFocusInEvt_Args args = new Efl.Canvas.ISceneObjectFocusInEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ObjectFocusInEvt_delegate)) { - eventHandlers.AddHandler(ObjectFocusInEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN"; - if (RemoveNativeEventHandler(key, this.evt_ObjectFocusInEvt_delegate)) { - eventHandlers.RemoveHandler(ObjectFocusInEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ObjectFocusInEvt. - public void On_ObjectFocusInEvt(Efl.Canvas.ISceneObjectFocusInEvt_Args e) + public void OnObjectFocusInEvt(Efl.Canvas.ISceneObjectFocusInEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ObjectFocusInEvtKey]; + var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ObjectFocusInEvt_delegate; - private void on_ObjectFocusInEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Canvas.ISceneObjectFocusInEvt_Args args = new Efl.Canvas.ISceneObjectFocusInEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_ObjectFocusInEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ObjectFocusOutEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when object lost focus /// (Since EFL 1.22) public event EventHandler ObjectFocusOutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneObjectFocusOutEvt_Args args = new Efl.Canvas.ISceneObjectFocusOutEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ObjectFocusOutEvt_delegate)) { - eventHandlers.AddHandler(ObjectFocusOutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT"; - if (RemoveNativeEventHandler(key, this.evt_ObjectFocusOutEvt_delegate)) { - eventHandlers.RemoveHandler(ObjectFocusOutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ObjectFocusOutEvt. - public void On_ObjectFocusOutEvt(Efl.Canvas.ISceneObjectFocusOutEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ObjectFocusOutEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ObjectFocusOutEvt_delegate; - private void on_ObjectFocusOutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnObjectFocusOutEvt(Efl.Canvas.ISceneObjectFocusOutEvt_Args e) { - Efl.Canvas.ISceneObjectFocusOutEvt_Args args = new Efl.Canvas.ISceneObjectFocusOutEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_ObjectFocusOutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RenderPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when pre render happens /// (Since EFL 1.22) public event EventHandler RenderPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RenderPreEvt_delegate)) { - eventHandlers.AddHandler(RenderPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE"; - if (RemoveNativeEventHandler(key, this.evt_RenderPreEvt_delegate)) { - eventHandlers.RemoveHandler(RenderPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RenderPreEvt. - public void On_RenderPreEvt(EventArgs e) + public void OnRenderPreEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RenderPreEvtKey]; + var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RenderPreEvt_delegate; - private void on_RenderPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_RenderPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object RenderPostEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when post render happens /// (Since EFL 1.22) public event EventHandler RenderPostEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneRenderPostEvt_Args args = new Efl.Canvas.ISceneRenderPostEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RenderPostEvt_delegate)) { - eventHandlers.AddHandler(RenderPostEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST"; - if (RemoveNativeEventHandler(key, this.evt_RenderPostEvt_delegate)) { - eventHandlers.RemoveHandler(RenderPostEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RenderPostEvt. - public void On_RenderPostEvt(Efl.Canvas.ISceneRenderPostEvt_Args e) + public void OnRenderPostEvt(Efl.Canvas.ISceneRenderPostEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RenderPostEvtKey]; + var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RenderPostEvt_delegate; - private void on_RenderPostEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Canvas.ISceneRenderPostEvt_Args args = new Efl.Canvas.ISceneRenderPostEvt_Args(); - args.arg = evt.Info;; - try { - On_RenderPostEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object DeviceChangedEvtKey = new object(); /// Called when input device changed /// (Since EFL 1.22) public event EventHandler DeviceChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneDeviceChangedEvt_Args args = new Efl.Canvas.ISceneDeviceChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DeviceChangedEvt_delegate)) { - eventHandlers.AddHandler(DeviceChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DeviceChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DeviceChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DeviceChangedEvt. - public void On_DeviceChangedEvt(Efl.Canvas.ISceneDeviceChangedEvt_Args e) + public void OnDeviceChangedEvt(Efl.Canvas.ISceneDeviceChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DeviceChangedEvtKey]; + var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DeviceChangedEvt_delegate; - private void on_DeviceChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Canvas.ISceneDeviceChangedEvt_Args args = new Efl.Canvas.ISceneDeviceChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); - try { - On_DeviceChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DeviceAddedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when input device was added /// (Since EFL 1.22) public event EventHandler DeviceAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneDeviceAddedEvt_Args args = new Efl.Canvas.ISceneDeviceAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DeviceAddedEvt_delegate)) { - eventHandlers.AddHandler(DeviceAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_DeviceAddedEvt_delegate)) { - eventHandlers.RemoveHandler(DeviceAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DeviceAddedEvt. - public void On_DeviceAddedEvt(Efl.Canvas.ISceneDeviceAddedEvt_Args e) + public void OnDeviceAddedEvt(Efl.Canvas.ISceneDeviceAddedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DeviceAddedEvtKey]; + var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DeviceAddedEvt_delegate; - private void on_DeviceAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Canvas.ISceneDeviceAddedEvt_Args args = new Efl.Canvas.ISceneDeviceAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); - try { - On_DeviceAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DeviceRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when input device was removed /// (Since EFL 1.22) public event EventHandler DeviceRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneDeviceRemovedEvt_Args args = new Efl.Canvas.ISceneDeviceRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DeviceRemovedEvt_delegate)) { - eventHandlers.AddHandler(DeviceRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_DeviceRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(DeviceRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DeviceRemovedEvt. - public void On_DeviceRemovedEvt(Efl.Canvas.ISceneDeviceRemovedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DeviceRemovedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DeviceRemovedEvt_delegate; - private void on_DeviceRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDeviceRemovedEvt(Efl.Canvas.ISceneDeviceRemovedEvt_Args e) { - Efl.Canvas.ISceneDeviceRemovedEvt_Args args = new Efl.Canvas.ISceneDeviceRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); - try { - On_DeviceRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_SceneFocusInEvt_delegate = new Efl.EventCb(on_SceneFocusInEvt_NativeCallback); - evt_SceneFocusOutEvt_delegate = new Efl.EventCb(on_SceneFocusOutEvt_NativeCallback); - evt_ObjectFocusInEvt_delegate = new Efl.EventCb(on_ObjectFocusInEvt_NativeCallback); - evt_ObjectFocusOutEvt_delegate = new Efl.EventCb(on_ObjectFocusOutEvt_NativeCallback); - evt_RenderPreEvt_delegate = new Efl.EventCb(on_RenderPreEvt_NativeCallback); - evt_RenderPostEvt_delegate = new Efl.EventCb(on_RenderPostEvt_NativeCallback); - evt_DeviceChangedEvt_delegate = new Efl.EventCb(on_DeviceChangedEvt_NativeCallback); - evt_DeviceAddedEvt_delegate = new Efl.EventCb(on_DeviceAddedEvt_NativeCallback); - evt_DeviceRemovedEvt_delegate = new Efl.EventCb(on_DeviceRemovedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Get the maximum image size the canvas can possibly handle. /// This function returns the largest image or surface size that the canvas can handle in pixels, and if there is one, returns true. It returns false if no extra constraint on maximum image size exists. @@ -730,9 +870,9 @@ private static object DeviceRemovedEvtKey = new object(); /// (Since EFL 1.22) /// The maximum image size (in pixels). /// true on success, false otherwise - public bool GetImageMaxSize( out Eina.Size2D max) { + public bool GetImageMaxSize(out Eina.Size2D max) { var _out_max = new Eina.Size2D.NativeStruct(); - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_image_max_size_get_ptr.Value.Delegate(this.NativeHandle, out _out_max); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_image_max_size_get_ptr.Value.Delegate(this.NativeHandle,out _out_max); Eina.Error.RaiseIfUnhandledException(); max = _out_max; return _ret_var; @@ -741,7 +881,7 @@ private static object DeviceRemovedEvtKey = new object(); /// (Since EFL 1.22) /// true if currently calculating group objects. public bool GetGroupObjectsCalculating() { - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_group_objects_calculating_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_group_objects_calculating_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -749,8 +889,8 @@ private static object DeviceRemovedEvtKey = new object(); /// (Since EFL 1.22) /// The name of the seat to find. /// The device or seat, null if not found. - public Efl.Input.Device GetDevice( System.String name) { - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_device_get_ptr.Value.Delegate(this.NativeHandle, name); + public Efl.Input.Device GetDevice(System.String name) { + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_device_get_ptr.Value.Delegate(this.NativeHandle,name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -758,8 +898,8 @@ private static object DeviceRemovedEvtKey = new object(); /// (Since EFL 1.22) /// The id of the seat to find. /// The seat or null if not found. - public Efl.Input.Device GetSeat( int id) { - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_seat_get_ptr.Value.Delegate(this.NativeHandle, id); + public Efl.Input.Device GetSeat(int id) { + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seat_get_ptr.Value.Delegate(this.NativeHandle,id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -767,7 +907,7 @@ private static object DeviceRemovedEvtKey = new object(); /// (Since EFL 1.22) /// The default seat or null if one does not exist. public Efl.Input.Device GetSeatDefault() { - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_seat_default_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seat_default_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -777,18 +917,17 @@ private static object DeviceRemovedEvtKey = new object(); /// The seat, or null to use the default. /// The pointer position in pixels. /// true if a pointer exists for the given seat, otherwise false. - public bool GetPointerPosition( Efl.Input.Device seat, out Eina.Position2D pos) { + public bool GetPointerPosition(Efl.Input.Device seat, out Eina.Position2D pos) { var _out_pos = new Eina.Position2D.NativeStruct(); - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_pointer_position_get_ptr.Value.Delegate(this.NativeHandle, seat, out _out_pos); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_pointer_position_get_ptr.Value.Delegate(this.NativeHandle,seat, out _out_pos); Eina.Error.RaiseIfUnhandledException(); pos = _out_pos; return _ret_var; } /// Call user-provided calculate group functions and unset the flag signalling that the object needs to get recalculated to all group objects in the canvas. /// (Since EFL 1.22) - /// public void CalculateGroupObjects() { - Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_group_objects_calculate_ptr.Value.Delegate(this.NativeHandle); + Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_group_objects_calculate_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Retrieve a list of objects at a given position in a canvas. @@ -800,9 +939,9 @@ private static object DeviceRemovedEvtKey = new object(); /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The list of objects that are over the given position in e. - public Eina.Iterator GetObjectsAtXy( Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects) { + public Eina.Iterator GetObjectsAtXy(Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Position2D.NativeStruct _in_pos = pos; - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_objects_at_xy_get_ptr.Value.Delegate(this.NativeHandle, _in_pos, include_pass_events_objects, include_hidden_objects); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_objects_at_xy_get_ptr.Value.Delegate(this.NativeHandle,_in_pos, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -815,9 +954,9 @@ private static object DeviceRemovedEvtKey = new object(); /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The canvas object that is over all other objects at the given position. - public Efl.Gfx.IEntity GetObjectTopAtXy( Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects) { + public Efl.Gfx.IEntity GetObjectTopAtXy(Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Position2D.NativeStruct _in_pos = pos; - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_object_top_at_xy_get_ptr.Value.Delegate(this.NativeHandle, _in_pos, include_pass_events_objects, include_hidden_objects); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_object_top_at_xy_get_ptr.Value.Delegate(this.NativeHandle,_in_pos, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -830,9 +969,9 @@ private static object DeviceRemovedEvtKey = new object(); /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// Iterator to objects - public Eina.Iterator GetObjectsInRectangle( Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects) { + public Eina.Iterator GetObjectsInRectangle(Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Rect.NativeStruct _in_rect = rect; - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_objects_in_rectangle_get_ptr.Value.Delegate(this.NativeHandle, _in_rect, include_pass_events_objects, include_hidden_objects); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_objects_in_rectangle_get_ptr.Value.Delegate(this.NativeHandle,_in_rect, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -845,9 +984,9 @@ private static object DeviceRemovedEvtKey = new object(); /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The object that is over all other objects at the given rectangular region. - public Efl.Gfx.IEntity GetObjectTopInRectangle( Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects) { + public Efl.Gfx.IEntity GetObjectTopInRectangle(Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Rect.NativeStruct _in_rect = rect; - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_object_top_in_rectangle_get_ptr.Value.Delegate(this.NativeHandle, _in_rect, include_pass_events_objects, include_hidden_objects); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_object_top_in_rectangle_get_ptr.Value.Delegate(this.NativeHandle,_in_rect, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -856,7 +995,7 @@ private static object DeviceRemovedEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the attached seats. public Eina.Iterator Seats() { - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_seats_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seats_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -879,377 +1018,593 @@ private static object DeviceRemovedEvtKey = new object(); { return Efl.Canvas.ISceneConcrete.efl_canvas_scene_interface_get(); } -} -public class ISceneNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_canvas_scene_image_max_size_get_static_delegate == null) - efl_canvas_scene_image_max_size_get_static_delegate = new efl_canvas_scene_image_max_size_get_delegate(image_max_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageMaxSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_image_max_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_image_max_size_get_static_delegate)}); - if (efl_canvas_scene_group_objects_calculating_get_static_delegate == null) - efl_canvas_scene_group_objects_calculating_get_static_delegate = new efl_canvas_scene_group_objects_calculating_get_delegate(group_objects_calculating_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupObjectsCalculating") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_group_objects_calculating_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_group_objects_calculating_get_static_delegate)}); - if (efl_canvas_scene_device_get_static_delegate == null) - efl_canvas_scene_device_get_static_delegate = new efl_canvas_scene_device_get_delegate(device_get); - if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_device_get_static_delegate)}); - if (efl_canvas_scene_seat_get_static_delegate == null) - efl_canvas_scene_seat_get_static_delegate = new efl_canvas_scene_seat_get_delegate(seat_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeat") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_seat_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seat_get_static_delegate)}); - if (efl_canvas_scene_seat_default_get_static_delegate == null) - efl_canvas_scene_seat_default_get_static_delegate = new efl_canvas_scene_seat_default_get_delegate(seat_default_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeatDefault") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_seat_default_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seat_default_get_static_delegate)}); - if (efl_canvas_scene_pointer_position_get_static_delegate == null) - efl_canvas_scene_pointer_position_get_static_delegate = new efl_canvas_scene_pointer_position_get_delegate(pointer_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPointerPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_pointer_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_pointer_position_get_static_delegate)}); - if (efl_canvas_scene_group_objects_calculate_static_delegate == null) - efl_canvas_scene_group_objects_calculate_static_delegate = new efl_canvas_scene_group_objects_calculate_delegate(group_objects_calculate); - if (methods.FirstOrDefault(m => m.Name == "CalculateGroupObjects") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_group_objects_calculate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_group_objects_calculate_static_delegate)}); - if (efl_canvas_scene_objects_at_xy_get_static_delegate == null) - efl_canvas_scene_objects_at_xy_get_static_delegate = new efl_canvas_scene_objects_at_xy_get_delegate(objects_at_xy_get); - if (methods.FirstOrDefault(m => m.Name == "GetObjectsAtXy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_objects_at_xy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_objects_at_xy_get_static_delegate)}); - if (efl_canvas_scene_object_top_at_xy_get_static_delegate == null) - efl_canvas_scene_object_top_at_xy_get_static_delegate = new efl_canvas_scene_object_top_at_xy_get_delegate(object_top_at_xy_get); - if (methods.FirstOrDefault(m => m.Name == "GetObjectTopAtXy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_object_top_at_xy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_object_top_at_xy_get_static_delegate)}); - if (efl_canvas_scene_objects_in_rectangle_get_static_delegate == null) - efl_canvas_scene_objects_in_rectangle_get_static_delegate = new efl_canvas_scene_objects_in_rectangle_get_delegate(objects_in_rectangle_get); - if (methods.FirstOrDefault(m => m.Name == "GetObjectsInRectangle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_objects_in_rectangle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_objects_in_rectangle_get_static_delegate)}); - if (efl_canvas_scene_object_top_in_rectangle_get_static_delegate == null) - efl_canvas_scene_object_top_in_rectangle_get_static_delegate = new efl_canvas_scene_object_top_in_rectangle_get_delegate(object_top_in_rectangle_get); - if (methods.FirstOrDefault(m => m.Name == "GetObjectTopInRectangle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_object_top_in_rectangle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_object_top_in_rectangle_get_static_delegate)}); - if (efl_canvas_scene_seats_static_delegate == null) - efl_canvas_scene_seats_static_delegate = new efl_canvas_scene_seats_delegate(seats); - if (methods.FirstOrDefault(m => m.Name == "Seats") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_seats"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seats_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Canvas.ISceneConcrete.efl_canvas_scene_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Canvas.ISceneConcrete.efl_canvas_scene_interface_get(); - } + 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_canvas_scene_image_max_size_get_static_delegate == null) + { + efl_canvas_scene_image_max_size_get_static_delegate = new efl_canvas_scene_image_max_size_get_delegate(image_max_size_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_scene_image_max_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Size2D.NativeStruct max); + if (methods.FirstOrDefault(m => m.Name == "GetImageMaxSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_image_max_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_image_max_size_get_static_delegate) }); + } + if (efl_canvas_scene_group_objects_calculating_get_static_delegate == null) + { + efl_canvas_scene_group_objects_calculating_get_static_delegate = new efl_canvas_scene_group_objects_calculating_get_delegate(group_objects_calculating_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_scene_image_max_size_get_api_delegate(System.IntPtr obj, out Eina.Size2D.NativeStruct max); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_image_max_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_image_max_size_get"); - private static bool image_max_size_get(System.IntPtr obj, System.IntPtr pd, out Eina.Size2D.NativeStruct max) - { - Eina.Log.Debug("function efl_canvas_scene_image_max_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _out_max = default(Eina.Size2D); - bool _ret_var = default(bool); - try { - _ret_var = ((IScene)wrapper).GetImageMaxSize( out _out_max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGroupObjectsCalculating") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_group_objects_calculating_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_group_objects_calculating_get_static_delegate) }); + } + + if (efl_canvas_scene_device_get_static_delegate == null) + { + efl_canvas_scene_device_get_static_delegate = new efl_canvas_scene_device_get_delegate(device_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_device_get_static_delegate) }); + } + + if (efl_canvas_scene_seat_get_static_delegate == null) + { + efl_canvas_scene_seat_get_static_delegate = new efl_canvas_scene_seat_get_delegate(seat_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSeat") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_seat_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seat_get_static_delegate) }); + } + + if (efl_canvas_scene_seat_default_get_static_delegate == null) + { + efl_canvas_scene_seat_default_get_static_delegate = new efl_canvas_scene_seat_default_get_delegate(seat_default_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSeatDefault") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_seat_default_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seat_default_get_static_delegate) }); + } + + if (efl_canvas_scene_pointer_position_get_static_delegate == null) + { + efl_canvas_scene_pointer_position_get_static_delegate = new efl_canvas_scene_pointer_position_get_delegate(pointer_position_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPointerPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_pointer_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_pointer_position_get_static_delegate) }); + } + + if (efl_canvas_scene_group_objects_calculate_static_delegate == null) + { + efl_canvas_scene_group_objects_calculate_static_delegate = new efl_canvas_scene_group_objects_calculate_delegate(group_objects_calculate); + } + + if (methods.FirstOrDefault(m => m.Name == "CalculateGroupObjects") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_group_objects_calculate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_group_objects_calculate_static_delegate) }); } + + if (efl_canvas_scene_objects_at_xy_get_static_delegate == null) + { + efl_canvas_scene_objects_at_xy_get_static_delegate = new efl_canvas_scene_objects_at_xy_get_delegate(objects_at_xy_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetObjectsAtXy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_objects_at_xy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_objects_at_xy_get_static_delegate) }); + } + + if (efl_canvas_scene_object_top_at_xy_get_static_delegate == null) + { + efl_canvas_scene_object_top_at_xy_get_static_delegate = new efl_canvas_scene_object_top_at_xy_get_delegate(object_top_at_xy_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetObjectTopAtXy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_object_top_at_xy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_object_top_at_xy_get_static_delegate) }); + } + + if (efl_canvas_scene_objects_in_rectangle_get_static_delegate == null) + { + efl_canvas_scene_objects_in_rectangle_get_static_delegate = new efl_canvas_scene_objects_in_rectangle_get_delegate(objects_in_rectangle_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetObjectsInRectangle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_objects_in_rectangle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_objects_in_rectangle_get_static_delegate) }); + } + + if (efl_canvas_scene_object_top_in_rectangle_get_static_delegate == null) + { + efl_canvas_scene_object_top_in_rectangle_get_static_delegate = new efl_canvas_scene_object_top_in_rectangle_get_delegate(object_top_in_rectangle_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetObjectTopInRectangle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_object_top_in_rectangle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_object_top_in_rectangle_get_static_delegate) }); + } + + if (efl_canvas_scene_seats_static_delegate == null) + { + efl_canvas_scene_seats_static_delegate = new efl_canvas_scene_seats_delegate(seats); + } + + if (methods.FirstOrDefault(m => m.Name == "Seats") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_seats"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seats_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.Canvas.ISceneConcrete.efl_canvas_scene_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_scene_image_max_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Size2D.NativeStruct max); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_scene_image_max_size_get_api_delegate(System.IntPtr obj, out Eina.Size2D.NativeStruct max); + + public static Efl.Eo.FunctionWrapper efl_canvas_scene_image_max_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_image_max_size_get"); + + private static bool image_max_size_get(System.IntPtr obj, System.IntPtr pd, out Eina.Size2D.NativeStruct max) + { + Eina.Log.Debug("function efl_canvas_scene_image_max_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _out_max = default(Eina.Size2D); + bool _ret_var = default(bool); + try + { + _ret_var = ((IScene)wrapper).GetImageMaxSize(out _out_max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + max = _out_max; return _ret_var; - } else { - return efl_canvas_scene_image_max_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out max); + + } + else + { + return efl_canvas_scene_image_max_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out max); + } } - } - private static efl_canvas_scene_image_max_size_get_delegate efl_canvas_scene_image_max_size_get_static_delegate; + private static efl_canvas_scene_image_max_size_get_delegate efl_canvas_scene_image_max_size_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_scene_group_objects_calculating_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_scene_group_objects_calculating_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_scene_group_objects_calculating_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_scene_group_objects_calculating_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_group_objects_calculating_get"); + + private static bool group_objects_calculating_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_scene_group_objects_calculating_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IScene)wrapper).GetGroupObjectsCalculating(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_scene_group_objects_calculating_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_group_objects_calculating_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_group_objects_calculating_get"); - private static bool group_objects_calculating_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_scene_group_objects_calculating_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IScene)wrapper).GetGroupObjectsCalculating(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_canvas_scene_group_objects_calculating_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_canvas_scene_group_objects_calculating_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_scene_group_objects_calculating_get_delegate efl_canvas_scene_group_objects_calculating_get_static_delegate; + private static efl_canvas_scene_group_objects_calculating_get_delegate efl_canvas_scene_group_objects_calculating_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_canvas_scene_device_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_canvas_scene_device_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_canvas_scene_device_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_canvas_scene_device_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_device_get"); + + private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_canvas_scene_device_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((IScene)wrapper).GetDevice(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_canvas_scene_device_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_device_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_device_get"); - private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_canvas_scene_device_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((IScene)wrapper).GetDevice( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_canvas_scene_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + + } + else + { + return efl_canvas_scene_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } } - } - private static efl_canvas_scene_device_get_delegate efl_canvas_scene_device_get_static_delegate; + private static efl_canvas_scene_device_get_delegate efl_canvas_scene_device_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_canvas_scene_seat_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_canvas_scene_seat_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_canvas_scene_seat_get_api_delegate(System.IntPtr obj, int id); + + public static Efl.Eo.FunctionWrapper efl_canvas_scene_seat_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_seat_get"); + + private static Efl.Input.Device seat_get(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_canvas_scene_seat_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((IScene)wrapper).GetSeat(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_canvas_scene_seat_get_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_seat_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_seat_get"); - private static Efl.Input.Device seat_get(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_canvas_scene_seat_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((IScene)wrapper).GetSeat( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_canvas_scene_seat_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + + } + else + { + return efl_canvas_scene_seat_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } } - } - private static efl_canvas_scene_seat_get_delegate efl_canvas_scene_seat_get_static_delegate; + private static efl_canvas_scene_seat_get_delegate efl_canvas_scene_seat_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_canvas_scene_seat_default_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_canvas_scene_seat_default_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_canvas_scene_seat_default_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_scene_seat_default_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_seat_default_get"); + + private static Efl.Input.Device seat_default_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_scene_seat_default_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((IScene)wrapper).GetSeatDefault(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_canvas_scene_seat_default_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_seat_default_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_seat_default_get"); - private static Efl.Input.Device seat_default_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_scene_seat_default_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((IScene)wrapper).GetSeatDefault(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_canvas_scene_seat_default_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_canvas_scene_seat_default_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_scene_seat_default_get_delegate efl_canvas_scene_seat_default_get_static_delegate; + private static efl_canvas_scene_seat_default_get_delegate efl_canvas_scene_seat_default_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_scene_pointer_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_scene_pointer_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_scene_pointer_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_scene_pointer_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_pointer_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_pointer_position_get"); - private static bool pointer_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_canvas_scene_pointer_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _out_pos = default(Eina.Position2D); + public static Efl.Eo.FunctionWrapper efl_canvas_scene_pointer_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_pointer_position_get"); + + private static bool pointer_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_canvas_scene_pointer_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _out_pos = default(Eina.Position2D); bool _ret_var = default(bool); - try { - _ret_var = ((IScene)wrapper).GetPointerPosition( seat, out _out_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IScene)wrapper).GetPointerPosition(seat, out _out_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + pos = _out_pos; return _ret_var; - } else { - return efl_canvas_scene_pointer_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat, out pos); + + } + else + { + return efl_canvas_scene_pointer_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat, out pos); + } } - } - private static efl_canvas_scene_pointer_position_get_delegate efl_canvas_scene_pointer_position_get_static_delegate; + private static efl_canvas_scene_pointer_position_get_delegate efl_canvas_scene_pointer_position_get_static_delegate; - private delegate void efl_canvas_scene_group_objects_calculate_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_canvas_scene_group_objects_calculate_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_canvas_scene_group_objects_calculate_api_delegate(System.IntPtr obj); - public delegate void efl_canvas_scene_group_objects_calculate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_group_objects_calculate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_group_objects_calculate"); - private static void group_objects_calculate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_scene_group_objects_calculate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IScene)wrapper).CalculateGroupObjects(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_scene_group_objects_calculate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + public static Efl.Eo.FunctionWrapper efl_canvas_scene_group_objects_calculate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_group_objects_calculate"); + + private static void group_objects_calculate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_scene_group_objects_calculate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IScene)wrapper).CalculateGroupObjects(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_scene_group_objects_calculate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_scene_group_objects_calculate_delegate efl_canvas_scene_group_objects_calculate_static_delegate; + private static efl_canvas_scene_group_objects_calculate_delegate efl_canvas_scene_group_objects_calculate_static_delegate; - private delegate System.IntPtr efl_canvas_scene_objects_at_xy_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + + private delegate System.IntPtr efl_canvas_scene_objects_at_xy_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + + public delegate System.IntPtr efl_canvas_scene_objects_at_xy_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - public delegate System.IntPtr efl_canvas_scene_objects_at_xy_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_objects_at_xy_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_objects_at_xy_get"); - private static System.IntPtr objects_at_xy_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, bool include_pass_events_objects, bool include_hidden_objects) - { - Eina.Log.Debug("function efl_canvas_scene_objects_at_xy_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; + public static Efl.Eo.FunctionWrapper efl_canvas_scene_objects_at_xy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_objects_at_xy_get"); + + private static System.IntPtr objects_at_xy_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, bool include_pass_events_objects, bool include_hidden_objects) + { + Eina.Log.Debug("function efl_canvas_scene_objects_at_xy_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IScene)wrapper).GetObjectsAtXy( _in_pos, include_pass_events_objects, include_hidden_objects); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IScene)wrapper).GetObjectsAtXy(_in_pos, include_pass_events_objects, include_hidden_objects); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_canvas_scene_objects_at_xy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos, include_pass_events_objects, include_hidden_objects); + + } + else + { + return efl_canvas_scene_objects_at_xy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos, include_pass_events_objects, include_hidden_objects); + } } - } - private static efl_canvas_scene_objects_at_xy_get_delegate efl_canvas_scene_objects_at_xy_get_static_delegate; + private static efl_canvas_scene_objects_at_xy_get_delegate efl_canvas_scene_objects_at_xy_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_at_xy_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_at_xy_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_at_xy_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_at_xy_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_object_top_at_xy_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_object_top_at_xy_get"); - private static Efl.Gfx.IEntity object_top_at_xy_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, bool include_pass_events_objects, bool include_hidden_objects) - { - Eina.Log.Debug("function efl_canvas_scene_object_top_at_xy_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; + public static Efl.Eo.FunctionWrapper efl_canvas_scene_object_top_at_xy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_object_top_at_xy_get"); + + private static Efl.Gfx.IEntity object_top_at_xy_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, bool include_pass_events_objects, bool include_hidden_objects) + { + Eina.Log.Debug("function efl_canvas_scene_object_top_at_xy_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((IScene)wrapper).GetObjectTopAtXy( _in_pos, include_pass_events_objects, include_hidden_objects); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IScene)wrapper).GetObjectTopAtXy(_in_pos, include_pass_events_objects, include_hidden_objects); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_canvas_scene_object_top_at_xy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos, include_pass_events_objects, include_hidden_objects); + + } + else + { + return efl_canvas_scene_object_top_at_xy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos, include_pass_events_objects, include_hidden_objects); + } } - } - private static efl_canvas_scene_object_top_at_xy_get_delegate efl_canvas_scene_object_top_at_xy_get_static_delegate; + private static efl_canvas_scene_object_top_at_xy_get_delegate efl_canvas_scene_object_top_at_xy_get_static_delegate; - private delegate System.IntPtr efl_canvas_scene_objects_in_rectangle_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + + private delegate System.IntPtr efl_canvas_scene_objects_in_rectangle_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + + public delegate System.IntPtr efl_canvas_scene_objects_in_rectangle_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - public delegate System.IntPtr efl_canvas_scene_objects_in_rectangle_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_objects_in_rectangle_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_objects_in_rectangle_get"); - private static System.IntPtr objects_in_rectangle_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool include_pass_events_objects, bool include_hidden_objects) - { - Eina.Log.Debug("function efl_canvas_scene_objects_in_rectangle_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; + public static Efl.Eo.FunctionWrapper efl_canvas_scene_objects_in_rectangle_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_objects_in_rectangle_get"); + + private static System.IntPtr objects_in_rectangle_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool include_pass_events_objects, bool include_hidden_objects) + { + Eina.Log.Debug("function efl_canvas_scene_objects_in_rectangle_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IScene)wrapper).GetObjectsInRectangle( _in_rect, include_pass_events_objects, include_hidden_objects); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IScene)wrapper).GetObjectsInRectangle(_in_rect, include_pass_events_objects, include_hidden_objects); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_canvas_scene_objects_in_rectangle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, include_pass_events_objects, include_hidden_objects); + + } + else + { + return efl_canvas_scene_objects_in_rectangle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, include_pass_events_objects, include_hidden_objects); + } } - } - private static efl_canvas_scene_objects_in_rectangle_get_delegate efl_canvas_scene_objects_in_rectangle_get_static_delegate; + private static efl_canvas_scene_objects_in_rectangle_get_delegate efl_canvas_scene_objects_in_rectangle_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_in_rectangle_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_in_rectangle_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_in_rectangle_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_in_rectangle_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_object_top_in_rectangle_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_object_top_in_rectangle_get"); - private static Efl.Gfx.IEntity object_top_in_rectangle_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool include_pass_events_objects, bool include_hidden_objects) - { - Eina.Log.Debug("function efl_canvas_scene_object_top_in_rectangle_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; + public static Efl.Eo.FunctionWrapper efl_canvas_scene_object_top_in_rectangle_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_object_top_in_rectangle_get"); + + private static Efl.Gfx.IEntity object_top_in_rectangle_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool include_pass_events_objects, bool include_hidden_objects) + { + Eina.Log.Debug("function efl_canvas_scene_object_top_in_rectangle_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((IScene)wrapper).GetObjectTopInRectangle( _in_rect, include_pass_events_objects, include_hidden_objects); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IScene)wrapper).GetObjectTopInRectangle(_in_rect, include_pass_events_objects, include_hidden_objects); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_canvas_scene_object_top_in_rectangle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, include_pass_events_objects, include_hidden_objects); + + } + else + { + return efl_canvas_scene_object_top_in_rectangle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, include_pass_events_objects, include_hidden_objects); + } } - } - private static efl_canvas_scene_object_top_in_rectangle_get_delegate efl_canvas_scene_object_top_in_rectangle_get_static_delegate; + private static efl_canvas_scene_object_top_in_rectangle_get_delegate efl_canvas_scene_object_top_in_rectangle_get_static_delegate; - private delegate System.IntPtr efl_canvas_scene_seats_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_canvas_scene_seats_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_canvas_scene_seats_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_scene_seats_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_seats"); + + private static System.IntPtr seats(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_scene_seats was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IScene)wrapper).Seats(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate System.IntPtr efl_canvas_scene_seats_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_seats_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_seats"); - private static System.IntPtr seats(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_scene_seats was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IScene)wrapper).Seats(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_canvas_scene_seats_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_canvas_scene_seats_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_scene_seats_delegate efl_canvas_scene_seats_static_delegate; + + private static efl_canvas_scene_seats_delegate efl_canvas_scene_seats_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_snapshot.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_snapshot.eo.cs index 6f72b2e..b7f5883 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_snapshot.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_snapshot.eo.cs @@ -3,83 +3,116 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Low-level snapshot image object. /// A snapshot is a special kind of image containing the pixels from all the objects below it. This allows applications to save screenshots of all or part of their UI, or apply filters to parts of the UI. -[SnapshotNativeInherit] +[Efl.Canvas.Snapshot.NativeMethods] public class Snapshot : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Snapshot)) - return Efl.Canvas.SnapshotNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Snapshot)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_snapshot_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Snapshot(Efl.Object parent= null - ) : - base(efl_canvas_snapshot_class_get(), typeof(Snapshot), parent) + ) : base(efl_canvas_snapshot_class_get(), typeof(Snapshot), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Snapshot(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Snapshot(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Snapshot(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Canvas.Snapshot.efl_canvas_snapshot_class_get(); } -} -public class SnapshotNativeInherit : Efl.Canvas.ImageInternalNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Snapshot.efl_canvas_snapshot_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.ImageInternal.NativeMethods { - return Efl.Canvas.Snapshot.efl_canvas_snapshot_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Snapshot.efl_canvas_snapshot_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface.eo.cs index 271373e..3b41cf0 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface.eo.cs @@ -3,37 +3,50 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Native surfaces usually bound to an externally-managed buffer. /// The attached is entirely platform-dependent, which means some of this mixin's subclasses will not work (constructor returns null) on some platforms. This class is meant to be used from native code only (C or C++), with direct access to the display system or a buffer allocation system. -[SurfaceNativeInherit] +[Efl.Canvas.Surface.NativeMethods] public abstract class Surface : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Surface)) - return Efl.Canvas.SurfaceNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Surface)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_surface_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Surface(Efl.Object parent= null - ) : - base(efl_canvas_surface_class_get(), typeof(Surface), parent) + ) : base(efl_canvas_surface_class_get(), typeof(Surface), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Surface(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class SurfaceRealized : Surface { @@ -41,44 +54,55 @@ public abstract class Surface : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Surface(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Surface(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// External buffer attached to this native surface. /// Set to null to detach this surface from the external buffer. /// The external buffer, depends on its type. virtual public System.IntPtr GetNativeBuffer() { - var _ret_var = Efl.Canvas.SurfaceNativeInherit.efl_canvas_surface_native_buffer_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Surface.NativeMethods.efl_canvas_surface_native_buffer_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the buffer. If this fails, this function returns false, and the surface is left without any attached buffer. /// The external buffer, depends on its type. /// true on success, false otherwise - virtual public bool SetNativeBuffer( System.IntPtr buffer) { - var _ret_var = Efl.Canvas.SurfaceNativeInherit.efl_canvas_surface_native_buffer_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), buffer); + virtual public bool SetNativeBuffer(System.IntPtr buffer) { + var _ret_var = Efl.Canvas.Surface.NativeMethods.efl_canvas_surface_native_buffer_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),buffer); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -87,87 +111,133 @@ public abstract class Surface : Efl.Canvas.ImageInternal, Efl.Eo.IWrapper /// The external buffer, depends on its type. public System.IntPtr NativeBuffer { get { return GetNativeBuffer(); } - set { SetNativeBuffer( value); } + set { SetNativeBuffer(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Surface.efl_canvas_surface_class_get(); } -} -public class SurfaceNativeInherit : Efl.Canvas.ImageInternalNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.ImageInternal.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_canvas_surface_native_buffer_get_static_delegate == null) - efl_canvas_surface_native_buffer_get_static_delegate = new efl_canvas_surface_native_buffer_get_delegate(native_buffer_get); - if (methods.FirstOrDefault(m => m.Name == "GetNativeBuffer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_surface_native_buffer_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_surface_native_buffer_get_static_delegate)}); - if (efl_canvas_surface_native_buffer_set_static_delegate == null) - efl_canvas_surface_native_buffer_set_static_delegate = new efl_canvas_surface_native_buffer_set_delegate(native_buffer_set); - if (methods.FirstOrDefault(m => m.Name == "SetNativeBuffer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_surface_native_buffer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_surface_native_buffer_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Surface.efl_canvas_surface_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Canvas.Surface.efl_canvas_surface_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_canvas_surface_native_buffer_get_static_delegate == null) + { + efl_canvas_surface_native_buffer_get_static_delegate = new efl_canvas_surface_native_buffer_get_delegate(native_buffer_get); + } - private delegate System.IntPtr efl_canvas_surface_native_buffer_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetNativeBuffer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_surface_native_buffer_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_surface_native_buffer_get_static_delegate) }); + } + if (efl_canvas_surface_native_buffer_set_static_delegate == null) + { + efl_canvas_surface_native_buffer_set_static_delegate = new efl_canvas_surface_native_buffer_set_delegate(native_buffer_set); + } - public delegate System.IntPtr efl_canvas_surface_native_buffer_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_surface_native_buffer_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_surface_native_buffer_get"); - private static System.IntPtr native_buffer_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_surface_native_buffer_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((Surface)wrapper).GetNativeBuffer(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetNativeBuffer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_surface_native_buffer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_surface_native_buffer_set_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_surface_native_buffer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Surface.efl_canvas_surface_class_get(); } - } - private static efl_canvas_surface_native_buffer_get_delegate efl_canvas_surface_native_buffer_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_surface_native_buffer_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr buffer); + + private delegate System.IntPtr efl_canvas_surface_native_buffer_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_canvas_surface_native_buffer_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_surface_native_buffer_set_api_delegate(System.IntPtr obj, System.IntPtr buffer); - public static Efl.Eo.FunctionWrapper efl_canvas_surface_native_buffer_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_surface_native_buffer_set"); - private static bool native_buffer_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr buffer) - { - Eina.Log.Debug("function efl_canvas_surface_native_buffer_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Surface)wrapper).SetNativeBuffer( buffer); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_canvas_surface_native_buffer_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_surface_native_buffer_get"); + + private static System.IntPtr native_buffer_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_surface_native_buffer_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((Surface)wrapper).GetNativeBuffer(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_surface_native_buffer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_canvas_surface_native_buffer_get_delegate efl_canvas_surface_native_buffer_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_surface_native_buffer_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr buffer); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_surface_native_buffer_set_api_delegate(System.IntPtr obj, System.IntPtr buffer); + + public static Efl.Eo.FunctionWrapper efl_canvas_surface_native_buffer_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_surface_native_buffer_set"); + + private static bool native_buffer_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr buffer) + { + Eina.Log.Debug("function efl_canvas_surface_native_buffer_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Surface)wrapper).SetNativeBuffer(buffer); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_canvas_surface_native_buffer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), buffer); + + } + else + { + return efl_canvas_surface_native_buffer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), buffer); + } } - } - private static efl_canvas_surface_native_buffer_set_delegate efl_canvas_surface_native_buffer_set_static_delegate; + + private static efl_canvas_surface_native_buffer_set_delegate efl_canvas_surface_native_buffer_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_tbm.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_tbm.eo.cs index 63c7ce7..e8505f1 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_tbm.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_tbm.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Native Tizen Buffer Manager surface for Efl canvas -[SurfaceTbmNativeInherit] +[Efl.Canvas.SurfaceTbm.NativeMethods] public class SurfaceTbm : Efl.Canvas.Surface, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (SurfaceTbm)) - return Efl.Canvas.SurfaceTbmNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(SurfaceTbm)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_surface_tbm_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public SurfaceTbm(Efl.Object parent= null - ) : - base(efl_canvas_surface_tbm_class_get(), typeof(SurfaceTbm), parent) + ) : base(efl_canvas_surface_tbm_class_get(), typeof(SurfaceTbm), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected SurfaceTbm(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected SurfaceTbm(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected SurfaceTbm(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Canvas.SurfaceTbm.efl_canvas_surface_tbm_class_get(); } -} -public class SurfaceTbmNativeInherit : Efl.Canvas.SurfaceNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.SurfaceTbm.efl_canvas_surface_tbm_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Surface.NativeMethods { - return Efl.Canvas.SurfaceTbm.efl_canvas_surface_tbm_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.SurfaceTbm.efl_canvas_surface_tbm_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_wayland.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_wayland.eo.cs index 62bfedf..46047ac 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_wayland.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_wayland.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Native Wayland surface for Efl canvas -[SurfaceWaylandNativeInherit] +[Efl.Canvas.SurfaceWayland.NativeMethods] public class SurfaceWayland : Efl.Canvas.Surface, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (SurfaceWayland)) - return Efl.Canvas.SurfaceWaylandNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(SurfaceWayland)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_surface_wayland_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public SurfaceWayland(Efl.Object parent= null - ) : - base(efl_canvas_surface_wayland_class_get(), typeof(SurfaceWayland), parent) + ) : base(efl_canvas_surface_wayland_class_get(), typeof(SurfaceWayland), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected SurfaceWayland(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected SurfaceWayland(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected SurfaceWayland(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Canvas.SurfaceWayland.efl_canvas_surface_wayland_class_get(); } -} -public class SurfaceWaylandNativeInherit : Efl.Canvas.SurfaceNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.SurfaceWayland.efl_canvas_surface_wayland_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Surface.NativeMethods { - return Efl.Canvas.SurfaceWayland.efl_canvas_surface_wayland_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.SurfaceWayland.efl_canvas_surface_wayland_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_x11.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_x11.eo.cs index aa08f33..0c7c629 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_x11.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_x11.eo.cs @@ -3,75 +3,98 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Native X11 surface for Efl canvas -[SurfaceX11NativeInherit] +[Efl.Canvas.SurfaceX11.NativeMethods] public class SurfaceX11 : Efl.Canvas.Surface, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (SurfaceX11)) - return Efl.Canvas.SurfaceX11NativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(SurfaceX11)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_surface_x11_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public SurfaceX11(Efl.Object parent= null - ) : - base(efl_canvas_surface_x11_class_get(), typeof(SurfaceX11), parent) + ) : base(efl_canvas_surface_x11_class_get(), typeof(SurfaceX11), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected SurfaceX11(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected SurfaceX11(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected SurfaceX11(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// This is a helper for . /// X11 Visual for this Pixmap. /// X11 Pixmap ID. - /// - virtual public void GetPixmap( out System.IntPtr visual, out uint pixmap) { - Efl.Canvas.SurfaceX11NativeInherit.efl_canvas_surface_x11_pixmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out visual, out pixmap); + virtual public void GetPixmap(out System.IntPtr visual, out uint pixmap) { + Efl.Canvas.SurfaceX11.NativeMethods.efl_canvas_surface_x11_pixmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out visual, out pixmap); Eina.Error.RaiseIfUnhandledException(); } /// This is a helper for . /// X11 Visual for this Pixmap. /// X11 Pixmap ID. /// true on success, false otherwise - virtual public bool SetPixmap( System.IntPtr visual, uint pixmap) { - var _ret_var = Efl.Canvas.SurfaceX11NativeInherit.efl_canvas_surface_x11_pixmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), visual, pixmap); + virtual public bool SetPixmap(System.IntPtr visual, uint pixmap) { + var _ret_var = Efl.Canvas.SurfaceX11.NativeMethods.efl_canvas_surface_x11_pixmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),visual, pixmap); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -79,84 +102,133 @@ public class SurfaceX11 : Efl.Canvas.Surface, Efl.Eo.IWrapper { return Efl.Canvas.SurfaceX11.efl_canvas_surface_x11_class_get(); } -} -public class SurfaceX11NativeInherit : Efl.Canvas.SurfaceNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Surface.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_canvas_surface_x11_pixmap_get_static_delegate == null) - efl_canvas_surface_x11_pixmap_get_static_delegate = new efl_canvas_surface_x11_pixmap_get_delegate(pixmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetPixmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_surface_x11_pixmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_surface_x11_pixmap_get_static_delegate)}); - if (efl_canvas_surface_x11_pixmap_set_static_delegate == null) - efl_canvas_surface_x11_pixmap_set_static_delegate = new efl_canvas_surface_x11_pixmap_set_delegate(pixmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetPixmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_surface_x11_pixmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_surface_x11_pixmap_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.SurfaceX11.efl_canvas_surface_x11_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Canvas.SurfaceX11.efl_canvas_surface_x11_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_canvas_surface_x11_pixmap_get_static_delegate == null) + { + efl_canvas_surface_x11_pixmap_get_static_delegate = new efl_canvas_surface_x11_pixmap_get_delegate(pixmap_get); + } - private delegate void efl_canvas_surface_x11_pixmap_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr visual, out uint pixmap); + if (methods.FirstOrDefault(m => m.Name == "GetPixmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_surface_x11_pixmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_surface_x11_pixmap_get_static_delegate) }); + } + if (efl_canvas_surface_x11_pixmap_set_static_delegate == null) + { + efl_canvas_surface_x11_pixmap_set_static_delegate = new efl_canvas_surface_x11_pixmap_set_delegate(pixmap_set); + } - public delegate void efl_canvas_surface_x11_pixmap_get_api_delegate(System.IntPtr obj, out System.IntPtr visual, out uint pixmap); - public static Efl.Eo.FunctionWrapper efl_canvas_surface_x11_pixmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_surface_x11_pixmap_get"); - private static void pixmap_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr visual, out uint pixmap) - { - Eina.Log.Debug("function efl_canvas_surface_x11_pixmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - visual = default(System.IntPtr); pixmap = default(uint); - try { - ((SurfaceX11)wrapper).GetPixmap( out visual, out pixmap); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPixmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_surface_x11_pixmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_surface_x11_pixmap_set_static_delegate) }); } - } else { - efl_canvas_surface_x11_pixmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out visual, out pixmap); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.SurfaceX11.efl_canvas_surface_x11_class_get(); } - } - private static efl_canvas_surface_x11_pixmap_get_delegate efl_canvas_surface_x11_pixmap_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_surface_x11_pixmap_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr visual, uint pixmap); + + private delegate void efl_canvas_surface_x11_pixmap_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr visual, out uint pixmap); + + public delegate void efl_canvas_surface_x11_pixmap_get_api_delegate(System.IntPtr obj, out System.IntPtr visual, out uint pixmap); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_surface_x11_pixmap_set_api_delegate(System.IntPtr obj, System.IntPtr visual, uint pixmap); - public static Efl.Eo.FunctionWrapper efl_canvas_surface_x11_pixmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_surface_x11_pixmap_set"); - private static bool pixmap_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr visual, uint pixmap) - { - Eina.Log.Debug("function efl_canvas_surface_x11_pixmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((SurfaceX11)wrapper).SetPixmap( visual, pixmap); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_canvas_surface_x11_pixmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_surface_x11_pixmap_get"); + + private static void pixmap_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr visual, out uint pixmap) + { + Eina.Log.Debug("function efl_canvas_surface_x11_pixmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + visual = default(System.IntPtr); pixmap = default(uint); + try + { + ((SurfaceX11)wrapper).GetPixmap(out visual, out pixmap); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_surface_x11_pixmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out visual, out pixmap); } + } + + private static efl_canvas_surface_x11_pixmap_get_delegate efl_canvas_surface_x11_pixmap_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_surface_x11_pixmap_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr visual, uint pixmap); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_surface_x11_pixmap_set_api_delegate(System.IntPtr obj, System.IntPtr visual, uint pixmap); + + public static Efl.Eo.FunctionWrapper efl_canvas_surface_x11_pixmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_surface_x11_pixmap_set"); + + private static bool pixmap_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr visual, uint pixmap) + { + Eina.Log.Debug("function efl_canvas_surface_x11_pixmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((SurfaceX11)wrapper).SetPixmap(visual, pixmap); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_canvas_surface_x11_pixmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), visual, pixmap); + + } + else + { + return efl_canvas_surface_x11_pixmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), visual, pixmap); + } } - } - private static efl_canvas_surface_x11_pixmap_set_delegate efl_canvas_surface_x11_pixmap_set_static_delegate; + + private static efl_canvas_surface_x11_pixmap_set_delegate efl_canvas_surface_x11_pixmap_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } -namespace Efl { namespace Canvas { +} + +} + +namespace Efl { + +namespace Canvas { + /// The type used by . [StructLayout(LayoutKind.Sequential)] public struct SurfaceX11Pixmap @@ -167,8 +239,8 @@ public struct SurfaceX11Pixmap public uint Pixmap; ///Constructor for SurfaceX11Pixmap. public SurfaceX11Pixmap( - System.IntPtr Visual=default(System.IntPtr), - uint Pixmap=default(uint) ) + System.IntPtr Visual = default(System.IntPtr), + uint Pixmap = default(uint) ) { this.Visual = Visual; this.Pixmap = Pixmap; @@ -210,4 +282,7 @@ public struct SurfaceX11Pixmap } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_text_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_text_factory.eo.cs index 31df277..5afb15b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_text_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_text_factory.eo.cs @@ -3,19 +3,22 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { +namespace Efl { + +namespace Canvas { + /// Object factory that creates Efl.Canvas.Object objects. /// Translates a given key to an object (item), to be later placed in a text for higher level usages. The translation implementation is left to be decided by the inheriting class, whether it is by treating the key as an image path, or a key associated with a real-path in a hashtable or something else entirely. -[ITextFactoryNativeInherit] +[Efl.Canvas.ITextFactoryConcrete.NativeMethods] public interface ITextFactory : Efl.Eo.IWrapper, IDisposable { /// Translates a given key to an item object, and returns the object. The returned object should be owned by the passed object. /// The parent of the created object /// Key that is associated to an item object -/// -Efl.Canvas.Object Create( Efl.Canvas.Object kw_object, System.String key); +Efl.Canvas.Object Create(Efl.Canvas.Object kw_object, System.String key); } /// Object factory that creates Efl.Canvas.Object objects. /// Translates a given key to an object (item), to be later placed in a text for higher level usages. The translation implementation is left to be decided by the inheriting class, whether it is by treating the key as an image path, or a key associated with a real-path in a hashtable or something else entirely. @@ -25,74 +28,108 @@ ITextFactory { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextFactoryConcrete)) - return Efl.Canvas.ITextFactoryNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextFactoryConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_text_factory_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextFactoryConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextFactoryConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Translates a given key to an item object, and returns the object. The returned object should be owned by the passed object. /// The parent of the created object /// Key that is associated to an item object - /// - public Efl.Canvas.Object Create( Efl.Canvas.Object kw_object, System.String key) { - var _ret_var = Efl.Canvas.ITextFactoryNativeInherit.efl_canvas_text_factory_create_ptr.Value.Delegate(this.NativeHandle, kw_object, key); + public Efl.Canvas.Object Create(Efl.Canvas.Object kw_object, System.String key) { + var _ret_var = Efl.Canvas.ITextFactoryConcrete.NativeMethods.efl_canvas_text_factory_create_ptr.Value.Delegate(this.NativeHandle,kw_object, key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -100,51 +137,80 @@ ITextFactory { return Efl.Canvas.ITextFactoryConcrete.efl_canvas_text_factory_interface_get(); } -} -public class ITextFactoryNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_canvas_text_factory_create_static_delegate == null) - efl_canvas_text_factory_create_static_delegate = new efl_canvas_text_factory_create_delegate(create); - if (methods.FirstOrDefault(m => m.Name == "Create") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_text_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_text_factory_create_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.ITextFactoryConcrete.efl_canvas_text_factory_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Canvas.ITextFactoryConcrete.efl_canvas_text_factory_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_canvas_text_factory_create_static_delegate == null) + { + efl_canvas_text_factory_create_static_delegate = new efl_canvas_text_factory_create_delegate(create); + } + + if (methods.FirstOrDefault(m => m.Name == "Create") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_text_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_text_factory_create_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.Canvas.ITextFactoryConcrete.efl_canvas_text_factory_interface_get(); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_canvas_text_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + #pragma warning disable CA1707, SA1300, SA1600 + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_canvas_text_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_canvas_text_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_canvas_text_factory_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_text_factory_create"); + + private static Efl.Canvas.Object create(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_object, System.String key) + { + Eina.Log.Debug("function efl_canvas_text_factory_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((ITextFactory)wrapper).Create(kw_object, key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_canvas_text_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_canvas_text_factory_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_text_factory_create"); - private static Efl.Canvas.Object create(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_object, System.String key) - { - Eina.Log.Debug("function efl_canvas_text_factory_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((ITextFactory)wrapper).Create( kw_object, key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_canvas_text_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object, key); + + } + else + { + return efl_canvas_text_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object, key); + } } - } - private static efl_canvas_text_factory_create_delegate efl_canvas_text_factory_create_static_delegate; + + private static efl_canvas_text_factory_create_delegate efl_canvas_text_factory_create_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_container.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_container.eo.cs index 88a4879..bb1ba68 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_container.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_container.eo.cs @@ -3,73 +3,99 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { namespace Vg { +namespace Efl { + +namespace Canvas { + +namespace Vg { + /// Efl vector graphics container class -[ContainerNativeInherit] +[Efl.Canvas.Vg.Container.NativeMethods] public class Container : Efl.Canvas.Vg.Node, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Container)) - return Efl.Canvas.Vg.ContainerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Container)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_vg_container_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Container(Efl.Object parent= null - ) : - base(efl_canvas_vg_container_class_get(), typeof(Container), parent) + ) : base(efl_canvas_vg_container_class_get(), typeof(Container), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Container(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Container(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Container(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Get child of container /// Child node name /// Child object - virtual public Efl.Canvas.Vg.Node GetChild( System.String name) { - var _ret_var = Efl.Canvas.Vg.ContainerNativeInherit.efl_canvas_vg_container_child_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Efl.Canvas.Vg.Node GetChild(System.String name) { + var _ret_var = Efl.Canvas.Vg.Container.NativeMethods.efl_canvas_vg_container_child_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get all children of container /// Iterator to children virtual public Eina.Iterator GetChildren() { - var _ret_var = Efl.Canvas.Vg.ContainerNativeInherit.efl_canvas_vg_container_children_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Vg.Container.NativeMethods.efl_canvas_vg_container_children_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -77,81 +103,129 @@ public class Container : Efl.Canvas.Vg.Node, Efl.Eo.IWrapper { return Efl.Canvas.Vg.Container.efl_canvas_vg_container_class_get(); } -} -public class ContainerNativeInherit : Efl.Canvas.Vg.NodeNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_canvas_vg_container_child_get_static_delegate == null) - efl_canvas_vg_container_child_get_static_delegate = new efl_canvas_vg_container_child_get_delegate(child_get); - if (methods.FirstOrDefault(m => m.Name == "GetChild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_container_child_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_container_child_get_static_delegate)}); - if (efl_canvas_vg_container_children_get_static_delegate == null) - efl_canvas_vg_container_children_get_static_delegate = new efl_canvas_vg_container_children_get_delegate(children_get); - if (methods.FirstOrDefault(m => m.Name == "GetChildren") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_container_children_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_container_children_get_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Vg.Container.efl_canvas_vg_container_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Vg.Node.NativeMethods { - return Efl.Canvas.Vg.Container.efl_canvas_vg_container_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_canvas_vg_container_child_get_static_delegate == null) + { + efl_canvas_vg_container_child_get_static_delegate = new efl_canvas_vg_container_child_get_delegate(child_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Vg.Node efl_canvas_vg_container_child_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + if (methods.FirstOrDefault(m => m.Name == "GetChild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_container_child_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_container_child_get_static_delegate) }); + } + if (efl_canvas_vg_container_children_get_static_delegate == null) + { + efl_canvas_vg_container_children_get_static_delegate = new efl_canvas_vg_container_children_get_delegate(children_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Vg.Node efl_canvas_vg_container_child_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_container_child_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_container_child_get"); - private static Efl.Canvas.Vg.Node child_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_canvas_vg_container_child_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Vg.Node _ret_var = default(Efl.Canvas.Vg.Node); - try { - _ret_var = ((Container)wrapper).GetChild( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetChildren") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_container_children_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_container_children_get_static_delegate) }); } - return _ret_var; - } else { - return efl_canvas_vg_container_child_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Vg.Container.efl_canvas_vg_container_class_get(); } - } - private static efl_canvas_vg_container_child_get_delegate efl_canvas_vg_container_child_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate System.IntPtr efl_canvas_vg_container_children_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Vg.Node efl_canvas_vg_container_child_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Vg.Node efl_canvas_vg_container_child_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public delegate System.IntPtr efl_canvas_vg_container_children_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_container_children_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_container_children_get"); - private static System.IntPtr children_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_vg_container_children_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Container)wrapper).GetChildren(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_canvas_vg_container_child_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_container_child_get"); + + private static Efl.Canvas.Vg.Node child_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_canvas_vg_container_child_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Vg.Node _ret_var = default(Efl.Canvas.Vg.Node); + try + { + _ret_var = ((Container)wrapper).GetChild(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_vg_container_child_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); } + } + + private static efl_canvas_vg_container_child_get_delegate efl_canvas_vg_container_child_get_static_delegate; + + + private delegate System.IntPtr efl_canvas_vg_container_children_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_canvas_vg_container_children_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_container_children_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_container_children_get"); + + private static System.IntPtr children_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_vg_container_children_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Container)wrapper).GetChildren(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_canvas_vg_container_children_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_canvas_vg_container_children_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_vg_container_children_get_delegate efl_canvas_vg_container_children_get_static_delegate; + + private static efl_canvas_vg_container_children_get_delegate efl_canvas_vg_container_children_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } } +} +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient.eo.cs index b24103f..0961192 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient.eo.cs @@ -3,36 +3,51 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { namespace Vg { +namespace Efl { + +namespace Canvas { + +namespace Vg { + /// Efl vectopr graphics gradient abstract class -[GradientNativeInherit] +[Efl.Canvas.Vg.Gradient.NativeMethods] public abstract class Gradient : Efl.Canvas.Vg.Node, Efl.Eo.IWrapper,Efl.Gfx.IGradient { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Gradient)) - return Efl.Canvas.Vg.GradientNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Gradient)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_vg_gradient_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Gradient(Efl.Object parent= null - ) : - base(efl_canvas_vg_gradient_class_get(), typeof(Gradient), parent) + ) : base(efl_canvas_vg_gradient_class_get(), typeof(Gradient), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Gradient(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class GradientRealized : Gradient { @@ -40,209 +55,299 @@ public abstract class Gradient : Efl.Canvas.Vg.Node, Efl.Eo.IWrapper,Efl.Gfx.IGr { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Gradient(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Gradient(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) { - var other = obj as Efl.Object; + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) + { + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Get the list of color stops. /// Color stops list /// Length of the list - /// - virtual public void GetStop( out Efl.Gfx.GradientStop colors, out uint length) { + virtual public void GetStop(out Efl.Gfx.GradientStop colors, out uint length) { var _out_colors = new System.IntPtr(); - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_stop_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out _out_colors, out length); + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_stop_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out _out_colors, out length); Eina.Error.RaiseIfUnhandledException(); colors = Eina.PrimitiveConversion.PointerToManaged(_out_colors); } /// Set the list of color stops for the gradient /// Color stops list /// Length of the list - /// - virtual public void SetStop( ref Efl.Gfx.GradientStop colors, uint length) { + virtual public void SetStop(ref Efl.Gfx.GradientStop colors, uint length) { Efl.Gfx.GradientStop.NativeStruct _in_colors = colors; - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_stop_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref _in_colors, length); + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_stop_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref _in_colors, length); Eina.Error.RaiseIfUnhandledException(); colors = _in_colors; } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used virtual public Efl.Gfx.GradientSpread GetSpread() { - var _ret_var = Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_spread_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies the spread method that should be used for this gradient. /// Spread type to be used - /// - virtual public void SetSpread( Efl.Gfx.GradientSpread s) { - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_spread_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), s); + virtual public void SetSpread(Efl.Gfx.GradientSpread s) { + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),s); Eina.Error.RaiseIfUnhandledException(); } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used public Efl.Gfx.GradientSpread Spread { get { return GetSpread(); } - set { SetSpread( value); } + set { SetSpread(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Vg.Gradient.efl_canvas_vg_gradient_class_get(); } -} -public class GradientNativeInherit : Efl.Canvas.Vg.NodeNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_gfx_gradient_stop_get_static_delegate == null) - efl_gfx_gradient_stop_get_static_delegate = new efl_gfx_gradient_stop_get_delegate(stop_get); - if (methods.FirstOrDefault(m => m.Name == "GetStop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_stop_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_get_static_delegate)}); - if (efl_gfx_gradient_stop_set_static_delegate == null) - efl_gfx_gradient_stop_set_static_delegate = new efl_gfx_gradient_stop_set_delegate(stop_set); - if (methods.FirstOrDefault(m => m.Name == "SetStop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_stop_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_set_static_delegate)}); - if (efl_gfx_gradient_spread_get_static_delegate == null) - efl_gfx_gradient_spread_get_static_delegate = new efl_gfx_gradient_spread_get_delegate(spread_get); - if (methods.FirstOrDefault(m => m.Name == "GetSpread") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_spread_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_get_static_delegate)}); - if (efl_gfx_gradient_spread_set_static_delegate == null) - efl_gfx_gradient_spread_set_static_delegate = new efl_gfx_gradient_spread_set_delegate(spread_set); - if (methods.FirstOrDefault(m => m.Name == "SetSpread") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_spread_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Vg.Node.NativeMethods { - return Efl.Canvas.Vg.Gradient.efl_canvas_vg_gradient_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Canvas.Vg.Gradient.efl_canvas_vg_gradient_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_gfx_gradient_stop_get_static_delegate == null) + { + efl_gfx_gradient_stop_get_static_delegate = new efl_gfx_gradient_stop_get_delegate(stop_get); + } - private delegate void efl_gfx_gradient_stop_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length); + if (methods.FirstOrDefault(m => m.Name == "GetStop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_stop_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_get_static_delegate) }); + } + if (efl_gfx_gradient_stop_set_static_delegate == null) + { + efl_gfx_gradient_stop_set_static_delegate = new efl_gfx_gradient_stop_set_delegate(stop_set); + } - public delegate void efl_gfx_gradient_stop_get_api_delegate(System.IntPtr obj, out System.IntPtr colors, out uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_stop_get"); - private static void stop_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length) - { - Eina.Log.Debug("function efl_gfx_gradient_stop_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); - length = default(uint); - try { - ((Gradient)wrapper).GetStop( out _out_colors, out length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetStop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_stop_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_set_static_delegate) }); + } + + if (efl_gfx_gradient_spread_get_static_delegate == null) + { + efl_gfx_gradient_spread_get_static_delegate = new efl_gfx_gradient_spread_get_delegate(spread_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSpread") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_spread_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_get_static_delegate) }); + } + + if (efl_gfx_gradient_spread_set_static_delegate == null) + { + efl_gfx_gradient_spread_set_static_delegate = new efl_gfx_gradient_spread_set_delegate(spread_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSpread") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_spread_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_set_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Vg.Gradient.efl_canvas_vg_gradient_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_gfx_gradient_stop_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length); + + + public delegate void efl_gfx_gradient_stop_get_api_delegate(System.IntPtr obj, out System.IntPtr colors, out uint length); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_stop_get"); + + private static void stop_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length) + { + Eina.Log.Debug("function efl_gfx_gradient_stop_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); + length = default(uint); + try + { + ((Gradient)wrapper).GetStop(out _out_colors, out length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + colors = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_colors); - } else { - efl_gfx_gradient_stop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out colors, out length); + + } + else + { + efl_gfx_gradient_stop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out colors, out length); + } } - } - private static efl_gfx_gradient_stop_get_delegate efl_gfx_gradient_stop_get_static_delegate; + private static efl_gfx_gradient_stop_get_delegate efl_gfx_gradient_stop_get_static_delegate; - private delegate void efl_gfx_gradient_stop_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); + + private delegate void efl_gfx_gradient_stop_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); + + public delegate void efl_gfx_gradient_stop_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); - public delegate void efl_gfx_gradient_stop_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_stop_set"); - private static void stop_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length) - { - Eina.Log.Debug("function efl_gfx_gradient_stop_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientStop _in_colors = colors; + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_stop_set"); + + private static void stop_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length) + { + Eina.Log.Debug("function efl_gfx_gradient_stop_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientStop _in_colors = colors; - try { - ((Gradient)wrapper).SetStop( ref _in_colors, length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((Gradient)wrapper).SetStop(ref _in_colors, length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + colors = _in_colors; - } else { - efl_gfx_gradient_stop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref colors, length); + + } + else + { + efl_gfx_gradient_stop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref colors, length); + } } - } - private static efl_gfx_gradient_stop_set_delegate efl_gfx_gradient_stop_set_static_delegate; + private static efl_gfx_gradient_stop_set_delegate efl_gfx_gradient_stop_set_static_delegate; - private delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_spread_get"); + + private static Efl.Gfx.GradientSpread spread_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_gradient_spread_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientSpread _ret_var = default(Efl.Gfx.GradientSpread); + try + { + _ret_var = ((Gradient)wrapper).GetSpread(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_spread_get"); - private static Efl.Gfx.GradientSpread spread_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_gradient_spread_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientSpread _ret_var = default(Efl.Gfx.GradientSpread); - try { - _ret_var = ((Gradient)wrapper).GetSpread(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_gradient_spread_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_gradient_spread_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_gradient_spread_get_delegate efl_gfx_gradient_spread_get_static_delegate; + private static efl_gfx_gradient_spread_get_delegate efl_gfx_gradient_spread_get_static_delegate; - private delegate void efl_gfx_gradient_spread_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s); + + private delegate void efl_gfx_gradient_spread_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s); + + public delegate void efl_gfx_gradient_spread_set_api_delegate(System.IntPtr obj, Efl.Gfx.GradientSpread s); - public delegate void efl_gfx_gradient_spread_set_api_delegate(System.IntPtr obj, Efl.Gfx.GradientSpread s); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_spread_set"); - private static void spread_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s) - { - Eina.Log.Debug("function efl_gfx_gradient_spread_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Gradient)wrapper).SetSpread( s); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_spread_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_spread_set"); + + private static void spread_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s) + { + Eina.Log.Debug("function efl_gfx_gradient_spread_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Gradient)wrapper).SetSpread(s); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_spread_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); + } } - } - private static efl_gfx_gradient_spread_set_delegate efl_gfx_gradient_spread_set_static_delegate; + + private static efl_gfx_gradient_spread_set_delegate efl_gfx_gradient_spread_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } } +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_linear.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_linear.eo.cs index 03acfb9..049a5d4 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_linear.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_linear.eo.cs @@ -3,226 +3,330 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { namespace Vg { +namespace Efl { + +namespace Canvas { + +namespace Vg { + /// Efl vector graphics gradient linear class -[GradientLinearNativeInherit] +[Efl.Canvas.Vg.GradientLinear.NativeMethods] public class GradientLinear : Efl.Canvas.Vg.Gradient, Efl.Eo.IWrapper,Efl.Gfx.IGradientLinear { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GradientLinear)) - return Efl.Canvas.Vg.GradientLinearNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GradientLinear)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_vg_gradient_linear_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public GradientLinear(Efl.Object parent= null - ) : - base(efl_canvas_vg_gradient_linear_class_get(), typeof(GradientLinear), parent) + ) : base(efl_canvas_vg_gradient_linear_class_get(), typeof(GradientLinear), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GradientLinear(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GradientLinear(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GradientLinear(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Gets the start point of this linear gradient. /// X co-ordinate of start point /// Y co-ordinate of start point - /// - virtual public void GetStart( out double x, out double y) { - Efl.Gfx.IGradientLinearNativeInherit.efl_gfx_gradient_linear_start_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetStart(out double x, out double y) { + Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_start_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Sets the start point of this linear gradient. /// X co-ordinate of start point /// Y co-ordinate of start point - /// - virtual public void SetStart( double x, double y) { - Efl.Gfx.IGradientLinearNativeInherit.efl_gfx_gradient_linear_start_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetStart(double x, double y) { + Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_start_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Gets the end point of this linear gradient. /// X co-ordinate of end point /// Y co-ordinate of end point - /// - virtual public void GetEnd( out double x, out double y) { - Efl.Gfx.IGradientLinearNativeInherit.efl_gfx_gradient_linear_end_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetEnd(out double x, out double y) { + Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_end_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Sets the end point of this linear gradient. /// X co-ordinate of end point /// Y co-ordinate of end point - /// - virtual public void SetEnd( double x, double y) { - Efl.Gfx.IGradientLinearNativeInherit.efl_gfx_gradient_linear_end_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetEnd(double x, double y) { + Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_end_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Vg.GradientLinear.efl_canvas_vg_gradient_linear_class_get(); } -} -public class GradientLinearNativeInherit : Efl.Canvas.Vg.GradientNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_gfx_gradient_linear_start_get_static_delegate == null) - efl_gfx_gradient_linear_start_get_static_delegate = new efl_gfx_gradient_linear_start_get_delegate(start_get); - if (methods.FirstOrDefault(m => m.Name == "GetStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_start_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_get_static_delegate)}); - if (efl_gfx_gradient_linear_start_set_static_delegate == null) - efl_gfx_gradient_linear_start_set_static_delegate = new efl_gfx_gradient_linear_start_set_delegate(start_set); - if (methods.FirstOrDefault(m => m.Name == "SetStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_start_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_set_static_delegate)}); - if (efl_gfx_gradient_linear_end_get_static_delegate == null) - efl_gfx_gradient_linear_end_get_static_delegate = new efl_gfx_gradient_linear_end_get_delegate(end_get); - if (methods.FirstOrDefault(m => m.Name == "GetEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_end_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_get_static_delegate)}); - if (efl_gfx_gradient_linear_end_set_static_delegate == null) - efl_gfx_gradient_linear_end_set_static_delegate = new efl_gfx_gradient_linear_end_set_delegate(end_set); - if (methods.FirstOrDefault(m => m.Name == "SetEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_end_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Vg.GradientLinear.efl_canvas_vg_gradient_linear_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Vg.Gradient.NativeMethods { - return Efl.Canvas.Vg.GradientLinear.efl_canvas_vg_gradient_linear_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_gfx_gradient_linear_start_get_static_delegate == null) + { + efl_gfx_gradient_linear_start_get_static_delegate = new efl_gfx_gradient_linear_start_get_delegate(start_get); + } - private delegate void efl_gfx_gradient_linear_start_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (methods.FirstOrDefault(m => m.Name == "GetStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_start_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_get_static_delegate) }); + } + if (efl_gfx_gradient_linear_start_set_static_delegate == null) + { + efl_gfx_gradient_linear_start_set_static_delegate = new efl_gfx_gradient_linear_start_set_delegate(start_set); + } - public delegate void efl_gfx_gradient_linear_start_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_start_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_linear_start_get"); - private static void start_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_gradient_linear_start_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((GradientLinear)wrapper).GetStart( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_linear_start_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + if (methods.FirstOrDefault(m => m.Name == "SetStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_start_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_set_static_delegate) }); + } + + if (efl_gfx_gradient_linear_end_get_static_delegate == null) + { + efl_gfx_gradient_linear_end_get_static_delegate = new efl_gfx_gradient_linear_end_get_delegate(end_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_end_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_get_static_delegate) }); + } + + if (efl_gfx_gradient_linear_end_set_static_delegate == null) + { + efl_gfx_gradient_linear_end_set_static_delegate = new efl_gfx_gradient_linear_end_set_delegate(end_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_end_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Vg.GradientLinear.efl_canvas_vg_gradient_linear_class_get(); } - } - private static efl_gfx_gradient_linear_start_get_delegate efl_gfx_gradient_linear_start_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_gfx_gradient_linear_start_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_gfx_gradient_linear_start_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + public delegate void efl_gfx_gradient_linear_start_get_api_delegate(System.IntPtr obj, out double x, out double y); - public delegate void efl_gfx_gradient_linear_start_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_start_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_linear_start_set"); - private static void start_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_gradient_linear_start_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((GradientLinear)wrapper).SetStart( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_linear_start_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_start_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_start_get"); + + private static void start_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_gradient_linear_start_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((GradientLinear)wrapper).GetStart(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_linear_start_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } } - } - private static efl_gfx_gradient_linear_start_set_delegate efl_gfx_gradient_linear_start_set_static_delegate; + private static efl_gfx_gradient_linear_start_get_delegate efl_gfx_gradient_linear_start_get_static_delegate; - private delegate void efl_gfx_gradient_linear_end_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + private delegate void efl_gfx_gradient_linear_start_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + public delegate void efl_gfx_gradient_linear_start_set_api_delegate(System.IntPtr obj, double x, double y); - public delegate void efl_gfx_gradient_linear_end_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_end_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_linear_end_get"); - private static void end_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_gradient_linear_end_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((GradientLinear)wrapper).GetEnd( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_linear_end_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_start_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_start_set"); + + private static void start_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_gradient_linear_start_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((GradientLinear)wrapper).SetStart(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_linear_start_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } } - } - private static efl_gfx_gradient_linear_end_get_delegate efl_gfx_gradient_linear_end_get_static_delegate; + private static efl_gfx_gradient_linear_start_set_delegate efl_gfx_gradient_linear_start_set_static_delegate; - private delegate void efl_gfx_gradient_linear_end_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_gfx_gradient_linear_end_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + public delegate void efl_gfx_gradient_linear_end_get_api_delegate(System.IntPtr obj, out double x, out double y); - public delegate void efl_gfx_gradient_linear_end_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_end_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_linear_end_set"); - private static void end_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_gradient_linear_end_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((GradientLinear)wrapper).SetEnd( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_linear_end_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_end_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_end_get"); + + private static void end_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_gradient_linear_end_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((GradientLinear)wrapper).GetEnd(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_linear_end_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } } - } - private static efl_gfx_gradient_linear_end_set_delegate efl_gfx_gradient_linear_end_set_static_delegate; + + private static efl_gfx_gradient_linear_end_get_delegate efl_gfx_gradient_linear_end_get_static_delegate; + + + private delegate void efl_gfx_gradient_linear_end_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_gradient_linear_end_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_end_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_end_set"); + + private static void end_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_gradient_linear_end_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((GradientLinear)wrapper).SetEnd(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_linear_end_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_gfx_gradient_linear_end_set_delegate efl_gfx_gradient_linear_end_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_radial.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_radial.eo.cs index d046826..1715e55 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_radial.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_radial.eo.cs @@ -3,303 +3,440 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { namespace Vg { +namespace Efl { + +namespace Canvas { + +namespace Vg { + /// Efl vector graphics gradient radial class -[GradientRadialNativeInherit] +[Efl.Canvas.Vg.GradientRadial.NativeMethods] public class GradientRadial : Efl.Canvas.Vg.Gradient, Efl.Eo.IWrapper,Efl.Gfx.IGradientRadial { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GradientRadial)) - return Efl.Canvas.Vg.GradientRadialNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GradientRadial)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_vg_gradient_radial_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public GradientRadial(Efl.Object parent= null - ) : - base(efl_canvas_vg_gradient_radial_class_get(), typeof(GradientRadial), parent) + ) : base(efl_canvas_vg_gradient_radial_class_get(), typeof(GradientRadial), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GradientRadial(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GradientRadial(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GradientRadial(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Gets the center of this radial gradient. /// X co-ordinate of center point /// Y co-ordinate of center point - /// - virtual public void GetCenter( out double x, out double y) { - Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_center_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetCenter(out double x, out double y) { + Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_center_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Sets the center of this radial gradient. /// X co-ordinate of center point /// Y co-ordinate of center point - /// - virtual public void SetCenter( double x, double y) { - Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_center_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetCenter(double x, double y) { + Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_center_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Gets the center radius of this radial gradient. /// Center radius virtual public double GetRadius() { - var _ret_var = Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_radius_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_radius_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the center radius of this radial gradient. /// Center radius - /// - virtual public void SetRadius( double r) { - Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_radius_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r); + virtual public void SetRadius(double r) { + Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_radius_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r); Eina.Error.RaiseIfUnhandledException(); } /// Gets the focal point of this radial gradient. /// X co-ordinate of focal point /// Y co-ordinate of focal point - /// - virtual public void GetFocal( out double x, out double y) { - Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_focal_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetFocal(out double x, out double y) { + Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_focal_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Sets the focal point of this radial gradient. /// X co-ordinate of focal point /// Y co-ordinate of focal point - /// - virtual public void SetFocal( double x, double y) { - Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_focal_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetFocal(double x, double y) { + Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_focal_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Gets the center radius of this radial gradient. /// Center radius public double Radius { get { return GetRadius(); } - set { SetRadius( value); } + set { SetRadius(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Vg.GradientRadial.efl_canvas_vg_gradient_radial_class_get(); } -} -public class GradientRadialNativeInherit : Efl.Canvas.Vg.GradientNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_gfx_gradient_radial_center_get_static_delegate == null) - efl_gfx_gradient_radial_center_get_static_delegate = new efl_gfx_gradient_radial_center_get_delegate(center_get); - if (methods.FirstOrDefault(m => m.Name == "GetCenter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_center_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_center_get_static_delegate)}); - if (efl_gfx_gradient_radial_center_set_static_delegate == null) - efl_gfx_gradient_radial_center_set_static_delegate = new efl_gfx_gradient_radial_center_set_delegate(center_set); - if (methods.FirstOrDefault(m => m.Name == "SetCenter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_center_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_center_set_static_delegate)}); - if (efl_gfx_gradient_radial_radius_get_static_delegate == null) - efl_gfx_gradient_radial_radius_get_static_delegate = new efl_gfx_gradient_radial_radius_get_delegate(radius_get); - if (methods.FirstOrDefault(m => m.Name == "GetRadius") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_radius_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_radius_get_static_delegate)}); - if (efl_gfx_gradient_radial_radius_set_static_delegate == null) - efl_gfx_gradient_radial_radius_set_static_delegate = new efl_gfx_gradient_radial_radius_set_delegate(radius_set); - if (methods.FirstOrDefault(m => m.Name == "SetRadius") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_radius_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_radius_set_static_delegate)}); - if (efl_gfx_gradient_radial_focal_get_static_delegate == null) - efl_gfx_gradient_radial_focal_get_static_delegate = new efl_gfx_gradient_radial_focal_get_delegate(focal_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_focal_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_focal_get_static_delegate)}); - if (efl_gfx_gradient_radial_focal_set_static_delegate == null) - efl_gfx_gradient_radial_focal_set_static_delegate = new efl_gfx_gradient_radial_focal_set_delegate(focal_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_focal_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_focal_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Vg.GradientRadial.efl_canvas_vg_gradient_radial_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Vg.Gradient.NativeMethods { - return Efl.Canvas.Vg.GradientRadial.efl_canvas_vg_gradient_radial_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_gfx_gradient_radial_center_get_static_delegate == null) + { + efl_gfx_gradient_radial_center_get_static_delegate = new efl_gfx_gradient_radial_center_get_delegate(center_get); + } - private delegate void efl_gfx_gradient_radial_center_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (methods.FirstOrDefault(m => m.Name == "GetCenter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_center_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_center_get_static_delegate) }); + } + if (efl_gfx_gradient_radial_center_set_static_delegate == null) + { + efl_gfx_gradient_radial_center_set_static_delegate = new efl_gfx_gradient_radial_center_set_delegate(center_set); + } - public delegate void efl_gfx_gradient_radial_center_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_center_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_center_get"); - private static void center_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_center_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((GradientRadial)wrapper).GetCenter( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCenter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_center_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_center_set_static_delegate) }); + } + + if (efl_gfx_gradient_radial_radius_get_static_delegate == null) + { + efl_gfx_gradient_radial_radius_get_static_delegate = new efl_gfx_gradient_radial_radius_get_delegate(radius_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRadius") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_radius_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_radius_get_static_delegate) }); + } + + if (efl_gfx_gradient_radial_radius_set_static_delegate == null) + { + efl_gfx_gradient_radial_radius_set_static_delegate = new efl_gfx_gradient_radial_radius_set_delegate(radius_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRadius") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_radius_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_radius_set_static_delegate) }); } - } else { - efl_gfx_gradient_radial_center_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + + if (efl_gfx_gradient_radial_focal_get_static_delegate == null) + { + efl_gfx_gradient_radial_focal_get_static_delegate = new efl_gfx_gradient_radial_focal_get_delegate(focal_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_focal_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_focal_get_static_delegate) }); + } + + if (efl_gfx_gradient_radial_focal_set_static_delegate == null) + { + efl_gfx_gradient_radial_focal_set_static_delegate = new efl_gfx_gradient_radial_focal_set_delegate(focal_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFocal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_focal_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_focal_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Vg.GradientRadial.efl_canvas_vg_gradient_radial_class_get(); } - } - private static efl_gfx_gradient_radial_center_get_delegate efl_gfx_gradient_radial_center_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_gfx_gradient_radial_center_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_gfx_gradient_radial_center_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + public delegate void efl_gfx_gradient_radial_center_get_api_delegate(System.IntPtr obj, out double x, out double y); - public delegate void efl_gfx_gradient_radial_center_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_center_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_center_set"); - private static void center_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_center_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((GradientRadial)wrapper).SetCenter( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_center_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_center_get"); + + private static void center_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_center_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((GradientRadial)wrapper).GetCenter(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_radial_center_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } else { - efl_gfx_gradient_radial_center_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } - private static efl_gfx_gradient_radial_center_set_delegate efl_gfx_gradient_radial_center_set_static_delegate; + private static efl_gfx_gradient_radial_center_get_delegate efl_gfx_gradient_radial_center_get_static_delegate; - private delegate double efl_gfx_gradient_radial_radius_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_gradient_radial_center_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + public delegate void efl_gfx_gradient_radial_center_set_api_delegate(System.IntPtr obj, double x, double y); - public delegate double efl_gfx_gradient_radial_radius_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_radius_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_radius_get"); - private static double radius_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_radius_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((GradientRadial)wrapper).GetRadius(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_center_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_center_set"); + + private static void center_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_center_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((GradientRadial)wrapper).SetCenter(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_radial_center_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } + } + + private static efl_gfx_gradient_radial_center_set_delegate efl_gfx_gradient_radial_center_set_static_delegate; + + + private delegate double efl_gfx_gradient_radial_radius_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_gradient_radial_radius_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_radius_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_radius_get"); + + private static double radius_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_radius_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((GradientRadial)wrapper).GetRadius(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_gradient_radial_radius_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_gradient_radial_radius_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_gradient_radial_radius_get_delegate efl_gfx_gradient_radial_radius_get_static_delegate; + private static efl_gfx_gradient_radial_radius_get_delegate efl_gfx_gradient_radial_radius_get_static_delegate; - private delegate void efl_gfx_gradient_radial_radius_set_delegate(System.IntPtr obj, System.IntPtr pd, double r); + + private delegate void efl_gfx_gradient_radial_radius_set_delegate(System.IntPtr obj, System.IntPtr pd, double r); + + public delegate void efl_gfx_gradient_radial_radius_set_api_delegate(System.IntPtr obj, double r); - public delegate void efl_gfx_gradient_radial_radius_set_api_delegate(System.IntPtr obj, double r); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_radius_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_radius_set"); - private static void radius_set(System.IntPtr obj, System.IntPtr pd, double r) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_radius_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((GradientRadial)wrapper).SetRadius( r); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_radius_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_radius_set"); + + private static void radius_set(System.IntPtr obj, System.IntPtr pd, double r) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_radius_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((GradientRadial)wrapper).SetRadius(r); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_radial_radius_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r); } - } else { - efl_gfx_gradient_radial_radius_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r); } - } - private static efl_gfx_gradient_radial_radius_set_delegate efl_gfx_gradient_radial_radius_set_static_delegate; + private static efl_gfx_gradient_radial_radius_set_delegate efl_gfx_gradient_radial_radius_set_static_delegate; - private delegate void efl_gfx_gradient_radial_focal_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + private delegate void efl_gfx_gradient_radial_focal_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + public delegate void efl_gfx_gradient_radial_focal_get_api_delegate(System.IntPtr obj, out double x, out double y); - public delegate void efl_gfx_gradient_radial_focal_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_focal_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_focal_get"); - private static void focal_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_focal_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((GradientRadial)wrapper).GetFocal( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_focal_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_focal_get"); + + private static void focal_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_focal_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((GradientRadial)wrapper).GetFocal(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_radial_focal_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } else { - efl_gfx_gradient_radial_focal_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } - private static efl_gfx_gradient_radial_focal_get_delegate efl_gfx_gradient_radial_focal_get_static_delegate; + private static efl_gfx_gradient_radial_focal_get_delegate efl_gfx_gradient_radial_focal_get_static_delegate; - private delegate void efl_gfx_gradient_radial_focal_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_gfx_gradient_radial_focal_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + public delegate void efl_gfx_gradient_radial_focal_set_api_delegate(System.IntPtr obj, double x, double y); - public delegate void efl_gfx_gradient_radial_focal_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_focal_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_focal_set"); - private static void focal_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_focal_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((GradientRadial)wrapper).SetFocal( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_focal_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_focal_set"); + + private static void focal_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_focal_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((GradientRadial)wrapper).SetFocal(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_radial_focal_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } else { - efl_gfx_gradient_radial_focal_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } - private static efl_gfx_gradient_radial_focal_set_delegate efl_gfx_gradient_radial_focal_set_static_delegate; + + private static efl_gfx_gradient_radial_focal_set_delegate efl_gfx_gradient_radial_focal_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } } +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_node.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_node.eo.cs index 40949eb..091a61d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_node.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_node.eo.cs @@ -3,36 +3,51 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { namespace Vg { +namespace Efl { + +namespace Canvas { + +namespace Vg { + /// Efl vector graphics abstract class -[NodeNativeInherit] +[Efl.Canvas.Vg.Node.NativeMethods] public abstract class Node : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Gfx.IColor,Efl.Gfx.IEntity,Efl.Gfx.IPath,Efl.Gfx.IStack { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Node)) - return Efl.Canvas.Vg.NodeNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Node)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_vg_node_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Node(Efl.Object parent= null - ) : - base(efl_canvas_vg_node_class_get(), typeof(Node), parent) + ) : base(efl_canvas_vg_node_class_get(), typeof(Node), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Node(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class NodeRealized : Node { @@ -40,222 +55,291 @@ public abstract class Node : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Gfx. { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Node(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Node(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) { - var other = obj as Efl.Object; + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) + { + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object VisibilityChangedEvtKey = new object(); + /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) public event EventHandler VisibilityChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.AddHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.RemoveHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event VisibilityChangedEvt. - public void On_VisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) + public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[VisibilityChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_VisibilityChangedEvt_delegate; - private void on_VisibilityChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_VisibilityChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PositionChangedEvtKey = new object(); /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) public event EventHandler PositionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.AddHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PositionChangedEvt. - public void On_PositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) + public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PositionChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PositionChangedEvt_delegate; - private void on_PositionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PositionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object SizeChangedEvtKey = new object(); /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) public event EventHandler SizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.AddHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SizeChangedEvt. - public void On_SizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) + public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SizeChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SizeChangedEvt_delegate; - private void on_SizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_SizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object StackingChangedEvtKey = new object(); /// Object stacking was changed. /// (Since EFL 1.22) public event EventHandler StackingChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_StackingChangedEvt_delegate)) { - eventHandlers.AddHandler(StackingChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_StackingChangedEvt_delegate)) { - eventHandlers.RemoveHandler(StackingChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event StackingChangedEvt. - public void On_StackingChangedEvt(EventArgs e) + public void OnStackingChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[StackingChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_StackingChangedEvt_delegate; - private void on_StackingChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_StackingChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_VisibilityChangedEvt_delegate = new Efl.EventCb(on_VisibilityChangedEvt_NativeCallback); - evt_PositionChangedEvt_delegate = new Efl.EventCb(on_PositionChangedEvt_NativeCallback); - evt_SizeChangedEvt_delegate = new Efl.EventCb(on_SizeChangedEvt_NativeCallback); - evt_StackingChangedEvt_delegate = new Efl.EventCb(on_StackingChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Gets the transformation matrix used for this node object. /// Transformation matrix. virtual public Eina.Matrix3 GetTransformation() { - var _ret_var = Efl.Canvas.Vg.NodeNativeInherit.efl_canvas_vg_node_transformation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Vg.Node.NativeMethods.efl_canvas_vg_node_transformation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); @@ -264,43 +348,39 @@ private static object StackingChangedEvtKey = new object(); /// Sets the transformation matrix to be used for this node object. /// Note: Pass null to cancel the applied transformation. /// Transformation matrix. - /// - virtual public void SetTransformation( ref Eina.Matrix3 m) { + virtual public void SetTransformation(ref Eina.Matrix3 m) { Eina.Matrix3.NativeStruct _in_m = m; - Efl.Canvas.Vg.NodeNativeInherit.efl_canvas_vg_node_transformation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref _in_m); + Efl.Canvas.Vg.Node.NativeMethods.efl_canvas_vg_node_transformation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref _in_m); Eina.Error.RaiseIfUnhandledException(); m = _in_m; } /// Gets the origin position of the node object. /// origin x position. /// origin y position. - /// - virtual public void GetOrigin( out double x, out double y) { - Efl.Canvas.Vg.NodeNativeInherit.efl_canvas_vg_node_origin_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetOrigin(out double x, out double y) { + Efl.Canvas.Vg.Node.NativeMethods.efl_canvas_vg_node_origin_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Sets the origin position of the node object. /// This origin position affects node transformation. /// origin x position. /// origin y position. - /// - virtual public void SetOrigin( double x, double y) { - Efl.Canvas.Vg.NodeNativeInherit.efl_canvas_vg_node_origin_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetOrigin(double x, double y) { + Efl.Canvas.Vg.Node.NativeMethods.efl_canvas_vg_node_origin_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Set Mask Node to this renderer /// Mask object /// Masking Option. Reserved - /// - virtual public void SetMask( Efl.Canvas.Vg.Node mask, int op) { - Efl.Canvas.Vg.NodeNativeInherit.efl_canvas_vg_node_mask_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mask, op); + virtual public void SetMask(Efl.Canvas.Vg.Node mask, int op) { + Efl.Canvas.Vg.Node.NativeMethods.efl_canvas_vg_node_mask_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mask, op); Eina.Error.RaiseIfUnhandledException(); } /// Creates a carbon copy of this object and returns it. /// The newly created object will have no event handlers or anything of the sort. /// Returned carbon copy - virtual public Efl.IDuplicate DoDuplicate() { - var _ret_var = Efl.IDuplicateNativeInherit.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + virtual public Efl.IDuplicate Duplicate() { + var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -313,13 +393,8 @@ private static object StackingChangedEvtKey = new object(); /// /// Use null pointers on the components you're not interested in: they'll be ignored by the function. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - virtual public void GetColor( out int r, out int g, out int b, out int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetColor(out int r, out int g, out int b, out int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Sets the general/main color of the given Evas object to the given one. @@ -327,53 +402,46 @@ private static object StackingChangedEvtKey = new object(); /// /// These color values are expected to be premultiplied by alpha. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - virtual public void SetColor( int r, int g, int b, int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetColor(int r, int g, int b, int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. virtual public System.String GetColorCode() { - var _ret_var = Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the color of given Evas object to the given hex color code(#RRGGBBAA). e.g. efl_gfx_color_code_set(obj, "#FFCCAACC"); /// (Since EFL 1.22) /// the hex color code. - /// - virtual public void SetColorCode( System.String colorcode) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), colorcode); + virtual public void SetColorCode(System.String colorcode) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),colorcode); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the position of the given canvas object. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. virtual public Eina.Position2D GetPosition() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Moves the given canvas object to the given location inside its canvas' viewport. If unchanged this call may be entirely skipped, but if changed this will trigger move events, as well as potential pointer,in or pointer,out events. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. - /// - virtual public void SetPosition( Eina.Position2D pos) { + virtual public void SetPosition(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the (rectangular) size of the given Evas object. /// (Since EFL 1.22) /// A 2D size in pixel units. virtual public Eina.Size2D GetSize() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -381,69 +449,64 @@ private static object StackingChangedEvtKey = new object(); /// Note that setting the actual size of an object might be the job of its container, so this function might have no effect. Look at instead, when manipulating widgets. /// (Since EFL 1.22) /// A 2D size in pixel units. - /// - virtual public void SetSize( Eina.Size2D size) { + virtual public void SetSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. virtual public Eina.Rect GetGeometry() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. - /// - virtual public void SetGeometry( Eina.Rect rect) { + virtual public void SetGeometry(Eina.Rect rect) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves whether or not the given canvas object is visible. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise virtual public bool GetVisible() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Shows or hides this object. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise - /// - virtual public void SetVisible( bool v) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), v); + virtual public void SetVisible(bool v) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),v); Eina.Error.RaiseIfUnhandledException(); } /// Gets an object's scaling factor. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) virtual public double GetScale() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the scaling factor of an object. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) - /// - virtual public void SetScale( double scale) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale); + virtual public void SetScale(double scale) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale); Eina.Error.RaiseIfUnhandledException(); } /// Set the list of commands and points to be used to create the content of path. /// Command list /// Point list - /// - virtual public void GetPath( out Efl.Gfx.PathCommandType op, out double points) { + virtual public void GetPath(out Efl.Gfx.PathCommandType op, out double points) { System.IntPtr _out_op = System.IntPtr.Zero; System.IntPtr _out_points = System.IntPtr.Zero; - Efl.Gfx.IPathNativeInherit.efl_gfx_path_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out _out_op, out _out_points); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out _out_op, out _out_points); Eina.Error.RaiseIfUnhandledException(); op = Eina.PrimitiveConversion.PointerToManaged(_out_op); points = Eina.PrimitiveConversion.PointerToManaged(_out_points); @@ -451,66 +514,58 @@ private static object StackingChangedEvtKey = new object(); /// Set the list of commands and points to be used to create the content of path. /// Command list /// Point list - /// - virtual public void SetPath( Efl.Gfx.PathCommandType op, double points) { + virtual public void SetPath(Efl.Gfx.PathCommandType op, double points) { var _in_op = Eina.PrimitiveConversion.ManagedToPointerAlloc(op); var _in_points = Eina.PrimitiveConversion.ManagedToPointerAlloc(points); - Efl.Gfx.IPathNativeInherit.efl_gfx_path_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_op, _in_points); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_op, _in_points); Eina.Error.RaiseIfUnhandledException(); } /// Path length property /// Commands /// Points - /// - virtual public void GetLength( out uint commands, out uint points) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out commands, out points); + virtual public void GetLength(out uint commands, out uint points) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out commands, out points); Eina.Error.RaiseIfUnhandledException(); } /// Current point coordinates /// X co-ordinate of the current point. /// Y co-ordinate of the current point. - /// - virtual public void GetCurrent( out double x, out double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_current_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetCurrent(out double x, out double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_current_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Current control point coordinates /// X co-ordinate of control point. /// Y co-ordinate of control point. - /// - virtual public void GetCurrentCtrl( out double x, out double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_current_ctrl_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetCurrentCtrl(out double x, out double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_current_ctrl_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Copy the path data from the object specified. /// Shape object from where data will be copied. - /// - virtual public void CopyFrom( Efl.Object dup_from) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_copy_from_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dup_from); + virtual public void CopyFrom(Efl.Object dup_from) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_copy_from_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dup_from); Eina.Error.RaiseIfUnhandledException(); } /// Compute and return the bounding box of the currently set path /// Contain the bounding box of the currently set path - /// - virtual public void GetBounds( out Eina.Rect r) { + virtual public void GetBounds(out Eina.Rect r) { var _out_r = new Eina.Rect.NativeStruct(); - Efl.Gfx.IPathNativeInherit.efl_gfx_path_bounds_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out _out_r); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_bounds_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out _out_r); Eina.Error.RaiseIfUnhandledException(); r = _out_r; } /// Reset the path data of the path object. - /// virtual public void Reset() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Moves the current point to the given point, implicitly starting a new subpath and closing the previous one. /// See also . /// X co-ordinate of the current point. /// Y co-ordinate of the current point. - /// - virtual public void AppendMoveTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_move_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void AppendMoveTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_move_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a straight line from the current position to the given end point. After the line is drawn, the current position is updated to be at the end point of the line. @@ -519,9 +574,8 @@ private static object StackingChangedEvtKey = new object(); /// See also . /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - virtual public void AppendLineTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_line_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void AppendLineTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_line_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a quadratic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x, ctrl_y). After the path is drawn, the current position is updated to be at the end point of the path. @@ -529,18 +583,16 @@ private static object StackingChangedEvtKey = new object(); /// Y co-ordinate of end point of the line. /// X co-ordinate of control point. /// Y co-ordinate of control point. - /// - virtual public void AppendQuadraticTo( double x, double y, double ctrl_x, double ctrl_y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_quadratic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, ctrl_x, ctrl_y); + virtual public void AppendQuadraticTo(double x, double y, double ctrl_x, double ctrl_y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_quadratic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, ctrl_x, ctrl_y); Eina.Error.RaiseIfUnhandledException(); } /// Same as efl_gfx_path_append_quadratic_to() api only difference is that it uses the current control point to draw the bezier. /// See also . /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - virtual public void AppendSquadraticTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_squadratic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void AppendSquadraticTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_squadratic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a cubic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x0, ctrl_y0), and (ctrl_x1, ctrl_y1). After the path is drawn, the current position is updated to be at the end point of the path. @@ -550,9 +602,8 @@ private static object StackingChangedEvtKey = new object(); /// Y co-ordinate of 2nd control point. /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - virtual public void AppendCubicTo( double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_cubic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + virtual public void AppendCubicTo(double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_cubic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); Eina.Error.RaiseIfUnhandledException(); } /// Same as efl_gfx_path_append_cubic_to() api only difference is that it uses the current control point to draw the bezier. @@ -561,9 +612,8 @@ private static object StackingChangedEvtKey = new object(); /// Y co-ordinate of end point of the line. /// X co-ordinate of 2nd control point. /// Y co-ordinate of 2nd control point. - /// - virtual public void AppendScubicTo( double x, double y, double ctrl_x, double ctrl_y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_scubic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, ctrl_x, ctrl_y); + virtual public void AppendScubicTo(double x, double y, double ctrl_x, double ctrl_y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_scubic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, ctrl_x, ctrl_y); Eina.Error.RaiseIfUnhandledException(); } /// Append an arc that connects from the current point int the point list to the given point (x,y). The arc is defined by the given radius in x-direction (rx) and radius in y direction (ry). @@ -575,9 +625,8 @@ private static object StackingChangedEvtKey = new object(); /// X-axis rotation , normally 0. /// Defines whether to draw the larger arc or smaller arc joining two point. /// Defines whether the arc will be drawn counter-clockwise or clockwise from current point to the end point taking into account the large_arc property. - /// - virtual public void AppendArcTo( double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_arc_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, rx, ry, angle, large_arc, sweep); + virtual public void AppendArcTo(double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_arc_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, rx, ry, angle, large_arc, sweep); Eina.Error.RaiseIfUnhandledException(); } /// Append an arc that enclosed in the given rectangle (x, y, w, h). The angle is defined in counter clock wise , use -ve angle for clockwise arc. @@ -587,25 +636,22 @@ private static object StackingChangedEvtKey = new object(); /// Height of the rect. /// Angle at which the arc will start /// @ Length of the arc. - /// - virtual public void AppendArc( double x, double y, double w, double h, double start_angle, double sweep_length) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_arc_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, w, h, start_angle, sweep_length); + virtual public void AppendArc(double x, double y, double w, double h, double start_angle, double sweep_length) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_arc_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, w, h, start_angle, sweep_length); Eina.Error.RaiseIfUnhandledException(); } /// Closes the current subpath by drawing a line to the beginning of the subpath, automatically starting a new path. The current point of the new path is (0, 0). /// If the subpath does not contain any points, this function does nothing. - /// virtual public void CloseAppend() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Append a circle with given center and radius. /// X co-ordinate of the center of the circle. /// Y co-ordinate of the center of the circle. /// Radius of the circle. - /// - virtual public void AppendCircle( double x, double y, double radius) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_circle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, radius); + virtual public void AppendCircle(double x, double y, double radius) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_circle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, radius); Eina.Error.RaiseIfUnhandledException(); } /// Append the given rectangle with rounded corner to the path. @@ -620,16 +666,14 @@ private static object StackingChangedEvtKey = new object(); /// Height of the rectangle. /// The x radius of the rounded corner and should be in range [ 0 to w/2 ] /// The y radius of the rounded corner and should be in range [ 0 to h/2 ] - /// - virtual public void AppendRect( double x, double y, double w, double h, double rx, double ry) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_rect_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, w, h, rx, ry); + virtual public void AppendRect(double x, double y, double w, double h, double rx, double ry) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_rect_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, w, h, rx, ry); Eina.Error.RaiseIfUnhandledException(); } /// Append SVG path data /// SVG path data to append - /// - virtual public void AppendSvgPath( System.String svg_path_data) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_svg_path_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), svg_path_data); + virtual public void AppendSvgPath(System.String svg_path_data) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_svg_path_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),svg_path_data); Eina.Error.RaiseIfUnhandledException(); } /// Creates intermediary path part-way between two paths @@ -640,32 +684,30 @@ private static object StackingChangedEvtKey = new object(); /// Destination path /// Position map in range 0.0 to 1.0 /// true on success, false otherwise - virtual public bool Interpolate( Efl.Object from, Efl.Object to, double pos_map) { - var _ret_var = Efl.Gfx.IPathNativeInherit.efl_gfx_path_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), from, to, pos_map); + virtual public bool Interpolate(Efl.Object from, Efl.Object to, double pos_map) { + var _ret_var = Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from, to, pos_map); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Equal commands in object /// Object /// True on success, false otherwise - virtual public bool EqualCommands( Efl.Object with) { - var _ret_var = Efl.Gfx.IPathNativeInherit.efl_gfx_path_equal_commands_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), with); + virtual public bool EqualCommands(Efl.Object with) { + var _ret_var = Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_equal_commands_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),with); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reserve path commands buffer in advance. If you know the count of path commands coming, you can reserve commands buffer in advance to avoid buffer growing job. /// Commands count to reserve /// Pointers count to reserve - /// - virtual public void Reserve( uint cmd_count, uint pts_count) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_reserve_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cmd_count, pts_count); + virtual public void Reserve(uint cmd_count, uint pts_count) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_reserve_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cmd_count, pts_count); Eina.Error.RaiseIfUnhandledException(); } /// Request to update the path object. /// One path object may get appending several path calls (such as append_cubic, append_rect, etc) to construct the final path data. Here commit means all path data is prepared and now object could update its own internal status based on the last path information. - /// virtual public void Commit() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_commit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_commit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the layer of its canvas that the given object is part of. @@ -673,7 +715,7 @@ private static object StackingChangedEvtKey = new object(); /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . virtual public short GetLayer() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_layer_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_layer_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -687,9 +729,8 @@ private static object StackingChangedEvtKey = new object(); /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . - /// - virtual public void SetLayer( short l) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_layer_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), l); + virtual public void SetLayer(short l) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_layer_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),l); Eina.Error.RaiseIfUnhandledException(); } /// Get the Evas object stacked right below obj @@ -699,7 +740,7 @@ private static object StackingChangedEvtKey = new object(); /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. virtual public Efl.Gfx.IStack GetBelow() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_below_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_below_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -710,7 +751,7 @@ private static object StackingChangedEvtKey = new object(); /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. virtual public Efl.Gfx.IStack GetAbove() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_above_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_above_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -726,9 +767,8 @@ private static object StackingChangedEvtKey = new object(); /// See also , and /// (Since EFL 1.22) /// The object below which to stack - /// - virtual public void StackBelow( Efl.Gfx.IStack below) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_below_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), below); + virtual public void StackBelow(Efl.Gfx.IStack below) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_below_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),below); Eina.Error.RaiseIfUnhandledException(); } /// Raise obj to the top of its layer. @@ -736,9 +776,8 @@ private static object StackingChangedEvtKey = new object(); /// /// See also , and /// (Since EFL 1.22) - /// virtual public void RaiseToTop() { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_raise_to_top_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_raise_to_top_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Stack obj immediately above @@ -753,9 +792,8 @@ private static object StackingChangedEvtKey = new object(); /// See also , and /// (Since EFL 1.22) /// The object above which to stack - /// - virtual public void StackAbove( Efl.Gfx.IStack above) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_above_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), above); + virtual public void StackAbove(Efl.Gfx.IStack above) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_above_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),above); Eina.Error.RaiseIfUnhandledException(); } /// Lower obj to the bottom of its layer. @@ -763,23 +801,22 @@ private static object StackingChangedEvtKey = new object(); /// /// See also , and /// (Since EFL 1.22) - /// virtual public void LowerToBottom() { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Gets the transformation matrix used for this node object. /// Transformation matrix. public Eina.Matrix3 Transformation { get { return GetTransformation(); } - set { SetTransformation( ref value); } + set { SetTransformation(ref value); } } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. public System.String ColorCode { get { return GetColorCode(); } - set { SetColorCode( value); } + set { SetColorCode(value); } } /// The 2D position of a canvas object. /// The position is absolute, in pixels, relative to the top-left corner of the window, within its border decorations (application space). @@ -787,21 +824,21 @@ private static object StackingChangedEvtKey = new object(); /// A 2D coordinate in pixel units. public Eina.Position2D Position { get { return GetPosition(); } - set { SetPosition( value); } + set { SetPosition(value); } } /// The 2D size of a canvas object. /// (Since EFL 1.22) /// A 2D size in pixel units. public Eina.Size2D Size { get { return GetSize(); } - set { SetSize( value); } + set { SetSize(value); } } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. public Eina.Rect Geometry { get { return GetGeometry(); } - set { SetGeometry( value); } + set { SetGeometry(value); } } /// The visibility of a canvas object. /// All canvas objects will become visible by default just before render. This means that it is not required to call after creating an object unless you want to create it without showing it. Note that this behavior is new since 1.21, and only applies to canvas objects created with the EO API (i.e. not the legacy C-only API). Other types of Gfx objects may or may not be visible by default. @@ -811,7 +848,7 @@ private static object StackingChangedEvtKey = new object(); /// true if to make the object visible, false otherwise public bool Visible { get { return GetVisible(); } - set { SetVisible( value); } + set { SetVisible(value); } } /// The scaling factor of an object. /// This property is an individual scaling factor on the object (Edje or UI widget). This property (or Edje's global scaling factor, when applicable), will affect this object's part sizes. If scale is not zero, than the individual scaling will override any global scaling set, for the object obj's parts. Set it back to zero to get the effects of the global scaling again. @@ -821,7 +858,7 @@ private static object StackingChangedEvtKey = new object(); /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) public double Scale { get { return GetScale(); } - set { SetScale( value); } + set { SetScale(value); } } /// Retrieves the layer of its canvas that the given object is part of. /// See also @@ -829,7 +866,7 @@ private static object StackingChangedEvtKey = new object(); /// The number of the layer to place the object on. Must be between and . public short Layer { get { return GetLayer(); } - set { SetLayer( value); } + set { SetLayer(value); } } /// Get the Evas object stacked right below obj /// This function will traverse layers in its search, if there are objects on layers below the one obj is placed at. @@ -853,1505 +890,2403 @@ private static object StackingChangedEvtKey = new object(); { return Efl.Canvas.Vg.Node.efl_canvas_vg_node_class_get(); } -} -public class NodeNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_canvas_vg_node_transformation_get_static_delegate == null) - efl_canvas_vg_node_transformation_get_static_delegate = new efl_canvas_vg_node_transformation_get_delegate(transformation_get); - if (methods.FirstOrDefault(m => m.Name == "GetTransformation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_node_transformation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_node_transformation_get_static_delegate)}); - if (efl_canvas_vg_node_transformation_set_static_delegate == null) - efl_canvas_vg_node_transformation_set_static_delegate = new efl_canvas_vg_node_transformation_set_delegate(transformation_set); - if (methods.FirstOrDefault(m => m.Name == "SetTransformation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_node_transformation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_node_transformation_set_static_delegate)}); - if (efl_canvas_vg_node_origin_get_static_delegate == null) - efl_canvas_vg_node_origin_get_static_delegate = new efl_canvas_vg_node_origin_get_delegate(origin_get); - if (methods.FirstOrDefault(m => m.Name == "GetOrigin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_node_origin_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_node_origin_get_static_delegate)}); - if (efl_canvas_vg_node_origin_set_static_delegate == null) - efl_canvas_vg_node_origin_set_static_delegate = new efl_canvas_vg_node_origin_set_delegate(origin_set); - if (methods.FirstOrDefault(m => m.Name == "SetOrigin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_node_origin_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_node_origin_set_static_delegate)}); - if (efl_canvas_vg_node_mask_set_static_delegate == null) - efl_canvas_vg_node_mask_set_static_delegate = new efl_canvas_vg_node_mask_set_delegate(mask_set); - if (methods.FirstOrDefault(m => m.Name == "SetMask") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_node_mask_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_node_mask_set_static_delegate)}); - if (efl_duplicate_static_delegate == null) - efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); - if (methods.FirstOrDefault(m => m.Name == "DoDuplicate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate)}); - if (efl_gfx_color_get_static_delegate == null) - efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); - if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate)}); - if (efl_gfx_color_set_static_delegate == null) - efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); - if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate)}); - if (efl_gfx_color_code_get_static_delegate == null) - efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate)}); - if (efl_gfx_color_code_set_static_delegate == null) - efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); - if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate)}); - if (efl_gfx_entity_position_get_static_delegate == null) - efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate)}); - if (efl_gfx_entity_position_set_static_delegate == null) - efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate)}); - if (efl_gfx_entity_size_get_static_delegate == null) - efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); - if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate)}); - if (efl_gfx_entity_size_set_static_delegate == null) - efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); - if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate)}); - if (efl_gfx_entity_geometry_get_static_delegate == null) - efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate)}); - if (efl_gfx_entity_geometry_set_static_delegate == null) - efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); - if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate)}); - if (efl_gfx_entity_visible_get_static_delegate == null) - efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); - if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate)}); - if (efl_gfx_entity_visible_set_static_delegate == null) - efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); - if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate)}); - if (efl_gfx_entity_scale_get_static_delegate == null) - efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate)}); - if (efl_gfx_entity_scale_set_static_delegate == null) - efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_static_delegate)}); - if (efl_gfx_path_get_static_delegate == null) - efl_gfx_path_get_static_delegate = new efl_gfx_path_get_delegate(path_get); - if (methods.FirstOrDefault(m => m.Name == "GetPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_get_static_delegate)}); - if (efl_gfx_path_set_static_delegate == null) - efl_gfx_path_set_static_delegate = new efl_gfx_path_set_delegate(path_set); - if (methods.FirstOrDefault(m => m.Name == "SetPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_set_static_delegate)}); - if (efl_gfx_path_length_get_static_delegate == null) - efl_gfx_path_length_get_static_delegate = new efl_gfx_path_length_get_delegate(length_get); - if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_length_get_static_delegate)}); - if (efl_gfx_path_current_get_static_delegate == null) - efl_gfx_path_current_get_static_delegate = new efl_gfx_path_current_get_delegate(current_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_current_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_get_static_delegate)}); - if (efl_gfx_path_current_ctrl_get_static_delegate == null) - efl_gfx_path_current_ctrl_get_static_delegate = new efl_gfx_path_current_ctrl_get_delegate(current_ctrl_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrentCtrl") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_current_ctrl_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_ctrl_get_static_delegate)}); - if (efl_gfx_path_copy_from_static_delegate == null) - efl_gfx_path_copy_from_static_delegate = new efl_gfx_path_copy_from_delegate(copy_from); - if (methods.FirstOrDefault(m => m.Name == "CopyFrom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_copy_from"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_copy_from_static_delegate)}); - if (efl_gfx_path_bounds_get_static_delegate == null) - efl_gfx_path_bounds_get_static_delegate = new efl_gfx_path_bounds_get_delegate(bounds_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounds") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_bounds_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_bounds_get_static_delegate)}); - if (efl_gfx_path_reset_static_delegate == null) - efl_gfx_path_reset_static_delegate = new efl_gfx_path_reset_delegate(reset); - if (methods.FirstOrDefault(m => m.Name == "Reset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reset_static_delegate)}); - if (efl_gfx_path_append_move_to_static_delegate == null) - efl_gfx_path_append_move_to_static_delegate = new efl_gfx_path_append_move_to_delegate(append_move_to); - if (methods.FirstOrDefault(m => m.Name == "AppendMoveTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_move_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_move_to_static_delegate)}); - if (efl_gfx_path_append_line_to_static_delegate == null) - efl_gfx_path_append_line_to_static_delegate = new efl_gfx_path_append_line_to_delegate(append_line_to); - if (methods.FirstOrDefault(m => m.Name == "AppendLineTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_line_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_line_to_static_delegate)}); - if (efl_gfx_path_append_quadratic_to_static_delegate == null) - efl_gfx_path_append_quadratic_to_static_delegate = new efl_gfx_path_append_quadratic_to_delegate(append_quadratic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendQuadraticTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_quadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_quadratic_to_static_delegate)}); - if (efl_gfx_path_append_squadratic_to_static_delegate == null) - efl_gfx_path_append_squadratic_to_static_delegate = new efl_gfx_path_append_squadratic_to_delegate(append_squadratic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendSquadraticTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_squadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_squadratic_to_static_delegate)}); - if (efl_gfx_path_append_cubic_to_static_delegate == null) - efl_gfx_path_append_cubic_to_static_delegate = new efl_gfx_path_append_cubic_to_delegate(append_cubic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendCubicTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_cubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_cubic_to_static_delegate)}); - if (efl_gfx_path_append_scubic_to_static_delegate == null) - efl_gfx_path_append_scubic_to_static_delegate = new efl_gfx_path_append_scubic_to_delegate(append_scubic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendScubicTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_scubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_scubic_to_static_delegate)}); - if (efl_gfx_path_append_arc_to_static_delegate == null) - efl_gfx_path_append_arc_to_static_delegate = new efl_gfx_path_append_arc_to_delegate(append_arc_to); - if (methods.FirstOrDefault(m => m.Name == "AppendArcTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_arc_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_to_static_delegate)}); - if (efl_gfx_path_append_arc_static_delegate == null) - efl_gfx_path_append_arc_static_delegate = new efl_gfx_path_append_arc_delegate(append_arc); - if (methods.FirstOrDefault(m => m.Name == "AppendArc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_arc"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_static_delegate)}); - if (efl_gfx_path_append_close_static_delegate == null) - efl_gfx_path_append_close_static_delegate = new efl_gfx_path_append_close_delegate(append_close); - if (methods.FirstOrDefault(m => m.Name == "CloseAppend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_close"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_close_static_delegate)}); - if (efl_gfx_path_append_circle_static_delegate == null) - efl_gfx_path_append_circle_static_delegate = new efl_gfx_path_append_circle_delegate(append_circle); - if (methods.FirstOrDefault(m => m.Name == "AppendCircle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_circle"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_circle_static_delegate)}); - if (efl_gfx_path_append_rect_static_delegate == null) - efl_gfx_path_append_rect_static_delegate = new efl_gfx_path_append_rect_delegate(append_rect); - if (methods.FirstOrDefault(m => m.Name == "AppendRect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_rect"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_rect_static_delegate)}); - if (efl_gfx_path_append_svg_path_static_delegate == null) - efl_gfx_path_append_svg_path_static_delegate = new efl_gfx_path_append_svg_path_delegate(append_svg_path); - if (methods.FirstOrDefault(m => m.Name == "AppendSvgPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_svg_path"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_svg_path_static_delegate)}); - if (efl_gfx_path_interpolate_static_delegate == null) - efl_gfx_path_interpolate_static_delegate = new efl_gfx_path_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_interpolate_static_delegate)}); - if (efl_gfx_path_equal_commands_static_delegate == null) - efl_gfx_path_equal_commands_static_delegate = new efl_gfx_path_equal_commands_delegate(equal_commands); - if (methods.FirstOrDefault(m => m.Name == "EqualCommands") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_equal_commands"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_equal_commands_static_delegate)}); - if (efl_gfx_path_reserve_static_delegate == null) - efl_gfx_path_reserve_static_delegate = new efl_gfx_path_reserve_delegate(reserve); - if (methods.FirstOrDefault(m => m.Name == "Reserve") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_reserve"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reserve_static_delegate)}); - if (efl_gfx_path_commit_static_delegate == null) - efl_gfx_path_commit_static_delegate = new efl_gfx_path_commit_delegate(commit); - if (methods.FirstOrDefault(m => m.Name == "Commit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_commit"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_commit_static_delegate)}); - if (efl_gfx_stack_layer_get_static_delegate == null) - efl_gfx_stack_layer_get_static_delegate = new efl_gfx_stack_layer_get_delegate(layer_get); - if (methods.FirstOrDefault(m => m.Name == "GetLayer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_layer_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_get_static_delegate)}); - if (efl_gfx_stack_layer_set_static_delegate == null) - efl_gfx_stack_layer_set_static_delegate = new efl_gfx_stack_layer_set_delegate(layer_set); - if (methods.FirstOrDefault(m => m.Name == "SetLayer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_layer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_set_static_delegate)}); - if (efl_gfx_stack_below_get_static_delegate == null) - efl_gfx_stack_below_get_static_delegate = new efl_gfx_stack_below_get_delegate(below_get); - if (methods.FirstOrDefault(m => m.Name == "GetBelow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_below_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_get_static_delegate)}); - if (efl_gfx_stack_above_get_static_delegate == null) - efl_gfx_stack_above_get_static_delegate = new efl_gfx_stack_above_get_delegate(above_get); - if (methods.FirstOrDefault(m => m.Name == "GetAbove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_above_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_get_static_delegate)}); - if (efl_gfx_stack_below_static_delegate == null) - efl_gfx_stack_below_static_delegate = new efl_gfx_stack_below_delegate(stack_below); - if (methods.FirstOrDefault(m => m.Name == "StackBelow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_below"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_static_delegate)}); - if (efl_gfx_stack_raise_to_top_static_delegate == null) - efl_gfx_stack_raise_to_top_static_delegate = new efl_gfx_stack_raise_to_top_delegate(raise_to_top); - if (methods.FirstOrDefault(m => m.Name == "RaiseToTop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_raise_to_top"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_raise_to_top_static_delegate)}); - if (efl_gfx_stack_above_static_delegate == null) - efl_gfx_stack_above_static_delegate = new efl_gfx_stack_above_delegate(stack_above); - if (methods.FirstOrDefault(m => m.Name == "StackAbove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_above"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_static_delegate)}); - if (efl_gfx_stack_lower_to_bottom_static_delegate == null) - efl_gfx_stack_lower_to_bottom_static_delegate = new efl_gfx_stack_lower_to_bottom_delegate(lower_to_bottom); - if (methods.FirstOrDefault(m => m.Name == "LowerToBottom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_lower_to_bottom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_lower_to_bottom_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Canvas.Vg.Node.efl_canvas_vg_node_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Canvas.Vg.Node.efl_canvas_vg_node_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_canvas_vg_node_transformation_get_static_delegate == null) + { + efl_canvas_vg_node_transformation_get_static_delegate = new efl_canvas_vg_node_transformation_get_delegate(transformation_get); + } - private delegate System.IntPtr efl_canvas_vg_node_transformation_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetTransformation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_node_transformation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_node_transformation_get_static_delegate) }); + } + if (efl_canvas_vg_node_transformation_set_static_delegate == null) + { + efl_canvas_vg_node_transformation_set_static_delegate = new efl_canvas_vg_node_transformation_set_delegate(transformation_set); + } - public delegate System.IntPtr efl_canvas_vg_node_transformation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_node_transformation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_node_transformation_get"); - private static System.IntPtr transformation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_vg_node_transformation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Matrix3 _ret_var = default(Eina.Matrix3); - try { - _ret_var = ((Node)wrapper).GetTransformation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetTransformation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_node_transformation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_node_transformation_set_static_delegate) }); } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_canvas_vg_node_transformation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_vg_node_transformation_get_delegate efl_canvas_vg_node_transformation_get_static_delegate; + if (efl_canvas_vg_node_origin_get_static_delegate == null) + { + efl_canvas_vg_node_origin_get_static_delegate = new efl_canvas_vg_node_origin_get_delegate(origin_get); + } - private delegate void efl_canvas_vg_node_transformation_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Matrix3.NativeStruct m); + if (methods.FirstOrDefault(m => m.Name == "GetOrigin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_node_origin_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_node_origin_get_static_delegate) }); + } + if (efl_canvas_vg_node_origin_set_static_delegate == null) + { + efl_canvas_vg_node_origin_set_static_delegate = new efl_canvas_vg_node_origin_set_delegate(origin_set); + } - public delegate void efl_canvas_vg_node_transformation_set_api_delegate(System.IntPtr obj, ref Eina.Matrix3.NativeStruct m); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_node_transformation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_node_transformation_set"); - private static void transformation_set(System.IntPtr obj, System.IntPtr pd, ref Eina.Matrix3.NativeStruct m) - { - Eina.Log.Debug("function efl_canvas_vg_node_transformation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Matrix3 _in_m = m; - - try { - ((Node)wrapper).SetTransformation( ref _in_m); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetOrigin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_node_origin_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_node_origin_set_static_delegate) }); } - m = _in_m; - } else { - efl_canvas_vg_node_transformation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref m); - } - } - private static efl_canvas_vg_node_transformation_set_delegate efl_canvas_vg_node_transformation_set_static_delegate; + if (efl_canvas_vg_node_mask_set_static_delegate == null) + { + efl_canvas_vg_node_mask_set_static_delegate = new efl_canvas_vg_node_mask_set_delegate(mask_set); + } - private delegate void efl_canvas_vg_node_origin_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (methods.FirstOrDefault(m => m.Name == "SetMask") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_node_mask_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_node_mask_set_static_delegate) }); + } + if (efl_duplicate_static_delegate == null) + { + efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); + } - public delegate void efl_canvas_vg_node_origin_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_node_origin_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_node_origin_get"); - private static void origin_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_canvas_vg_node_origin_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((Node)wrapper).GetOrigin( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_vg_node_origin_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_canvas_vg_node_origin_get_delegate efl_canvas_vg_node_origin_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate) }); + } + if (efl_gfx_color_get_static_delegate == null) + { + efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); + } - private delegate void efl_canvas_vg_node_origin_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate) }); + } + if (efl_gfx_color_set_static_delegate == null) + { + efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); + } - public delegate void efl_canvas_vg_node_origin_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_node_origin_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_node_origin_set"); - private static void origin_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_canvas_vg_node_origin_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).SetOrigin( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate) }); } - } else { - efl_canvas_vg_node_origin_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static efl_canvas_vg_node_origin_set_delegate efl_canvas_vg_node_origin_set_static_delegate; + if (efl_gfx_color_code_get_static_delegate == null) + { + efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); + } - private delegate void efl_canvas_vg_node_mask_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Vg.Node mask, int op); + if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate) }); + } + if (efl_gfx_color_code_set_static_delegate == null) + { + efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); + } - public delegate void efl_canvas_vg_node_mask_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Vg.Node mask, int op); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_node_mask_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_node_mask_set"); - private static void mask_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Vg.Node mask, int op) - { - Eina.Log.Debug("function efl_canvas_vg_node_mask_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).SetMask( mask, op); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate) }); } - } else { - efl_canvas_vg_node_mask_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mask, op); - } - } - private static efl_canvas_vg_node_mask_set_delegate efl_canvas_vg_node_mask_set_static_delegate; + if (efl_gfx_entity_position_get_static_delegate == null) + { + efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate) }); + } + if (efl_gfx_entity_position_set_static_delegate == null) + { + efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_duplicate"); - private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_duplicate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IDuplicate _ret_var = default(Efl.IDuplicate); - try { - _ret_var = ((Node)wrapper).DoDuplicate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate) }); } - return _ret_var; - } else { - return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_duplicate_delegate efl_duplicate_static_delegate; + if (efl_gfx_entity_size_get_static_delegate == null) + { + efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); + } - private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate) }); + } + if (efl_gfx_entity_size_set_static_delegate == null) + { + efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); + } - public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_get"); - private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); - try { - ((Node)wrapper).GetColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate) }); + } + if (efl_gfx_entity_geometry_get_static_delegate == null) + { + efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); + } - private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate) }); + } + if (efl_gfx_entity_geometry_set_static_delegate == null) + { + efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); + } - public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_set"); - private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).SetColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate) }); } - } else { - efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; + if (efl_gfx_entity_visible_get_static_delegate == null) + { + efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate) }); + } + if (efl_gfx_entity_visible_set_static_delegate == null) + { + efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_get"); - private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_color_code_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Node)wrapper).GetColorCode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; + if (efl_gfx_entity_scale_get_static_delegate == null) + { + efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); + } - private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate) }); + } + if (efl_gfx_entity_scale_set_static_delegate == null) + { + efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); + } - public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_set"); - private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) - { - Eina.Log.Debug("function efl_gfx_color_code_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).SetColorCode( colorcode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); - } - } - private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_static_delegate) }); + } + if (efl_gfx_path_get_static_delegate == null) + { + efl_gfx_path_get_static_delegate = new efl_gfx_path_get_delegate(path_get); + } - private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_get_static_delegate) }); + } + if (efl_gfx_path_set_static_delegate == null) + { + efl_gfx_path_set_static_delegate = new efl_gfx_path_set_delegate(path_set); + } - public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_get"); - private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Node)wrapper).GetPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; + if (efl_gfx_path_length_get_static_delegate == null) + { + efl_gfx_path_length_get_static_delegate = new efl_gfx_path_length_get_delegate(length_get); + } - private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_length_get_static_delegate) }); + } + if (efl_gfx_path_current_get_static_delegate == null) + { + efl_gfx_path_current_get_static_delegate = new efl_gfx_path_current_get_delegate(current_get); + } - public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_set"); - private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_gfx_entity_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((Node)wrapper).SetPosition( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCurrent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_current_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_get_static_delegate) }); } - } else { - efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; + if (efl_gfx_path_current_ctrl_get_static_delegate == null) + { + efl_gfx_path_current_ctrl_get_static_delegate = new efl_gfx_path_current_ctrl_get_delegate(current_ctrl_get); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCurrentCtrl") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_current_ctrl_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_ctrl_get_static_delegate) }); + } + if (efl_gfx_path_copy_from_static_delegate == null) + { + efl_gfx_path_copy_from_static_delegate = new efl_gfx_path_copy_from_delegate(copy_from); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_get"); - private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Node)wrapper).GetSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "CopyFrom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_copy_from"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_copy_from_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; + if (efl_gfx_path_bounds_get_static_delegate == null) + { + efl_gfx_path_bounds_get_static_delegate = new efl_gfx_path_bounds_get_delegate(bounds_get); + } - private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + if (methods.FirstOrDefault(m => m.Name == "GetBounds") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_bounds_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_bounds_get_static_delegate) }); + } + if (efl_gfx_path_reset_static_delegate == null) + { + efl_gfx_path_reset_static_delegate = new efl_gfx_path_reset_delegate(reset); + } - public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_set"); - private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_entity_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; - - try { - ((Node)wrapper).SetSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Reset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reset_static_delegate) }); } - } else { - efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; + if (efl_gfx_path_append_move_to_static_delegate == null) + { + efl_gfx_path_append_move_to_static_delegate = new efl_gfx_path_append_move_to_delegate(append_move_to); + } - private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "AppendMoveTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_move_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_move_to_static_delegate) }); + } + if (efl_gfx_path_append_line_to_static_delegate == null) + { + efl_gfx_path_append_line_to_static_delegate = new efl_gfx_path_append_line_to_delegate(append_line_to); + } - public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_get"); - private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Node)wrapper).GetGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "AppendLineTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_line_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_line_to_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; + if (efl_gfx_path_append_quadratic_to_static_delegate == null) + { + efl_gfx_path_append_quadratic_to_static_delegate = new efl_gfx_path_append_quadratic_to_delegate(append_quadratic_to); + } - private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + if (methods.FirstOrDefault(m => m.Name == "AppendQuadraticTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_quadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_quadratic_to_static_delegate) }); + } + if (efl_gfx_path_append_squadratic_to_static_delegate == null) + { + efl_gfx_path_append_squadratic_to_static_delegate = new efl_gfx_path_append_squadratic_to_delegate(append_squadratic_to); + } - public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_set"); - private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - - try { - ((Node)wrapper).SetGeometry( _in_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "AppendSquadraticTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_squadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_squadratic_to_static_delegate) }); } - } else { - efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); - } - } - private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; + if (efl_gfx_path_append_cubic_to_static_delegate == null) + { + efl_gfx_path_append_cubic_to_static_delegate = new efl_gfx_path_append_cubic_to_delegate(append_cubic_to); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "AppendCubicTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_cubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_cubic_to_static_delegate) }); + } + if (efl_gfx_path_append_scubic_to_static_delegate == null) + { + efl_gfx_path_append_scubic_to_static_delegate = new efl_gfx_path_append_scubic_to_delegate(append_scubic_to); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_get"); - private static bool visible_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Node)wrapper).GetVisible(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "AppendScubicTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_scubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_scubic_to_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; + if (efl_gfx_path_append_arc_to_static_delegate == null) + { + efl_gfx_path_append_arc_to_static_delegate = new efl_gfx_path_append_arc_to_delegate(append_arc_to); + } - private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + if (methods.FirstOrDefault(m => m.Name == "AppendArcTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_arc_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_to_static_delegate) }); + } + if (efl_gfx_path_append_arc_static_delegate == null) + { + efl_gfx_path_append_arc_static_delegate = new efl_gfx_path_append_arc_delegate(append_arc); + } - public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_set"); - private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) - { - Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).SetVisible( v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); - } - } - private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "AppendArc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_arc"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_static_delegate) }); + } + if (efl_gfx_path_append_close_static_delegate == null) + { + efl_gfx_path_append_close_static_delegate = new efl_gfx_path_append_close_delegate(append_close); + } - private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "CloseAppend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_close"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_close_static_delegate) }); + } + if (efl_gfx_path_append_circle_static_delegate == null) + { + efl_gfx_path_append_circle_static_delegate = new efl_gfx_path_append_circle_delegate(append_circle); + } - public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_get"); - private static double scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Node)wrapper).GetScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "AppendCircle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_circle"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_circle_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; + if (efl_gfx_path_append_rect_static_delegate == null) + { + efl_gfx_path_append_rect_static_delegate = new efl_gfx_path_append_rect_delegate(append_rect); + } - private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + if (methods.FirstOrDefault(m => m.Name == "AppendRect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_rect"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_rect_static_delegate) }); + } + if (efl_gfx_path_append_svg_path_static_delegate == null) + { + efl_gfx_path_append_svg_path_static_delegate = new efl_gfx_path_append_svg_path_delegate(append_svg_path); + } - public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_set"); - private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) - { - Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).SetScale( scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); - } - } - private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "AppendSvgPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_svg_path"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_svg_path_static_delegate) }); + } + if (efl_gfx_path_interpolate_static_delegate == null) + { + efl_gfx_path_interpolate_static_delegate = new efl_gfx_path_interpolate_delegate(interpolate); + } - private delegate void efl_gfx_path_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points); + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_interpolate_static_delegate) }); + } + if (efl_gfx_path_equal_commands_static_delegate == null) + { + efl_gfx_path_equal_commands_static_delegate = new efl_gfx_path_equal_commands_delegate(equal_commands); + } - public delegate void efl_gfx_path_get_api_delegate(System.IntPtr obj, out System.IntPtr op, out System.IntPtr points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_get"); - private static void path_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points) - { - Eina.Log.Debug("function efl_gfx_path_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); - double _out_points = default(double); - - try { - ((Node)wrapper).GetPath( out _out_op, out _out_points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "EqualCommands") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_equal_commands"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_equal_commands_static_delegate) }); } - op = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_op); - points = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_points); - } else { - efl_gfx_path_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out op, out points); - } - } - private static efl_gfx_path_get_delegate efl_gfx_path_get_static_delegate; + if (efl_gfx_path_reserve_static_delegate == null) + { + efl_gfx_path_reserve_static_delegate = new efl_gfx_path_reserve_delegate(reserve); + } - private delegate void efl_gfx_path_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points); + if (methods.FirstOrDefault(m => m.Name == "Reserve") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_reserve"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reserve_static_delegate) }); + } + if (efl_gfx_path_commit_static_delegate == null) + { + efl_gfx_path_commit_static_delegate = new efl_gfx_path_commit_delegate(commit); + } - public delegate void efl_gfx_path_set_api_delegate(System.IntPtr obj, System.IntPtr op, System.IntPtr points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_set"); - private static void path_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points) - { - Eina.Log.Debug("function efl_gfx_path_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_op = Eina.PrimitiveConversion.PointerToManaged(op); - var _in_points = Eina.PrimitiveConversion.PointerToManaged(points); - - try { - ((Node)wrapper).SetPath( _in_op, _in_points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Commit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_commit"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_commit_static_delegate) }); } - } else { - efl_gfx_path_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), op, points); - } - } - private static efl_gfx_path_set_delegate efl_gfx_path_set_static_delegate; + if (efl_gfx_stack_layer_get_static_delegate == null) + { + efl_gfx_stack_layer_get_static_delegate = new efl_gfx_stack_layer_get_delegate(layer_get); + } - private delegate void efl_gfx_path_length_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points); + if (methods.FirstOrDefault(m => m.Name == "GetLayer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_layer_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_get_static_delegate) }); + } + if (efl_gfx_stack_layer_set_static_delegate == null) + { + efl_gfx_stack_layer_set_static_delegate = new efl_gfx_stack_layer_set_delegate(layer_set); + } - public delegate void efl_gfx_path_length_get_api_delegate(System.IntPtr obj, out uint commands, out uint points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_length_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_length_get"); - private static void length_get(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points) - { - Eina.Log.Debug("function efl_gfx_path_length_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - commands = default(uint); points = default(uint); - try { - ((Node)wrapper).GetLength( out commands, out points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out commands, out points); - } - } - private static efl_gfx_path_length_get_delegate efl_gfx_path_length_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetLayer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_layer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_set_static_delegate) }); + } + if (efl_gfx_stack_below_get_static_delegate == null) + { + efl_gfx_stack_below_get_static_delegate = new efl_gfx_stack_below_get_delegate(below_get); + } - private delegate void efl_gfx_path_current_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (methods.FirstOrDefault(m => m.Name == "GetBelow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_below_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_get_static_delegate) }); + } + if (efl_gfx_stack_above_get_static_delegate == null) + { + efl_gfx_stack_above_get_static_delegate = new efl_gfx_stack_above_get_delegate(above_get); + } - public delegate void efl_gfx_path_current_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_current_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_current_get"); - private static void current_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_path_current_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((Node)wrapper).GetCurrent( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_current_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_gfx_path_current_get_delegate efl_gfx_path_current_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetAbove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_above_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_get_static_delegate) }); + } + if (efl_gfx_stack_below_static_delegate == null) + { + efl_gfx_stack_below_static_delegate = new efl_gfx_stack_below_delegate(stack_below); + } - private delegate void efl_gfx_path_current_ctrl_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (methods.FirstOrDefault(m => m.Name == "StackBelow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_below"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_static_delegate) }); + } + if (efl_gfx_stack_raise_to_top_static_delegate == null) + { + efl_gfx_stack_raise_to_top_static_delegate = new efl_gfx_stack_raise_to_top_delegate(raise_to_top); + } - public delegate void efl_gfx_path_current_ctrl_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_current_ctrl_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_current_ctrl_get"); - private static void current_ctrl_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_path_current_ctrl_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((Node)wrapper).GetCurrentCtrl( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_gfx_path_current_ctrl_get_delegate efl_gfx_path_current_ctrl_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "RaiseToTop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_raise_to_top"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_raise_to_top_static_delegate) }); + } + if (efl_gfx_stack_above_static_delegate == null) + { + efl_gfx_stack_above_static_delegate = new efl_gfx_stack_above_delegate(stack_above); + } - private delegate void efl_gfx_path_copy_from_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object dup_from); + if (methods.FirstOrDefault(m => m.Name == "StackAbove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_above"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_static_delegate) }); + } + + if (efl_gfx_stack_lower_to_bottom_static_delegate == null) + { + efl_gfx_stack_lower_to_bottom_static_delegate = new efl_gfx_stack_lower_to_bottom_delegate(lower_to_bottom); + } + + if (methods.FirstOrDefault(m => m.Name == "LowerToBottom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_lower_to_bottom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_lower_to_bottom_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Vg.Node.efl_canvas_vg_node_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate System.IntPtr efl_canvas_vg_node_transformation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_canvas_vg_node_transformation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_node_transformation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_node_transformation_get"); + + private static System.IntPtr transformation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_vg_node_transformation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Matrix3 _ret_var = default(Eina.Matrix3); + try + { + _ret_var = ((Node)wrapper).GetTransformation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); + + } + else + { + return efl_canvas_vg_node_transformation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_vg_node_transformation_get_delegate efl_canvas_vg_node_transformation_get_static_delegate; + + + private delegate void efl_canvas_vg_node_transformation_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Matrix3.NativeStruct m); + + + public delegate void efl_canvas_vg_node_transformation_set_api_delegate(System.IntPtr obj, ref Eina.Matrix3.NativeStruct m); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_node_transformation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_node_transformation_set"); + + private static void transformation_set(System.IntPtr obj, System.IntPtr pd, ref Eina.Matrix3.NativeStruct m) + { + Eina.Log.Debug("function efl_canvas_vg_node_transformation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Matrix3 _in_m = m; + + try + { + ((Node)wrapper).SetTransformation(ref _in_m); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + m = _in_m; + + } + else + { + efl_canvas_vg_node_transformation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref m); + } + } + + private static efl_canvas_vg_node_transformation_set_delegate efl_canvas_vg_node_transformation_set_static_delegate; + + + private delegate void efl_canvas_vg_node_origin_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_canvas_vg_node_origin_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_node_origin_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_node_origin_get"); + + private static void origin_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_canvas_vg_node_origin_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((Node)wrapper).GetOrigin(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_vg_node_origin_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_canvas_vg_node_origin_get_delegate efl_canvas_vg_node_origin_get_static_delegate; + + + private delegate void efl_canvas_vg_node_origin_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_canvas_vg_node_origin_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_node_origin_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_node_origin_set"); + + private static void origin_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_canvas_vg_node_origin_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).SetOrigin(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_vg_node_origin_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_canvas_vg_node_origin_set_delegate efl_canvas_vg_node_origin_set_static_delegate; + + + private delegate void efl_canvas_vg_node_mask_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Vg.Node mask, int op); + + + public delegate void efl_canvas_vg_node_mask_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Vg.Node mask, int op); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_node_mask_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_node_mask_set"); + + private static void mask_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Vg.Node mask, int op) + { + Eina.Log.Debug("function efl_canvas_vg_node_mask_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).SetMask(mask, op); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_vg_node_mask_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mask, op); + } + } + + private static efl_canvas_vg_node_mask_set_delegate efl_canvas_vg_node_mask_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_duplicate"); + + private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_duplicate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IDuplicate _ret_var = default(Efl.IDuplicate); + try + { + _ret_var = ((Node)wrapper).Duplicate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_duplicate_delegate efl_duplicate_static_delegate; + + + private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + + + public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_get"); + + private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); + try + { + ((Node)wrapper).GetColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; + + + private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + + + public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_set"); + + private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).SetColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_get"); + + private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_color_code_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Node)wrapper).GetColorCode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; + + + private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + + public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_set"); + + private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) + { + Eina.Log.Debug("function efl_gfx_color_code_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).SetColorCode(colorcode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); + } + } + + private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_get"); + + private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Node)wrapper).GetPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; + + + private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + + public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_set"); + + private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_gfx_entity_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((Node)wrapper).SetPosition(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + } + } + + private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_get"); + + private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Node)wrapper).GetSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; + + + private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + + public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_set"); + + private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_entity_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; + + try + { + ((Node)wrapper).SetSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } + } + + private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_get"); + + private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Node)wrapper).GetGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; + + + private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + + + public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_set"); + + private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + + try + { + ((Node)wrapper).SetGeometry(_in_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); + } + } + + private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_get"); + + private static bool visible_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Node)wrapper).GetVisible(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; + + + private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + + + public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_set"); + + private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) + { + Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).SetVisible(v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); + } + } + + private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; + + + private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_get"); + + private static double scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Node)wrapper).GetScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; + + + private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + + public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_set"); + + private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).SetScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + } + } + + private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + + + private delegate void efl_gfx_path_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points); + + + public delegate void efl_gfx_path_get_api_delegate(System.IntPtr obj, out System.IntPtr op, out System.IntPtr points); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_get"); + private static void path_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points) + { + Eina.Log.Debug("function efl_gfx_path_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); + double _out_points = default(double); + + try + { + ((Node)wrapper).GetPath(out _out_op, out _out_points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + op = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_op); + points = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_points); + + } + else + { + efl_gfx_path_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out op, out points); + } + } + + private static efl_gfx_path_get_delegate efl_gfx_path_get_static_delegate; + + + private delegate void efl_gfx_path_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points); + + + public delegate void efl_gfx_path_set_api_delegate(System.IntPtr obj, System.IntPtr op, System.IntPtr points); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_set"); + + private static void path_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points) + { + Eina.Log.Debug("function efl_gfx_path_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_op = Eina.PrimitiveConversion.PointerToManaged(op); + var _in_points = Eina.PrimitiveConversion.PointerToManaged(points); + + try + { + ((Node)wrapper).SetPath(_in_op, _in_points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), op, points); + } + } + + private static efl_gfx_path_set_delegate efl_gfx_path_set_static_delegate; + + + private delegate void efl_gfx_path_length_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points); + + + public delegate void efl_gfx_path_length_get_api_delegate(System.IntPtr obj, out uint commands, out uint points); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_length_get"); + + private static void length_get(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points) + { + Eina.Log.Debug("function efl_gfx_path_length_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + commands = default(uint); points = default(uint); + try + { + ((Node)wrapper).GetLength(out commands, out points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out commands, out points); + } + } + + private static efl_gfx_path_length_get_delegate efl_gfx_path_length_get_static_delegate; + + + private delegate void efl_gfx_path_current_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_path_current_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_current_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_current_get"); + + private static void current_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_path_current_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((Node)wrapper).GetCurrent(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_current_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_gfx_path_current_get_delegate efl_gfx_path_current_get_static_delegate; + + + private delegate void efl_gfx_path_current_ctrl_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_path_current_ctrl_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_current_ctrl_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_current_ctrl_get"); + + private static void current_ctrl_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_path_current_ctrl_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((Node)wrapper).GetCurrentCtrl(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_gfx_path_current_ctrl_get_delegate efl_gfx_path_current_ctrl_get_static_delegate; + + + private delegate void efl_gfx_path_copy_from_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object dup_from); + + + public delegate void efl_gfx_path_copy_from_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object dup_from); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_copy_from_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_copy_from"); + + private static void copy_from(System.IntPtr obj, System.IntPtr pd, Efl.Object dup_from) + { + Eina.Log.Debug("function efl_gfx_path_copy_from was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).CopyFrom(dup_from); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_copy_from_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dup_from); + } + } + + private static efl_gfx_path_copy_from_delegate efl_gfx_path_copy_from_static_delegate; + + + private delegate void efl_gfx_path_bounds_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r); + + + public delegate void efl_gfx_path_bounds_get_api_delegate(System.IntPtr obj, out Eina.Rect.NativeStruct r); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_bounds_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_bounds_get"); + + private static void bounds_get(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r) + { + Eina.Log.Debug("function efl_gfx_path_bounds_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _out_r = default(Eina.Rect); + + try + { + ((Node)wrapper).GetBounds(out _out_r); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + r = _out_r; + + } + else + { + efl_gfx_path_bounds_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r); + } + } + + private static efl_gfx_path_bounds_get_delegate efl_gfx_path_bounds_get_static_delegate; + + + private delegate void efl_gfx_path_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_path_reset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_reset"); + + private static void reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).Reset(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_copy_from_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object dup_from); - public static Efl.Eo.FunctionWrapper efl_gfx_path_copy_from_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_copy_from"); - private static void copy_from(System.IntPtr obj, System.IntPtr pd, Efl.Object dup_from) - { - Eina.Log.Debug("function efl_gfx_path_copy_from was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).CopyFrom( dup_from); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_copy_from_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dup_from); + + } + else + { + efl_gfx_path_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_path_copy_from_delegate efl_gfx_path_copy_from_static_delegate; + private static efl_gfx_path_reset_delegate efl_gfx_path_reset_static_delegate; + + + private delegate void efl_gfx_path_append_move_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); - private delegate void efl_gfx_path_bounds_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r); + + public delegate void efl_gfx_path_append_move_to_api_delegate(System.IntPtr obj, double x, double y); + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_move_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_move_to"); - public delegate void efl_gfx_path_bounds_get_api_delegate(System.IntPtr obj, out Eina.Rect.NativeStruct r); - public static Efl.Eo.FunctionWrapper efl_gfx_path_bounds_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_bounds_get"); - private static void bounds_get(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r) - { - Eina.Log.Debug("function efl_gfx_path_bounds_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _out_r = default(Eina.Rect); - - try { - ((Node)wrapper).GetBounds( out _out_r); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void append_move_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_move_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).AppendMoveTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_move_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - r = _out_r; - } else { - efl_gfx_path_bounds_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r); } - } - private static efl_gfx_path_bounds_get_delegate efl_gfx_path_bounds_get_static_delegate; + private static efl_gfx_path_append_move_to_delegate efl_gfx_path_append_move_to_static_delegate; - private delegate void efl_gfx_path_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_path_append_line_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + public delegate void efl_gfx_path_append_line_to_api_delegate(System.IntPtr obj, double x, double y); - public delegate void efl_gfx_path_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_reset"); - private static void reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).Reset(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_line_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_line_to"); + + private static void append_line_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_line_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).AppendLineTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_line_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } else { - efl_gfx_path_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_path_reset_delegate efl_gfx_path_reset_static_delegate; + private static efl_gfx_path_append_line_to_delegate efl_gfx_path_append_line_to_static_delegate; - private delegate void efl_gfx_path_append_move_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_gfx_path_append_quadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + + public delegate void efl_gfx_path_append_quadratic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_quadratic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_quadratic_to"); + + private static void append_quadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) + { + Eina.Log.Debug("function efl_gfx_path_append_quadratic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).AppendQuadraticTo(x, y, ctrl_x, ctrl_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_append_move_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_move_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_move_to"); - private static void append_move_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_move_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Node)wrapper).AppendMoveTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_path_append_move_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + else + { + efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); + } } - } - private static efl_gfx_path_append_move_to_delegate efl_gfx_path_append_move_to_static_delegate; + private static efl_gfx_path_append_quadratic_to_delegate efl_gfx_path_append_quadratic_to_static_delegate; + + + private delegate void efl_gfx_path_append_squadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); - private delegate void efl_gfx_path_append_line_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + public delegate void efl_gfx_path_append_squadratic_to_api_delegate(System.IntPtr obj, double x, double y); + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_squadratic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_squadratic_to"); - public delegate void efl_gfx_path_append_line_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_line_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_line_to"); - private static void append_line_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_line_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).AppendLineTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void append_squadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_squadratic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).AppendSquadraticTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } else { - efl_gfx_path_append_line_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } - private static efl_gfx_path_append_line_to_delegate efl_gfx_path_append_line_to_static_delegate; + private static efl_gfx_path_append_squadratic_to_delegate efl_gfx_path_append_squadratic_to_static_delegate; + + + private delegate void efl_gfx_path_append_cubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); - private delegate void efl_gfx_path_append_quadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + + public delegate void efl_gfx_path_append_cubic_to_api_delegate(System.IntPtr obj, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_cubic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_cubic_to"); - public delegate void efl_gfx_path_append_quadratic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_quadratic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_quadratic_to"); - private static void append_quadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) - { - Eina.Log.Debug("function efl_gfx_path_append_quadratic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).AppendQuadraticTo( x, y, ctrl_x, ctrl_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void append_cubic_to(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_cubic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).AppendCubicTo(ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_cubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); } - } else { - efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); } - } - private static efl_gfx_path_append_quadratic_to_delegate efl_gfx_path_append_quadratic_to_static_delegate; + private static efl_gfx_path_append_cubic_to_delegate efl_gfx_path_append_cubic_to_static_delegate; - private delegate void efl_gfx_path_append_squadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_gfx_path_append_scubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + + + public delegate void efl_gfx_path_append_scubic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_scubic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_scubic_to"); + + private static void append_scubic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) + { + Eina.Log.Debug("function efl_gfx_path_append_scubic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).AppendScubicTo(x, y, ctrl_x, ctrl_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_append_squadratic_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_squadratic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_squadratic_to"); - private static void append_squadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_squadratic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Node)wrapper).AppendSquadraticTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + else + { + efl_gfx_path_append_scubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); + } } - } - private static efl_gfx_path_append_squadratic_to_delegate efl_gfx_path_append_squadratic_to_static_delegate; + private static efl_gfx_path_append_scubic_to_delegate efl_gfx_path_append_scubic_to_static_delegate; - private delegate void efl_gfx_path_append_cubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); + + private delegate void efl_gfx_path_append_arc_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); + + public delegate void efl_gfx_path_append_arc_to_api_delegate(System.IntPtr obj, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); - public delegate void efl_gfx_path_append_cubic_to_api_delegate(System.IntPtr obj, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_cubic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_cubic_to"); - private static void append_cubic_to(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_cubic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).AppendCubicTo( ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_cubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_arc_to"); + + private static void append_arc_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) + { + Eina.Log.Debug("function efl_gfx_path_append_arc_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).AppendArcTo(x, y, rx, ry, angle, large_arc, sweep); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_arc_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, rx, ry, angle, large_arc, sweep); + } } - } - private static efl_gfx_path_append_cubic_to_delegate efl_gfx_path_append_cubic_to_static_delegate; + private static efl_gfx_path_append_arc_to_delegate efl_gfx_path_append_arc_to_static_delegate; - private delegate void efl_gfx_path_append_scubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + + private delegate void efl_gfx_path_append_arc_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length); + + public delegate void efl_gfx_path_append_arc_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double start_angle, double sweep_length); - public delegate void efl_gfx_path_append_scubic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_scubic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_scubic_to"); - private static void append_scubic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) - { - Eina.Log.Debug("function efl_gfx_path_append_scubic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).AppendScubicTo( x, y, ctrl_x, ctrl_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_arc"); + + private static void append_arc(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length) + { + Eina.Log.Debug("function efl_gfx_path_append_arc was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).AppendArc(x, y, w, h, start_angle, sweep_length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_arc_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, start_angle, sweep_length); } - } else { - efl_gfx_path_append_scubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); } - } - private static efl_gfx_path_append_scubic_to_delegate efl_gfx_path_append_scubic_to_static_delegate; + private static efl_gfx_path_append_arc_delegate efl_gfx_path_append_arc_static_delegate; - private delegate void efl_gfx_path_append_arc_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); + + private delegate void efl_gfx_path_append_close_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_gfx_path_append_close_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_path_append_arc_to_api_delegate(System.IntPtr obj, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_arc_to"); - private static void append_arc_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) - { - Eina.Log.Debug("function efl_gfx_path_append_arc_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).AppendArcTo( x, y, rx, ry, angle, large_arc, sweep); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_arc_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, rx, ry, angle, large_arc, sweep); + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_close_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_close"); + + private static void append_close(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_append_close was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).CloseAppend(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_path_append_arc_to_delegate efl_gfx_path_append_arc_to_static_delegate; + private static efl_gfx_path_append_close_delegate efl_gfx_path_append_close_static_delegate; - private delegate void efl_gfx_path_append_arc_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length); + + private delegate void efl_gfx_path_append_circle_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius); + + + public delegate void efl_gfx_path_append_circle_api_delegate(System.IntPtr obj, double x, double y, double radius); + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_circle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_circle"); - public delegate void efl_gfx_path_append_arc_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double start_angle, double sweep_length); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_arc"); - private static void append_arc(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length) - { - Eina.Log.Debug("function efl_gfx_path_append_arc was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).AppendArc( x, y, w, h, start_angle, sweep_length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_arc_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, start_angle, sweep_length); + private static void append_circle(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius) + { + Eina.Log.Debug("function efl_gfx_path_append_circle was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).AppendCircle(x, y, radius); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_circle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, radius); + } } - } - private static efl_gfx_path_append_arc_delegate efl_gfx_path_append_arc_static_delegate; + private static efl_gfx_path_append_circle_delegate efl_gfx_path_append_circle_static_delegate; - private delegate void efl_gfx_path_append_close_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_path_append_rect_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry); + + public delegate void efl_gfx_path_append_rect_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double rx, double ry); - public delegate void efl_gfx_path_append_close_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_close_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_close"); - private static void append_close(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_append_close was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).CloseAppend(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_rect_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_rect"); + + private static void append_rect(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry) + { + Eina.Log.Debug("function efl_gfx_path_append_rect was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).AppendRect(x, y, w, h, rx, ry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_rect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, rx, ry); } - } else { - efl_gfx_path_append_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_path_append_close_delegate efl_gfx_path_append_close_static_delegate; + private static efl_gfx_path_append_rect_delegate efl_gfx_path_append_rect_static_delegate; + + + private delegate void efl_gfx_path_append_svg_path_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); + + + public delegate void efl_gfx_path_append_svg_path_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); - private delegate void efl_gfx_path_append_circle_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius); + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_svg_path_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_svg_path"); + private static void append_svg_path(System.IntPtr obj, System.IntPtr pd, System.String svg_path_data) + { + Eina.Log.Debug("function efl_gfx_path_append_svg_path was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).AppendSvgPath(svg_path_data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_append_circle_api_delegate(System.IntPtr obj, double x, double y, double radius); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_circle_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_circle"); - private static void append_circle(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius) - { - Eina.Log.Debug("function efl_gfx_path_append_circle was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).AppendCircle( x, y, radius); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_circle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, radius); + + } + else + { + efl_gfx_path_append_svg_path_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), svg_path_data); + } } - } - private static efl_gfx_path_append_circle_delegate efl_gfx_path_append_circle_static_delegate; + private static efl_gfx_path_append_svg_path_delegate efl_gfx_path_append_svg_path_static_delegate; - private delegate void efl_gfx_path_append_rect_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_path_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object to, double pos_map); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_path_interpolate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object to, double pos_map); - public delegate void efl_gfx_path_append_rect_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double rx, double ry); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_rect_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_rect"); - private static void append_rect(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry) - { - Eina.Log.Debug("function efl_gfx_path_append_rect was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).AppendRect( x, y, w, h, rx, ry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_rect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, rx, ry); + public static Efl.Eo.FunctionWrapper efl_gfx_path_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_interpolate"); + + private static bool interpolate(System.IntPtr obj, System.IntPtr pd, Efl.Object from, Efl.Object to, double pos_map) + { + Eina.Log.Debug("function efl_gfx_path_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Node)wrapper).Interpolate(from, to, pos_map); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_path_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to, pos_map); + } } - } - private static efl_gfx_path_append_rect_delegate efl_gfx_path_append_rect_static_delegate; + private static efl_gfx_path_interpolate_delegate efl_gfx_path_interpolate_static_delegate; - private delegate void efl_gfx_path_append_svg_path_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_path_equal_commands_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object with); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_path_equal_commands_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object with); - public delegate void efl_gfx_path_append_svg_path_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_svg_path_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_svg_path"); - private static void append_svg_path(System.IntPtr obj, System.IntPtr pd, System.String svg_path_data) - { - Eina.Log.Debug("function efl_gfx_path_append_svg_path was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).AppendSvgPath( svg_path_data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_svg_path_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), svg_path_data); + public static Efl.Eo.FunctionWrapper efl_gfx_path_equal_commands_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_equal_commands"); + + private static bool equal_commands(System.IntPtr obj, System.IntPtr pd, Efl.Object with) + { + Eina.Log.Debug("function efl_gfx_path_equal_commands was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Node)wrapper).EqualCommands(with); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_path_equal_commands_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), with); + } } - } - private static efl_gfx_path_append_svg_path_delegate efl_gfx_path_append_svg_path_static_delegate; + private static efl_gfx_path_equal_commands_delegate efl_gfx_path_equal_commands_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_path_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object to, double pos_map); + + private delegate void efl_gfx_path_reserve_delegate(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count); + + public delegate void efl_gfx_path_reserve_api_delegate(System.IntPtr obj, uint cmd_count, uint pts_count); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_path_interpolate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object to, double pos_map); - public static Efl.Eo.FunctionWrapper efl_gfx_path_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_interpolate"); - private static bool interpolate(System.IntPtr obj, System.IntPtr pd, Efl.Object from, Efl.Object to, double pos_map) - { - Eina.Log.Debug("function efl_gfx_path_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Node)wrapper).Interpolate( from, to, pos_map); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_path_reserve_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_reserve"); + + private static void reserve(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count) + { + Eina.Log.Debug("function efl_gfx_path_reserve was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).Reserve(cmd_count, pts_count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_reserve_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cmd_count, pts_count); } - return _ret_var; - } else { - return efl_gfx_path_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to, pos_map); } - } - private static efl_gfx_path_interpolate_delegate efl_gfx_path_interpolate_static_delegate; + private static efl_gfx_path_reserve_delegate efl_gfx_path_reserve_static_delegate; + + + private delegate void efl_gfx_path_commit_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_path_commit_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_path_equal_commands_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object with); + public static Efl.Eo.FunctionWrapper efl_gfx_path_commit_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_commit"); + private static void commit(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_commit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).Commit(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_path_equal_commands_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object with); - public static Efl.Eo.FunctionWrapper efl_gfx_path_equal_commands_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_equal_commands"); - private static bool equal_commands(System.IntPtr obj, System.IntPtr pd, Efl.Object with) - { - Eina.Log.Debug("function efl_gfx_path_equal_commands was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Node)wrapper).EqualCommands( with); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_gfx_path_commit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_gfx_path_equal_commands_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), with); } - } - private static efl_gfx_path_equal_commands_delegate efl_gfx_path_equal_commands_static_delegate; + private static efl_gfx_path_commit_delegate efl_gfx_path_commit_static_delegate; - private delegate void efl_gfx_path_reserve_delegate(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count); + + private delegate short efl_gfx_stack_layer_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate short efl_gfx_stack_layer_get_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_path_reserve_api_delegate(System.IntPtr obj, uint cmd_count, uint pts_count); - public static Efl.Eo.FunctionWrapper efl_gfx_path_reserve_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_reserve"); - private static void reserve(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count) - { - Eina.Log.Debug("function efl_gfx_path_reserve was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).Reserve( cmd_count, pts_count); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_layer_get"); + + private static short layer_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_layer_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + short _ret_var = default(short); + try + { + _ret_var = ((Node)wrapper).GetLayer(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_stack_layer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_gfx_path_reserve_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cmd_count, pts_count); } - } - private static efl_gfx_path_reserve_delegate efl_gfx_path_reserve_static_delegate; + private static efl_gfx_stack_layer_get_delegate efl_gfx_stack_layer_get_static_delegate; - private delegate void efl_gfx_path_commit_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_stack_layer_set_delegate(System.IntPtr obj, System.IntPtr pd, short l); + + public delegate void efl_gfx_stack_layer_set_api_delegate(System.IntPtr obj, short l); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_layer_set"); + + private static void layer_set(System.IntPtr obj, System.IntPtr pd, short l) + { + Eina.Log.Debug("function efl_gfx_stack_layer_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).SetLayer(l); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_commit_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_commit_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_commit"); - private static void commit(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_commit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Node)wrapper).Commit(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_path_commit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_gfx_stack_layer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l); + } } - } - private static efl_gfx_path_commit_delegate efl_gfx_path_commit_static_delegate; + private static efl_gfx_stack_layer_set_delegate efl_gfx_stack_layer_set_static_delegate; - private delegate short efl_gfx_stack_layer_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IStack efl_gfx_stack_below_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IStack efl_gfx_stack_below_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_below_get"); + + private static Efl.Gfx.IStack below_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_below_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); + try + { + _ret_var = ((Node)wrapper).GetBelow(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate short efl_gfx_stack_layer_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_layer_get"); - private static short layer_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_layer_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - short _ret_var = default(short); - try { - _ret_var = ((Node)wrapper).GetLayer(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_stack_layer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_stack_layer_get_delegate efl_gfx_stack_layer_get_static_delegate; + } + else + { + return efl_gfx_stack_below_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_stack_layer_set_delegate(System.IntPtr obj, System.IntPtr pd, short l); + private static efl_gfx_stack_below_get_delegate efl_gfx_stack_below_get_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IStack efl_gfx_stack_above_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_stack_layer_set_api_delegate(System.IntPtr obj, short l); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_layer_set"); - private static void layer_set(System.IntPtr obj, System.IntPtr pd, short l) - { - Eina.Log.Debug("function efl_gfx_stack_layer_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).SetLayer( l); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_layer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l); - } - } - private static efl_gfx_stack_layer_set_delegate efl_gfx_stack_layer_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IStack efl_gfx_stack_above_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_above_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IStack efl_gfx_stack_below_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Gfx.IStack above_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_above_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); + try + { + _ret_var = ((Node)wrapper).GetAbove(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IStack efl_gfx_stack_below_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_below_get"); - private static Efl.Gfx.IStack below_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_below_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); - try { - _ret_var = ((Node)wrapper).GetBelow(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_stack_below_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_stack_above_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_stack_below_get_delegate efl_gfx_stack_below_get_static_delegate; + private static efl_gfx_stack_above_get_delegate efl_gfx_stack_above_get_static_delegate; + + + private delegate void efl_gfx_stack_below_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack below); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IStack efl_gfx_stack_above_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_gfx_stack_below_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack below); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_below"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IStack efl_gfx_stack_above_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_above_get"); - private static Efl.Gfx.IStack above_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_above_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); - try { - _ret_var = ((Node)wrapper).GetAbove(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void stack_below(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack below) + { + Eina.Log.Debug("function efl_gfx_stack_below was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).StackBelow(below); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_stack_below_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), below); } - return _ret_var; - } else { - return efl_gfx_stack_above_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_stack_above_get_delegate efl_gfx_stack_above_get_static_delegate; + private static efl_gfx_stack_below_delegate efl_gfx_stack_below_static_delegate; + + + private delegate void efl_gfx_stack_raise_to_top_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_stack_raise_to_top_api_delegate(System.IntPtr obj); - private delegate void efl_gfx_stack_below_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack below); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_raise_to_top_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_raise_to_top"); + private static void raise_to_top(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_raise_to_top was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).RaiseToTop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_stack_below_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack below); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_below"); - private static void stack_below(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack below) - { - Eina.Log.Debug("function efl_gfx_stack_below was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).StackBelow( below); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_below_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), below); + + } + else + { + efl_gfx_stack_raise_to_top_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_stack_below_delegate efl_gfx_stack_below_static_delegate; + private static efl_gfx_stack_raise_to_top_delegate efl_gfx_stack_raise_to_top_static_delegate; - private delegate void efl_gfx_stack_raise_to_top_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_stack_above_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack above); + + public delegate void efl_gfx_stack_above_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack above); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_above"); + + private static void stack_above(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack above) + { + Eina.Log.Debug("function efl_gfx_stack_above was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).StackAbove(above); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_stack_raise_to_top_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_raise_to_top_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_raise_to_top"); - private static void raise_to_top(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_raise_to_top was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Node)wrapper).RaiseToTop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_stack_raise_to_top_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_gfx_stack_above_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), above); + } } - } - private static efl_gfx_stack_raise_to_top_delegate efl_gfx_stack_raise_to_top_static_delegate; + private static efl_gfx_stack_above_delegate efl_gfx_stack_above_static_delegate; + + + private delegate void efl_gfx_stack_lower_to_bottom_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_stack_lower_to_bottom_api_delegate(System.IntPtr obj); - private delegate void efl_gfx_stack_above_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack above); + public static Efl.Eo.FunctionWrapper efl_gfx_stack_lower_to_bottom_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_lower_to_bottom"); + private static void lower_to_bottom(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_lower_to_bottom was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Node)wrapper).LowerToBottom(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_stack_above_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack above); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_above"); - private static void stack_above(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack above) - { - Eina.Log.Debug("function efl_gfx_stack_above was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).StackAbove( above); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_above_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), above); + + } + else + { + efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_stack_above_delegate efl_gfx_stack_above_static_delegate; + private static efl_gfx_stack_lower_to_bottom_delegate efl_gfx_stack_lower_to_bottom_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 - private delegate void efl_gfx_stack_lower_to_bottom_delegate(System.IntPtr obj, System.IntPtr pd); +} +} +} +} - public delegate void efl_gfx_stack_lower_to_bottom_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_lower_to_bottom_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_lower_to_bottom"); - private static void lower_to_bottom(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_lower_to_bottom was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Node)wrapper).LowerToBottom(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_stack_lower_to_bottom_delegate efl_gfx_stack_lower_to_bottom_static_delegate; } -} } } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_shape.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_shape.eo.cs index b79550c..c2d9af0 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_shape.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_shape.eo.cs @@ -3,115 +3,137 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Canvas { namespace Vg { +namespace Efl { + +namespace Canvas { + +namespace Vg { + /// Efl vector graphics shape class -[ShapeNativeInherit] +[Efl.Canvas.Vg.Shape.NativeMethods] public class Shape : Efl.Canvas.Vg.Node, Efl.Eo.IWrapper,Efl.Gfx.IShape { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Shape)) - return Efl.Canvas.Vg.ShapeNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Shape)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_vg_shape_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Shape(Efl.Object parent= null - ) : - base(efl_canvas_vg_shape_class_get(), typeof(Shape), parent) + ) : base(efl_canvas_vg_shape_class_get(), typeof(Shape), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Shape(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Shape(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Shape(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Fill of the shape object /// Fill object virtual public Efl.Canvas.Vg.Node GetFill() { - var _ret_var = Efl.Canvas.Vg.ShapeNativeInherit.efl_canvas_vg_shape_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Vg.Shape.NativeMethods.efl_canvas_vg_shape_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Fill of the shape object /// Fill object - /// - virtual public void SetFill( Efl.Canvas.Vg.Node f) { - Efl.Canvas.Vg.ShapeNativeInherit.efl_canvas_vg_shape_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public void SetFill(Efl.Canvas.Vg.Node f) { + Efl.Canvas.Vg.Shape.NativeMethods.efl_canvas_vg_shape_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); } /// Stroke fill of the shape object /// Stroke fill object virtual public Efl.Canvas.Vg.Node GetStrokeFill() { - var _ret_var = Efl.Canvas.Vg.ShapeNativeInherit.efl_canvas_vg_shape_stroke_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Vg.Shape.NativeMethods.efl_canvas_vg_shape_stroke_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Stroke fill of the shape object /// Stroke fill object - /// - virtual public void SetStrokeFill( Efl.Canvas.Vg.Node f) { - Efl.Canvas.Vg.ShapeNativeInherit.efl_canvas_vg_shape_stroke_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public void SetStrokeFill(Efl.Canvas.Vg.Node f) { + Efl.Canvas.Vg.Shape.NativeMethods.efl_canvas_vg_shape_stroke_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); } /// Stroke marker of the shape object /// Stroke marker object virtual public Efl.Canvas.Vg.Node GetStrokeMarker() { - var _ret_var = Efl.Canvas.Vg.ShapeNativeInherit.efl_canvas_vg_shape_stroke_marker_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.Vg.Shape.NativeMethods.efl_canvas_vg_shape_stroke_marker_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Stroke marker of the shape object /// Stroke marker object - /// - virtual public void SetStrokeMarker( Efl.Canvas.Vg.Node m) { - Efl.Canvas.Vg.ShapeNativeInherit.efl_canvas_vg_shape_stroke_marker_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), m); + virtual public void SetStrokeMarker(Efl.Canvas.Vg.Node m) { + Efl.Canvas.Vg.Shape.NativeMethods.efl_canvas_vg_shape_stroke_marker_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),m); Eina.Error.RaiseIfUnhandledException(); } /// The stroke scale to be used for stroking the path. Will be used along with stroke width property. /// Stroke scale value virtual public double GetStrokeScale() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The stroke scale to be used for stroking the path. Will be used along with stroke width property. /// Stroke scale value - /// - virtual public void SetStrokeScale( double s) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), s); + virtual public void SetStrokeScale(double s) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),s); Eina.Error.RaiseIfUnhandledException(); } /// The color to be used for stroking the path. @@ -119,9 +141,8 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Eo.IWrapper,Efl.Gfx.IShape /// The green component of the given color. /// The blue component of the given color. /// The alpha component of the given color. - /// - virtual public void GetStrokeColor( out int r, out int g, out int b, out int a) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetStrokeColor(out int r, out int g, out int b, out int a) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// The color to be used for stroking the path. @@ -129,47 +150,43 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Eo.IWrapper,Efl.Gfx.IShape /// The green component of the given color. /// The blue component of the given color. /// The alpha component of the given color. - /// - virtual public void SetStrokeColor( int r, int g, int b, int a) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetStrokeColor(int r, int g, int b, int a) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// The stroke width to be used for stroking the path. /// Stroke width to be used virtual public double GetStrokeWidth() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_width_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_width_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The stroke width to be used for stroking the path. /// Stroke width to be used - /// - virtual public void SetStrokeWidth( double w) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_width_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), w); + virtual public void SetStrokeWidth(double w) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_width_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),w); Eina.Error.RaiseIfUnhandledException(); } /// Not implemented /// Centered stroke location virtual public double GetStrokeLocation() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_location_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_location_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Not implemented /// Centered stroke location - /// - virtual public void SetStrokeLocation( double centered) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_location_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), centered); + virtual public void SetStrokeLocation(double centered) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_location_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),centered); Eina.Error.RaiseIfUnhandledException(); } /// Set stroke dash pattern. A dash pattern is specified by dashes, an array of . values(length, gap) must be positive. /// See also /// Stroke dash /// Stroke dash length - /// - virtual public void GetStrokeDash( out Efl.Gfx.Dash dash, out uint length) { + virtual public void GetStrokeDash(out Efl.Gfx.Dash dash, out uint length) { var _out_dash = new System.IntPtr(); - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_dash_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out _out_dash, out length); + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_dash_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out _out_dash, out length); Eina.Error.RaiseIfUnhandledException(); dash = Eina.PrimitiveConversion.PointerToManaged(_out_dash); } @@ -177,10 +194,9 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Eo.IWrapper,Efl.Gfx.IShape /// See also /// Stroke dash /// Stroke dash length - /// - virtual public void SetStrokeDash( ref Efl.Gfx.Dash dash, uint length) { + virtual public void SetStrokeDash(ref Efl.Gfx.Dash dash, uint length) { Efl.Gfx.Dash.NativeStruct _in_dash = dash; - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_dash_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref _in_dash, length); + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_dash_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref _in_dash, length); Eina.Error.RaiseIfUnhandledException(); dash = _in_dash; } @@ -188,754 +204,1139 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Eo.IWrapper,Efl.Gfx.IShape /// See also . /// Cap style to use, default is virtual public Efl.Gfx.Cap GetStrokeCap() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_cap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_cap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The cap style to be used for stroking the path. The cap will be used for capping the end point of a open subpath. /// See also . /// Cap style to use, default is - /// - virtual public void SetStrokeCap( Efl.Gfx.Cap c) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_cap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), c); + virtual public void SetStrokeCap(Efl.Gfx.Cap c) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_cap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),c); Eina.Error.RaiseIfUnhandledException(); } /// The join style to be used for stroking the path. The join style will be used for joining the two line segment while stroking the path. /// See also . /// Join style to use, default is virtual public Efl.Gfx.Join GetStrokeJoin() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_join_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_join_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The join style to be used for stroking the path. The join style will be used for joining the two line segment while stroking the path. /// See also . /// Join style to use, default is - /// - virtual public void SetStrokeJoin( Efl.Gfx.Join j) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_join_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), j); + virtual public void SetStrokeJoin(Efl.Gfx.Join j) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_join_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),j); Eina.Error.RaiseIfUnhandledException(); } /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or virtual public Efl.Gfx.FillRule GetFillRule() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_fill_rule_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_fill_rule_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or - /// - virtual public void SetFillRule( Efl.Gfx.FillRule fill_rule) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_fill_rule_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fill_rule); + virtual public void SetFillRule(Efl.Gfx.FillRule fill_rule) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_fill_rule_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fill_rule); Eina.Error.RaiseIfUnhandledException(); } /// Fill of the shape object /// Fill object public Efl.Canvas.Vg.Node Fill { get { return GetFill(); } - set { SetFill( value); } + set { SetFill(value); } } /// Stroke fill of the shape object /// Stroke fill object public Efl.Canvas.Vg.Node StrokeFill { get { return GetStrokeFill(); } - set { SetStrokeFill( value); } + set { SetStrokeFill(value); } } /// Stroke marker of the shape object /// Stroke marker object public Efl.Canvas.Vg.Node StrokeMarker { get { return GetStrokeMarker(); } - set { SetStrokeMarker( value); } + set { SetStrokeMarker(value); } } /// The stroke scale to be used for stroking the path. Will be used along with stroke width property. /// Stroke scale value public double StrokeScale { get { return GetStrokeScale(); } - set { SetStrokeScale( value); } + set { SetStrokeScale(value); } } /// The stroke width to be used for stroking the path. /// Stroke width to be used public double StrokeWidth { get { return GetStrokeWidth(); } - set { SetStrokeWidth( value); } + set { SetStrokeWidth(value); } } /// Not implemented /// Centered stroke location public double StrokeLocation { get { return GetStrokeLocation(); } - set { SetStrokeLocation( value); } + set { SetStrokeLocation(value); } } /// The cap style to be used for stroking the path. The cap will be used for capping the end point of a open subpath. /// See also . /// Cap style to use, default is public Efl.Gfx.Cap StrokeCap { get { return GetStrokeCap(); } - set { SetStrokeCap( value); } + set { SetStrokeCap(value); } } /// The join style to be used for stroking the path. The join style will be used for joining the two line segment while stroking the path. /// See also . /// Join style to use, default is public Efl.Gfx.Join StrokeJoin { get { return GetStrokeJoin(); } - set { SetStrokeJoin( value); } + set { SetStrokeJoin(value); } } /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or public Efl.Gfx.FillRule FillRule { get { return GetFillRule(); } - set { SetFillRule( value); } + set { SetFillRule(value); } } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Vg.Shape.efl_canvas_vg_shape_class_get(); } -} -public class ShapeNativeInherit : Efl.Canvas.Vg.NodeNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_canvas_vg_shape_fill_get_static_delegate == null) - efl_canvas_vg_shape_fill_get_static_delegate = new efl_canvas_vg_shape_fill_get_delegate(fill_get); - if (methods.FirstOrDefault(m => m.Name == "GetFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_shape_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_fill_get_static_delegate)}); - if (efl_canvas_vg_shape_fill_set_static_delegate == null) - efl_canvas_vg_shape_fill_set_static_delegate = new efl_canvas_vg_shape_fill_set_delegate(fill_set); - if (methods.FirstOrDefault(m => m.Name == "SetFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_shape_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_fill_set_static_delegate)}); - if (efl_canvas_vg_shape_stroke_fill_get_static_delegate == null) - efl_canvas_vg_shape_stroke_fill_get_static_delegate = new efl_canvas_vg_shape_stroke_fill_get_delegate(stroke_fill_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_shape_stroke_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_stroke_fill_get_static_delegate)}); - if (efl_canvas_vg_shape_stroke_fill_set_static_delegate == null) - efl_canvas_vg_shape_stroke_fill_set_static_delegate = new efl_canvas_vg_shape_stroke_fill_set_delegate(stroke_fill_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_shape_stroke_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_stroke_fill_set_static_delegate)}); - if (efl_canvas_vg_shape_stroke_marker_get_static_delegate == null) - efl_canvas_vg_shape_stroke_marker_get_static_delegate = new efl_canvas_vg_shape_stroke_marker_get_delegate(stroke_marker_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeMarker") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_shape_stroke_marker_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_stroke_marker_get_static_delegate)}); - if (efl_canvas_vg_shape_stroke_marker_set_static_delegate == null) - efl_canvas_vg_shape_stroke_marker_set_static_delegate = new efl_canvas_vg_shape_stroke_marker_set_delegate(stroke_marker_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeMarker") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_vg_shape_stroke_marker_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_stroke_marker_set_static_delegate)}); - if (efl_gfx_shape_stroke_scale_get_static_delegate == null) - efl_gfx_shape_stroke_scale_get_static_delegate = new efl_gfx_shape_stroke_scale_get_delegate(stroke_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_scale_get_static_delegate)}); - if (efl_gfx_shape_stroke_scale_set_static_delegate == null) - efl_gfx_shape_stroke_scale_set_static_delegate = new efl_gfx_shape_stroke_scale_set_delegate(stroke_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_scale_set_static_delegate)}); - if (efl_gfx_shape_stroke_color_get_static_delegate == null) - efl_gfx_shape_stroke_color_get_static_delegate = new efl_gfx_shape_stroke_color_get_delegate(stroke_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_color_get_static_delegate)}); - if (efl_gfx_shape_stroke_color_set_static_delegate == null) - efl_gfx_shape_stroke_color_set_static_delegate = new efl_gfx_shape_stroke_color_set_delegate(stroke_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_color_set_static_delegate)}); - if (efl_gfx_shape_stroke_width_get_static_delegate == null) - efl_gfx_shape_stroke_width_get_static_delegate = new efl_gfx_shape_stroke_width_get_delegate(stroke_width_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_width_get_static_delegate)}); - if (efl_gfx_shape_stroke_width_set_static_delegate == null) - efl_gfx_shape_stroke_width_set_static_delegate = new efl_gfx_shape_stroke_width_set_delegate(stroke_width_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_width_set_static_delegate)}); - if (efl_gfx_shape_stroke_location_get_static_delegate == null) - efl_gfx_shape_stroke_location_get_static_delegate = new efl_gfx_shape_stroke_location_get_delegate(stroke_location_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeLocation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_location_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_location_get_static_delegate)}); - if (efl_gfx_shape_stroke_location_set_static_delegate == null) - efl_gfx_shape_stroke_location_set_static_delegate = new efl_gfx_shape_stroke_location_set_delegate(stroke_location_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeLocation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_location_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_location_set_static_delegate)}); - if (efl_gfx_shape_stroke_dash_get_static_delegate == null) - efl_gfx_shape_stroke_dash_get_static_delegate = new efl_gfx_shape_stroke_dash_get_delegate(stroke_dash_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeDash") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_dash_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_dash_get_static_delegate)}); - if (efl_gfx_shape_stroke_dash_set_static_delegate == null) - efl_gfx_shape_stroke_dash_set_static_delegate = new efl_gfx_shape_stroke_dash_set_delegate(stroke_dash_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeDash") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_dash_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_dash_set_static_delegate)}); - if (efl_gfx_shape_stroke_cap_get_static_delegate == null) - efl_gfx_shape_stroke_cap_get_static_delegate = new efl_gfx_shape_stroke_cap_get_delegate(stroke_cap_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeCap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_cap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_cap_get_static_delegate)}); - if (efl_gfx_shape_stroke_cap_set_static_delegate == null) - efl_gfx_shape_stroke_cap_set_static_delegate = new efl_gfx_shape_stroke_cap_set_delegate(stroke_cap_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeCap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_cap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_cap_set_static_delegate)}); - if (efl_gfx_shape_stroke_join_get_static_delegate == null) - efl_gfx_shape_stroke_join_get_static_delegate = new efl_gfx_shape_stroke_join_get_delegate(stroke_join_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeJoin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_join_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_join_get_static_delegate)}); - if (efl_gfx_shape_stroke_join_set_static_delegate == null) - efl_gfx_shape_stroke_join_set_static_delegate = new efl_gfx_shape_stroke_join_set_delegate(stroke_join_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeJoin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_join_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_join_set_static_delegate)}); - if (efl_gfx_shape_fill_rule_get_static_delegate == null) - efl_gfx_shape_fill_rule_get_static_delegate = new efl_gfx_shape_fill_rule_get_delegate(fill_rule_get); - if (methods.FirstOrDefault(m => m.Name == "GetFillRule") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_fill_rule_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_fill_rule_get_static_delegate)}); - if (efl_gfx_shape_fill_rule_set_static_delegate == null) - efl_gfx_shape_fill_rule_set_static_delegate = new efl_gfx_shape_fill_rule_set_delegate(fill_rule_set); - if (methods.FirstOrDefault(m => m.Name == "SetFillRule") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_fill_rule_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_fill_rule_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Vg.Node.NativeMethods { - return Efl.Canvas.Vg.Shape.efl_canvas_vg_shape_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Canvas.Vg.Shape.efl_canvas_vg_shape_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_canvas_vg_shape_fill_get_static_delegate == null) + { + efl_canvas_vg_shape_fill_get_static_delegate = new efl_canvas_vg_shape_fill_get_delegate(fill_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_shape_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_fill_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_canvas_vg_shape_fill_set_static_delegate == null) + { + efl_canvas_vg_shape_fill_set_static_delegate = new efl_canvas_vg_shape_fill_set_delegate(fill_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_shape_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_fill_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_fill_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_fill_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_shape_fill_get"); - private static Efl.Canvas.Vg.Node fill_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_vg_shape_fill_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Vg.Node _ret_var = default(Efl.Canvas.Vg.Node); - try { - _ret_var = ((Shape)wrapper).GetFill(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_canvas_vg_shape_stroke_fill_get_static_delegate == null) + { + efl_canvas_vg_shape_stroke_fill_get_static_delegate = new efl_canvas_vg_shape_stroke_fill_get_delegate(stroke_fill_get); } - return _ret_var; - } else { - return efl_canvas_vg_shape_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_vg_shape_fill_get_delegate efl_canvas_vg_shape_fill_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetStrokeFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_shape_stroke_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_stroke_fill_get_static_delegate) }); + } - private delegate void efl_canvas_vg_shape_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Vg.Node f); + if (efl_canvas_vg_shape_stroke_fill_set_static_delegate == null) + { + efl_canvas_vg_shape_stroke_fill_set_static_delegate = new efl_canvas_vg_shape_stroke_fill_set_delegate(stroke_fill_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_shape_stroke_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_stroke_fill_set_static_delegate) }); + } - public delegate void efl_canvas_vg_shape_fill_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Vg.Node f); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_fill_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_shape_fill_set"); - private static void fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Vg.Node f) - { - Eina.Log.Debug("function efl_canvas_vg_shape_fill_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Shape)wrapper).SetFill( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_vg_shape_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_canvas_vg_shape_fill_set_delegate efl_canvas_vg_shape_fill_set_static_delegate; + if (efl_canvas_vg_shape_stroke_marker_get_static_delegate == null) + { + efl_canvas_vg_shape_stroke_marker_get_static_delegate = new efl_canvas_vg_shape_stroke_marker_get_delegate(stroke_marker_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrokeMarker") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_shape_stroke_marker_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_stroke_marker_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_stroke_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_canvas_vg_shape_stroke_marker_set_static_delegate == null) + { + efl_canvas_vg_shape_stroke_marker_set_static_delegate = new efl_canvas_vg_shape_stroke_marker_set_delegate(stroke_marker_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeMarker") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_shape_stroke_marker_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_shape_stroke_marker_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_stroke_fill_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_stroke_fill_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_shape_stroke_fill_get"); - private static Efl.Canvas.Vg.Node stroke_fill_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_vg_shape_stroke_fill_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Vg.Node _ret_var = default(Efl.Canvas.Vg.Node); - try { - _ret_var = ((Shape)wrapper).GetStrokeFill(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_shape_stroke_scale_get_static_delegate == null) + { + efl_gfx_shape_stroke_scale_get_static_delegate = new efl_gfx_shape_stroke_scale_get_delegate(stroke_scale_get); } - return _ret_var; - } else { - return efl_canvas_vg_shape_stroke_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_vg_shape_stroke_fill_get_delegate efl_canvas_vg_shape_stroke_fill_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetStrokeScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_scale_get_static_delegate) }); + } - private delegate void efl_canvas_vg_shape_stroke_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Vg.Node f); + if (efl_gfx_shape_stroke_scale_set_static_delegate == null) + { + efl_gfx_shape_stroke_scale_set_static_delegate = new efl_gfx_shape_stroke_scale_set_delegate(stroke_scale_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_scale_set_static_delegate) }); + } - public delegate void efl_canvas_vg_shape_stroke_fill_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Vg.Node f); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_stroke_fill_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_shape_stroke_fill_set"); - private static void stroke_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Vg.Node f) - { - Eina.Log.Debug("function efl_canvas_vg_shape_stroke_fill_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Shape)wrapper).SetStrokeFill( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_vg_shape_stroke_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_canvas_vg_shape_stroke_fill_set_delegate efl_canvas_vg_shape_stroke_fill_set_static_delegate; + if (efl_gfx_shape_stroke_color_get_static_delegate == null) + { + efl_gfx_shape_stroke_color_get_static_delegate = new efl_gfx_shape_stroke_color_get_delegate(stroke_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrokeColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_color_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_stroke_marker_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_shape_stroke_color_set_static_delegate == null) + { + efl_gfx_shape_stroke_color_set_static_delegate = new efl_gfx_shape_stroke_color_set_delegate(stroke_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_color_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_stroke_marker_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_stroke_marker_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_shape_stroke_marker_get"); - private static Efl.Canvas.Vg.Node stroke_marker_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_vg_shape_stroke_marker_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Vg.Node _ret_var = default(Efl.Canvas.Vg.Node); - try { - _ret_var = ((Shape)wrapper).GetStrokeMarker(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_shape_stroke_width_get_static_delegate == null) + { + efl_gfx_shape_stroke_width_get_static_delegate = new efl_gfx_shape_stroke_width_get_delegate(stroke_width_get); } - return _ret_var; - } else { - return efl_canvas_vg_shape_stroke_marker_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_vg_shape_stroke_marker_get_delegate efl_canvas_vg_shape_stroke_marker_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetStrokeWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_width_get_static_delegate) }); + } - private delegate void efl_canvas_vg_shape_stroke_marker_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Vg.Node m); + if (efl_gfx_shape_stroke_width_set_static_delegate == null) + { + efl_gfx_shape_stroke_width_set_static_delegate = new efl_gfx_shape_stroke_width_set_delegate(stroke_width_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_width_set_static_delegate) }); + } - public delegate void efl_canvas_vg_shape_stroke_marker_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Vg.Node m); - public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_stroke_marker_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_vg_shape_stroke_marker_set"); - private static void stroke_marker_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Vg.Node m) - { - Eina.Log.Debug("function efl_canvas_vg_shape_stroke_marker_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Shape)wrapper).SetStrokeMarker( m); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_canvas_vg_shape_stroke_marker_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), m); - } - } - private static efl_canvas_vg_shape_stroke_marker_set_delegate efl_canvas_vg_shape_stroke_marker_set_static_delegate; + if (efl_gfx_shape_stroke_location_get_static_delegate == null) + { + efl_gfx_shape_stroke_location_get_static_delegate = new efl_gfx_shape_stroke_location_get_delegate(stroke_location_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrokeLocation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_location_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_location_get_static_delegate) }); + } - private delegate double efl_gfx_shape_stroke_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_shape_stroke_location_set_static_delegate == null) + { + efl_gfx_shape_stroke_location_set_static_delegate = new efl_gfx_shape_stroke_location_set_delegate(stroke_location_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeLocation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_location_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_location_set_static_delegate) }); + } - public delegate double efl_gfx_shape_stroke_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_scale_get"); - private static double stroke_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Shape)wrapper).GetStrokeScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_shape_stroke_dash_get_static_delegate == null) + { + efl_gfx_shape_stroke_dash_get_static_delegate = new efl_gfx_shape_stroke_dash_get_delegate(stroke_dash_get); } - return _ret_var; - } else { - return efl_gfx_shape_stroke_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_shape_stroke_scale_get_delegate efl_gfx_shape_stroke_scale_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetStrokeDash") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_dash_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_dash_get_static_delegate) }); + } - private delegate void efl_gfx_shape_stroke_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double s); + if (efl_gfx_shape_stroke_dash_set_static_delegate == null) + { + efl_gfx_shape_stroke_dash_set_static_delegate = new efl_gfx_shape_stroke_dash_set_delegate(stroke_dash_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeDash") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_dash_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_dash_set_static_delegate) }); + } - public delegate void efl_gfx_shape_stroke_scale_set_api_delegate(System.IntPtr obj, double s); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_scale_set"); - private static void stroke_scale_set(System.IntPtr obj, System.IntPtr pd, double s) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Shape)wrapper).SetStrokeScale( s); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); - } - } - private static efl_gfx_shape_stroke_scale_set_delegate efl_gfx_shape_stroke_scale_set_static_delegate; + if (efl_gfx_shape_stroke_cap_get_static_delegate == null) + { + efl_gfx_shape_stroke_cap_get_static_delegate = new efl_gfx_shape_stroke_cap_get_delegate(stroke_cap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrokeCap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_cap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_cap_get_static_delegate) }); + } - private delegate void efl_gfx_shape_stroke_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + if (efl_gfx_shape_stroke_cap_set_static_delegate == null) + { + efl_gfx_shape_stroke_cap_set_static_delegate = new efl_gfx_shape_stroke_cap_set_delegate(stroke_cap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeCap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_cap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_cap_set_static_delegate) }); + } - public delegate void efl_gfx_shape_stroke_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_color_get"); - private static void stroke_color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); - try { - ((Shape)wrapper).GetStrokeColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_gfx_shape_stroke_color_get_delegate efl_gfx_shape_stroke_color_get_static_delegate; + if (efl_gfx_shape_stroke_join_get_static_delegate == null) + { + efl_gfx_shape_stroke_join_get_static_delegate = new efl_gfx_shape_stroke_join_get_delegate(stroke_join_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStrokeJoin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_join_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_join_get_static_delegate) }); + } + if (efl_gfx_shape_stroke_join_set_static_delegate == null) + { + efl_gfx_shape_stroke_join_set_static_delegate = new efl_gfx_shape_stroke_join_set_delegate(stroke_join_set); + } - private delegate void efl_gfx_shape_stroke_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + if (methods.FirstOrDefault(m => m.Name == "SetStrokeJoin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_join_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_join_set_static_delegate) }); + } + if (efl_gfx_shape_fill_rule_get_static_delegate == null) + { + efl_gfx_shape_fill_rule_get_static_delegate = new efl_gfx_shape_fill_rule_get_delegate(fill_rule_get); + } - public delegate void efl_gfx_shape_stroke_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_color_set"); - private static void stroke_color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Shape)wrapper).SetStrokeColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + if (methods.FirstOrDefault(m => m.Name == "GetFillRule") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_fill_rule_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_fill_rule_get_static_delegate) }); + } + + if (efl_gfx_shape_fill_rule_set_static_delegate == null) + { + efl_gfx_shape_fill_rule_set_static_delegate = new efl_gfx_shape_fill_rule_set_delegate(fill_rule_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFillRule") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_fill_rule_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_fill_rule_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Vg.Shape.efl_canvas_vg_shape_class_get(); } - } - private static efl_gfx_shape_stroke_color_set_delegate efl_gfx_shape_stroke_color_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_fill_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_shape_fill_get"); + + private static Efl.Canvas.Vg.Node fill_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_vg_shape_fill_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Vg.Node _ret_var = default(Efl.Canvas.Vg.Node); + try + { + _ret_var = ((Shape)wrapper).GetFill(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_gfx_shape_stroke_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_canvas_vg_shape_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate double efl_gfx_shape_stroke_width_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_width_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_width_get"); - private static double stroke_width_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_width_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Shape)wrapper).GetStrokeWidth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_canvas_vg_shape_fill_get_delegate efl_canvas_vg_shape_fill_get_static_delegate; + + + private delegate void efl_canvas_vg_shape_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Vg.Node f); + + + public delegate void efl_canvas_vg_shape_fill_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Vg.Node f); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_shape_fill_set"); + + private static void fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Vg.Node f) + { + Eina.Log.Debug("function efl_canvas_vg_shape_fill_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Shape)wrapper).SetFill(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_vg_shape_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); } - return _ret_var; - } else { - return efl_gfx_shape_stroke_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_shape_stroke_width_get_delegate efl_gfx_shape_stroke_width_get_static_delegate; + private static efl_canvas_vg_shape_fill_set_delegate efl_canvas_vg_shape_fill_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_stroke_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_stroke_fill_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_stroke_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_shape_stroke_fill_get"); + + private static Efl.Canvas.Vg.Node stroke_fill_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_vg_shape_stroke_fill_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Vg.Node _ret_var = default(Efl.Canvas.Vg.Node); + try + { + _ret_var = ((Shape)wrapper).GetStrokeFill(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_shape_stroke_width_set_delegate(System.IntPtr obj, System.IntPtr pd, double w); + return _ret_var; + } + else + { + return efl_canvas_vg_shape_stroke_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_shape_stroke_width_set_api_delegate(System.IntPtr obj, double w); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_width_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_width_set"); - private static void stroke_width_set(System.IntPtr obj, System.IntPtr pd, double w) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_width_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Shape)wrapper).SetStrokeWidth( w); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w); + private static efl_canvas_vg_shape_stroke_fill_get_delegate efl_canvas_vg_shape_stroke_fill_get_static_delegate; + + + private delegate void efl_canvas_vg_shape_stroke_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Vg.Node f); + + + public delegate void efl_canvas_vg_shape_stroke_fill_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Vg.Node f); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_stroke_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_shape_stroke_fill_set"); + + private static void stroke_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Vg.Node f) + { + Eina.Log.Debug("function efl_canvas_vg_shape_stroke_fill_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Shape)wrapper).SetStrokeFill(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_vg_shape_stroke_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } } - } - private static efl_gfx_shape_stroke_width_set_delegate efl_gfx_shape_stroke_width_set_static_delegate; + private static efl_canvas_vg_shape_stroke_fill_set_delegate efl_canvas_vg_shape_stroke_fill_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_stroke_marker_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Vg.Node efl_canvas_vg_shape_stroke_marker_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_stroke_marker_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_shape_stroke_marker_get"); + + private static Efl.Canvas.Vg.Node stroke_marker_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_vg_shape_stroke_marker_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Vg.Node _ret_var = default(Efl.Canvas.Vg.Node); + try + { + _ret_var = ((Shape)wrapper).GetStrokeMarker(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_gfx_shape_stroke_location_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_canvas_vg_shape_stroke_marker_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate double efl_gfx_shape_stroke_location_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_location_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_location_get"); - private static double stroke_location_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_location_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Shape)wrapper).GetStrokeLocation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_canvas_vg_shape_stroke_marker_get_delegate efl_canvas_vg_shape_stroke_marker_get_static_delegate; + + + private delegate void efl_canvas_vg_shape_stroke_marker_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Vg.Node m); + + + public delegate void efl_canvas_vg_shape_stroke_marker_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Vg.Node m); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_shape_stroke_marker_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_shape_stroke_marker_set"); + + private static void stroke_marker_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Vg.Node m) + { + Eina.Log.Debug("function efl_canvas_vg_shape_stroke_marker_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Shape)wrapper).SetStrokeMarker(m); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_vg_shape_stroke_marker_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), m); } - return _ret_var; - } else { - return efl_gfx_shape_stroke_location_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_shape_stroke_location_get_delegate efl_gfx_shape_stroke_location_get_static_delegate; + private static efl_canvas_vg_shape_stroke_marker_set_delegate efl_canvas_vg_shape_stroke_marker_set_static_delegate; + + + private delegate double efl_gfx_shape_stroke_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_shape_stroke_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_scale_get"); + + private static double stroke_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Shape)wrapper).GetStrokeScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_shape_stroke_location_set_delegate(System.IntPtr obj, System.IntPtr pd, double centered); + return _ret_var; + } + else + { + return efl_gfx_shape_stroke_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_shape_stroke_location_set_api_delegate(System.IntPtr obj, double centered); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_location_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_location_set"); - private static void stroke_location_set(System.IntPtr obj, System.IntPtr pd, double centered) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_location_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Shape)wrapper).SetStrokeLocation( centered); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_location_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), centered); + private static efl_gfx_shape_stroke_scale_get_delegate efl_gfx_shape_stroke_scale_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double s); + + + public delegate void efl_gfx_shape_stroke_scale_set_api_delegate(System.IntPtr obj, double s); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_scale_set"); + + private static void stroke_scale_set(System.IntPtr obj, System.IntPtr pd, double s) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Shape)wrapper).SetStrokeScale(s); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); + } + } + + private static efl_gfx_shape_stroke_scale_set_delegate efl_gfx_shape_stroke_scale_set_static_delegate; + + + private delegate void efl_gfx_shape_stroke_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + + + public delegate void efl_gfx_shape_stroke_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_color_get"); + + private static void stroke_color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); + try + { + ((Shape)wrapper).GetStrokeColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_gfx_shape_stroke_location_set_delegate efl_gfx_shape_stroke_location_set_static_delegate; + private static efl_gfx_shape_stroke_color_get_delegate efl_gfx_shape_stroke_color_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + + + public delegate void efl_gfx_shape_stroke_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_color_set"); + + private static void stroke_color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Shape)wrapper).SetStrokeColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate void efl_gfx_shape_stroke_dash_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr dash, out uint length); + private static efl_gfx_shape_stroke_color_set_delegate efl_gfx_shape_stroke_color_set_static_delegate; + + + private delegate double efl_gfx_shape_stroke_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_shape_stroke_width_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_width_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_width_get"); + + private static double stroke_width_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_width_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Shape)wrapper).GetStrokeWidth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_shape_stroke_dash_get_api_delegate(System.IntPtr obj, out System.IntPtr dash, out uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_dash_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_dash_get"); - private static void stroke_dash_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr dash, out uint length) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_dash_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.Dash _out_dash = default(Efl.Gfx.Dash); - length = default(uint); - try { - ((Shape)wrapper).GetStrokeDash( out _out_dash, out length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - dash = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_dash); - } else { - efl_gfx_shape_stroke_dash_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dash, out length); + else + { + return efl_gfx_shape_stroke_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_shape_stroke_dash_get_delegate efl_gfx_shape_stroke_dash_get_static_delegate; + private static efl_gfx_shape_stroke_width_get_delegate efl_gfx_shape_stroke_width_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_width_set_delegate(System.IntPtr obj, System.IntPtr pd, double w); + + + public delegate void efl_gfx_shape_stroke_width_set_api_delegate(System.IntPtr obj, double w); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_width_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_width_set"); + + private static void stroke_width_set(System.IntPtr obj, System.IntPtr pd, double w) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_width_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Shape)wrapper).SetStrokeWidth(w); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w); + } + } - private delegate void efl_gfx_shape_stroke_dash_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.Dash.NativeStruct dash, uint length); + private static efl_gfx_shape_stroke_width_set_delegate efl_gfx_shape_stroke_width_set_static_delegate; + + + private delegate double efl_gfx_shape_stroke_location_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_shape_stroke_location_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_location_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_location_get"); + + private static double stroke_location_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_location_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Shape)wrapper).GetStrokeLocation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_shape_stroke_dash_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.Dash.NativeStruct dash, uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_dash_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_dash_set"); - private static void stroke_dash_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.Dash.NativeStruct dash, uint length) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_dash_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.Dash _in_dash = dash; - - try { - ((Shape)wrapper).SetStrokeDash( ref _in_dash, length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - dash = _in_dash; - } else { - efl_gfx_shape_stroke_dash_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref dash, length); + else + { + return efl_gfx_shape_stroke_location_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_shape_stroke_location_get_delegate efl_gfx_shape_stroke_location_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_location_set_delegate(System.IntPtr obj, System.IntPtr pd, double centered); + + + public delegate void efl_gfx_shape_stroke_location_set_api_delegate(System.IntPtr obj, double centered); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_location_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_location_set"); + + private static void stroke_location_set(System.IntPtr obj, System.IntPtr pd, double centered) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_location_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Shape)wrapper).SetStrokeLocation(centered); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_location_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), centered); + } } - } - private static efl_gfx_shape_stroke_dash_set_delegate efl_gfx_shape_stroke_dash_set_static_delegate; + private static efl_gfx_shape_stroke_location_set_delegate efl_gfx_shape_stroke_location_set_static_delegate; - private delegate Efl.Gfx.Cap efl_gfx_shape_stroke_cap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_shape_stroke_dash_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr dash, out uint length); + + public delegate void efl_gfx_shape_stroke_dash_get_api_delegate(System.IntPtr obj, out System.IntPtr dash, out uint length); - public delegate Efl.Gfx.Cap efl_gfx_shape_stroke_cap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_cap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_cap_get"); - private static Efl.Gfx.Cap stroke_cap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_cap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.Cap _ret_var = default(Efl.Gfx.Cap); - try { - _ret_var = ((Shape)wrapper).GetStrokeCap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_dash_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_dash_get"); + + private static void stroke_dash_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr dash, out uint length) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_dash_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.Dash _out_dash = default(Efl.Gfx.Dash); + length = default(uint); + try + { + ((Shape)wrapper).GetStrokeDash(out _out_dash, out length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + dash = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_dash); + + } + else + { + efl_gfx_shape_stroke_dash_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dash, out length); } - return _ret_var; - } else { - return efl_gfx_shape_stroke_cap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_shape_stroke_cap_get_delegate efl_gfx_shape_stroke_cap_get_static_delegate; + private static efl_gfx_shape_stroke_dash_get_delegate efl_gfx_shape_stroke_dash_get_static_delegate; - private delegate void efl_gfx_shape_stroke_cap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Cap c); + + private delegate void efl_gfx_shape_stroke_dash_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.Dash.NativeStruct dash, uint length); + + public delegate void efl_gfx_shape_stroke_dash_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.Dash.NativeStruct dash, uint length); - public delegate void efl_gfx_shape_stroke_cap_set_api_delegate(System.IntPtr obj, Efl.Gfx.Cap c); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_cap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_cap_set"); - private static void stroke_cap_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Cap c) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_cap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Shape)wrapper).SetStrokeCap( c); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_cap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), c); + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_dash_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_dash_set"); + + private static void stroke_dash_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.Dash.NativeStruct dash, uint length) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_dash_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.Dash _in_dash = dash; + + try + { + ((Shape)wrapper).SetStrokeDash(ref _in_dash, length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + dash = _in_dash; + + } + else + { + efl_gfx_shape_stroke_dash_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref dash, length); + } } - } - private static efl_gfx_shape_stroke_cap_set_delegate efl_gfx_shape_stroke_cap_set_static_delegate; + private static efl_gfx_shape_stroke_dash_set_delegate efl_gfx_shape_stroke_dash_set_static_delegate; + + + private delegate Efl.Gfx.Cap efl_gfx_shape_stroke_cap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.Cap efl_gfx_shape_stroke_cap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_cap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_cap_get"); + + private static Efl.Gfx.Cap stroke_cap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_cap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.Cap _ret_var = default(Efl.Gfx.Cap); + try + { + _ret_var = ((Shape)wrapper).GetStrokeCap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Gfx.Join efl_gfx_shape_stroke_join_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_shape_stroke_cap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.Gfx.Join efl_gfx_shape_stroke_join_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_join_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_join_get"); - private static Efl.Gfx.Join stroke_join_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_join_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.Join _ret_var = default(Efl.Gfx.Join); - try { - _ret_var = ((Shape)wrapper).GetStrokeJoin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_shape_stroke_cap_get_delegate efl_gfx_shape_stroke_cap_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_cap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Cap c); + + + public delegate void efl_gfx_shape_stroke_cap_set_api_delegate(System.IntPtr obj, Efl.Gfx.Cap c); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_cap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_cap_set"); + + private static void stroke_cap_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Cap c) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_cap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Shape)wrapper).SetStrokeCap(c); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_cap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), c); } - return _ret_var; - } else { - return efl_gfx_shape_stroke_join_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_shape_stroke_join_get_delegate efl_gfx_shape_stroke_join_get_static_delegate; + private static efl_gfx_shape_stroke_cap_set_delegate efl_gfx_shape_stroke_cap_set_static_delegate; + + + private delegate Efl.Gfx.Join efl_gfx_shape_stroke_join_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.Join efl_gfx_shape_stroke_join_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_join_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_join_get"); + + private static Efl.Gfx.Join stroke_join_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_join_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.Join _ret_var = default(Efl.Gfx.Join); + try + { + _ret_var = ((Shape)wrapper).GetStrokeJoin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_shape_stroke_join_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Join j); + return _ret_var; + } + else + { + return efl_gfx_shape_stroke_join_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_shape_stroke_join_set_api_delegate(System.IntPtr obj, Efl.Gfx.Join j); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_join_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_join_set"); - private static void stroke_join_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Join j) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_join_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Shape)wrapper).SetStrokeJoin( j); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_join_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), j); + private static efl_gfx_shape_stroke_join_get_delegate efl_gfx_shape_stroke_join_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_join_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Join j); + + + public delegate void efl_gfx_shape_stroke_join_set_api_delegate(System.IntPtr obj, Efl.Gfx.Join j); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_join_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_join_set"); + + private static void stroke_join_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Join j) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_join_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Shape)wrapper).SetStrokeJoin(j); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_join_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), j); + } } - } - private static efl_gfx_shape_stroke_join_set_delegate efl_gfx_shape_stroke_join_set_static_delegate; + private static efl_gfx_shape_stroke_join_set_delegate efl_gfx_shape_stroke_join_set_static_delegate; + + + private delegate Efl.Gfx.FillRule efl_gfx_shape_fill_rule_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.FillRule efl_gfx_shape_fill_rule_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_fill_rule_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_fill_rule_get"); + + private static Efl.Gfx.FillRule fill_rule_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_fill_rule_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.FillRule _ret_var = default(Efl.Gfx.FillRule); + try + { + _ret_var = ((Shape)wrapper).GetFillRule(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Gfx.FillRule efl_gfx_shape_fill_rule_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_shape_fill_rule_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.Gfx.FillRule efl_gfx_shape_fill_rule_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_fill_rule_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_fill_rule_get"); - private static Efl.Gfx.FillRule fill_rule_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_fill_rule_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.FillRule _ret_var = default(Efl.Gfx.FillRule); - try { - _ret_var = ((Shape)wrapper).GetFillRule(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_shape_fill_rule_get_delegate efl_gfx_shape_fill_rule_get_static_delegate; + + + private delegate void efl_gfx_shape_fill_rule_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.FillRule fill_rule); + + + public delegate void efl_gfx_shape_fill_rule_set_api_delegate(System.IntPtr obj, Efl.Gfx.FillRule fill_rule); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_fill_rule_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_fill_rule_set"); + + private static void fill_rule_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.FillRule fill_rule) + { + Eina.Log.Debug("function efl_gfx_shape_fill_rule_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Shape)wrapper).SetFillRule(fill_rule); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_fill_rule_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill_rule); } - return _ret_var; - } else { - return efl_gfx_shape_fill_rule_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_shape_fill_rule_get_delegate efl_gfx_shape_fill_rule_get_static_delegate; + private static efl_gfx_shape_fill_rule_set_delegate efl_gfx_shape_fill_rule_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 - private delegate void efl_gfx_shape_fill_rule_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.FillRule fill_rule); +} +} +} +} - public delegate void efl_gfx_shape_fill_rule_set_api_delegate(System.IntPtr obj, Efl.Gfx.FillRule fill_rule); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_fill_rule_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_fill_rule_set"); - private static void fill_rule_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.FillRule fill_rule) - { - Eina.Log.Debug("function efl_gfx_shape_fill_rule_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Shape)wrapper).SetFillRule( fill_rule); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_fill_rule_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill_rule); - } - } - private static efl_gfx_shape_fill_rule_set_delegate efl_gfx_shape_fill_rule_set_static_delegate; } -} } } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_class.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_class.eo.cs index 4e683a5..4cb6bab 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_class.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_class.eo.cs @@ -3,44 +3,57 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Abstract Efl class /// (Since EFL 1.22) -[ClassNativeInherit] +[Efl.Class.NativeMethods] public abstract class Class : Efl.Eo.IWrapper, IDisposable { ///Pointer to the native class description. - public virtual System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Class)) - return Efl.ClassNativeInherit.GetEflClassStatic(); + public virtual System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Class)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + protected bool inherited; protected System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Eo)] internal static extern System.IntPtr efl_class_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Class(Efl.Object parent= null - ) : - this(efl_class_class_get(), typeof(Class), parent) + ) : this(efl_class_class_get(), typeof(Class), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Class(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } + [Efl.Eo.PrivateNativeClass] private class ClassRealized : Class { @@ -48,86 +61,130 @@ public abstract class Class : Efl.Eo.IWrapper, IDisposable { } } - protected Class(IntPtr base_klass, System.Type managed_type, Efl.Object parent) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to actually call the native library constructors. C# subclasses + /// must use the public constructor only. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Class(IntPtr baseKlass, System.Type managedType, Efl.Object parent) { - inherited = ((object)this).GetType() != managed_type; - IntPtr actual_klass = base_klass; - if (inherited) { - actual_klass = Efl.Eo.ClassRegister.GetInheritKlassOrRegister(base_klass, ((object)this).GetType()); + inherited = ((object)this).GetType() != managedType; + IntPtr actual_klass = baseKlass; + if (inherited) + { + actual_klass = Efl.Eo.ClassRegister.GetInheritKlassOrRegister(baseKlass, ((object)this).GetType()); } + handle = Efl.Eo.Globals.instantiate_start(actual_klass, parent); - RegisterEventProxies(); if (inherited) { Efl.Eo.Globals.PrivateDataSet(this); } } + + /// Finishes instantiating this object. + /// Internal usage by generated code. protected void FinishInstantiation() { handle = Efl.Eo.Globals.instantiate_end(handle); Eina.Error.RaiseIfUnhandledException(); } + ///Destructor. ~Class() { Dispose(false); } + ///Releases the underlying native instance. protected virtual void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected virtual void RegisterEventProxies() - { - } + private static IntPtr GetEflClassStatic() { return Efl.Class.efl_class_class_get(); } -} -public class ClassNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Eo); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Class.efl_class_class_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Class.efl_class_class_get(); - } + /// 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(); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Class.efl_class_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_composite_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_composite_model.eo.cs index e753af2..c41ed79 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_composite_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_composite_model.eo.cs @@ -3,243 +3,347 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl model for all composite class which provide a unified API to set source of data. /// This class also provide an "child.index" that match the value of . -[CompositeModelNativeInherit] +[Efl.CompositeModel.NativeMethods] public class CompositeModel : Efl.LoopModel, Efl.Eo.IWrapper,Efl.Ui.IView { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (CompositeModel)) - return Efl.CompositeModelNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(CompositeModel)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_composite_model_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Model that is/will be See - ///Position of this object in the parent model. See + /// Initializes a new instance of the class. + /// Parent instance. + /// Model that is/will be See + /// Position of this object in the parent model. See public CompositeModel(Efl.Object parent - , Efl.IModel model, uint? index = null) : - base(efl_composite_model_class_get(), typeof(CompositeModel), parent) + , Efl.IModel model, uint? index = null) : base(efl_composite_model_class_get(), typeof(CompositeModel), parent) { if (Efl.Eo.Globals.ParamHelperCheck(model)) + { SetModel(Efl.Eo.Globals.GetParamHelper(model)); + } + if (Efl.Eo.Globals.ParamHelperCheck(index)) + { SetIndex(Efl.Eo.Globals.GetParamHelper(index)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected CompositeModel(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected CompositeModel(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected CompositeModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Get the index. It will only work after the object has been finalized. /// Index of the object in the parent model. The index is uniq and start from zero. virtual public uint GetIndex() { - var _ret_var = Efl.CompositeModelNativeInherit.efl_composite_model_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.CompositeModel.NativeMethods.efl_composite_model_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the index. It can only be set before the object is finalized, but after the Model it compose is set and only if that Model does not provide an index already. /// Index of the object in the parent model. The index is uniq and start from zero. - /// - virtual public void SetIndex( uint index) { - Efl.CompositeModelNativeInherit.efl_composite_model_index_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public void SetIndex(uint index) { + Efl.CompositeModel.NativeMethods.efl_composite_model_index_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); } /// Model that is/will be /// Efl model virtual public Efl.IModel GetModel() { - var _ret_var = Efl.Ui.IViewNativeInherit.efl_ui_view_model_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IViewConcrete.NativeMethods.efl_ui_view_model_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Model that is/will be /// Efl model - /// - virtual public void SetModel( Efl.IModel model) { - Efl.Ui.IViewNativeInherit.efl_ui_view_model_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), model); + virtual public void SetModel(Efl.IModel model) { + Efl.Ui.IViewConcrete.NativeMethods.efl_ui_view_model_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),model); Eina.Error.RaiseIfUnhandledException(); } /// Position of this object in the parent model. /// Index of the object in the parent model. The index is uniq and start from zero. public uint Index { get { return GetIndex(); } - set { SetIndex( value); } + set { SetIndex(value); } } /// Model that is/will be /// Efl model public Efl.IModel Model { get { return GetModel(); } - set { SetModel( value); } + set { SetModel(value); } } private static IntPtr GetEflClassStatic() { return Efl.CompositeModel.efl_composite_model_class_get(); } -} -public class CompositeModelNativeInherit : Efl.LoopModelNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_composite_model_index_get_static_delegate == null) - efl_composite_model_index_get_static_delegate = new efl_composite_model_index_get_delegate(index_get); - if (methods.FirstOrDefault(m => m.Name == "GetIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_composite_model_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_model_index_get_static_delegate)}); - if (efl_composite_model_index_set_static_delegate == null) - efl_composite_model_index_set_static_delegate = new efl_composite_model_index_set_delegate(index_set); - if (methods.FirstOrDefault(m => m.Name == "SetIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_composite_model_index_set"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_model_index_set_static_delegate)}); - if (efl_ui_view_model_get_static_delegate == null) - efl_ui_view_model_get_static_delegate = new efl_ui_view_model_get_delegate(model_get); - if (methods.FirstOrDefault(m => m.Name == "GetModel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_view_model_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_get_static_delegate)}); - if (efl_ui_view_model_set_static_delegate == null) - efl_ui_view_model_set_static_delegate = new efl_ui_view_model_set_delegate(model_set); - if (methods.FirstOrDefault(m => m.Name == "SetModel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_view_model_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.CompositeModel.efl_composite_model_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopModel.NativeMethods { - return Efl.CompositeModel.efl_composite_model_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_composite_model_index_get_static_delegate == null) + { + efl_composite_model_index_get_static_delegate = new efl_composite_model_index_get_delegate(index_get); + } - private delegate uint efl_composite_model_index_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_composite_model_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_model_index_get_static_delegate) }); + } + if (efl_composite_model_index_set_static_delegate == null) + { + efl_composite_model_index_set_static_delegate = new efl_composite_model_index_set_delegate(index_set); + } - public delegate uint efl_composite_model_index_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_composite_model_index_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_composite_model_index_get"); - private static uint index_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_composite_model_index_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((CompositeModel)wrapper).GetIndex(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_composite_model_index_set"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_model_index_set_static_delegate) }); } - return _ret_var; - } else { - return efl_composite_model_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_view_model_get_static_delegate == null) + { + efl_ui_view_model_get_static_delegate = new efl_ui_view_model_get_delegate(model_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetModel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_view_model_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_get_static_delegate) }); + } + + if (efl_ui_view_model_set_static_delegate == null) + { + efl_ui_view_model_set_static_delegate = new efl_ui_view_model_set_delegate(model_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetModel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_view_model_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.CompositeModel.efl_composite_model_class_get(); } - } - private static efl_composite_model_index_get_delegate efl_composite_model_index_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_composite_model_index_set_delegate(System.IntPtr obj, System.IntPtr pd, uint index); + + private delegate uint efl_composite_model_index_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate uint efl_composite_model_index_get_api_delegate(System.IntPtr obj); - public delegate void efl_composite_model_index_set_api_delegate(System.IntPtr obj, uint index); - public static Efl.Eo.FunctionWrapper efl_composite_model_index_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_composite_model_index_set"); - private static void index_set(System.IntPtr obj, System.IntPtr pd, uint index) - { - Eina.Log.Debug("function efl_composite_model_index_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CompositeModel)wrapper).SetIndex( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_composite_model_index_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + public static Efl.Eo.FunctionWrapper efl_composite_model_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_composite_model_index_get"); + + private static uint index_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_composite_model_index_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((CompositeModel)wrapper).GetIndex(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_composite_model_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_composite_model_index_set_delegate efl_composite_model_index_set_static_delegate; + private static efl_composite_model_index_get_delegate efl_composite_model_index_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IModel efl_ui_view_model_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_composite_model_index_set_delegate(System.IntPtr obj, System.IntPtr pd, uint index); + + public delegate void efl_composite_model_index_set_api_delegate(System.IntPtr obj, uint index); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IModel efl_ui_view_model_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_view_model_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_view_model_get"); - private static Efl.IModel model_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_view_model_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IModel _ret_var = default(Efl.IModel); - try { - _ret_var = ((CompositeModel)wrapper).GetModel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_composite_model_index_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_composite_model_index_set"); + + private static void index_set(System.IntPtr obj, System.IntPtr pd, uint index) + { + Eina.Log.Debug("function efl_composite_model_index_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((CompositeModel)wrapper).SetIndex(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_composite_model_index_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); } + } + + private static efl_composite_model_index_set_delegate efl_composite_model_index_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IModel efl_ui_view_model_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IModel efl_ui_view_model_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_view_model_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_view_model_get"); + + private static Efl.IModel model_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_view_model_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IModel _ret_var = default(Efl.IModel); + try + { + _ret_var = ((CompositeModel)wrapper).GetModel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_view_model_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_view_model_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_view_model_get_delegate efl_ui_view_model_get_static_delegate; + private static efl_ui_view_model_get_delegate efl_ui_view_model_get_static_delegate; - private delegate void efl_ui_view_model_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model); + + private delegate void efl_ui_view_model_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model); + + public delegate void efl_ui_view_model_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model); - public delegate void efl_ui_view_model_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model); - public static Efl.Eo.FunctionWrapper efl_ui_view_model_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_view_model_set"); - private static void model_set(System.IntPtr obj, System.IntPtr pd, Efl.IModel model) - { - Eina.Log.Debug("function efl_ui_view_model_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CompositeModel)wrapper).SetModel( model); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_view_model_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model); + public static Efl.Eo.FunctionWrapper efl_ui_view_model_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_view_model_set"); + + private static void model_set(System.IntPtr obj, System.IntPtr pd, Efl.IModel model) + { + Eina.Log.Debug("function efl_ui_view_model_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((CompositeModel)wrapper).SetModel(model); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_view_model_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model); + } } - } - private static efl_ui_view_model_set_delegate efl_ui_view_model_set_static_delegate; + + private static efl_ui_view_model_set_delegate efl_ui_view_model_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_config.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_config.eo.cs index 2c73069..296ef0a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_config.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_config.eo.cs @@ -3,22 +3,24 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// A generic configuration interface, that holds key-value pairs. -[IConfigNativeInherit] +[Efl.IConfigConcrete.NativeMethods] public interface IConfig : Efl.Eo.IWrapper, IDisposable { /// A generic configuration value, referred to by name. /// Configuration option name. /// The value. It will be empty if it doesn't exist. The caller must free it after use (using eina_value_free() in C). -Eina.Value GetConfig( System.String name); +Eina.Value GetConfig(System.String name); /// A generic configuration value, referred to by name. /// Configuration option name. /// Configuration option value. May be null if not found. /// false in case of error: value type was invalid, the config can't be changed, config does not exist... -bool SetConfig( System.String name, Eina.Value value); +bool SetConfig(System.String name, Eina.Value value); } /// A generic configuration interface, that holds key-value pairs. sealed public class IConfigConcrete : @@ -27,73 +29,108 @@ IConfig { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IConfigConcrete)) - return Efl.IConfigNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IConfigConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_config_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IConfigConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IConfigConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// A generic configuration value, referred to by name. /// Configuration option name. /// The value. It will be empty if it doesn't exist. The caller must free it after use (using eina_value_free() in C). - public Eina.Value GetConfig( System.String name) { - var _ret_var = Efl.IConfigNativeInherit.efl_config_get_ptr.Value.Delegate(this.NativeHandle, name); + public Eina.Value GetConfig(System.String name) { + var _ret_var = Efl.IConfigConcrete.NativeMethods.efl_config_get_ptr.Value.Delegate(this.NativeHandle,name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -101,8 +138,8 @@ IConfig /// Configuration option name. /// Configuration option value. May be null if not found. /// false in case of error: value type was invalid, the config can't be changed, config does not exist... - public bool SetConfig( System.String name, Eina.Value value) { - var _ret_var = Efl.IConfigNativeInherit.efl_config_set_ptr.Value.Delegate(this.NativeHandle, name, value); + public bool SetConfig(System.String name, Eina.Value value) { + var _ret_var = Efl.IConfigConcrete.NativeMethods.efl_config_set_ptr.Value.Delegate(this.NativeHandle,name, value); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -110,80 +147,124 @@ IConfig { return Efl.IConfigConcrete.efl_config_interface_get(); } -} -public class IConfigNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_config_get_static_delegate == null) - efl_config_get_static_delegate = new efl_config_get_delegate(config_get); - if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_get_static_delegate)}); - if (efl_config_set_static_delegate == null) - efl_config_set_static_delegate = new efl_config_set_delegate(config_set); - if (methods.FirstOrDefault(m => m.Name == "SetConfig") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IConfigConcrete.efl_config_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IConfigConcrete.efl_config_interface_get(); - } + 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_config_get_static_delegate == null) + { + efl_config_get_static_delegate = new efl_config_get_delegate(config_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] private delegate Eina.Value efl_config_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_get_static_delegate) }); + } + if (efl_config_set_static_delegate == null) + { + efl_config_set_static_delegate = new efl_config_set_delegate(config_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] public delegate Eina.Value efl_config_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_config_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_get"); - private static Eina.Value config_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_config_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Value _ret_var = default(Eina.Value); - try { - _ret_var = ((IConfig)wrapper).GetConfig( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetConfig") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_set_static_delegate) }); } - return _ret_var; - } else { - return efl_config_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.IConfigConcrete.efl_config_interface_get(); } - } - private static efl_config_get_delegate efl_config_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_config_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] + private delegate Eina.Value efl_config_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] + public delegate Eina.Value efl_config_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_config_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); - public static Efl.Eo.FunctionWrapper efl_config_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_set"); - private static bool config_set(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.Value value) - { - Eina.Log.Debug("function efl_config_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IConfig)wrapper).SetConfig( name, value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_config_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_get"); + + private static Eina.Value config_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_config_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = ((IConfig)wrapper).GetConfig(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_config_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); } + } + + private static efl_config_get_delegate efl_config_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_config_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_config_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + + public static Efl.Eo.FunctionWrapper efl_config_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_set"); + + private static bool config_set(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.Value value) + { + Eina.Log.Debug("function efl_config_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IConfig)wrapper).SetConfig(name, value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_config_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value); + + } + else + { + return efl_config_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value); + } } - } - private static efl_config_set_delegate efl_config_set_static_delegate; + + private static efl_config_set_delegate efl_config_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_config_global.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_config_global.eo.cs index a0a9e99..ad195c5 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_config_global.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_config_global.eo.cs @@ -3,68 +3,90 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// This class is a singleton representing the global configuration for the running application. -[ConfigGlobalNativeInherit] +[Efl.ConfigGlobal.NativeMethods] public class ConfigGlobal : Efl.Object, Efl.Eo.IWrapper,Efl.IConfig { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ConfigGlobal)) - return Efl.ConfigGlobalNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ConfigGlobal)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_config_global_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ConfigGlobal(Efl.Object parent= null - ) : - base(efl_config_global_class_get(), typeof(ConfigGlobal), parent) + ) : base(efl_config_global_class_get(), typeof(ConfigGlobal), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ConfigGlobal(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ConfigGlobal(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ConfigGlobal(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// The profile for the running application. /// Profiles are pre-set options that affect the whole look-and-feel of Elementary-based applications. There are, for example, profiles aimed at desktop computer applications and others aimed at mobile, touchscreen-based ones. You most probably don't want to use the functions in this group unless you're writing an elementary configuration manager. /// /// This gets or sets the global profile that is applied to all Elementary applications. /// Profile name virtual public System.String GetProfile() { - var _ret_var = Efl.ConfigGlobalNativeInherit.efl_config_profile_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ConfigGlobal.NativeMethods.efl_config_profile_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -73,9 +95,8 @@ public class ConfigGlobal : Efl.Object, Efl.Eo.IWrapper,Efl.IConfig /// /// This gets or sets the global profile that is applied to all Elementary applications. /// Profile name - /// - virtual public void SetProfile( System.String profile) { - Efl.ConfigGlobalNativeInherit.efl_config_profile_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), profile); + virtual public void SetProfile(System.String profile) { + Efl.ConfigGlobal.NativeMethods.efl_config_profile_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile); Eina.Error.RaiseIfUnhandledException(); } /// Saves Elementary configuration to disk. @@ -86,24 +107,24 @@ public class ConfigGlobal : Efl.Object, Efl.Eo.IWrapper,Efl.IConfig /// If profile is not null, this will take the current in-memory config and write it out to the named profile. This will not change profile for the application or make other processes switch profile. /// The profile name. /// true on success, false otherwise - virtual public bool Save( System.String profile) { - var _ret_var = Efl.ConfigGlobalNativeInherit.efl_config_save_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), profile); + virtual public bool Save(System.String profile) { + var _ret_var = Efl.ConfigGlobal.NativeMethods.efl_config_save_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Returns the list of available profiles. /// If true, gets the full list of profiles, including those stored in hidden files. /// Iterator to profiles - virtual public Eina.Iterator ProfileIterate( bool hidden) { - var _ret_var = Efl.ConfigGlobalNativeInherit.efl_config_profile_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hidden); + virtual public Eina.Iterator ProfileIterate(bool hidden) { + var _ret_var = Efl.ConfigGlobal.NativeMethods.efl_config_profile_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hidden); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } /// Returns whether a profile exists or not. /// Profile name /// true if profile exists, false otherwise - virtual public bool ProfileExists( System.String profile) { - var _ret_var = Efl.ConfigGlobalNativeInherit.efl_config_profile_exists_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), profile); + virtual public bool ProfileExists(System.String profile) { + var _ret_var = Efl.ConfigGlobal.NativeMethods.efl_config_profile_exists_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -111,8 +132,8 @@ public class ConfigGlobal : Efl.Object, Efl.Eo.IWrapper,Efl.IConfig /// Profile name /// true to lookup for a user profile or false for a system one. /// Directory of the profile, free after use. - virtual public System.String GetProfileDir( System.String profile, bool is_user) { - var _ret_var = Efl.ConfigGlobalNativeInherit.efl_config_profile_dir_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), profile, is_user); + virtual public System.String GetProfileDir(System.String profile, bool is_user) { + var _ret_var = Efl.ConfigGlobal.NativeMethods.efl_config_profile_dir_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile, is_user); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -122,9 +143,8 @@ public class ConfigGlobal : Efl.Object, Efl.Eo.IWrapper,Efl.IConfig /// At this point it is not expected that anyone would generally use this API except if you are a desktop environment and so the user base of this API will be enlightenment itself. /// The new profile's name. /// Derive options detailing how to modify. - /// - virtual public void AddProfileDerived( System.String profile, System.String options) { - Efl.ConfigGlobalNativeInherit.efl_config_profile_derived_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), profile, options); + virtual public void AddProfileDerived(System.String profile, System.String options) { + Efl.ConfigGlobal.NativeMethods.efl_config_profile_derived_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile, options); Eina.Error.RaiseIfUnhandledException(); } /// Deletes a profile that is derived from the current one. @@ -132,16 +152,15 @@ public class ConfigGlobal : Efl.Object, Efl.Eo.IWrapper,Efl.IConfig /// /// At this point it is not expected that anyone would generally use this API except if you are a desktop environment and so the user base of this API will be enlightenment itself. /// The name of the profile that is to be deleted. - /// - virtual public void DelProfileDerived( System.String profile) { - Efl.ConfigGlobalNativeInherit.efl_config_profile_derived_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), profile); + virtual public void DelProfileDerived(System.String profile) { + Efl.ConfigGlobal.NativeMethods.efl_config_profile_derived_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),profile); Eina.Error.RaiseIfUnhandledException(); } /// A generic configuration value, referred to by name. /// Configuration option name. /// The value. It will be empty if it doesn't exist. The caller must free it after use (using eina_value_free() in C). - virtual public Eina.Value GetConfig( System.String name) { - var _ret_var = Efl.IConfigNativeInherit.efl_config_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Eina.Value GetConfig(System.String name) { + var _ret_var = Efl.IConfigConcrete.NativeMethods.efl_config_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -149,8 +168,8 @@ public class ConfigGlobal : Efl.Object, Efl.Eo.IWrapper,Efl.IConfig /// Configuration option name. /// Configuration option value. May be null if not found. /// false in case of error: value type was invalid, the config can't be changed, config does not exist... - virtual public bool SetConfig( System.String name, Eina.Value value) { - var _ret_var = Efl.IConfigNativeInherit.efl_config_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, value); + virtual public bool SetConfig(System.String name, Eina.Value value) { + var _ret_var = Efl.IConfigConcrete.NativeMethods.efl_config_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, value); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -161,316 +180,496 @@ public class ConfigGlobal : Efl.Object, Efl.Eo.IWrapper,Efl.IConfig /// Profile name public System.String Profile { get { return GetProfile(); } - set { SetProfile( value); } + set { SetProfile(value); } } private static IntPtr GetEflClassStatic() { return Efl.ConfigGlobal.efl_config_global_class_get(); } -} -public class ConfigGlobalNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_config_profile_get_static_delegate == null) - efl_config_profile_get_static_delegate = new efl_config_profile_get_delegate(profile_get); - if (methods.FirstOrDefault(m => m.Name == "GetProfile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_get_static_delegate)}); - if (efl_config_profile_set_static_delegate == null) - efl_config_profile_set_static_delegate = new efl_config_profile_set_delegate(profile_set); - if (methods.FirstOrDefault(m => m.Name == "SetProfile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_set_static_delegate)}); - if (efl_config_save_static_delegate == null) - efl_config_save_static_delegate = new efl_config_save_delegate(save); - if (methods.FirstOrDefault(m => m.Name == "Save") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_save"), func = Marshal.GetFunctionPointerForDelegate(efl_config_save_static_delegate)}); - if (efl_config_profile_iterate_static_delegate == null) - efl_config_profile_iterate_static_delegate = new efl_config_profile_iterate_delegate(profile_iterate); - if (methods.FirstOrDefault(m => m.Name == "ProfileIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_iterate_static_delegate)}); - if (efl_config_profile_exists_static_delegate == null) - efl_config_profile_exists_static_delegate = new efl_config_profile_exists_delegate(profile_exists); - if (methods.FirstOrDefault(m => m.Name == "ProfileExists") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_exists"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_exists_static_delegate)}); - if (efl_config_profile_dir_get_static_delegate == null) - efl_config_profile_dir_get_static_delegate = new efl_config_profile_dir_get_delegate(profile_dir_get); - if (methods.FirstOrDefault(m => m.Name == "GetProfileDir") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_dir_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_dir_get_static_delegate)}); - if (efl_config_profile_derived_add_static_delegate == null) - efl_config_profile_derived_add_static_delegate = new efl_config_profile_derived_add_delegate(profile_derived_add); - if (methods.FirstOrDefault(m => m.Name == "AddProfileDerived") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_derived_add"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_derived_add_static_delegate)}); - if (efl_config_profile_derived_del_static_delegate == null) - efl_config_profile_derived_del_static_delegate = new efl_config_profile_derived_del_delegate(profile_derived_del); - if (methods.FirstOrDefault(m => m.Name == "DelProfileDerived") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_derived_del"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_derived_del_static_delegate)}); - if (efl_config_get_static_delegate == null) - efl_config_get_static_delegate = new efl_config_get_delegate(config_get); - if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_get_static_delegate)}); - if (efl_config_set_static_delegate == null) - efl_config_set_static_delegate = new efl_config_set_delegate(config_set); - if (methods.FirstOrDefault(m => m.Name == "SetConfig") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.ConfigGlobal.efl_config_global_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.ConfigGlobal.efl_config_global_class_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_config_profile_get_static_delegate == null) + { + efl_config_profile_get_static_delegate = new efl_config_profile_get_delegate(profile_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_config_profile_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetProfile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_get_static_delegate) }); + } + if (efl_config_profile_set_static_delegate == null) + { + efl_config_profile_set_static_delegate = new efl_config_profile_set_delegate(profile_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_config_profile_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_config_profile_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_profile_get"); - private static System.String profile_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_config_profile_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ConfigGlobal)wrapper).GetProfile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetProfile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_set_static_delegate) }); } - return _ret_var; - } else { - return efl_config_profile_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_config_profile_get_delegate efl_config_profile_get_static_delegate; + if (efl_config_save_static_delegate == null) + { + efl_config_save_static_delegate = new efl_config_save_delegate(save); + } - private delegate void efl_config_profile_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + if (methods.FirstOrDefault(m => m.Name == "Save") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_save"), func = Marshal.GetFunctionPointerForDelegate(efl_config_save_static_delegate) }); + } + if (efl_config_profile_iterate_static_delegate == null) + { + efl_config_profile_iterate_static_delegate = new efl_config_profile_iterate_delegate(profile_iterate); + } - public delegate void efl_config_profile_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); - public static Efl.Eo.FunctionWrapper efl_config_profile_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_profile_set"); - private static void profile_set(System.IntPtr obj, System.IntPtr pd, System.String profile) - { - Eina.Log.Debug("function efl_config_profile_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ConfigGlobal)wrapper).SetProfile( profile); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_config_profile_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile); - } - } - private static efl_config_profile_set_delegate efl_config_profile_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ProfileIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_iterate_static_delegate) }); + } + if (efl_config_profile_exists_static_delegate == null) + { + efl_config_profile_exists_static_delegate = new efl_config_profile_exists_delegate(profile_exists); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_config_save_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + if (methods.FirstOrDefault(m => m.Name == "ProfileExists") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_exists"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_exists_static_delegate) }); + } + if (efl_config_profile_dir_get_static_delegate == null) + { + efl_config_profile_dir_get_static_delegate = new efl_config_profile_dir_get_delegate(profile_dir_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_config_save_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); - public static Efl.Eo.FunctionWrapper efl_config_save_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_save"); - private static bool save(System.IntPtr obj, System.IntPtr pd, System.String profile) - { - Eina.Log.Debug("function efl_config_save was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ConfigGlobal)wrapper).Save( profile); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetProfileDir") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_dir_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_dir_get_static_delegate) }); } - return _ret_var; - } else { - return efl_config_save_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile); - } - } - private static efl_config_save_delegate efl_config_save_static_delegate; + if (efl_config_profile_derived_add_static_delegate == null) + { + efl_config_profile_derived_add_static_delegate = new efl_config_profile_derived_add_delegate(profile_derived_add); + } - private delegate System.IntPtr efl_config_profile_iterate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hidden); + if (methods.FirstOrDefault(m => m.Name == "AddProfileDerived") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_derived_add"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_derived_add_static_delegate) }); + } + if (efl_config_profile_derived_del_static_delegate == null) + { + efl_config_profile_derived_del_static_delegate = new efl_config_profile_derived_del_delegate(profile_derived_del); + } - public delegate System.IntPtr efl_config_profile_iterate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hidden); - public static Efl.Eo.FunctionWrapper efl_config_profile_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_profile_iterate"); - private static System.IntPtr profile_iterate(System.IntPtr obj, System.IntPtr pd, bool hidden) - { - Eina.Log.Debug("function efl_config_profile_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((ConfigGlobal)wrapper).ProfileIterate( hidden); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DelProfileDerived") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_derived_del"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_derived_del_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_config_profile_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hidden); - } - } - private static efl_config_profile_iterate_delegate efl_config_profile_iterate_static_delegate; + if (efl_config_get_static_delegate == null) + { + efl_config_get_static_delegate = new efl_config_get_delegate(config_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_config_profile_exists_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_get_static_delegate) }); + } + if (efl_config_set_static_delegate == null) + { + efl_config_set_static_delegate = new efl_config_set_delegate(config_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_config_profile_exists_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); - public static Efl.Eo.FunctionWrapper efl_config_profile_exists_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_profile_exists"); - private static bool profile_exists(System.IntPtr obj, System.IntPtr pd, System.String profile) - { - Eina.Log.Debug("function efl_config_profile_exists was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ConfigGlobal)wrapper).ProfileExists( profile); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetConfig") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_set_static_delegate) }); } - return _ret_var; - } else { - return efl_config_profile_exists_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile); - } - } - private static efl_config_profile_exists_delegate efl_config_profile_exists_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.ConfigGlobal.efl_config_global_class_get(); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringsharePassOwnershipMarshaler))] private delegate System.String efl_config_profile_dir_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.U1)] bool is_user); + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_config_profile_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_config_profile_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_config_profile_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_profile_get"); + + private static System.String profile_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_config_profile_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ConfigGlobal)wrapper).GetProfile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringsharePassOwnershipMarshaler))] public delegate System.String efl_config_profile_dir_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.U1)] bool is_user); - public static Efl.Eo.FunctionWrapper efl_config_profile_dir_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_profile_dir_get"); - private static System.String profile_dir_get(System.IntPtr obj, System.IntPtr pd, System.String profile, bool is_user) - { - Eina.Log.Debug("function efl_config_profile_dir_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ConfigGlobal)wrapper).GetProfileDir( profile, is_user); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_config_profile_dir_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile, is_user); + else + { + return efl_config_profile_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_config_profile_dir_get_delegate efl_config_profile_dir_get_static_delegate; + private static efl_config_profile_get_delegate efl_config_profile_get_static_delegate; + + + private delegate void efl_config_profile_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + + + public delegate void efl_config_profile_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + + public static Efl.Eo.FunctionWrapper efl_config_profile_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_profile_set"); + + private static void profile_set(System.IntPtr obj, System.IntPtr pd, System.String profile) + { + Eina.Log.Debug("function efl_config_profile_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ConfigGlobal)wrapper).SetProfile(profile); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_config_profile_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile); + } + } - private delegate void efl_config_profile_derived_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String options); + private static efl_config_profile_set_delegate efl_config_profile_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_config_save_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_config_save_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + + public static Efl.Eo.FunctionWrapper efl_config_save_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_save"); + + private static bool save(System.IntPtr obj, System.IntPtr pd, System.String profile) + { + Eina.Log.Debug("function efl_config_save was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ConfigGlobal)wrapper).Save(profile); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_config_profile_derived_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String options); - public static Efl.Eo.FunctionWrapper efl_config_profile_derived_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_profile_derived_add"); - private static void profile_derived_add(System.IntPtr obj, System.IntPtr pd, System.String profile, System.String options) - { - Eina.Log.Debug("function efl_config_profile_derived_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ConfigGlobal)wrapper).AddProfileDerived( profile, options); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_config_profile_derived_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile, options); + } + else + { + return efl_config_save_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile); + } } - } - private static efl_config_profile_derived_add_delegate efl_config_profile_derived_add_static_delegate; + private static efl_config_save_delegate efl_config_save_static_delegate; + + + private delegate System.IntPtr efl_config_profile_iterate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hidden); + + + public delegate System.IntPtr efl_config_profile_iterate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hidden); + + public static Efl.Eo.FunctionWrapper efl_config_profile_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_profile_iterate"); + + private static System.IntPtr profile_iterate(System.IntPtr obj, System.IntPtr pd, bool hidden) + { + Eina.Log.Debug("function efl_config_profile_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((ConfigGlobal)wrapper).ProfileIterate(hidden); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_config_profile_derived_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_config_profile_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hidden); + } + } + private static efl_config_profile_iterate_delegate efl_config_profile_iterate_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_config_profile_exists_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_config_profile_exists_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + + public static Efl.Eo.FunctionWrapper efl_config_profile_exists_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_profile_exists"); + + private static bool profile_exists(System.IntPtr obj, System.IntPtr pd, System.String profile) + { + Eina.Log.Debug("function efl_config_profile_exists was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ConfigGlobal)wrapper).ProfileExists(profile); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_config_profile_derived_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); - public static Efl.Eo.FunctionWrapper efl_config_profile_derived_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_profile_derived_del"); - private static void profile_derived_del(System.IntPtr obj, System.IntPtr pd, System.String profile) - { - Eina.Log.Debug("function efl_config_profile_derived_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ConfigGlobal)wrapper).DelProfileDerived( profile); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_config_profile_derived_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile); + return _ret_var; + + } + else + { + return efl_config_profile_exists_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile); + } } - } - private static efl_config_profile_derived_del_delegate efl_config_profile_derived_del_static_delegate; + private static efl_config_profile_exists_delegate efl_config_profile_exists_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringsharePassOwnershipMarshaler))] + private delegate System.String efl_config_profile_dir_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.U1)] bool is_user); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringsharePassOwnershipMarshaler))] + public delegate System.String efl_config_profile_dir_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.U1)] bool is_user); + + public static Efl.Eo.FunctionWrapper efl_config_profile_dir_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_profile_dir_get"); + + private static System.String profile_dir_get(System.IntPtr obj, System.IntPtr pd, System.String profile, bool is_user) + { + Eina.Log.Debug("function efl_config_profile_dir_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ConfigGlobal)wrapper).GetProfileDir(profile, is_user); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] private delegate Eina.Value efl_config_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + return _ret_var; + } + else + { + return efl_config_profile_dir_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile, is_user); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] public delegate Eina.Value efl_config_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_config_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_get"); - private static Eina.Value config_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_config_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Value _ret_var = default(Eina.Value); - try { - _ret_var = ((ConfigGlobal)wrapper).GetConfig( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_config_profile_dir_get_delegate efl_config_profile_dir_get_static_delegate; + + + private delegate void efl_config_profile_derived_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String options); + + + public delegate void efl_config_profile_derived_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String options); + + public static Efl.Eo.FunctionWrapper efl_config_profile_derived_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_profile_derived_add"); + + private static void profile_derived_add(System.IntPtr obj, System.IntPtr pd, System.String profile, System.String options) + { + Eina.Log.Debug("function efl_config_profile_derived_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ConfigGlobal)wrapper).AddProfileDerived(profile, options); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_config_profile_derived_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile, options); } - return _ret_var; - } else { - return efl_config_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); } - } - private static efl_config_get_delegate efl_config_get_static_delegate; + private static efl_config_profile_derived_add_delegate efl_config_profile_derived_add_static_delegate; + + + private delegate void efl_config_profile_derived_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + + + public delegate void efl_config_profile_derived_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String profile); + + public static Efl.Eo.FunctionWrapper efl_config_profile_derived_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_profile_derived_del"); + + private static void profile_derived_del(System.IntPtr obj, System.IntPtr pd, System.String profile) + { + Eina.Log.Debug("function efl_config_profile_derived_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ConfigGlobal)wrapper).DelProfileDerived(profile); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_config_profile_derived_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profile); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_config_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + private static efl_config_profile_derived_del_delegate efl_config_profile_derived_del_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] + private delegate Eina.Value efl_config_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] + public delegate Eina.Value efl_config_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_config_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_get"); + + private static Eina.Value config_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_config_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = ((ConfigGlobal)wrapper).GetConfig(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_config_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); - public static Efl.Eo.FunctionWrapper efl_config_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_set"); - private static bool config_set(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.Value value) - { - Eina.Log.Debug("function efl_config_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ConfigGlobal)wrapper).SetConfig( name, value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_config_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } + } + + private static efl_config_get_delegate efl_config_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_config_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_config_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + + public static Efl.Eo.FunctionWrapper efl_config_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_set"); + + private static bool config_set(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.Value value) + { + Eina.Log.Debug("function efl_config_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ConfigGlobal)wrapper).SetConfig(name, value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_config_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value); + + } + else + { + return efl_config_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value); + } } - } - private static efl_config_set_delegate efl_config_set_static_delegate; + + private static efl_config_set_delegate efl_config_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_container.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_container.eo.cs index 8e95945..f7eb2ea 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_container.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_container.eo.cs @@ -3,12 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Common interface for objects that have multiple contents (sub objects). /// APIs in this interface deal with containers of multiple sub objects, not with individual parts. /// (Since EFL 1.22) -[IContainerNativeInherit] +[Efl.IContainerConcrete.NativeMethods] public interface IContainer : Efl.Eo.IWrapper, IDisposable { @@ -46,222 +48,289 @@ IContainer { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IContainerConcrete)) - return Efl.IContainerNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IContainerConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_container_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IContainerConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IContainerConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ContentAddedEvtKey = new object(); + /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Begin iterating over this object's contents. /// (Since EFL 1.22) /// Iterator to object content public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -269,7 +338,7 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -277,80 +346,124 @@ private static object ContentRemovedEvtKey = new object(); { return Efl.IContainerConcrete.efl_container_interface_get(); } -} -public class IContainerNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IContainerConcrete.efl_container_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.IContainerConcrete.efl_container_interface_get(); - } + 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_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IContainer)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.IContainerConcrete.efl_container_interface_get(); } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IContainer)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IContainer)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IContainer)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_count_delegate efl_content_count_static_delegate; + + private static efl_content_count_delegate efl_content_count_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_container_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_container_model.eo.cs index 6968837..d51f94b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_container_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_container_model.eo.cs @@ -3,77 +3,105 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Class used to create data models from Eina containers. /// Each container supplied represents a series of property values, each item being the property value for a child object. /// /// The data in the given containers are copied and stored internally. /// /// Several containers can be supplied and the number of allocated children is based on the container of the largest size. -[ContainerModelNativeInherit] +[Efl.ContainerModel.NativeMethods] public class ContainerModel : Efl.CompositeModel, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ContainerModel)) - return Efl.ContainerModelNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ContainerModel)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_container_model_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Model that is/will be See - ///Position of this object in the parent model. See + /// Initializes a new instance of the class. + /// Parent instance. + /// Model that is/will be See + /// Position of this object in the parent model. See public ContainerModel(Efl.Object parent - , Efl.IModel model, uint? index = null) : - base(efl_container_model_class_get(), typeof(ContainerModel), parent) + , Efl.IModel model, uint? index = null) : base(efl_container_model_class_get(), typeof(ContainerModel), parent) { if (Efl.Eo.Globals.ParamHelperCheck(model)) + { SetModel(Efl.Eo.Globals.GetParamHelper(model)); + } + if (Efl.Eo.Globals.ParamHelperCheck(index)) + { SetIndex(Efl.Eo.Globals.GetParamHelper(index)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ContainerModel(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ContainerModel(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ContainerModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Gets the type of the given property. /// Property name /// Property type - virtual public Eina.ValueType GetChildPropertyValueType( System.String name) { - var _ret_var = Efl.ContainerModelNativeInherit.efl_container_model_child_property_value_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Eina.ValueType GetChildPropertyValueType(System.String name) { + var _ret_var = Efl.ContainerModel.NativeMethods.efl_container_model_child_property_value_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -87,10 +115,10 @@ public class ContainerModel : Efl.CompositeModel, Efl.Eo.IWrapper /// Property type /// Values to be added /// true on success, false otherwise - virtual public bool AddChildProperty( System.String name, Eina.ValueType type, Eina.Iterator values) { + virtual public bool AddChildProperty(System.String name, Eina.ValueType type, Eina.Iterator values) { var _in_values = values.Handle; values.Own = false; - var _ret_var = Efl.ContainerModelNativeInherit.efl_container_model_child_property_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, type, _in_values); + var _ret_var = Efl.ContainerModel.NativeMethods.efl_container_model_child_property_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, type, _in_values); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -98,82 +126,126 @@ values.Own = false; { return Efl.ContainerModel.efl_container_model_class_get(); } -} -public class ContainerModelNativeInherit : Efl.CompositeModelNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_container_model_child_property_value_type_get_static_delegate == null) - efl_container_model_child_property_value_type_get_static_delegate = new efl_container_model_child_property_value_type_get_delegate(child_property_value_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetChildPropertyValueType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_container_model_child_property_value_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_container_model_child_property_value_type_get_static_delegate)}); - if (efl_container_model_child_property_add_static_delegate == null) - efl_container_model_child_property_add_static_delegate = new efl_container_model_child_property_add_delegate(child_property_add); - if (methods.FirstOrDefault(m => m.Name == "AddChildProperty") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_container_model_child_property_add"), func = Marshal.GetFunctionPointerForDelegate(efl_container_model_child_property_add_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.CompositeModel.NativeMethods { - return Efl.ContainerModel.efl_container_model_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.ContainerModel.efl_container_model_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_container_model_child_property_value_type_get_static_delegate == null) + { + efl_container_model_child_property_value_type_get_static_delegate = new efl_container_model_child_property_value_type_get_delegate(child_property_value_type_get); + } - private delegate Eina.ValueType efl_container_model_child_property_value_type_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + if (methods.FirstOrDefault(m => m.Name == "GetChildPropertyValueType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_container_model_child_property_value_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_container_model_child_property_value_type_get_static_delegate) }); + } + if (efl_container_model_child_property_add_static_delegate == null) + { + efl_container_model_child_property_add_static_delegate = new efl_container_model_child_property_add_delegate(child_property_add); + } - public delegate Eina.ValueType efl_container_model_child_property_value_type_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_container_model_child_property_value_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_container_model_child_property_value_type_get"); - private static Eina.ValueType child_property_value_type_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_container_model_child_property_value_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.ValueType _ret_var = default(Eina.ValueType); - try { - _ret_var = ((ContainerModel)wrapper).GetChildPropertyValueType( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "AddChildProperty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_container_model_child_property_add"), func = Marshal.GetFunctionPointerForDelegate(efl_container_model_child_property_add_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.ContainerModel.efl_container_model_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.ValueType efl_container_model_child_property_value_type_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + + public delegate Eina.ValueType efl_container_model_child_property_value_type_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_container_model_child_property_value_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_container_model_child_property_value_type_get"); + + private static Eina.ValueType child_property_value_type_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_container_model_child_property_value_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.ValueType _ret_var = default(Eina.ValueType); + try + { + _ret_var = ((ContainerModel)wrapper).GetChildPropertyValueType(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_container_model_child_property_value_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + + } + else + { + return efl_container_model_child_property_value_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } } - } - private static efl_container_model_child_property_value_type_get_delegate efl_container_model_child_property_value_type_get_static_delegate; + private static efl_container_model_child_property_value_type_get_delegate efl_container_model_child_property_value_type_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_container_model_child_property_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, Eina.ValueType type, System.IntPtr values); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_container_model_child_property_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, Eina.ValueType type, System.IntPtr values); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_container_model_child_property_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, Eina.ValueType type, System.IntPtr values); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_container_model_child_property_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, Eina.ValueType type, System.IntPtr values); - public static Efl.Eo.FunctionWrapper efl_container_model_child_property_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_container_model_child_property_add"); - private static bool child_property_add(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.ValueType type, System.IntPtr values) - { - Eina.Log.Debug("function efl_container_model_child_property_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_values = new Eina.Iterator(values, true, false); + public static Efl.Eo.FunctionWrapper efl_container_model_child_property_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_container_model_child_property_add"); + + private static bool child_property_add(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.ValueType type, System.IntPtr values) + { + Eina.Log.Debug("function efl_container_model_child_property_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_values = new Eina.Iterator(values, true, false); bool _ret_var = default(bool); - try { - _ret_var = ((ContainerModel)wrapper).AddChildProperty( name, type, _in_values); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((ContainerModel)wrapper).AddChildProperty(name, type, _in_values); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_container_model_child_property_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, type, values); + + } + else + { + return efl_container_model_child_property_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, type, values); + } } - } - private static efl_container_model_child_property_add_delegate efl_container_model_child_property_add_static_delegate; + + private static efl_container_model_child_property_add_delegate efl_container_model_child_property_add_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_content.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_content.eo.cs index dae7d5b..85bfb34 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_content.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_content.eo.cs @@ -3,34 +3,39 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { -/// Common interface for objects that have a (single) content. +namespace Efl { + +/// Common interface for objects that have a single sub-object as content. /// This is used for the default content part of widgets, as well as for individual parts through . /// (Since EFL 1.22) -[IContentNativeInherit] +[Efl.IContentConcrete.NativeMethods] public interface IContent : Efl.Eo.IWrapper, IDisposable { - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. Efl.Gfx.IEntity GetContent(); - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. -/// true on success, false otherwise -bool SetContent( Efl.Gfx.IEntity content); - /// Unswallow the object in the current container and return it. +/// The sub-object. +/// true if content was successfully swallowed. +bool SetContent(Efl.Gfx.IEntity content); + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object Efl.Gfx.IEntity UnsetContent(); /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) event EventHandler ContentChangedEvt; - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. Efl.Gfx.IEntity Content { get ; set ; @@ -41,7 +46,7 @@ public class IContentContentChangedEvt_Args : EventArgs { ///Actual event payload. public Efl.Gfx.IEntity arg { get; set; } } -/// Common interface for objects that have a (single) content. +/// Common interface for objects that have a single sub-object as content. /// This is used for the default content part of widgets, as well as for individual parts through . /// (Since EFL 1.22) sealed public class IContentConcrete : @@ -50,309 +55,431 @@ IContent { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IContentConcrete)) - return Efl.IContentNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IContentConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_content_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IContentConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IContentConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate(this.NativeHandle, content); + /// The sub-object. + /// true if content was successfully swallowed. + public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate(this.NativeHandle,content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.IContentConcrete.efl_content_interface_get(); } -} -public class IContentNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IContentConcrete.efl_content_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.IContentConcrete.efl_content_interface_get(); - } + 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((IContent)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_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.IContentConcrete.efl_content_interface_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((IContent)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IContent)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IContent)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((IContent)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((IContent)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_control.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_control.eo.cs index 573894d..f66df50 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_control.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_control.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl control interface -[IControlNativeInherit] +[Efl.IControlConcrete.NativeMethods] public interface IControl : Efl.Eo.IWrapper, IDisposable { @@ -15,15 +17,13 @@ public interface IControl : int GetPriority(); /// Control the priority of the object. /// The priority of the object -/// -void SetPriority( int priority); +void SetPriority(int priority); /// Controls whether the object is suspended or not. /// Controls whether the object is suspended or not. bool GetSuspend(); /// Controls whether the object is suspended or not. /// Controls whether the object is suspended or not. -/// -void SetSuspend( bool suspend); +void SetSuspend(bool suspend); /// Control the priority of the object. /// The priority of the object int Priority { @@ -44,242 +44,353 @@ IControl { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IControlConcrete)) - return Efl.IControlNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IControlConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_control_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IControlConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IControlConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Control the priority of the object. /// The priority of the object public int GetPriority() { - var _ret_var = Efl.IControlNativeInherit.efl_control_priority_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IControlConcrete.NativeMethods.efl_control_priority_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the priority of the object. /// The priority of the object - /// - public void SetPriority( int priority) { - Efl.IControlNativeInherit.efl_control_priority_set_ptr.Value.Delegate(this.NativeHandle, priority); + public void SetPriority(int priority) { + Efl.IControlConcrete.NativeMethods.efl_control_priority_set_ptr.Value.Delegate(this.NativeHandle,priority); Eina.Error.RaiseIfUnhandledException(); } /// Controls whether the object is suspended or not. /// Controls whether the object is suspended or not. public bool GetSuspend() { - var _ret_var = Efl.IControlNativeInherit.efl_control_suspend_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IControlConcrete.NativeMethods.efl_control_suspend_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Controls whether the object is suspended or not. /// Controls whether the object is suspended or not. - /// - public void SetSuspend( bool suspend) { - Efl.IControlNativeInherit.efl_control_suspend_set_ptr.Value.Delegate(this.NativeHandle, suspend); + public void SetSuspend(bool suspend) { + Efl.IControlConcrete.NativeMethods.efl_control_suspend_set_ptr.Value.Delegate(this.NativeHandle,suspend); Eina.Error.RaiseIfUnhandledException(); } /// Control the priority of the object. /// The priority of the object public int Priority { get { return GetPriority(); } - set { SetPriority( value); } + set { SetPriority(value); } } /// Controls whether the object is suspended or not. /// Controls whether the object is suspended or not. public bool Suspend { get { return GetSuspend(); } - set { SetSuspend( value); } + set { SetSuspend(value); } } private static IntPtr GetEflClassStatic() { return Efl.IControlConcrete.efl_control_interface_get(); } -} -public class IControlNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_control_priority_get_static_delegate == null) - efl_control_priority_get_static_delegate = new efl_control_priority_get_delegate(priority_get); - if (methods.FirstOrDefault(m => m.Name == "GetPriority") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_control_priority_get"), func = Marshal.GetFunctionPointerForDelegate(efl_control_priority_get_static_delegate)}); - if (efl_control_priority_set_static_delegate == null) - efl_control_priority_set_static_delegate = new efl_control_priority_set_delegate(priority_set); - if (methods.FirstOrDefault(m => m.Name == "SetPriority") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_control_priority_set"), func = Marshal.GetFunctionPointerForDelegate(efl_control_priority_set_static_delegate)}); - if (efl_control_suspend_get_static_delegate == null) - efl_control_suspend_get_static_delegate = new efl_control_suspend_get_delegate(suspend_get); - if (methods.FirstOrDefault(m => m.Name == "GetSuspend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_control_suspend_get"), func = Marshal.GetFunctionPointerForDelegate(efl_control_suspend_get_static_delegate)}); - if (efl_control_suspend_set_static_delegate == null) - efl_control_suspend_set_static_delegate = new efl_control_suspend_set_delegate(suspend_set); - if (methods.FirstOrDefault(m => m.Name == "SetSuspend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_control_suspend_set"), func = Marshal.GetFunctionPointerForDelegate(efl_control_suspend_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IControlConcrete.efl_control_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.IControlConcrete.efl_control_interface_get(); - } + 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_control_priority_get_static_delegate == null) + { + efl_control_priority_get_static_delegate = new efl_control_priority_get_delegate(priority_get); + } - private delegate int efl_control_priority_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPriority") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_control_priority_get"), func = Marshal.GetFunctionPointerForDelegate(efl_control_priority_get_static_delegate) }); + } + if (efl_control_priority_set_static_delegate == null) + { + efl_control_priority_set_static_delegate = new efl_control_priority_set_delegate(priority_set); + } - public delegate int efl_control_priority_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_control_priority_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_control_priority_get"); - private static int priority_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_control_priority_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IControl)wrapper).GetPriority(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPriority") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_control_priority_set"), func = Marshal.GetFunctionPointerForDelegate(efl_control_priority_set_static_delegate) }); } - return _ret_var; - } else { - return efl_control_priority_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_control_suspend_get_static_delegate == null) + { + efl_control_suspend_get_static_delegate = new efl_control_suspend_get_delegate(suspend_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSuspend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_control_suspend_get"), func = Marshal.GetFunctionPointerForDelegate(efl_control_suspend_get_static_delegate) }); + } + + if (efl_control_suspend_set_static_delegate == null) + { + efl_control_suspend_set_static_delegate = new efl_control_suspend_set_delegate(suspend_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSuspend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_control_suspend_set"), func = Marshal.GetFunctionPointerForDelegate(efl_control_suspend_set_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.IControlConcrete.efl_control_interface_get(); } - } - private static efl_control_priority_get_delegate efl_control_priority_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_control_priority_set_delegate(System.IntPtr obj, System.IntPtr pd, int priority); + + private delegate int efl_control_priority_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_control_priority_get_api_delegate(System.IntPtr obj); - public delegate void efl_control_priority_set_api_delegate(System.IntPtr obj, int priority); - public static Efl.Eo.FunctionWrapper efl_control_priority_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_control_priority_set"); - private static void priority_set(System.IntPtr obj, System.IntPtr pd, int priority) - { - Eina.Log.Debug("function efl_control_priority_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IControl)wrapper).SetPriority( priority); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_control_priority_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_control_priority_get"); + + private static int priority_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_control_priority_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IControl)wrapper).GetPriority(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_control_priority_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_control_priority_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), priority); } - } - private static efl_control_priority_set_delegate efl_control_priority_set_static_delegate; + private static efl_control_priority_get_delegate efl_control_priority_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_control_suspend_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_control_priority_set_delegate(System.IntPtr obj, System.IntPtr pd, int priority); + + public delegate void efl_control_priority_set_api_delegate(System.IntPtr obj, int priority); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_control_suspend_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_control_suspend_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_control_suspend_get"); - private static bool suspend_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_control_suspend_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IControl)wrapper).GetSuspend(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_control_priority_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_control_priority_set"); + + private static void priority_set(System.IntPtr obj, System.IntPtr pd, int priority) + { + Eina.Log.Debug("function efl_control_priority_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IControl)wrapper).SetPriority(priority); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_control_priority_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), priority); } + } + + private static efl_control_priority_set_delegate efl_control_priority_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_control_suspend_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_control_suspend_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_control_suspend_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_control_suspend_get"); + + private static bool suspend_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_control_suspend_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IControl)wrapper).GetSuspend(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_control_suspend_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_control_suspend_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_control_suspend_get_delegate efl_control_suspend_get_static_delegate; + private static efl_control_suspend_get_delegate efl_control_suspend_get_static_delegate; - private delegate void efl_control_suspend_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool suspend); + + private delegate void efl_control_suspend_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool suspend); + + public delegate void efl_control_suspend_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool suspend); - public delegate void efl_control_suspend_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool suspend); - public static Efl.Eo.FunctionWrapper efl_control_suspend_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_control_suspend_set"); - private static void suspend_set(System.IntPtr obj, System.IntPtr pd, bool suspend) - { - Eina.Log.Debug("function efl_control_suspend_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IControl)wrapper).SetSuspend( suspend); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_control_suspend_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_control_suspend_set"); + + private static void suspend_set(System.IntPtr obj, System.IntPtr pd, bool suspend) + { + Eina.Log.Debug("function efl_control_suspend_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IControl)wrapper).SetSuspend(suspend); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_control_suspend_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), suspend); } - } else { - efl_control_suspend_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), suspend); } - } - private static efl_control_suspend_set_delegate efl_control_suspend_set_static_delegate; + + private static efl_control_suspend_set_delegate efl_control_suspend_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_core_command_line.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_core_command_line.eo.cs index 6c069eb..46d1eb2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_core_command_line.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_core_command_line.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Core { +namespace Efl { + +namespace Core { + /// A mixin that implements standard functions for command lines. /// This object parses the command line that gets passed, later the object can be accessed via accessor or the string directly. -[ICommandLineNativeInherit] +[Efl.Core.ICommandLineConcrete.NativeMethods] public interface ICommandLine : Efl.Eo.IWrapper, IDisposable { @@ -19,20 +23,18 @@ public interface ICommandLine : /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. -/// System.String GetCommand(); /// Use an array to fill this object /// Every element of a string is a argument. /// An array where every array field is an argument /// On success true, false otherwise -bool SetCommandArray( Eina.Array array); +bool SetCommandArray(Eina.Array array); /// Use a string to fill this object /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string /// On success true, false otherwise -bool SetCommandString( System.String str); +bool SetCommandString(System.String str); /// Get the accessor which enables access to each argument that got passed to this object. -/// Eina.Accessor CommandAccess(); /// A commandline that encodes arguments in a command string. This command is unix shell-style, thus whitespace separates arguments unless escaped. Also a semi-colon ';', ampersand '&', pipe/bar '|', hash '#', bracket, square brace, brace character ('(', ')', '[', ']', '{', '}'), exclamation mark '!', backquote '`', greator or less than ('>' '<') character unless escaped or in quotes would cause args_count/value to not be generated properly, because it would force complex shell interpretation which will not be supported in evaluating the arg_count/value information, but the final shell may interpret this if this is executed via a command-line shell. To not be a complex shell command, it should be simple with paths, options and variable expansions, but nothing more complex involving the above unescaped characters. /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument VARIABLE" etc. @@ -42,7 +44,6 @@ Eina.Accessor CommandAccess(); /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. -/// System.String Command { get ; } @@ -67,68 +68,103 @@ ICommandLine { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ICommandLineConcrete)) - return Efl.Core.ICommandLineNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ICommandLineConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_core_command_line_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ICommandLineConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ICommandLineConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// A commandline that encodes arguments in a command string. This command is unix shell-style, thus whitespace separates arguments unless escaped. Also a semi-colon ';', ampersand '&', pipe/bar '|', hash '#', bracket, square brace, brace character ('(', ')', '[', ']', '{', '}'), exclamation mark '!', backquote '`', greator or less than ('>' '<') character unless escaped or in quotes would cause args_count/value to not be generated properly, because it would force complex shell interpretation which will not be supported in evaluating the arg_count/value information, but the final shell may interpret this if this is executed via a command-line shell. To not be a complex shell command, it should be simple with paths, options and variable expansions, but nothing more complex involving the above unescaped characters. /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument VARIABLE" etc. /// @@ -137,9 +173,8 @@ ICommandLine /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. - /// public System.String GetCommand() { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -147,11 +182,11 @@ ICommandLine /// Every element of a string is a argument. /// An array where every array field is an argument /// On success true, false otherwise - public bool SetCommandArray( Eina.Array array) { + public bool SetCommandArray(Eina.Array array) { var _in_array = array.Handle; array.Own = false; array.OwnContent = false; - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_array_set_ptr.Value.Delegate(this.NativeHandle, _in_array); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_array_set_ptr.Value.Delegate(this.NativeHandle,_in_array); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -159,15 +194,14 @@ array.OwnContent = false; /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string /// On success true, false otherwise - public bool SetCommandString( System.String str) { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_string_set_ptr.Value.Delegate(this.NativeHandle, str); + public bool SetCommandString(System.String str) { + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_string_set_ptr.Value.Delegate(this.NativeHandle,str); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the accessor which enables access to each argument that got passed to this object. - /// public Eina.Accessor CommandAccess() { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_access_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_access_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Accessor(_ret_var, false, false); } @@ -179,7 +213,6 @@ array.OwnContent = false; /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. -/// public System.String Command { get { return GetCommand(); } } @@ -187,151 +220,231 @@ array.OwnContent = false; /// Every element of a string is a argument. /// An array where every array field is an argument public Eina.Array CommandArray { - set { SetCommandArray( value); } + set { SetCommandArray(value); } } /// Use a string to fill this object /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string public System.String CommandString { - set { SetCommandString( value); } + set { SetCommandString(value); } } private static IntPtr GetEflClassStatic() { return Efl.Core.ICommandLineConcrete.efl_core_command_line_mixin_get(); } -} -public class ICommandLineNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_core_command_line_command_get_static_delegate == null) - efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get); - if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate)}); - if (efl_core_command_line_command_array_set_static_delegate == null) - efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set); - if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate)}); - if (efl_core_command_line_command_string_set_static_delegate == null) - efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set); - if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate)}); - if (efl_core_command_line_command_access_static_delegate == null) - efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access); - if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Core.ICommandLineConcrete.efl_core_command_line_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Core.ICommandLineConcrete.efl_core_command_line_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_core_command_line_command_get_static_delegate == null) + { + efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate) }); + } + if (efl_core_command_line_command_array_set_static_delegate == null) + { + efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_get"); - private static System.String command_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_command_line_command_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ICommandLineConcrete)wrapper).GetCommand(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate) }); } + + if (efl_core_command_line_command_string_set_static_delegate == null) + { + efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate) }); + } + + if (efl_core_command_line_command_access_static_delegate == null) + { + efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access); + } + + if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_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.Core.ICommandLineConcrete.efl_core_command_line_mixin_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_get"); + + private static System.String command_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_command_line_command_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ICommandLineConcrete)wrapper).GetCommand(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate; + private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_array_set"); - private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array) - { - Eina.Log.Debug("function efl_core_command_line_command_array_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_array = new Eina.Array(array, true, true); + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_array_set"); + + private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array) + { + Eina.Log.Debug("function efl_core_command_line_command_array_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_array = new Eina.Array(array, true, true); bool _ret_var = default(bool); - try { - _ret_var = ((ICommandLineConcrete)wrapper).SetCommandArray( _in_array); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((ICommandLineConcrete)wrapper).SetCommandArray(_in_array); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array); + + } + else + { + return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array); + } } - } - private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate; + private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_string_set"); + + private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str) + { + Eina.Log.Debug("function efl_core_command_line_command_string_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ICommandLineConcrete)wrapper).SetCommandString(str); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_string_set"); - private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str) - { - Eina.Log.Debug("function efl_core_command_line_command_string_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ICommandLineConcrete)wrapper).SetCommandString( str); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str); + + } + else + { + return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str); + } } - } - private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate; + private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate; - private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_access"); + + private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_command_line_command_access was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Accessor _ret_var = default(Eina.Accessor); + try + { + _ret_var = ((ICommandLineConcrete)wrapper).CommandAccess(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_access"); - private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_command_line_command_access was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Accessor _ret_var = default(Eina.Accessor); - try { - _ret_var = ((ICommandLineConcrete)wrapper).CommandAccess(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var.Handle; - } else { - return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate; + + private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_core_env.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_core_env.eo.cs index 3ba3ae3..ad03e6f 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_core_env.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_core_env.eo.cs @@ -3,112 +3,131 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Core { +namespace Efl { + +namespace Core { + /// This object can maintain a set of key value pairs /// A object of this type alone does not apply the object to the system. For getting the value into the system, see . /// /// A object can be forked, which will only copy its values, changes to the returned object will not change the object where it is forked off. -[EnvNativeInherit] +[Efl.Core.Env.NativeMethods] public class Env : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Env)) - return Efl.Core.EnvNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Env)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_core_env_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Env(Efl.Object parent= null - ) : - base(efl_core_env_class_get(), typeof(Env), parent) + ) : base(efl_core_env_class_get(), typeof(Env), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Env(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Env(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Env(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Get the value of the var, or null if no such var exists in the object /// The name of the variable /// Set var to this value if not NULL, otherwise clear this env value if value is NULL or if it is an empty string - virtual public System.String GetEnv( System.String var) { - var _ret_var = Efl.Core.EnvNativeInherit.efl_core_env_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), var); + virtual public System.String GetEnv(System.String var) { + var _ret_var = Efl.Core.Env.NativeMethods.efl_core_env_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),var); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Add a new pair to this object /// The name of the variable /// Set var to this value if not NULL, otherwise clear this env value if value is NULL or if it is an empty string - /// - virtual public void SetEnv( System.String var, System.String value) { - Efl.Core.EnvNativeInherit.efl_core_env_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), var, value); + virtual public void SetEnv(System.String var, System.String value) { + Efl.Core.Env.NativeMethods.efl_core_env_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),var, value); Eina.Error.RaiseIfUnhandledException(); } /// Get the content of this object. /// This will return a iterator that contains all keys that are part of this object. - /// virtual public Eina.Iterator GetContent() { - var _ret_var = Efl.Core.EnvNativeInherit.efl_core_env_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Core.Env.NativeMethods.efl_core_env_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } /// Remove the pair with the matching var from this object /// The name of the variable - /// - virtual public void Unset( System.String var) { - Efl.Core.EnvNativeInherit.efl_core_env_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), var); + virtual public void Unset(System.String var) { + Efl.Core.Env.NativeMethods.efl_core_env_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),var); Eina.Error.RaiseIfUnhandledException(); } /// Remove all pairs from this object - /// virtual public void Clear() { - Efl.Core.EnvNativeInherit.efl_core_env_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Core.Env.NativeMethods.efl_core_env_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Creates a carbon copy of this object and returns it. /// The newly created object will have no event handlers or anything of the sort. /// Returned carbon copy - virtual public Efl.IDuplicate DoDuplicate() { - var _ret_var = Efl.IDuplicateNativeInherit.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + virtual public Efl.IDuplicate Duplicate() { + var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the content of this object. /// This will return a iterator that contains all keys that are part of this object. -/// public Eina.Iterator Content { get { return GetContent(); } } @@ -116,194 +135,308 @@ public class Env : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate { return Efl.Core.Env.efl_core_env_class_get(); } -} -public class EnvNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_core_env_get_static_delegate == null) - efl_core_env_get_static_delegate = new efl_core_env_get_delegate(env_get); - if (methods.FirstOrDefault(m => m.Name == "GetEnv") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_env_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_env_get_static_delegate)}); - if (efl_core_env_set_static_delegate == null) - efl_core_env_set_static_delegate = new efl_core_env_set_delegate(env_set); - if (methods.FirstOrDefault(m => m.Name == "SetEnv") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_env_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_env_set_static_delegate)}); - if (efl_core_env_content_get_static_delegate == null) - efl_core_env_content_get_static_delegate = new efl_core_env_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_env_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_env_content_get_static_delegate)}); - if (efl_core_env_unset_static_delegate == null) - efl_core_env_unset_static_delegate = new efl_core_env_unset_delegate(unset); - if (methods.FirstOrDefault(m => m.Name == "Unset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_env_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_core_env_unset_static_delegate)}); - if (efl_core_env_clear_static_delegate == null) - efl_core_env_clear_static_delegate = new efl_core_env_clear_delegate(clear); - if (methods.FirstOrDefault(m => m.Name == "Clear") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_env_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_core_env_clear_static_delegate)}); - if (efl_duplicate_static_delegate == null) - efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); - if (methods.FirstOrDefault(m => m.Name == "DoDuplicate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Core.Env.efl_core_env_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Core.Env.efl_core_env_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_core_env_get_static_delegate == null) + { + efl_core_env_get_static_delegate = new efl_core_env_get_delegate(env_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetEnv") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_env_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_env_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_core_env_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); + if (efl_core_env_set_static_delegate == null) + { + efl_core_env_set_static_delegate = new efl_core_env_set_delegate(env_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEnv") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_env_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_env_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_core_env_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); - public static Efl.Eo.FunctionWrapper efl_core_env_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_env_get"); - private static System.String env_get(System.IntPtr obj, System.IntPtr pd, System.String var) - { - Eina.Log.Debug("function efl_core_env_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Env)wrapper).GetEnv( var); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_core_env_content_get_static_delegate == null) + { + efl_core_env_content_get_static_delegate = new efl_core_env_content_get_delegate(content_get); } - return _ret_var; - } else { - return efl_core_env_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), var); + + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_env_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_env_content_get_static_delegate) }); + } + + if (efl_core_env_unset_static_delegate == null) + { + efl_core_env_unset_static_delegate = new efl_core_env_unset_delegate(unset); + } + + if (methods.FirstOrDefault(m => m.Name == "Unset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_env_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_core_env_unset_static_delegate) }); + } + + if (efl_core_env_clear_static_delegate == null) + { + efl_core_env_clear_static_delegate = new efl_core_env_clear_delegate(clear); + } + + if (methods.FirstOrDefault(m => m.Name == "Clear") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_env_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_core_env_clear_static_delegate) }); + } + + if (efl_duplicate_static_delegate == null) + { + efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); + } + + if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Core.Env.efl_core_env_class_get(); } - } - private static efl_core_env_get_delegate efl_core_env_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_core_env_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_core_env_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_core_env_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); - public delegate void efl_core_env_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); - public static Efl.Eo.FunctionWrapper efl_core_env_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_env_set"); - private static void env_set(System.IntPtr obj, System.IntPtr pd, System.String var, System.String value) - { - Eina.Log.Debug("function efl_core_env_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Env)wrapper).SetEnv( var, value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_core_env_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_env_get"); + + private static System.String env_get(System.IntPtr obj, System.IntPtr pd, System.String var) + { + Eina.Log.Debug("function efl_core_env_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Env)wrapper).GetEnv(var); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_core_env_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), var); } - } else { - efl_core_env_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), var, value); } - } - private static efl_core_env_set_delegate efl_core_env_set_static_delegate; + private static efl_core_env_get_delegate efl_core_env_get_static_delegate; - private delegate System.IntPtr efl_core_env_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_core_env_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); + + public delegate void efl_core_env_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); - public delegate System.IntPtr efl_core_env_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_env_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_env_content_get"); - private static System.IntPtr content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_env_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Env)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_core_env_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_env_set"); + + private static void env_set(System.IntPtr obj, System.IntPtr pd, System.String var, System.String value) + { + Eina.Log.Debug("function efl_core_env_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Env)wrapper).SetEnv(var, value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_core_env_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), var, value); } - return _ret_var.Handle; - } else { - return efl_core_env_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_core_env_content_get_delegate efl_core_env_content_get_static_delegate; + private static efl_core_env_set_delegate efl_core_env_set_static_delegate; - private delegate void efl_core_env_unset_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); + + private delegate System.IntPtr efl_core_env_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_core_env_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_core_env_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_env_content_get"); + + private static System.IntPtr content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_env_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Env)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; - public delegate void efl_core_env_unset_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); - public static Efl.Eo.FunctionWrapper efl_core_env_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_env_unset"); - private static void unset(System.IntPtr obj, System.IntPtr pd, System.String var) - { - Eina.Log.Debug("function efl_core_env_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Env)wrapper).Unset( var); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_core_env_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), var); + else + { + return efl_core_env_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_core_env_unset_delegate efl_core_env_unset_static_delegate; + private static efl_core_env_content_get_delegate efl_core_env_content_get_static_delegate; - private delegate void efl_core_env_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_core_env_unset_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); + + public delegate void efl_core_env_unset_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); + + public static Efl.Eo.FunctionWrapper efl_core_env_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_env_unset"); + + private static void unset(System.IntPtr obj, System.IntPtr pd, System.String var) + { + Eina.Log.Debug("function efl_core_env_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Env)wrapper).Unset(var); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_core_env_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_env_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_env_clear"); - private static void clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_env_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Env)wrapper).Clear(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_core_env_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_core_env_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), var); + } } - } - private static efl_core_env_clear_delegate efl_core_env_clear_static_delegate; + private static efl_core_env_unset_delegate efl_core_env_unset_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_core_env_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_core_env_clear_api_delegate(System.IntPtr obj); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_duplicate"); - private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_duplicate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IDuplicate _ret_var = default(Efl.IDuplicate); - try { - _ret_var = ((Env)wrapper).DoDuplicate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_core_env_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_env_clear"); + + private static void clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_env_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Env)wrapper).Clear(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_core_env_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_core_env_clear_delegate efl_core_env_clear_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_duplicate"); + + private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_duplicate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IDuplicate _ret_var = default(Efl.IDuplicate); + try + { + _ret_var = ((Env)wrapper).Duplicate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_duplicate_delegate efl_duplicate_static_delegate; + + private static efl_duplicate_delegate efl_duplicate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_core_proc_env.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_core_proc_env.eo.cs index af5d98e..a912641 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_core_proc_env.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_core_proc_env.eo.cs @@ -3,66 +3,88 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Core { -/// -[ProcEnvNativeInherit] +namespace Efl { + +namespace Core { + +[Efl.Core.ProcEnv.NativeMethods] public class ProcEnv : Efl.Core.Env, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ProcEnv)) - return Efl.Core.ProcEnvNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ProcEnv)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_core_proc_env_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ProcEnv(Efl.Object parent= null - ) : - base(efl_core_proc_env_class_get(), typeof(ProcEnv), parent) + ) : base(efl_core_proc_env_class_get(), typeof(ProcEnv), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ProcEnv(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ProcEnv(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ProcEnv(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Get a instance of this object /// The object will apply the environment operations onto this process. - /// public static Efl.Core.Env Self() { - var _ret_var = Efl.Core.ProcEnvNativeInherit.efl_env_self_ptr.Value.Delegate(); + var _ret_var = Efl.Core.ProcEnv.NativeMethods.efl_env_self_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -70,47 +92,67 @@ public class ProcEnv : Efl.Core.Env, Efl.Eo.IWrapper { return Efl.Core.ProcEnv.efl_core_proc_env_class_get(); } -} -public class ProcEnvNativeInherit : Efl.Core.EnvNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Core.Env.NativeMethods { - return Efl.Core.ProcEnv.efl_core_proc_env_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Core.ProcEnv.efl_core_proc_env_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Core.ProcEnv.efl_core_proc_env_class_get(); + } + #pragma warning disable CA1707, SA1300, SA1600 - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Core.Env efl_env_self_delegate(); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Core.Env efl_env_self_delegate(); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Core.Env efl_env_self_api_delegate(); + + public static Efl.Eo.FunctionWrapper efl_env_self_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_env_self"); + + private static Efl.Core.Env self(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_env_self was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Core.Env _ret_var = default(Efl.Core.Env); + try + { + _ret_var = ProcEnv.Self(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Core.Env efl_env_self_api_delegate(); - public static Efl.Eo.FunctionWrapper efl_env_self_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_env_self"); - private static Efl.Core.Env self(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_env_self was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Core.Env _ret_var = default(Efl.Core.Env); - try { - _ret_var = ProcEnv.Self(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_env_self_ptr.Value.Delegate(); + + } + else + { + return efl_env_self_ptr.Value.Delegate(); + } } - } + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_csharp_application.cs b/internals/src/EflSharp/EflSharp/efl/efl_csharp_application.cs index 1e63d62..87a5883 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_csharp_application.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_csharp_application.cs @@ -62,6 +62,10 @@ public abstract class Application elm_init(0, IntPtr.Zero); elm_policy_set((int)Elm.Policy.Quit, (int)Elm.PolicyQuit.LastWindowHidden); + + // TIZEN_ONLY(20190425) Use efl-sharp-theme.edj on EflSharp + Efl.Ui.Theme.GetDefault().AddOverlay("/usr/share/efl-sharp/efl-sharp-theme.edj"); + // } initComponent = component; diff --git a/internals/src/EflSharp/EflSharp/efl/efl_cubic_bezier_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_cubic_bezier_interpolator.eo.cs index 41b17c3..bb0b102 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_cubic_bezier_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_cubic_bezier_interpolator.eo.cs @@ -3,69 +3,90 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl cubic_bezier interpolator class -[CubicBezierInterpolatorNativeInherit] +[Efl.CubicBezierInterpolator.NativeMethods] public class CubicBezierInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (CubicBezierInterpolator)) - return Efl.CubicBezierInterpolatorNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(CubicBezierInterpolator)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_cubic_bezier_interpolator_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public CubicBezierInterpolator(Efl.Object parent= null - ) : - base(efl_cubic_bezier_interpolator_class_get(), typeof(CubicBezierInterpolator), parent) + ) : base(efl_cubic_bezier_interpolator_class_get(), typeof(CubicBezierInterpolator), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected CubicBezierInterpolator(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected CubicBezierInterpolator(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected CubicBezierInterpolator(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Factors property /// First factor of the interpolation function. /// Second factor of the interpolation function. /// Third factor of the interpolation function. /// Fourth factor of the interpolation function. - /// - virtual public void GetFactors( out double factor1, out double factor2, out double factor3, out double factor4) { - Efl.CubicBezierInterpolatorNativeInherit.efl_cubic_bezier_interpolator_factors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out factor1, out factor2, out factor3, out factor4); + virtual public void GetFactors(out double factor1, out double factor2, out double factor3, out double factor4) { + Efl.CubicBezierInterpolator.NativeMethods.efl_cubic_bezier_interpolator_factors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out factor1, out factor2, out factor3, out factor4); Eina.Error.RaiseIfUnhandledException(); } /// Factors property @@ -73,16 +94,15 @@ public class CubicBezierInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpol /// Second factor of the interpolation function. /// Third factor of the interpolation function. /// Fourth factor of the interpolation function. - /// - virtual public void SetFactors( double factor1, double factor2, double factor3, double factor4) { - Efl.CubicBezierInterpolatorNativeInherit.efl_cubic_bezier_interpolator_factors_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), factor1, factor2, factor3, factor4); + virtual public void SetFactors(double factor1, double factor2, double factor3, double factor4) { + Efl.CubicBezierInterpolator.NativeMethods.efl_cubic_bezier_interpolator_factors_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),factor1, factor2, factor3, factor4); Eina.Error.RaiseIfUnhandledException(); } /// Interpolate the given value. /// Input value mapped from 0.0 to 1.0. /// Output value calculated by interpolating the input value. - virtual public double Interpolate( double progress) { - var _ret_var = Efl.IInterpolatorNativeInherit.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), progress); + virtual public double Interpolate(double progress) { + var _ret_var = Efl.IInterpolatorConcrete.NativeMethods.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),progress); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -90,108 +110,169 @@ public class CubicBezierInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpol { return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get(); } -} -public class CubicBezierInterpolatorNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_cubic_bezier_interpolator_factors_get_static_delegate == null) - efl_cubic_bezier_interpolator_factors_get_static_delegate = new efl_cubic_bezier_interpolator_factors_get_delegate(factors_get); - if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_cubic_bezier_interpolator_factors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_cubic_bezier_interpolator_factors_get_static_delegate)}); - if (efl_cubic_bezier_interpolator_factors_set_static_delegate == null) - efl_cubic_bezier_interpolator_factors_set_static_delegate = new efl_cubic_bezier_interpolator_factors_set_delegate(factors_set); - if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_cubic_bezier_interpolator_factors_set"), func = Marshal.GetFunctionPointerForDelegate(efl_cubic_bezier_interpolator_factors_set_static_delegate)}); - if (efl_interpolator_interpolate_static_delegate == null) - efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_cubic_bezier_interpolator_factors_get_static_delegate == null) + { + efl_cubic_bezier_interpolator_factors_get_static_delegate = new efl_cubic_bezier_interpolator_factors_get_delegate(factors_get); + } - private delegate void efl_cubic_bezier_interpolator_factors_get_delegate(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2, out double factor3, out double factor4); + if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_cubic_bezier_interpolator_factors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_cubic_bezier_interpolator_factors_get_static_delegate) }); + } + if (efl_cubic_bezier_interpolator_factors_set_static_delegate == null) + { + efl_cubic_bezier_interpolator_factors_set_static_delegate = new efl_cubic_bezier_interpolator_factors_set_delegate(factors_set); + } - public delegate void efl_cubic_bezier_interpolator_factors_get_api_delegate(System.IntPtr obj, out double factor1, out double factor2, out double factor3, out double factor4); - public static Efl.Eo.FunctionWrapper efl_cubic_bezier_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_cubic_bezier_interpolator_factors_get"); - private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2, out double factor3, out double factor4) - { - Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - factor1 = default(double); factor2 = default(double); factor3 = default(double); factor4 = default(double); - try { - ((CubicBezierInterpolator)wrapper).GetFactors( out factor1, out factor2, out factor3, out factor4); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_cubic_bezier_interpolator_factors_set"), func = Marshal.GetFunctionPointerForDelegate(efl_cubic_bezier_interpolator_factors_set_static_delegate) }); + } + + if (efl_interpolator_interpolate_static_delegate == null) + { + efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); + } + + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate) }); } - } else { - efl_cubic_bezier_interpolator_factors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out factor1, out factor2, out factor3, out factor4); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get(); } - } - private static efl_cubic_bezier_interpolator_factors_get_delegate efl_cubic_bezier_interpolator_factors_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_cubic_bezier_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2, double factor3, double factor4); + + private delegate void efl_cubic_bezier_interpolator_factors_get_delegate(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2, out double factor3, out double factor4); + + public delegate void efl_cubic_bezier_interpolator_factors_get_api_delegate(System.IntPtr obj, out double factor1, out double factor2, out double factor3, out double factor4); - public delegate void efl_cubic_bezier_interpolator_factors_set_api_delegate(System.IntPtr obj, double factor1, double factor2, double factor3, double factor4); - public static Efl.Eo.FunctionWrapper efl_cubic_bezier_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_cubic_bezier_interpolator_factors_set"); - private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2, double factor3, double factor4) - { - Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CubicBezierInterpolator)wrapper).SetFactors( factor1, factor2, factor3, factor4); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_cubic_bezier_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_cubic_bezier_interpolator_factors_get"); + + private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2, out double factor3, out double factor4) + { + Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + factor1 = default(double); factor2 = default(double); factor3 = default(double); factor4 = default(double); + try + { + ((CubicBezierInterpolator)wrapper).GetFactors(out factor1, out factor2, out factor3, out factor4); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_cubic_bezier_interpolator_factors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out factor1, out factor2, out factor3, out factor4); } - } else { - efl_cubic_bezier_interpolator_factors_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor1, factor2, factor3, factor4); } - } - private static efl_cubic_bezier_interpolator_factors_set_delegate efl_cubic_bezier_interpolator_factors_set_static_delegate; + private static efl_cubic_bezier_interpolator_factors_get_delegate efl_cubic_bezier_interpolator_factors_get_static_delegate; - private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + private delegate void efl_cubic_bezier_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2, double factor3, double factor4); + + public delegate void efl_cubic_bezier_interpolator_factors_set_api_delegate(System.IntPtr obj, double factor1, double factor2, double factor3, double factor4); - public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); - public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_interpolator_interpolate"); - private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) - { - Eina.Log.Debug("function efl_interpolator_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((CubicBezierInterpolator)wrapper).Interpolate( progress); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_cubic_bezier_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_cubic_bezier_interpolator_factors_set"); + + private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2, double factor3, double factor4) + { + Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((CubicBezierInterpolator)wrapper).SetFactors(factor1, factor2, factor3, factor4); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_cubic_bezier_interpolator_factors_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor1, factor2, factor3, factor4); + } + } + + private static efl_cubic_bezier_interpolator_factors_set_delegate efl_cubic_bezier_interpolator_factors_set_static_delegate; + + + private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + + public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); + + public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_interpolator_interpolate"); + + private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) + { + Eina.Log.Debug("function efl_interpolator_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((CubicBezierInterpolator)wrapper).Interpolate(progress); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + + } + else + { + return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + } } - } - private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_datetime_manager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_datetime_manager.eo.cs deleted file mode 100644 index 86e350b..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_datetime_manager.eo.cs +++ /dev/null @@ -1,283 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Datetime { -/// Efl datetime manager class for Datepicker and Timepicker -[ManagerNativeInherit] -public class Manager : Efl.Object, Efl.Eo.IWrapper -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Manager)) - return Efl.Datetime.ManagerNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_datetime_manager_class_get(); - ///Creates a new instance. - ///Parent instance. - public Manager(Efl.Object parent= null - ) : - base(efl_datetime_manager_class_get(), typeof(Manager), parent) - { - FinishInstantiation(); - } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - protected Manager(System.IntPtr raw) : base(raw) - { - RegisterEventProxies(); - } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Manager(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } - /// The value of a date, time for Datepicker or Timepicker. - /// The value for Datepicker contains year, month, and day. (tm_year, tm_mon, and tm_mday in Efl_Time) The value for Timepicker contains hour, and min. (tm_hour, and tm_min in Efl_Time) - /// Time structure containing date or time value. - virtual public Efl.Time GetValue() { - var _ret_var = Efl.Datetime.ManagerNativeInherit.efl_datetime_manager_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The value of a date, time for Datepicker or Timepicker. - /// The value for Datepicker contains year, month, and day. (tm_year, tm_mon, and tm_mday in Efl_Time) The value for Timepicker contains hour, and min. (tm_hour, and tm_min in Efl_Time) - /// Time structure containing date or time value. - /// - virtual public void SetValue( Efl.Time newtime) { - Efl.Time.NativeStruct _in_newtime = newtime; - Efl.Datetime.ManagerNativeInherit.efl_datetime_manager_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_newtime); - Eina.Error.RaiseIfUnhandledException(); - } - /// The format of date or time. - /// Default format is taken as per the system locale settings. - /// The format string - virtual public System.String GetFormat() { - var _ret_var = Efl.Datetime.ManagerNativeInherit.efl_datetime_manager_format_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The format of date or time. - /// Default format is taken as per the system locale settings. - /// The format string - /// - virtual public void SetFormat( System.String fmt) { - Efl.Datetime.ManagerNativeInherit.efl_datetime_manager_format_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fmt); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get the string that matches with the format. - /// The format string - /// The string that matches with the format - virtual public System.String GetString( System.String fmt) { - var _ret_var = Efl.Datetime.ManagerNativeInherit.efl_datetime_manager_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fmt); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The value of a date, time for Datepicker or Timepicker. -/// The value for Datepicker contains year, month, and day. (tm_year, tm_mon, and tm_mday in Efl_Time) The value for Timepicker contains hour, and min. (tm_hour, and tm_min in Efl_Time) -/// Time structure containing date or time value. - public Efl.Time Value { - get { return GetValue(); } - set { SetValue( value); } - } - /// The format of date or time. -/// Default format is taken as per the system locale settings. -/// The format string - public System.String Format { - get { return GetFormat(); } - set { SetFormat( value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Datetime.Manager.efl_datetime_manager_class_get(); - } -} -public class ManagerNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_datetime_manager_value_get_static_delegate == null) - efl_datetime_manager_value_get_static_delegate = new efl_datetime_manager_value_get_delegate(value_get); - if (methods.FirstOrDefault(m => m.Name == "GetValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_datetime_manager_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_datetime_manager_value_get_static_delegate)}); - if (efl_datetime_manager_value_set_static_delegate == null) - efl_datetime_manager_value_set_static_delegate = new efl_datetime_manager_value_set_delegate(value_set); - if (methods.FirstOrDefault(m => m.Name == "SetValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_datetime_manager_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_datetime_manager_value_set_static_delegate)}); - if (efl_datetime_manager_format_get_static_delegate == null) - efl_datetime_manager_format_get_static_delegate = new efl_datetime_manager_format_get_delegate(format_get); - if (methods.FirstOrDefault(m => m.Name == "GetFormat") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_datetime_manager_format_get"), func = Marshal.GetFunctionPointerForDelegate(efl_datetime_manager_format_get_static_delegate)}); - if (efl_datetime_manager_format_set_static_delegate == null) - efl_datetime_manager_format_set_static_delegate = new efl_datetime_manager_format_set_delegate(format_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormat") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_datetime_manager_format_set"), func = Marshal.GetFunctionPointerForDelegate(efl_datetime_manager_format_set_static_delegate)}); - if (efl_datetime_manager_string_get_static_delegate == null) - efl_datetime_manager_string_get_static_delegate = new efl_datetime_manager_string_get_delegate(string_get); - if (methods.FirstOrDefault(m => m.Name == "GetString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_datetime_manager_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_datetime_manager_string_get_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Datetime.Manager.efl_datetime_manager_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Datetime.Manager.efl_datetime_manager_class_get(); - } - - - private delegate Efl.Time.NativeStruct efl_datetime_manager_value_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Efl.Time.NativeStruct efl_datetime_manager_value_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_datetime_manager_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_datetime_manager_value_get"); - private static Efl.Time.NativeStruct value_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_datetime_manager_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _ret_var = default(Efl.Time); - try { - _ret_var = ((Manager)wrapper).GetValue(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_datetime_manager_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_datetime_manager_value_get_delegate efl_datetime_manager_value_get_static_delegate; - - - private delegate void efl_datetime_manager_value_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct newtime); - - - public delegate void efl_datetime_manager_value_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct newtime); - public static Efl.Eo.FunctionWrapper efl_datetime_manager_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_datetime_manager_value_set"); - private static void value_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct newtime) - { - Eina.Log.Debug("function efl_datetime_manager_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _in_newtime = newtime; - - try { - ((Manager)wrapper).SetValue( _in_newtime); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_datetime_manager_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), newtime); - } - } - private static efl_datetime_manager_value_set_delegate efl_datetime_manager_value_set_static_delegate; - - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_datetime_manager_format_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_datetime_manager_format_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_datetime_manager_format_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_datetime_manager_format_get"); - private static System.String format_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_datetime_manager_format_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Manager)wrapper).GetFormat(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_datetime_manager_format_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_datetime_manager_format_get_delegate efl_datetime_manager_format_get_static_delegate; - - - private delegate void efl_datetime_manager_format_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String fmt); - - - public delegate void efl_datetime_manager_format_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String fmt); - public static Efl.Eo.FunctionWrapper efl_datetime_manager_format_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_datetime_manager_format_set"); - private static void format_set(System.IntPtr obj, System.IntPtr pd, System.String fmt) - { - Eina.Log.Debug("function efl_datetime_manager_format_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetFormat( fmt); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_datetime_manager_format_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fmt); - } - } - private static efl_datetime_manager_format_set_delegate efl_datetime_manager_format_set_static_delegate; - - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_datetime_manager_string_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String fmt); - - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_datetime_manager_string_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String fmt); - public static Efl.Eo.FunctionWrapper efl_datetime_manager_string_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_datetime_manager_string_get"); - private static System.String string_get(System.IntPtr obj, System.IntPtr pd, System.String fmt) - { - Eina.Log.Debug("function efl_datetime_manager_string_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Manager)wrapper).GetString( fmt); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_datetime_manager_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fmt); - } - } - private static efl_datetime_manager_string_get_delegate efl_datetime_manager_string_get_static_delegate; -} -} } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_decelerate_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_decelerate_interpolator.eo.cs index 2bc8f61..45ab02e 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_decelerate_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_decelerate_interpolator.eo.cs @@ -3,81 +3,102 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl decelerate interpolator class /// output = sin(input * Pi / 2); -[DecelerateInterpolatorNativeInherit] +[Efl.DecelerateInterpolator.NativeMethods] public class DecelerateInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (DecelerateInterpolator)) - return Efl.DecelerateInterpolatorNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(DecelerateInterpolator)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_decelerate_interpolator_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public DecelerateInterpolator(Efl.Object parent= null - ) : - base(efl_decelerate_interpolator_class_get(), typeof(DecelerateInterpolator), parent) + ) : base(efl_decelerate_interpolator_class_get(), typeof(DecelerateInterpolator), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected DecelerateInterpolator(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected DecelerateInterpolator(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected DecelerateInterpolator(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Factor property /// Factor of the interpolation function. virtual public double GetFactor() { - var _ret_var = Efl.DecelerateInterpolatorNativeInherit.efl_decelerate_interpolator_factor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.DecelerateInterpolator.NativeMethods.efl_decelerate_interpolator_factor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Factor property /// Factor of the interpolation function. - /// - virtual public void SetFactor( double factor) { - Efl.DecelerateInterpolatorNativeInherit.efl_decelerate_interpolator_factor_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), factor); + virtual public void SetFactor(double factor) { + Efl.DecelerateInterpolator.NativeMethods.efl_decelerate_interpolator_factor_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),factor); Eina.Error.RaiseIfUnhandledException(); } /// Interpolate the given value. /// Input value mapped from 0.0 to 1.0. /// Output value calculated by interpolating the input value. - virtual public double Interpolate( double progress) { - var _ret_var = Efl.IInterpolatorNativeInherit.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), progress); + virtual public double Interpolate(double progress) { + var _ret_var = Efl.IInterpolatorConcrete.NativeMethods.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),progress); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -85,115 +106,176 @@ public class DecelerateInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpola /// Factor of the interpolation function. public double Factor { get { return GetFactor(); } - set { SetFactor( value); } + set { SetFactor(value); } } private static IntPtr GetEflClassStatic() { return Efl.DecelerateInterpolator.efl_decelerate_interpolator_class_get(); } -} -public class DecelerateInterpolatorNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_decelerate_interpolator_factor_get_static_delegate == null) - efl_decelerate_interpolator_factor_get_static_delegate = new efl_decelerate_interpolator_factor_get_delegate(factor_get); - if (methods.FirstOrDefault(m => m.Name == "GetFactor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_decelerate_interpolator_factor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_decelerate_interpolator_factor_get_static_delegate)}); - if (efl_decelerate_interpolator_factor_set_static_delegate == null) - efl_decelerate_interpolator_factor_set_static_delegate = new efl_decelerate_interpolator_factor_set_delegate(factor_set); - if (methods.FirstOrDefault(m => m.Name == "SetFactor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_decelerate_interpolator_factor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_decelerate_interpolator_factor_set_static_delegate)}); - if (efl_interpolator_interpolate_static_delegate == null) - efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.DecelerateInterpolator.efl_decelerate_interpolator_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.DecelerateInterpolator.efl_decelerate_interpolator_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_decelerate_interpolator_factor_get_static_delegate == null) + { + efl_decelerate_interpolator_factor_get_static_delegate = new efl_decelerate_interpolator_factor_get_delegate(factor_get); + } - private delegate double efl_decelerate_interpolator_factor_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFactor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_decelerate_interpolator_factor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_decelerate_interpolator_factor_get_static_delegate) }); + } + if (efl_decelerate_interpolator_factor_set_static_delegate == null) + { + efl_decelerate_interpolator_factor_set_static_delegate = new efl_decelerate_interpolator_factor_set_delegate(factor_set); + } - public delegate double efl_decelerate_interpolator_factor_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_decelerate_interpolator_factor_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_decelerate_interpolator_factor_get"); - private static double factor_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_decelerate_interpolator_factor_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((DecelerateInterpolator)wrapper).GetFactor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFactor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_decelerate_interpolator_factor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_decelerate_interpolator_factor_set_static_delegate) }); } - return _ret_var; - } else { - return efl_decelerate_interpolator_factor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_interpolator_interpolate_static_delegate == null) + { + efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); + } + + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.DecelerateInterpolator.efl_decelerate_interpolator_class_get(); } - } - private static efl_decelerate_interpolator_factor_get_delegate efl_decelerate_interpolator_factor_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_decelerate_interpolator_factor_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor); + + private delegate double efl_decelerate_interpolator_factor_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_decelerate_interpolator_factor_get_api_delegate(System.IntPtr obj); - public delegate void efl_decelerate_interpolator_factor_set_api_delegate(System.IntPtr obj, double factor); - public static Efl.Eo.FunctionWrapper efl_decelerate_interpolator_factor_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_decelerate_interpolator_factor_set"); - private static void factor_set(System.IntPtr obj, System.IntPtr pd, double factor) - { - Eina.Log.Debug("function efl_decelerate_interpolator_factor_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((DecelerateInterpolator)wrapper).SetFactor( factor); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_decelerate_interpolator_factor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_decelerate_interpolator_factor_get"); + + private static double factor_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_decelerate_interpolator_factor_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((DecelerateInterpolator)wrapper).GetFactor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_decelerate_interpolator_factor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_decelerate_interpolator_factor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor); } - } - private static efl_decelerate_interpolator_factor_set_delegate efl_decelerate_interpolator_factor_set_static_delegate; + private static efl_decelerate_interpolator_factor_get_delegate efl_decelerate_interpolator_factor_get_static_delegate; - private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + private delegate void efl_decelerate_interpolator_factor_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor); + + public delegate void efl_decelerate_interpolator_factor_set_api_delegate(System.IntPtr obj, double factor); - public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); - public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_interpolator_interpolate"); - private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) - { - Eina.Log.Debug("function efl_interpolator_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((DecelerateInterpolator)wrapper).Interpolate( progress); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_decelerate_interpolator_factor_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_decelerate_interpolator_factor_set"); + + private static void factor_set(System.IntPtr obj, System.IntPtr pd, double factor) + { + Eina.Log.Debug("function efl_decelerate_interpolator_factor_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((DecelerateInterpolator)wrapper).SetFactor(factor); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_decelerate_interpolator_factor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor); + } + } + + private static efl_decelerate_interpolator_factor_set_delegate efl_decelerate_interpolator_factor_set_static_delegate; + + + private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + + public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); + + public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_interpolator_interpolate"); + + private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) + { + Eina.Log.Debug("function efl_interpolator_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((DecelerateInterpolator)wrapper).Interpolate(progress); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + + } + else + { + return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + } } - } - private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_divisor_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_divisor_interpolator.eo.cs index ebd97c0..409a891 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_divisor_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_divisor_interpolator.eo.cs @@ -3,82 +3,102 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl divisor interpolator class -[DivisorInterpolatorNativeInherit] +[Efl.DivisorInterpolator.NativeMethods] public class DivisorInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (DivisorInterpolator)) - return Efl.DivisorInterpolatorNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(DivisorInterpolator)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_divisor_interpolator_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public DivisorInterpolator(Efl.Object parent= null - ) : - base(efl_divisor_interpolator_class_get(), typeof(DivisorInterpolator), parent) + ) : base(efl_divisor_interpolator_class_get(), typeof(DivisorInterpolator), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected DivisorInterpolator(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected DivisorInterpolator(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected DivisorInterpolator(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Factors property /// First factor of the interpolation function. /// Second factor of the interpolation function. - /// - virtual public void GetFactors( out double factor1, out double factor2) { - Efl.DivisorInterpolatorNativeInherit.efl_divisor_interpolator_factors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out factor1, out factor2); + virtual public void GetFactors(out double factor1, out double factor2) { + Efl.DivisorInterpolator.NativeMethods.efl_divisor_interpolator_factors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out factor1, out factor2); Eina.Error.RaiseIfUnhandledException(); } /// Factors property /// First factor of the interpolation function. /// Second factor of the interpolation function. - /// - virtual public void SetFactors( double factor1, double factor2) { - Efl.DivisorInterpolatorNativeInherit.efl_divisor_interpolator_factors_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), factor1, factor2); + virtual public void SetFactors(double factor1, double factor2) { + Efl.DivisorInterpolator.NativeMethods.efl_divisor_interpolator_factors_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),factor1, factor2); Eina.Error.RaiseIfUnhandledException(); } /// Interpolate the given value. /// Input value mapped from 0.0 to 1.0. /// Output value calculated by interpolating the input value. - virtual public double Interpolate( double progress) { - var _ret_var = Efl.IInterpolatorNativeInherit.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), progress); + virtual public double Interpolate(double progress) { + var _ret_var = Efl.IInterpolatorConcrete.NativeMethods.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),progress); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -86,108 +106,169 @@ public class DivisorInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { return Efl.DivisorInterpolator.efl_divisor_interpolator_class_get(); } -} -public class DivisorInterpolatorNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_divisor_interpolator_factors_get_static_delegate == null) - efl_divisor_interpolator_factors_get_static_delegate = new efl_divisor_interpolator_factors_get_delegate(factors_get); - if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_divisor_interpolator_factors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_divisor_interpolator_factors_get_static_delegate)}); - if (efl_divisor_interpolator_factors_set_static_delegate == null) - efl_divisor_interpolator_factors_set_static_delegate = new efl_divisor_interpolator_factors_set_delegate(factors_set); - if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_divisor_interpolator_factors_set"), func = Marshal.GetFunctionPointerForDelegate(efl_divisor_interpolator_factors_set_static_delegate)}); - if (efl_interpolator_interpolate_static_delegate == null) - efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.DivisorInterpolator.efl_divisor_interpolator_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.DivisorInterpolator.efl_divisor_interpolator_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_divisor_interpolator_factors_get_static_delegate == null) + { + efl_divisor_interpolator_factors_get_static_delegate = new efl_divisor_interpolator_factors_get_delegate(factors_get); + } - private delegate void efl_divisor_interpolator_factors_get_delegate(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2); + if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_divisor_interpolator_factors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_divisor_interpolator_factors_get_static_delegate) }); + } + if (efl_divisor_interpolator_factors_set_static_delegate == null) + { + efl_divisor_interpolator_factors_set_static_delegate = new efl_divisor_interpolator_factors_set_delegate(factors_set); + } - public delegate void efl_divisor_interpolator_factors_get_api_delegate(System.IntPtr obj, out double factor1, out double factor2); - public static Efl.Eo.FunctionWrapper efl_divisor_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_divisor_interpolator_factors_get"); - private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2) - { - Eina.Log.Debug("function efl_divisor_interpolator_factors_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - factor1 = default(double); factor2 = default(double); - try { - ((DivisorInterpolator)wrapper).GetFactors( out factor1, out factor2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_divisor_interpolator_factors_set"), func = Marshal.GetFunctionPointerForDelegate(efl_divisor_interpolator_factors_set_static_delegate) }); + } + + if (efl_interpolator_interpolate_static_delegate == null) + { + efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); + } + + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate) }); } - } else { - efl_divisor_interpolator_factors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out factor1, out factor2); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.DivisorInterpolator.efl_divisor_interpolator_class_get(); } - } - private static efl_divisor_interpolator_factors_get_delegate efl_divisor_interpolator_factors_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_divisor_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2); + + private delegate void efl_divisor_interpolator_factors_get_delegate(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2); + + public delegate void efl_divisor_interpolator_factors_get_api_delegate(System.IntPtr obj, out double factor1, out double factor2); - public delegate void efl_divisor_interpolator_factors_set_api_delegate(System.IntPtr obj, double factor1, double factor2); - public static Efl.Eo.FunctionWrapper efl_divisor_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_divisor_interpolator_factors_set"); - private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2) - { - Eina.Log.Debug("function efl_divisor_interpolator_factors_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((DivisorInterpolator)wrapper).SetFactors( factor1, factor2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_divisor_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_divisor_interpolator_factors_get"); + + private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2) + { + Eina.Log.Debug("function efl_divisor_interpolator_factors_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + factor1 = default(double); factor2 = default(double); + try + { + ((DivisorInterpolator)wrapper).GetFactors(out factor1, out factor2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_divisor_interpolator_factors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out factor1, out factor2); } - } else { - efl_divisor_interpolator_factors_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor1, factor2); } - } - private static efl_divisor_interpolator_factors_set_delegate efl_divisor_interpolator_factors_set_static_delegate; + private static efl_divisor_interpolator_factors_get_delegate efl_divisor_interpolator_factors_get_static_delegate; - private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + private delegate void efl_divisor_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2); + + public delegate void efl_divisor_interpolator_factors_set_api_delegate(System.IntPtr obj, double factor1, double factor2); - public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); - public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_interpolator_interpolate"); - private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) - { - Eina.Log.Debug("function efl_interpolator_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((DivisorInterpolator)wrapper).Interpolate( progress); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_divisor_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_divisor_interpolator_factors_set"); + + private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2) + { + Eina.Log.Debug("function efl_divisor_interpolator_factors_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((DivisorInterpolator)wrapper).SetFactors(factor1, factor2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_divisor_interpolator_factors_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor1, factor2); + } + } + + private static efl_divisor_interpolator_factors_set_delegate efl_divisor_interpolator_factors_set_static_delegate; + + + private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + + public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); + + public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_interpolator_interpolate"); + + private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) + { + Eina.Log.Debug("function efl_interpolator_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((DivisorInterpolator)wrapper).Interpolate(progress); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + + } + else + { + return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + } } - } - private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_duplicate.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_duplicate.eo.cs index 877ac54..4d899e4 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_duplicate.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_duplicate.eo.cs @@ -3,94 +3,131 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// An interface for duplication of objects. -/// Objects implementing this interface can be duplicated with . -[IDuplicateNativeInherit] +/// Objects implementing this interface can be duplicated with . +[Efl.IDuplicateConcrete.NativeMethods] public interface IDuplicate : Efl.Eo.IWrapper, IDisposable { /// Creates a carbon copy of this object and returns it. /// The newly created object will have no event handlers or anything of the sort. /// Returned carbon copy -Efl.IDuplicate DoDuplicate(); +Efl.IDuplicate Duplicate(); } /// An interface for duplication of objects. -/// Objects implementing this interface can be duplicated with . +/// Objects implementing this interface can be duplicated with . sealed public class IDuplicateConcrete : IDuplicate { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IDuplicateConcrete)) - return Efl.IDuplicateNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IDuplicateConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_duplicate_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IDuplicateConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IDuplicateConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Creates a carbon copy of this object and returns it. /// The newly created object will have no event handlers or anything of the sort. /// Returned carbon copy - public Efl.IDuplicate DoDuplicate() { - var _ret_var = Efl.IDuplicateNativeInherit.efl_duplicate_ptr.Value.Delegate(this.NativeHandle); + public Efl.IDuplicate Duplicate() { + var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -98,51 +135,78 @@ IDuplicate { return Efl.IDuplicateConcrete.efl_duplicate_interface_get(); } -} -public class IDuplicateNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_duplicate_static_delegate == null) - efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); - if (methods.FirstOrDefault(m => m.Name == "DoDuplicate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IDuplicateConcrete.efl_duplicate_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IDuplicateConcrete.efl_duplicate_interface_get(); - } + 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_duplicate_static_delegate == null) + { + efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_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.IDuplicateConcrete.efl_duplicate_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_duplicate"); + + private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_duplicate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IDuplicate _ret_var = default(Efl.IDuplicate); + try + { + _ret_var = ((IDuplicate)wrapper).Duplicate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_duplicate"); - private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_duplicate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IDuplicate _ret_var = default(Efl.IDuplicate); - try { - _ret_var = ((IDuplicate)wrapper).DoDuplicate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_duplicate_delegate efl_duplicate_static_delegate; + + private static efl_duplicate_delegate efl_duplicate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_exe.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_exe.eo.cs index 4d34974..495fdbe 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_exe.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_exe.eo.cs @@ -3,102 +3,137 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// No description supplied. -[ExeNativeInherit] +[Efl.Exe.NativeMethods] public class Exe : Efl.Task, Efl.Eo.IWrapper,Efl.Core.ICommandLine,Efl.Io.ICloser,Efl.Io.IReader,Efl.Io.IWriter { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Exe)) - return Efl.ExeNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Exe)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_exe_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Exe(Efl.Object parent= null - ) : - base(efl_exe_class_get(), typeof(Exe), parent) + ) : base(efl_exe_class_get(), typeof(Exe), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Exe(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Exe(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Exe(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ClosedEvtKey = new object(); + /// Notifies closed, when property is marked as true /// (Since EFL 1.22) public event EventHandler ClosedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClosedEvt_delegate)) { - eventHandlers.AddHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (RemoveNativeEventHandler(key, this.evt_ClosedEvt_delegate)) { - eventHandlers.RemoveHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClosedEvt. - public void On_ClosedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClosedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClosedEvt_delegate; - private void on_ClosedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClosedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClosedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_CLOSER_EVENT_CLOSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CanReadChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies can_read property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -106,48 +141,65 @@ private static object CanReadChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanReadChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.AddHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanReadChangedEvt. - public void On_CanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) + public void OnCanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanReadChangedEvtKey]; + var key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanReadChangedEvt_delegate; - private void on_CanReadChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanReadChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object EosEvtKey = new object(); /// Notifies end of stream, when property is marked as true. /// If this is used alongside with an , then it should be emitted before that call. /// @@ -157,47 +209,56 @@ private static object EosEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler EosEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_EOS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EosEvt_delegate)) { - eventHandlers.AddHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_EOS"; - if (RemoveNativeEventHandler(key, this.evt_EosEvt_delegate)) { - eventHandlers.RemoveHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EosEvt. - public void On_EosEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EosEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EosEvt_delegate; - private void on_EosEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEosEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EosEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_READER_EVENT_EOS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CanWriteChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies can_write property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -205,96 +266,99 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanWriteChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.AddHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanWriteChangedEvt. - public void On_CanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) + public void OnCanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanWriteChangedEvtKey]; + var key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanWriteChangedEvt_delegate; - private void on_CanWriteChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanWriteChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ClosedEvt_delegate = new Efl.EventCb(on_ClosedEvt_NativeCallback); - evt_CanReadChangedEvt_delegate = new Efl.EventCb(on_CanReadChangedEvt_NativeCallback); - evt_EosEvt_delegate = new Efl.EventCb(on_EosEvt_NativeCallback); - evt_CanWriteChangedEvt_delegate = new Efl.EventCb(on_CanWriteChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } - /// /// No description supplied. virtual public Efl.ExeFlags GetExeFlags() { - var _ret_var = Efl.ExeNativeInherit.efl_exe_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Exe.NativeMethods.efl_exe_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// /// No description supplied. - /// - virtual public void SetExeFlags( Efl.ExeFlags flags) { - Efl.ExeNativeInherit.efl_exe_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), flags); + virtual public void SetExeFlags(Efl.ExeFlags flags) { + Efl.Exe.NativeMethods.efl_exe_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),flags); Eina.Error.RaiseIfUnhandledException(); } /// The final exit signal of this task. /// The exit signal, or -1 if no exit signal happened virtual public int GetExitSignal() { - var _ret_var = Efl.ExeNativeInherit.efl_exe_exit_signal_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Exe.NativeMethods.efl_exe_exit_signal_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the object assosiated with this object /// env will be referenced until this object does not need it anymore. virtual public Efl.Core.Env GetEnv() { - var _ret_var = Efl.ExeNativeInherit.efl_exe_env_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Exe.NativeMethods.efl_exe_env_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the object assosiated with this object /// env will be referenced until this object does not need it anymore. - /// - virtual public void SetEnv( Efl.Core.Env env) { - Efl.ExeNativeInherit.efl_exe_env_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), env); + virtual public void SetEnv(Efl.Core.Env env) { + Efl.Exe.NativeMethods.efl_exe_env_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),env); Eina.Error.RaiseIfUnhandledException(); } - /// /// Send this signal to the task - /// - virtual public void Signal( Efl.ExeSignal sig) { - Efl.ExeNativeInherit.efl_exe_signal_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sig); + virtual public void Signal(Efl.ExeSignal sig) { + Efl.Exe.NativeMethods.efl_exe_signal_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sig); Eina.Error.RaiseIfUnhandledException(); } /// A commandline that encodes arguments in a command string. This command is unix shell-style, thus whitespace separates arguments unless escaped. Also a semi-colon ';', ampersand '&', pipe/bar '|', hash '#', bracket, square brace, brace character ('(', ')', '[', ']', '{', '}'), exclamation mark '!', backquote '`', greator or less than ('>' '<') character unless escaped or in quotes would cause args_count/value to not be generated properly, because it would force complex shell interpretation which will not be supported in evaluating the arg_count/value information, but the final shell may interpret this if this is executed via a command-line shell. To not be a complex shell command, it should be simple with paths, options and variable expansions, but nothing more complex involving the above unescaped characters. @@ -305,9 +369,8 @@ private static object CanWriteChangedEvtKey = new object(); /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. - /// virtual public System.String GetCommand() { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -315,11 +378,11 @@ private static object CanWriteChangedEvtKey = new object(); /// Every element of a string is a argument. /// An array where every array field is an argument /// On success true, false otherwise - virtual public bool SetCommandArray( Eina.Array array) { + virtual public bool SetCommandArray(Eina.Array array) { var _in_array = array.Handle; array.Own = false; array.OwnContent = false; - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_array_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_array); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_array_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_array); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -327,15 +390,14 @@ array.OwnContent = false; /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string /// On success true, false otherwise - virtual public bool SetCommandString( System.String str) { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), str); + virtual public bool SetCommandString(System.String str) { + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),str); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the accessor which enables access to each argument that got passed to this object. - /// virtual public Eina.Accessor CommandAccess() { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_access_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_access_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Accessor(_ret_var, false, false); } @@ -343,7 +405,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if closed, false otherwise virtual public bool GetClosed() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_closed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_closed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -352,7 +414,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if close on exec(), false otherwise virtual public bool GetCloseOnExec() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -360,8 +422,8 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if close on exec(), false otherwise /// true if could set, false if not supported or failed. - virtual public bool SetCloseOnExec( bool close_on_exec) { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_exec); + virtual public bool SetCloseOnExec(bool close_on_exec) { + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),close_on_exec); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -370,7 +432,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if close on invalidate, false otherwise virtual public bool GetCloseOnInvalidate() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -378,9 +440,8 @@ array.OwnContent = false; /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. /// (Since EFL 1.22) /// true if close on invalidate, false otherwise - /// - virtual public void SetCloseOnInvalidate( bool close_on_invalidate) { - Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_invalidate); + virtual public void SetCloseOnInvalidate(bool close_on_invalidate) { + Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),close_on_invalidate); Eina.Error.RaiseIfUnhandledException(); } /// Closes the Input/Output object. @@ -390,7 +451,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// 0 on succeed, a mapping of errno otherwise virtual public Eina.Error Close() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -398,32 +459,30 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise virtual public bool GetCanRead() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise - /// - virtual public void SetCanRead( bool can_read) { - Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_read); + virtual public void SetCanRead(bool can_read) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_read); Eina.Error.RaiseIfUnhandledException(); } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise virtual public bool GetEos() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_eos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise - /// - virtual public void SetEos( bool is_eos) { - Efl.Io.IReaderNativeInherit.efl_io_reader_eos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), is_eos); + virtual public void SetEos(bool is_eos) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),is_eos); Eina.Error.RaiseIfUnhandledException(); } /// Reads data into a pre-allocated buffer. @@ -433,8 +492,8 @@ array.OwnContent = false; /// (Since EFL 1.22) /// Provides a pre-allocated memory to be filled up to rw_slice.len. It will be populated and the length will be set to the actually used amount of bytes, which can be smaller than the request. /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Read( ref Eina.RwSlice rw_slice) { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_read_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref rw_slice); + virtual public Eina.Error Read(ref Eina.RwSlice rw_slice) { + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_read_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref rw_slice); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -442,16 +501,15 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise virtual public bool GetCanWrite() { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise - /// - virtual public void SetCanWrite( bool can_write) { - Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_write); + virtual public void SetCanWrite(bool can_write) { + Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_write); Eina.Error.RaiseIfUnhandledException(); } /// Writes data from a pre-populated buffer. @@ -462,16 +520,15 @@ array.OwnContent = false; /// Provides a pre-populated memory to be used up to slice.len. The returned slice will be adapted as length will be set to the actually used amount of bytes, which can be smaller than the request. /// Convenience to output the remaining parts of slice that was not written. If the full slice was written, this will be a slice of zero-length. /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Write( ref Eina.Slice slice, ref Eina.Slice remaining) { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_write_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref slice, ref remaining); + virtual public Eina.Error Write(ref Eina.Slice slice, ref Eina.Slice remaining) { + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_write_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref slice, ref remaining); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// -/// No description supplied. + /// No description supplied. public Efl.ExeFlags ExeFlags { get { return GetExeFlags(); } - set { SetExeFlags( value); } + set { SetExeFlags(value); } } /// The final exit signal of this task. /// The exit signal, or -1 if no exit signal happened @@ -483,7 +540,7 @@ array.OwnContent = false; /// env will be referenced until this object does not need it anymore. public Efl.Core.Env Env { get { return GetEnv(); } - set { SetEnv( value); } + set { SetEnv(value); } } /// A commandline that encodes arguments in a command string. This command is unix shell-style, thus whitespace separates arguments unless escaped. Also a semi-colon ';', ampersand '&', pipe/bar '|', hash '#', bracket, square brace, brace character ('(', ')', '[', ']', '{', '}'), exclamation mark '!', backquote '`', greator or less than ('>' '<') character unless escaped or in quotes would cause args_count/value to not be generated properly, because it would force complex shell interpretation which will not be supported in evaluating the arg_count/value information, but the final shell may interpret this if this is executed via a command-line shell. To not be a complex shell command, it should be simple with paths, options and variable expansions, but nothing more complex involving the above unescaped characters. /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument VARIABLE" etc. @@ -493,7 +550,6 @@ array.OwnContent = false; /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. -/// public System.String Command { get { return GetCommand(); } } @@ -501,13 +557,13 @@ array.OwnContent = false; /// Every element of a string is a argument. /// An array where every array field is an argument public Eina.Array CommandArray { - set { SetCommandArray( value); } + set { SetCommandArray(value); } } /// Use a string to fill this object /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string public System.String CommandString { - set { SetCommandString( value); } + set { SetCommandString(value); } } /// If true will notify object was closed. /// (Since EFL 1.22) @@ -521,7 +577,7 @@ array.OwnContent = false; /// true if close on exec(), false otherwise public bool CloseOnExec { get { return GetCloseOnExec(); } - set { SetCloseOnExec( value); } + set { SetCloseOnExec(value); } } /// If true will automatically close() on object invalidate. /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. @@ -529,778 +585,1189 @@ array.OwnContent = false; /// true if close on invalidate, false otherwise public bool CloseOnInvalidate { get { return GetCloseOnInvalidate(); } - set { SetCloseOnInvalidate( value); } + set { SetCloseOnInvalidate(value); } } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise public bool CanRead { get { return GetCanRead(); } - set { SetCanRead( value); } + set { SetCanRead(value); } } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise public bool Eos { get { return GetEos(); } - set { SetEos( value); } + set { SetEos(value); } } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise public bool CanWrite { get { return GetCanWrite(); } - set { SetCanWrite( value); } + set { SetCanWrite(value); } } private static IntPtr GetEflClassStatic() { return Efl.Exe.efl_exe_class_get(); } -} -public class ExeNativeInherit : Efl.TaskNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_exe_flags_get_static_delegate == null) - efl_exe_flags_get_static_delegate = new efl_exe_flags_get_delegate(exe_flags_get); - if (methods.FirstOrDefault(m => m.Name == "GetExeFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_exe_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_flags_get_static_delegate)}); - if (efl_exe_flags_set_static_delegate == null) - efl_exe_flags_set_static_delegate = new efl_exe_flags_set_delegate(exe_flags_set); - if (methods.FirstOrDefault(m => m.Name == "SetExeFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_exe_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_flags_set_static_delegate)}); - if (efl_exe_exit_signal_get_static_delegate == null) - efl_exe_exit_signal_get_static_delegate = new efl_exe_exit_signal_get_delegate(exit_signal_get); - if (methods.FirstOrDefault(m => m.Name == "GetExitSignal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_exe_exit_signal_get"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_exit_signal_get_static_delegate)}); - if (efl_exe_env_get_static_delegate == null) - efl_exe_env_get_static_delegate = new efl_exe_env_get_delegate(env_get); - if (methods.FirstOrDefault(m => m.Name == "GetEnv") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_exe_env_get"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_env_get_static_delegate)}); - if (efl_exe_env_set_static_delegate == null) - efl_exe_env_set_static_delegate = new efl_exe_env_set_delegate(env_set); - if (methods.FirstOrDefault(m => m.Name == "SetEnv") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_exe_env_set"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_env_set_static_delegate)}); - if (efl_exe_signal_static_delegate == null) - efl_exe_signal_static_delegate = new efl_exe_signal_delegate(signal); - if (methods.FirstOrDefault(m => m.Name == "Signal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_exe_signal"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_signal_static_delegate)}); - if (efl_core_command_line_command_get_static_delegate == null) - efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get); - if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate)}); - if (efl_core_command_line_command_array_set_static_delegate == null) - efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set); - if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate)}); - if (efl_core_command_line_command_string_set_static_delegate == null) - efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set); - if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate)}); - if (efl_core_command_line_command_access_static_delegate == null) - efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access); - if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_static_delegate)}); - if (efl_io_closer_closed_get_static_delegate == null) - efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); - if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate)}); - if (efl_io_closer_close_on_exec_get_static_delegate == null) - efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate)}); - if (efl_io_closer_close_on_exec_set_static_delegate == null) - efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate)}); - if (efl_io_closer_close_on_invalidate_get_static_delegate == null) - efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate)}); - if (efl_io_closer_close_on_invalidate_set_static_delegate == null) - efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate)}); - if (efl_io_closer_close_static_delegate == null) - efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); - if (methods.FirstOrDefault(m => m.Name == "Close") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate)}); - if (efl_io_reader_can_read_get_static_delegate == null) - efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate)}); - if (efl_io_reader_can_read_set_static_delegate == null) - efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate)}); - if (efl_io_reader_eos_get_static_delegate == null) - efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); - if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate)}); - if (efl_io_reader_eos_set_static_delegate == null) - efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); - if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate)}); - if (efl_io_reader_read_static_delegate == null) - efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); - if (methods.FirstOrDefault(m => m.Name == "Read") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate)}); - if (efl_io_writer_can_write_get_static_delegate == null) - efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate)}); - if (efl_io_writer_can_write_set_static_delegate == null) - efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate)}); - if (efl_io_writer_write_static_delegate == null) - efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); - if (methods.FirstOrDefault(m => m.Name == "Write") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Exe.efl_exe_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Task.NativeMethods { - return Efl.Exe.efl_exe_class_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_exe_flags_get_static_delegate == null) + { + efl_exe_flags_get_static_delegate = new efl_exe_flags_get_delegate(exe_flags_get); + } - private delegate Efl.ExeFlags efl_exe_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetExeFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_exe_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_flags_get_static_delegate) }); + } + if (efl_exe_flags_set_static_delegate == null) + { + efl_exe_flags_set_static_delegate = new efl_exe_flags_set_delegate(exe_flags_set); + } - public delegate Efl.ExeFlags efl_exe_flags_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_exe_flags_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_exe_flags_get"); - private static Efl.ExeFlags exe_flags_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_exe_flags_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.ExeFlags _ret_var = default(Efl.ExeFlags); - try { - _ret_var = ((Exe)wrapper).GetExeFlags(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetExeFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_exe_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_flags_set_static_delegate) }); } - return _ret_var; - } else { - return efl_exe_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_exe_flags_get_delegate efl_exe_flags_get_static_delegate; + if (efl_exe_exit_signal_get_static_delegate == null) + { + efl_exe_exit_signal_get_static_delegate = new efl_exe_exit_signal_get_delegate(exit_signal_get); + } - private delegate void efl_exe_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.ExeFlags flags); + if (methods.FirstOrDefault(m => m.Name == "GetExitSignal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_exe_exit_signal_get"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_exit_signal_get_static_delegate) }); + } + if (efl_exe_env_get_static_delegate == null) + { + efl_exe_env_get_static_delegate = new efl_exe_env_get_delegate(env_get); + } - public delegate void efl_exe_flags_set_api_delegate(System.IntPtr obj, Efl.ExeFlags flags); - public static Efl.Eo.FunctionWrapper efl_exe_flags_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_exe_flags_set"); - private static void exe_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.ExeFlags flags) - { - Eina.Log.Debug("function efl_exe_flags_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Exe)wrapper).SetExeFlags( flags); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_exe_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); - } - } - private static efl_exe_flags_set_delegate efl_exe_flags_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetEnv") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_exe_env_get"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_env_get_static_delegate) }); + } + if (efl_exe_env_set_static_delegate == null) + { + efl_exe_env_set_static_delegate = new efl_exe_env_set_delegate(env_set); + } - private delegate int efl_exe_exit_signal_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetEnv") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_exe_env_set"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_env_set_static_delegate) }); + } + if (efl_exe_signal_static_delegate == null) + { + efl_exe_signal_static_delegate = new efl_exe_signal_delegate(signal); + } - public delegate int efl_exe_exit_signal_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_exe_exit_signal_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_exe_exit_signal_get"); - private static int exit_signal_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_exe_exit_signal_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Exe)wrapper).GetExitSignal(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Signal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_exe_signal"), func = Marshal.GetFunctionPointerForDelegate(efl_exe_signal_static_delegate) }); } - return _ret_var; - } else { - return efl_exe_exit_signal_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_exe_exit_signal_get_delegate efl_exe_exit_signal_get_static_delegate; + if (efl_core_command_line_command_get_static_delegate == null) + { + efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Core.Env efl_exe_env_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate) }); + } + if (efl_core_command_line_command_array_set_static_delegate == null) + { + efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Core.Env efl_exe_env_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_exe_env_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_exe_env_get"); - private static Efl.Core.Env env_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_exe_env_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Core.Env _ret_var = default(Efl.Core.Env); - try { - _ret_var = ((Exe)wrapper).GetEnv(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate) }); } - return _ret_var; - } else { - return efl_exe_env_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_exe_env_get_delegate efl_exe_env_get_static_delegate; + if (efl_core_command_line_command_string_set_static_delegate == null) + { + efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set); + } - private delegate void efl_exe_env_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Core.Env env); + if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate) }); + } + if (efl_core_command_line_command_access_static_delegate == null) + { + efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access); + } - public delegate void efl_exe_env_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Core.Env env); - public static Efl.Eo.FunctionWrapper efl_exe_env_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_exe_env_set"); - private static void env_set(System.IntPtr obj, System.IntPtr pd, Efl.Core.Env env) - { - Eina.Log.Debug("function efl_exe_env_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Exe)wrapper).SetEnv( env); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_exe_env_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), env); - } - } - private static efl_exe_env_set_delegate efl_exe_env_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_static_delegate) }); + } + if (efl_io_closer_closed_get_static_delegate == null) + { + efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); + } - private delegate void efl_exe_signal_delegate(System.IntPtr obj, System.IntPtr pd, Efl.ExeSignal sig); + if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate) }); + } + if (efl_io_closer_close_on_exec_get_static_delegate == null) + { + efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); + } - public delegate void efl_exe_signal_api_delegate(System.IntPtr obj, Efl.ExeSignal sig); - public static Efl.Eo.FunctionWrapper efl_exe_signal_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_exe_signal"); - private static void signal(System.IntPtr obj, System.IntPtr pd, Efl.ExeSignal sig) - { - Eina.Log.Debug("function efl_exe_signal was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Exe)wrapper).Signal( sig); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_exe_signal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sig); - } - } - private static efl_exe_signal_delegate efl_exe_signal_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate) }); + } + if (efl_io_closer_close_on_exec_set_static_delegate == null) + { + efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate) }); + } + if (efl_io_closer_close_on_invalidate_get_static_delegate == null) + { + efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_get"); - private static System.String command_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_command_line_command_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Exe)wrapper).GetCommand(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate) }); } - return _ret_var; - } else { - return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate; + if (efl_io_closer_close_on_invalidate_set_static_delegate == null) + { + efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array); + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate) }); + } + if (efl_io_closer_close_static_delegate == null) + { + efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_array_set"); - private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array) - { - Eina.Log.Debug("function efl_core_command_line_command_array_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_array = new Eina.Array(array, true, true); - bool _ret_var = default(bool); - try { - _ret_var = ((Exe)wrapper).SetCommandArray( _in_array); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Close") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate) }); } - return _ret_var; - } else { - return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array); - } - } - private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate; + if (efl_io_reader_can_read_get_static_delegate == null) + { + efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate) }); + } + if (efl_io_reader_can_read_set_static_delegate == null) + { + efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_string_set"); - private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str) - { - Eina.Log.Debug("function efl_core_command_line_command_string_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Exe)wrapper).SetCommandString( str); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate) }); } - return _ret_var; - } else { - return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str); - } - } - private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate; + if (efl_io_reader_eos_get_static_delegate == null) + { + efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); + } - private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate) }); + } + if (efl_io_reader_eos_set_static_delegate == null) + { + efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); + } - public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_access"); - private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_command_line_command_access was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Accessor _ret_var = default(Eina.Accessor); - try { - _ret_var = ((Exe)wrapper).CommandAccess(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate) }); } - return _ret_var.Handle; - } else { - return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate; + if (efl_io_reader_read_static_delegate == null) + { + efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Read") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate) }); + } + if (efl_io_writer_can_write_get_static_delegate == null) + { + efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_closed_get"); - private static bool closed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_closed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Exe)wrapper).GetClosed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate) }); } - return _ret_var; - } else { - return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; + if (efl_io_writer_can_write_set_static_delegate == null) + { + efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate) }); + } + if (efl_io_writer_write_static_delegate == null) + { + efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_get"); - private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Exe)wrapper).GetCloseOnExec(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Write") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate) }); } - return _ret_var; - } else { - return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Exe.efl_exe_class_get(); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.ExeFlags efl_exe_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.ExeFlags efl_exe_flags_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_exe_flags_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_exe_flags_get"); + + private static Efl.ExeFlags exe_flags_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_exe_flags_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.ExeFlags _ret_var = default(Efl.ExeFlags); + try + { + _ret_var = ((Exe)wrapper).GetExeFlags(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_set"); - private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Exe)wrapper).SetCloseOnExec( close_on_exec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); + else + { + return efl_exe_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; + private static efl_exe_flags_get_delegate efl_exe_flags_get_static_delegate; + + + private delegate void efl_exe_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.ExeFlags flags); + + + public delegate void efl_exe_flags_set_api_delegate(System.IntPtr obj, Efl.ExeFlags flags); + + public static Efl.Eo.FunctionWrapper efl_exe_flags_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_exe_flags_set"); + + private static void exe_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.ExeFlags flags) + { + Eina.Log.Debug("function efl_exe_flags_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Exe)wrapper).SetExeFlags(flags); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_exe_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_exe_flags_set_delegate efl_exe_flags_set_static_delegate; + + + private delegate int efl_exe_exit_signal_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_exe_exit_signal_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_exe_exit_signal_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_exe_exit_signal_get"); + + private static int exit_signal_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_exe_exit_signal_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Exe)wrapper).GetExitSignal(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_get"); - private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Exe)wrapper).GetCloseOnInvalidate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_exe_exit_signal_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; + private static efl_exe_exit_signal_get_delegate efl_exe_exit_signal_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Core.Env efl_exe_env_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Core.Env efl_exe_env_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_exe_env_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_exe_env_get"); + + private static Efl.Core.Env env_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_exe_env_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Core.Env _ret_var = default(Efl.Core.Env); + try + { + _ret_var = ((Exe)wrapper).GetEnv(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + return _ret_var; + } + else + { + return efl_exe_env_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_set"); - private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Exe)wrapper).SetCloseOnInvalidate( close_on_invalidate); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); + private static efl_exe_env_get_delegate efl_exe_env_get_static_delegate; + + + private delegate void efl_exe_env_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Core.Env env); + + + public delegate void efl_exe_env_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Core.Env env); + + public static Efl.Eo.FunctionWrapper efl_exe_env_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_exe_env_set"); + + private static void env_set(System.IntPtr obj, System.IntPtr pd, Efl.Core.Env env) + { + Eina.Log.Debug("function efl_exe_env_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Exe)wrapper).SetEnv(env); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_exe_env_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), env); + } } - } - private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + private static efl_exe_env_set_delegate efl_exe_env_set_static_delegate; + + + private delegate void efl_exe_signal_delegate(System.IntPtr obj, System.IntPtr pd, Efl.ExeSignal sig); + + + public delegate void efl_exe_signal_api_delegate(System.IntPtr obj, Efl.ExeSignal sig); + + public static Efl.Eo.FunctionWrapper efl_exe_signal_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_exe_signal"); + + private static void signal(System.IntPtr obj, System.IntPtr pd, Efl.ExeSignal sig) + { + Eina.Log.Debug("function efl_exe_signal was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Exe)wrapper).Signal(sig); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_exe_signal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sig); + } + } - private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_exe_signal_delegate efl_exe_signal_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_get"); + + private static System.String command_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_command_line_command_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Exe)wrapper).GetCommand(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close"); - private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Exe)wrapper).Close(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; + private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_array_set"); + + private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array) + { + Eina.Log.Debug("function efl_core_command_line_command_array_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_array = new Eina.Array(array, true, true); + bool _ret_var = default(bool); + try + { + _ret_var = ((Exe)wrapper).SetCommandArray(_in_array); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_get"); - private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_can_read_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Exe)wrapper).GetCanRead(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array); + } } - } - private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; + private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_string_set"); + + private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str) + { + Eina.Log.Debug("function efl_core_command_line_command_string_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Exe)wrapper).SetCommandString(str); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); - + return _ret_var; - public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_set"); - private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) - { - Eina.Log.Debug("function efl_io_reader_can_read_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Exe)wrapper).SetCanRead( can_read); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); + } + else + { + return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str); + } } - } - private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; + private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate; + + + private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_access"); + + private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_command_line_command_access was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Accessor _ret_var = default(Eina.Accessor); + try + { + _ret_var = ((Exe)wrapper).CommandAccess(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var.Handle; + } + else + { + return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_get"); - private static bool eos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_eos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Exe)wrapper).GetEos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_closed_get"); + + private static bool closed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_closed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Exe)wrapper).GetClosed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_get"); + + private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Exe)wrapper).GetCloseOnExec(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; + private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_set"); + + private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Exe)wrapper).SetCloseOnExec(close_on_exec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + return _ret_var; + } + else + { + return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); + } + } - public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_set"); - private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) - { - Eina.Log.Debug("function efl_io_reader_eos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Exe)wrapper).SetEos( is_eos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); + private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_get"); + + private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Exe)wrapper).GetCloseOnInvalidate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; + + + private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + + public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_set"); + + private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Exe)wrapper).SetCloseOnInvalidate(close_on_invalidate); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); + } + } - private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + + + private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close"); + + private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Exe)wrapper).Close(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); - public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_read"); - private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) - { - Eina.Log.Debug("function efl_io_reader_read was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Exe)wrapper).Read( ref rw_slice); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + else + { + return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; + private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_get"); + + private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_can_read_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Exe)wrapper).GetCanRead(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_get"); - private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_writer_can_write_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Exe)wrapper).GetCanWrite(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; + + + private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); + + + public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); + + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_set"); + + private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) + { + Eina.Log.Debug("function efl_io_reader_can_read_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Exe)wrapper).SetCanRead(can_read); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); + } + } + + private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_get"); + + private static bool eos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_eos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Exe)wrapper).GetEos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; + private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; + + + private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + + + public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); + + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_set"); + + private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) + { + Eina.Log.Debug("function efl_io_reader_eos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Exe)wrapper).SetEos(is_eos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); + } + } - private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + + + private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + + + public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); + + public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_read"); + + private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) + { + Eina.Log.Debug("function efl_io_reader_read was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Exe)wrapper).Read(ref rw_slice); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_set"); - private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) - { - Eina.Log.Debug("function efl_io_writer_can_write_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Exe)wrapper).SetCanWrite( can_write); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); + } + else + { + return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + } } - } - private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_get"); + + private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_writer_can_write_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Exe)wrapper).GetCanWrite(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + return _ret_var; + } + else + { + return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); - public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_write"); - private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) - { - Eina.Log.Debug("function efl_io_writer_write was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Exe)wrapper).Write( ref slice, ref remaining); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; + + + private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + + + public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); + + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_set"); + + private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) + { + Eina.Log.Debug("function efl_io_writer_can_write_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Exe)wrapper).SetCanWrite(can_write); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); } + } + + private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + + + private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + + + public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); + + public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_write"); + + private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) + { + Eina.Log.Debug("function efl_io_writer_write was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Exe)wrapper).Write(ref slice, ref remaining); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + + } + else + { + return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + } } - } - private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} -namespace Efl { + +namespace Efl { + /// No description supplied. public enum ExeSignal { -/// Int = 0, -/// Quit = 1, -/// Term = 2, -/// Kill = 3, -/// Cont = 4, -/// Stop = 5, -/// Hup = 6, -/// Usr1 = 7, -/// Usr2 = 8, } -} -namespace Efl { + +} + +namespace Efl { + /// No description supplied. public enum ExeFlags { -/// None = 0, -/// GroupLeader = 1, -/// ExitWithParent = 2, -/// HideIo = 4, } -} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_file.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_file.eo.cs index 3e1b77e..b8ce1e3 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_file.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_file.eo.cs @@ -3,11 +3,13 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl file interface /// (Since EFL 1.22) -[IFileNativeInherit] +[Efl.IFileConcrete.NativeMethods] public interface IFile : Efl.Eo.IWrapper, IDisposable { @@ -20,7 +22,7 @@ Eina.File GetMmap(); /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise -Eina.Error SetMmap( Eina.File f); +Eina.Error SetMmap(Eina.File f); /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. /// (Since EFL 1.22) @@ -31,7 +33,7 @@ System.String GetFile(); /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise -Eina.Error SetFile( System.String file); +Eina.Error SetFile(System.String file); /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). /// @@ -43,8 +45,7 @@ System.String GetKey(); /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. -/// -void SetKey( System.String key); +void SetKey(System.String key); /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. @@ -61,7 +62,6 @@ Eina.Error Load(); /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) -/// void Unload(); /// Get the mmaped file from where an object will fetch the real data (it must be an ). /// (Since EFL 1.22) @@ -103,73 +103,108 @@ IFile { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IFileConcrete)) - return Efl.IFileNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IFileConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_file_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IFileConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IFileConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Get the mmaped file from where an object will fetch the real data (it must be an ). /// (Since EFL 1.22) /// The handle to the that will be used public Eina.File GetMmap() { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -178,8 +213,8 @@ IFile /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise - public Eina.Error SetMmap( Eina.File f) { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate(this.NativeHandle, f); + public Eina.Error SetMmap(Eina.File f) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate(this.NativeHandle,f); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -188,7 +223,7 @@ IFile /// (Since EFL 1.22) /// The file path. public System.String GetFile() { - var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -197,8 +232,8 @@ IFile /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise - public Eina.Error SetFile( System.String file) { - var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate(this.NativeHandle, file); + public Eina.Error SetFile(System.String file) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate(this.NativeHandle,file); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -209,7 +244,7 @@ IFile /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String GetKey() { - var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -217,16 +252,15 @@ IFile /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. - /// - public void SetKey( System.String key) { - Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate(this.NativeHandle, key); + public void SetKey(System.String key) { + Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate(this.NativeHandle,key); Eina.Error.RaiseIfUnhandledException(); } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. public bool GetLoaded() { - var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -237,7 +271,7 @@ IFile /// (Since EFL 1.22) /// 0 on success, error code otherwise public Eina.Error Load() { - var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -246,9 +280,8 @@ IFile /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) - /// public void Unload() { - Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate(this.NativeHandle); + Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Get the mmaped file from where an object will fetch the real data (it must be an ). @@ -256,7 +289,7 @@ IFile /// The handle to the that will be used public Eina.File Mmap { get { return GetMmap(); } - set { SetMmap( value); } + set { SetMmap(value); } } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. @@ -264,7 +297,7 @@ IFile /// The file path. public System.String File { get { return GetFile(); } - set { SetFile( value); } + set { SetFile(value); } } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -274,7 +307,7 @@ IFile /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String Key { get { return GetKey(); } - set { SetKey( value); } + set { SetKey(value); } } /// Get the load state of the object. /// (Since EFL 1.22) @@ -286,281 +319,444 @@ IFile { return Efl.IFileConcrete.efl_file_mixin_get(); } -} -public class IFileNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_file_mmap_get_static_delegate == null) - efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate)}); - if (efl_file_mmap_set_static_delegate == null) - efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate)}); - if (efl_file_get_static_delegate == null) - efl_file_get_static_delegate = new efl_file_get_delegate(file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate)}); - if (efl_file_set_static_delegate == null) - efl_file_set_static_delegate = new efl_file_set_delegate(file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate)}); - if (efl_file_key_get_static_delegate == null) - efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate)}); - if (efl_file_key_set_static_delegate == null) - efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate)}); - if (efl_file_loaded_get_static_delegate == null) - efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate)}); - if (efl_file_load_static_delegate == null) - efl_file_load_static_delegate = new efl_file_load_delegate(load); - if (methods.FirstOrDefault(m => m.Name == "Load") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate)}); - if (efl_file_unload_static_delegate == null) - efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); - if (methods.FirstOrDefault(m => m.Name == "Unload") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IFileConcrete.efl_file_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.IFileConcrete.efl_file_mixin_get(); - } + 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_file_mmap_get_static_delegate == null) + { + efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) }); + } - private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_mmap_set_static_delegate == null) + { + efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) }); + } - public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_get"); - private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_mmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.File _ret_var = default(Eina.File); - try { - _ret_var = ((IFileConcrete)wrapper).GetMmap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_get_static_delegate == null) + { + efl_file_get_static_delegate = new efl_file_get_delegate(file_get); } - return _ret_var; - } else { - return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) }); + } - private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + if (efl_file_set_static_delegate == null) + { + efl_file_set_static_delegate = new efl_file_set_delegate(file_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) }); + } - public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); - public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_set"); - private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) - { - Eina.Log.Debug("function efl_file_mmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((IFileConcrete)wrapper).SetMmap( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_key_get_static_delegate == null) + { + efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); } - return _ret_var; - } else { - return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_key_set_static_delegate == null) + { + efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_get"); - private static System.String file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IFileConcrete)wrapper).GetFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_loaded_get_static_delegate == null) + { + efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); } - return _ret_var; - } else { - return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_get_delegate efl_file_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) }); + } - private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + if (efl_file_load_static_delegate == null) + { + efl_file_load_static_delegate = new efl_file_load_delegate(load); + } + if (methods.FirstOrDefault(m => m.Name == "Load") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) }); + } - public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_set"); - private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) - { - Eina.Log.Debug("function efl_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((IFileConcrete)wrapper).SetFile( file); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_unload_static_delegate == null) + { + efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); } - return _ret_var; - } else { - return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); - } - } - private static efl_file_set_delegate efl_file_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Unload") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.IFileConcrete.efl_file_mixin_get(); + } + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_get"); + + private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_mmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.File _ret_var = default(Eina.File); + try + { + _ret_var = ((IFileConcrete)wrapper).GetMmap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IFileConcrete)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + } + else + { + return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + + + private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + + + public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_set"); + + private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) + { + Eina.Log.Debug("function efl_file_mmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((IFileConcrete)wrapper).SetMmap(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_file_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IFileConcrete)wrapper).SetKey( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } + else + { + return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } } - } - private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_get"); + + private static System.String file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IFileConcrete)wrapper).GetFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_get_delegate efl_file_get_static_delegate; + + + private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + + public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_set"); + + private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) + { + Eina.Log.Debug("function efl_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((IFileConcrete)wrapper).SetFile(file); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_loaded_get"); - private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_loaded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IFileConcrete)wrapper).GetLoaded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); + } } - } - private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + private static efl_file_set_delegate efl_file_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_get"); + + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IFileConcrete)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_load"); - private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_load was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((IFileConcrete)wrapper).Load(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + + + private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_file_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IFileConcrete)wrapper).SetKey(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); } + } + + private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_loaded_get"); + + private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_loaded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IFileConcrete)wrapper).GetLoaded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_file_load_delegate efl_file_load_static_delegate; + private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + + + private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_load"); + + private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_load was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((IFileConcrete)wrapper).Load(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_file_unload_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_unload"); - private static void unload(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_unload was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IFileConcrete)wrapper).Unload(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_file_load_delegate efl_file_load_static_delegate; + + + private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_file_unload_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_unload"); + + private static void unload(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_unload was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IFileConcrete)wrapper).Unload(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_file_unload_delegate efl_file_unload_static_delegate; + + private static efl_file_unload_delegate efl_file_unload_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_file_save.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_file_save.eo.cs index b0ed7fd..1e5d11f 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_file_save.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_file_save.eo.cs @@ -3,11 +3,13 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl file saving interface /// (Since EFL 1.22) -[IFileSaveNativeInherit] +[Efl.IFileSaveConcrete.NativeMethods] public interface IFileSave : Efl.Eo.IWrapper, IDisposable { @@ -20,7 +22,7 @@ public interface IFileSave : /// The image key in the file (if an Eet one), or null, otherwise. /// The flags to be used (null for defaults). /// true on success, false otherwise -bool Save( System.String file, System.String key, ref Efl.FileSaveInfo info); +bool Save(System.String file, System.String key, ref Efl.FileSaveInfo info); } /// Efl file saving interface /// (Since EFL 1.22) @@ -30,68 +32,103 @@ IFileSave { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IFileSaveConcrete)) - return Efl.IFileSaveNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IFileSaveConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_file_save_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IFileSaveConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IFileSaveConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Save the given image object's contents to an (image) file. /// The extension suffix on file will determine which saver module Evas is to use when saving, thus the final file's format. If the file supports multiple data stored in it (Eet ones), you can specify the key to be used as the index of the image in it. /// @@ -101,9 +138,9 @@ IFileSave /// The image key in the file (if an Eet one), or null, otherwise. /// The flags to be used (null for defaults). /// true on success, false otherwise - public bool Save( System.String file, System.String key, ref Efl.FileSaveInfo info) { + public bool Save(System.String file, System.String key, ref Efl.FileSaveInfo info) { Efl.FileSaveInfo.NativeStruct _in_info = info; - var _ret_var = Efl.IFileSaveNativeInherit.efl_file_save_ptr.Value.Delegate(this.NativeHandle, file, key, ref _in_info); + var _ret_var = Efl.IFileSaveConcrete.NativeMethods.efl_file_save_ptr.Value.Delegate(this.NativeHandle,file, key, ref _in_info); Eina.Error.RaiseIfUnhandledException(); info = _in_info; return _ret_var; @@ -112,57 +149,85 @@ IFileSave { return Efl.IFileSaveConcrete.efl_file_save_interface_get(); } -} -public class IFileSaveNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_file_save_static_delegate == null) - efl_file_save_static_delegate = new efl_file_save_delegate(save); - if (methods.FirstOrDefault(m => m.Name == "Save") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_save"), func = Marshal.GetFunctionPointerForDelegate(efl_file_save_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IFileSaveConcrete.efl_file_save_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IFileSaveConcrete.efl_file_save_interface_get(); - } + 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_file_save_static_delegate == null) + { + efl_file_save_static_delegate = new efl_file_save_delegate(save); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_save_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, ref Efl.FileSaveInfo.NativeStruct info); + if (methods.FirstOrDefault(m => m.Name == "Save") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_save"), func = Marshal.GetFunctionPointerForDelegate(efl_file_save_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.IFileSaveConcrete.efl_file_save_interface_get(); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_save_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, ref Efl.FileSaveInfo.NativeStruct info); - public static Efl.Eo.FunctionWrapper efl_file_save_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_save"); - private static bool save(System.IntPtr obj, System.IntPtr pd, System.String file, System.String key, ref Efl.FileSaveInfo.NativeStruct info) - { - Eina.Log.Debug("function efl_file_save was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.FileSaveInfo _in_info = info; + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_save_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, ref Efl.FileSaveInfo.NativeStruct info); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_save_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, ref Efl.FileSaveInfo.NativeStruct info); + + public static Efl.Eo.FunctionWrapper efl_file_save_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_save"); + + private static bool save(System.IntPtr obj, System.IntPtr pd, System.String file, System.String key, ref Efl.FileSaveInfo.NativeStruct info) + { + Eina.Log.Debug("function efl_file_save was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.FileSaveInfo _in_info = info; bool _ret_var = default(bool); - try { - _ret_var = ((IFileSave)wrapper).Save( file, key, ref _in_info); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IFileSave)wrapper).Save(file, key, ref _in_info); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + info = _in_info; return _ret_var; - } else { - return efl_file_save_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file, key, ref info); + + } + else + { + return efl_file_save_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file, key, ref info); + } } - } - private static efl_file_save_delegate efl_file_save_static_delegate; + + private static efl_file_save_delegate efl_file_save_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} -namespace Efl { +} + +namespace Efl { + /// Info used to determine various attributes when saving a file. /// (Since EFL 1.22) [StructLayout(LayoutKind.Sequential)] @@ -176,9 +241,9 @@ public struct FileSaveInfo public System.String Encoding; ///Constructor for FileSaveInfo. public FileSaveInfo( - uint Quality=default(uint), - uint Compression=default(uint), - System.String Encoding=default(System.String) ) + uint Quality = default(uint), + uint Compression = default(uint), + System.String Encoding = default(System.String) ) { this.Quality = Quality; this.Compression = Compression; @@ -225,4 +290,5 @@ public struct FileSaveInfo } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_generic_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_generic_model.eo.cs index 969bf3f..04fc97c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_generic_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_generic_model.eo.cs @@ -3,85 +3,114 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Generic model that allows any property to be manually set. Also children of the same type can be added and deleted. /// Intended to be used in scenarios where the user needs a manually defined data model, like in tests. /// /// It does not model anything in particular and does not affect anything else in the system. -[GenericModelNativeInherit] +[Efl.GenericModel.NativeMethods] public class GenericModel : Efl.LoopModel, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GenericModel)) - return Efl.GenericModelNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GenericModel)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_generic_model_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public GenericModel(Efl.Object parent= null - ) : - base(efl_generic_model_class_get(), typeof(GenericModel), parent) + ) : base(efl_generic_model_class_get(), typeof(GenericModel), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GenericModel(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GenericModel(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GenericModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.GenericModel.efl_generic_model_class_get(); } -} -public class GenericModelNativeInherit : Efl.LoopModelNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopModel.NativeMethods { - return Efl.GenericModel.efl_generic_model_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.GenericModel.efl_generic_model_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.GenericModel.efl_generic_model_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_blur.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_blur.eo.cs index 43734b1..a34ea32 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_blur.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_blur.eo.cs @@ -3,36 +3,36 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// A simple API to apply blur effects. /// Those API's might use internally. It might be necessary to also specify the color of the blur with . -[IBlurNativeInherit] +[Efl.Gfx.IBlurConcrete.NativeMethods] public interface IBlur : Efl.Eo.IWrapper, IDisposable { /// The blur radius in pixels. /// The horizontal blur radius. /// The vertical blur radius. -/// -void GetRadius( out double rx, out double ry); +void GetRadius(out double rx, out double ry); /// The blur radius in pixels. /// The horizontal blur radius. /// The vertical blur radius. -/// -void SetRadius( double rx, double ry); +void SetRadius(double rx, double ry); /// An offset relative to the original pixels. /// This property allows for drop shadow effects. /// Horizontal offset in pixels. /// Vertical offset in pixels. -/// -void GetOffset( out double ox, out double oy); +void GetOffset(out double ox, out double oy); /// An offset relative to the original pixels. /// This property allows for drop shadow effects. /// Horizontal offset in pixels. /// Vertical offset in pixels. -/// -void SetOffset( double ox, double oy); +void SetOffset(double ox, double oy); /// How much the original image should be "grown" before blurring. /// Growing is a combination of blur & color levels adjustment. If the value of grow is positive, the pixels will appear more "fat" or "bold" than the original. If the value is negative, a shrink effect happens instead. /// @@ -44,8 +44,7 @@ double GetGrow(); /// /// This is can be used efficiently to create glow effects. /// How much to grow the original pixel data. -/// -void SetGrow( double radius); +void SetGrow(double radius); /// How much the original image should be "grown" before blurring. /// Growing is a combination of blur & color levels adjustment. If the value of grow is positive, the pixels will appear more "fat" or "bold" than the original. If the value is negative, a shrink effect happens instead. /// @@ -64,100 +63,131 @@ IBlur { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IBlurConcrete)) - return Efl.Gfx.IBlurNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IBlurConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_blur_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IBlurConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IBlurConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// The blur radius in pixels. /// The horizontal blur radius. /// The vertical blur radius. - /// - public void GetRadius( out double rx, out double ry) { - Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_radius_get_ptr.Value.Delegate(this.NativeHandle, out rx, out ry); + public void GetRadius(out double rx, out double ry) { + Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_radius_get_ptr.Value.Delegate(this.NativeHandle,out rx, out ry); Eina.Error.RaiseIfUnhandledException(); } /// The blur radius in pixels. /// The horizontal blur radius. /// The vertical blur radius. - /// - public void SetRadius( double rx, double ry) { - Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_radius_set_ptr.Value.Delegate(this.NativeHandle, rx, ry); + public void SetRadius(double rx, double ry) { + Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_radius_set_ptr.Value.Delegate(this.NativeHandle,rx, ry); Eina.Error.RaiseIfUnhandledException(); } /// An offset relative to the original pixels. /// This property allows for drop shadow effects. /// Horizontal offset in pixels. /// Vertical offset in pixels. - /// - public void GetOffset( out double ox, out double oy) { - Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_offset_get_ptr.Value.Delegate(this.NativeHandle, out ox, out oy); + public void GetOffset(out double ox, out double oy) { + Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_offset_get_ptr.Value.Delegate(this.NativeHandle,out ox, out oy); Eina.Error.RaiseIfUnhandledException(); } /// An offset relative to the original pixels. /// This property allows for drop shadow effects. /// Horizontal offset in pixels. /// Vertical offset in pixels. - /// - public void SetOffset( double ox, double oy) { - Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_offset_set_ptr.Value.Delegate(this.NativeHandle, ox, oy); + public void SetOffset(double ox, double oy) { + Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_offset_set_ptr.Value.Delegate(this.NativeHandle,ox, oy); Eina.Error.RaiseIfUnhandledException(); } /// How much the original image should be "grown" before blurring. @@ -166,7 +196,7 @@ IBlur /// This is can be used efficiently to create glow effects. /// How much to grow the original pixel data. public double GetGrow() { - var _ret_var = Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_grow_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_grow_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -175,9 +205,8 @@ IBlur /// /// This is can be used efficiently to create glow effects. /// How much to grow the original pixel data. - /// - public void SetGrow( double radius) { - Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_grow_set_ptr.Value.Delegate(this.NativeHandle, radius); + public void SetGrow(double radius) { + Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_grow_set_ptr.Value.Delegate(this.NativeHandle,radius); Eina.Error.RaiseIfUnhandledException(); } /// How much the original image should be "grown" before blurring. @@ -187,197 +216,311 @@ IBlur /// How much to grow the original pixel data. public double Grow { get { return GetGrow(); } - set { SetGrow( value); } + set { SetGrow(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IBlurConcrete.efl_gfx_blur_interface_get(); } -} -public class IBlurNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_blur_radius_get_static_delegate == null) - efl_gfx_blur_radius_get_static_delegate = new efl_gfx_blur_radius_get_delegate(radius_get); - if (methods.FirstOrDefault(m => m.Name == "GetRadius") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_radius_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_radius_get_static_delegate)}); - if (efl_gfx_blur_radius_set_static_delegate == null) - efl_gfx_blur_radius_set_static_delegate = new efl_gfx_blur_radius_set_delegate(radius_set); - if (methods.FirstOrDefault(m => m.Name == "SetRadius") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_radius_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_radius_set_static_delegate)}); - if (efl_gfx_blur_offset_get_static_delegate == null) - efl_gfx_blur_offset_get_static_delegate = new efl_gfx_blur_offset_get_delegate(offset_get); - if (methods.FirstOrDefault(m => m.Name == "GetOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_offset_get_static_delegate)}); - if (efl_gfx_blur_offset_set_static_delegate == null) - efl_gfx_blur_offset_set_static_delegate = new efl_gfx_blur_offset_set_delegate(offset_set); - if (methods.FirstOrDefault(m => m.Name == "SetOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_offset_set_static_delegate)}); - if (efl_gfx_blur_grow_get_static_delegate == null) - efl_gfx_blur_grow_get_static_delegate = new efl_gfx_blur_grow_get_delegate(grow_get); - if (methods.FirstOrDefault(m => m.Name == "GetGrow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_grow_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_grow_get_static_delegate)}); - if (efl_gfx_blur_grow_set_static_delegate == null) - efl_gfx_blur_grow_set_static_delegate = new efl_gfx_blur_grow_set_delegate(grow_set); - if (methods.FirstOrDefault(m => m.Name == "SetGrow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_grow_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_grow_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IBlurConcrete.efl_gfx_blur_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IBlurConcrete.efl_gfx_blur_interface_get(); - } + 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_gfx_blur_radius_get_static_delegate == null) + { + efl_gfx_blur_radius_get_static_delegate = new efl_gfx_blur_radius_get_delegate(radius_get); + } - private delegate void efl_gfx_blur_radius_get_delegate(System.IntPtr obj, System.IntPtr pd, out double rx, out double ry); + if (methods.FirstOrDefault(m => m.Name == "GetRadius") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_radius_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_radius_get_static_delegate) }); + } + if (efl_gfx_blur_radius_set_static_delegate == null) + { + efl_gfx_blur_radius_set_static_delegate = new efl_gfx_blur_radius_set_delegate(radius_set); + } - public delegate void efl_gfx_blur_radius_get_api_delegate(System.IntPtr obj, out double rx, out double ry); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_radius_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_radius_get"); - private static void radius_get(System.IntPtr obj, System.IntPtr pd, out double rx, out double ry) - { - Eina.Log.Debug("function efl_gfx_blur_radius_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - rx = default(double); ry = default(double); - try { - ((IBlur)wrapper).GetRadius( out rx, out ry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetRadius") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_radius_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_radius_set_static_delegate) }); + } + + if (efl_gfx_blur_offset_get_static_delegate == null) + { + efl_gfx_blur_offset_get_static_delegate = new efl_gfx_blur_offset_get_delegate(offset_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_offset_get_static_delegate) }); } - } else { - efl_gfx_blur_radius_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out rx, out ry); + + if (efl_gfx_blur_offset_set_static_delegate == null) + { + efl_gfx_blur_offset_set_static_delegate = new efl_gfx_blur_offset_set_delegate(offset_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_offset_set_static_delegate) }); + } + + if (efl_gfx_blur_grow_get_static_delegate == null) + { + efl_gfx_blur_grow_get_static_delegate = new efl_gfx_blur_grow_get_delegate(grow_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGrow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_grow_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_grow_get_static_delegate) }); + } + + if (efl_gfx_blur_grow_set_static_delegate == null) + { + efl_gfx_blur_grow_set_static_delegate = new efl_gfx_blur_grow_set_delegate(grow_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetGrow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_grow_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_grow_set_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.Gfx.IBlurConcrete.efl_gfx_blur_interface_get(); } - } - private static efl_gfx_blur_radius_get_delegate efl_gfx_blur_radius_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_gfx_blur_radius_set_delegate(System.IntPtr obj, System.IntPtr pd, double rx, double ry); + + private delegate void efl_gfx_blur_radius_get_delegate(System.IntPtr obj, System.IntPtr pd, out double rx, out double ry); + + public delegate void efl_gfx_blur_radius_get_api_delegate(System.IntPtr obj, out double rx, out double ry); - public delegate void efl_gfx_blur_radius_set_api_delegate(System.IntPtr obj, double rx, double ry); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_radius_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_radius_set"); - private static void radius_set(System.IntPtr obj, System.IntPtr pd, double rx, double ry) - { - Eina.Log.Debug("function efl_gfx_blur_radius_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IBlur)wrapper).SetRadius( rx, ry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_blur_radius_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_radius_get"); + + private static void radius_get(System.IntPtr obj, System.IntPtr pd, out double rx, out double ry) + { + Eina.Log.Debug("function efl_gfx_blur_radius_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + rx = default(double); ry = default(double); + try + { + ((IBlur)wrapper).GetRadius(out rx, out ry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_blur_radius_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out rx, out ry); } - } else { - efl_gfx_blur_radius_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rx, ry); } - } - private static efl_gfx_blur_radius_set_delegate efl_gfx_blur_radius_set_static_delegate; + private static efl_gfx_blur_radius_get_delegate efl_gfx_blur_radius_get_static_delegate; - private delegate void efl_gfx_blur_offset_get_delegate(System.IntPtr obj, System.IntPtr pd, out double ox, out double oy); + + private delegate void efl_gfx_blur_radius_set_delegate(System.IntPtr obj, System.IntPtr pd, double rx, double ry); + + public delegate void efl_gfx_blur_radius_set_api_delegate(System.IntPtr obj, double rx, double ry); - public delegate void efl_gfx_blur_offset_get_api_delegate(System.IntPtr obj, out double ox, out double oy); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_offset_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_offset_get"); - private static void offset_get(System.IntPtr obj, System.IntPtr pd, out double ox, out double oy) - { - Eina.Log.Debug("function efl_gfx_blur_offset_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - ox = default(double); oy = default(double); - try { - ((IBlur)wrapper).GetOffset( out ox, out oy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_blur_radius_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_radius_set"); + + private static void radius_set(System.IntPtr obj, System.IntPtr pd, double rx, double ry) + { + Eina.Log.Debug("function efl_gfx_blur_radius_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IBlur)wrapper).SetRadius(rx, ry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_blur_radius_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rx, ry); } - } else { - efl_gfx_blur_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out ox, out oy); } - } - private static efl_gfx_blur_offset_get_delegate efl_gfx_blur_offset_get_static_delegate; + private static efl_gfx_blur_radius_set_delegate efl_gfx_blur_radius_set_static_delegate; - private delegate void efl_gfx_blur_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, double ox, double oy); + + private delegate void efl_gfx_blur_offset_get_delegate(System.IntPtr obj, System.IntPtr pd, out double ox, out double oy); + + public delegate void efl_gfx_blur_offset_get_api_delegate(System.IntPtr obj, out double ox, out double oy); - public delegate void efl_gfx_blur_offset_set_api_delegate(System.IntPtr obj, double ox, double oy); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_offset_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_offset_set"); - private static void offset_set(System.IntPtr obj, System.IntPtr pd, double ox, double oy) - { - Eina.Log.Debug("function efl_gfx_blur_offset_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IBlur)wrapper).SetOffset( ox, oy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_blur_offset_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_offset_get"); + + private static void offset_get(System.IntPtr obj, System.IntPtr pd, out double ox, out double oy) + { + Eina.Log.Debug("function efl_gfx_blur_offset_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + ox = default(double); oy = default(double); + try + { + ((IBlur)wrapper).GetOffset(out ox, out oy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_blur_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out ox, out oy); } - } else { - efl_gfx_blur_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ox, oy); } - } - private static efl_gfx_blur_offset_set_delegate efl_gfx_blur_offset_set_static_delegate; + private static efl_gfx_blur_offset_get_delegate efl_gfx_blur_offset_get_static_delegate; - private delegate double efl_gfx_blur_grow_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_blur_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, double ox, double oy); + + public delegate void efl_gfx_blur_offset_set_api_delegate(System.IntPtr obj, double ox, double oy); - public delegate double efl_gfx_blur_grow_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_grow_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_grow_get"); - private static double grow_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_blur_grow_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IBlur)wrapper).GetGrow(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_blur_offset_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_offset_set"); + + private static void offset_set(System.IntPtr obj, System.IntPtr pd, double ox, double oy) + { + Eina.Log.Debug("function efl_gfx_blur_offset_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IBlur)wrapper).SetOffset(ox, oy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_blur_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ox, oy); + } + } + + private static efl_gfx_blur_offset_set_delegate efl_gfx_blur_offset_set_static_delegate; + + + private delegate double efl_gfx_blur_grow_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_blur_grow_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_blur_grow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_grow_get"); + + private static double grow_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_blur_grow_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IBlur)wrapper).GetGrow(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_blur_grow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_blur_grow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_blur_grow_get_delegate efl_gfx_blur_grow_get_static_delegate; + private static efl_gfx_blur_grow_get_delegate efl_gfx_blur_grow_get_static_delegate; - private delegate void efl_gfx_blur_grow_set_delegate(System.IntPtr obj, System.IntPtr pd, double radius); + + private delegate void efl_gfx_blur_grow_set_delegate(System.IntPtr obj, System.IntPtr pd, double radius); + + public delegate void efl_gfx_blur_grow_set_api_delegate(System.IntPtr obj, double radius); - public delegate void efl_gfx_blur_grow_set_api_delegate(System.IntPtr obj, double radius); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_grow_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_grow_set"); - private static void grow_set(System.IntPtr obj, System.IntPtr pd, double radius) - { - Eina.Log.Debug("function efl_gfx_blur_grow_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IBlur)wrapper).SetGrow( radius); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_blur_grow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_grow_set"); + + private static void grow_set(System.IntPtr obj, System.IntPtr pd, double radius) + { + Eina.Log.Debug("function efl_gfx_blur_grow_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IBlur)wrapper).SetGrow(radius); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_blur_grow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), radius); } - } else { - efl_gfx_blur_grow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), radius); } - } - private static efl_gfx_blur_grow_set_delegate efl_gfx_blur_grow_set_static_delegate; + + private static efl_gfx_blur_grow_set_delegate efl_gfx_blur_grow_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_buffer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_buffer.eo.cs index 75aae16..95a146a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_buffer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_buffer.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Common APIs for all objects representing images and 2D pixel buffers. -[IBufferNativeInherit] +[Efl.Gfx.IBufferConcrete.NativeMethods] public interface IBuffer : Efl.Eo.IWrapper, IDisposable { @@ -15,8 +19,7 @@ public interface IBuffer : Eina.Size2D GetBufferSize(); /// Potentially not implemented, may be read-only. /// Size of the buffer in pixels. -/// -void SetBufferSize( Eina.Size2D sz); +void SetBufferSize(Eina.Size2D sz); /// Returns the current encoding of this buffer's pixels. /// See for more information on the supported formats. /// Colorspace @@ -27,8 +30,7 @@ bool GetAlpha(); /// Change alpha channel usage for this object. /// This function sets a flag on an image object indicating whether or not to use alpha channel data. A value of true makes it use alpha channel data, and false makes it ignore that data. Note that this has nothing to do with an object's color as manipulated by . /// Whether to use alpha channel (true) data or not (false). -/// -void SetAlpha( bool alpha); +void SetAlpha(bool alpha); /// Length in bytes of one row of pixels in memory. /// Usually this will be equal to width * 4, with a plain BGRA image. This may return 0 if the stride is not applicable. /// @@ -41,13 +43,11 @@ int GetStride(); /// Right border pixels, usually 0 or 1 /// Top border pixels, usually 0 or 1 /// Bottom border pixels, usually 0 or 1 -/// -void GetBufferBorders( out uint l, out uint r, out uint t, out uint b); +void GetBufferBorders(out uint l, out uint r, out uint t, out uint b); /// Mark a sub-region of the given image object to be redrawn. /// This function schedules a particular rectangular region of an image object to be updated (redrawn) at the next rendering cycle. /// The updated region. -/// -void AddBufferUpdate( ref Eina.Rect region); +void AddBufferUpdate(ref Eina.Rect region); /// Map a region of this buffer for read or write access by the CPU. /// Fetches data from the GPU if needed. This operation may be slow if cpu_readable_fast or cpu_writeable_fast are not true, or if the required colorspace is different from the internal one. /// @@ -58,14 +58,14 @@ void AddBufferUpdate( ref Eina.Rect region); /// Plane ID. 0 by default. Useful for planar formats only. /// Returns the length in bytes of a mapped line /// The data slice. In case of failure, the memory pointer will be null. -Eina.RwSlice BufferMap( Efl.Gfx.BufferAccessMode mode, ref Eina.Rect region, Efl.Gfx.Colorspace cspace, int plane, out int stride); +Eina.RwSlice BufferMap(Efl.Gfx.BufferAccessMode mode, ref Eina.Rect region, Efl.Gfx.Colorspace cspace, int plane, out int stride); /// Unmap a region of this buffer, and update the internal data if needed. /// EFL will update the internal image if the map had write access. /// /// Note: The slice struct does not need to be the one returned by , only its contents (mem and len) must match. But after a call to the original slice structure is not valid anymore. /// Data slice returned by a previous call to map. /// true on success, false otherwise -bool BufferUnmap( Eina.RwSlice slice); +bool BufferUnmap(Eina.RwSlice slice); /// Set the pixels for this buffer by copying them, or allocate a new memory region. /// This will allocate a new buffer in memory and copy the input pixels to it. The internal colorspace is not guaranteed to be preserved, and colorspace conversion may happen internally. /// @@ -80,7 +80,7 @@ bool BufferUnmap( Eina.RwSlice slice); /// argb8888 by default. /// Plane ID. 0 by default. Useful for planar formats only. /// true on success, false otherwise -bool SetBufferCopy( Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane); +bool SetBufferCopy(Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane); /// Set the pixels for this buffer, managed externally by the client. /// EFL will use the pixel data directly, and update the GPU-side texture if required. This will mark the image as dirty. If slice is null, this will detach the pixel data. /// @@ -95,12 +95,12 @@ bool SetBufferCopy( Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.C /// argb8888 by default. /// Plane ID. 0 by default. Useful for planar formats only. /// true on success, false otherwise -bool SetBufferManaged( Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane); +bool SetBufferManaged(Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane); /// Get a direct pointer to the internal pixel data, if available. /// This will return null unless was used to pass in an external data pointer. /// Plane ID. 0 by default. Useful for planar formats only. /// The data slice. The memory pointer will be null in case of failure. -Eina.Slice GetBufferManaged( int plane); +Eina.Slice GetBufferManaged(int plane); /// Rectangular size of the pixel buffer as allocated in memory. /// Size of the buffer in pixels. Eina.Size2D BufferSize { @@ -138,104 +138,137 @@ IBuffer { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IBufferConcrete)) - return Efl.Gfx.IBufferNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IBufferConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_buffer_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IBufferConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IBufferConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Rectangular size of the pixel buffer as allocated in memory. /// Size of the buffer in pixels. public Eina.Size2D GetBufferSize() { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Potentially not implemented, may be read-only. /// Size of the buffer in pixels. - /// - public void SetBufferSize( Eina.Size2D sz) { + public void SetBufferSize(Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_size_set_ptr.Value.Delegate(this.NativeHandle, _in_sz); + Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_size_set_ptr.Value.Delegate(this.NativeHandle,_in_sz); Eina.Error.RaiseIfUnhandledException(); } /// Returns the current encoding of this buffer's pixels. /// See for more information on the supported formats. /// Colorspace public Efl.Gfx.Colorspace GetColorspace() { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_colorspace_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_colorspace_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Retrieve whether alpha channel data is used on this object. /// Whether to use alpha channel (true) data or not (false). public bool GetAlpha() { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_alpha_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_alpha_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Change alpha channel usage for this object. /// This function sets a flag on an image object indicating whether or not to use alpha channel data. A value of true makes it use alpha channel data, and false makes it ignore that data. Note that this has nothing to do with an object's color as manipulated by . /// Whether to use alpha channel (true) data or not (false). - /// - public void SetAlpha( bool alpha) { - Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_alpha_set_ptr.Value.Delegate(this.NativeHandle, alpha); + public void SetAlpha(bool alpha) { + Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_alpha_set_ptr.Value.Delegate(this.NativeHandle,alpha); Eina.Error.RaiseIfUnhandledException(); } /// Length in bytes of one row of pixels in memory. @@ -244,7 +277,7 @@ IBuffer /// When applicable, this will include the as well as potential extra padding. /// Stride public int GetStride() { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_stride_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_stride_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -254,18 +287,16 @@ IBuffer /// Right border pixels, usually 0 or 1 /// Top border pixels, usually 0 or 1 /// Bottom border pixels, usually 0 or 1 - /// - public void GetBufferBorders( out uint l, out uint r, out uint t, out uint b) { - Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_borders_get_ptr.Value.Delegate(this.NativeHandle, out l, out r, out t, out b); + public void GetBufferBorders(out uint l, out uint r, out uint t, out uint b) { + Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_borders_get_ptr.Value.Delegate(this.NativeHandle,out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Mark a sub-region of the given image object to be redrawn. /// This function schedules a particular rectangular region of an image object to be updated (redrawn) at the next rendering cycle. /// The updated region. - /// - public void AddBufferUpdate( ref Eina.Rect region) { + public void AddBufferUpdate(ref Eina.Rect region) { Eina.Rect.NativeStruct _in_region = region; - Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_update_add_ptr.Value.Delegate(this.NativeHandle, ref _in_region); + Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_update_add_ptr.Value.Delegate(this.NativeHandle,ref _in_region); Eina.Error.RaiseIfUnhandledException(); region = _in_region; } @@ -279,9 +310,9 @@ IBuffer /// Plane ID. 0 by default. Useful for planar formats only. /// Returns the length in bytes of a mapped line /// The data slice. In case of failure, the memory pointer will be null. - public Eina.RwSlice BufferMap( Efl.Gfx.BufferAccessMode mode, ref Eina.Rect region, Efl.Gfx.Colorspace cspace, int plane, out int stride) { + public Eina.RwSlice BufferMap(Efl.Gfx.BufferAccessMode mode, ref Eina.Rect region, Efl.Gfx.Colorspace cspace, int plane, out int stride) { Eina.Rect.NativeStruct _in_region = region; - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_map_ptr.Value.Delegate(this.NativeHandle, mode, ref _in_region, cspace, plane, out stride); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_map_ptr.Value.Delegate(this.NativeHandle,mode, ref _in_region, cspace, plane, out stride); Eina.Error.RaiseIfUnhandledException(); region = _in_region; return _ret_var; @@ -292,8 +323,8 @@ IBuffer /// Note: The slice struct does not need to be the one returned by , only its contents (mem and len) must match. But after a call to the original slice structure is not valid anymore. /// Data slice returned by a previous call to map. /// true on success, false otherwise - public bool BufferUnmap( Eina.RwSlice slice) { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_unmap_ptr.Value.Delegate(this.NativeHandle, slice); + public bool BufferUnmap(Eina.RwSlice slice) { + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_unmap_ptr.Value.Delegate(this.NativeHandle,slice); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -311,10 +342,10 @@ IBuffer /// argb8888 by default. /// Plane ID. 0 by default. Useful for planar formats only. /// true on success, false otherwise - public bool SetBufferCopy( Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane) { + public bool SetBufferCopy(Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane) { var _in_slice = Eina.PrimitiveConversion.ManagedToPointerAlloc(slice); Eina.Size2D.NativeStruct _in_size = size; - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_copy_set_ptr.Value.Delegate(this.NativeHandle, _in_slice, _in_size, stride, cspace, plane); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_copy_set_ptr.Value.Delegate(this.NativeHandle,_in_slice, _in_size, stride, cspace, plane); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -332,10 +363,10 @@ IBuffer /// argb8888 by default. /// Plane ID. 0 by default. Useful for planar formats only. /// true on success, false otherwise - public bool SetBufferManaged( Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane) { + public bool SetBufferManaged(Eina.Slice slice, Eina.Size2D size, int stride, Efl.Gfx.Colorspace cspace, int plane) { var _in_slice = Eina.PrimitiveConversion.ManagedToPointerAlloc(slice); Eina.Size2D.NativeStruct _in_size = size; - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_managed_set_ptr.Value.Delegate(this.NativeHandle, _in_slice, _in_size, stride, cspace, plane); + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_managed_set_ptr.Value.Delegate(this.NativeHandle,_in_slice, _in_size, stride, cspace, plane); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -343,8 +374,8 @@ IBuffer /// This will return null unless was used to pass in an external data pointer. /// Plane ID. 0 by default. Useful for planar formats only. /// The data slice. The memory pointer will be null in case of failure. - public Eina.Slice GetBufferManaged( int plane) { - var _ret_var = Efl.Gfx.IBufferNativeInherit.efl_gfx_buffer_managed_get_ptr.Value.Delegate(this.NativeHandle, plane); + public Eina.Slice GetBufferManaged(int plane) { + var _ret_var = Efl.Gfx.IBufferConcrete.NativeMethods.efl_gfx_buffer_managed_get_ptr.Value.Delegate(this.NativeHandle,plane); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -352,7 +383,7 @@ IBuffer /// Size of the buffer in pixels. public Eina.Size2D BufferSize { get { return GetBufferSize(); } - set { SetBufferSize( value); } + set { SetBufferSize(value); } } /// The colorspace defines how pixels are encoded in the image in memory. /// By default, images are encoded in 32-bit BGRA, ie. each pixel takes 4 bytes in memory, with each channel B,G,R,A encoding the color with values from 0 to 255. @@ -367,7 +398,7 @@ IBuffer /// Whether to use alpha channel (true) data or not (false). public bool Alpha { get { return GetAlpha(); } - set { SetAlpha( value); } + set { SetAlpha(value); } } /// Length in bytes of one row of pixels in memory. /// Usually this will be equal to width * 4, with a plain BGRA image. This may return 0 if the stride is not applicable. @@ -381,408 +412,644 @@ IBuffer { return Efl.Gfx.IBufferConcrete.efl_gfx_buffer_interface_get(); } -} -public class IBufferNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_buffer_size_get_static_delegate == null) - efl_gfx_buffer_size_get_static_delegate = new efl_gfx_buffer_size_get_delegate(buffer_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetBufferSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_size_get_static_delegate)}); - if (efl_gfx_buffer_size_set_static_delegate == null) - efl_gfx_buffer_size_set_static_delegate = new efl_gfx_buffer_size_set_delegate(buffer_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetBufferSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_size_set_static_delegate)}); - if (efl_gfx_buffer_colorspace_get_static_delegate == null) - efl_gfx_buffer_colorspace_get_static_delegate = new efl_gfx_buffer_colorspace_get_delegate(colorspace_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorspace") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_colorspace_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_colorspace_get_static_delegate)}); - if (efl_gfx_buffer_alpha_get_static_delegate == null) - efl_gfx_buffer_alpha_get_static_delegate = new efl_gfx_buffer_alpha_get_delegate(alpha_get); - if (methods.FirstOrDefault(m => m.Name == "GetAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_alpha_get_static_delegate)}); - if (efl_gfx_buffer_alpha_set_static_delegate == null) - efl_gfx_buffer_alpha_set_static_delegate = new efl_gfx_buffer_alpha_set_delegate(alpha_set); - if (methods.FirstOrDefault(m => m.Name == "SetAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_alpha_set_static_delegate)}); - if (efl_gfx_buffer_stride_get_static_delegate == null) - efl_gfx_buffer_stride_get_static_delegate = new efl_gfx_buffer_stride_get_delegate(stride_get); - if (methods.FirstOrDefault(m => m.Name == "GetStride") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_stride_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_stride_get_static_delegate)}); - if (efl_gfx_buffer_borders_get_static_delegate == null) - efl_gfx_buffer_borders_get_static_delegate = new efl_gfx_buffer_borders_get_delegate(buffer_borders_get); - if (methods.FirstOrDefault(m => m.Name == "GetBufferBorders") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_borders_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_borders_get_static_delegate)}); - if (efl_gfx_buffer_update_add_static_delegate == null) - efl_gfx_buffer_update_add_static_delegate = new efl_gfx_buffer_update_add_delegate(buffer_update_add); - if (methods.FirstOrDefault(m => m.Name == "AddBufferUpdate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_update_add"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_update_add_static_delegate)}); - if (efl_gfx_buffer_map_static_delegate == null) - efl_gfx_buffer_map_static_delegate = new efl_gfx_buffer_map_delegate(buffer_map); - if (methods.FirstOrDefault(m => m.Name == "BufferMap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_map"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_map_static_delegate)}); - if (efl_gfx_buffer_unmap_static_delegate == null) - efl_gfx_buffer_unmap_static_delegate = new efl_gfx_buffer_unmap_delegate(buffer_unmap); - if (methods.FirstOrDefault(m => m.Name == "BufferUnmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_unmap"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_unmap_static_delegate)}); - if (efl_gfx_buffer_copy_set_static_delegate == null) - efl_gfx_buffer_copy_set_static_delegate = new efl_gfx_buffer_copy_set_delegate(buffer_copy_set); - if (methods.FirstOrDefault(m => m.Name == "SetBufferCopy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_copy_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_copy_set_static_delegate)}); - if (efl_gfx_buffer_managed_set_static_delegate == null) - efl_gfx_buffer_managed_set_static_delegate = new efl_gfx_buffer_managed_set_delegate(buffer_managed_set); - if (methods.FirstOrDefault(m => m.Name == "SetBufferManaged") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_managed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_managed_set_static_delegate)}); - if (efl_gfx_buffer_managed_get_static_delegate == null) - efl_gfx_buffer_managed_get_static_delegate = new efl_gfx_buffer_managed_get_delegate(buffer_managed_get); - if (methods.FirstOrDefault(m => m.Name == "GetBufferManaged") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_buffer_managed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_managed_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IBufferConcrete.efl_gfx_buffer_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Gfx.IBufferConcrete.efl_gfx_buffer_interface_get(); - } + 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_gfx_buffer_size_get_static_delegate == null) + { + efl_gfx_buffer_size_get_static_delegate = new efl_gfx_buffer_size_get_delegate(buffer_size_get); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_buffer_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetBufferSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_size_get_static_delegate) }); + } + if (efl_gfx_buffer_size_set_static_delegate == null) + { + efl_gfx_buffer_size_set_static_delegate = new efl_gfx_buffer_size_set_delegate(buffer_size_set); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_buffer_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_size_get"); - private static Eina.Size2D.NativeStruct buffer_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_buffer_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IBuffer)wrapper).GetBufferSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBufferSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_size_set_static_delegate) }); + } + + if (efl_gfx_buffer_colorspace_get_static_delegate == null) + { + efl_gfx_buffer_colorspace_get_static_delegate = new efl_gfx_buffer_colorspace_get_delegate(colorspace_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetColorspace") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_colorspace_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_colorspace_get_static_delegate) }); + } + + if (efl_gfx_buffer_alpha_get_static_delegate == null) + { + efl_gfx_buffer_alpha_get_static_delegate = new efl_gfx_buffer_alpha_get_delegate(alpha_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_alpha_get_static_delegate) }); + } + + if (efl_gfx_buffer_alpha_set_static_delegate == null) + { + efl_gfx_buffer_alpha_set_static_delegate = new efl_gfx_buffer_alpha_set_delegate(alpha_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_alpha_set_static_delegate) }); + } + + if (efl_gfx_buffer_stride_get_static_delegate == null) + { + efl_gfx_buffer_stride_get_static_delegate = new efl_gfx_buffer_stride_get_delegate(stride_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStride") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_stride_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_stride_get_static_delegate) }); + } + + if (efl_gfx_buffer_borders_get_static_delegate == null) + { + efl_gfx_buffer_borders_get_static_delegate = new efl_gfx_buffer_borders_get_delegate(buffer_borders_get); } + + if (methods.FirstOrDefault(m => m.Name == "GetBufferBorders") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_borders_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_borders_get_static_delegate) }); + } + + if (efl_gfx_buffer_update_add_static_delegate == null) + { + efl_gfx_buffer_update_add_static_delegate = new efl_gfx_buffer_update_add_delegate(buffer_update_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddBufferUpdate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_update_add"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_update_add_static_delegate) }); + } + + if (efl_gfx_buffer_map_static_delegate == null) + { + efl_gfx_buffer_map_static_delegate = new efl_gfx_buffer_map_delegate(buffer_map); + } + + if (methods.FirstOrDefault(m => m.Name == "BufferMap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_map"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_map_static_delegate) }); + } + + if (efl_gfx_buffer_unmap_static_delegate == null) + { + efl_gfx_buffer_unmap_static_delegate = new efl_gfx_buffer_unmap_delegate(buffer_unmap); + } + + if (methods.FirstOrDefault(m => m.Name == "BufferUnmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_unmap"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_unmap_static_delegate) }); + } + + if (efl_gfx_buffer_copy_set_static_delegate == null) + { + efl_gfx_buffer_copy_set_static_delegate = new efl_gfx_buffer_copy_set_delegate(buffer_copy_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBufferCopy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_copy_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_copy_set_static_delegate) }); + } + + if (efl_gfx_buffer_managed_set_static_delegate == null) + { + efl_gfx_buffer_managed_set_static_delegate = new efl_gfx_buffer_managed_set_delegate(buffer_managed_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBufferManaged") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_managed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_managed_set_static_delegate) }); + } + + if (efl_gfx_buffer_managed_get_static_delegate == null) + { + efl_gfx_buffer_managed_get_static_delegate = new efl_gfx_buffer_managed_get_delegate(buffer_managed_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBufferManaged") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_buffer_managed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_buffer_managed_get_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.Gfx.IBufferConcrete.efl_gfx_buffer_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.Size2D.NativeStruct efl_gfx_buffer_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_buffer_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_size_get"); + + private static Eina.Size2D.NativeStruct buffer_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_buffer_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IBuffer)wrapper).GetBufferSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_buffer_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_buffer_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_buffer_size_get_delegate efl_gfx_buffer_size_get_static_delegate; + private static efl_gfx_buffer_size_get_delegate efl_gfx_buffer_size_get_static_delegate; - private delegate void efl_gfx_buffer_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + private delegate void efl_gfx_buffer_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + public delegate void efl_gfx_buffer_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public delegate void efl_gfx_buffer_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_size_set"); - private static void buffer_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_buffer_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_size_set"); + + private static void buffer_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_buffer_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; - try { - ((IBuffer)wrapper).SetBufferSize( _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_buffer_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + try + { + ((IBuffer)wrapper).SetBufferSize(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_buffer_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + } } - } - private static efl_gfx_buffer_size_set_delegate efl_gfx_buffer_size_set_static_delegate; + private static efl_gfx_buffer_size_set_delegate efl_gfx_buffer_size_set_static_delegate; - private delegate Efl.Gfx.Colorspace efl_gfx_buffer_colorspace_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Gfx.Colorspace efl_gfx_buffer_colorspace_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Gfx.Colorspace efl_gfx_buffer_colorspace_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_colorspace_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_colorspace_get"); + + private static Efl.Gfx.Colorspace colorspace_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_buffer_colorspace_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.Colorspace _ret_var = default(Efl.Gfx.Colorspace); + try + { + _ret_var = ((IBuffer)wrapper).GetColorspace(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Gfx.Colorspace efl_gfx_buffer_colorspace_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_colorspace_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_colorspace_get"); - private static Efl.Gfx.Colorspace colorspace_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_buffer_colorspace_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.Colorspace _ret_var = default(Efl.Gfx.Colorspace); - try { - _ret_var = ((IBuffer)wrapper).GetColorspace(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_buffer_colorspace_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_buffer_colorspace_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_buffer_colorspace_get_delegate efl_gfx_buffer_colorspace_get_static_delegate; + private static efl_gfx_buffer_colorspace_get_delegate efl_gfx_buffer_colorspace_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_buffer_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_buffer_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_buffer_alpha_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_alpha_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_alpha_get"); + + private static bool alpha_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_buffer_alpha_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IBuffer)wrapper).GetAlpha(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_buffer_alpha_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_alpha_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_alpha_get"); - private static bool alpha_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_buffer_alpha_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IBuffer)wrapper).GetAlpha(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_buffer_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_buffer_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_buffer_alpha_get_delegate efl_gfx_buffer_alpha_get_static_delegate; + private static efl_gfx_buffer_alpha_get_delegate efl_gfx_buffer_alpha_get_static_delegate; - private delegate void efl_gfx_buffer_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool alpha); + + private delegate void efl_gfx_buffer_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool alpha); + + public delegate void efl_gfx_buffer_alpha_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool alpha); - public delegate void efl_gfx_buffer_alpha_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool alpha); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_alpha_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_alpha_set"); - private static void alpha_set(System.IntPtr obj, System.IntPtr pd, bool alpha) - { - Eina.Log.Debug("function efl_gfx_buffer_alpha_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IBuffer)wrapper).SetAlpha( alpha); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_buffer_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), alpha); + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_alpha_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_alpha_set"); + + private static void alpha_set(System.IntPtr obj, System.IntPtr pd, bool alpha) + { + Eina.Log.Debug("function efl_gfx_buffer_alpha_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IBuffer)wrapper).SetAlpha(alpha); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_buffer_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), alpha); + } } - } - private static efl_gfx_buffer_alpha_set_delegate efl_gfx_buffer_alpha_set_static_delegate; + private static efl_gfx_buffer_alpha_set_delegate efl_gfx_buffer_alpha_set_static_delegate; - private delegate int efl_gfx_buffer_stride_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_gfx_buffer_stride_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_gfx_buffer_stride_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_stride_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_stride_get"); + + private static int stride_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_buffer_stride_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IBuffer)wrapper).GetStride(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_gfx_buffer_stride_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_stride_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_stride_get"); - private static int stride_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_buffer_stride_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IBuffer)wrapper).GetStride(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_buffer_stride_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_buffer_stride_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_buffer_stride_get_delegate efl_gfx_buffer_stride_get_static_delegate; + private static efl_gfx_buffer_stride_get_delegate efl_gfx_buffer_stride_get_static_delegate; - private delegate void efl_gfx_buffer_borders_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint l, out uint r, out uint t, out uint b); + + private delegate void efl_gfx_buffer_borders_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint l, out uint r, out uint t, out uint b); + + public delegate void efl_gfx_buffer_borders_get_api_delegate(System.IntPtr obj, out uint l, out uint r, out uint t, out uint b); - public delegate void efl_gfx_buffer_borders_get_api_delegate(System.IntPtr obj, out uint l, out uint r, out uint t, out uint b); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_borders_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_borders_get"); - private static void buffer_borders_get(System.IntPtr obj, System.IntPtr pd, out uint l, out uint r, out uint t, out uint b) - { - Eina.Log.Debug("function efl_gfx_buffer_borders_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(uint); r = default(uint); t = default(uint); b = default(uint); - try { - ((IBuffer)wrapper).GetBufferBorders( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_buffer_borders_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_borders_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_borders_get"); + + private static void buffer_borders_get(System.IntPtr obj, System.IntPtr pd, out uint l, out uint r, out uint t, out uint b) + { + Eina.Log.Debug("function efl_gfx_buffer_borders_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(uint); r = default(uint); t = default(uint); b = default(uint); + try + { + ((IBuffer)wrapper).GetBufferBorders(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_buffer_borders_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + } } - } - private static efl_gfx_buffer_borders_get_delegate efl_gfx_buffer_borders_get_static_delegate; + private static efl_gfx_buffer_borders_get_delegate efl_gfx_buffer_borders_get_static_delegate; - private delegate void efl_gfx_buffer_update_add_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Rect.NativeStruct region); + + private delegate void efl_gfx_buffer_update_add_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Rect.NativeStruct region); + + public delegate void efl_gfx_buffer_update_add_api_delegate(System.IntPtr obj, ref Eina.Rect.NativeStruct region); - public delegate void efl_gfx_buffer_update_add_api_delegate(System.IntPtr obj, ref Eina.Rect.NativeStruct region); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_update_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_update_add"); - private static void buffer_update_add(System.IntPtr obj, System.IntPtr pd, ref Eina.Rect.NativeStruct region) - { - Eina.Log.Debug("function efl_gfx_buffer_update_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_region = region; + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_update_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_update_add"); + + private static void buffer_update_add(System.IntPtr obj, System.IntPtr pd, ref Eina.Rect.NativeStruct region) + { + Eina.Log.Debug("function efl_gfx_buffer_update_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_region = region; - try { - ((IBuffer)wrapper).AddBufferUpdate( ref _in_region); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((IBuffer)wrapper).AddBufferUpdate(ref _in_region); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + region = _in_region; - } else { - efl_gfx_buffer_update_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref region); + + } + else + { + efl_gfx_buffer_update_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref region); + } } - } - private static efl_gfx_buffer_update_add_delegate efl_gfx_buffer_update_add_static_delegate; + private static efl_gfx_buffer_update_add_delegate efl_gfx_buffer_update_add_static_delegate; - private delegate Eina.RwSlice efl_gfx_buffer_map_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride); + + private delegate Eina.RwSlice efl_gfx_buffer_map_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride); + + public delegate Eina.RwSlice efl_gfx_buffer_map_api_delegate(System.IntPtr obj, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride); - public delegate Eina.RwSlice efl_gfx_buffer_map_api_delegate(System.IntPtr obj, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_map_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_map"); - private static Eina.RwSlice buffer_map(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride) - { - Eina.Log.Debug("function efl_gfx_buffer_map was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_region = region; + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_map_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_map"); + + private static Eina.RwSlice buffer_map(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BufferAccessMode mode, ref Eina.Rect.NativeStruct region, Efl.Gfx.Colorspace cspace, int plane, out int stride) + { + Eina.Log.Debug("function efl_gfx_buffer_map was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_region = region; stride = default(int); Eina.RwSlice _ret_var = default(Eina.RwSlice); - try { - _ret_var = ((IBuffer)wrapper).BufferMap( mode, ref _in_region, cspace, plane, out stride); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IBuffer)wrapper).BufferMap(mode, ref _in_region, cspace, plane, out stride); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + region = _in_region; return _ret_var; - } else { - return efl_gfx_buffer_map_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode, ref region, cspace, plane, out stride); + + } + else + { + return efl_gfx_buffer_map_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode, ref region, cspace, plane, out stride); + } } - } - private static efl_gfx_buffer_map_delegate efl_gfx_buffer_map_static_delegate; + private static efl_gfx_buffer_map_delegate efl_gfx_buffer_map_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_buffer_unmap_delegate(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_buffer_unmap_delegate(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_buffer_unmap_api_delegate(System.IntPtr obj, Eina.RwSlice slice); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_unmap_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_unmap"); + + private static bool buffer_unmap(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice) + { + Eina.Log.Debug("function efl_gfx_buffer_unmap was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IBuffer)wrapper).BufferUnmap(slice); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_buffer_unmap_api_delegate(System.IntPtr obj, Eina.RwSlice slice); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_unmap_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_unmap"); - private static bool buffer_unmap(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice) - { - Eina.Log.Debug("function efl_gfx_buffer_unmap was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IBuffer)wrapper).BufferUnmap( slice); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_buffer_unmap_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice); + + } + else + { + return efl_gfx_buffer_unmap_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice); + } } - } - private static efl_gfx_buffer_unmap_delegate efl_gfx_buffer_unmap_static_delegate; + private static efl_gfx_buffer_unmap_delegate efl_gfx_buffer_unmap_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_buffer_copy_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_buffer_copy_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_buffer_copy_set_api_delegate(System.IntPtr obj, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_buffer_copy_set_api_delegate(System.IntPtr obj, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_copy_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_copy_set"); - private static bool buffer_copy_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane) - { - Eina.Log.Debug("function efl_gfx_buffer_copy_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_slice = Eina.PrimitiveConversion.PointerToManaged(slice); + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_copy_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_copy_set"); + + private static bool buffer_copy_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane) + { + Eina.Log.Debug("function efl_gfx_buffer_copy_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_slice = Eina.PrimitiveConversion.PointerToManaged(slice); Eina.Size2D _in_size = size; bool _ret_var = default(bool); - try { - _ret_var = ((IBuffer)wrapper).SetBufferCopy( _in_slice, _in_size, stride, cspace, plane); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IBuffer)wrapper).SetBufferCopy(_in_slice, _in_size, stride, cspace, plane); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_buffer_copy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice, size, stride, cspace, plane); + + } + else + { + return efl_gfx_buffer_copy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice, size, stride, cspace, plane); + } } - } - private static efl_gfx_buffer_copy_set_delegate efl_gfx_buffer_copy_set_static_delegate; + private static efl_gfx_buffer_copy_set_delegate efl_gfx_buffer_copy_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_buffer_managed_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_buffer_managed_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_buffer_managed_set_api_delegate(System.IntPtr obj, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_buffer_managed_set_api_delegate(System.IntPtr obj, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_managed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_managed_set"); - private static bool buffer_managed_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane) - { - Eina.Log.Debug("function efl_gfx_buffer_managed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_slice = Eina.PrimitiveConversion.PointerToManaged(slice); + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_managed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_managed_set"); + + private static bool buffer_managed_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr slice, Eina.Size2D.NativeStruct size, int stride, Efl.Gfx.Colorspace cspace, int plane) + { + Eina.Log.Debug("function efl_gfx_buffer_managed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_slice = Eina.PrimitiveConversion.PointerToManaged(slice); Eina.Size2D _in_size = size; bool _ret_var = default(bool); - try { - _ret_var = ((IBuffer)wrapper).SetBufferManaged( _in_slice, _in_size, stride, cspace, plane); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IBuffer)wrapper).SetBufferManaged(_in_slice, _in_size, stride, cspace, plane); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_buffer_managed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice, size, stride, cspace, plane); + + } + else + { + return efl_gfx_buffer_managed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice, size, stride, cspace, plane); + } } - } - private static efl_gfx_buffer_managed_set_delegate efl_gfx_buffer_managed_set_static_delegate; + private static efl_gfx_buffer_managed_set_delegate efl_gfx_buffer_managed_set_static_delegate; - private delegate Eina.Slice efl_gfx_buffer_managed_get_delegate(System.IntPtr obj, System.IntPtr pd, int plane); + + private delegate Eina.Slice efl_gfx_buffer_managed_get_delegate(System.IntPtr obj, System.IntPtr pd, int plane); + + public delegate Eina.Slice efl_gfx_buffer_managed_get_api_delegate(System.IntPtr obj, int plane); + + public static Efl.Eo.FunctionWrapper efl_gfx_buffer_managed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_buffer_managed_get"); + + private static Eina.Slice buffer_managed_get(System.IntPtr obj, System.IntPtr pd, int plane) + { + Eina.Log.Debug("function efl_gfx_buffer_managed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Slice _ret_var = default(Eina.Slice); + try + { + _ret_var = ((IBuffer)wrapper).GetBufferManaged(plane); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Slice efl_gfx_buffer_managed_get_api_delegate(System.IntPtr obj, int plane); - public static Efl.Eo.FunctionWrapper efl_gfx_buffer_managed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_buffer_managed_get"); - private static Eina.Slice buffer_managed_get(System.IntPtr obj, System.IntPtr pd, int plane) - { - Eina.Log.Debug("function efl_gfx_buffer_managed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Slice _ret_var = default(Eina.Slice); - try { - _ret_var = ((IBuffer)wrapper).GetBufferManaged( plane); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_buffer_managed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), plane); + + } + else + { + return efl_gfx_buffer_managed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), plane); + } } - } - private static efl_gfx_buffer_managed_get_delegate efl_gfx_buffer_managed_get_static_delegate; + + private static efl_gfx_buffer_managed_get_delegate efl_gfx_buffer_managed_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } -namespace Efl { namespace Gfx { +} + +} + +namespace Efl { + +namespace Gfx { + /// Graphics buffer access mode public enum BufferAccessMode { @@ -795,4 +1062,8 @@ Write = 2, /// Forces copy-on-write if already mapped as read-only. Requires write. Cow = 4, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_color.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_color.eo.cs index fe70fb8..ce4f9d0 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_color.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_color.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Efl Gfx Color mixin class /// (Since EFL 1.22) -[IColorNativeInherit] +[Efl.Gfx.IColorConcrete.NativeMethods] public interface IColor : Efl.Eo.IWrapper, IDisposable { @@ -20,23 +24,13 @@ public interface IColor : /// /// Use null pointers on the components you're not interested in: they'll be ignored by the function. /// (Since EFL 1.22) -/// -/// -/// -/// -/// -void GetColor( out int r, out int g, out int b, out int a); +void GetColor(out int r, out int g, out int b, out int a); /// Sets the general/main color of the given Evas object to the given one. /// See also (for an example) /// /// These color values are expected to be premultiplied by alpha. /// (Since EFL 1.22) -/// -/// -/// -/// -/// -void SetColor( int r, int g, int b, int a); +void SetColor(int r, int g, int b, int a); /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. @@ -44,8 +38,7 @@ System.String GetColorCode(); /// Set the color of given Evas object to the given hex color code(#RRGGBBAA). e.g. efl_gfx_color_code_set(obj, "#FFCCAACC"); /// (Since EFL 1.22) /// the hex color code. -/// -void SetColorCode( System.String colorcode); +void SetColorCode(System.String colorcode); /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. @@ -62,68 +55,103 @@ IColor { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IColorConcrete)) - return Efl.Gfx.IColorNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IColorConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_color_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IColorConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IColorConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Retrieves the general/main color of the given Evas object. /// Retrieves the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value. /// @@ -133,13 +161,8 @@ IColor /// /// Use null pointers on the components you're not interested in: they'll be ignored by the function. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - public void GetColor( out int r, out int g, out int b, out int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetColor(out int r, out int g, out int b, out int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Sets the general/main color of the given Evas object to the given one. @@ -147,29 +170,23 @@ IColor /// /// These color values are expected to be premultiplied by alpha. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - public void SetColor( int r, int g, int b, int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetColor(int r, int g, int b, int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. public System.String GetColorCode() { - var _ret_var = Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the color of given Evas object to the given hex color code(#RRGGBBAA). e.g. efl_gfx_color_code_set(obj, "#FFCCAACC"); /// (Since EFL 1.22) /// the hex color code. - /// - public void SetColorCode( System.String colorcode) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_set_ptr.Value.Delegate(this.NativeHandle, colorcode); + public void SetColorCode(System.String colorcode) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_set_ptr.Value.Delegate(this.NativeHandle,colorcode); Eina.Error.RaiseIfUnhandledException(); } /// Get hex color code of given Evas object. This returns a short lived hex color code string. @@ -177,141 +194,221 @@ IColor /// the hex color code. public System.String ColorCode { get { return GetColorCode(); } - set { SetColorCode( value); } + set { SetColorCode(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IColorConcrete.efl_gfx_color_mixin_get(); } -} -public class IColorNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_color_get_static_delegate == null) - efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); - if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate)}); - if (efl_gfx_color_set_static_delegate == null) - efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); - if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate)}); - if (efl_gfx_color_code_get_static_delegate == null) - efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate)}); - if (efl_gfx_color_code_set_static_delegate == null) - efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); - if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IColorConcrete.efl_gfx_color_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Gfx.IColorConcrete.efl_gfx_color_mixin_get(); - } + 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_gfx_color_get_static_delegate == null) + { + efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); + } - private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate) }); + } + if (efl_gfx_color_set_static_delegate == null) + { + efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); + } - public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_get"); - private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); - try { - ((IColorConcrete)wrapper).GetColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate) }); + } + + if (efl_gfx_color_code_get_static_delegate == null) + { + efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); } - } else { - efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + + if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate) }); + } + + if (efl_gfx_color_code_set_static_delegate == null) + { + efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_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.Gfx.IColorConcrete.efl_gfx_color_mixin_get(); } - } - private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + + private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + + public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); - public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_set"); - private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IColorConcrete)wrapper).SetColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_get"); + + private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); + try + { + ((IColorConcrete)wrapper).GetColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); } - } else { - efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); } - } - private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; + private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + + public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_get"); - private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_color_code_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IColorConcrete)wrapper).GetColorCode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_set"); + + private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IColorConcrete)wrapper).SetColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_get"); + + private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_color_code_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IColorConcrete)wrapper).GetColorCode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; + private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; - private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); - public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_set"); - private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) - { - Eina.Log.Debug("function efl_gfx_color_code_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IColorConcrete)wrapper).SetColorCode( colorcode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_set"); + + private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) + { + Eina.Log.Debug("function efl_gfx_color_code_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IColorConcrete)wrapper).SetColorCode(colorcode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); } - } else { - efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); } - } - private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; + + private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_color_class.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_color_class.eo.cs index 1e657fe..bc8f3ce 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_color_class.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_color_class.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Efl Gfx Color Class mixin class -[IColorClassNativeInherit] +[Efl.Gfx.IColorClassConcrete.NativeMethods] public interface IColorClass : Efl.Eo.IWrapper, IDisposable { @@ -23,7 +27,7 @@ public interface IColorClass : /// The intensity of the blue color /// The alpha value /// true if getting the color succeeded, false otherwise -bool GetColorClass( System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a); +bool GetColorClass(System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a); /// Set the color of color class. /// This function sets the color values for a color class. This will cause all edje parts in the specified object that have the specified color class to have their colors multiplied by these values. /// @@ -39,7 +43,7 @@ bool GetColorClass( System.String color_class, Efl.Gfx.ColorClassLayer layer, /// The intensity of the blue color /// The alpha value /// true if setting the color succeeded, false otherwise -bool SetColorClass( System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a); +bool SetColorClass(System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a); /// Get the hex color string of color class. /// This function gets the color values for a color class. If no explicit object color is set, then global values will be used. /// @@ -51,7 +55,7 @@ bool SetColorClass( System.String color_class, Efl.Gfx.ColorClassLayer layer, /// The name of color class /// The layer to set the color /// the hex color code. -System.String GetColorClassCode( System.String color_class, Efl.Gfx.ColorClassLayer layer); +System.String GetColorClassCode(System.String color_class, Efl.Gfx.ColorClassLayer layer); /// Set the hex color string of color class. /// This function sets the color values for a color class. This will cause all edje parts in the specified object that have the specified color class to have their colors multiplied by these values. /// @@ -64,12 +68,12 @@ System.String GetColorClassCode( System.String color_class, Efl.Gfx.ColorClassL /// The layer to set the color /// the hex color code. /// true if setting the color succeeded, false otherwise -bool SetColorClassCode( System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode); +bool SetColorClassCode(System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode); /// Get the description of a color class. /// This function gets the description of a color class in use by an object. /// The name of color class /// The description of the target color class or null if not found -System.String GetColorClassDescription( System.String color_class); +System.String GetColorClassDescription(System.String color_class); /// Delete the color class. /// This function deletes any values for the specified color class. /// @@ -77,11 +81,9 @@ System.String GetColorClassDescription( System.String color_class); /// /// Deleting the color class will emit the signal "color_class,del" for the given Edje object. /// The name of color_class -/// -void DelColorClass( System.String color_class); +void DelColorClass(System.String color_class); /// Delete all color classes defined in object level. /// This function deletes any color classes defined in object level. Clearing color classes will revert the color of all edje parts to the values defined in global level or theme file. -/// void ClearColorClass(); } /// Efl Gfx Color Class mixin class @@ -91,68 +93,103 @@ IColorClass { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IColorClassConcrete)) - return Efl.Gfx.IColorClassNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IColorClassConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_color_class_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IColorClassConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IColorClassConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Get the color of color class. /// This function gets the color values for a color class. If no explicit object color is set, then global values will be used. /// @@ -166,8 +203,8 @@ IColorClass /// The intensity of the blue color /// The alpha value /// true if getting the color succeeded, false otherwise - public bool GetColorClass( System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a) { - var _ret_var = Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_get_ptr.Value.Delegate(this.NativeHandle, color_class, layer, out r, out g, out b, out a); + public bool GetColorClass(System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a) { + var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_get_ptr.Value.Delegate(this.NativeHandle,color_class, layer, out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -186,8 +223,8 @@ IColorClass /// The intensity of the blue color /// The alpha value /// true if setting the color succeeded, false otherwise - public bool SetColorClass( System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a) { - var _ret_var = Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_set_ptr.Value.Delegate(this.NativeHandle, color_class, layer, r, g, b, a); + public bool SetColorClass(System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a) { + var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_set_ptr.Value.Delegate(this.NativeHandle,color_class, layer, r, g, b, a); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -202,8 +239,8 @@ IColorClass /// The name of color class /// The layer to set the color /// the hex color code. - public System.String GetColorClassCode( System.String color_class, Efl.Gfx.ColorClassLayer layer) { - var _ret_var = Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_code_get_ptr.Value.Delegate(this.NativeHandle, color_class, layer); + public System.String GetColorClassCode(System.String color_class, Efl.Gfx.ColorClassLayer layer) { + var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_code_get_ptr.Value.Delegate(this.NativeHandle,color_class, layer); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -219,8 +256,8 @@ IColorClass /// The layer to set the color /// the hex color code. /// true if setting the color succeeded, false otherwise - public bool SetColorClassCode( System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) { - var _ret_var = Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_code_set_ptr.Value.Delegate(this.NativeHandle, color_class, layer, colorcode); + public bool SetColorClassCode(System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) { + var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_code_set_ptr.Value.Delegate(this.NativeHandle,color_class, layer, colorcode); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -228,8 +265,8 @@ IColorClass /// This function gets the description of a color class in use by an object. /// The name of color class /// The description of the target color class or null if not found - public System.String GetColorClassDescription( System.String color_class) { - var _ret_var = Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_description_get_ptr.Value.Delegate(this.NativeHandle, color_class); + public System.String GetColorClassDescription(System.String color_class) { + var _ret_var = Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_description_get_ptr.Value.Delegate(this.NativeHandle,color_class); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -240,239 +277,368 @@ IColorClass /// /// Deleting the color class will emit the signal "color_class,del" for the given Edje object. /// The name of color_class - /// - public void DelColorClass( System.String color_class) { - Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_del_ptr.Value.Delegate(this.NativeHandle, color_class); + public void DelColorClass(System.String color_class) { + Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_del_ptr.Value.Delegate(this.NativeHandle,color_class); Eina.Error.RaiseIfUnhandledException(); } /// Delete all color classes defined in object level. /// This function deletes any color classes defined in object level. Clearing color classes will revert the color of all edje parts to the values defined in global level or theme file. - /// public void ClearColorClass() { - Efl.Gfx.IColorClassNativeInherit.efl_gfx_color_class_clear_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IColorClassConcrete.NativeMethods.efl_gfx_color_class_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IColorClassConcrete.efl_gfx_color_class_mixin_get(); } -} -public class IColorClassNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_color_class_get_static_delegate == null) - efl_gfx_color_class_get_static_delegate = new efl_gfx_color_class_get_delegate(color_class_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_get_static_delegate)}); - if (efl_gfx_color_class_set_static_delegate == null) - efl_gfx_color_class_set_static_delegate = new efl_gfx_color_class_set_delegate(color_class_set); - if (methods.FirstOrDefault(m => m.Name == "SetColorClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_set_static_delegate)}); - if (efl_gfx_color_class_code_get_static_delegate == null) - efl_gfx_color_class_code_get_static_delegate = new efl_gfx_color_class_code_get_delegate(color_class_code_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorClassCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_code_get_static_delegate)}); - if (efl_gfx_color_class_code_set_static_delegate == null) - efl_gfx_color_class_code_set_static_delegate = new efl_gfx_color_class_code_set_delegate(color_class_code_set); - if (methods.FirstOrDefault(m => m.Name == "SetColorClassCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_code_set_static_delegate)}); - if (efl_gfx_color_class_description_get_static_delegate == null) - efl_gfx_color_class_description_get_static_delegate = new efl_gfx_color_class_description_get_delegate(color_class_description_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorClassDescription") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_description_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_description_get_static_delegate)}); - if (efl_gfx_color_class_del_static_delegate == null) - efl_gfx_color_class_del_static_delegate = new efl_gfx_color_class_del_delegate(color_class_del); - if (methods.FirstOrDefault(m => m.Name == "DelColorClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_del_static_delegate)}); - if (efl_gfx_color_class_clear_static_delegate == null) - efl_gfx_color_class_clear_static_delegate = new efl_gfx_color_class_clear_delegate(color_class_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearColorClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_class_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_clear_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IColorClassConcrete.efl_gfx_color_class_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IColorClassConcrete.efl_gfx_color_class_mixin_get(); - } + 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_gfx_color_class_get_static_delegate == null) + { + efl_gfx_color_class_get_static_delegate = new efl_gfx_color_class_get_delegate(color_class_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_color_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a); + if (methods.FirstOrDefault(m => m.Name == "GetColorClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_get_static_delegate) }); + } + if (efl_gfx_color_class_set_static_delegate == null) + { + efl_gfx_color_class_set_static_delegate = new efl_gfx_color_class_set_delegate(color_class_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_color_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_get"); - private static bool color_class_get(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_color_class_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((IColorClassConcrete)wrapper).GetColorClass( color_class, layer, out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetColorClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_set_static_delegate) }); + } + + if (efl_gfx_color_class_code_get_static_delegate == null) + { + efl_gfx_color_class_code_get_static_delegate = new efl_gfx_color_class_code_get_delegate(color_class_code_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetColorClassCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_code_get_static_delegate) }); + } + + if (efl_gfx_color_class_code_set_static_delegate == null) + { + efl_gfx_color_class_code_set_static_delegate = new efl_gfx_color_class_code_set_delegate(color_class_code_set); } - return _ret_var; - } else { - return efl_gfx_color_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, out r, out g, out b, out a); - } - } - private static efl_gfx_color_class_get_delegate efl_gfx_color_class_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetColorClassCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_code_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_color_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a); + if (efl_gfx_color_class_description_get_static_delegate == null) + { + efl_gfx_color_class_description_get_static_delegate = new efl_gfx_color_class_description_get_delegate(color_class_description_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetColorClassDescription") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_description_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_description_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_color_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_set"); - private static bool color_class_set(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_color_class_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IColorClassConcrete)wrapper).SetColorClass( color_class, layer, r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_color_class_del_static_delegate == null) + { + efl_gfx_color_class_del_static_delegate = new efl_gfx_color_class_del_delegate(color_class_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelColorClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_del_static_delegate) }); + } + + if (efl_gfx_color_class_clear_static_delegate == null) + { + efl_gfx_color_class_clear_static_delegate = new efl_gfx_color_class_clear_delegate(color_class_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearColorClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_class_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_class_clear_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.Gfx.IColorClassConcrete.efl_gfx_color_class_mixin_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_color_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_color_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_get"); + + private static bool color_class_get(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_color_class_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((IColorClassConcrete)wrapper).GetColorClass(color_class, layer, out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_color_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, r, g, b, a); + + } + else + { + return efl_gfx_color_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, out r, out g, out b, out a); + } } - } - private static efl_gfx_color_class_set_delegate efl_gfx_color_class_set_static_delegate; + private static efl_gfx_color_class_get_delegate efl_gfx_color_class_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_gfx_color_class_code_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_color_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_color_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_set"); + + private static bool color_class_set(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_color_class_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IColorClassConcrete)wrapper).SetColorClass(color_class, layer, r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_gfx_color_class_code_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_code_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_code_get"); - private static System.String color_class_code_get(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer) - { - Eina.Log.Debug("function efl_gfx_color_class_code_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IColorClassConcrete)wrapper).GetColorClassCode( color_class, layer); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_color_class_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer); + else + { + return efl_gfx_color_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, r, g, b, a); + } } - } - private static efl_gfx_color_class_code_get_delegate efl_gfx_color_class_code_get_static_delegate; + private static efl_gfx_color_class_set_delegate efl_gfx_color_class_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_color_class_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_gfx_color_class_code_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_gfx_color_class_code_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_code_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_code_get"); + + private static System.String color_class_code_get(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer) + { + Eina.Log.Debug("function efl_gfx_color_class_code_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IColorClassConcrete)wrapper).GetColorClassCode(color_class, layer); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_color_class_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_code_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_code_set"); - private static bool color_class_code_set(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) - { - Eina.Log.Debug("function efl_gfx_color_class_code_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IColorClassConcrete)wrapper).SetColorClassCode( color_class, layer, colorcode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_color_class_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, colorcode); + else + { + return efl_gfx_color_class_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer); + } } - } - private static efl_gfx_color_class_code_set_delegate efl_gfx_color_class_code_set_static_delegate; + private static efl_gfx_color_class_code_get_delegate efl_gfx_color_class_code_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_gfx_color_class_description_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_color_class_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_color_class_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class, Efl.Gfx.ColorClassLayer layer, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_code_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_code_set"); + + private static bool color_class_code_set(System.IntPtr obj, System.IntPtr pd, System.String color_class, Efl.Gfx.ColorClassLayer layer, System.String colorcode) + { + Eina.Log.Debug("function efl_gfx_color_class_code_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IColorClassConcrete)wrapper).SetColorClassCode(color_class, layer, colorcode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_gfx_color_class_description_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_description_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_description_get"); - private static System.String color_class_description_get(System.IntPtr obj, System.IntPtr pd, System.String color_class) - { - Eina.Log.Debug("function efl_gfx_color_class_description_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IColorClassConcrete)wrapper).GetColorClassDescription( color_class); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_color_class_description_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class); + else + { + return efl_gfx_color_class_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class, layer, colorcode); + } } - } - private static efl_gfx_color_class_description_get_delegate efl_gfx_color_class_description_get_static_delegate; + private static efl_gfx_color_class_code_set_delegate efl_gfx_color_class_code_set_static_delegate; - private delegate void efl_gfx_color_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_gfx_color_class_description_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_gfx_color_class_description_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); - public delegate void efl_gfx_color_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_del"); - private static void color_class_del(System.IntPtr obj, System.IntPtr pd, System.String color_class) - { - Eina.Log.Debug("function efl_gfx_color_class_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IColorClassConcrete)wrapper).DelColorClass( color_class); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class); + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_description_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_description_get"); + + private static System.String color_class_description_get(System.IntPtr obj, System.IntPtr pd, System.String color_class) + { + Eina.Log.Debug("function efl_gfx_color_class_description_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IColorClassConcrete)wrapper).GetColorClassDescription(color_class); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_color_class_description_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class); + } } - } - private static efl_gfx_color_class_del_delegate efl_gfx_color_class_del_static_delegate; + private static efl_gfx_color_class_description_get_delegate efl_gfx_color_class_description_get_static_delegate; - private delegate void efl_gfx_color_class_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_color_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); + + public delegate void efl_gfx_color_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String color_class); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_del"); + + private static void color_class_del(System.IntPtr obj, System.IntPtr pd, System.String color_class) + { + Eina.Log.Debug("function efl_gfx_color_class_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IColorClassConcrete)wrapper).DelColorClass(color_class); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_color_class_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_color_class_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_class_clear"); - private static void color_class_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_color_class_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IColorClassConcrete)wrapper).ClearColorClass(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_class_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_gfx_color_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), color_class); + } } - } - private static efl_gfx_color_class_clear_delegate efl_gfx_color_class_clear_static_delegate; + + private static efl_gfx_color_class_del_delegate efl_gfx_color_class_del_static_delegate; + + + private delegate void efl_gfx_color_class_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_color_class_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_class_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_class_clear"); + + private static void color_class_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_color_class_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IColorClassConcrete)wrapper).ClearColorClass(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_class_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_color_class_clear_delegate efl_gfx_color_class_clear_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_entity.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_entity.eo.cs index d5f0553..b262058 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_entity.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_entity.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Efl graphics interface /// (Since EFL 1.22) -[IEntityNativeInherit] +[Efl.Gfx.IEntityConcrete.NativeMethods] public interface IEntity : Efl.Eo.IWrapper, IDisposable { @@ -18,8 +22,7 @@ Eina.Position2D GetPosition(); /// Moves the given canvas object to the given location inside its canvas' viewport. If unchanged this call may be entirely skipped, but if changed this will trigger move events, as well as potential pointer,in or pointer,out events. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. -/// -void SetPosition( Eina.Position2D pos); +void SetPosition(Eina.Position2D pos); /// Retrieves the (rectangular) size of the given Evas object. /// (Since EFL 1.22) /// A 2D size in pixel units. @@ -28,8 +31,7 @@ Eina.Size2D GetSize(); /// Note that setting the actual size of an object might be the job of its container, so this function might have no effect. Look at instead, when manipulating widgets. /// (Since EFL 1.22) /// A 2D size in pixel units. -/// -void SetSize( Eina.Size2D size); +void SetSize(Eina.Size2D size); /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. @@ -37,8 +39,7 @@ Eina.Rect GetGeometry(); /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. -/// -void SetGeometry( Eina.Rect rect); +void SetGeometry(Eina.Rect rect); /// Retrieves whether or not the given canvas object is visible. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise @@ -46,8 +47,7 @@ bool GetVisible(); /// Shows or hides this object. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise -/// -void SetVisible( bool v); +void SetVisible(bool v); /// Gets an object's scaling factor. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) @@ -55,8 +55,7 @@ double GetScale(); /// Sets the scaling factor of an object. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) -/// -void SetScale( double scale); +void SetScale(double scale); /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) event EventHandler VisibilityChangedEvt; @@ -132,286 +131,384 @@ IEntity { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IEntityConcrete)) - return Efl.Gfx.IEntityNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IEntityConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_entity_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IEntityConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IEntityConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object VisibilityChangedEvtKey = new object(); + /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) public event EventHandler VisibilityChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.AddHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.RemoveHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event VisibilityChangedEvt. - public void On_VisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) + public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[VisibilityChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_VisibilityChangedEvt_delegate; - private void on_VisibilityChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_VisibilityChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PositionChangedEvtKey = new object(); /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) public event EventHandler PositionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.AddHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PositionChangedEvt. - public void On_PositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) + public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PositionChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PositionChangedEvt_delegate; - private void on_PositionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PositionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object SizeChangedEvtKey = new object(); /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) public event EventHandler SizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.AddHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SizeChangedEvt. - public void On_SizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SizeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SizeChangedEvt_delegate; - private void on_SizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { - Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_SizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_VisibilityChangedEvt_delegate = new Efl.EventCb(on_VisibilityChangedEvt_NativeCallback); - evt_PositionChangedEvt_delegate = new Efl.EventCb(on_PositionChangedEvt_NativeCallback); - evt_SizeChangedEvt_delegate = new Efl.EventCb(on_SizeChangedEvt_NativeCallback); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Retrieves the position of the given canvas object. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. public Eina.Position2D GetPosition() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Moves the given canvas object to the given location inside its canvas' viewport. If unchanged this call may be entirely skipped, but if changed this will trigger move events, as well as potential pointer,in or pointer,out events. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. - /// - public void SetPosition( Eina.Position2D pos) { + public void SetPosition(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_set_ptr.Value.Delegate(this.NativeHandle, _in_pos); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_set_ptr.Value.Delegate(this.NativeHandle,_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the (rectangular) size of the given Evas object. /// (Since EFL 1.22) /// A 2D size in pixel units. public Eina.Size2D GetSize() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -419,59 +516,55 @@ private static object SizeChangedEvtKey = new object(); /// Note that setting the actual size of an object might be the job of its container, so this function might have no effect. Look at instead, when manipulating widgets. /// (Since EFL 1.22) /// A 2D size in pixel units. - /// - public void SetSize( Eina.Size2D size) { + public void SetSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_set_ptr.Value.Delegate(this.NativeHandle, _in_size); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_set_ptr.Value.Delegate(this.NativeHandle,_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. public Eina.Rect GetGeometry() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. - /// - public void SetGeometry( Eina.Rect rect) { + public void SetGeometry(Eina.Rect rect) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_set_ptr.Value.Delegate(this.NativeHandle, _in_rect); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_set_ptr.Value.Delegate(this.NativeHandle,_in_rect); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves whether or not the given canvas object is visible. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise public bool GetVisible() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Shows or hides this object. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise - /// - public void SetVisible( bool v) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_set_ptr.Value.Delegate(this.NativeHandle, v); + public void SetVisible(bool v) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_set_ptr.Value.Delegate(this.NativeHandle,v); Eina.Error.RaiseIfUnhandledException(); } /// Gets an object's scaling factor. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) public double GetScale() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the scaling factor of an object. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) - /// - public void SetScale( double scale) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_set_ptr.Value.Delegate(this.NativeHandle, scale); + public void SetScale(double scale) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_set_ptr.Value.Delegate(this.NativeHandle,scale); Eina.Error.RaiseIfUnhandledException(); } /// The 2D position of a canvas object. @@ -480,21 +573,21 @@ private static object SizeChangedEvtKey = new object(); /// A 2D coordinate in pixel units. public Eina.Position2D Position { get { return GetPosition(); } - set { SetPosition( value); } + set { SetPosition(value); } } /// The 2D size of a canvas object. /// (Since EFL 1.22) /// A 2D size in pixel units. public Eina.Size2D Size { get { return GetSize(); } - set { SetSize( value); } + set { SetSize(value); } } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. public Eina.Rect Geometry { get { return GetGeometry(); } - set { SetGeometry( value); } + set { SetGeometry(value); } } /// The visibility of a canvas object. /// All canvas objects will become visible by default just before render. This means that it is not required to call after creating an object unless you want to create it without showing it. Note that this behavior is new since 1.21, and only applies to canvas objects created with the EO API (i.e. not the legacy C-only API). Other types of Gfx objects may or may not be visible by default. @@ -504,7 +597,7 @@ private static object SizeChangedEvtKey = new object(); /// true if to make the object visible, false otherwise public bool Visible { get { return GetVisible(); } - set { SetVisible( value); } + set { SetVisible(value); } } /// The scaling factor of an object. /// This property is an individual scaling factor on the object (Edje or UI widget). This property (or Edje's global scaling factor, when applicable), will affect this object's part sizes. If scale is not zero, than the individual scaling will override any global scaling set, for the object obj's parts. Set it back to zero to get the effects of the global scaling again. @@ -514,316 +607,498 @@ private static object SizeChangedEvtKey = new object(); /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) public double Scale { get { return GetScale(); } - set { SetScale( value); } + set { SetScale(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IEntityConcrete.efl_gfx_entity_interface_get(); } -} -public class IEntityNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_entity_position_get_static_delegate == null) - efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate)}); - if (efl_gfx_entity_position_set_static_delegate == null) - efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate)}); - if (efl_gfx_entity_size_get_static_delegate == null) - efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); - if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate)}); - if (efl_gfx_entity_size_set_static_delegate == null) - efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); - if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate)}); - if (efl_gfx_entity_geometry_get_static_delegate == null) - efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate)}); - if (efl_gfx_entity_geometry_set_static_delegate == null) - efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); - if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate)}); - if (efl_gfx_entity_visible_get_static_delegate == null) - efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); - if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate)}); - if (efl_gfx_entity_visible_set_static_delegate == null) - efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); - if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate)}); - if (efl_gfx_entity_scale_get_static_delegate == null) - efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate)}); - if (efl_gfx_entity_scale_set_static_delegate == null) - efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IEntityConcrete.efl_gfx_entity_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IEntityConcrete.efl_gfx_entity_interface_get(); - } + 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_gfx_entity_position_get_static_delegate == null) + { + efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); + } - private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate) }); + } + if (efl_gfx_entity_position_set_static_delegate == null) + { + efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); + } - public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_get"); - private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((IEntity)wrapper).GetPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate) }); + } + + if (efl_gfx_entity_size_get_static_delegate == null) + { + efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate) }); + } + + if (efl_gfx_entity_size_set_static_delegate == null) + { + efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate) }); + } + + if (efl_gfx_entity_geometry_get_static_delegate == null) + { + efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate) }); + } + + if (efl_gfx_entity_geometry_set_static_delegate == null) + { + efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate) }); + } + + if (efl_gfx_entity_visible_get_static_delegate == null) + { + efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate) }); + } + + if (efl_gfx_entity_visible_set_static_delegate == null) + { + efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate) }); + } + + if (efl_gfx_entity_scale_get_static_delegate == null) + { + efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate) }); } + + if (efl_gfx_entity_scale_set_static_delegate == null) + { + efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_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.Gfx.IEntityConcrete.efl_gfx_entity_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_get"); + + private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((IEntity)wrapper).GetPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; + private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; - private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_set"); - private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_gfx_entity_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_set"); + + private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_gfx_entity_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; - try { - ((IEntity)wrapper).SetPosition( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IEntity)wrapper).SetPosition(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - } else { - efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - } - private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; + private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_get"); + + private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IEntity)wrapper).GetSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_get"); - private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IEntity)wrapper).GetSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; + private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; - private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_set"); - private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_entity_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_set"); + + private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_entity_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; - try { - ((IEntity)wrapper).SetSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IEntity)wrapper).SetSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - } else { - efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - } - private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; + private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; - private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_get"); + + private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((IEntity)wrapper).GetGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_get"); - private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((IEntity)wrapper).GetGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; + private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; - private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + + private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + + public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); - public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_set"); - private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_set"); + + private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; - try { - ((IEntity)wrapper).SetGeometry( _in_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IEntity)wrapper).SetGeometry(_in_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); } - } else { - efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); } - } - private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; + private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_get"); + + private static bool visible_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IEntity)wrapper).GetVisible(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_get"); - private static bool visible_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IEntity)wrapper).GetVisible(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; + private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; - private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + + private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + + public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_set"); - private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) - { - Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IEntity)wrapper).SetVisible( v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_set"); + + private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) + { + Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IEntity)wrapper).SetVisible(v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); + } } - } - private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; + private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; - private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_get"); + + private static double scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IEntity)wrapper).GetScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_get"); - private static double scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IEntity)wrapper).GetScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; + private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; - private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); - public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_set"); - private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) - { - Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IEntity)wrapper).SetScale( scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_set"); + + private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IEntity)wrapper).SetScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + } } - } - private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + + private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_fill.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_fill.eo.cs index 77c8539..dfe37bb 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_fill.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_fill.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Efl graphics fill interface -[IFillNativeInherit] +[Efl.Gfx.IFillConcrete.NativeMethods] public interface IFill : Efl.Eo.IWrapper, IDisposable { @@ -25,8 +29,7 @@ bool GetFillAuto(); /// /// This flag is true by default (used to be false with the old APIs, and was known as "filled"). /// true to make the fill property follow object size or false otherwise. -/// -void SetFillAuto( bool filled); +void SetFillAuto(bool filled); /// Specifies how to tile an image to fill its rectangle geometry. /// Note that if w or h are smaller than the dimensions of the object, the displayed image will be tiled around the object's area. To have only one copy of the bound image drawn, x and y must be 0 and w and h need to be the exact width and height of the image object itself, respectively. /// @@ -38,8 +41,7 @@ Eina.Rect GetFill(); /// /// Setting this property will reset the to false. /// The top-left corner to start drawing from as well as the size at which the bound image will be displayed. -/// -void SetFill( Eina.Rect fill); +void SetFill(Eina.Rect fill); /// Binds the object's property to its actual geometry. /// If true, then every time the object is resized, it will automatically trigger a call to with the new size (and 0, 0 as source image's origin), so the image will cover the whole object's area. /// @@ -68,68 +70,103 @@ IFill { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IFillConcrete)) - return Efl.Gfx.IFillNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IFillConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_fill_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IFillConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IFillConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Binds the object's property to its actual geometry. /// If true, then every time the object is resized, it will automatically trigger a call to with the new size (and 0, 0 as source image's origin), so the image will cover the whole object's area. /// @@ -138,7 +175,7 @@ IFill /// This flag is true by default (used to be false with the old APIs, and was known as "filled"). /// true to make the fill property follow object size or false otherwise. public bool GetFillAuto() { - var _ret_var = Efl.Gfx.IFillNativeInherit.efl_gfx_fill_auto_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IFillConcrete.NativeMethods.efl_gfx_fill_auto_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -149,9 +186,8 @@ IFill /// /// This flag is true by default (used to be false with the old APIs, and was known as "filled"). /// true to make the fill property follow object size or false otherwise. - /// - public void SetFillAuto( bool filled) { - Efl.Gfx.IFillNativeInherit.efl_gfx_fill_auto_set_ptr.Value.Delegate(this.NativeHandle, filled); + public void SetFillAuto(bool filled) { + Efl.Gfx.IFillConcrete.NativeMethods.efl_gfx_fill_auto_set_ptr.Value.Delegate(this.NativeHandle,filled); Eina.Error.RaiseIfUnhandledException(); } /// Specifies how to tile an image to fill its rectangle geometry. @@ -160,7 +196,7 @@ IFill /// Setting this property will reset the to false. /// The top-left corner to start drawing from as well as the size at which the bound image will be displayed. public Eina.Rect GetFill() { - var _ret_var = Efl.Gfx.IFillNativeInherit.efl_gfx_fill_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IFillConcrete.NativeMethods.efl_gfx_fill_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -169,10 +205,9 @@ IFill /// /// Setting this property will reset the to false. /// The top-left corner to start drawing from as well as the size at which the bound image will be displayed. - /// - public void SetFill( Eina.Rect fill) { + public void SetFill(Eina.Rect fill) { Eina.Rect.NativeStruct _in_fill = fill; - Efl.Gfx.IFillNativeInherit.efl_gfx_fill_set_ptr.Value.Delegate(this.NativeHandle, _in_fill); + Efl.Gfx.IFillConcrete.NativeMethods.efl_gfx_fill_set_ptr.Value.Delegate(this.NativeHandle,_in_fill); Eina.Error.RaiseIfUnhandledException(); } /// Binds the object's property to its actual geometry. @@ -184,7 +219,7 @@ IFill /// true to make the fill property follow object size or false otherwise. public bool FillAuto { get { return GetFillAuto(); } - set { SetFillAuto( value); } + set { SetFillAuto(value); } } /// Specifies how to tile an image to fill its rectangle geometry. /// Note that if w or h are smaller than the dimensions of the object, the displayed image will be tiled around the object's area. To have only one copy of the bound image drawn, x and y must be 0 and w and h need to be the exact width and height of the image object itself, respectively. @@ -193,143 +228,223 @@ IFill /// The top-left corner to start drawing from as well as the size at which the bound image will be displayed. public Eina.Rect Fill { get { return GetFill(); } - set { SetFill( value); } + set { SetFill(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IFillConcrete.efl_gfx_fill_interface_get(); } -} -public class IFillNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_fill_auto_get_static_delegate == null) - efl_gfx_fill_auto_get_static_delegate = new efl_gfx_fill_auto_get_delegate(fill_auto_get); - if (methods.FirstOrDefault(m => m.Name == "GetFillAuto") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_auto_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_auto_get_static_delegate)}); - if (efl_gfx_fill_auto_set_static_delegate == null) - efl_gfx_fill_auto_set_static_delegate = new efl_gfx_fill_auto_set_delegate(fill_auto_set); - if (methods.FirstOrDefault(m => m.Name == "SetFillAuto") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_auto_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_auto_set_static_delegate)}); - if (efl_gfx_fill_get_static_delegate == null) - efl_gfx_fill_get_static_delegate = new efl_gfx_fill_get_delegate(fill_get); - if (methods.FirstOrDefault(m => m.Name == "GetFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_get_static_delegate)}); - if (efl_gfx_fill_set_static_delegate == null) - efl_gfx_fill_set_static_delegate = new efl_gfx_fill_set_delegate(fill_set); - if (methods.FirstOrDefault(m => m.Name == "SetFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IFillConcrete.efl_gfx_fill_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Gfx.IFillConcrete.efl_gfx_fill_interface_get(); - } + 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_gfx_fill_auto_get_static_delegate == null) + { + efl_gfx_fill_auto_get_static_delegate = new efl_gfx_fill_auto_get_delegate(fill_auto_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_fill_auto_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFillAuto") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_fill_auto_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_auto_get_static_delegate) }); + } + if (efl_gfx_fill_auto_set_static_delegate == null) + { + efl_gfx_fill_auto_set_static_delegate = new efl_gfx_fill_auto_set_delegate(fill_auto_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_fill_auto_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_fill_auto_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_fill_auto_get"); - private static bool fill_auto_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_fill_auto_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IFill)wrapper).GetFillAuto(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFillAuto") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_fill_auto_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_auto_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_fill_auto_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_gfx_fill_get_static_delegate == null) + { + efl_gfx_fill_get_static_delegate = new efl_gfx_fill_get_delegate(fill_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_get_static_delegate) }); + } + + if (efl_gfx_fill_set_static_delegate == null) + { + efl_gfx_fill_set_static_delegate = new efl_gfx_fill_set_delegate(fill_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_fill_set_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.Gfx.IFillConcrete.efl_gfx_fill_interface_get(); } - } - private static efl_gfx_fill_auto_get_delegate efl_gfx_fill_auto_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_gfx_fill_auto_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool filled); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_fill_auto_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_fill_auto_get_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_fill_auto_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool filled); - public static Efl.Eo.FunctionWrapper efl_gfx_fill_auto_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_fill_auto_set"); - private static void fill_auto_set(System.IntPtr obj, System.IntPtr pd, bool filled) - { - Eina.Log.Debug("function efl_gfx_fill_auto_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IFill)wrapper).SetFillAuto( filled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_fill_auto_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_fill_auto_get"); + + private static bool fill_auto_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_fill_auto_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IFill)wrapper).GetFillAuto(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_fill_auto_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_gfx_fill_auto_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), filled); } - } - private static efl_gfx_fill_auto_set_delegate efl_gfx_fill_auto_set_static_delegate; + private static efl_gfx_fill_auto_get_delegate efl_gfx_fill_auto_get_static_delegate; - private delegate Eina.Rect.NativeStruct efl_gfx_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_fill_auto_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool filled); + + public delegate void efl_gfx_fill_auto_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool filled); - public delegate Eina.Rect.NativeStruct efl_gfx_fill_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_fill_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_fill_get"); - private static Eina.Rect.NativeStruct fill_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_fill_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((IFill)wrapper).GetFill(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_fill_auto_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_fill_auto_set"); + + private static void fill_auto_set(System.IntPtr obj, System.IntPtr pd, bool filled) + { + Eina.Log.Debug("function efl_gfx_fill_auto_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IFill)wrapper).SetFillAuto(filled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_fill_auto_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), filled); } + } + + private static efl_gfx_fill_auto_set_delegate efl_gfx_fill_auto_set_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_gfx_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_gfx_fill_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_fill_get"); + + private static Eina.Rect.NativeStruct fill_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_fill_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((IFill)wrapper).GetFill(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_fill_get_delegate efl_gfx_fill_get_static_delegate; + private static efl_gfx_fill_get_delegate efl_gfx_fill_get_static_delegate; - private delegate void efl_gfx_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct fill); + + private delegate void efl_gfx_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct fill); + + public delegate void efl_gfx_fill_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct fill); - public delegate void efl_gfx_fill_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct fill); - public static Efl.Eo.FunctionWrapper efl_gfx_fill_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_fill_set"); - private static void fill_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct fill) - { - Eina.Log.Debug("function efl_gfx_fill_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_fill = fill; + public static Efl.Eo.FunctionWrapper efl_gfx_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_fill_set"); + + private static void fill_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct fill) + { + Eina.Log.Debug("function efl_gfx_fill_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_fill = fill; - try { - ((IFill)wrapper).SetFill( _in_fill); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IFill)wrapper).SetFill(_in_fill); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); } - } else { - efl_gfx_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); } - } - private static efl_gfx_fill_set_delegate efl_gfx_fill_set_static_delegate; + + private static efl_gfx_fill_set_delegate efl_gfx_fill_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_filter.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_filter.eo.cs index 997e4a3..2f181d8 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_filter.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_filter.eo.cs @@ -3,21 +3,24 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Graphical filters can be applied to any object implementing this interface. /// Filters are programmable effects that run whenever the object is rendered on its canvas. The program language is Lua and a complete reference can be found under "EFL Graphics Filters". /// /// This was a beta feature since 1.15. -[IFilterNativeInherit] +[Efl.Gfx.IFilterConcrete.NativeMethods] public interface IFilter : Efl.Eo.IWrapper, IDisposable { /// Gets the code of the filter program set on this object. May be null. /// The Lua program source code. /// An optional name for this filter. -/// -void GetFilterProgram( out System.String code, out System.String name); +void GetFilterProgram(out System.String code, out System.String name); /// Set a graphical filter program on this object. /// Valid for Text and Image objects at the moment. /// @@ -26,8 +29,7 @@ void GetFilterProgram( out System.String code, out System.String name); /// Set to null to disable filtering. /// The Lua program source code. /// An optional name for this filter. -/// -void SetFilterProgram( System.String code, System.String name); +void SetFilterProgram(System.String code, System.String name); /// Set the current state of the filter. /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically. /// @@ -37,8 +39,7 @@ void SetFilterProgram( System.String code, System.String name); /// Next filter state, optional /// Next value, optional /// Position, optional -/// -void GetFilterState( out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos); +void GetFilterState(out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos); /// Set the current state of the filter. /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically. /// @@ -48,26 +49,23 @@ void GetFilterState( out System.String cur_state, out double cur_val, out Syst /// Next filter state, optional /// Next value, optional /// Position, optional -/// -void SetFilterState( System.String cur_state, double cur_val, System.String next_state, double next_val, double pos); +void SetFilterState(System.String cur_state, double cur_val, System.String next_state, double next_val, double pos); /// Gets the padding required to apply this filter. /// Padding on the left /// Padding on the right /// Padding on the top /// Padding on the bottom -/// -void GetFilterPadding( out int l, out int r, out int t, out int b); +void GetFilterPadding(out int l, out int r, out int t, out int b); /// Bind an object to use as a mask or texture in a filter program. /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered). /// Buffer name as used in the program. /// Object to use as a source of pixels. -Efl.Gfx.IEntity GetFilterSource( System.String name); +Efl.Gfx.IEntity GetFilterSource(System.String name); /// Bind an object to use as a mask or texture in a filter program. /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered). /// Buffer name as used in the program. /// Object to use as a source of pixels. -/// -void SetFilterSource( System.String name, Efl.Gfx.IEntity source); +void SetFilterSource(System.String name, Efl.Gfx.IEntity source); /// Extra data used by the filter program. /// Each data element is a string (value) stored as a global variable name. The program is then responsible for conversion to numbers, tables, etc... /// @@ -75,8 +73,7 @@ void SetFilterSource( System.String name, Efl.Gfx.IEntity source); /// Name of the global variable /// String value to use as data /// If true, execute 'name = value' -/// -void GetFilterData( System.String name, out System.String value, out bool execute); +void GetFilterData(System.String name, out System.String value, out bool execute); /// Extra data used by the filter program. /// Each data element is a string (value) stored as a global variable name. The program is then responsible for conversion to numbers, tables, etc... /// @@ -84,8 +81,7 @@ void GetFilterData( System.String name, out System.String value, out bool exec /// Name of the global variable /// String value to use as data /// If true, execute 'name = value' -/// -void SetFilterData( System.String name, System.String value, bool execute); +void SetFilterData(System.String name, System.String value, bool execute); } /// Graphical filters can be applied to any object implementing this interface. /// Filters are programmable effects that run whenever the object is rendered on its canvas. The program language is Lua and a complete reference can be found under "EFL Graphics Filters". @@ -97,74 +93,108 @@ IFilter { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IFilterConcrete)) - return Efl.Gfx.IFilterNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IFilterConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_filter_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IFilterConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IFilterConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Gets the code of the filter program set on this object. May be null. /// The Lua program source code. /// An optional name for this filter. - /// - public void GetFilterProgram( out System.String code, out System.String name) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_program_get_ptr.Value.Delegate(this.NativeHandle, out code, out name); + public void GetFilterProgram(out System.String code, out System.String name) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_program_get_ptr.Value.Delegate(this.NativeHandle,out code, out name); Eina.Error.RaiseIfUnhandledException(); } /// Set a graphical filter program on this object. @@ -175,9 +205,8 @@ IFilter /// Set to null to disable filtering. /// The Lua program source code. /// An optional name for this filter. - /// - public void SetFilterProgram( System.String code, System.String name) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_program_set_ptr.Value.Delegate(this.NativeHandle, code, name); + public void SetFilterProgram(System.String code, System.String name) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_program_set_ptr.Value.Delegate(this.NativeHandle,code, name); Eina.Error.RaiseIfUnhandledException(); } /// Set the current state of the filter. @@ -189,9 +218,8 @@ IFilter /// Next filter state, optional /// Next value, optional /// Position, optional - /// - public void GetFilterState( out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_state_get_ptr.Value.Delegate(this.NativeHandle, out cur_state, out cur_val, out next_state, out next_val, out pos); + public void GetFilterState(out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_state_get_ptr.Value.Delegate(this.NativeHandle,out cur_state, out cur_val, out next_state, out next_val, out pos); Eina.Error.RaiseIfUnhandledException(); } /// Set the current state of the filter. @@ -203,9 +231,8 @@ IFilter /// Next filter state, optional /// Next value, optional /// Position, optional - /// - public void SetFilterState( System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_state_set_ptr.Value.Delegate(this.NativeHandle, cur_state, cur_val, next_state, next_val, pos); + public void SetFilterState(System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_state_set_ptr.Value.Delegate(this.NativeHandle,cur_state, cur_val, next_state, next_val, pos); Eina.Error.RaiseIfUnhandledException(); } /// Gets the padding required to apply this filter. @@ -213,17 +240,16 @@ IFilter /// Padding on the right /// Padding on the top /// Padding on the bottom - /// - public void GetFilterPadding( out int l, out int r, out int t, out int b) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_padding_get_ptr.Value.Delegate(this.NativeHandle, out l, out r, out t, out b); + public void GetFilterPadding(out int l, out int r, out int t, out int b) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_padding_get_ptr.Value.Delegate(this.NativeHandle,out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Bind an object to use as a mask or texture in a filter program. /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered). /// Buffer name as used in the program. /// Object to use as a source of pixels. - public Efl.Gfx.IEntity GetFilterSource( System.String name) { - var _ret_var = Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_source_get_ptr.Value.Delegate(this.NativeHandle, name); + public Efl.Gfx.IEntity GetFilterSource(System.String name) { + var _ret_var = Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_source_get_ptr.Value.Delegate(this.NativeHandle,name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -231,9 +257,8 @@ IFilter /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered). /// Buffer name as used in the program. /// Object to use as a source of pixels. - /// - public void SetFilterSource( System.String name, Efl.Gfx.IEntity source) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_source_set_ptr.Value.Delegate(this.NativeHandle, name, source); + public void SetFilterSource(System.String name, Efl.Gfx.IEntity source) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_source_set_ptr.Value.Delegate(this.NativeHandle,name, source); Eina.Error.RaiseIfUnhandledException(); } /// Extra data used by the filter program. @@ -243,9 +268,8 @@ IFilter /// Name of the global variable /// String value to use as data /// If true, execute 'name = value' - /// - public void GetFilterData( System.String name, out System.String value, out bool execute) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_data_get_ptr.Value.Delegate(this.NativeHandle, name, out value, out execute); + public void GetFilterData(System.String name, out System.String value, out bool execute) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_get_ptr.Value.Delegate(this.NativeHandle,name, out value, out execute); Eina.Error.RaiseIfUnhandledException(); } /// Extra data used by the filter program. @@ -255,294 +279,458 @@ IFilter /// Name of the global variable /// String value to use as data /// If true, execute 'name = value' - /// - public void SetFilterData( System.String name, System.String value, bool execute) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_data_set_ptr.Value.Delegate(this.NativeHandle, name, value, execute); + public void SetFilterData(System.String name, System.String value, bool execute) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_set_ptr.Value.Delegate(this.NativeHandle,name, value, execute); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IFilterConcrete.efl_gfx_filter_interface_get(); } -} -public class IFilterNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_filter_program_get_static_delegate == null) - efl_gfx_filter_program_get_static_delegate = new efl_gfx_filter_program_get_delegate(filter_program_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterProgram") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_program_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_get_static_delegate)}); - if (efl_gfx_filter_program_set_static_delegate == null) - efl_gfx_filter_program_set_static_delegate = new efl_gfx_filter_program_set_delegate(filter_program_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterProgram") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_program_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_set_static_delegate)}); - if (efl_gfx_filter_state_get_static_delegate == null) - efl_gfx_filter_state_get_static_delegate = new efl_gfx_filter_state_get_delegate(filter_state_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_get_static_delegate)}); - if (efl_gfx_filter_state_set_static_delegate == null) - efl_gfx_filter_state_set_static_delegate = new efl_gfx_filter_state_set_delegate(filter_state_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_state_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_set_static_delegate)}); - if (efl_gfx_filter_padding_get_static_delegate == null) - efl_gfx_filter_padding_get_static_delegate = new efl_gfx_filter_padding_get_delegate(filter_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_padding_get_static_delegate)}); - if (efl_gfx_filter_source_get_static_delegate == null) - efl_gfx_filter_source_get_static_delegate = new efl_gfx_filter_source_get_delegate(filter_source_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_get_static_delegate)}); - if (efl_gfx_filter_source_set_static_delegate == null) - efl_gfx_filter_source_set_static_delegate = new efl_gfx_filter_source_set_delegate(filter_source_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_set_static_delegate)}); - if (efl_gfx_filter_data_get_static_delegate == null) - efl_gfx_filter_data_get_static_delegate = new efl_gfx_filter_data_get_delegate(filter_data_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_get_static_delegate)}); - if (efl_gfx_filter_data_set_static_delegate == null) - efl_gfx_filter_data_set_static_delegate = new efl_gfx_filter_data_set_delegate(filter_data_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IFilterConcrete.efl_gfx_filter_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IFilterConcrete.efl_gfx_filter_interface_get(); - } + 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_gfx_filter_program_get_static_delegate == null) + { + efl_gfx_filter_program_get_static_delegate = new efl_gfx_filter_program_get_delegate(filter_program_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFilterProgram") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_program_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_get_static_delegate) }); + } - private delegate void efl_gfx_filter_program_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); + if (efl_gfx_filter_program_set_static_delegate == null) + { + efl_gfx_filter_program_set_static_delegate = new efl_gfx_filter_program_set_delegate(filter_program_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFilterProgram") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_program_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_set_static_delegate) }); + } - public delegate void efl_gfx_filter_program_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_program_get"); - private static void filter_program_get(System.IntPtr obj, System.IntPtr pd, out System.String code, out System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_program_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_code = default(System.String); - System.String _out_name = default(System.String); - - try { - ((IFilter)wrapper).GetFilterProgram( out _out_code, out _out_name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_filter_state_get_static_delegate == null) + { + efl_gfx_filter_state_get_static_delegate = new efl_gfx_filter_state_get_delegate(filter_state_get); } - code = _out_code; - name = _out_name; - } else { - efl_gfx_filter_program_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out code, out name); - } - } - private static efl_gfx_filter_program_get_delegate efl_gfx_filter_program_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFilterState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_get_static_delegate) }); + } - private delegate void efl_gfx_filter_program_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + if (efl_gfx_filter_state_set_static_delegate == null) + { + efl_gfx_filter_state_set_static_delegate = new efl_gfx_filter_state_set_delegate(filter_state_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFilterState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_state_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_set_static_delegate) }); + } - public delegate void efl_gfx_filter_program_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_program_set"); - private static void filter_program_set(System.IntPtr obj, System.IntPtr pd, System.String code, System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_program_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IFilter)wrapper).SetFilterProgram( code, name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_program_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code, name); - } - } - private static efl_gfx_filter_program_set_delegate efl_gfx_filter_program_set_static_delegate; + if (efl_gfx_filter_padding_get_static_delegate == null) + { + efl_gfx_filter_padding_get_static_delegate = new efl_gfx_filter_padding_get_delegate(filter_padding_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFilterPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_padding_get_static_delegate) }); + } - private delegate void efl_gfx_filter_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); + if (efl_gfx_filter_source_get_static_delegate == null) + { + efl_gfx_filter_source_get_static_delegate = new efl_gfx_filter_source_get_delegate(filter_source_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFilterSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_get_static_delegate) }); + } - public delegate void efl_gfx_filter_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_state_get"); - private static void filter_state_get(System.IntPtr obj, System.IntPtr pd, out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) - { - Eina.Log.Debug("function efl_gfx_filter_state_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_cur_state = default(System.String); - cur_val = default(double); System.String _out_next_state = default(System.String); - next_val = default(double); pos = default(double); - try { - ((IFilter)wrapper).GetFilterState( out _out_cur_state, out cur_val, out _out_next_state, out next_val, out pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_filter_source_set_static_delegate == null) + { + efl_gfx_filter_source_set_static_delegate = new efl_gfx_filter_source_set_delegate(filter_source_set); } - cur_state = _out_cur_state; - next_state = _out_next_state; - } else { - efl_gfx_filter_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cur_state, out cur_val, out next_state, out next_val, out pos); - } - } - private static efl_gfx_filter_state_get_delegate efl_gfx_filter_state_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetFilterSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_set_static_delegate) }); + } - private delegate void efl_gfx_filter_state_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); + if (efl_gfx_filter_data_get_static_delegate == null) + { + efl_gfx_filter_data_get_static_delegate = new efl_gfx_filter_data_get_delegate(filter_data_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFilterData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_get_static_delegate) }); + } - public delegate void efl_gfx_filter_state_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_state_set"); - private static void filter_state_set(System.IntPtr obj, System.IntPtr pd, System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) - { - Eina.Log.Debug("function efl_gfx_filter_state_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IFilter)wrapper).SetFilterState( cur_state, cur_val, next_state, next_val, pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur_state, cur_val, next_state, next_val, pos); + if (efl_gfx_filter_data_set_static_delegate == null) + { + efl_gfx_filter_data_set_static_delegate = new efl_gfx_filter_data_set_delegate(filter_data_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFilterData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_set_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.Gfx.IFilterConcrete.efl_gfx_filter_interface_get(); } - } - private static efl_gfx_filter_state_set_delegate efl_gfx_filter_state_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_gfx_filter_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + private delegate void efl_gfx_filter_program_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); + + public delegate void efl_gfx_filter_program_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); - public delegate void efl_gfx_filter_padding_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_padding_get"); - private static void filter_padding_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) - { - Eina.Log.Debug("function efl_gfx_filter_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(int); r = default(int); t = default(int); b = default(int); - try { - ((IFilter)wrapper).GetFilterPadding( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_program_get"); + + private static void filter_program_get(System.IntPtr obj, System.IntPtr pd, out System.String code, out System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_program_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_code = default(System.String); + System.String _out_name = default(System.String); + + try + { + ((IFilter)wrapper).GetFilterProgram(out _out_code, out _out_name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + code = _out_code; + name = _out_name; + + } + else + { + efl_gfx_filter_program_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out code, out name); + } } - } - private static efl_gfx_filter_padding_get_delegate efl_gfx_filter_padding_get_static_delegate; + private static efl_gfx_filter_program_get_delegate efl_gfx_filter_program_get_static_delegate; + + + private delegate void efl_gfx_filter_program_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + + public delegate void efl_gfx_filter_program_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_program_set"); + + private static void filter_program_set(System.IntPtr obj, System.IntPtr pd, System.String code, System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_program_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IFilter)wrapper).SetFilterProgram(code, name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_program_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code, name); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + private static efl_gfx_filter_program_set_delegate efl_gfx_filter_program_set_static_delegate; + + private delegate void efl_gfx_filter_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_source_get"); - private static Efl.Gfx.IEntity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_source_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((IFilter)wrapper).GetFilterSource( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + public delegate void efl_gfx_filter_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_state_get"); + + private static void filter_state_get(System.IntPtr obj, System.IntPtr pd, out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) + { + Eina.Log.Debug("function efl_gfx_filter_state_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_cur_state = default(System.String); + cur_val = default(double); System.String _out_next_state = default(System.String); + next_val = default(double); pos = default(double); + try + { + ((IFilter)wrapper).GetFilterState(out _out_cur_state, out cur_val, out _out_next_state, out next_val, out pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + cur_state = _out_cur_state; + next_state = _out_next_state; + + } + else + { + efl_gfx_filter_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cur_state, out cur_val, out next_state, out next_val, out pos); } - return _ret_var; - } else { - return efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); } - } - private static efl_gfx_filter_source_get_delegate efl_gfx_filter_source_get_static_delegate; - - private delegate void efl_gfx_filter_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity source); + private static efl_gfx_filter_state_get_delegate efl_gfx_filter_state_get_static_delegate; + + + private delegate void efl_gfx_filter_state_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); + + + public delegate void efl_gfx_filter_state_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_state_set"); + + private static void filter_state_set(System.IntPtr obj, System.IntPtr pd, System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) + { + Eina.Log.Debug("function efl_gfx_filter_state_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IFilter)wrapper).SetFilterState(cur_state, cur_val, next_state, next_val, pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur_state, cur_val, next_state, next_val, pos); + } + } + private static efl_gfx_filter_state_set_delegate efl_gfx_filter_state_set_static_delegate; + + + private delegate void efl_gfx_filter_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + + public delegate void efl_gfx_filter_padding_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_padding_get"); + + private static void filter_padding_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_filter_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((IFilter)wrapper).GetFilterPadding(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_filter_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity source); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_source_set"); - private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.IEntity source) - { - Eina.Log.Debug("function efl_gfx_filter_source_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IFilter)wrapper).SetFilterSource( name, source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source); + } + else + { + efl_gfx_filter_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + } } - } - private static efl_gfx_filter_source_set_delegate efl_gfx_filter_source_set_static_delegate; + private static efl_gfx_filter_padding_get_delegate efl_gfx_filter_padding_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_source_get"); + + private static Efl.Gfx.IEntity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_source_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((IFilter)wrapper).GetFilterSource(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_filter_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); + return _ret_var; + } + else + { + return efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } + } - public delegate void efl_gfx_filter_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_data_get"); - private static void filter_data_get(System.IntPtr obj, System.IntPtr pd, System.String name, out System.String value, out bool execute) - { - Eina.Log.Debug("function efl_gfx_filter_data_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_value = default(System.String); - execute = default(bool); - try { - ((IFilter)wrapper).GetFilterData( name, out _out_value, out execute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_filter_source_get_delegate efl_gfx_filter_source_get_static_delegate; + + + private delegate void efl_gfx_filter_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity source); + + + public delegate void efl_gfx_filter_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity source); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_source_set"); + + private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.IEntity source) + { + Eina.Log.Debug("function efl_gfx_filter_source_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IFilter)wrapper).SetFilterSource(name, source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source); } - value = _out_value; - } else { - efl_gfx_filter_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, out value, out execute); } - } - private static efl_gfx_filter_data_get_delegate efl_gfx_filter_data_get_static_delegate; + private static efl_gfx_filter_source_set_delegate efl_gfx_filter_source_set_static_delegate; - private delegate void efl_gfx_filter_data_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); + + private delegate void efl_gfx_filter_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); + + public delegate void efl_gfx_filter_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); - public delegate void efl_gfx_filter_data_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_data_set"); - private static void filter_data_set(System.IntPtr obj, System.IntPtr pd, System.String name, System.String value, bool execute) - { - Eina.Log.Debug("function efl_gfx_filter_data_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IFilter)wrapper).SetFilterData( name, value, execute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value, execute); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_data_get"); + + private static void filter_data_get(System.IntPtr obj, System.IntPtr pd, System.String name, out System.String value, out bool execute) + { + Eina.Log.Debug("function efl_gfx_filter_data_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_value = default(System.String); + execute = default(bool); + try + { + ((IFilter)wrapper).GetFilterData(name, out _out_value, out execute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + value = _out_value; + + } + else + { + efl_gfx_filter_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, out value, out execute); + } } - } - private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate; + + private static efl_gfx_filter_data_get_delegate efl_gfx_filter_data_get_static_delegate; + + + private delegate void efl_gfx_filter_data_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); + + + public delegate void efl_gfx_filter_data_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_data_set"); + + private static void filter_data_set(System.IntPtr obj, System.IntPtr pd, System.String name, System.String value, bool execute) + { + Eina.Log.Debug("function efl_gfx_filter_data_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IFilter)wrapper).SetFilterData(name, value, execute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value, execute); + } + } + + private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_frame_controller.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_frame_controller.eo.cs index 1b0b3fb..c3a6445 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_frame_controller.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_frame_controller.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Efl frame controller of frame based animated object interface. -[IFrameControllerNativeInherit] +[Efl.Gfx.IFrameControllerConcrete.NativeMethods] public interface IFrameController : Efl.Eo.IWrapper, IDisposable { @@ -21,7 +25,7 @@ int GetFrame(); /// Set the frame to current frame of an animated object. /// The index of current frame. /// Returns true if the frame index is valid. -bool SetFrame( int frame_index); +bool SetFrame(int frame_index); /// Get the total number of frames of the object, if animated. /// Returns -1 if not animated. /// The number of frames in the animated object. @@ -49,7 +53,7 @@ int GetLoopCount(); /// The first frame, rangers from 1 to . /// Number of frames in the sequence, starts from 0. /// Duration in seconds -double GetFrameDuration( int start_frame, int frame_num); +double GetFrameDuration(int start_frame, int frame_num); /// Check if an object can be animated (has multiple frames). /// This will be true for animated object for instance but false for a single frame object. /// true if the object is animated @@ -97,73 +101,108 @@ IFrameController { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IFrameControllerConcrete)) - return Efl.Gfx.IFrameControllerNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IFrameControllerConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_frame_controller_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IFrameControllerConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IFrameControllerConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Check if an object can be animated (has multiple frames). /// This will be true for animated object for instance but false for a single frame object. /// true if the object is animated public bool GetAnimated() { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_animated_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_animated_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -171,15 +210,15 @@ IFrameController /// Ranges from 1 to . Valid only if . /// The index of current frame. public int GetFrame() { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_frame_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the frame to current frame of an animated object. /// The index of current frame. /// Returns true if the frame index is valid. - public bool SetFrame( int frame_index) { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_frame_set_ptr.Value.Delegate(this.NativeHandle, frame_index); + public bool SetFrame(int frame_index) { + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_set_ptr.Value.Delegate(this.NativeHandle,frame_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -187,7 +226,7 @@ IFrameController /// Returns -1 if not animated. /// The number of frames in the animated object. public int GetFrameCount() { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -201,7 +240,7 @@ IFrameController /// The default type is . /// Loop type of the animated object. public Efl.Gfx.FrameControllerLoopHint GetLoopType() { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -211,7 +250,7 @@ IFrameController /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops). /// The number of loop of an animated object. public int GetLoopCount() { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -222,8 +261,8 @@ IFrameController /// The first frame, rangers from 1 to . /// Number of frames in the sequence, starts from 0. /// Duration in seconds - public double GetFrameDuration( int start_frame, int frame_num) { - var _ret_var = Efl.Gfx.IFrameControllerNativeInherit.efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate(this.NativeHandle, start_frame, frame_num); + public double GetFrameDuration(int start_frame, int frame_num) { + var _ret_var = Efl.Gfx.IFrameControllerConcrete.NativeMethods.efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate(this.NativeHandle,start_frame, frame_num); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -238,7 +277,7 @@ IFrameController /// The index of current frame. public int Frame { get { return GetFrame(); } - set { SetFrame( value); } + set { SetFrame(value); } } /// Get the total number of frames of the object, if animated. /// Returns -1 if not animated. @@ -270,229 +309,363 @@ IFrameController { return Efl.Gfx.IFrameControllerConcrete.efl_gfx_frame_controller_interface_get(); } -} -public class IFrameControllerNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_frame_controller_animated_get_static_delegate == null) - efl_gfx_frame_controller_animated_get_static_delegate = new efl_gfx_frame_controller_animated_get_delegate(animated_get); - if (methods.FirstOrDefault(m => m.Name == "GetAnimated") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_animated_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_animated_get_static_delegate)}); - if (efl_gfx_frame_controller_frame_get_static_delegate == null) - efl_gfx_frame_controller_frame_get_static_delegate = new efl_gfx_frame_controller_frame_get_delegate(frame_get); - if (methods.FirstOrDefault(m => m.Name == "GetFrame") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_frame_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_get_static_delegate)}); - if (efl_gfx_frame_controller_frame_set_static_delegate == null) - efl_gfx_frame_controller_frame_set_static_delegate = new efl_gfx_frame_controller_frame_set_delegate(frame_set); - if (methods.FirstOrDefault(m => m.Name == "SetFrame") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_frame_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_set_static_delegate)}); - if (efl_gfx_frame_controller_frame_count_get_static_delegate == null) - efl_gfx_frame_controller_frame_count_get_static_delegate = new efl_gfx_frame_controller_frame_count_get_delegate(frame_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetFrameCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_frame_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_count_get_static_delegate)}); - if (efl_gfx_frame_controller_loop_type_get_static_delegate == null) - efl_gfx_frame_controller_loop_type_get_static_delegate = new efl_gfx_frame_controller_loop_type_get_delegate(loop_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoopType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_loop_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_loop_type_get_static_delegate)}); - if (efl_gfx_frame_controller_loop_count_get_static_delegate == null) - efl_gfx_frame_controller_loop_count_get_static_delegate = new efl_gfx_frame_controller_loop_count_get_delegate(loop_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoopCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_loop_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_loop_count_get_static_delegate)}); - if (efl_gfx_frame_controller_frame_duration_get_static_delegate == null) - efl_gfx_frame_controller_frame_duration_get_static_delegate = new efl_gfx_frame_controller_frame_duration_get_delegate(frame_duration_get); - if (methods.FirstOrDefault(m => m.Name == "GetFrameDuration") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_frame_controller_frame_duration_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_duration_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IFrameControllerConcrete.efl_gfx_frame_controller_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Gfx.IFrameControllerConcrete.efl_gfx_frame_controller_interface_get(); - } + 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_gfx_frame_controller_animated_get_static_delegate == null) + { + efl_gfx_frame_controller_animated_get_static_delegate = new efl_gfx_frame_controller_animated_get_delegate(animated_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_frame_controller_animated_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetAnimated") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_animated_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_animated_get_static_delegate) }); + } + if (efl_gfx_frame_controller_frame_get_static_delegate == null) + { + efl_gfx_frame_controller_frame_get_static_delegate = new efl_gfx_frame_controller_frame_get_delegate(frame_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_frame_controller_animated_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_animated_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_animated_get"); - private static bool animated_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_frame_controller_animated_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IFrameController)wrapper).GetAnimated(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFrame") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_frame_controller_animated_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_frame_controller_animated_get_delegate efl_gfx_frame_controller_animated_get_static_delegate; + if (efl_gfx_frame_controller_frame_set_static_delegate == null) + { + efl_gfx_frame_controller_frame_set_static_delegate = new efl_gfx_frame_controller_frame_set_delegate(frame_set); + } - private delegate int efl_gfx_frame_controller_frame_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFrame") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_set_static_delegate) }); + } + if (efl_gfx_frame_controller_frame_count_get_static_delegate == null) + { + efl_gfx_frame_controller_frame_count_get_static_delegate = new efl_gfx_frame_controller_frame_count_get_delegate(frame_count_get); + } - public delegate int efl_gfx_frame_controller_frame_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_frame_get"); - private static int frame_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_frame_controller_frame_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IFrameController)wrapper).GetFrame(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFrameCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_count_get_static_delegate) }); + } + + if (efl_gfx_frame_controller_loop_type_get_static_delegate == null) + { + efl_gfx_frame_controller_loop_type_get_static_delegate = new efl_gfx_frame_controller_loop_type_get_delegate(loop_type_get); } - return _ret_var; - } else { - return efl_gfx_frame_controller_frame_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_frame_controller_frame_get_delegate efl_gfx_frame_controller_frame_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoopType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_loop_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_loop_type_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_frame_controller_frame_set_delegate(System.IntPtr obj, System.IntPtr pd, int frame_index); + if (efl_gfx_frame_controller_loop_count_get_static_delegate == null) + { + efl_gfx_frame_controller_loop_count_get_static_delegate = new efl_gfx_frame_controller_loop_count_get_delegate(loop_count_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoopCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_loop_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_loop_count_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_frame_controller_frame_set_api_delegate(System.IntPtr obj, int frame_index); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_frame_set"); - private static bool frame_set(System.IntPtr obj, System.IntPtr pd, int frame_index) - { - Eina.Log.Debug("function efl_gfx_frame_controller_frame_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IFrameController)wrapper).SetFrame( frame_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_frame_controller_frame_duration_get_static_delegate == null) + { + efl_gfx_frame_controller_frame_duration_get_static_delegate = new efl_gfx_frame_controller_frame_duration_get_delegate(frame_duration_get); } - return _ret_var; - } else { - return efl_gfx_frame_controller_frame_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), frame_index); + + if (methods.FirstOrDefault(m => m.Name == "GetFrameDuration") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_frame_controller_frame_duration_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_frame_controller_frame_duration_get_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.Gfx.IFrameControllerConcrete.efl_gfx_frame_controller_interface_get(); } - } - private static efl_gfx_frame_controller_frame_set_delegate efl_gfx_frame_controller_frame_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate int efl_gfx_frame_controller_frame_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_frame_controller_animated_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_frame_controller_animated_get_api_delegate(System.IntPtr obj); - public delegate int efl_gfx_frame_controller_frame_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_frame_count_get"); - private static int frame_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_frame_controller_frame_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IFrameController)wrapper).GetFrameCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_animated_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_animated_get"); + + private static bool animated_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_frame_controller_animated_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IFrameController)wrapper).GetAnimated(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_frame_controller_animated_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_gfx_frame_controller_animated_get_delegate efl_gfx_frame_controller_animated_get_static_delegate; + + + private delegate int efl_gfx_frame_controller_frame_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_gfx_frame_controller_frame_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_frame_get"); + + private static int frame_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_frame_controller_frame_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IFrameController)wrapper).GetFrame(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_frame_controller_frame_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_frame_controller_frame_count_get_delegate efl_gfx_frame_controller_frame_count_get_static_delegate; + private static efl_gfx_frame_controller_frame_get_delegate efl_gfx_frame_controller_frame_get_static_delegate; - private delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_frame_controller_frame_set_delegate(System.IntPtr obj, System.IntPtr pd, int frame_index); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_frame_controller_frame_set_api_delegate(System.IntPtr obj, int frame_index); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_frame_set"); + + private static bool frame_set(System.IntPtr obj, System.IntPtr pd, int frame_index) + { + Eina.Log.Debug("function efl_gfx_frame_controller_frame_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IFrameController)wrapper).SetFrame(frame_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_loop_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_loop_type_get"); - private static Efl.Gfx.FrameControllerLoopHint loop_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_frame_controller_loop_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.FrameControllerLoopHint _ret_var = default(Efl.Gfx.FrameControllerLoopHint); - try { - _ret_var = ((IFrameController)wrapper).GetLoopType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_frame_controller_frame_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), frame_index); + } } - } - private static efl_gfx_frame_controller_loop_type_get_delegate efl_gfx_frame_controller_loop_type_get_static_delegate; + private static efl_gfx_frame_controller_frame_set_delegate efl_gfx_frame_controller_frame_set_static_delegate; - private delegate int efl_gfx_frame_controller_loop_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_gfx_frame_controller_frame_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_gfx_frame_controller_frame_count_get_api_delegate(System.IntPtr obj); - public delegate int efl_gfx_frame_controller_loop_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_loop_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_loop_count_get"); - private static int loop_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_frame_controller_loop_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IFrameController)wrapper).GetLoopCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_frame_count_get"); + + private static int frame_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_frame_controller_frame_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IFrameController)wrapper).GetFrameCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_frame_controller_frame_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_gfx_frame_controller_frame_count_get_delegate efl_gfx_frame_controller_frame_count_get_static_delegate; + + + private delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.FrameControllerLoopHint efl_gfx_frame_controller_loop_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_loop_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_loop_type_get"); + + private static Efl.Gfx.FrameControllerLoopHint loop_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_frame_controller_loop_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.FrameControllerLoopHint _ret_var = default(Efl.Gfx.FrameControllerLoopHint); + try + { + _ret_var = ((IFrameController)wrapper).GetLoopType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_frame_controller_loop_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_frame_controller_loop_count_get_delegate efl_gfx_frame_controller_loop_count_get_static_delegate; + private static efl_gfx_frame_controller_loop_type_get_delegate efl_gfx_frame_controller_loop_type_get_static_delegate; - private delegate double efl_gfx_frame_controller_frame_duration_get_delegate(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num); + + private delegate int efl_gfx_frame_controller_loop_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_gfx_frame_controller_loop_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_loop_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_loop_count_get"); + + private static int loop_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_frame_controller_loop_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IFrameController)wrapper).GetLoopCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate double efl_gfx_frame_controller_frame_duration_get_api_delegate(System.IntPtr obj, int start_frame, int frame_num); - public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_duration_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_frame_controller_frame_duration_get"); - private static double frame_duration_get(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num) - { - Eina.Log.Debug("function efl_gfx_frame_controller_frame_duration_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IFrameController)wrapper).GetFrameDuration( start_frame, frame_num); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_gfx_frame_controller_loop_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_frame_controller_loop_count_get_delegate efl_gfx_frame_controller_loop_count_get_static_delegate; + + + private delegate double efl_gfx_frame_controller_frame_duration_get_delegate(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num); + + + public delegate double efl_gfx_frame_controller_frame_duration_get_api_delegate(System.IntPtr obj, int start_frame, int frame_num); + + public static Efl.Eo.FunctionWrapper efl_gfx_frame_controller_frame_duration_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_frame_controller_frame_duration_get"); + + private static double frame_duration_get(System.IntPtr obj, System.IntPtr pd, int start_frame, int frame_num) + { + Eina.Log.Debug("function efl_gfx_frame_controller_frame_duration_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IFrameController)wrapper).GetFrameDuration(start_frame, frame_num); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_frame, frame_num); + + } + else + { + return efl_gfx_frame_controller_frame_duration_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_frame, frame_num); + } } - } - private static efl_gfx_frame_controller_frame_duration_get_delegate efl_gfx_frame_controller_frame_duration_get_static_delegate; + + private static efl_gfx_frame_controller_frame_duration_get_delegate efl_gfx_frame_controller_frame_duration_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } -namespace Efl { namespace Gfx { + +namespace Efl { + +namespace Gfx { + /// Frame loop modes public enum FrameControllerLoopHint { @@ -503,4 +676,8 @@ Loop = 1, /// Ping-pong bouncing loop: 1->2->3->2->1->2->3->1 Pingpong = 2, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient.eo.cs index 03ec8d6..28a731d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient.eo.cs @@ -3,30 +3,31 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Efl graphics gradient interface -[IGradientNativeInherit] +[Efl.Gfx.IGradientConcrete.NativeMethods] public interface IGradient : Efl.Eo.IWrapper, IDisposable { /// Get the list of color stops. /// Color stops list /// Length of the list -/// -void GetStop( out Efl.Gfx.GradientStop colors, out uint length); +void GetStop(out Efl.Gfx.GradientStop colors, out uint length); /// Set the list of color stops for the gradient /// Color stops list /// Length of the list -/// -void SetStop( ref Efl.Gfx.GradientStop colors, uint length); +void SetStop(ref Efl.Gfx.GradientStop colors, uint length); /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used Efl.Gfx.GradientSpread GetSpread(); /// Specifies the spread method that should be used for this gradient. /// Spread type to be used -/// -void SetSpread( Efl.Gfx.GradientSpread s); +void SetSpread(Efl.Gfx.GradientSpread s); /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used Efl.Gfx.GradientSpread Spread { @@ -41,245 +42,357 @@ IGradient { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IGradientConcrete)) - return Efl.Gfx.IGradientNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IGradientConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_gradient_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IGradientConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IGradientConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Get the list of color stops. /// Color stops list /// Length of the list - /// - public void GetStop( out Efl.Gfx.GradientStop colors, out uint length) { + public void GetStop(out Efl.Gfx.GradientStop colors, out uint length) { var _out_colors = new System.IntPtr(); - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_stop_get_ptr.Value.Delegate(this.NativeHandle, out _out_colors, out length); + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_stop_get_ptr.Value.Delegate(this.NativeHandle,out _out_colors, out length); Eina.Error.RaiseIfUnhandledException(); colors = Eina.PrimitiveConversion.PointerToManaged(_out_colors); } /// Set the list of color stops for the gradient /// Color stops list /// Length of the list - /// - public void SetStop( ref Efl.Gfx.GradientStop colors, uint length) { + public void SetStop(ref Efl.Gfx.GradientStop colors, uint length) { Efl.Gfx.GradientStop.NativeStruct _in_colors = colors; - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_stop_set_ptr.Value.Delegate(this.NativeHandle, ref _in_colors, length); + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_stop_set_ptr.Value.Delegate(this.NativeHandle,ref _in_colors, length); Eina.Error.RaiseIfUnhandledException(); colors = _in_colors; } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used public Efl.Gfx.GradientSpread GetSpread() { - var _ret_var = Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_spread_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies the spread method that should be used for this gradient. /// Spread type to be used - /// - public void SetSpread( Efl.Gfx.GradientSpread s) { - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_spread_set_ptr.Value.Delegate(this.NativeHandle, s); + public void SetSpread(Efl.Gfx.GradientSpread s) { + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_set_ptr.Value.Delegate(this.NativeHandle,s); Eina.Error.RaiseIfUnhandledException(); } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used public Efl.Gfx.GradientSpread Spread { get { return GetSpread(); } - set { SetSpread( value); } + set { SetSpread(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IGradientConcrete.efl_gfx_gradient_interface_get(); } -} -public class IGradientNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_gradient_stop_get_static_delegate == null) - efl_gfx_gradient_stop_get_static_delegate = new efl_gfx_gradient_stop_get_delegate(stop_get); - if (methods.FirstOrDefault(m => m.Name == "GetStop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_stop_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_get_static_delegate)}); - if (efl_gfx_gradient_stop_set_static_delegate == null) - efl_gfx_gradient_stop_set_static_delegate = new efl_gfx_gradient_stop_set_delegate(stop_set); - if (methods.FirstOrDefault(m => m.Name == "SetStop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_stop_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_set_static_delegate)}); - if (efl_gfx_gradient_spread_get_static_delegate == null) - efl_gfx_gradient_spread_get_static_delegate = new efl_gfx_gradient_spread_get_delegate(spread_get); - if (methods.FirstOrDefault(m => m.Name == "GetSpread") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_spread_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_get_static_delegate)}); - if (efl_gfx_gradient_spread_set_static_delegate == null) - efl_gfx_gradient_spread_set_static_delegate = new efl_gfx_gradient_spread_set_delegate(spread_set); - if (methods.FirstOrDefault(m => m.Name == "SetSpread") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_spread_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IGradientConcrete.efl_gfx_gradient_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IGradientConcrete.efl_gfx_gradient_interface_get(); - } + 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_gfx_gradient_stop_get_static_delegate == null) + { + efl_gfx_gradient_stop_get_static_delegate = new efl_gfx_gradient_stop_get_delegate(stop_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_stop_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_get_static_delegate) }); + } + if (efl_gfx_gradient_stop_set_static_delegate == null) + { + efl_gfx_gradient_stop_set_static_delegate = new efl_gfx_gradient_stop_set_delegate(stop_set); + } - private delegate void efl_gfx_gradient_stop_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length); + if (methods.FirstOrDefault(m => m.Name == "SetStop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_stop_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_set_static_delegate) }); + } + if (efl_gfx_gradient_spread_get_static_delegate == null) + { + efl_gfx_gradient_spread_get_static_delegate = new efl_gfx_gradient_spread_get_delegate(spread_get); + } - public delegate void efl_gfx_gradient_stop_get_api_delegate(System.IntPtr obj, out System.IntPtr colors, out uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_stop_get"); - private static void stop_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length) - { - Eina.Log.Debug("function efl_gfx_gradient_stop_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); - length = default(uint); - try { - ((IGradient)wrapper).GetStop( out _out_colors, out length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSpread") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_spread_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_get_static_delegate) }); } + + if (efl_gfx_gradient_spread_set_static_delegate == null) + { + efl_gfx_gradient_spread_set_static_delegate = new efl_gfx_gradient_spread_set_delegate(spread_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSpread") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_spread_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_set_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.Gfx.IGradientConcrete.efl_gfx_gradient_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_gfx_gradient_stop_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length); + + + public delegate void efl_gfx_gradient_stop_get_api_delegate(System.IntPtr obj, out System.IntPtr colors, out uint length); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_stop_get"); + + private static void stop_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length) + { + Eina.Log.Debug("function efl_gfx_gradient_stop_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); + length = default(uint); + try + { + ((IGradient)wrapper).GetStop(out _out_colors, out length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + colors = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_colors); - } else { - efl_gfx_gradient_stop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out colors, out length); + + } + else + { + efl_gfx_gradient_stop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out colors, out length); + } } - } - private static efl_gfx_gradient_stop_get_delegate efl_gfx_gradient_stop_get_static_delegate; + private static efl_gfx_gradient_stop_get_delegate efl_gfx_gradient_stop_get_static_delegate; - private delegate void efl_gfx_gradient_stop_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); + + private delegate void efl_gfx_gradient_stop_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); + + public delegate void efl_gfx_gradient_stop_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); - public delegate void efl_gfx_gradient_stop_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_stop_set"); - private static void stop_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length) - { - Eina.Log.Debug("function efl_gfx_gradient_stop_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientStop _in_colors = colors; + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_stop_set"); + + private static void stop_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length) + { + Eina.Log.Debug("function efl_gfx_gradient_stop_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientStop _in_colors = colors; - try { - ((IGradient)wrapper).SetStop( ref _in_colors, length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((IGradient)wrapper).SetStop(ref _in_colors, length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + colors = _in_colors; - } else { - efl_gfx_gradient_stop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref colors, length); + + } + else + { + efl_gfx_gradient_stop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref colors, length); + } } - } - private static efl_gfx_gradient_stop_set_delegate efl_gfx_gradient_stop_set_static_delegate; + private static efl_gfx_gradient_stop_set_delegate efl_gfx_gradient_stop_set_static_delegate; - private delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_spread_get"); + + private static Efl.Gfx.GradientSpread spread_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_gradient_spread_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientSpread _ret_var = default(Efl.Gfx.GradientSpread); + try + { + _ret_var = ((IGradient)wrapper).GetSpread(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_spread_get"); - private static Efl.Gfx.GradientSpread spread_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_gradient_spread_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientSpread _ret_var = default(Efl.Gfx.GradientSpread); - try { - _ret_var = ((IGradient)wrapper).GetSpread(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_gradient_spread_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_gradient_spread_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_gradient_spread_get_delegate efl_gfx_gradient_spread_get_static_delegate; + private static efl_gfx_gradient_spread_get_delegate efl_gfx_gradient_spread_get_static_delegate; - private delegate void efl_gfx_gradient_spread_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s); + + private delegate void efl_gfx_gradient_spread_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s); + + public delegate void efl_gfx_gradient_spread_set_api_delegate(System.IntPtr obj, Efl.Gfx.GradientSpread s); - public delegate void efl_gfx_gradient_spread_set_api_delegate(System.IntPtr obj, Efl.Gfx.GradientSpread s); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_spread_set"); - private static void spread_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s) - { - Eina.Log.Debug("function efl_gfx_gradient_spread_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IGradient)wrapper).SetSpread( s); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_spread_set"); + + private static void spread_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s) + { + Eina.Log.Debug("function efl_gfx_gradient_spread_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IGradient)wrapper).SetSpread(s); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_spread_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); } - } else { - efl_gfx_gradient_spread_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); } - } - private static efl_gfx_gradient_spread_set_delegate efl_gfx_gradient_spread_set_static_delegate; + + private static efl_gfx_gradient_spread_set_delegate efl_gfx_gradient_spread_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_linear.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_linear.eo.cs index a72aa4f..ef1a920 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_linear.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_linear.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Efl graphics gradient linear interface -[IGradientLinearNativeInherit] +[Efl.Gfx.IGradientLinearConcrete.NativeMethods] public interface IGradientLinear : Efl.Gfx.IGradient , Efl.Eo.IWrapper, IDisposable @@ -14,23 +18,19 @@ public interface IGradientLinear : /// Gets the start point of this linear gradient. /// X co-ordinate of start point /// Y co-ordinate of start point -/// -void GetStart( out double x, out double y); +void GetStart(out double x, out double y); /// Sets the start point of this linear gradient. /// X co-ordinate of start point /// Y co-ordinate of start point -/// -void SetStart( double x, double y); +void SetStart(double x, double y); /// Gets the end point of this linear gradient. /// X co-ordinate of end point /// Y co-ordinate of end point -/// -void GetEnd( out double x, out double y); +void GetEnd(out double x, out double y); /// Sets the end point of this linear gradient. /// X co-ordinate of end point /// Y co-ordinate of end point -/// -void SetEnd( double x, double y); +void SetEnd(double x, double y); } /// Efl graphics gradient linear interface sealed public class IGradientLinearConcrete : @@ -39,389 +39,565 @@ IGradientLinear , Efl.Gfx.IGradient { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IGradientLinearConcrete)) - return Efl.Gfx.IGradientLinearNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IGradientLinearConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_gradient_linear_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IGradientLinearConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IGradientLinearConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Gets the start point of this linear gradient. /// X co-ordinate of start point /// Y co-ordinate of start point - /// - public void GetStart( out double x, out double y) { - Efl.Gfx.IGradientLinearNativeInherit.efl_gfx_gradient_linear_start_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetStart(out double x, out double y) { + Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_start_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Sets the start point of this linear gradient. /// X co-ordinate of start point /// Y co-ordinate of start point - /// - public void SetStart( double x, double y) { - Efl.Gfx.IGradientLinearNativeInherit.efl_gfx_gradient_linear_start_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetStart(double x, double y) { + Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_start_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Gets the end point of this linear gradient. /// X co-ordinate of end point /// Y co-ordinate of end point - /// - public void GetEnd( out double x, out double y) { - Efl.Gfx.IGradientLinearNativeInherit.efl_gfx_gradient_linear_end_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetEnd(out double x, out double y) { + Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_end_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Sets the end point of this linear gradient. /// X co-ordinate of end point /// Y co-ordinate of end point - /// - public void SetEnd( double x, double y) { - Efl.Gfx.IGradientLinearNativeInherit.efl_gfx_gradient_linear_end_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetEnd(double x, double y) { + Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_end_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Get the list of color stops. /// Color stops list /// Length of the list - /// - public void GetStop( out Efl.Gfx.GradientStop colors, out uint length) { + public void GetStop(out Efl.Gfx.GradientStop colors, out uint length) { var _out_colors = new System.IntPtr(); - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_stop_get_ptr.Value.Delegate(this.NativeHandle, out _out_colors, out length); + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_stop_get_ptr.Value.Delegate(this.NativeHandle,out _out_colors, out length); Eina.Error.RaiseIfUnhandledException(); colors = Eina.PrimitiveConversion.PointerToManaged(_out_colors); } /// Set the list of color stops for the gradient /// Color stops list /// Length of the list - /// - public void SetStop( ref Efl.Gfx.GradientStop colors, uint length) { + public void SetStop(ref Efl.Gfx.GradientStop colors, uint length) { Efl.Gfx.GradientStop.NativeStruct _in_colors = colors; - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_stop_set_ptr.Value.Delegate(this.NativeHandle, ref _in_colors, length); + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_stop_set_ptr.Value.Delegate(this.NativeHandle,ref _in_colors, length); Eina.Error.RaiseIfUnhandledException(); colors = _in_colors; } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used public Efl.Gfx.GradientSpread GetSpread() { - var _ret_var = Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_spread_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies the spread method that should be used for this gradient. /// Spread type to be used - /// - public void SetSpread( Efl.Gfx.GradientSpread s) { - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_spread_set_ptr.Value.Delegate(this.NativeHandle, s); + public void SetSpread(Efl.Gfx.GradientSpread s) { + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_set_ptr.Value.Delegate(this.NativeHandle,s); Eina.Error.RaiseIfUnhandledException(); } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used public Efl.Gfx.GradientSpread Spread { get { return GetSpread(); } - set { SetSpread( value); } + set { SetSpread(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IGradientLinearConcrete.efl_gfx_gradient_linear_interface_get(); } -} -public class IGradientLinearNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_gradient_linear_start_get_static_delegate == null) - efl_gfx_gradient_linear_start_get_static_delegate = new efl_gfx_gradient_linear_start_get_delegate(start_get); - if (methods.FirstOrDefault(m => m.Name == "GetStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_start_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_get_static_delegate)}); - if (efl_gfx_gradient_linear_start_set_static_delegate == null) - efl_gfx_gradient_linear_start_set_static_delegate = new efl_gfx_gradient_linear_start_set_delegate(start_set); - if (methods.FirstOrDefault(m => m.Name == "SetStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_start_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_set_static_delegate)}); - if (efl_gfx_gradient_linear_end_get_static_delegate == null) - efl_gfx_gradient_linear_end_get_static_delegate = new efl_gfx_gradient_linear_end_get_delegate(end_get); - if (methods.FirstOrDefault(m => m.Name == "GetEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_end_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_get_static_delegate)}); - if (efl_gfx_gradient_linear_end_set_static_delegate == null) - efl_gfx_gradient_linear_end_set_static_delegate = new efl_gfx_gradient_linear_end_set_delegate(end_set); - if (methods.FirstOrDefault(m => m.Name == "SetEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_linear_end_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_set_static_delegate)}); - if (efl_gfx_gradient_stop_get_static_delegate == null) - efl_gfx_gradient_stop_get_static_delegate = new efl_gfx_gradient_stop_get_delegate(stop_get); - if (methods.FirstOrDefault(m => m.Name == "GetStop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_stop_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_get_static_delegate)}); - if (efl_gfx_gradient_stop_set_static_delegate == null) - efl_gfx_gradient_stop_set_static_delegate = new efl_gfx_gradient_stop_set_delegate(stop_set); - if (methods.FirstOrDefault(m => m.Name == "SetStop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_stop_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_set_static_delegate)}); - if (efl_gfx_gradient_spread_get_static_delegate == null) - efl_gfx_gradient_spread_get_static_delegate = new efl_gfx_gradient_spread_get_delegate(spread_get); - if (methods.FirstOrDefault(m => m.Name == "GetSpread") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_spread_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_get_static_delegate)}); - if (efl_gfx_gradient_spread_set_static_delegate == null) - efl_gfx_gradient_spread_set_static_delegate = new efl_gfx_gradient_spread_set_delegate(spread_set); - if (methods.FirstOrDefault(m => m.Name == "SetSpread") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_spread_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IGradientLinearConcrete.efl_gfx_gradient_linear_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IGradientLinearConcrete.efl_gfx_gradient_linear_interface_get(); - } + 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_gfx_gradient_linear_start_get_static_delegate == null) + { + efl_gfx_gradient_linear_start_get_static_delegate = new efl_gfx_gradient_linear_start_get_delegate(start_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_start_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_get_static_delegate) }); + } - private delegate void efl_gfx_gradient_linear_start_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (efl_gfx_gradient_linear_start_set_static_delegate == null) + { + efl_gfx_gradient_linear_start_set_static_delegate = new efl_gfx_gradient_linear_start_set_delegate(start_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_start_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_set_static_delegate) }); + } - public delegate void efl_gfx_gradient_linear_start_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_start_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_linear_start_get"); - private static void start_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_gradient_linear_start_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IGradientLinear)wrapper).GetStart( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_linear_start_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + if (efl_gfx_gradient_linear_end_get_static_delegate == null) + { + efl_gfx_gradient_linear_end_get_static_delegate = new efl_gfx_gradient_linear_end_get_delegate(end_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_end_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_get_static_delegate) }); + } + + if (efl_gfx_gradient_linear_end_set_static_delegate == null) + { + efl_gfx_gradient_linear_end_set_static_delegate = new efl_gfx_gradient_linear_end_set_delegate(end_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_end_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_set_static_delegate) }); + } + + if (efl_gfx_gradient_stop_get_static_delegate == null) + { + efl_gfx_gradient_stop_get_static_delegate = new efl_gfx_gradient_stop_get_delegate(stop_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_stop_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_get_static_delegate) }); + } + + if (efl_gfx_gradient_stop_set_static_delegate == null) + { + efl_gfx_gradient_stop_set_static_delegate = new efl_gfx_gradient_stop_set_delegate(stop_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetStop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_stop_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_set_static_delegate) }); + } + + if (efl_gfx_gradient_spread_get_static_delegate == null) + { + efl_gfx_gradient_spread_get_static_delegate = new efl_gfx_gradient_spread_get_delegate(spread_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSpread") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_spread_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_get_static_delegate) }); + } + + if (efl_gfx_gradient_spread_set_static_delegate == null) + { + efl_gfx_gradient_spread_set_static_delegate = new efl_gfx_gradient_spread_set_delegate(spread_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSpread") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_spread_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_set_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.Gfx.IGradientLinearConcrete.efl_gfx_gradient_linear_interface_get(); } - } - private static efl_gfx_gradient_linear_start_get_delegate efl_gfx_gradient_linear_start_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_gfx_gradient_linear_start_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_gfx_gradient_linear_start_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + public delegate void efl_gfx_gradient_linear_start_get_api_delegate(System.IntPtr obj, out double x, out double y); - public delegate void efl_gfx_gradient_linear_start_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_start_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_linear_start_set"); - private static void start_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_gradient_linear_start_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IGradientLinear)wrapper).SetStart( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_linear_start_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_start_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_start_get"); + + private static void start_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_gradient_linear_start_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IGradientLinear)wrapper).GetStart(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_linear_start_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } } - } - private static efl_gfx_gradient_linear_start_set_delegate efl_gfx_gradient_linear_start_set_static_delegate; + private static efl_gfx_gradient_linear_start_get_delegate efl_gfx_gradient_linear_start_get_static_delegate; - private delegate void efl_gfx_gradient_linear_end_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + private delegate void efl_gfx_gradient_linear_start_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + public delegate void efl_gfx_gradient_linear_start_set_api_delegate(System.IntPtr obj, double x, double y); - public delegate void efl_gfx_gradient_linear_end_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_end_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_linear_end_get"); - private static void end_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_gradient_linear_end_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IGradientLinear)wrapper).GetEnd( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_linear_end_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_start_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_start_set"); + + private static void start_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_gradient_linear_start_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IGradientLinear)wrapper).SetStart(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_linear_start_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } } - } - private static efl_gfx_gradient_linear_end_get_delegate efl_gfx_gradient_linear_end_get_static_delegate; + private static efl_gfx_gradient_linear_start_set_delegate efl_gfx_gradient_linear_start_set_static_delegate; - private delegate void efl_gfx_gradient_linear_end_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_gfx_gradient_linear_end_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + public delegate void efl_gfx_gradient_linear_end_get_api_delegate(System.IntPtr obj, out double x, out double y); - public delegate void efl_gfx_gradient_linear_end_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_end_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_linear_end_set"); - private static void end_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_gradient_linear_end_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IGradientLinear)wrapper).SetEnd( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_linear_end_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_end_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_end_get"); + + private static void end_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_gradient_linear_end_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IGradientLinear)wrapper).GetEnd(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_linear_end_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } } - } - private static efl_gfx_gradient_linear_end_set_delegate efl_gfx_gradient_linear_end_set_static_delegate; + private static efl_gfx_gradient_linear_end_get_delegate efl_gfx_gradient_linear_end_get_static_delegate; - private delegate void efl_gfx_gradient_stop_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length); + + private delegate void efl_gfx_gradient_linear_end_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + public delegate void efl_gfx_gradient_linear_end_set_api_delegate(System.IntPtr obj, double x, double y); - public delegate void efl_gfx_gradient_stop_get_api_delegate(System.IntPtr obj, out System.IntPtr colors, out uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_stop_get"); - private static void stop_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length) - { - Eina.Log.Debug("function efl_gfx_gradient_stop_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); - length = default(uint); - try { - ((IGradientLinear)wrapper).GetStop( out _out_colors, out length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_end_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_end_set"); + + private static void end_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_gradient_linear_end_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IGradientLinear)wrapper).SetEnd(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_linear_end_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } + } + + private static efl_gfx_gradient_linear_end_set_delegate efl_gfx_gradient_linear_end_set_static_delegate; + + + private delegate void efl_gfx_gradient_stop_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length); + + + public delegate void efl_gfx_gradient_stop_get_api_delegate(System.IntPtr obj, out System.IntPtr colors, out uint length); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_stop_get"); + + private static void stop_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length) + { + Eina.Log.Debug("function efl_gfx_gradient_stop_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); + length = default(uint); + try + { + ((IGradientLinear)wrapper).GetStop(out _out_colors, out length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + colors = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_colors); - } else { - efl_gfx_gradient_stop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out colors, out length); + + } + else + { + efl_gfx_gradient_stop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out colors, out length); + } } - } - private static efl_gfx_gradient_stop_get_delegate efl_gfx_gradient_stop_get_static_delegate; + private static efl_gfx_gradient_stop_get_delegate efl_gfx_gradient_stop_get_static_delegate; - private delegate void efl_gfx_gradient_stop_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); + + private delegate void efl_gfx_gradient_stop_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); + + public delegate void efl_gfx_gradient_stop_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); - public delegate void efl_gfx_gradient_stop_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_stop_set"); - private static void stop_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length) - { - Eina.Log.Debug("function efl_gfx_gradient_stop_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientStop _in_colors = colors; + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_stop_set"); + + private static void stop_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length) + { + Eina.Log.Debug("function efl_gfx_gradient_stop_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientStop _in_colors = colors; - try { - ((IGradientLinear)wrapper).SetStop( ref _in_colors, length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((IGradientLinear)wrapper).SetStop(ref _in_colors, length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + colors = _in_colors; - } else { - efl_gfx_gradient_stop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref colors, length); + + } + else + { + efl_gfx_gradient_stop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref colors, length); + } } - } - private static efl_gfx_gradient_stop_set_delegate efl_gfx_gradient_stop_set_static_delegate; + private static efl_gfx_gradient_stop_set_delegate efl_gfx_gradient_stop_set_static_delegate; - private delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_spread_get"); + + private static Efl.Gfx.GradientSpread spread_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_gradient_spread_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientSpread _ret_var = default(Efl.Gfx.GradientSpread); + try + { + _ret_var = ((IGradientLinear)wrapper).GetSpread(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_spread_get"); - private static Efl.Gfx.GradientSpread spread_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_gradient_spread_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientSpread _ret_var = default(Efl.Gfx.GradientSpread); - try { - _ret_var = ((IGradientLinear)wrapper).GetSpread(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_gradient_spread_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_gradient_spread_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_gradient_spread_get_delegate efl_gfx_gradient_spread_get_static_delegate; + private static efl_gfx_gradient_spread_get_delegate efl_gfx_gradient_spread_get_static_delegate; - private delegate void efl_gfx_gradient_spread_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s); + + private delegate void efl_gfx_gradient_spread_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s); + + public delegate void efl_gfx_gradient_spread_set_api_delegate(System.IntPtr obj, Efl.Gfx.GradientSpread s); - public delegate void efl_gfx_gradient_spread_set_api_delegate(System.IntPtr obj, Efl.Gfx.GradientSpread s); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_spread_set"); - private static void spread_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s) - { - Eina.Log.Debug("function efl_gfx_gradient_spread_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IGradientLinear)wrapper).SetSpread( s); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_spread_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_spread_set"); + + private static void spread_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s) + { + Eina.Log.Debug("function efl_gfx_gradient_spread_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IGradientLinear)wrapper).SetSpread(s); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_spread_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); + } } - } - private static efl_gfx_gradient_spread_set_delegate efl_gfx_gradient_spread_set_static_delegate; + + private static efl_gfx_gradient_spread_set_delegate efl_gfx_gradient_spread_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_radial.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_radial.eo.cs index b14399c..bfb2766 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_radial.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_radial.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Efl graphics gradient radial interface -[IGradientRadialNativeInherit] +[Efl.Gfx.IGradientRadialConcrete.NativeMethods] public interface IGradientRadial : Efl.Gfx.IGradient , Efl.Eo.IWrapper, IDisposable @@ -14,30 +18,25 @@ public interface IGradientRadial : /// Gets the center of this radial gradient. /// X co-ordinate of center point /// Y co-ordinate of center point -/// -void GetCenter( out double x, out double y); +void GetCenter(out double x, out double y); /// Sets the center of this radial gradient. /// X co-ordinate of center point /// Y co-ordinate of center point -/// -void SetCenter( double x, double y); +void SetCenter(double x, double y); /// Gets the center radius of this radial gradient. /// Center radius double GetRadius(); /// Sets the center radius of this radial gradient. /// Center radius -/// -void SetRadius( double r); +void SetRadius(double r); /// Gets the focal point of this radial gradient. /// X co-ordinate of focal point /// Y co-ordinate of focal point -/// -void GetFocal( out double x, out double y); +void GetFocal(out double x, out double y); /// Sets the focal point of this radial gradient. /// X co-ordinate of focal point /// Y co-ordinate of focal point -/// -void SetFocal( double x, double y); +void SetFocal(double x, double y); /// Gets the center radius of this radial gradient. /// Center radius double Radius { @@ -52,466 +51,675 @@ IGradientRadial , Efl.Gfx.IGradient { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IGradientRadialConcrete)) - return Efl.Gfx.IGradientRadialNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IGradientRadialConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_gradient_radial_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IGradientRadialConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IGradientRadialConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Gets the center of this radial gradient. /// X co-ordinate of center point /// Y co-ordinate of center point - /// - public void GetCenter( out double x, out double y) { - Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_center_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetCenter(out double x, out double y) { + Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_center_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Sets the center of this radial gradient. /// X co-ordinate of center point /// Y co-ordinate of center point - /// - public void SetCenter( double x, double y) { - Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_center_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetCenter(double x, double y) { + Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_center_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Gets the center radius of this radial gradient. /// Center radius public double GetRadius() { - var _ret_var = Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_radius_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_radius_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the center radius of this radial gradient. /// Center radius - /// - public void SetRadius( double r) { - Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_radius_set_ptr.Value.Delegate(this.NativeHandle, r); + public void SetRadius(double r) { + Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_radius_set_ptr.Value.Delegate(this.NativeHandle,r); Eina.Error.RaiseIfUnhandledException(); } /// Gets the focal point of this radial gradient. /// X co-ordinate of focal point /// Y co-ordinate of focal point - /// - public void GetFocal( out double x, out double y) { - Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_focal_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetFocal(out double x, out double y) { + Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_focal_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Sets the focal point of this radial gradient. /// X co-ordinate of focal point /// Y co-ordinate of focal point - /// - public void SetFocal( double x, double y) { - Efl.Gfx.IGradientRadialNativeInherit.efl_gfx_gradient_radial_focal_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetFocal(double x, double y) { + Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_focal_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Get the list of color stops. /// Color stops list /// Length of the list - /// - public void GetStop( out Efl.Gfx.GradientStop colors, out uint length) { + public void GetStop(out Efl.Gfx.GradientStop colors, out uint length) { var _out_colors = new System.IntPtr(); - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_stop_get_ptr.Value.Delegate(this.NativeHandle, out _out_colors, out length); + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_stop_get_ptr.Value.Delegate(this.NativeHandle,out _out_colors, out length); Eina.Error.RaiseIfUnhandledException(); colors = Eina.PrimitiveConversion.PointerToManaged(_out_colors); } /// Set the list of color stops for the gradient /// Color stops list /// Length of the list - /// - public void SetStop( ref Efl.Gfx.GradientStop colors, uint length) { + public void SetStop(ref Efl.Gfx.GradientStop colors, uint length) { Efl.Gfx.GradientStop.NativeStruct _in_colors = colors; - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_stop_set_ptr.Value.Delegate(this.NativeHandle, ref _in_colors, length); + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_stop_set_ptr.Value.Delegate(this.NativeHandle,ref _in_colors, length); Eina.Error.RaiseIfUnhandledException(); colors = _in_colors; } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used public Efl.Gfx.GradientSpread GetSpread() { - var _ret_var = Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_spread_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies the spread method that should be used for this gradient. /// Spread type to be used - /// - public void SetSpread( Efl.Gfx.GradientSpread s) { - Efl.Gfx.IGradientNativeInherit.efl_gfx_gradient_spread_set_ptr.Value.Delegate(this.NativeHandle, s); + public void SetSpread(Efl.Gfx.GradientSpread s) { + Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_set_ptr.Value.Delegate(this.NativeHandle,s); Eina.Error.RaiseIfUnhandledException(); } /// Gets the center radius of this radial gradient. /// Center radius public double Radius { get { return GetRadius(); } - set { SetRadius( value); } + set { SetRadius(value); } } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used public Efl.Gfx.GradientSpread Spread { get { return GetSpread(); } - set { SetSpread( value); } + set { SetSpread(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IGradientRadialConcrete.efl_gfx_gradient_radial_interface_get(); } -} -public class IGradientRadialNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_gradient_radial_center_get_static_delegate == null) - efl_gfx_gradient_radial_center_get_static_delegate = new efl_gfx_gradient_radial_center_get_delegate(center_get); - if (methods.FirstOrDefault(m => m.Name == "GetCenter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_center_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_center_get_static_delegate)}); - if (efl_gfx_gradient_radial_center_set_static_delegate == null) - efl_gfx_gradient_radial_center_set_static_delegate = new efl_gfx_gradient_radial_center_set_delegate(center_set); - if (methods.FirstOrDefault(m => m.Name == "SetCenter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_center_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_center_set_static_delegate)}); - if (efl_gfx_gradient_radial_radius_get_static_delegate == null) - efl_gfx_gradient_radial_radius_get_static_delegate = new efl_gfx_gradient_radial_radius_get_delegate(radius_get); - if (methods.FirstOrDefault(m => m.Name == "GetRadius") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_radius_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_radius_get_static_delegate)}); - if (efl_gfx_gradient_radial_radius_set_static_delegate == null) - efl_gfx_gradient_radial_radius_set_static_delegate = new efl_gfx_gradient_radial_radius_set_delegate(radius_set); - if (methods.FirstOrDefault(m => m.Name == "SetRadius") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_radius_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_radius_set_static_delegate)}); - if (efl_gfx_gradient_radial_focal_get_static_delegate == null) - efl_gfx_gradient_radial_focal_get_static_delegate = new efl_gfx_gradient_radial_focal_get_delegate(focal_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_focal_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_focal_get_static_delegate)}); - if (efl_gfx_gradient_radial_focal_set_static_delegate == null) - efl_gfx_gradient_radial_focal_set_static_delegate = new efl_gfx_gradient_radial_focal_set_delegate(focal_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_focal_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_focal_set_static_delegate)}); - if (efl_gfx_gradient_stop_get_static_delegate == null) - efl_gfx_gradient_stop_get_static_delegate = new efl_gfx_gradient_stop_get_delegate(stop_get); - if (methods.FirstOrDefault(m => m.Name == "GetStop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_stop_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_get_static_delegate)}); - if (efl_gfx_gradient_stop_set_static_delegate == null) - efl_gfx_gradient_stop_set_static_delegate = new efl_gfx_gradient_stop_set_delegate(stop_set); - if (methods.FirstOrDefault(m => m.Name == "SetStop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_stop_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_set_static_delegate)}); - if (efl_gfx_gradient_spread_get_static_delegate == null) - efl_gfx_gradient_spread_get_static_delegate = new efl_gfx_gradient_spread_get_delegate(spread_get); - if (methods.FirstOrDefault(m => m.Name == "GetSpread") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_spread_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_get_static_delegate)}); - if (efl_gfx_gradient_spread_set_static_delegate == null) - efl_gfx_gradient_spread_set_static_delegate = new efl_gfx_gradient_spread_set_delegate(spread_set); - if (methods.FirstOrDefault(m => m.Name == "SetSpread") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_spread_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IGradientRadialConcrete.efl_gfx_gradient_radial_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IGradientRadialConcrete.efl_gfx_gradient_radial_interface_get(); - } + 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_gfx_gradient_radial_center_get_static_delegate == null) + { + efl_gfx_gradient_radial_center_get_static_delegate = new efl_gfx_gradient_radial_center_get_delegate(center_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCenter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_center_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_center_get_static_delegate) }); + } - private delegate void efl_gfx_gradient_radial_center_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (efl_gfx_gradient_radial_center_set_static_delegate == null) + { + efl_gfx_gradient_radial_center_set_static_delegate = new efl_gfx_gradient_radial_center_set_delegate(center_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCenter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_center_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_center_set_static_delegate) }); + } - public delegate void efl_gfx_gradient_radial_center_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_center_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_center_get"); - private static void center_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_center_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IGradientRadial)wrapper).GetCenter( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_radial_center_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_gfx_gradient_radial_center_get_delegate efl_gfx_gradient_radial_center_get_static_delegate; + if (efl_gfx_gradient_radial_radius_get_static_delegate == null) + { + efl_gfx_gradient_radial_radius_get_static_delegate = new efl_gfx_gradient_radial_radius_get_delegate(radius_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRadius") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_radius_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_radius_get_static_delegate) }); + } - private delegate void efl_gfx_gradient_radial_center_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + if (efl_gfx_gradient_radial_radius_set_static_delegate == null) + { + efl_gfx_gradient_radial_radius_set_static_delegate = new efl_gfx_gradient_radial_radius_set_delegate(radius_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRadius") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_radius_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_radius_set_static_delegate) }); + } - public delegate void efl_gfx_gradient_radial_center_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_center_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_center_set"); - private static void center_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_center_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IGradientRadial)wrapper).SetCenter( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_radial_center_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static efl_gfx_gradient_radial_center_set_delegate efl_gfx_gradient_radial_center_set_static_delegate; + if (efl_gfx_gradient_radial_focal_get_static_delegate == null) + { + efl_gfx_gradient_radial_focal_get_static_delegate = new efl_gfx_gradient_radial_focal_get_delegate(focal_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFocal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_focal_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_focal_get_static_delegate) }); + } - private delegate double efl_gfx_gradient_radial_radius_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_gradient_radial_focal_set_static_delegate == null) + { + efl_gfx_gradient_radial_focal_set_static_delegate = new efl_gfx_gradient_radial_focal_set_delegate(focal_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFocal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_radial_focal_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_focal_set_static_delegate) }); + } - public delegate double efl_gfx_gradient_radial_radius_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_radius_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_radius_get"); - private static double radius_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_radius_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IGradientRadial)wrapper).GetRadius(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_gradient_stop_get_static_delegate == null) + { + efl_gfx_gradient_stop_get_static_delegate = new efl_gfx_gradient_stop_get_delegate(stop_get); } - return _ret_var; - } else { - return efl_gfx_gradient_radial_radius_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_gradient_radial_radius_get_delegate efl_gfx_gradient_radial_radius_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetStop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_stop_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_get_static_delegate) }); + } - private delegate void efl_gfx_gradient_radial_radius_set_delegate(System.IntPtr obj, System.IntPtr pd, double r); + if (efl_gfx_gradient_stop_set_static_delegate == null) + { + efl_gfx_gradient_stop_set_static_delegate = new efl_gfx_gradient_stop_set_delegate(stop_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_stop_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_stop_set_static_delegate) }); + } - public delegate void efl_gfx_gradient_radial_radius_set_api_delegate(System.IntPtr obj, double r); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_radius_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_radius_set"); - private static void radius_set(System.IntPtr obj, System.IntPtr pd, double r) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_radius_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IGradientRadial)wrapper).SetRadius( r); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_radial_radius_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r); - } - } - private static efl_gfx_gradient_radial_radius_set_delegate efl_gfx_gradient_radial_radius_set_static_delegate; + if (efl_gfx_gradient_spread_get_static_delegate == null) + { + efl_gfx_gradient_spread_get_static_delegate = new efl_gfx_gradient_spread_get_delegate(spread_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetSpread") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_spread_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_get_static_delegate) }); + } - private delegate void efl_gfx_gradient_radial_focal_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (efl_gfx_gradient_spread_set_static_delegate == null) + { + efl_gfx_gradient_spread_set_static_delegate = new efl_gfx_gradient_spread_set_delegate(spread_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetSpread") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_spread_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_spread_set_static_delegate) }); + } - public delegate void efl_gfx_gradient_radial_focal_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_focal_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_focal_get"); - private static void focal_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_focal_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IGradientRadial)wrapper).GetFocal( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_radial_focal_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Gfx.IGradientRadialConcrete.efl_gfx_gradient_radial_interface_get(); } - } - private static efl_gfx_gradient_radial_focal_get_delegate efl_gfx_gradient_radial_focal_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_gfx_gradient_radial_center_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_gradient_radial_center_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_center_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_center_get"); + + private static void center_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_center_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IGradientRadial)wrapper).GetCenter(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_radial_center_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_gfx_gradient_radial_center_get_delegate efl_gfx_gradient_radial_center_get_static_delegate; + + + private delegate void efl_gfx_gradient_radial_center_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_gradient_radial_center_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_center_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_center_set"); + + private static void center_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_center_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IGradientRadial)wrapper).SetCenter(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_radial_center_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } - private delegate void efl_gfx_gradient_radial_focal_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + private static efl_gfx_gradient_radial_center_set_delegate efl_gfx_gradient_radial_center_set_static_delegate; + + + private delegate double efl_gfx_gradient_radial_radius_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_gradient_radial_radius_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_radius_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_radius_get"); + + private static double radius_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_radius_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IGradientRadial)wrapper).GetRadius(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_gradient_radial_focal_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_focal_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_radial_focal_set"); - private static void focal_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_gradient_radial_focal_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IGradientRadial)wrapper).SetFocal( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_radial_focal_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + else + { + return efl_gfx_gradient_radial_radius_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_gradient_radial_radius_get_delegate efl_gfx_gradient_radial_radius_get_static_delegate; + + + private delegate void efl_gfx_gradient_radial_radius_set_delegate(System.IntPtr obj, System.IntPtr pd, double r); + + + public delegate void efl_gfx_gradient_radial_radius_set_api_delegate(System.IntPtr obj, double r); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_radius_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_radius_set"); + + private static void radius_set(System.IntPtr obj, System.IntPtr pd, double r) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_radius_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IGradientRadial)wrapper).SetRadius(r); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_radial_radius_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r); + } + } + + private static efl_gfx_gradient_radial_radius_set_delegate efl_gfx_gradient_radial_radius_set_static_delegate; + + + private delegate void efl_gfx_gradient_radial_focal_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_gradient_radial_focal_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_focal_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_focal_get"); + + private static void focal_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_focal_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IGradientRadial)wrapper).GetFocal(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_radial_focal_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_gfx_gradient_radial_focal_get_delegate efl_gfx_gradient_radial_focal_get_static_delegate; + + + private delegate void efl_gfx_gradient_radial_focal_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_gradient_radial_focal_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_radial_focal_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_radial_focal_set"); + + private static void focal_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_gradient_radial_focal_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IGradientRadial)wrapper).SetFocal(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_radial_focal_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } } - } - private static efl_gfx_gradient_radial_focal_set_delegate efl_gfx_gradient_radial_focal_set_static_delegate; + private static efl_gfx_gradient_radial_focal_set_delegate efl_gfx_gradient_radial_focal_set_static_delegate; - private delegate void efl_gfx_gradient_stop_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length); + + private delegate void efl_gfx_gradient_stop_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length); + + public delegate void efl_gfx_gradient_stop_get_api_delegate(System.IntPtr obj, out System.IntPtr colors, out uint length); - public delegate void efl_gfx_gradient_stop_get_api_delegate(System.IntPtr obj, out System.IntPtr colors, out uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_stop_get"); - private static void stop_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length) - { - Eina.Log.Debug("function efl_gfx_gradient_stop_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_stop_get"); + + private static void stop_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr colors, out uint length) + { + Eina.Log.Debug("function efl_gfx_gradient_stop_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); length = default(uint); - try { - ((IGradientRadial)wrapper).GetStop( out _out_colors, out length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((IGradientRadial)wrapper).GetStop(out _out_colors, out length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + colors = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_colors); - } else { - efl_gfx_gradient_stop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out colors, out length); + + } + else + { + efl_gfx_gradient_stop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out colors, out length); + } } - } - private static efl_gfx_gradient_stop_get_delegate efl_gfx_gradient_stop_get_static_delegate; + private static efl_gfx_gradient_stop_get_delegate efl_gfx_gradient_stop_get_static_delegate; - private delegate void efl_gfx_gradient_stop_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); + + private delegate void efl_gfx_gradient_stop_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); + + public delegate void efl_gfx_gradient_stop_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); - public delegate void efl_gfx_gradient_stop_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_stop_set"); - private static void stop_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length) - { - Eina.Log.Debug("function efl_gfx_gradient_stop_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientStop _in_colors = colors; + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_stop_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_stop_set"); + + private static void stop_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.GradientStop.NativeStruct colors, uint length) + { + Eina.Log.Debug("function efl_gfx_gradient_stop_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientStop _in_colors = colors; - try { - ((IGradientRadial)wrapper).SetStop( ref _in_colors, length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((IGradientRadial)wrapper).SetStop(ref _in_colors, length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + colors = _in_colors; - } else { - efl_gfx_gradient_stop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref colors, length); + + } + else + { + efl_gfx_gradient_stop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref colors, length); + } } - } - private static efl_gfx_gradient_stop_set_delegate efl_gfx_gradient_stop_set_static_delegate; + private static efl_gfx_gradient_stop_set_delegate efl_gfx_gradient_stop_set_static_delegate; + + + private delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_spread_get"); + + private static Efl.Gfx.GradientSpread spread_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_gradient_spread_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.GradientSpread _ret_var = default(Efl.Gfx.GradientSpread); + try + { + _ret_var = ((IGradientRadial)wrapper).GetSpread(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_gradient_spread_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.Gfx.GradientSpread efl_gfx_gradient_spread_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_spread_get"); - private static Efl.Gfx.GradientSpread spread_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_gradient_spread_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.GradientSpread _ret_var = default(Efl.Gfx.GradientSpread); - try { - _ret_var = ((IGradientRadial)wrapper).GetSpread(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_gradient_spread_get_delegate efl_gfx_gradient_spread_get_static_delegate; + + + private delegate void efl_gfx_gradient_spread_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s); + + + public delegate void efl_gfx_gradient_spread_set_api_delegate(System.IntPtr obj, Efl.Gfx.GradientSpread s); + + public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_spread_set"); + + private static void spread_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s) + { + Eina.Log.Debug("function efl_gfx_gradient_spread_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IGradientRadial)wrapper).SetSpread(s); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_gradient_spread_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); } - return _ret_var; - } else { - return efl_gfx_gradient_spread_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_gradient_spread_get_delegate efl_gfx_gradient_spread_get_static_delegate; + private static efl_gfx_gradient_spread_set_delegate efl_gfx_gradient_spread_set_static_delegate; - private delegate void efl_gfx_gradient_spread_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_gfx_gradient_spread_set_api_delegate(System.IntPtr obj, Efl.Gfx.GradientSpread s); - public static Efl.Eo.FunctionWrapper efl_gfx_gradient_spread_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_gradient_spread_set"); - private static void spread_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.GradientSpread s) - { - Eina.Log.Debug("function efl_gfx_gradient_spread_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IGradientRadial)wrapper).SetSpread( s); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_gradient_spread_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); - } - } - private static efl_gfx_gradient_spread_set_delegate efl_gfx_gradient_spread_set_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_hint.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_hint.eo.cs index 6d2f43d..74914b7 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_hint.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_hint.eo.cs @@ -3,16 +3,27 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { -public partial class Constants { +namespace Efl { + +namespace Gfx { + +public partial class Constants +{ public static readonly double HintExpand = 1.000000; } -} } -namespace Efl { namespace Gfx { +} + +} + +namespace Efl { + +namespace Gfx { + /// Efl graphics hint interface /// (Since EFL 1.22) -[IHintNativeInherit] +[Efl.Gfx.IHintConcrete.NativeMethods] public interface IHint : Efl.Eo.IWrapper, IDisposable { @@ -23,8 +34,7 @@ public interface IHint : /// (Since EFL 1.22) /// Mode of interpretation. /// Base size to use for aspecting. -/// -void GetHintAspect( out Efl.Gfx.HintAspect mode, out Eina.Size2D sz); +void GetHintAspect(out Efl.Gfx.HintAspect mode, out Eina.Size2D sz); /// Defines the aspect ratio to respect when scaling this object. /// The aspect ratio is defined as the width / height ratio of the object. Depending on the object and its container, this hint may or may not be fully respected. /// @@ -32,8 +42,7 @@ void GetHintAspect( out Efl.Gfx.HintAspect mode, out Eina.Size2D sz); /// (Since EFL 1.22) /// Mode of interpretation. /// Base size to use for aspecting. -/// -void SetHintAspect( Efl.Gfx.HintAspect mode, Eina.Size2D sz); +void SetHintAspect(Efl.Gfx.HintAspect mode, Eina.Size2D sz); /// Hints on the object's maximum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. /// @@ -55,8 +64,7 @@ Eina.Size2D GetHintSizeMax(); /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). -/// -void SetHintSizeMax( Eina.Size2D sz); +void SetHintSizeMax(Eina.Size2D sz); /// Hints on the object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly. /// @@ -74,8 +82,7 @@ Eina.Size2D GetHintSizeMin(); /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). /// (Since EFL 1.22) /// Minimum size (hint) in pixels. -/// -void SetHintSizeMin( Eina.Size2D sz); +void SetHintSizeMin(Eina.Size2D sz); /// Get the "intrinsic" minimum size of this object. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. @@ -83,8 +90,7 @@ Eina.Size2D GetHintSizeRestrictedMin(); /// This function is protected as it is meant for widgets to indicate their "intrinsic" minimum size. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. -/// -void SetHintSizeRestrictedMin( Eina.Size2D sz); +void SetHintSizeRestrictedMin(Eina.Size2D sz); /// Read-only minimum size combining both and hints. /// is intended for mostly internal usage and widget developers, and is intended to be set from application side. combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's minimum size. /// (Since EFL 1.22) @@ -101,8 +107,7 @@ Eina.Size2D GetHintSizeCombinedMin(); /// Integer to specify right padding. /// Integer to specify top padding. /// Integer to specify bottom padding. -/// -void GetHintMargin( out int l, out int r, out int t, out int b); +void GetHintMargin(out int l, out int r, out int t, out int b); /// Hints for an object's margin or padding space. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. /// @@ -114,8 +119,7 @@ void GetHintMargin( out int l, out int r, out int t, out int b); /// Integer to specify right padding. /// Integer to specify top padding. /// Integer to specify bottom padding. -/// -void SetHintMargin( int l, int r, int t, int b); +void SetHintMargin(int l, int r, int t, int b); /// Hints for an object's weight. /// This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribut the space it has to layout them by those factors -- most weighted children get larger in this process than the least ones. /// @@ -125,8 +129,7 @@ void SetHintMargin( int l, int r, int t, int b); /// (Since EFL 1.22) /// Non-negative double value to use as horizontal weight hint. /// Non-negative double value to use as vertical weight hint. -/// -void GetHintWeight( out double x, out double y); +void GetHintWeight(out double x, out double y); /// Hints for an object's weight. /// This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribut the space it has to layout them by those factors -- most weighted children get larger in this process than the least ones. /// @@ -136,8 +139,7 @@ void GetHintWeight( out double x, out double y); /// (Since EFL 1.22) /// Non-negative double value to use as horizontal weight hint. /// Non-negative double value to use as vertical weight hint. -/// -void SetHintWeight( double x, double y); +void SetHintWeight(double x, double y); /// Hints for an object's alignment. /// These are hints on how to align an object inside the boundaries of a container/manager. Accepted values are in the 0.0 to 1.0 range. /// @@ -149,8 +151,7 @@ void SetHintWeight( double x, double y); /// (Since EFL 1.22) /// Double, ranging from 0.0 to 1.0. /// Double, ranging from 0.0 to 1.0. -/// -void GetHintAlign( out double x, out double y); +void GetHintAlign(out double x, out double y); /// Hints for an object's alignment. /// These are hints on how to align an object inside the boundaries of a container/manager. Accepted values are in the 0.0 to 1.0 range. /// @@ -162,8 +163,7 @@ void GetHintAlign( out double x, out double y); /// (Since EFL 1.22) /// Double, ranging from 0.0 to 1.0. /// Double, ranging from 0.0 to 1.0. -/// -void SetHintAlign( double x, double y); +void SetHintAlign(double x, double y); /// Hints for an object's fill property that used to specify "justify" or "fill" by some users. specify whether to fill the space inside the boundaries of a container/manager. /// Maximum hints should be enforced with higher priority, if they are set. Also, any set on objects should add up to the object space on the final scene composition. /// @@ -175,8 +175,7 @@ void SetHintAlign( double x, double y); /// (Since EFL 1.22) /// true if to fill the object space, false otherwise, to use as horizontal fill hint. /// true if to fill the object space, false otherwise, to use as vertical fill hint. -/// -void GetHintFill( out bool x, out bool y); +void GetHintFill(out bool x, out bool y); /// Hints for an object's fill property that used to specify "justify" or "fill" by some users. specify whether to fill the space inside the boundaries of a container/manager. /// Maximum hints should be enforced with higher priority, if they are set. Also, any set on objects should add up to the object space on the final scene composition. /// @@ -188,8 +187,7 @@ void GetHintFill( out bool x, out bool y); /// (Since EFL 1.22) /// true if to fill the object space, false otherwise, to use as horizontal fill hint. /// true if to fill the object space, false otherwise, to use as vertical fill hint. -/// -void SetHintFill( bool x, bool y); +void SetHintFill(bool x, bool y); /// Object hints changed. /// (Since EFL 1.22) event EventHandler HintsChangedEvt; @@ -247,168 +245,225 @@ IHint { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IHintConcrete)) - return Efl.Gfx.IHintNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IHintConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_hint_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IHintConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IHintConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object HintsChangedEvtKey = new object(); + /// Object hints changed. /// (Since EFL 1.22) public event EventHandler HintsChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_HINTS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_HintsChangedEvt_delegate)) { - eventHandlers.AddHandler(HintsChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_HINTS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_HintsChangedEvt_delegate)) { - eventHandlers.RemoveHandler(HintsChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event HintsChangedEvt. - public void On_HintsChangedEvt(EventArgs e) + public void OnHintsChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[HintsChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_HINTS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_HintsChangedEvt_delegate; - private void on_HintsChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_HintsChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_HintsChangedEvt_delegate = new Efl.EventCb(on_HintsChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Defines the aspect ratio to respect when scaling this object. /// The aspect ratio is defined as the width / height ratio of the object. Depending on the object and its container, this hint may or may not be fully respected. @@ -417,10 +472,9 @@ private static object HintsChangedEvtKey = new object(); /// (Since EFL 1.22) /// Mode of interpretation. /// Base size to use for aspecting. - /// - public void GetHintAspect( out Efl.Gfx.HintAspect mode, out Eina.Size2D sz) { + public void GetHintAspect(out Efl.Gfx.HintAspect mode, out Eina.Size2D sz) { var _out_sz = new Eina.Size2D.NativeStruct(); - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_aspect_get_ptr.Value.Delegate(this.NativeHandle, out mode, out _out_sz); + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_aspect_get_ptr.Value.Delegate(this.NativeHandle,out mode, out _out_sz); Eina.Error.RaiseIfUnhandledException(); sz = _out_sz; } @@ -431,10 +485,9 @@ private static object HintsChangedEvtKey = new object(); /// (Since EFL 1.22) /// Mode of interpretation. /// Base size to use for aspecting. - /// - public void SetHintAspect( Efl.Gfx.HintAspect mode, Eina.Size2D sz) { + public void SetHintAspect(Efl.Gfx.HintAspect mode, Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_aspect_set_ptr.Value.Delegate(this.NativeHandle, mode, _in_sz); + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_aspect_set_ptr.Value.Delegate(this.NativeHandle,mode, _in_sz); Eina.Error.RaiseIfUnhandledException(); } /// Hints on the object's maximum size. @@ -448,7 +501,7 @@ private static object HintsChangedEvtKey = new object(); /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). public Eina.Size2D GetHintSizeMax() { - var _ret_var = Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_max_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_max_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -462,10 +515,9 @@ private static object HintsChangedEvtKey = new object(); /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). - /// - public void SetHintSizeMax( Eina.Size2D sz) { + public void SetHintSizeMax(Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_max_set_ptr.Value.Delegate(this.NativeHandle, _in_sz); + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_max_set_ptr.Value.Delegate(this.NativeHandle,_in_sz); Eina.Error.RaiseIfUnhandledException(); } /// Hints on the object's minimum size. @@ -477,7 +529,7 @@ private static object HintsChangedEvtKey = new object(); /// (Since EFL 1.22) /// Minimum size (hint) in pixels. public Eina.Size2D GetHintSizeMin() { - var _ret_var = Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_min_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_min_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -489,27 +541,25 @@ private static object HintsChangedEvtKey = new object(); /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). /// (Since EFL 1.22) /// Minimum size (hint) in pixels. - /// - public void SetHintSizeMin( Eina.Size2D sz) { + public void SetHintSizeMin(Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_min_set_ptr.Value.Delegate(this.NativeHandle, _in_sz); + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_min_set_ptr.Value.Delegate(this.NativeHandle,_in_sz); Eina.Error.RaiseIfUnhandledException(); } /// Get the "intrinsic" minimum size of this object. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. public Eina.Size2D GetHintSizeRestrictedMin() { - var _ret_var = Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_restricted_min_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_restricted_min_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This function is protected as it is meant for widgets to indicate their "intrinsic" minimum size. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. - /// - public void SetHintSizeRestrictedMin( Eina.Size2D sz) { + public void SetHintSizeRestrictedMin(Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_restricted_min_set_ptr.Value.Delegate(this.NativeHandle, _in_sz); + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_restricted_min_set_ptr.Value.Delegate(this.NativeHandle,_in_sz); Eina.Error.RaiseIfUnhandledException(); } /// Read-only minimum size combining both and hints. @@ -517,7 +567,7 @@ private static object HintsChangedEvtKey = new object(); /// (Since EFL 1.22) /// Minimum size (hint) in pixels. public Eina.Size2D GetHintSizeCombinedMin() { - var _ret_var = Efl.Gfx.IHintNativeInherit.efl_gfx_hint_size_combined_min_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_combined_min_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -532,9 +582,8 @@ private static object HintsChangedEvtKey = new object(); /// Integer to specify right padding. /// Integer to specify top padding. /// Integer to specify bottom padding. - /// - public void GetHintMargin( out int l, out int r, out int t, out int b) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_margin_get_ptr.Value.Delegate(this.NativeHandle, out l, out r, out t, out b); + public void GetHintMargin(out int l, out int r, out int t, out int b) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_margin_get_ptr.Value.Delegate(this.NativeHandle,out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's margin or padding space. @@ -548,9 +597,8 @@ private static object HintsChangedEvtKey = new object(); /// Integer to specify right padding. /// Integer to specify top padding. /// Integer to specify bottom padding. - /// - public void SetHintMargin( int l, int r, int t, int b) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_margin_set_ptr.Value.Delegate(this.NativeHandle, l, r, t, b); + public void SetHintMargin(int l, int r, int t, int b) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_margin_set_ptr.Value.Delegate(this.NativeHandle,l, r, t, b); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's weight. @@ -562,9 +610,8 @@ private static object HintsChangedEvtKey = new object(); /// (Since EFL 1.22) /// Non-negative double value to use as horizontal weight hint. /// Non-negative double value to use as vertical weight hint. - /// - public void GetHintWeight( out double x, out double y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_weight_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetHintWeight(out double x, out double y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_weight_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's weight. @@ -576,9 +623,8 @@ private static object HintsChangedEvtKey = new object(); /// (Since EFL 1.22) /// Non-negative double value to use as horizontal weight hint. /// Non-negative double value to use as vertical weight hint. - /// - public void SetHintWeight( double x, double y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_weight_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetHintWeight(double x, double y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_weight_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's alignment. @@ -592,9 +638,8 @@ private static object HintsChangedEvtKey = new object(); /// (Since EFL 1.22) /// Double, ranging from 0.0 to 1.0. /// Double, ranging from 0.0 to 1.0. - /// - public void GetHintAlign( out double x, out double y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_align_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetHintAlign(out double x, out double y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_align_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's alignment. @@ -608,9 +653,8 @@ private static object HintsChangedEvtKey = new object(); /// (Since EFL 1.22) /// Double, ranging from 0.0 to 1.0. /// Double, ranging from 0.0 to 1.0. - /// - public void SetHintAlign( double x, double y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_align_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetHintAlign(double x, double y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_align_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's fill property that used to specify "justify" or "fill" by some users. specify whether to fill the space inside the boundaries of a container/manager. @@ -624,9 +668,8 @@ private static object HintsChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if to fill the object space, false otherwise, to use as horizontal fill hint. /// true if to fill the object space, false otherwise, to use as vertical fill hint. - /// - public void GetHintFill( out bool x, out bool y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_fill_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetHintFill(out bool x, out bool y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_fill_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Hints for an object's fill property that used to specify "justify" or "fill" by some users. specify whether to fill the space inside the boundaries of a container/manager. @@ -640,9 +683,8 @@ private static object HintsChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if to fill the object space, false otherwise, to use as horizontal fill hint. /// true if to fill the object space, false otherwise, to use as vertical fill hint. - /// - public void SetHintFill( bool x, bool y) { - Efl.Gfx.IHintNativeInherit.efl_gfx_hint_fill_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetHintFill(bool x, bool y) { + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_fill_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Hints on the object's maximum size. @@ -657,7 +699,7 @@ private static object HintsChangedEvtKey = new object(); /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). public Eina.Size2D HintSizeMax { get { return GetHintSizeMax(); } - set { SetHintSizeMax( value); } + set { SetHintSizeMax(value); } } /// Hints on the object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly. @@ -669,7 +711,7 @@ private static object HintsChangedEvtKey = new object(); /// Minimum size (hint) in pixels. public Eina.Size2D HintSizeMin { get { return GetHintSizeMin(); } - set { SetHintSizeMin( value); } + set { SetHintSizeMin(value); } } /// Internal hints for an object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. @@ -681,7 +723,7 @@ private static object HintsChangedEvtKey = new object(); /// Minimum size (hint) in pixels. public Eina.Size2D HintSizeRestrictedMin { get { return GetHintSizeRestrictedMin(); } - set { SetHintSizeRestrictedMin( value); } + set { SetHintSizeRestrictedMin(value); } } /// Read-only minimum size combining both and hints. /// is intended for mostly internal usage and widget developers, and is intended to be set from application side. combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's minimum size. @@ -694,508 +736,809 @@ private static object HintsChangedEvtKey = new object(); { return Efl.Gfx.IHintConcrete.efl_gfx_hint_interface_get(); } -} -public class IHintNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_hint_aspect_get_static_delegate == null) - efl_gfx_hint_aspect_get_static_delegate = new efl_gfx_hint_aspect_get_delegate(hint_aspect_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintAspect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_aspect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_aspect_get_static_delegate)}); - if (efl_gfx_hint_aspect_set_static_delegate == null) - efl_gfx_hint_aspect_set_static_delegate = new efl_gfx_hint_aspect_set_delegate(hint_aspect_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintAspect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_aspect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_aspect_set_static_delegate)}); - if (efl_gfx_hint_size_max_get_static_delegate == null) - efl_gfx_hint_size_max_get_static_delegate = new efl_gfx_hint_size_max_get_delegate(hint_size_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintSizeMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_get_static_delegate)}); - if (efl_gfx_hint_size_max_set_static_delegate == null) - efl_gfx_hint_size_max_set_static_delegate = new efl_gfx_hint_size_max_set_delegate(hint_size_max_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintSizeMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_set_static_delegate)}); - if (efl_gfx_hint_size_min_get_static_delegate == null) - efl_gfx_hint_size_min_get_static_delegate = new efl_gfx_hint_size_min_get_delegate(hint_size_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_min_get_static_delegate)}); - if (efl_gfx_hint_size_min_set_static_delegate == null) - efl_gfx_hint_size_min_set_static_delegate = new efl_gfx_hint_size_min_set_delegate(hint_size_min_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_min_set_static_delegate)}); - if (efl_gfx_hint_size_restricted_min_get_static_delegate == null) - efl_gfx_hint_size_restricted_min_get_static_delegate = new efl_gfx_hint_size_restricted_min_get_delegate(hint_size_restricted_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintSizeRestrictedMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_restricted_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_min_get_static_delegate)}); - if (efl_gfx_hint_size_restricted_min_set_static_delegate == null) - efl_gfx_hint_size_restricted_min_set_static_delegate = new efl_gfx_hint_size_restricted_min_set_delegate(hint_size_restricted_min_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintSizeRestrictedMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_restricted_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_min_set_static_delegate)}); - if (efl_gfx_hint_size_combined_min_get_static_delegate == null) - efl_gfx_hint_size_combined_min_get_static_delegate = new efl_gfx_hint_size_combined_min_get_delegate(hint_size_combined_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintSizeCombinedMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_size_combined_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_combined_min_get_static_delegate)}); - if (efl_gfx_hint_margin_get_static_delegate == null) - efl_gfx_hint_margin_get_static_delegate = new efl_gfx_hint_margin_get_delegate(hint_margin_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintMargin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_margin_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_margin_get_static_delegate)}); - if (efl_gfx_hint_margin_set_static_delegate == null) - efl_gfx_hint_margin_set_static_delegate = new efl_gfx_hint_margin_set_delegate(hint_margin_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintMargin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_margin_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_margin_set_static_delegate)}); - if (efl_gfx_hint_weight_get_static_delegate == null) - efl_gfx_hint_weight_get_static_delegate = new efl_gfx_hint_weight_get_delegate(hint_weight_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_weight_get_static_delegate)}); - if (efl_gfx_hint_weight_set_static_delegate == null) - efl_gfx_hint_weight_set_static_delegate = new efl_gfx_hint_weight_set_delegate(hint_weight_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_weight_set_static_delegate)}); - if (efl_gfx_hint_align_get_static_delegate == null) - efl_gfx_hint_align_get_static_delegate = new efl_gfx_hint_align_get_delegate(hint_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_align_get_static_delegate)}); - if (efl_gfx_hint_align_set_static_delegate == null) - efl_gfx_hint_align_set_static_delegate = new efl_gfx_hint_align_set_delegate(hint_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_align_set_static_delegate)}); - if (efl_gfx_hint_fill_get_static_delegate == null) - efl_gfx_hint_fill_get_static_delegate = new efl_gfx_hint_fill_get_delegate(hint_fill_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_fill_get_static_delegate)}); - if (efl_gfx_hint_fill_set_static_delegate == null) - efl_gfx_hint_fill_set_static_delegate = new efl_gfx_hint_fill_set_delegate(hint_fill_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_hint_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_fill_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IHintConcrete.efl_gfx_hint_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Gfx.IHintConcrete.efl_gfx_hint_interface_get(); - } + 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_gfx_hint_aspect_get_static_delegate == null) + { + efl_gfx_hint_aspect_get_static_delegate = new efl_gfx_hint_aspect_get_delegate(hint_aspect_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetHintAspect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_aspect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_aspect_get_static_delegate) }); + } - private delegate void efl_gfx_hint_aspect_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz); + if (efl_gfx_hint_aspect_set_static_delegate == null) + { + efl_gfx_hint_aspect_set_static_delegate = new efl_gfx_hint_aspect_set_delegate(hint_aspect_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetHintAspect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_aspect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_aspect_set_static_delegate) }); + } - public delegate void efl_gfx_hint_aspect_get_api_delegate(System.IntPtr obj, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_aspect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_aspect_get"); - private static void hint_aspect_get(System.IntPtr obj, System.IntPtr pd, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_hint_aspect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - mode = default(Efl.Gfx.HintAspect); Eina.Size2D _out_sz = default(Eina.Size2D); - - try { - ((IHint)wrapper).GetHintAspect( out mode, out _out_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_hint_size_max_get_static_delegate == null) + { + efl_gfx_hint_size_max_get_static_delegate = new efl_gfx_hint_size_max_get_delegate(hint_size_max_get); } - sz = _out_sz; - } else { - efl_gfx_hint_aspect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out mode, out sz); - } - } - private static efl_gfx_hint_aspect_get_delegate efl_gfx_hint_aspect_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_get_static_delegate) }); + } - private delegate void efl_gfx_hint_aspect_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz); + if (efl_gfx_hint_size_max_set_static_delegate == null) + { + efl_gfx_hint_size_max_set_static_delegate = new efl_gfx_hint_size_max_set_delegate(hint_size_max_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetHintSizeMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_set_static_delegate) }); + } - public delegate void efl_gfx_hint_aspect_set_api_delegate(System.IntPtr obj, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_aspect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_aspect_set"); - private static void hint_aspect_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_hint_aspect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; - - try { - ((IHint)wrapper).SetHintAspect( mode, _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_aspect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode, sz); - } - } - private static efl_gfx_hint_aspect_set_delegate efl_gfx_hint_aspect_set_static_delegate; + if (efl_gfx_hint_size_min_get_static_delegate == null) + { + efl_gfx_hint_size_min_get_static_delegate = new efl_gfx_hint_size_min_get_delegate(hint_size_min_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_min_get_static_delegate) }); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_hint_size_min_set_static_delegate == null) + { + efl_gfx_hint_size_min_set_static_delegate = new efl_gfx_hint_size_min_set_delegate(hint_size_min_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetHintSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_min_set_static_delegate) }); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_max_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_max_get"); - private static Eina.Size2D.NativeStruct hint_size_max_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_hint_size_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IHint)wrapper).GetHintSizeMax(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_hint_size_restricted_min_get_static_delegate == null) + { + efl_gfx_hint_size_restricted_min_get_static_delegate = new efl_gfx_hint_size_restricted_min_get_delegate(hint_size_restricted_min_get); } - return _ret_var; - } else { - return efl_gfx_hint_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_hint_size_max_get_delegate efl_gfx_hint_size_max_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeRestrictedMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_restricted_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_min_get_static_delegate) }); + } - private delegate void efl_gfx_hint_size_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + if (efl_gfx_hint_size_restricted_min_set_static_delegate == null) + { + efl_gfx_hint_size_restricted_min_set_static_delegate = new efl_gfx_hint_size_restricted_min_set_delegate(hint_size_restricted_min_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetHintSizeRestrictedMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_restricted_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_min_set_static_delegate) }); + } - public delegate void efl_gfx_hint_size_max_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_max_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_max_set"); - private static void hint_size_max_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_hint_size_max_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; - - try { - ((IHint)wrapper).SetHintSizeMax( _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_size_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); - } - } - private static efl_gfx_hint_size_max_set_delegate efl_gfx_hint_size_max_set_static_delegate; + if (efl_gfx_hint_size_combined_min_get_static_delegate == null) + { + efl_gfx_hint_size_combined_min_get_static_delegate = new efl_gfx_hint_size_combined_min_get_delegate(hint_size_combined_min_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeCombinedMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_combined_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_combined_min_get_static_delegate) }); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_hint_margin_get_static_delegate == null) + { + efl_gfx_hint_margin_get_static_delegate = new efl_gfx_hint_margin_get_delegate(hint_margin_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetHintMargin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_margin_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_margin_get_static_delegate) }); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_min_get"); - private static Eina.Size2D.NativeStruct hint_size_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_hint_size_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IHint)wrapper).GetHintSizeMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_hint_margin_set_static_delegate == null) + { + efl_gfx_hint_margin_set_static_delegate = new efl_gfx_hint_margin_set_delegate(hint_margin_set); } - return _ret_var; - } else { - return efl_gfx_hint_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_hint_size_min_get_delegate efl_gfx_hint_size_min_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetHintMargin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_margin_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_margin_set_static_delegate) }); + } - private delegate void efl_gfx_hint_size_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + if (efl_gfx_hint_weight_get_static_delegate == null) + { + efl_gfx_hint_weight_get_static_delegate = new efl_gfx_hint_weight_get_delegate(hint_weight_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetHintWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_weight_get_static_delegate) }); + } - public delegate void efl_gfx_hint_size_min_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_min_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_min_set"); - private static void hint_size_min_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_hint_size_min_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; - - try { - ((IHint)wrapper).SetHintSizeMin( _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_size_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); - } - } - private static efl_gfx_hint_size_min_set_delegate efl_gfx_hint_size_min_set_static_delegate; + if (efl_gfx_hint_weight_set_static_delegate == null) + { + efl_gfx_hint_weight_set_static_delegate = new efl_gfx_hint_weight_set_delegate(hint_weight_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetHintWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_weight_set_static_delegate) }); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_hint_align_get_static_delegate == null) + { + efl_gfx_hint_align_get_static_delegate = new efl_gfx_hint_align_get_delegate(hint_align_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetHintAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_align_get_static_delegate) }); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_restricted_min_get"); - private static Eina.Size2D.NativeStruct hint_size_restricted_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_hint_size_restricted_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IHint)wrapper).GetHintSizeRestrictedMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_hint_align_set_static_delegate == null) + { + efl_gfx_hint_align_set_static_delegate = new efl_gfx_hint_align_set_delegate(hint_align_set); } - return _ret_var; - } else { - return efl_gfx_hint_size_restricted_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (methods.FirstOrDefault(m => m.Name == "SetHintAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_align_set_static_delegate) }); + } + + if (efl_gfx_hint_fill_get_static_delegate == null) + { + efl_gfx_hint_fill_get_static_delegate = new efl_gfx_hint_fill_get_delegate(hint_fill_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetHintFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_fill_get_static_delegate) }); + } + + if (efl_gfx_hint_fill_set_static_delegate == null) + { + efl_gfx_hint_fill_set_static_delegate = new efl_gfx_hint_fill_set_delegate(hint_fill_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetHintFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_fill_set_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.Gfx.IHintConcrete.efl_gfx_hint_interface_get(); } - } - private static efl_gfx_hint_size_restricted_min_get_delegate efl_gfx_hint_size_restricted_min_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_gfx_hint_size_restricted_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + private delegate void efl_gfx_hint_aspect_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz); + + public delegate void efl_gfx_hint_aspect_get_api_delegate(System.IntPtr obj, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz); - public delegate void efl_gfx_hint_size_restricted_min_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_min_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_restricted_min_set"); - private static void hint_size_restricted_min_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_gfx_hint_size_restricted_min_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; + public static Efl.Eo.FunctionWrapper efl_gfx_hint_aspect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_aspect_get"); + + private static void hint_aspect_get(System.IntPtr obj, System.IntPtr pd, out Efl.Gfx.HintAspect mode, out Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_aspect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + mode = default(Efl.Gfx.HintAspect); Eina.Size2D _out_sz = default(Eina.Size2D); - try { - ((IHint)wrapper).SetHintSizeRestrictedMin( _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_size_restricted_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + try + { + ((IHint)wrapper).GetHintAspect(out mode, out _out_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + sz = _out_sz; + + } + else + { + efl_gfx_hint_aspect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out mode, out sz); + } } - } - private static efl_gfx_hint_size_restricted_min_set_delegate efl_gfx_hint_size_restricted_min_set_static_delegate; + private static efl_gfx_hint_aspect_get_delegate efl_gfx_hint_aspect_get_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_hint_aspect_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz); + + public delegate void efl_gfx_hint_aspect_set_api_delegate(System.IntPtr obj, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz); - public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_combined_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_size_combined_min_get"); - private static Eina.Size2D.NativeStruct hint_size_combined_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_hint_size_combined_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IHint)wrapper).GetHintSizeCombinedMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_hint_aspect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_aspect_set"); + + private static void hint_aspect_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.HintAspect mode, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_aspect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((IHint)wrapper).SetHintAspect(mode, _in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_hint_aspect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode, sz); + } + } + + private static efl_gfx_hint_aspect_set_delegate efl_gfx_hint_aspect_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_max_get"); + + private static Eina.Size2D.NativeStruct hint_size_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IHint)wrapper).GetHintSizeMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_hint_size_combined_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_hint_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_hint_size_combined_min_get_delegate efl_gfx_hint_size_combined_min_get_static_delegate; + private static efl_gfx_hint_size_max_get_delegate efl_gfx_hint_size_max_get_static_delegate; - private delegate void efl_gfx_hint_margin_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + private delegate void efl_gfx_hint_size_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + public delegate void efl_gfx_hint_size_max_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public delegate void efl_gfx_hint_margin_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_margin_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_margin_get"); - private static void hint_margin_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) - { - Eina.Log.Debug("function efl_gfx_hint_margin_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(int); r = default(int); t = default(int); b = default(int); - try { - ((IHint)wrapper).GetHintMargin( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_margin_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); - } - } - private static efl_gfx_hint_margin_get_delegate efl_gfx_hint_margin_get_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_max_set"); + private static void hint_size_max_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_size_max_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((IHint)wrapper).SetHintSizeMax(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_size_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + } + } - private delegate void efl_gfx_hint_margin_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + private static efl_gfx_hint_size_max_set_delegate efl_gfx_hint_size_max_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_min_get"); + + private static Eina.Size2D.NativeStruct hint_size_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IHint)wrapper).GetHintSizeMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_hint_margin_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_margin_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_margin_set"); - private static void hint_margin_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) - { - Eina.Log.Debug("function efl_gfx_hint_margin_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IHint)wrapper).SetHintMargin( l, r, t, b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_margin_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); + } + else + { + return efl_gfx_hint_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_hint_margin_set_delegate efl_gfx_hint_margin_set_static_delegate; + private static efl_gfx_hint_size_min_get_delegate efl_gfx_hint_size_min_get_static_delegate; - private delegate void efl_gfx_hint_weight_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + private delegate void efl_gfx_hint_size_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + public delegate void efl_gfx_hint_size_min_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public delegate void efl_gfx_hint_weight_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_weight_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_weight_get"); - private static void hint_weight_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_hint_weight_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IHint)wrapper).GetHintWeight( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_gfx_hint_weight_get_delegate efl_gfx_hint_weight_get_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_min_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_min_set"); + private static void hint_size_min_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_size_min_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((IHint)wrapper).SetHintSizeMin(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_size_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + } + } - private delegate void efl_gfx_hint_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + private static efl_gfx_hint_size_min_set_delegate efl_gfx_hint_size_min_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_restricted_min_get"); + + private static Eina.Size2D.NativeStruct hint_size_restricted_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_restricted_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IHint)wrapper).GetHintSizeRestrictedMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_hint_weight_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_weight_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_weight_set"); - private static void hint_weight_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_hint_weight_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IHint)wrapper).SetHintWeight( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + else + { + return efl_gfx_hint_size_restricted_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_hint_weight_set_delegate efl_gfx_hint_weight_set_static_delegate; + private static efl_gfx_hint_size_restricted_min_get_delegate efl_gfx_hint_size_restricted_min_get_static_delegate; - private delegate void efl_gfx_hint_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + private delegate void efl_gfx_hint_size_restricted_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + public delegate void efl_gfx_hint_size_restricted_min_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public delegate void efl_gfx_hint_align_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_align_get"); - private static void hint_align_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_hint_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IHint)wrapper).GetHintAlign( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_min_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_restricted_min_set"); + + private static void hint_size_restricted_min_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_size_restricted_min_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((IHint)wrapper).SetHintSizeRestrictedMin(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_size_restricted_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + } } - } - private static efl_gfx_hint_align_get_delegate efl_gfx_hint_align_get_static_delegate; + private static efl_gfx_hint_size_restricted_min_set_delegate efl_gfx_hint_size_restricted_min_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_combined_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_combined_min_get"); + + private static Eina.Size2D.NativeStruct hint_size_combined_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_combined_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IHint)wrapper).GetHintSizeCombinedMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_hint_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + return _ret_var; + } + else + { + return efl_gfx_hint_size_combined_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_hint_size_combined_min_get_delegate efl_gfx_hint_size_combined_min_get_static_delegate; + + + private delegate void efl_gfx_hint_margin_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + + public delegate void efl_gfx_hint_margin_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_margin_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_margin_get"); + + private static void hint_margin_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_hint_margin_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((IHint)wrapper).GetHintMargin(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_hint_align_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_align_set"); - private static void hint_align_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_hint_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IHint)wrapper).SetHintAlign( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + else + { + efl_gfx_hint_margin_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + } } - } - private static efl_gfx_hint_align_set_delegate efl_gfx_hint_align_set_static_delegate; + private static efl_gfx_hint_margin_get_delegate efl_gfx_hint_margin_get_static_delegate; + + + private delegate void efl_gfx_hint_margin_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + + + public delegate void efl_gfx_hint_margin_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_margin_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_margin_set"); + + private static void hint_margin_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) + { + Eina.Log.Debug("function efl_gfx_hint_margin_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IHint)wrapper).SetHintMargin(l, r, t, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_hint_fill_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool x, [MarshalAs(UnmanagedType.U1)] out bool y); + + } + else + { + efl_gfx_hint_margin_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); + } + } + private static efl_gfx_hint_margin_set_delegate efl_gfx_hint_margin_set_static_delegate; + + + private delegate void efl_gfx_hint_weight_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_hint_weight_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_weight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_weight_get"); + + private static void hint_weight_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_hint_weight_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IHint)wrapper).GetHintWeight(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } - public delegate void efl_gfx_hint_fill_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool x, [MarshalAs(UnmanagedType.U1)] out bool y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_fill_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_fill_get"); - private static void hint_fill_get(System.IntPtr obj, System.IntPtr pd, out bool x, out bool y) - { - Eina.Log.Debug("function efl_gfx_hint_fill_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(bool); y = default(bool); - try { - ((IHint)wrapper).GetHintFill( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + private static efl_gfx_hint_weight_get_delegate efl_gfx_hint_weight_get_static_delegate; + + + private delegate void efl_gfx_hint_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_hint_weight_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_weight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_weight_set"); + + private static void hint_weight_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_hint_weight_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IHint)wrapper).SetHintWeight(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } } - } - private static efl_gfx_hint_fill_get_delegate efl_gfx_hint_fill_get_static_delegate; + private static efl_gfx_hint_weight_set_delegate efl_gfx_hint_weight_set_static_delegate; + + + private delegate void efl_gfx_hint_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_hint_align_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_align_get"); + + private static void hint_align_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_hint_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IHint)wrapper).GetHintAlign(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } - private delegate void efl_gfx_hint_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool x, [MarshalAs(UnmanagedType.U1)] bool y); + private static efl_gfx_hint_align_get_delegate efl_gfx_hint_align_get_static_delegate; + + + private delegate void efl_gfx_hint_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_hint_align_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_align_set"); + + private static void hint_align_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_hint_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IHint)wrapper).SetHintAlign(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + private static efl_gfx_hint_align_set_delegate efl_gfx_hint_align_set_static_delegate; + + + private delegate void efl_gfx_hint_fill_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool x, [MarshalAs(UnmanagedType.U1)] out bool y); + + + public delegate void efl_gfx_hint_fill_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool x, [MarshalAs(UnmanagedType.U1)] out bool y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_fill_get"); + + private static void hint_fill_get(System.IntPtr obj, System.IntPtr pd, out bool x, out bool y) + { + Eina.Log.Debug("function efl_gfx_hint_fill_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(bool); y = default(bool); + try + { + ((IHint)wrapper).GetHintFill(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } - public delegate void efl_gfx_hint_fill_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool x, [MarshalAs(UnmanagedType.U1)] bool y); - public static Efl.Eo.FunctionWrapper efl_gfx_hint_fill_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_hint_fill_set"); - private static void hint_fill_set(System.IntPtr obj, System.IntPtr pd, bool x, bool y) - { - Eina.Log.Debug("function efl_gfx_hint_fill_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IHint)wrapper).SetHintFill( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_hint_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + private static efl_gfx_hint_fill_get_delegate efl_gfx_hint_fill_get_static_delegate; + + + private delegate void efl_gfx_hint_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool x, [MarshalAs(UnmanagedType.U1)] bool y); + + + public delegate void efl_gfx_hint_fill_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool x, [MarshalAs(UnmanagedType.U1)] bool y); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_fill_set"); + + private static void hint_fill_set(System.IntPtr obj, System.IntPtr pd, bool x, bool y) + { + Eina.Log.Debug("function efl_gfx_hint_fill_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IHint)wrapper).SetHintFill(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } } - } - private static efl_gfx_hint_fill_set_delegate efl_gfx_hint_fill_set_static_delegate; + + private static efl_gfx_hint_fill_set_delegate efl_gfx_hint_fill_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_image.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_image.eo.cs index 2109e97..6e03419 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_image.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_image.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Common APIs for all 2D images that can be rendered on the canvas. -[IImageNativeInherit] +[Efl.Gfx.IImageConcrete.NativeMethods] public interface IImage : Efl.Eo.IWrapper, IDisposable { @@ -21,15 +25,13 @@ bool GetSmoothScale(); /// /// true by default /// Whether to use smooth scale or not. -/// -void SetSmoothScale( bool smooth_scale); +void SetSmoothScale(bool smooth_scale); /// Control how the image is scaled. /// Image scale type Efl.Gfx.ImageScaleType GetScaleType(); /// Control how the image is scaled. /// Image scale type -/// -void SetScaleType( Efl.Gfx.ImageScaleType scale_type); +void SetScaleType(Efl.Gfx.ImageScaleType scale_type); /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. double GetRatio(); @@ -47,8 +49,7 @@ double GetRatio(); /// The border's right width. /// The border's top height. /// The border's bottom height. -/// -void GetBorder( out int l, out int r, out int t, out int b); +void GetBorder(out int l, out int r, out int t, out int b); /// Dimensions of this image's border, a region that does not scale with the center area. /// When EFL renders an image, its source may be scaled to fit the size of the object. This function sets an area from the borders of the image inwards which is not to be scaled. This function is useful for making frames and for widget theming, where, for example, buttons may be of varying sizes, but their border size must remain constant. /// @@ -63,8 +64,7 @@ void GetBorder( out int l, out int r, out int t, out int b); /// The border's right width. /// The border's top height. /// The border's bottom height. -/// -void SetBorder( int l, int r, int t, int b); +void SetBorder(int l, int r, int t, int b); /// Scaling factor applied to the image borders. /// This value multiplies the size of the when scaling an object. /// @@ -76,8 +76,7 @@ double GetBorderScale(); /// /// Default value is 1.0 (no scaling). /// The scale factor. -/// -void SetBorderScale( double scale); +void SetBorderScale(double scale); /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. /// This function sets how the center part of the image object's source image is to be drawn, which must be one of the values in . By center we mean the complementary part of that defined by . This is very useful for making frames and decorations. You would most probably also be using a filled image (as in ) to use as a frame. /// @@ -89,8 +88,7 @@ Efl.Gfx.BorderFillMode GetBorderCenterFill(); /// /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. -/// -void SetBorderCenterFill( Efl.Gfx.BorderFillMode fill); +void SetBorderCenterFill(Efl.Gfx.BorderFillMode fill); /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. /// @@ -104,8 +102,7 @@ Efl.Gfx.ImageContentHint GetContentHint(); /// Set the content hint setting of a given image object of the canvas. /// This function sets the content hint value of the given image of the canvas. For example, if you're on the GL engine and your driver implementation supports it, setting this hint to #EVAS_IMAGE_CONTENT_HINT_DYNAMIC will make it need zero copies at texture upload time, which is an "expensive" operation. /// Dynamic or static content hint, see -/// -void SetContentHint( Efl.Gfx.ImageContentHint hint); +void SetContentHint(Efl.Gfx.ImageContentHint hint); /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see @@ -113,8 +110,7 @@ Efl.Gfx.ImageScaleHint GetScaleHint(); /// Set the scale hint of a given image of the canvas. /// This function sets the scale hint value of the given image object in the canvas, which will affect how Evas is to cache scaled versions of its original source image. /// Scalable or static size hint, see -/// -void SetScaleHint( Efl.Gfx.ImageScaleHint hint); +void SetScaleHint(Efl.Gfx.ImageScaleHint hint); /// Gets the (last) file loading error for a given object. /// The load error code. Eina.Error GetImageLoadError(); @@ -197,257 +193,330 @@ IImage { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IImageConcrete)) - return Efl.Gfx.IImageNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IImageConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_image_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IImageConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IImageConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ImagePreloadEvtKey = new object(); + /// Image data has been preloaded. public event EventHandler ImagePreloadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImagePreloadEvt_delegate)) { - eventHandlers.AddHandler(ImagePreloadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; - if (RemoveNativeEventHandler(key, this.evt_ImagePreloadEvt_delegate)) { - eventHandlers.RemoveHandler(ImagePreloadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImagePreloadEvt. - public void On_ImagePreloadEvt(EventArgs e) + public void OnImagePreloadEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImagePreloadEvtKey]; + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImagePreloadEvt_delegate; - private void on_ImagePreloadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ImagePreloadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ImageResizeEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Image was resized (its pixel data). public event EventHandler ImageResizeEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImageResizeEvt_delegate)) { - eventHandlers.AddHandler(ImageResizeEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; - if (RemoveNativeEventHandler(key, this.evt_ImageResizeEvt_delegate)) { - eventHandlers.RemoveHandler(ImageResizeEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImageResizeEvt. - public void On_ImageResizeEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImageResizeEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImageResizeEvt_delegate; - private void on_ImageResizeEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnImageResizeEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ImageResizeEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ImageUnloadEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Image data has been unloaded (by some mechanism in EFL that threw out the original image data). public event EventHandler ImageUnloadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImageUnloadEvt_delegate)) { - eventHandlers.AddHandler(ImageUnloadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; - if (RemoveNativeEventHandler(key, this.evt_ImageUnloadEvt_delegate)) { - eventHandlers.RemoveHandler(ImageUnloadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImageUnloadEvt. - public void On_ImageUnloadEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImageUnloadEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImageUnloadEvt_delegate; - private void on_ImageUnloadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnImageUnloadEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ImageUnloadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ImagePreloadEvt_delegate = new Efl.EventCb(on_ImagePreloadEvt_NativeCallback); - evt_ImageResizeEvt_delegate = new Efl.EventCb(on_ImageResizeEvt_NativeCallback); - evt_ImageUnloadEvt_delegate = new Efl.EventCb(on_ImageUnloadEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Whether to use high-quality image scaling algorithm for this image. /// When enabled, a higher quality image scaling algorithm is used when scaling images to sizes other than the source image's original one. This gives better results but is more computationally expensive. @@ -455,7 +524,7 @@ private static object ImageUnloadEvtKey = new object(); /// true by default /// Whether to use smooth scale or not. public bool GetSmoothScale() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -464,29 +533,27 @@ private static object ImageUnloadEvtKey = new object(); /// /// true by default /// Whether to use smooth scale or not. - /// - public void SetSmoothScale( bool smooth_scale) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(this.NativeHandle, smooth_scale); + public void SetSmoothScale(bool smooth_scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(this.NativeHandle,smooth_scale); Eina.Error.RaiseIfUnhandledException(); } /// Control how the image is scaled. /// Image scale type public Efl.Gfx.ImageScaleType GetScaleType() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control how the image is scaled. /// Image scale type - /// - public void SetScaleType( Efl.Gfx.ImageScaleType scale_type) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_type_set_ptr.Value.Delegate(this.NativeHandle, scale_type); + public void SetScaleType(Efl.Gfx.ImageScaleType scale_type) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_set_ptr.Value.Delegate(this.NativeHandle,scale_type); Eina.Error.RaiseIfUnhandledException(); } /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. public double GetRatio() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_ratio_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_ratio_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -504,9 +571,8 @@ private static object ImageUnloadEvtKey = new object(); /// The border's right width. /// The border's top height. /// The border's bottom height. - /// - public void GetBorder( out int l, out int r, out int t, out int b) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_get_ptr.Value.Delegate(this.NativeHandle, out l, out r, out t, out b); + public void GetBorder(out int l, out int r, out int t, out int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_get_ptr.Value.Delegate(this.NativeHandle,out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Dimensions of this image's border, a region that does not scale with the center area. @@ -523,9 +589,8 @@ private static object ImageUnloadEvtKey = new object(); /// The border's right width. /// The border's top height. /// The border's bottom height. - /// - public void SetBorder( int l, int r, int t, int b) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_set_ptr.Value.Delegate(this.NativeHandle, l, r, t, b); + public void SetBorder(int l, int r, int t, int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_set_ptr.Value.Delegate(this.NativeHandle,l, r, t, b); Eina.Error.RaiseIfUnhandledException(); } /// Scaling factor applied to the image borders. @@ -534,7 +599,7 @@ private static object ImageUnloadEvtKey = new object(); /// Default value is 1.0 (no scaling). /// The scale factor. public double GetBorderScale() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_scale_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -543,9 +608,8 @@ private static object ImageUnloadEvtKey = new object(); /// /// Default value is 1.0 (no scaling). /// The scale factor. - /// - public void SetBorderScale( double scale) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_scale_set_ptr.Value.Delegate(this.NativeHandle, scale); + public void SetBorderScale(double scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_set_ptr.Value.Delegate(this.NativeHandle,scale); Eina.Error.RaiseIfUnhandledException(); } /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. @@ -554,7 +618,7 @@ private static object ImageUnloadEvtKey = new object(); /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. public Efl.Gfx.BorderFillMode GetBorderCenterFill() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -563,9 +627,8 @@ private static object ImageUnloadEvtKey = new object(); /// /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. - /// - public void SetBorderCenterFill( Efl.Gfx.BorderFillMode fill) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(this.NativeHandle, fill); + public void SetBorderCenterFill(Efl.Gfx.BorderFillMode fill) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(this.NativeHandle,fill); Eina.Error.RaiseIfUnhandledException(); } /// This represents the size of the original image in pixels. @@ -574,7 +637,7 @@ private static object ImageUnloadEvtKey = new object(); /// This is a read-only property, and may return 0x0. /// The size in pixels. public Eina.Size2D GetImageSize() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -582,38 +645,36 @@ private static object ImageUnloadEvtKey = new object(); /// This returns #EVAS_IMAGE_CONTENT_HINT_NONE on error. /// Dynamic or static content hint, see public Efl.Gfx.ImageContentHint GetContentHint() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_content_hint_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the content hint setting of a given image object of the canvas. /// This function sets the content hint value of the given image of the canvas. For example, if you're on the GL engine and your driver implementation supports it, setting this hint to #EVAS_IMAGE_CONTENT_HINT_DYNAMIC will make it need zero copies at texture upload time, which is an "expensive" operation. /// Dynamic or static content hint, see - /// - public void SetContentHint( Efl.Gfx.ImageContentHint hint) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_content_hint_set_ptr.Value.Delegate(this.NativeHandle, hint); + public void SetContentHint(Efl.Gfx.ImageContentHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_set_ptr.Value.Delegate(this.NativeHandle,hint); Eina.Error.RaiseIfUnhandledException(); } /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see public Efl.Gfx.ImageScaleHint GetScaleHint() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_hint_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the scale hint of a given image of the canvas. /// This function sets the scale hint value of the given image object in the canvas, which will affect how Evas is to cache scaled versions of its original source image. /// Scalable or static size hint, see - /// - public void SetScaleHint( Efl.Gfx.ImageScaleHint hint) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_hint_set_ptr.Value.Delegate(this.NativeHandle, hint); + public void SetScaleHint(Efl.Gfx.ImageScaleHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_set_ptr.Value.Delegate(this.NativeHandle,hint); Eina.Error.RaiseIfUnhandledException(); } /// Gets the (last) file loading error for a given object. /// The load error code. public Eina.Error GetImageLoadError() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_load_error_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_load_error_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -624,13 +685,13 @@ private static object ImageUnloadEvtKey = new object(); /// Whether to use smooth scale or not. public bool SmoothScale { get { return GetSmoothScale(); } - set { SetSmoothScale( value); } + set { SetSmoothScale(value); } } /// Control how the image is scaled. /// Image scale type public Efl.Gfx.ImageScaleType ScaleType { get { return GetScaleType(); } - set { SetScaleType( value); } + set { SetScaleType(value); } } /// The native width/height ratio of the image. /// The image's ratio. @@ -644,7 +705,7 @@ private static object ImageUnloadEvtKey = new object(); /// The scale factor. public double BorderScale { get { return GetBorderScale(); } - set { SetBorderScale( value); } + set { SetBorderScale(value); } } /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. /// This function sets how the center part of the image object's source image is to be drawn, which must be one of the values in . By center we mean the complementary part of that defined by . This is very useful for making frames and decorations. You would most probably also be using a filled image (as in ) to use as a frame. @@ -653,7 +714,7 @@ private static object ImageUnloadEvtKey = new object(); /// Fill mode of the center region. public Efl.Gfx.BorderFillMode BorderCenterFill { get { return GetBorderCenterFill(); } - set { SetBorderCenterFill( value); } + set { SetBorderCenterFill(value); } } /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. @@ -668,14 +729,14 @@ private static object ImageUnloadEvtKey = new object(); /// Dynamic or static content hint, see public Efl.Gfx.ImageContentHint ContentHint { get { return GetContentHint(); } - set { SetContentHint( value); } + set { SetContentHint(value); } } /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see public Efl.Gfx.ImageScaleHint ScaleHint { get { return GetScaleHint(); } - set { SetScaleHint( value); } + set { SetScaleHint(value); } } /// Gets the (last) file loading error for a given object. /// The load error code. @@ -686,511 +747,815 @@ private static object ImageUnloadEvtKey = new object(); { return Efl.Gfx.IImageConcrete.efl_gfx_image_interface_get(); } -} -public class IImageNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_image_smooth_scale_get_static_delegate == null) - efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetSmoothScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_smooth_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_get_static_delegate)}); - if (efl_gfx_image_smooth_scale_set_static_delegate == null) - efl_gfx_image_smooth_scale_set_static_delegate = new efl_gfx_image_smooth_scale_set_delegate(smooth_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetSmoothScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_smooth_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_set_static_delegate)}); - if (efl_gfx_image_scale_type_get_static_delegate == null) - efl_gfx_image_scale_type_get_static_delegate = new efl_gfx_image_scale_type_get_delegate(scale_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetScaleType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_get_static_delegate)}); - if (efl_gfx_image_scale_type_set_static_delegate == null) - efl_gfx_image_scale_type_set_static_delegate = new efl_gfx_image_scale_type_set_delegate(scale_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetScaleType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate)}); - if (efl_gfx_image_ratio_get_static_delegate == null) - efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); - if (methods.FirstOrDefault(m => m.Name == "GetRatio") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_ratio_get_static_delegate)}); - if (efl_gfx_image_border_get_static_delegate == null) - efl_gfx_image_border_get_static_delegate = new efl_gfx_image_border_get_delegate(border_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_get_static_delegate)}); - if (efl_gfx_image_border_set_static_delegate == null) - efl_gfx_image_border_set_static_delegate = new efl_gfx_image_border_set_delegate(border_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_set_static_delegate)}); - if (efl_gfx_image_border_scale_get_static_delegate == null) - efl_gfx_image_border_scale_get_static_delegate = new efl_gfx_image_border_scale_get_delegate(border_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_get_static_delegate)}); - if (efl_gfx_image_border_scale_set_static_delegate == null) - efl_gfx_image_border_scale_set_static_delegate = new efl_gfx_image_border_scale_set_delegate(border_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorderScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_set_static_delegate)}); - if (efl_gfx_image_border_center_fill_get_static_delegate == null) - efl_gfx_image_border_center_fill_get_static_delegate = new efl_gfx_image_border_center_fill_get_delegate(border_center_fill_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderCenterFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_center_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_get_static_delegate)}); - if (efl_gfx_image_border_center_fill_set_static_delegate == null) - efl_gfx_image_border_center_fill_set_static_delegate = new efl_gfx_image_border_center_fill_set_delegate(border_center_fill_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorderCenterFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_center_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_set_static_delegate)}); - if (efl_gfx_image_size_get_static_delegate == null) - efl_gfx_image_size_get_static_delegate = new efl_gfx_image_size_get_delegate(image_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_size_get_static_delegate)}); - if (efl_gfx_image_content_hint_get_static_delegate == null) - efl_gfx_image_content_hint_get_static_delegate = new efl_gfx_image_content_hint_get_delegate(content_hint_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_content_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_get_static_delegate)}); - if (efl_gfx_image_content_hint_set_static_delegate == null) - efl_gfx_image_content_hint_set_static_delegate = new efl_gfx_image_content_hint_set_delegate(content_hint_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_content_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_set_static_delegate)}); - if (efl_gfx_image_scale_hint_get_static_delegate == null) - efl_gfx_image_scale_hint_get_static_delegate = new efl_gfx_image_scale_hint_get_delegate(scale_hint_get); - if (methods.FirstOrDefault(m => m.Name == "GetScaleHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_get_static_delegate)}); - if (efl_gfx_image_scale_hint_set_static_delegate == null) - efl_gfx_image_scale_hint_set_static_delegate = new efl_gfx_image_scale_hint_set_delegate(scale_hint_set); - if (methods.FirstOrDefault(m => m.Name == "SetScaleHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_set_static_delegate)}); - if (efl_gfx_image_load_error_get_static_delegate == null) - efl_gfx_image_load_error_get_static_delegate = new efl_gfx_image_load_error_get_delegate(image_load_error_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageLoadError") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_error_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IImageConcrete.efl_gfx_image_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IImageConcrete.efl_gfx_image_interface_get(); - } + 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_gfx_image_smooth_scale_get_static_delegate == null) + { + efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_smooth_scale_set_static_delegate == null) + { + efl_gfx_image_smooth_scale_set_static_delegate = new efl_gfx_image_smooth_scale_set_delegate(smooth_scale_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_smooth_scale_get"); - private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IImage)wrapper).GetSmoothScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_scale_type_get_static_delegate == null) + { + efl_gfx_image_scale_type_get_static_delegate = new efl_gfx_image_scale_type_get_delegate(scale_type_get); } - return _ret_var; - } else { - return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_get_static_delegate) }); + } - private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + if (efl_gfx_image_scale_type_set_static_delegate == null) + { + efl_gfx_image_scale_type_set_static_delegate = new efl_gfx_image_scale_type_set_delegate(scale_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate) }); + } - public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_smooth_scale_set"); - private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) - { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImage)wrapper).SetSmoothScale( smooth_scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); - } - } - private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; + if (efl_gfx_image_ratio_get_static_delegate == null) + { + efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRatio") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_ratio_get_static_delegate) }); + } - private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_border_get_static_delegate == null) + { + efl_gfx_image_border_get_static_delegate = new efl_gfx_image_border_get_delegate(border_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_get_static_delegate) }); + } - public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_type_get"); - private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); - try { - _ret_var = ((IImage)wrapper).GetScaleType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_border_set_static_delegate == null) + { + efl_gfx_image_border_set_static_delegate = new efl_gfx_image_border_set_delegate(border_set); } - return _ret_var; - } else { - return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_set_static_delegate) }); + } - private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + if (efl_gfx_image_border_scale_get_static_delegate == null) + { + efl_gfx_image_border_scale_get_static_delegate = new efl_gfx_image_border_scale_get_delegate(border_scale_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_get_static_delegate) }); + } - public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_type_set"); - private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) - { - Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImage)wrapper).SetScaleType( scale_type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); - } - } - private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + if (efl_gfx_image_border_scale_set_static_delegate == null) + { + efl_gfx_image_border_scale_set_static_delegate = new efl_gfx_image_border_scale_set_delegate(border_scale_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_set_static_delegate) }); + } - private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_border_center_fill_get_static_delegate == null) + { + efl_gfx_image_border_center_fill_get_static_delegate = new efl_gfx_image_border_center_fill_get_delegate(border_center_fill_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_get_static_delegate) }); + } - public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_ratio_get"); - private static double ratio_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IImage)wrapper).GetRatio(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_border_center_fill_set_static_delegate == null) + { + efl_gfx_image_border_center_fill_set_static_delegate = new efl_gfx_image_border_center_fill_set_delegate(border_center_fill_set); } - return _ret_var; - } else { - return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_set_static_delegate) }); + } - private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + if (efl_gfx_image_size_get_static_delegate == null) + { + efl_gfx_image_size_get_static_delegate = new efl_gfx_image_size_get_delegate(image_size_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetImageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_size_get_static_delegate) }); + } - public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_get"); - private static void border_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) - { - Eina.Log.Debug("function efl_gfx_image_border_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(int); r = default(int); t = default(int); b = default(int); - try { - ((IImage)wrapper).GetBorder( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); - } - } - private static efl_gfx_image_border_get_delegate efl_gfx_image_border_get_static_delegate; + if (efl_gfx_image_content_hint_get_static_delegate == null) + { + efl_gfx_image_content_hint_get_static_delegate = new efl_gfx_image_content_hint_get_delegate(content_hint_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_get_static_delegate) }); + } - private delegate void efl_gfx_image_border_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + if (efl_gfx_image_content_hint_set_static_delegate == null) + { + efl_gfx_image_content_hint_set_static_delegate = new efl_gfx_image_content_hint_set_delegate(content_hint_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_set_static_delegate) }); + } - public delegate void efl_gfx_image_border_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_set"); - private static void border_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) - { - Eina.Log.Debug("function efl_gfx_image_border_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImage)wrapper).SetBorder( l, r, t, b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); - } - } - private static efl_gfx_image_border_set_delegate efl_gfx_image_border_set_static_delegate; + if (efl_gfx_image_scale_hint_get_static_delegate == null) + { + efl_gfx_image_scale_hint_get_static_delegate = new efl_gfx_image_scale_hint_get_delegate(scale_hint_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_get_static_delegate) }); + } + if (efl_gfx_image_scale_hint_set_static_delegate == null) + { + efl_gfx_image_scale_hint_set_static_delegate = new efl_gfx_image_scale_hint_set_delegate(scale_hint_set); + } - private delegate double efl_gfx_image_border_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_set_static_delegate) }); + } + if (efl_gfx_image_load_error_get_static_delegate == null) + { + efl_gfx_image_load_error_get_static_delegate = new efl_gfx_image_load_error_get_delegate(image_load_error_get); + } - public delegate double efl_gfx_image_border_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_scale_get"); - private static double border_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_border_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IImage)wrapper).GetBorderScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetImageLoadError") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_error_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_image_border_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Gfx.IImageConcrete.efl_gfx_image_interface_get(); } - } - private static efl_gfx_image_border_scale_get_delegate efl_gfx_image_border_scale_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_get"); + + private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IImage)wrapper).GetSmoothScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_border_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + return _ret_var; + } + else + { + return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_image_border_scale_set_api_delegate(System.IntPtr obj, double scale); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_scale_set"); - private static void border_scale_set(System.IntPtr obj, System.IntPtr pd, double scale) - { - Eina.Log.Debug("function efl_gfx_image_border_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImage)wrapper).SetBorderScale( scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; + + + private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + + public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_set"); + + private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImage)wrapper).SetSmoothScale(smooth_scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); + } } - } - private static efl_gfx_image_border_scale_set_delegate efl_gfx_image_border_scale_set_static_delegate; + private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; + + + private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_get"); + + private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); + try + { + _ret_var = ((IImage)wrapper).GetScaleType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_center_fill_get"); - private static Efl.Gfx.BorderFillMode border_center_fill_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_border_center_fill_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.BorderFillMode _ret_var = default(Efl.Gfx.BorderFillMode); - try { - _ret_var = ((IImage)wrapper).GetBorderCenterFill(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; + + + private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + + + public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_set"); + + private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImage)wrapper).SetScaleType(scale_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); } - return _ret_var; - } else { - return efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_border_center_fill_get_delegate efl_gfx_image_border_center_fill_get_static_delegate; + private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + + + private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_ratio_get"); + + private static double ratio_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IImage)wrapper).GetRatio(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_border_center_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill); + return _ret_var; + } + else + { + return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_image_border_center_fill_set_api_delegate(System.IntPtr obj, Efl.Gfx.BorderFillMode fill); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_center_fill_set"); - private static void border_center_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill) - { - Eina.Log.Debug("function efl_gfx_image_border_center_fill_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImage)wrapper).SetBorderCenterFill( fill); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); + private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + + + private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + + public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_get"); + + private static void border_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_image_border_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((IImage)wrapper).GetBorder(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + } } - } - private static efl_gfx_image_border_center_fill_set_delegate efl_gfx_image_border_center_fill_set_static_delegate; + private static efl_gfx_image_border_get_delegate efl_gfx_image_border_get_static_delegate; + + + private delegate void efl_gfx_image_border_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + + + public delegate void efl_gfx_image_border_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_set"); + + private static void border_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) + { + Eina.Log.Debug("function efl_gfx_image_border_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImage)wrapper).SetBorder(l, r, t, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); + } + } - private delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_border_set_delegate efl_gfx_image_border_set_static_delegate; + + + private delegate double efl_gfx_image_border_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_border_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_get"); + + private static double border_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IImage)wrapper).GetBorderScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_size_get"); - private static Eina.Size2D.NativeStruct image_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IImage)wrapper).GetImageSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_border_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_size_get_delegate efl_gfx_image_size_get_static_delegate; + private static efl_gfx_image_border_scale_get_delegate efl_gfx_image_border_scale_get_static_delegate; + + + private delegate void efl_gfx_image_border_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + + public delegate void efl_gfx_image_border_scale_set_api_delegate(System.IntPtr obj, double scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_set"); + + private static void border_scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImage)wrapper).SetBorderScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + } + } - private delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_border_scale_set_delegate efl_gfx_image_border_scale_set_static_delegate; + + + private delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_get"); + + private static Efl.Gfx.BorderFillMode border_center_fill_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.BorderFillMode _ret_var = default(Efl.Gfx.BorderFillMode); + try + { + _ret_var = ((IImage)wrapper).GetBorderCenterFill(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_content_hint_get"); - private static Efl.Gfx.ImageContentHint content_hint_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_content_hint_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageContentHint _ret_var = default(Efl.Gfx.ImageContentHint); - try { - _ret_var = ((IImage)wrapper).GetContentHint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_content_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_content_hint_get_delegate efl_gfx_image_content_hint_get_static_delegate; + private static efl_gfx_image_border_center_fill_get_delegate efl_gfx_image_border_center_fill_get_static_delegate; + + + private delegate void efl_gfx_image_border_center_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill); + + + public delegate void efl_gfx_image_border_center_fill_set_api_delegate(System.IntPtr obj, Efl.Gfx.BorderFillMode fill); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_set"); + + private static void border_center_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImage)wrapper).SetBorderCenterFill(fill); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); + } + } - private delegate void efl_gfx_image_content_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint); + private static efl_gfx_image_border_center_fill_set_delegate efl_gfx_image_border_center_fill_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_size_get"); + + private static Eina.Size2D.NativeStruct image_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IImage)wrapper).GetImageSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_image_content_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageContentHint hint); - public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_content_hint_set"); - private static void content_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint) - { - Eina.Log.Debug("function efl_gfx_image_content_hint_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImage)wrapper).SetContentHint( hint); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_content_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } + else + { + return efl_gfx_image_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_content_hint_set_delegate efl_gfx_image_content_hint_set_static_delegate; + private static efl_gfx_image_size_get_delegate efl_gfx_image_size_get_static_delegate; + + + private delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_get"); + + private static Efl.Gfx.ImageContentHint content_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageContentHint _ret_var = default(Efl.Gfx.ImageContentHint); + try + { + _ret_var = ((IImage)wrapper).GetContentHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - public delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_hint_get"); - private static Efl.Gfx.ImageScaleHint scale_hint_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_scale_hint_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageScaleHint _ret_var = default(Efl.Gfx.ImageScaleHint); - try { - _ret_var = ((IImage)wrapper).GetScaleHint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_scale_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_content_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_scale_hint_get_delegate efl_gfx_image_scale_hint_get_static_delegate; + private static efl_gfx_image_content_hint_get_delegate efl_gfx_image_content_hint_get_static_delegate; + + + private delegate void efl_gfx_image_content_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint); + + + public delegate void efl_gfx_image_content_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageContentHint hint); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_set"); + + private static void content_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImage)wrapper).SetContentHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_content_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } + } - private delegate void efl_gfx_image_scale_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint); + private static efl_gfx_image_content_hint_set_delegate efl_gfx_image_content_hint_set_static_delegate; + + + private delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_get"); + + private static Efl.Gfx.ImageScaleHint scale_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageScaleHint _ret_var = default(Efl.Gfx.ImageScaleHint); + try + { + _ret_var = ((IImage)wrapper).GetScaleHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_image_scale_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleHint hint); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_hint_set"); - private static void scale_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint) - { - Eina.Log.Debug("function efl_gfx_image_scale_hint_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImage)wrapper).SetScaleHint( hint); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_scale_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } + else + { + return efl_gfx_image_scale_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_scale_hint_set_delegate efl_gfx_image_scale_hint_set_static_delegate; + private static efl_gfx_image_scale_hint_get_delegate efl_gfx_image_scale_hint_get_static_delegate; + + + private delegate void efl_gfx_image_scale_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint); + + + public delegate void efl_gfx_image_scale_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleHint hint); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_set"); + + private static void scale_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImage)wrapper).SetScaleHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_scale_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } + } - private delegate Eina.Error efl_gfx_image_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_scale_hint_set_delegate efl_gfx_image_scale_hint_set_static_delegate; + + + private delegate Eina.Error efl_gfx_image_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_gfx_image_load_error_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_error_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_error_get"); + + private static Eina.Error image_load_error_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_error_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((IImage)wrapper).GetImageLoadError(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Error efl_gfx_image_load_error_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_error_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_error_get"); - private static Eina.Error image_load_error_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_error_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((IImage)wrapper).GetImageLoadError(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_error_get_delegate efl_gfx_image_load_error_get_static_delegate; + + private static efl_gfx_image_load_error_get_delegate efl_gfx_image_load_error_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } -namespace Efl { namespace Gfx { + +namespace Efl { + +namespace Gfx { + /// How an image's data is to be treated by EFL, for optimization. public enum ImageContentHint { @@ -1201,8 +1566,15 @@ Dynamic = 1, /// The content won't change over time. Static = 2, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// How an image's data is to be treated by EFL, with regard to scaling cache. public enum ImageScaleHint { @@ -1213,8 +1585,15 @@ Dynamic = 1, /// Image will not be re-scaled over time, thus turning scaling cache ON for its data. Static = 2, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// Enumeration that defines scale types of an image. public enum ImageScaleType { @@ -1229,4 +1608,8 @@ Tile = 3, /// Not scale the image None = 4, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_load_controller.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_load_controller.eo.cs index e4e64a5..f355ee2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_load_controller.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_load_controller.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Common APIs for all loadable 2D images. -[IImageLoadControllerNativeInherit] +[Efl.Gfx.IImageLoadControllerConcrete.NativeMethods] public interface IImageLoadController : Efl.Eo.IWrapper, IDisposable { @@ -16,8 +20,7 @@ Eina.Size2D GetLoadSize(); /// Requests the canvas to load the image at the given size. /// EFL will try to load an image of the requested size but does not guarantee an exact match between the request and the loaded image dimensions. /// The image load size. -/// -void SetLoadSize( Eina.Size2D size); +void SetLoadSize(Eina.Size2D size); /// Get the DPI resolution of a loaded image object in the canvas. /// This function returns the DPI resolution of the given canvas image. /// The DPI resolution. @@ -25,8 +28,7 @@ double GetLoadDpi(); /// Set the DPI resolution of an image object's source image. /// This function sets the DPI resolution of a given loaded canvas image. Most useful for the SVG image loader. /// The DPI resolution. -/// -void SetLoadDpi( double dpi); +void SetLoadDpi(double dpi); /// Indicates whether the property is supported for the current file. /// true if region load of the image is supported, false otherwise bool GetLoadRegionSupport(); @@ -38,8 +40,7 @@ Eina.Rect GetLoadRegion(); /// /// Note: The image loader for the image format in question has to support selective region loading in order for this function to work. /// A region of the image. -/// -void SetLoadRegion( Eina.Rect region); +void SetLoadRegion(Eina.Rect region); /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. @@ -47,8 +48,7 @@ bool GetLoadOrientation(); /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. -/// -void SetLoadOrientation( bool enable); +void SetLoadOrientation(bool enable); /// The scale down factor is a divider on the original image size. /// Setting the scale down factor can reduce load time and memory usage at the cost of having a scaled down image in memory. /// @@ -59,23 +59,19 @@ void SetLoadOrientation( bool enable); int GetLoadScaleDown(); /// Requests the image loader to scale down by div times. Call this before starting the actual image load. /// The scale down dividing factor. -/// -void SetLoadScaleDown( int div); +void SetLoadScaleDown(int div); /// Initial load should skip header check and leave it all to data load /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set). /// Will be true if header is to be skipped. bool GetLoadSkipHeader(); /// Set the skip header state for susbsequent loads of a file. /// Will be true if header is to be skipped. -/// -void SetLoadSkipHeader( bool skip); +void SetLoadSkipHeader(bool skip); /// Begin preloading an image object's image data in the background. /// Once the background task is complete the event load,done will be emitted. -/// void LoadAsyncStart(); /// Cancel preloading an image object's image data in the background. /// The object should be left in a state where it has no image data. If cancel is called too late, the image will be kept in memory. -/// void LoadAsyncCancel(); /// Called when he image was loaded event EventHandler LoadDoneEvt; @@ -146,257 +142,328 @@ IImageLoadController { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IImageLoadControllerConcrete)) - return Efl.Gfx.IImageLoadControllerNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IImageLoadControllerConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_image_load_controller_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IImageLoadControllerConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IImageLoadControllerConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object LoadDoneEvtKey = new object(); + /// Called when he image was loaded public event EventHandler LoadDoneEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LoadDoneEvt_delegate)) { - eventHandlers.AddHandler(LoadDoneEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; - if (RemoveNativeEventHandler(key, this.evt_LoadDoneEvt_delegate)) { - eventHandlers.RemoveHandler(LoadDoneEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LoadDoneEvt. - public void On_LoadDoneEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadDoneEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadDoneEvt_delegate; - private void on_LoadDoneEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLoadDoneEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_LoadDoneEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LoadErrorEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when an error happened during image loading public event EventHandler LoadErrorEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args args = new Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args(); + args.arg = (Eina.Error)Marshal.PtrToStructure(evt.Info, typeof(Eina.Error)); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LoadErrorEvt_delegate)) { - eventHandlers.AddHandler(LoadErrorEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; - if (RemoveNativeEventHandler(key, this.evt_LoadErrorEvt_delegate)) { - eventHandlers.RemoveHandler(LoadErrorEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LoadErrorEvt. - public void On_LoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) + public void OnLoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadErrorEvtKey]; + var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadErrorEvt_delegate; - private void on_LoadErrorEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args args = new Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args(); - args.arg = (Eina.Error)Marshal.PtrToStructure(evt.Info, typeof(Eina.Error)); - try { - On_LoadErrorEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_LoadDoneEvt_delegate = new Efl.EventCb(on_LoadDoneEvt_NativeCallback); - evt_LoadErrorEvt_delegate = new Efl.EventCb(on_LoadErrorEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc((int)e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Returns the requested load size. /// The image load size. public Eina.Size2D GetLoadSize() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests the canvas to load the image at the given size. /// EFL will try to load an image of the requested size but does not guarantee an exact match between the request and the loaded image dimensions. /// The image load size. - /// - public void SetLoadSize( Eina.Size2D size) { + public void SetLoadSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate(this.NativeHandle, _in_size); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate(this.NativeHandle,_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Get the DPI resolution of a loaded image object in the canvas. /// This function returns the DPI resolution of the given canvas image. /// The DPI resolution. public double GetLoadDpi() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the DPI resolution of an image object's source image. /// This function sets the DPI resolution of a given loaded canvas image. Most useful for the SVG image loader. /// The DPI resolution. - /// - public void SetLoadDpi( double dpi) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate(this.NativeHandle, dpi); + public void SetLoadDpi(double dpi) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate(this.NativeHandle,dpi); Eina.Error.RaiseIfUnhandledException(); } /// Indicates whether the property is supported for the current file. /// true if region load of the image is supported, false otherwise public bool GetLoadRegionSupport() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Retrieve the coordinates of a given image object's selective (source image) load region. /// A region of the image. public Eina.Rect GetLoadRegion() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -405,26 +472,24 @@ private static object LoadErrorEvtKey = new object(); /// /// Note: The image loader for the image format in question has to support selective region loading in order for this function to work. /// A region of the image. - /// - public void SetLoadRegion( Eina.Rect region) { + public void SetLoadRegion(Eina.Rect region) { Eina.Rect.NativeStruct _in_region = region; - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate(this.NativeHandle, _in_region); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate(this.NativeHandle,_in_region); Eina.Error.RaiseIfUnhandledException(); } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. public bool GetLoadOrientation() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. - /// - public void SetLoadOrientation( bool enable) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate(this.NativeHandle, enable); + public void SetLoadOrientation(bool enable) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate(this.NativeHandle,enable); Eina.Error.RaiseIfUnhandledException(); } /// The scale down factor is a divider on the original image size. @@ -435,44 +500,40 @@ private static object LoadErrorEvtKey = new object(); /// Powers of two (2, 4, 8) are best supported (especially with JPEG) /// The scale down dividing factor. public int GetLoadScaleDown() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests the image loader to scale down by div times. Call this before starting the actual image load. /// The scale down dividing factor. - /// - public void SetLoadScaleDown( int div) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate(this.NativeHandle, div); + public void SetLoadScaleDown(int div) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate(this.NativeHandle,div); Eina.Error.RaiseIfUnhandledException(); } /// Initial load should skip header check and leave it all to data load /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set). /// Will be true if header is to be skipped. public bool GetLoadSkipHeader() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the skip header state for susbsequent loads of a file. /// Will be true if header is to be skipped. - /// - public void SetLoadSkipHeader( bool skip) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate(this.NativeHandle, skip); + public void SetLoadSkipHeader(bool skip) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate(this.NativeHandle,skip); Eina.Error.RaiseIfUnhandledException(); } /// Begin preloading an image object's image data in the background. /// Once the background task is complete the event load,done will be emitted. - /// public void LoadAsyncStart() { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Cancel preloading an image object's image data in the background. /// The object should be left in a state where it has no image data. If cancel is called too late, the image will be kept in memory. - /// public void LoadAsyncCancel() { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// The load size of an image. @@ -482,14 +543,14 @@ private static object LoadErrorEvtKey = new object(); /// The image load size. public Eina.Size2D LoadSize { get { return GetLoadSize(); } - set { SetLoadSize( value); } + set { SetLoadSize(value); } } /// Get the DPI resolution of a loaded image object in the canvas. /// This function returns the DPI resolution of the given canvas image. /// The DPI resolution. public double LoadDpi { get { return GetLoadDpi(); } - set { SetLoadDpi( value); } + set { SetLoadDpi(value); } } /// Indicates whether the property is supported for the current file. /// true if region load of the image is supported, false otherwise @@ -500,14 +561,14 @@ private static object LoadErrorEvtKey = new object(); /// A region of the image. public Eina.Rect LoadRegion { get { return GetLoadRegion(); } - set { SetLoadRegion( value); } + set { SetLoadRegion(value); } } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. public bool LoadOrientation { get { return GetLoadOrientation(); } - set { SetLoadOrientation( value); } + set { SetLoadOrientation(value); } } /// The scale down factor is a divider on the original image size. /// Setting the scale down factor can reduce load time and memory usage at the cost of having a scaled down image in memory. @@ -518,464 +579,731 @@ private static object LoadErrorEvtKey = new object(); /// The scale down dividing factor. public int LoadScaleDown { get { return GetLoadScaleDown(); } - set { SetLoadScaleDown( value); } + set { SetLoadScaleDown(value); } } /// Initial load should skip header check and leave it all to data load /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set). /// Will be true if header is to be skipped. public bool LoadSkipHeader { get { return GetLoadSkipHeader(); } - set { SetLoadSkipHeader( value); } + set { SetLoadSkipHeader(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IImageLoadControllerConcrete.efl_gfx_image_load_controller_interface_get(); } -} -public class IImageLoadControllerNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_image_load_controller_load_size_get_static_delegate == null) - efl_gfx_image_load_controller_load_size_get_static_delegate = new efl_gfx_image_load_controller_load_size_get_delegate(load_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_size_set_static_delegate == null) - efl_gfx_image_load_controller_load_size_set_static_delegate = new efl_gfx_image_load_controller_load_size_set_delegate(load_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_dpi_get_static_delegate == null) - efl_gfx_image_load_controller_load_dpi_get_static_delegate = new efl_gfx_image_load_controller_load_dpi_get_delegate(load_dpi_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadDpi") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_dpi_set_static_delegate == null) - efl_gfx_image_load_controller_load_dpi_set_static_delegate = new efl_gfx_image_load_controller_load_dpi_set_delegate(load_dpi_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadDpi") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_dpi_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_support_get_static_delegate == null) - efl_gfx_image_load_controller_load_region_support_get_static_delegate = new efl_gfx_image_load_controller_load_region_support_get_delegate(load_region_support_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadRegionSupport") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_support_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_support_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_get_static_delegate == null) - efl_gfx_image_load_controller_load_region_get_static_delegate = new efl_gfx_image_load_controller_load_region_get_delegate(load_region_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_set_static_delegate == null) - efl_gfx_image_load_controller_load_region_set_static_delegate = new efl_gfx_image_load_controller_load_region_set_delegate(load_region_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_orientation_get_static_delegate == null) - efl_gfx_image_load_controller_load_orientation_get_static_delegate = new efl_gfx_image_load_controller_load_orientation_get_delegate(load_orientation_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_orientation_set_static_delegate == null) - efl_gfx_image_load_controller_load_orientation_set_static_delegate = new efl_gfx_image_load_controller_load_orientation_set_delegate(load_orientation_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_scale_down_get_static_delegate == null) - efl_gfx_image_load_controller_load_scale_down_get_static_delegate = new efl_gfx_image_load_controller_load_scale_down_get_delegate(load_scale_down_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadScaleDown") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_scale_down_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_scale_down_set_static_delegate == null) - efl_gfx_image_load_controller_load_scale_down_set_static_delegate = new efl_gfx_image_load_controller_load_scale_down_set_delegate(load_scale_down_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadScaleDown") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_scale_down_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_skip_header_get_static_delegate == null) - efl_gfx_image_load_controller_load_skip_header_get_static_delegate = new efl_gfx_image_load_controller_load_skip_header_get_delegate(load_skip_header_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadSkipHeader") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_skip_header_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_skip_header_set_static_delegate == null) - efl_gfx_image_load_controller_load_skip_header_set_static_delegate = new efl_gfx_image_load_controller_load_skip_header_set_delegate(load_skip_header_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadSkipHeader") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_skip_header_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_async_start_static_delegate == null) - efl_gfx_image_load_controller_load_async_start_static_delegate = new efl_gfx_image_load_controller_load_async_start_delegate(load_async_start); - if (methods.FirstOrDefault(m => m.Name == "LoadAsyncStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_async_start"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_start_static_delegate)}); - if (efl_gfx_image_load_controller_load_async_cancel_static_delegate == null) - efl_gfx_image_load_controller_load_async_cancel_static_delegate = new efl_gfx_image_load_controller_load_async_cancel_delegate(load_async_cancel); - if (methods.FirstOrDefault(m => m.Name == "LoadAsyncCancel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_async_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_cancel_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IImageLoadControllerConcrete.efl_gfx_image_load_controller_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Gfx.IImageLoadControllerConcrete.efl_gfx_image_load_controller_interface_get(); - } + 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_gfx_image_load_controller_load_size_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_size_get_static_delegate = new efl_gfx_image_load_controller_load_size_get_delegate(load_size_get); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLoadSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_get_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_size_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_size_set_static_delegate = new efl_gfx_image_load_controller_load_size_set_delegate(load_size_set); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_size_get"); - private static Eina.Size2D.NativeStruct load_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IImageLoadController)wrapper).GetLoadSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLoadSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_set_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_dpi_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_dpi_get_static_delegate = new efl_gfx_image_load_controller_load_dpi_get_delegate(load_dpi_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLoadDpi") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_get_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_dpi_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_dpi_set_static_delegate = new efl_gfx_image_load_controller_load_dpi_set_delegate(load_dpi_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLoadDpi") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_dpi_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_set_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_region_support_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_support_get_static_delegate = new efl_gfx_image_load_controller_load_region_support_get_delegate(load_region_support_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLoadRegionSupport") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_support_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_support_get_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_region_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_get_static_delegate = new efl_gfx_image_load_controller_load_region_get_delegate(load_region_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLoadRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_get_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_region_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_set_static_delegate = new efl_gfx_image_load_controller_load_region_set_delegate(load_region_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLoadRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_set_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_orientation_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_orientation_get_static_delegate = new efl_gfx_image_load_controller_load_orientation_get_delegate(load_orientation_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLoadOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_get_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_orientation_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_orientation_set_static_delegate = new efl_gfx_image_load_controller_load_orientation_set_delegate(load_orientation_set); } + + if (methods.FirstOrDefault(m => m.Name == "SetLoadOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_set_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_scale_down_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_scale_down_get_static_delegate = new efl_gfx_image_load_controller_load_scale_down_get_delegate(load_scale_down_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLoadScaleDown") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_scale_down_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_get_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_scale_down_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_scale_down_set_static_delegate = new efl_gfx_image_load_controller_load_scale_down_set_delegate(load_scale_down_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLoadScaleDown") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_scale_down_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_set_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_skip_header_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_skip_header_get_static_delegate = new efl_gfx_image_load_controller_load_skip_header_get_delegate(load_skip_header_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLoadSkipHeader") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_skip_header_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_get_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_skip_header_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_skip_header_set_static_delegate = new efl_gfx_image_load_controller_load_skip_header_set_delegate(load_skip_header_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLoadSkipHeader") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_skip_header_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_set_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_async_start_static_delegate == null) + { + efl_gfx_image_load_controller_load_async_start_static_delegate = new efl_gfx_image_load_controller_load_async_start_delegate(load_async_start); + } + + if (methods.FirstOrDefault(m => m.Name == "LoadAsyncStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_async_start"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_start_static_delegate) }); + } + + if (efl_gfx_image_load_controller_load_async_cancel_static_delegate == null) + { + efl_gfx_image_load_controller_load_async_cancel_static_delegate = new efl_gfx_image_load_controller_load_async_cancel_delegate(load_async_cancel); + } + + if (methods.FirstOrDefault(m => m.Name == "LoadAsyncCancel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_async_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_cancel_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.Gfx.IImageLoadControllerConcrete.efl_gfx_image_load_controller_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_size_get"); + + private static Eina.Size2D.NativeStruct load_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IImageLoadController)wrapper).GetLoadSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_size_get_delegate efl_gfx_image_load_controller_load_size_get_static_delegate; + private static efl_gfx_image_load_controller_load_size_get_delegate efl_gfx_image_load_controller_load_size_get_static_delegate; - private delegate void efl_gfx_image_load_controller_load_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + private delegate void efl_gfx_image_load_controller_load_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_gfx_image_load_controller_load_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public delegate void efl_gfx_image_load_controller_load_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_size_set"); - private static void load_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_size_set"); + + private static void load_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; - try { - ((IImageLoadController)wrapper).SetLoadSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IImageLoadController)wrapper).SetLoadSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - } else { - efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - } - private static efl_gfx_image_load_controller_load_size_set_delegate efl_gfx_image_load_controller_load_size_set_static_delegate; + private static efl_gfx_image_load_controller_load_size_set_delegate efl_gfx_image_load_controller_load_size_set_static_delegate; - private delegate double efl_gfx_image_load_controller_load_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_gfx_image_load_controller_load_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_gfx_image_load_controller_load_dpi_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_dpi_get"); + + private static double load_dpi_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IImageLoadController)wrapper).GetLoadDpi(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_gfx_image_load_controller_load_dpi_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_dpi_get"); - private static double load_dpi_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IImageLoadController)wrapper).GetLoadDpi(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_dpi_get_delegate efl_gfx_image_load_controller_load_dpi_get_static_delegate; + private static efl_gfx_image_load_controller_load_dpi_get_delegate efl_gfx_image_load_controller_load_dpi_get_static_delegate; - private delegate void efl_gfx_image_load_controller_load_dpi_set_delegate(System.IntPtr obj, System.IntPtr pd, double dpi); + + private delegate void efl_gfx_image_load_controller_load_dpi_set_delegate(System.IntPtr obj, System.IntPtr pd, double dpi); + + public delegate void efl_gfx_image_load_controller_load_dpi_set_api_delegate(System.IntPtr obj, double dpi); - public delegate void efl_gfx_image_load_controller_load_dpi_set_api_delegate(System.IntPtr obj, double dpi); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_dpi_set"); - private static void load_dpi_set(System.IntPtr obj, System.IntPtr pd, double dpi) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImageLoadController)wrapper).SetLoadDpi( dpi); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dpi); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_dpi_set"); + + private static void load_dpi_set(System.IntPtr obj, System.IntPtr pd, double dpi) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImageLoadController)wrapper).SetLoadDpi(dpi); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dpi); + } } - } - private static efl_gfx_image_load_controller_load_dpi_set_delegate efl_gfx_image_load_controller_load_dpi_set_static_delegate; + private static efl_gfx_image_load_controller_load_dpi_set_delegate efl_gfx_image_load_controller_load_dpi_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_region_support_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_region_support_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_region_support_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_support_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_support_get"); + + private static bool load_region_support_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_support_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IImageLoadController)wrapper).GetLoadRegionSupport(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_region_support_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_support_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_support_get"); - private static bool load_region_support_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_support_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IImageLoadController)wrapper).GetLoadRegionSupport(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_region_support_get_delegate efl_gfx_image_load_controller_load_region_support_get_static_delegate; + private static efl_gfx_image_load_controller_load_region_support_get_delegate efl_gfx_image_load_controller_load_region_support_get_static_delegate; - private delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_get"); + + private static Eina.Rect.NativeStruct load_region_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((IImageLoadController)wrapper).GetLoadRegion(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_get"); - private static Eina.Rect.NativeStruct load_region_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((IImageLoadController)wrapper).GetLoadRegion(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_region_get_delegate efl_gfx_image_load_controller_load_region_get_static_delegate; + private static efl_gfx_image_load_controller_load_region_get_delegate efl_gfx_image_load_controller_load_region_get_static_delegate; - private delegate void efl_gfx_image_load_controller_load_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region); + + private delegate void efl_gfx_image_load_controller_load_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region); + + public delegate void efl_gfx_image_load_controller_load_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region); - public delegate void efl_gfx_image_load_controller_load_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_set"); - private static void load_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_region = region; + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_set"); + + private static void load_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_region = region; - try { - ((IImageLoadController)wrapper).SetLoadRegion( _in_region); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IImageLoadController)wrapper).SetLoadRegion(_in_region); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region); } - } else { - efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region); } - } - private static efl_gfx_image_load_controller_load_region_set_delegate efl_gfx_image_load_controller_load_region_set_static_delegate; + private static efl_gfx_image_load_controller_load_region_set_delegate efl_gfx_image_load_controller_load_region_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_orientation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_orientation_get"); + + private static bool load_orientation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IImageLoadController)wrapper).GetLoadOrientation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_orientation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_orientation_get"); - private static bool load_orientation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IImageLoadController)wrapper).GetLoadOrientation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_orientation_get_delegate efl_gfx_image_load_controller_load_orientation_get_static_delegate; + private static efl_gfx_image_load_controller_load_orientation_get_delegate efl_gfx_image_load_controller_load_orientation_get_static_delegate; - private delegate void efl_gfx_image_load_controller_load_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + + private delegate void efl_gfx_image_load_controller_load_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + + public delegate void efl_gfx_image_load_controller_load_orientation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public delegate void efl_gfx_image_load_controller_load_orientation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_orientation_set"); - private static void load_orientation_set(System.IntPtr obj, System.IntPtr pd, bool enable) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImageLoadController)wrapper).SetLoadOrientation( enable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_orientation_set"); + + private static void load_orientation_set(System.IntPtr obj, System.IntPtr pd, bool enable) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImageLoadController)wrapper).SetLoadOrientation(enable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); + } } - } - private static efl_gfx_image_load_controller_load_orientation_set_delegate efl_gfx_image_load_controller_load_orientation_set_static_delegate; + private static efl_gfx_image_load_controller_load_orientation_set_delegate efl_gfx_image_load_controller_load_orientation_set_static_delegate; - private delegate int efl_gfx_image_load_controller_load_scale_down_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_gfx_image_load_controller_load_scale_down_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_gfx_image_load_controller_load_scale_down_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_scale_down_get"); + + private static int load_scale_down_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IImageLoadController)wrapper).GetLoadScaleDown(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_gfx_image_load_controller_load_scale_down_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_scale_down_get"); - private static int load_scale_down_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IImageLoadController)wrapper).GetLoadScaleDown(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_scale_down_get_delegate efl_gfx_image_load_controller_load_scale_down_get_static_delegate; + private static efl_gfx_image_load_controller_load_scale_down_get_delegate efl_gfx_image_load_controller_load_scale_down_get_static_delegate; - private delegate void efl_gfx_image_load_controller_load_scale_down_set_delegate(System.IntPtr obj, System.IntPtr pd, int div); + + private delegate void efl_gfx_image_load_controller_load_scale_down_set_delegate(System.IntPtr obj, System.IntPtr pd, int div); + + public delegate void efl_gfx_image_load_controller_load_scale_down_set_api_delegate(System.IntPtr obj, int div); - public delegate void efl_gfx_image_load_controller_load_scale_down_set_api_delegate(System.IntPtr obj, int div); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_scale_down_set"); - private static void load_scale_down_set(System.IntPtr obj, System.IntPtr pd, int div) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImageLoadController)wrapper).SetLoadScaleDown( div); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), div); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_scale_down_set"); + + private static void load_scale_down_set(System.IntPtr obj, System.IntPtr pd, int div) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImageLoadController)wrapper).SetLoadScaleDown(div); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), div); + } } - } - private static efl_gfx_image_load_controller_load_scale_down_set_delegate efl_gfx_image_load_controller_load_scale_down_set_static_delegate; + private static efl_gfx_image_load_controller_load_scale_down_set_delegate efl_gfx_image_load_controller_load_scale_down_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_skip_header_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_skip_header_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_skip_header_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_skip_header_get"); + + private static bool load_skip_header_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IImageLoadController)wrapper).GetLoadSkipHeader(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_skip_header_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_skip_header_get"); - private static bool load_skip_header_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IImageLoadController)wrapper).GetLoadSkipHeader(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_skip_header_get_delegate efl_gfx_image_load_controller_load_skip_header_get_static_delegate; + private static efl_gfx_image_load_controller_load_skip_header_get_delegate efl_gfx_image_load_controller_load_skip_header_get_static_delegate; - private delegate void efl_gfx_image_load_controller_load_skip_header_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool skip); + + private delegate void efl_gfx_image_load_controller_load_skip_header_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool skip); + + public delegate void efl_gfx_image_load_controller_load_skip_header_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool skip); - public delegate void efl_gfx_image_load_controller_load_skip_header_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool skip); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_skip_header_set"); - private static void load_skip_header_set(System.IntPtr obj, System.IntPtr pd, bool skip) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImageLoadController)wrapper).SetLoadSkipHeader( skip); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), skip); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_skip_header_set"); + + private static void load_skip_header_set(System.IntPtr obj, System.IntPtr pd, bool skip) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImageLoadController)wrapper).SetLoadSkipHeader(skip); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), skip); + } } - } - private static efl_gfx_image_load_controller_load_skip_header_set_delegate efl_gfx_image_load_controller_load_skip_header_set_static_delegate; + private static efl_gfx_image_load_controller_load_skip_header_set_delegate efl_gfx_image_load_controller_load_skip_header_set_static_delegate; - private delegate void efl_gfx_image_load_controller_load_async_start_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_image_load_controller_load_async_start_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_gfx_image_load_controller_load_async_start_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_image_load_controller_load_async_start_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_async_start"); - private static void load_async_start(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImageLoadController)wrapper).LoadAsyncStart(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_async_start"); + + private static void load_async_start(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImageLoadController)wrapper).LoadAsyncStart(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_load_controller_load_async_start_delegate efl_gfx_image_load_controller_load_async_start_static_delegate; + private static efl_gfx_image_load_controller_load_async_start_delegate efl_gfx_image_load_controller_load_async_start_static_delegate; - private delegate void efl_gfx_image_load_controller_load_async_cancel_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_image_load_controller_load_async_cancel_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_gfx_image_load_controller_load_async_cancel_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_image_load_controller_load_async_cancel_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_cancel_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_async_cancel"); - private static void load_async_cancel(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_cancel was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IImageLoadController)wrapper).LoadAsyncCancel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_cancel_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_async_cancel"); + + private static void load_async_cancel(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_cancel was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IImageLoadController)wrapper).LoadAsyncCancel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_load_controller_load_async_cancel_delegate efl_gfx_image_load_controller_load_async_cancel_static_delegate; + + private static efl_gfx_image_load_controller_load_async_cancel_delegate efl_gfx_image_load_controller_load_async_cancel_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_mapping.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_mapping.eo.cs index 7cfee4d..0f457cf 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_mapping.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_mapping.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Texture UV mapping for all objects (rotation, perspective, 3d, ...). /// Evas allows different transformations to be applied to all kinds of objects. These are applied by means of UV mapping. /// @@ -14,7 +18,7 @@ namespace Efl { namespace Gfx { /// /// At the moment of writing, maps can only have 4 points (no more, no less). /// (Since EFL 1.22) -[IMappingNativeInherit] +[Efl.Gfx.IMappingConcrete.NativeMethods] public interface IMapping : Efl.Eo.IWrapper, IDisposable { @@ -27,8 +31,7 @@ int GetMappingPointCount(); /// This sets the number of points of map. Currently, the number of points must be multiples of 4. /// (Since EFL 1.22) /// The number of points of map -/// -void SetMappingPointCount( int count); +void SetMappingPointCount(int count); /// Clockwise state of a map (read-only). /// This determines if the output points (X and Y. Z is not used) are clockwise or counter-clockwise. This can be used for "back-face culling". This is where you hide objects that "face away" from you. In this case objects that are not clockwise. /// (Since EFL 1.22) @@ -43,8 +46,7 @@ bool GetMappingSmooth(); /// This sets smoothing for map rendering. If the object is a type that has its own smoothing settings, then both the smooth settings for this object and the map must be turned off. By default smooth maps are enabled. /// (Since EFL 1.22) /// true by default. -/// -void SetMappingSmooth( bool smooth); +void SetMappingSmooth(bool smooth); /// Alpha flag for map rendering. /// This sets alpha flag for map rendering. If the object is a type that has its own alpha settings, then this will take precedence. Only image objects support this currently ( and its friends). Setting this to off stops alpha blending of the map area, and is useful if you know the object and/or all sub-objects is 100% solid. /// @@ -58,8 +60,7 @@ bool GetMappingAlpha(); /// Note that this may conflict with depending on which algorithm is used for anti-aliasing. /// (Since EFL 1.22) /// true by default. -/// -void SetMappingAlpha( bool alpha); +void SetMappingAlpha(bool alpha); /// A point's absolute coordinate on the canvas. /// This sets/gets the fixed point's coordinate in the map. Note that points describe the outline of a quadrangle and are ordered either clockwise or counter-clockwise. Try to keep your quadrangles concave and non-complex. Though these polygon modes may work, they may not render a desired set of output. The quadrangle will use points 0 and 1 , 1 and 2, 2 and 3, and 3 and 0 to describe the edges of the quadrangle. /// @@ -73,8 +74,7 @@ void SetMappingAlpha( bool alpha); /// Point X coordinate in absolute pixel coordinates. /// Point Y coordinate in absolute pixel coordinates. /// Point Z coordinate hint (pre-perspective transform). -/// -void GetMappingCoordAbsolute( int idx, out double x, out double y, out double z); +void GetMappingCoordAbsolute(int idx, out double x, out double y, out double z); /// A point's absolute coordinate on the canvas. /// This sets/gets the fixed point's coordinate in the map. Note that points describe the outline of a quadrangle and are ordered either clockwise or counter-clockwise. Try to keep your quadrangles concave and non-complex. Though these polygon modes may work, they may not render a desired set of output. The quadrangle will use points 0 and 1 , 1 and 2, 2 and 3, and 3 and 0 to describe the edges of the quadrangle. /// @@ -88,8 +88,7 @@ void GetMappingCoordAbsolute( int idx, out double x, out double y, out double /// Point X coordinate in absolute pixel coordinates. /// Point Y coordinate in absolute pixel coordinates. /// Point Z coordinate hint (pre-perspective transform). -/// -void SetMappingCoordAbsolute( int idx, double x, double y, double z); +void SetMappingCoordAbsolute(int idx, double x, double y, double z); /// Map point's U and V texture source point. /// This sets/gets the U and V coordinates for the point. This determines which coordinate in the source image is mapped to the given point, much like OpenGL and textures. Valid values range from 0.0 to 1.0. /// @@ -98,8 +97,7 @@ void SetMappingCoordAbsolute( int idx, double x, double y, double z); /// ID of the point, from 0 to 3 (included). /// Relative X coordinate within the image, from 0 to 1. /// Relative Y coordinate within the image, from 0 to 1. -/// -void GetMappingUv( int idx, out double u, out double v); +void GetMappingUv(int idx, out double u, out double v); /// Map point's U and V texture source point. /// This sets/gets the U and V coordinates for the point. This determines which coordinate in the source image is mapped to the given point, much like OpenGL and textures. Valid values range from 0.0 to 1.0. /// @@ -108,8 +106,7 @@ void GetMappingUv( int idx, out double u, out double v); /// ID of the point, from 0 to 3 (included). /// Relative X coordinate within the image, from 0 to 1. /// Relative Y coordinate within the image, from 0 to 1. -/// -void SetMappingUv( int idx, double u, double v); +void SetMappingUv(int idx, double u, double v); /// Color of a vertex in the map. /// This sets the color of the vertex in the map. Colors will be linearly interpolated between vertex points through the map. Color will multiply the "texture" pixels (like GL_MODULATE in OpenGL). The default color of a vertex in a map is white solid (255, 255, 255, 255) which means it will have no affect on modifying the texture pixels. /// @@ -120,8 +117,7 @@ void SetMappingUv( int idx, double u, double v); /// Green (0 - 255) /// Blue (0 - 255) /// Alpha (0 - 255) -/// -void GetMappingColor( int idx, out int r, out int g, out int b, out int a); +void GetMappingColor(int idx, out int r, out int g, out int b, out int a); /// Color of a vertex in the map. /// This sets the color of the vertex in the map. Colors will be linearly interpolated between vertex points through the map. Color will multiply the "texture" pixels (like GL_MODULATE in OpenGL). The default color of a vertex in a map is white solid (255, 255, 255, 255) which means it will have no affect on modifying the texture pixels. /// @@ -132,8 +128,7 @@ void GetMappingColor( int idx, out int r, out int g, out int b, out int a); /// Green (0 - 255) /// Blue (0 - 255) /// Alpha (0 - 255) -/// -void SetMappingColor( int idx, int r, int g, int b, int a); +void SetMappingColor(int idx, int r, int g, int b, int a); /// Read-only property indicating whether an object is mapped. /// This will be true if any transformation is applied to this object. /// (Since EFL 1.22) @@ -142,7 +137,6 @@ bool HasMapping(); /// Resets the map transformation to its default state. /// This will reset all transformations to identity, meaning the points' colors, positions and UV coordinates will be reset to their default values. will then return false. This function will not modify the values of or . /// (Since EFL 1.22) -/// void ResetMapping(); /// Apply a translation to the object using map. /// This does not change the real geometry of the object but will affect its visible position. @@ -150,8 +144,7 @@ void ResetMapping(); /// Distance in pixels along the X axis. /// Distance in pixels along the Y axis. /// Distance in pixels along the Z axis. -/// -void Translate( double dx, double dy, double dz); +void Translate(double dx, double dy, double dz); /// Apply a rotation to the object. /// This rotates the object clockwise by degrees degrees, around the center specified by the relative position (cx, cy) in the pivot object. If pivot is null then this object is used as its own pivot center. 360 degrees is a full rotation, equivalent to no rotation. Negative values for degrees will rotate clockwise by that amount. /// @@ -163,8 +156,7 @@ void Translate( double dx, double dy, double dz); /// A pivot object for the center point, can be null. /// X relative coordinate of the center point. /// y relative coordinate of the center point. -/// -void Rotate( double degrees, Efl.Gfx.IEntity pivot, double cx, double cy); +void Rotate(double degrees, Efl.Gfx.IEntity pivot, double cx, double cy); /// Rotate the object around 3 axes in 3D. /// This will rotate in 3D, not just around the "Z" axis as is the case with . You can rotate around the X, Y and Z axes. The Z axis points "into" the screen with low values at the screen and higher values further away. The X axis runs from left to right on the screen and the Y axis from top to bottom. /// @@ -177,8 +169,7 @@ void Rotate( double degrees, Efl.Gfx.IEntity pivot, double cx, double cy); /// X relative coordinate of the center point. /// y relative coordinate of the center point. /// Z absolute coordinate of the center point. -/// -void Rotate3d( double dx, double dy, double dz, Efl.Gfx.IEntity pivot, double cx, double cy, double cz); +void Rotate3d(double dx, double dy, double dz, Efl.Gfx.IEntity pivot, double cx, double cy, double cz); /// Rotate the object in 3D using a unit quaternion. /// This is similar to but uses a unit quaternion (also known as versor) rather than a direct angle-based rotation around a center point. Use this to avoid gimbal locks. /// @@ -192,8 +183,7 @@ void Rotate3d( double dx, double dy, double dz, Efl.Gfx.IEntity pivot, doubl /// X relative coordinate of the center point. /// y relative coordinate of the center point. /// Z absolute coordinate of the center point. -/// -void RotateQuat( double qx, double qy, double qz, double qw, Efl.Gfx.IEntity pivot, double cx, double cy, double cz); +void RotateQuat(double qx, double qy, double qz, double qw, Efl.Gfx.IEntity pivot, double cx, double cy, double cz); /// Apply a zoom to the object. /// This zooms the points of the map from a center point. That center is defined by cx and cy. The zoomx and zoomy parameters specify how much to zoom in the X and Y direction respectively. A value of 1.0 means "don't zoom". 2.0 means "double the size". 0.5 is "half the size" etc. /// @@ -204,8 +194,7 @@ void RotateQuat( double qx, double qy, double qz, double qw, Efl.Gfx.IEntity /// A pivot object for the center point, can be null. /// X relative coordinate of the center point. /// y relative coordinate of the center point. -/// -void Zoom( double zoomx, double zoomy, Efl.Gfx.IEntity pivot, double cx, double cy); +void Zoom(double zoomx, double zoomy, Efl.Gfx.IEntity pivot, double cx, double cy); /// Apply a lighting effect on the object. /// This is used to apply lighting calculations (from a single light source) to a given mapped object. The R, G and B values of each vertex will be modified to reflect the lighting based on the light point coordinates, the light color and the ambient color, and at what angle the map is facing the light source. A surface should have its points be declared in a clockwise fashion if the face is "facing" towards you (as opposed to away from you) as faces have a "logical" side for lighting. /// @@ -221,8 +210,7 @@ void Zoom( double zoomx, double zoomy, Efl.Gfx.IEntity pivot, double cx, dou /// Ambient color red value (0 - 255). /// Ambient color green value (0 - 255). /// Ambient color blue value (0 - 255). -/// -void Lighting3d( Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); +void Lighting3d(Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); /// Apply a perspective transform to the map /// This applies a given perspective (3D) to the map coordinates. X, Y and Z values are used. The px and py points specify the "infinite distance" point in the 3D conversion (where all lines converge to like when artists draw 3D by hand). The z0 value specifies the z value at which there is a 1:1 mapping between spatial coordinates and screen coordinates. Any points on this z value will not have their X and Y values modified in the transform. Those further away (Z value higher) will shrink into the distance, and those under this value will expand and become bigger. The foc value determines the "focal length" of the camera. This is in reality the distance between the camera lens plane itself (at or closer than this rendering results are undefined) and the "z0" z value. This allows for some "depth" control and foc must be greater than 0. /// @@ -233,8 +221,7 @@ void Lighting3d( Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int /// The perspective distance Y relative coordinate. /// The "0" Z plane value. /// The focal distance, must be greater than 0. -/// -void Perspective3d( Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc); +void Perspective3d(Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc); /// Apply a rotation to the object, using absolute coordinates. /// This rotates the object clockwise by degrees degrees, around the center specified by the relative position (cx, cy) in the pivot object. If pivot is null then this object is used as its own pivot center. 360 degrees is a full rotation, equivalent to no rotation. Negative values for degrees will rotate clockwise by that amount. /// @@ -243,8 +230,7 @@ void Perspective3d( Efl.Gfx.IEntity pivot, double px, double py, double z0, /// CCW rotation in degrees. /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. -/// -void RotateAbsolute( double degrees, double cx, double cy); +void RotateAbsolute(double degrees, double cx, double cy); /// Rotate the object around 3 axes in 3D, using absolute coordinates. /// This will rotate in 3D and not just around the "Z" axis as the case with . This will rotate around the X, Y and Z axes. The Z axis points "into" the screen with low values at the screen and higher values further away. The X axis runs from left to right on the screen and the Y axis from top to bottom. /// @@ -256,8 +242,7 @@ void RotateAbsolute( double degrees, double cx, double cy); /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. /// Z absolute coordinate of the center point. -/// -void Rotate3dAbsolute( double dx, double dy, double dz, double cx, double cy, double cz); +void Rotate3dAbsolute(double dx, double dy, double dz, double cx, double cy, double cz); /// Rotate the object in 3D using a unit quaternion, using absolute coordinates. /// This is similar to but uses a unit quaternion (also known as versor) rather than a direct angle-based rotation around a center point. Use this to avoid gimbal locks. /// @@ -270,8 +255,7 @@ void Rotate3dAbsolute( double dx, double dy, double dz, double cx, double cy /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. /// Z absolute coordinate of the center point. -/// -void RotateQuatAbsolute( double qx, double qy, double qz, double qw, double cx, double cy, double cz); +void RotateQuatAbsolute(double qx, double qy, double qz, double qw, double cx, double cy, double cz); /// Apply a zoom to the object, using absolute coordinates. /// This zooms the points of the map from a center point. That center is defined by cx and cy. The zoomx and zoomy parameters specify how much to zoom in the X and Y direction respectively. A value of 1.0 means "don't zoom". 2.0 means "double the size". 0.5 is "half the size" etc. /// @@ -281,8 +265,7 @@ void RotateQuatAbsolute( double qx, double qy, double qz, double qw, double /// Zoom in Y direction /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. -/// -void ZoomAbsolute( double zoomx, double zoomy, double cx, double cy); +void ZoomAbsolute(double zoomx, double zoomy, double cx, double cy); /// Apply a lighting effect to the object. /// This is used to apply lighting calculations (from a single light source) to a given mapped object. The RGB values of each vertex will be modified to reflect the lighting based on the light point coordinates, the light color, the ambient color and at what angle the map is facing the light source. A surface should have its points be declared in a clockwise fashion if the face is "facing" towards you (as opposed to away from you) as faces have a "logical" side for lighting. /// @@ -297,8 +280,7 @@ void ZoomAbsolute( double zoomx, double zoomy, double cx, double cy); /// Ambient color red value (0 - 255). /// Ambient color green value (0 - 255). /// Ambient color blue value (0 - 255). -/// -void Lighting3dAbsolute( double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); +void Lighting3dAbsolute(double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); /// Apply a perspective transform to the map /// This applies a given perspective (3D) to the map coordinates. X, Y and Z values are used. The px and py points specify the "infinite distance" point in the 3D conversion (where all lines converge to like when artists draw 3D by hand). The z0 value specifies the z value at which there is a 1:1 mapping between spatial coordinates and screen coordinates. Any points on this z value will not have their X and Y values modified in the transform. Those further away (Z value higher) will shrink into the distance, and those less than this value will expand and become bigger. The foc value determines the "focal length" of the camera. This is in reality the distance between the camera lens plane itself (at or closer than this rendering results are undefined) and the "z0" z value. This allows for some "depth" control and foc must be greater than 0. /// @@ -308,8 +290,7 @@ void Lighting3dAbsolute( double lx, double ly, double lz, int lr, int lg, i /// The perspective distance Y relative coordinate. /// The "0" Z plane value. /// The focal distance, must be greater than 0. -/// -void Perspective3dAbsolute( double px, double py, double z0, double foc); +void Perspective3dAbsolute(double px, double py, double z0, double foc); /// Number of points of a map. /// This sets the number of points of map. Currently, the number of points must be multiples of 4. /// (Since EFL 1.22) @@ -359,74 +340,109 @@ IMapping { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IMappingConcrete)) - return Efl.Gfx.IMappingNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IMappingConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_gfx_mapping_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IMappingConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IMappingConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Number of points of a map. /// This sets the number of points of map. Currently, the number of points must be multiples of 4. /// (Since EFL 1.22) /// The number of points of map public int GetMappingPointCount() { - var _ret_var = Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_point_count_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_point_count_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -434,9 +450,8 @@ IMapping /// This sets the number of points of map. Currently, the number of points must be multiples of 4. /// (Since EFL 1.22) /// The number of points of map - /// - public void SetMappingPointCount( int count) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_point_count_set_ptr.Value.Delegate(this.NativeHandle, count); + public void SetMappingPointCount(int count) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_point_count_set_ptr.Value.Delegate(this.NativeHandle,count); Eina.Error.RaiseIfUnhandledException(); } /// Clockwise state of a map (read-only). @@ -444,7 +459,7 @@ IMapping /// (Since EFL 1.22) /// true if clockwise, false if counter clockwise public bool GetMappingClockwise() { - var _ret_var = Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_clockwise_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_clockwise_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -453,7 +468,7 @@ IMapping /// (Since EFL 1.22) /// true by default. public bool GetMappingSmooth() { - var _ret_var = Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_smooth_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_smooth_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -461,9 +476,8 @@ IMapping /// This sets smoothing for map rendering. If the object is a type that has its own smoothing settings, then both the smooth settings for this object and the map must be turned off. By default smooth maps are enabled. /// (Since EFL 1.22) /// true by default. - /// - public void SetMappingSmooth( bool smooth) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_smooth_set_ptr.Value.Delegate(this.NativeHandle, smooth); + public void SetMappingSmooth(bool smooth) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_smooth_set_ptr.Value.Delegate(this.NativeHandle,smooth); Eina.Error.RaiseIfUnhandledException(); } /// Alpha flag for map rendering. @@ -473,7 +487,7 @@ IMapping /// (Since EFL 1.22) /// true by default. public bool GetMappingAlpha() { - var _ret_var = Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_alpha_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_alpha_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -483,9 +497,8 @@ IMapping /// Note that this may conflict with depending on which algorithm is used for anti-aliasing. /// (Since EFL 1.22) /// true by default. - /// - public void SetMappingAlpha( bool alpha) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_alpha_set_ptr.Value.Delegate(this.NativeHandle, alpha); + public void SetMappingAlpha(bool alpha) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_alpha_set_ptr.Value.Delegate(this.NativeHandle,alpha); Eina.Error.RaiseIfUnhandledException(); } /// A point's absolute coordinate on the canvas. @@ -501,9 +514,8 @@ IMapping /// Point X coordinate in absolute pixel coordinates. /// Point Y coordinate in absolute pixel coordinates. /// Point Z coordinate hint (pre-perspective transform). - /// - public void GetMappingCoordAbsolute( int idx, out double x, out double y, out double z) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_coord_absolute_get_ptr.Value.Delegate(this.NativeHandle, idx, out x, out y, out z); + public void GetMappingCoordAbsolute(int idx, out double x, out double y, out double z) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_coord_absolute_get_ptr.Value.Delegate(this.NativeHandle,idx, out x, out y, out z); Eina.Error.RaiseIfUnhandledException(); } /// A point's absolute coordinate on the canvas. @@ -519,9 +531,8 @@ IMapping /// Point X coordinate in absolute pixel coordinates. /// Point Y coordinate in absolute pixel coordinates. /// Point Z coordinate hint (pre-perspective transform). - /// - public void SetMappingCoordAbsolute( int idx, double x, double y, double z) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_coord_absolute_set_ptr.Value.Delegate(this.NativeHandle, idx, x, y, z); + public void SetMappingCoordAbsolute(int idx, double x, double y, double z) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_coord_absolute_set_ptr.Value.Delegate(this.NativeHandle,idx, x, y, z); Eina.Error.RaiseIfUnhandledException(); } /// Map point's U and V texture source point. @@ -532,9 +543,8 @@ IMapping /// ID of the point, from 0 to 3 (included). /// Relative X coordinate within the image, from 0 to 1. /// Relative Y coordinate within the image, from 0 to 1. - /// - public void GetMappingUv( int idx, out double u, out double v) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_uv_get_ptr.Value.Delegate(this.NativeHandle, idx, out u, out v); + public void GetMappingUv(int idx, out double u, out double v) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_uv_get_ptr.Value.Delegate(this.NativeHandle,idx, out u, out v); Eina.Error.RaiseIfUnhandledException(); } /// Map point's U and V texture source point. @@ -545,9 +555,8 @@ IMapping /// ID of the point, from 0 to 3 (included). /// Relative X coordinate within the image, from 0 to 1. /// Relative Y coordinate within the image, from 0 to 1. - /// - public void SetMappingUv( int idx, double u, double v) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_uv_set_ptr.Value.Delegate(this.NativeHandle, idx, u, v); + public void SetMappingUv(int idx, double u, double v) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_uv_set_ptr.Value.Delegate(this.NativeHandle,idx, u, v); Eina.Error.RaiseIfUnhandledException(); } /// Color of a vertex in the map. @@ -560,9 +569,8 @@ IMapping /// Green (0 - 255) /// Blue (0 - 255) /// Alpha (0 - 255) - /// - public void GetMappingColor( int idx, out int r, out int g, out int b, out int a) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_color_get_ptr.Value.Delegate(this.NativeHandle, idx, out r, out g, out b, out a); + public void GetMappingColor(int idx, out int r, out int g, out int b, out int a) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_color_get_ptr.Value.Delegate(this.NativeHandle,idx, out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of a vertex in the map. @@ -575,9 +583,8 @@ IMapping /// Green (0 - 255) /// Blue (0 - 255) /// Alpha (0 - 255) - /// - public void SetMappingColor( int idx, int r, int g, int b, int a) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_color_set_ptr.Value.Delegate(this.NativeHandle, idx, r, g, b, a); + public void SetMappingColor(int idx, int r, int g, int b, int a) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_color_set_ptr.Value.Delegate(this.NativeHandle,idx, r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Read-only property indicating whether an object is mapped. @@ -585,16 +592,15 @@ IMapping /// (Since EFL 1.22) /// true if the object is mapped. public bool HasMapping() { - var _ret_var = Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_has_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_has_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Resets the map transformation to its default state. /// This will reset all transformations to identity, meaning the points' colors, positions and UV coordinates will be reset to their default values. will then return false. This function will not modify the values of or . /// (Since EFL 1.22) - /// public void ResetMapping() { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_reset_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_reset_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Apply a translation to the object using map. @@ -603,9 +609,8 @@ IMapping /// Distance in pixels along the X axis. /// Distance in pixels along the Y axis. /// Distance in pixels along the Z axis. - /// - public void Translate( double dx, double dy, double dz) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_translate_ptr.Value.Delegate(this.NativeHandle, dx, dy, dz); + public void Translate(double dx, double dy, double dz) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_translate_ptr.Value.Delegate(this.NativeHandle,dx, dy, dz); Eina.Error.RaiseIfUnhandledException(); } /// Apply a rotation to the object. @@ -619,9 +624,8 @@ IMapping /// A pivot object for the center point, can be null. /// X relative coordinate of the center point. /// y relative coordinate of the center point. - /// - public void Rotate( double degrees, Efl.Gfx.IEntity pivot, double cx, double cy) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_ptr.Value.Delegate(this.NativeHandle, degrees, pivot, cx, cy); + public void Rotate(double degrees, Efl.Gfx.IEntity pivot, double cx, double cy) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_ptr.Value.Delegate(this.NativeHandle,degrees, pivot, cx, cy); Eina.Error.RaiseIfUnhandledException(); } /// Rotate the object around 3 axes in 3D. @@ -636,9 +640,8 @@ IMapping /// X relative coordinate of the center point. /// y relative coordinate of the center point. /// Z absolute coordinate of the center point. - /// - public void Rotate3d( double dx, double dy, double dz, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_3d_ptr.Value.Delegate(this.NativeHandle, dx, dy, dz, pivot, cx, cy, cz); + public void Rotate3d(double dx, double dy, double dz, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_3d_ptr.Value.Delegate(this.NativeHandle,dx, dy, dz, pivot, cx, cy, cz); Eina.Error.RaiseIfUnhandledException(); } /// Rotate the object in 3D using a unit quaternion. @@ -654,9 +657,8 @@ IMapping /// X relative coordinate of the center point. /// y relative coordinate of the center point. /// Z absolute coordinate of the center point. - /// - public void RotateQuat( double qx, double qy, double qz, double qw, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_quat_ptr.Value.Delegate(this.NativeHandle, qx, qy, qz, qw, pivot, cx, cy, cz); + public void RotateQuat(double qx, double qy, double qz, double qw, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_quat_ptr.Value.Delegate(this.NativeHandle,qx, qy, qz, qw, pivot, cx, cy, cz); Eina.Error.RaiseIfUnhandledException(); } /// Apply a zoom to the object. @@ -669,9 +671,8 @@ IMapping /// A pivot object for the center point, can be null. /// X relative coordinate of the center point. /// y relative coordinate of the center point. - /// - public void Zoom( double zoomx, double zoomy, Efl.Gfx.IEntity pivot, double cx, double cy) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_zoom_ptr.Value.Delegate(this.NativeHandle, zoomx, zoomy, pivot, cx, cy); + public void Zoom(double zoomx, double zoomy, Efl.Gfx.IEntity pivot, double cx, double cy) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_zoom_ptr.Value.Delegate(this.NativeHandle,zoomx, zoomy, pivot, cx, cy); Eina.Error.RaiseIfUnhandledException(); } /// Apply a lighting effect on the object. @@ -689,9 +690,8 @@ IMapping /// Ambient color red value (0 - 255). /// Ambient color green value (0 - 255). /// Ambient color blue value (0 - 255). - /// - public void Lighting3d( Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_lighting_3d_ptr.Value.Delegate(this.NativeHandle, pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); + public void Lighting3d(Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_lighting_3d_ptr.Value.Delegate(this.NativeHandle,pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); Eina.Error.RaiseIfUnhandledException(); } /// Apply a perspective transform to the map @@ -704,9 +704,8 @@ IMapping /// The perspective distance Y relative coordinate. /// The "0" Z plane value. /// The focal distance, must be greater than 0. - /// - public void Perspective3d( Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_perspective_3d_ptr.Value.Delegate(this.NativeHandle, pivot, px, py, z0, foc); + public void Perspective3d(Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_perspective_3d_ptr.Value.Delegate(this.NativeHandle,pivot, px, py, z0, foc); Eina.Error.RaiseIfUnhandledException(); } /// Apply a rotation to the object, using absolute coordinates. @@ -717,9 +716,8 @@ IMapping /// CCW rotation in degrees. /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. - /// - public void RotateAbsolute( double degrees, double cx, double cy) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_absolute_ptr.Value.Delegate(this.NativeHandle, degrees, cx, cy); + public void RotateAbsolute(double degrees, double cx, double cy) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_absolute_ptr.Value.Delegate(this.NativeHandle,degrees, cx, cy); Eina.Error.RaiseIfUnhandledException(); } /// Rotate the object around 3 axes in 3D, using absolute coordinates. @@ -733,9 +731,8 @@ IMapping /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. /// Z absolute coordinate of the center point. - /// - public void Rotate3dAbsolute( double dx, double dy, double dz, double cx, double cy, double cz) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_3d_absolute_ptr.Value.Delegate(this.NativeHandle, dx, dy, dz, cx, cy, cz); + public void Rotate3dAbsolute(double dx, double dy, double dz, double cx, double cy, double cz) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_3d_absolute_ptr.Value.Delegate(this.NativeHandle,dx, dy, dz, cx, cy, cz); Eina.Error.RaiseIfUnhandledException(); } /// Rotate the object in 3D using a unit quaternion, using absolute coordinates. @@ -750,9 +747,8 @@ IMapping /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. /// Z absolute coordinate of the center point. - /// - public void RotateQuatAbsolute( double qx, double qy, double qz, double qw, double cx, double cy, double cz) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_rotate_quat_absolute_ptr.Value.Delegate(this.NativeHandle, qx, qy, qz, qw, cx, cy, cz); + public void RotateQuatAbsolute(double qx, double qy, double qz, double qw, double cx, double cy, double cz) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_rotate_quat_absolute_ptr.Value.Delegate(this.NativeHandle,qx, qy, qz, qw, cx, cy, cz); Eina.Error.RaiseIfUnhandledException(); } /// Apply a zoom to the object, using absolute coordinates. @@ -764,9 +760,8 @@ IMapping /// Zoom in Y direction /// X absolute coordinate in pixels of the center point. /// y absolute coordinate in pixels of the center point. - /// - public void ZoomAbsolute( double zoomx, double zoomy, double cx, double cy) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_zoom_absolute_ptr.Value.Delegate(this.NativeHandle, zoomx, zoomy, cx, cy); + public void ZoomAbsolute(double zoomx, double zoomy, double cx, double cy) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_zoom_absolute_ptr.Value.Delegate(this.NativeHandle,zoomx, zoomy, cx, cy); Eina.Error.RaiseIfUnhandledException(); } /// Apply a lighting effect to the object. @@ -783,9 +778,8 @@ IMapping /// Ambient color red value (0 - 255). /// Ambient color green value (0 - 255). /// Ambient color blue value (0 - 255). - /// - public void Lighting3dAbsolute( double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_lighting_3d_absolute_ptr.Value.Delegate(this.NativeHandle, lx, ly, lz, lr, lg, lb, ar, ag, ab); + public void Lighting3dAbsolute(double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_lighting_3d_absolute_ptr.Value.Delegate(this.NativeHandle,lx, ly, lz, lr, lg, lb, ar, ag, ab); Eina.Error.RaiseIfUnhandledException(); } /// Apply a perspective transform to the map @@ -797,9 +791,8 @@ IMapping /// The perspective distance Y relative coordinate. /// The "0" Z plane value. /// The focal distance, must be greater than 0. - /// - public void Perspective3dAbsolute( double px, double py, double z0, double foc) { - Efl.Gfx.IMappingNativeInherit.efl_gfx_mapping_perspective_3d_absolute_ptr.Value.Delegate(this.NativeHandle, px, py, z0, foc); + public void Perspective3dAbsolute(double px, double py, double z0, double foc) { + Efl.Gfx.IMappingConcrete.NativeMethods.efl_gfx_mapping_perspective_3d_absolute_ptr.Value.Delegate(this.NativeHandle,px, py, z0, foc); Eina.Error.RaiseIfUnhandledException(); } /// Number of points of a map. @@ -808,7 +801,7 @@ IMapping /// The number of points of map public int MappingPointCount { get { return GetMappingPointCount(); } - set { SetMappingPointCount( value); } + set { SetMappingPointCount(value); } } /// Clockwise state of a map (read-only). /// This determines if the output points (X and Y. Z is not used) are clockwise or counter-clockwise. This can be used for "back-face culling". This is where you hide objects that "face away" from you. In this case objects that are not clockwise. @@ -823,7 +816,7 @@ IMapping /// true by default. public bool MappingSmooth { get { return GetMappingSmooth(); } - set { SetMappingSmooth( value); } + set { SetMappingSmooth(value); } } /// Alpha flag for map rendering. /// This sets alpha flag for map rendering. If the object is a type that has its own alpha settings, then this will take precedence. Only image objects support this currently ( and its friends). Setting this to off stops alpha blending of the map area, and is useful if you know the object and/or all sub-objects is 100% solid. @@ -833,817 +826,1305 @@ IMapping /// true by default. public bool MappingAlpha { get { return GetMappingAlpha(); } - set { SetMappingAlpha( value); } + set { SetMappingAlpha(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IMappingConcrete.efl_gfx_mapping_mixin_get(); } -} -public class IMappingNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_gfx_mapping_point_count_get_static_delegate == null) - efl_gfx_mapping_point_count_get_static_delegate = new efl_gfx_mapping_point_count_get_delegate(mapping_point_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingPointCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_point_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_point_count_get_static_delegate)}); - if (efl_gfx_mapping_point_count_set_static_delegate == null) - efl_gfx_mapping_point_count_set_static_delegate = new efl_gfx_mapping_point_count_set_delegate(mapping_point_count_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingPointCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_point_count_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_point_count_set_static_delegate)}); - if (efl_gfx_mapping_clockwise_get_static_delegate == null) - efl_gfx_mapping_clockwise_get_static_delegate = new efl_gfx_mapping_clockwise_get_delegate(mapping_clockwise_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingClockwise") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_clockwise_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_clockwise_get_static_delegate)}); - if (efl_gfx_mapping_smooth_get_static_delegate == null) - efl_gfx_mapping_smooth_get_static_delegate = new efl_gfx_mapping_smooth_get_delegate(mapping_smooth_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingSmooth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_smooth_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_smooth_get_static_delegate)}); - if (efl_gfx_mapping_smooth_set_static_delegate == null) - efl_gfx_mapping_smooth_set_static_delegate = new efl_gfx_mapping_smooth_set_delegate(mapping_smooth_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingSmooth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_smooth_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_smooth_set_static_delegate)}); - if (efl_gfx_mapping_alpha_get_static_delegate == null) - efl_gfx_mapping_alpha_get_static_delegate = new efl_gfx_mapping_alpha_get_delegate(mapping_alpha_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_alpha_get_static_delegate)}); - if (efl_gfx_mapping_alpha_set_static_delegate == null) - efl_gfx_mapping_alpha_set_static_delegate = new efl_gfx_mapping_alpha_set_delegate(mapping_alpha_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_alpha_set_static_delegate)}); - if (efl_gfx_mapping_coord_absolute_get_static_delegate == null) - efl_gfx_mapping_coord_absolute_get_static_delegate = new efl_gfx_mapping_coord_absolute_get_delegate(mapping_coord_absolute_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingCoordAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_coord_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_coord_absolute_get_static_delegate)}); - if (efl_gfx_mapping_coord_absolute_set_static_delegate == null) - efl_gfx_mapping_coord_absolute_set_static_delegate = new efl_gfx_mapping_coord_absolute_set_delegate(mapping_coord_absolute_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingCoordAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_coord_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_coord_absolute_set_static_delegate)}); - if (efl_gfx_mapping_uv_get_static_delegate == null) - efl_gfx_mapping_uv_get_static_delegate = new efl_gfx_mapping_uv_get_delegate(mapping_uv_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingUv") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_uv_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_uv_get_static_delegate)}); - if (efl_gfx_mapping_uv_set_static_delegate == null) - efl_gfx_mapping_uv_set_static_delegate = new efl_gfx_mapping_uv_set_delegate(mapping_uv_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingUv") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_uv_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_uv_set_static_delegate)}); - if (efl_gfx_mapping_color_get_static_delegate == null) - efl_gfx_mapping_color_get_static_delegate = new efl_gfx_mapping_color_get_delegate(mapping_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetMappingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_color_get_static_delegate)}); - if (efl_gfx_mapping_color_set_static_delegate == null) - efl_gfx_mapping_color_set_static_delegate = new efl_gfx_mapping_color_set_delegate(mapping_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetMappingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_color_set_static_delegate)}); - if (efl_gfx_mapping_has_static_delegate == null) - efl_gfx_mapping_has_static_delegate = new efl_gfx_mapping_has_delegate(mapping_has); - if (methods.FirstOrDefault(m => m.Name == "HasMapping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_has"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_has_static_delegate)}); - if (efl_gfx_mapping_reset_static_delegate == null) - efl_gfx_mapping_reset_static_delegate = new efl_gfx_mapping_reset_delegate(mapping_reset); - if (methods.FirstOrDefault(m => m.Name == "ResetMapping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_reset_static_delegate)}); - if (efl_gfx_mapping_translate_static_delegate == null) - efl_gfx_mapping_translate_static_delegate = new efl_gfx_mapping_translate_delegate(translate); - if (methods.FirstOrDefault(m => m.Name == "Translate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_translate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_translate_static_delegate)}); - if (efl_gfx_mapping_rotate_static_delegate == null) - efl_gfx_mapping_rotate_static_delegate = new efl_gfx_mapping_rotate_delegate(rotate); - if (methods.FirstOrDefault(m => m.Name == "Rotate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_static_delegate)}); - if (efl_gfx_mapping_rotate_3d_static_delegate == null) - efl_gfx_mapping_rotate_3d_static_delegate = new efl_gfx_mapping_rotate_3d_delegate(rotate_3d); - if (methods.FirstOrDefault(m => m.Name == "Rotate3d") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_3d_static_delegate)}); - if (efl_gfx_mapping_rotate_quat_static_delegate == null) - efl_gfx_mapping_rotate_quat_static_delegate = new efl_gfx_mapping_rotate_quat_delegate(rotate_quat); - if (methods.FirstOrDefault(m => m.Name == "RotateQuat") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate_quat"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_quat_static_delegate)}); - if (efl_gfx_mapping_zoom_static_delegate == null) - efl_gfx_mapping_zoom_static_delegate = new efl_gfx_mapping_zoom_delegate(zoom); - if (methods.FirstOrDefault(m => m.Name == "Zoom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_zoom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_zoom_static_delegate)}); - if (efl_gfx_mapping_lighting_3d_static_delegate == null) - efl_gfx_mapping_lighting_3d_static_delegate = new efl_gfx_mapping_lighting_3d_delegate(lighting_3d); - if (methods.FirstOrDefault(m => m.Name == "Lighting3d") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_lighting_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_lighting_3d_static_delegate)}); - if (efl_gfx_mapping_perspective_3d_static_delegate == null) - efl_gfx_mapping_perspective_3d_static_delegate = new efl_gfx_mapping_perspective_3d_delegate(perspective_3d); - if (methods.FirstOrDefault(m => m.Name == "Perspective3d") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_perspective_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_perspective_3d_static_delegate)}); - if (efl_gfx_mapping_rotate_absolute_static_delegate == null) - efl_gfx_mapping_rotate_absolute_static_delegate = new efl_gfx_mapping_rotate_absolute_delegate(rotate_absolute); - if (methods.FirstOrDefault(m => m.Name == "RotateAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_absolute_static_delegate)}); - if (efl_gfx_mapping_rotate_3d_absolute_static_delegate == null) - efl_gfx_mapping_rotate_3d_absolute_static_delegate = new efl_gfx_mapping_rotate_3d_absolute_delegate(rotate_3d_absolute); - if (methods.FirstOrDefault(m => m.Name == "Rotate3dAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_3d_absolute_static_delegate)}); - if (efl_gfx_mapping_rotate_quat_absolute_static_delegate == null) - efl_gfx_mapping_rotate_quat_absolute_static_delegate = new efl_gfx_mapping_rotate_quat_absolute_delegate(rotate_quat_absolute); - if (methods.FirstOrDefault(m => m.Name == "RotateQuatAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_rotate_quat_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_quat_absolute_static_delegate)}); - if (efl_gfx_mapping_zoom_absolute_static_delegate == null) - efl_gfx_mapping_zoom_absolute_static_delegate = new efl_gfx_mapping_zoom_absolute_delegate(zoom_absolute); - if (methods.FirstOrDefault(m => m.Name == "ZoomAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_zoom_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_zoom_absolute_static_delegate)}); - if (efl_gfx_mapping_lighting_3d_absolute_static_delegate == null) - efl_gfx_mapping_lighting_3d_absolute_static_delegate = new efl_gfx_mapping_lighting_3d_absolute_delegate(lighting_3d_absolute); - if (methods.FirstOrDefault(m => m.Name == "Lighting3dAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_lighting_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_lighting_3d_absolute_static_delegate)}); - if (efl_gfx_mapping_perspective_3d_absolute_static_delegate == null) - efl_gfx_mapping_perspective_3d_absolute_static_delegate = new efl_gfx_mapping_perspective_3d_absolute_delegate(perspective_3d_absolute); - if (methods.FirstOrDefault(m => m.Name == "Perspective3dAbsolute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_mapping_perspective_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_perspective_3d_absolute_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IMappingConcrete.efl_gfx_mapping_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IMappingConcrete.efl_gfx_mapping_mixin_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_gfx_mapping_point_count_get_static_delegate == null) + { + efl_gfx_mapping_point_count_get_static_delegate = new efl_gfx_mapping_point_count_get_delegate(mapping_point_count_get); + } - private delegate int efl_gfx_mapping_point_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetMappingPointCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_point_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_point_count_get_static_delegate) }); + } + if (efl_gfx_mapping_point_count_set_static_delegate == null) + { + efl_gfx_mapping_point_count_set_static_delegate = new efl_gfx_mapping_point_count_set_delegate(mapping_point_count_set); + } - public delegate int efl_gfx_mapping_point_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_point_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_point_count_get"); - private static int mapping_point_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_point_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IMappingConcrete)wrapper).GetMappingPointCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMappingPointCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_point_count_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_point_count_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_mapping_point_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_mapping_point_count_get_delegate efl_gfx_mapping_point_count_get_static_delegate; + if (efl_gfx_mapping_clockwise_get_static_delegate == null) + { + efl_gfx_mapping_clockwise_get_static_delegate = new efl_gfx_mapping_clockwise_get_delegate(mapping_clockwise_get); + } - private delegate void efl_gfx_mapping_point_count_set_delegate(System.IntPtr obj, System.IntPtr pd, int count); + if (methods.FirstOrDefault(m => m.Name == "GetMappingClockwise") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_clockwise_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_clockwise_get_static_delegate) }); + } + if (efl_gfx_mapping_smooth_get_static_delegate == null) + { + efl_gfx_mapping_smooth_get_static_delegate = new efl_gfx_mapping_smooth_get_delegate(mapping_smooth_get); + } - public delegate void efl_gfx_mapping_point_count_set_api_delegate(System.IntPtr obj, int count); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_point_count_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_point_count_set"); - private static void mapping_point_count_set(System.IntPtr obj, System.IntPtr pd, int count) - { - Eina.Log.Debug("function efl_gfx_mapping_point_count_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).SetMappingPointCount( count); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_point_count_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), count); - } - } - private static efl_gfx_mapping_point_count_set_delegate efl_gfx_mapping_point_count_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetMappingSmooth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_smooth_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_smooth_get_static_delegate) }); + } + if (efl_gfx_mapping_smooth_set_static_delegate == null) + { + efl_gfx_mapping_smooth_set_static_delegate = new efl_gfx_mapping_smooth_set_delegate(mapping_smooth_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_mapping_clockwise_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMappingSmooth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_smooth_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_smooth_set_static_delegate) }); + } + if (efl_gfx_mapping_alpha_get_static_delegate == null) + { + efl_gfx_mapping_alpha_get_static_delegate = new efl_gfx_mapping_alpha_get_delegate(mapping_alpha_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_mapping_clockwise_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_clockwise_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_clockwise_get"); - private static bool mapping_clockwise_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_clockwise_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IMappingConcrete)wrapper).GetMappingClockwise(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMappingAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_alpha_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_mapping_clockwise_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_mapping_clockwise_get_delegate efl_gfx_mapping_clockwise_get_static_delegate; + if (efl_gfx_mapping_alpha_set_static_delegate == null) + { + efl_gfx_mapping_alpha_set_static_delegate = new efl_gfx_mapping_alpha_set_delegate(mapping_alpha_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_mapping_smooth_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMappingAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_alpha_set_static_delegate) }); + } + if (efl_gfx_mapping_coord_absolute_get_static_delegate == null) + { + efl_gfx_mapping_coord_absolute_get_static_delegate = new efl_gfx_mapping_coord_absolute_get_delegate(mapping_coord_absolute_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_mapping_smooth_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_smooth_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_smooth_get"); - private static bool mapping_smooth_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_smooth_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IMappingConcrete)wrapper).GetMappingSmooth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMappingCoordAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_coord_absolute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_coord_absolute_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_mapping_smooth_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_mapping_smooth_get_delegate efl_gfx_mapping_smooth_get_static_delegate; + if (efl_gfx_mapping_coord_absolute_set_static_delegate == null) + { + efl_gfx_mapping_coord_absolute_set_static_delegate = new efl_gfx_mapping_coord_absolute_set_delegate(mapping_coord_absolute_set); + } - private delegate void efl_gfx_mapping_smooth_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth); + if (methods.FirstOrDefault(m => m.Name == "SetMappingCoordAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_coord_absolute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_coord_absolute_set_static_delegate) }); + } + if (efl_gfx_mapping_uv_get_static_delegate == null) + { + efl_gfx_mapping_uv_get_static_delegate = new efl_gfx_mapping_uv_get_delegate(mapping_uv_get); + } - public delegate void efl_gfx_mapping_smooth_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_smooth_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_smooth_set"); - private static void mapping_smooth_set(System.IntPtr obj, System.IntPtr pd, bool smooth) - { - Eina.Log.Debug("function efl_gfx_mapping_smooth_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).SetMappingSmooth( smooth); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_smooth_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth); - } - } - private static efl_gfx_mapping_smooth_set_delegate efl_gfx_mapping_smooth_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetMappingUv") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_uv_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_uv_get_static_delegate) }); + } + if (efl_gfx_mapping_uv_set_static_delegate == null) + { + efl_gfx_mapping_uv_set_static_delegate = new efl_gfx_mapping_uv_set_delegate(mapping_uv_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_mapping_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMappingUv") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_uv_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_uv_set_static_delegate) }); + } + if (efl_gfx_mapping_color_get_static_delegate == null) + { + efl_gfx_mapping_color_get_static_delegate = new efl_gfx_mapping_color_get_delegate(mapping_color_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_mapping_alpha_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_alpha_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_alpha_get"); - private static bool mapping_alpha_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_alpha_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IMappingConcrete)wrapper).GetMappingAlpha(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMappingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_color_get_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_mapping_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_mapping_alpha_get_delegate efl_gfx_mapping_alpha_get_static_delegate; + if (efl_gfx_mapping_color_set_static_delegate == null) + { + efl_gfx_mapping_color_set_static_delegate = new efl_gfx_mapping_color_set_delegate(mapping_color_set); + } - private delegate void efl_gfx_mapping_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool alpha); + if (methods.FirstOrDefault(m => m.Name == "SetMappingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_color_set_static_delegate) }); + } + if (efl_gfx_mapping_has_static_delegate == null) + { + efl_gfx_mapping_has_static_delegate = new efl_gfx_mapping_has_delegate(mapping_has); + } - public delegate void efl_gfx_mapping_alpha_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool alpha); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_alpha_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_alpha_set"); - private static void mapping_alpha_set(System.IntPtr obj, System.IntPtr pd, bool alpha) - { - Eina.Log.Debug("function efl_gfx_mapping_alpha_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).SetMappingAlpha( alpha); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), alpha); - } - } - private static efl_gfx_mapping_alpha_set_delegate efl_gfx_mapping_alpha_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "HasMapping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_has"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_has_static_delegate) }); + } + if (efl_gfx_mapping_reset_static_delegate == null) + { + efl_gfx_mapping_reset_static_delegate = new efl_gfx_mapping_reset_delegate(mapping_reset); + } - private delegate void efl_gfx_mapping_coord_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out double x, out double y, out double z); + if (methods.FirstOrDefault(m => m.Name == "ResetMapping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_reset_static_delegate) }); + } + if (efl_gfx_mapping_translate_static_delegate == null) + { + efl_gfx_mapping_translate_static_delegate = new efl_gfx_mapping_translate_delegate(translate); + } - public delegate void efl_gfx_mapping_coord_absolute_get_api_delegate(System.IntPtr obj, int idx, out double x, out double y, out double z); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_coord_absolute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_coord_absolute_get"); - private static void mapping_coord_absolute_get(System.IntPtr obj, System.IntPtr pd, int idx, out double x, out double y, out double z) - { - Eina.Log.Debug("function efl_gfx_mapping_coord_absolute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); z = default(double); - try { - ((IMappingConcrete)wrapper).GetMappingCoordAbsolute( idx, out x, out y, out z); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_coord_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out x, out y, out z); - } - } - private static efl_gfx_mapping_coord_absolute_get_delegate efl_gfx_mapping_coord_absolute_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Translate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_translate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_translate_static_delegate) }); + } + if (efl_gfx_mapping_rotate_static_delegate == null) + { + efl_gfx_mapping_rotate_static_delegate = new efl_gfx_mapping_rotate_delegate(rotate); + } - private delegate void efl_gfx_mapping_coord_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, double x, double y, double z); + if (methods.FirstOrDefault(m => m.Name == "Rotate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_static_delegate) }); + } + if (efl_gfx_mapping_rotate_3d_static_delegate == null) + { + efl_gfx_mapping_rotate_3d_static_delegate = new efl_gfx_mapping_rotate_3d_delegate(rotate_3d); + } - public delegate void efl_gfx_mapping_coord_absolute_set_api_delegate(System.IntPtr obj, int idx, double x, double y, double z); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_coord_absolute_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_coord_absolute_set"); - private static void mapping_coord_absolute_set(System.IntPtr obj, System.IntPtr pd, int idx, double x, double y, double z) - { - Eina.Log.Debug("function efl_gfx_mapping_coord_absolute_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).SetMappingCoordAbsolute( idx, x, y, z); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_coord_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, x, y, z); - } - } - private static efl_gfx_mapping_coord_absolute_set_delegate efl_gfx_mapping_coord_absolute_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Rotate3d") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_3d_static_delegate) }); + } + if (efl_gfx_mapping_rotate_quat_static_delegate == null) + { + efl_gfx_mapping_rotate_quat_static_delegate = new efl_gfx_mapping_rotate_quat_delegate(rotate_quat); + } - private delegate void efl_gfx_mapping_uv_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out double u, out double v); + if (methods.FirstOrDefault(m => m.Name == "RotateQuat") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate_quat"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_quat_static_delegate) }); + } + if (efl_gfx_mapping_zoom_static_delegate == null) + { + efl_gfx_mapping_zoom_static_delegate = new efl_gfx_mapping_zoom_delegate(zoom); + } - public delegate void efl_gfx_mapping_uv_get_api_delegate(System.IntPtr obj, int idx, out double u, out double v); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_uv_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_uv_get"); - private static void mapping_uv_get(System.IntPtr obj, System.IntPtr pd, int idx, out double u, out double v) - { - Eina.Log.Debug("function efl_gfx_mapping_uv_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - u = default(double); v = default(double); - try { - ((IMappingConcrete)wrapper).GetMappingUv( idx, out u, out v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_uv_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out u, out v); - } - } - private static efl_gfx_mapping_uv_get_delegate efl_gfx_mapping_uv_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Zoom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_zoom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_zoom_static_delegate) }); + } + if (efl_gfx_mapping_lighting_3d_static_delegate == null) + { + efl_gfx_mapping_lighting_3d_static_delegate = new efl_gfx_mapping_lighting_3d_delegate(lighting_3d); + } - private delegate void efl_gfx_mapping_uv_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, double u, double v); + if (methods.FirstOrDefault(m => m.Name == "Lighting3d") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_lighting_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_lighting_3d_static_delegate) }); + } + if (efl_gfx_mapping_perspective_3d_static_delegate == null) + { + efl_gfx_mapping_perspective_3d_static_delegate = new efl_gfx_mapping_perspective_3d_delegate(perspective_3d); + } - public delegate void efl_gfx_mapping_uv_set_api_delegate(System.IntPtr obj, int idx, double u, double v); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_uv_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_uv_set"); - private static void mapping_uv_set(System.IntPtr obj, System.IntPtr pd, int idx, double u, double v) - { - Eina.Log.Debug("function efl_gfx_mapping_uv_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).SetMappingUv( idx, u, v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_uv_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, u, v); - } - } - private static efl_gfx_mapping_uv_set_delegate efl_gfx_mapping_uv_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Perspective3d") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_perspective_3d"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_perspective_3d_static_delegate) }); + } + if (efl_gfx_mapping_rotate_absolute_static_delegate == null) + { + efl_gfx_mapping_rotate_absolute_static_delegate = new efl_gfx_mapping_rotate_absolute_delegate(rotate_absolute); + } - private delegate void efl_gfx_mapping_color_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out int r, out int g, out int b, out int a); + if (methods.FirstOrDefault(m => m.Name == "RotateAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_absolute_static_delegate) }); + } + if (efl_gfx_mapping_rotate_3d_absolute_static_delegate == null) + { + efl_gfx_mapping_rotate_3d_absolute_static_delegate = new efl_gfx_mapping_rotate_3d_absolute_delegate(rotate_3d_absolute); + } - public delegate void efl_gfx_mapping_color_get_api_delegate(System.IntPtr obj, int idx, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_color_get"); - private static void mapping_color_get(System.IntPtr obj, System.IntPtr pd, int idx, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_mapping_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); - try { - ((IMappingConcrete)wrapper).GetMappingColor( idx, out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out r, out g, out b, out a); - } - } - private static efl_gfx_mapping_color_get_delegate efl_gfx_mapping_color_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Rotate3dAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_3d_absolute_static_delegate) }); + } + if (efl_gfx_mapping_rotate_quat_absolute_static_delegate == null) + { + efl_gfx_mapping_rotate_quat_absolute_static_delegate = new efl_gfx_mapping_rotate_quat_absolute_delegate(rotate_quat_absolute); + } - private delegate void efl_gfx_mapping_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, int r, int g, int b, int a); + if (methods.FirstOrDefault(m => m.Name == "RotateQuatAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_rotate_quat_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_rotate_quat_absolute_static_delegate) }); + } + if (efl_gfx_mapping_zoom_absolute_static_delegate == null) + { + efl_gfx_mapping_zoom_absolute_static_delegate = new efl_gfx_mapping_zoom_absolute_delegate(zoom_absolute); + } - public delegate void efl_gfx_mapping_color_set_api_delegate(System.IntPtr obj, int idx, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_color_set"); - private static void mapping_color_set(System.IntPtr obj, System.IntPtr pd, int idx, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_mapping_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).SetMappingColor( idx, r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, r, g, b, a); - } - } - private static efl_gfx_mapping_color_set_delegate efl_gfx_mapping_color_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ZoomAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_zoom_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_zoom_absolute_static_delegate) }); + } + if (efl_gfx_mapping_lighting_3d_absolute_static_delegate == null) + { + efl_gfx_mapping_lighting_3d_absolute_static_delegate = new efl_gfx_mapping_lighting_3d_absolute_delegate(lighting_3d_absolute); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_mapping_has_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Lighting3dAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_lighting_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_lighting_3d_absolute_static_delegate) }); + } + if (efl_gfx_mapping_perspective_3d_absolute_static_delegate == null) + { + efl_gfx_mapping_perspective_3d_absolute_static_delegate = new efl_gfx_mapping_perspective_3d_absolute_delegate(perspective_3d_absolute); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_mapping_has_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_has_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_has"); - private static bool mapping_has(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_has was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IMappingConcrete)wrapper).HasMapping(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Perspective3dAbsolute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_mapping_perspective_3d_absolute"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_mapping_perspective_3d_absolute_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_mapping_has_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Gfx.IMappingConcrete.efl_gfx_mapping_mixin_get(); } - } - private static efl_gfx_mapping_has_delegate efl_gfx_mapping_has_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate int efl_gfx_mapping_point_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_gfx_mapping_point_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_point_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_point_count_get"); + + private static int mapping_point_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_point_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IMappingConcrete)wrapper).GetMappingPointCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_mapping_reset_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_mapping_point_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_mapping_point_count_get_delegate efl_gfx_mapping_point_count_get_static_delegate; + + + private delegate void efl_gfx_mapping_point_count_set_delegate(System.IntPtr obj, System.IntPtr pd, int count); + + + public delegate void efl_gfx_mapping_point_count_set_api_delegate(System.IntPtr obj, int count); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_point_count_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_point_count_set"); + + private static void mapping_point_count_set(System.IntPtr obj, System.IntPtr pd, int count) + { + Eina.Log.Debug("function efl_gfx_mapping_point_count_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).SetMappingPointCount(count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_mapping_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_reset"); - private static void mapping_reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_mapping_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IMappingConcrete)wrapper).ResetMapping(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_gfx_mapping_point_count_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), count); + } } - } - private static efl_gfx_mapping_reset_delegate efl_gfx_mapping_reset_static_delegate; + private static efl_gfx_mapping_point_count_set_delegate efl_gfx_mapping_point_count_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_mapping_clockwise_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_mapping_clockwise_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_clockwise_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_clockwise_get"); + + private static bool mapping_clockwise_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_clockwise_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IMappingConcrete)wrapper).GetMappingClockwise(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_mapping_translate_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz); - + return _ret_var; - public delegate void efl_gfx_mapping_translate_api_delegate(System.IntPtr obj, double dx, double dy, double dz); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_translate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_translate"); - private static void translate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz) - { - Eina.Log.Debug("function efl_gfx_mapping_translate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).Translate( dx, dy, dz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_translate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz); + } + else + { + return efl_gfx_mapping_clockwise_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_mapping_translate_delegate efl_gfx_mapping_translate_static_delegate; + private static efl_gfx_mapping_clockwise_get_delegate efl_gfx_mapping_clockwise_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_mapping_smooth_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_mapping_smooth_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_smooth_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_smooth_get"); + + private static bool mapping_smooth_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_smooth_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IMappingConcrete)wrapper).GetMappingSmooth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_mapping_rotate_delegate(System.IntPtr obj, System.IntPtr pd, double degrees, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy); - + return _ret_var; - public delegate void efl_gfx_mapping_rotate_api_delegate(System.IntPtr obj, double degrees, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate"); - private static void rotate(System.IntPtr obj, System.IntPtr pd, double degrees, Efl.Gfx.IEntity pivot, double cx, double cy) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).Rotate( degrees, pivot, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_rotate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), degrees, pivot, cx, cy); + } + else + { + return efl_gfx_mapping_smooth_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_mapping_rotate_delegate efl_gfx_mapping_rotate_static_delegate; - - private delegate void efl_gfx_mapping_rotate_3d_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); + private static efl_gfx_mapping_smooth_get_delegate efl_gfx_mapping_smooth_get_static_delegate; + + + private delegate void efl_gfx_mapping_smooth_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth); + + + public delegate void efl_gfx_mapping_smooth_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_smooth_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_smooth_set"); + + private static void mapping_smooth_set(System.IntPtr obj, System.IntPtr pd, bool smooth) + { + Eina.Log.Debug("function efl_gfx_mapping_smooth_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).SetMappingSmooth(smooth); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - - public delegate void efl_gfx_mapping_rotate_3d_api_delegate(System.IntPtr obj, double dx, double dy, double dz, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_3d_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate_3d"); - private static void rotate_3d(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate_3d was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).Rotate3d( dx, dy, dz, pivot, cx, cy, cz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_rotate_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz, pivot, cx, cy, cz); + + } + else + { + efl_gfx_mapping_smooth_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth); + } } - } - private static efl_gfx_mapping_rotate_3d_delegate efl_gfx_mapping_rotate_3d_static_delegate; + private static efl_gfx_mapping_smooth_set_delegate efl_gfx_mapping_smooth_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_mapping_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_mapping_alpha_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_alpha_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_alpha_get"); + + private static bool mapping_alpha_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_alpha_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IMappingConcrete)wrapper).GetMappingAlpha(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_mapping_rotate_quat_delegate(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); - + return _ret_var; - public delegate void efl_gfx_mapping_rotate_quat_api_delegate(System.IntPtr obj, double qx, double qy, double qz, double qw, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_quat_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate_quat"); - private static void rotate_quat(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate_quat was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).RotateQuat( qx, qy, qz, qw, pivot, cx, cy, cz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_rotate_quat_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), qx, qy, qz, qw, pivot, cx, cy, cz); + } + else + { + return efl_gfx_mapping_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_mapping_rotate_quat_delegate efl_gfx_mapping_rotate_quat_static_delegate; + private static efl_gfx_mapping_alpha_get_delegate efl_gfx_mapping_alpha_get_static_delegate; + + + private delegate void efl_gfx_mapping_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool alpha); + + + public delegate void efl_gfx_mapping_alpha_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool alpha); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_alpha_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_alpha_set"); + + private static void mapping_alpha_set(System.IntPtr obj, System.IntPtr pd, bool alpha) + { + Eina.Log.Debug("function efl_gfx_mapping_alpha_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).SetMappingAlpha(alpha); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_mapping_zoom_delegate(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy); + + } + else + { + efl_gfx_mapping_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), alpha); + } + } + private static efl_gfx_mapping_alpha_set_delegate efl_gfx_mapping_alpha_set_static_delegate; + + + private delegate void efl_gfx_mapping_coord_absolute_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out double x, out double y, out double z); + + + public delegate void efl_gfx_mapping_coord_absolute_get_api_delegate(System.IntPtr obj, int idx, out double x, out double y, out double z); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_coord_absolute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_coord_absolute_get"); + + private static void mapping_coord_absolute_get(System.IntPtr obj, System.IntPtr pd, int idx, out double x, out double y, out double z) + { + Eina.Log.Debug("function efl_gfx_mapping_coord_absolute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); z = default(double); + try + { + ((IMappingConcrete)wrapper).GetMappingCoordAbsolute(idx, out x, out y, out z); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_coord_absolute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out x, out y, out z); + } + } - public delegate void efl_gfx_mapping_zoom_api_delegate(System.IntPtr obj, double zoomx, double zoomy, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double cx, double cy); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_zoom_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_zoom"); - private static void zoom(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, Efl.Gfx.IEntity pivot, double cx, double cy) - { - Eina.Log.Debug("function efl_gfx_mapping_zoom was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).Zoom( zoomx, zoomy, pivot, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_zoom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoomx, zoomy, pivot, cx, cy); + private static efl_gfx_mapping_coord_absolute_get_delegate efl_gfx_mapping_coord_absolute_get_static_delegate; + + + private delegate void efl_gfx_mapping_coord_absolute_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, double x, double y, double z); + + + public delegate void efl_gfx_mapping_coord_absolute_set_api_delegate(System.IntPtr obj, int idx, double x, double y, double z); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_coord_absolute_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_coord_absolute_set"); + + private static void mapping_coord_absolute_set(System.IntPtr obj, System.IntPtr pd, int idx, double x, double y, double z) + { + Eina.Log.Debug("function efl_gfx_mapping_coord_absolute_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).SetMappingCoordAbsolute(idx, x, y, z); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_coord_absolute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, x, y, z); + } } - } - private static efl_gfx_mapping_zoom_delegate efl_gfx_mapping_zoom_static_delegate; + private static efl_gfx_mapping_coord_absolute_set_delegate efl_gfx_mapping_coord_absolute_set_static_delegate; + + + private delegate void efl_gfx_mapping_uv_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out double u, out double v); + + + public delegate void efl_gfx_mapping_uv_get_api_delegate(System.IntPtr obj, int idx, out double u, out double v); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_uv_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_uv_get"); + + private static void mapping_uv_get(System.IntPtr obj, System.IntPtr pd, int idx, out double u, out double v) + { + Eina.Log.Debug("function efl_gfx_mapping_uv_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + u = default(double); v = default(double); + try + { + ((IMappingConcrete)wrapper).GetMappingUv(idx, out u, out v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_uv_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out u, out v); + } + } - private delegate void efl_gfx_mapping_lighting_3d_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); + private static efl_gfx_mapping_uv_get_delegate efl_gfx_mapping_uv_get_static_delegate; + + + private delegate void efl_gfx_mapping_uv_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, double u, double v); + + + public delegate void efl_gfx_mapping_uv_set_api_delegate(System.IntPtr obj, int idx, double u, double v); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_uv_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_uv_set"); + + private static void mapping_uv_set(System.IntPtr obj, System.IntPtr pd, int idx, double u, double v) + { + Eina.Log.Debug("function efl_gfx_mapping_uv_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).SetMappingUv(idx, u, v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_uv_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, u, v); + } + } + private static efl_gfx_mapping_uv_set_delegate efl_gfx_mapping_uv_set_static_delegate; + + + private delegate void efl_gfx_mapping_color_get_delegate(System.IntPtr obj, System.IntPtr pd, int idx, out int r, out int g, out int b, out int a); + + + public delegate void efl_gfx_mapping_color_get_api_delegate(System.IntPtr obj, int idx, out int r, out int g, out int b, out int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_color_get"); + + private static void mapping_color_get(System.IntPtr obj, System.IntPtr pd, int idx, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_mapping_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); + try + { + ((IMappingConcrete)wrapper).GetMappingColor(idx, out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, out r, out g, out b, out a); + } + } - public delegate void efl_gfx_mapping_lighting_3d_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_lighting_3d_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_lighting_3d"); - private static void lighting_3d(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) - { - Eina.Log.Debug("function efl_gfx_mapping_lighting_3d was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).Lighting3d( pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_lighting_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); + private static efl_gfx_mapping_color_get_delegate efl_gfx_mapping_color_get_static_delegate; + + + private delegate void efl_gfx_mapping_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int idx, int r, int g, int b, int a); + + + public delegate void efl_gfx_mapping_color_set_api_delegate(System.IntPtr obj, int idx, int r, int g, int b, int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_color_set"); + + private static void mapping_color_set(System.IntPtr obj, System.IntPtr pd, int idx, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_mapping_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).SetMappingColor(idx, r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx, r, g, b, a); + } } - } - private static efl_gfx_mapping_lighting_3d_delegate efl_gfx_mapping_lighting_3d_static_delegate; + private static efl_gfx_mapping_color_set_delegate efl_gfx_mapping_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_mapping_has_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_mapping_has_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_has_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_has"); + + private static bool mapping_has(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_has was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IMappingConcrete)wrapper).HasMapping(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_mapping_perspective_3d_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc); + return _ret_var; + } + else + { + return efl_gfx_mapping_has_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_mapping_perspective_3d_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_perspective_3d_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_perspective_3d"); - private static void perspective_3d(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc) - { - Eina.Log.Debug("function efl_gfx_mapping_perspective_3d was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).Perspective3d( pivot, px, py, z0, foc); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_perspective_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pivot, px, py, z0, foc); + private static efl_gfx_mapping_has_delegate efl_gfx_mapping_has_static_delegate; + + + private delegate void efl_gfx_mapping_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_mapping_reset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_reset"); + + private static void mapping_reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_mapping_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).ResetMapping(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_mapping_perspective_3d_delegate efl_gfx_mapping_perspective_3d_static_delegate; + private static efl_gfx_mapping_reset_delegate efl_gfx_mapping_reset_static_delegate; + + + private delegate void efl_gfx_mapping_translate_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz); + + + public delegate void efl_gfx_mapping_translate_api_delegate(System.IntPtr obj, double dx, double dy, double dz); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_translate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_translate"); + + private static void translate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz) + { + Eina.Log.Debug("function efl_gfx_mapping_translate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).Translate(dx, dy, dz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_translate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz); + } + } - private delegate void efl_gfx_mapping_rotate_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double degrees, double cx, double cy); + private static efl_gfx_mapping_translate_delegate efl_gfx_mapping_translate_static_delegate; + + + private delegate void efl_gfx_mapping_rotate_delegate(System.IntPtr obj, System.IntPtr pd, double degrees, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy); + + + public delegate void efl_gfx_mapping_rotate_api_delegate(System.IntPtr obj, double degrees, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate"); + + private static void rotate(System.IntPtr obj, System.IntPtr pd, double degrees, Efl.Gfx.IEntity pivot, double cx, double cy) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).Rotate(degrees, pivot, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_rotate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), degrees, pivot, cx, cy); + } + } + private static efl_gfx_mapping_rotate_delegate efl_gfx_mapping_rotate_static_delegate; + + + private delegate void efl_gfx_mapping_rotate_3d_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); + + + public delegate void efl_gfx_mapping_rotate_3d_api_delegate(System.IntPtr obj, double dx, double dy, double dz, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_3d_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate_3d"); + + private static void rotate_3d(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate_3d was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).Rotate3d(dx, dy, dz, pivot, cx, cy, cz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_mapping_rotate_absolute_api_delegate(System.IntPtr obj, double degrees, double cx, double cy); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate_absolute"); - private static void rotate_absolute(System.IntPtr obj, System.IntPtr pd, double degrees, double cx, double cy) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).RotateAbsolute( degrees, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_rotate_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), degrees, cx, cy); + + } + else + { + efl_gfx_mapping_rotate_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz, pivot, cx, cy, cz); + } } - } - private static efl_gfx_mapping_rotate_absolute_delegate efl_gfx_mapping_rotate_absolute_static_delegate; + private static efl_gfx_mapping_rotate_3d_delegate efl_gfx_mapping_rotate_3d_static_delegate; + + + private delegate void efl_gfx_mapping_rotate_quat_delegate(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); + + + public delegate void efl_gfx_mapping_rotate_quat_api_delegate(System.IntPtr obj, double qx, double qy, double qz, double qw, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy, double cz); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_quat_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate_quat"); + + private static void rotate_quat(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, Efl.Gfx.IEntity pivot, double cx, double cy, double cz) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate_quat was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).RotateQuat(qx, qy, qz, qw, pivot, cx, cy, cz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_rotate_quat_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), qx, qy, qz, qw, pivot, cx, cy, cz); + } + } - private delegate void efl_gfx_mapping_rotate_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, double cx, double cy, double cz); + private static efl_gfx_mapping_rotate_quat_delegate efl_gfx_mapping_rotate_quat_static_delegate; + + + private delegate void efl_gfx_mapping_zoom_delegate(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy); + + + public delegate void efl_gfx_mapping_zoom_api_delegate(System.IntPtr obj, double zoomx, double zoomy, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double cx, double cy); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_zoom_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_zoom"); + + private static void zoom(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, Efl.Gfx.IEntity pivot, double cx, double cy) + { + Eina.Log.Debug("function efl_gfx_mapping_zoom was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).Zoom(zoomx, zoomy, pivot, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_zoom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoomx, zoomy, pivot, cx, cy); + } + } + private static efl_gfx_mapping_zoom_delegate efl_gfx_mapping_zoom_static_delegate; + + + private delegate void efl_gfx_mapping_lighting_3d_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); + + + public delegate void efl_gfx_mapping_lighting_3d_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_lighting_3d_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_lighting_3d"); + + private static void lighting_3d(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity pivot, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) + { + Eina.Log.Debug("function efl_gfx_mapping_lighting_3d was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).Lighting3d(pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_mapping_rotate_3d_absolute_api_delegate(System.IntPtr obj, double dx, double dy, double dz, double cx, double cy, double cz); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate_3d_absolute"); - private static void rotate_3d_absolute(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, double cx, double cy, double cz) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate_3d_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IMappingConcrete)wrapper).Rotate3dAbsolute( dx, dy, dz, cx, cy, cz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_rotate_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz, cx, cy, cz); + } + else + { + efl_gfx_mapping_lighting_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pivot, lx, ly, lz, lr, lg, lb, ar, ag, ab); + } } - } - private static efl_gfx_mapping_rotate_3d_absolute_delegate efl_gfx_mapping_rotate_3d_absolute_static_delegate; - - private delegate void efl_gfx_mapping_rotate_quat_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, double cx, double cy, double cz); - - - public delegate void efl_gfx_mapping_rotate_quat_absolute_api_delegate(System.IntPtr obj, double qx, double qy, double qz, double qw, double cx, double cy, double cz); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_quat_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_rotate_quat_absolute"); - private static void rotate_quat_absolute(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, double cx, double cy, double cz) - { - Eina.Log.Debug("function efl_gfx_mapping_rotate_quat_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).RotateQuatAbsolute( qx, qy, qz, qw, cx, cy, cz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_rotate_quat_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), qx, qy, qz, qw, cx, cy, cz); + private static efl_gfx_mapping_lighting_3d_delegate efl_gfx_mapping_lighting_3d_static_delegate; + + + private delegate void efl_gfx_mapping_perspective_3d_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc); + + + public delegate void efl_gfx_mapping_perspective_3d_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_perspective_3d_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_perspective_3d"); + + private static void perspective_3d(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity pivot, double px, double py, double z0, double foc) + { + Eina.Log.Debug("function efl_gfx_mapping_perspective_3d was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).Perspective3d(pivot, px, py, z0, foc); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_perspective_3d_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pivot, px, py, z0, foc); + } } - } - private static efl_gfx_mapping_rotate_quat_absolute_delegate efl_gfx_mapping_rotate_quat_absolute_static_delegate; + private static efl_gfx_mapping_perspective_3d_delegate efl_gfx_mapping_perspective_3d_static_delegate; + + + private delegate void efl_gfx_mapping_rotate_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double degrees, double cx, double cy); + + + public delegate void efl_gfx_mapping_rotate_absolute_api_delegate(System.IntPtr obj, double degrees, double cx, double cy); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate_absolute"); + + private static void rotate_absolute(System.IntPtr obj, System.IntPtr pd, double degrees, double cx, double cy) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).RotateAbsolute(degrees, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_rotate_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), degrees, cx, cy); + } + } - private delegate void efl_gfx_mapping_zoom_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, double cx, double cy); + private static efl_gfx_mapping_rotate_absolute_delegate efl_gfx_mapping_rotate_absolute_static_delegate; + + + private delegate void efl_gfx_mapping_rotate_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, double cx, double cy, double cz); + + + public delegate void efl_gfx_mapping_rotate_3d_absolute_api_delegate(System.IntPtr obj, double dx, double dy, double dz, double cx, double cy, double cz); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate_3d_absolute"); + + private static void rotate_3d_absolute(System.IntPtr obj, System.IntPtr pd, double dx, double dy, double dz, double cx, double cy, double cz) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate_3d_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).Rotate3dAbsolute(dx, dy, dz, cx, cy, cz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_rotate_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy, dz, cx, cy, cz); + } + } + private static efl_gfx_mapping_rotate_3d_absolute_delegate efl_gfx_mapping_rotate_3d_absolute_static_delegate; + + + private delegate void efl_gfx_mapping_rotate_quat_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, double cx, double cy, double cz); + + + public delegate void efl_gfx_mapping_rotate_quat_absolute_api_delegate(System.IntPtr obj, double qx, double qy, double qz, double qw, double cx, double cy, double cz); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_rotate_quat_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_rotate_quat_absolute"); + + private static void rotate_quat_absolute(System.IntPtr obj, System.IntPtr pd, double qx, double qy, double qz, double qw, double cx, double cy, double cz) + { + Eina.Log.Debug("function efl_gfx_mapping_rotate_quat_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).RotateQuatAbsolute(qx, qy, qz, qw, cx, cy, cz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_mapping_zoom_absolute_api_delegate(System.IntPtr obj, double zoomx, double zoomy, double cx, double cy); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_zoom_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_zoom_absolute"); - private static void zoom_absolute(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, double cx, double cy) - { - Eina.Log.Debug("function efl_gfx_mapping_zoom_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IMappingConcrete)wrapper).ZoomAbsolute( zoomx, zoomy, cx, cy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_zoom_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoomx, zoomy, cx, cy); + } + else + { + efl_gfx_mapping_rotate_quat_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), qx, qy, qz, qw, cx, cy, cz); + } } - } - private static efl_gfx_mapping_zoom_absolute_delegate efl_gfx_mapping_zoom_absolute_static_delegate; - - private delegate void efl_gfx_mapping_lighting_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); + private static efl_gfx_mapping_rotate_quat_absolute_delegate efl_gfx_mapping_rotate_quat_absolute_static_delegate; + + + private delegate void efl_gfx_mapping_zoom_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, double cx, double cy); + + + public delegate void efl_gfx_mapping_zoom_absolute_api_delegate(System.IntPtr obj, double zoomx, double zoomy, double cx, double cy); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_zoom_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_zoom_absolute"); + + private static void zoom_absolute(System.IntPtr obj, System.IntPtr pd, double zoomx, double zoomy, double cx, double cy) + { + Eina.Log.Debug("function efl_gfx_mapping_zoom_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).ZoomAbsolute(zoomx, zoomy, cx, cy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_zoom_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoomx, zoomy, cx, cy); + } + } + private static efl_gfx_mapping_zoom_absolute_delegate efl_gfx_mapping_zoom_absolute_static_delegate; + + + private delegate void efl_gfx_mapping_lighting_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); + + + public delegate void efl_gfx_mapping_lighting_3d_absolute_api_delegate(System.IntPtr obj, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_lighting_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_lighting_3d_absolute"); + + private static void lighting_3d_absolute(System.IntPtr obj, System.IntPtr pd, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) + { + Eina.Log.Debug("function efl_gfx_mapping_lighting_3d_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).Lighting3dAbsolute(lx, ly, lz, lr, lg, lb, ar, ag, ab); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_lighting_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lx, ly, lz, lr, lg, lb, ar, ag, ab); + } + } - public delegate void efl_gfx_mapping_lighting_3d_absolute_api_delegate(System.IntPtr obj, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_lighting_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_lighting_3d_absolute"); - private static void lighting_3d_absolute(System.IntPtr obj, System.IntPtr pd, double lx, double ly, double lz, int lr, int lg, int lb, int ar, int ag, int ab) - { - Eina.Log.Debug("function efl_gfx_mapping_lighting_3d_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).Lighting3dAbsolute( lx, ly, lz, lr, lg, lb, ar, ag, ab); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_lighting_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lx, ly, lz, lr, lg, lb, ar, ag, ab); + private static efl_gfx_mapping_lighting_3d_absolute_delegate efl_gfx_mapping_lighting_3d_absolute_static_delegate; + + + private delegate void efl_gfx_mapping_perspective_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double px, double py, double z0, double foc); + + + public delegate void efl_gfx_mapping_perspective_3d_absolute_api_delegate(System.IntPtr obj, double px, double py, double z0, double foc); + + public static Efl.Eo.FunctionWrapper efl_gfx_mapping_perspective_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_mapping_perspective_3d_absolute"); + + private static void perspective_3d_absolute(System.IntPtr obj, System.IntPtr pd, double px, double py, double z0, double foc) + { + Eina.Log.Debug("function efl_gfx_mapping_perspective_3d_absolute was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMappingConcrete)wrapper).Perspective3dAbsolute(px, py, z0, foc); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_mapping_perspective_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), px, py, z0, foc); + } } - } - private static efl_gfx_mapping_lighting_3d_absolute_delegate efl_gfx_mapping_lighting_3d_absolute_static_delegate; + private static efl_gfx_mapping_perspective_3d_absolute_delegate efl_gfx_mapping_perspective_3d_absolute_static_delegate; - private delegate void efl_gfx_mapping_perspective_3d_absolute_delegate(System.IntPtr obj, System.IntPtr pd, double px, double py, double z0, double foc); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_gfx_mapping_perspective_3d_absolute_api_delegate(System.IntPtr obj, double px, double py, double z0, double foc); - public static Efl.Eo.FunctionWrapper efl_gfx_mapping_perspective_3d_absolute_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_mapping_perspective_3d_absolute"); - private static void perspective_3d_absolute(System.IntPtr obj, System.IntPtr pd, double px, double py, double z0, double foc) - { - Eina.Log.Debug("function efl_gfx_mapping_perspective_3d_absolute was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMappingConcrete)wrapper).Perspective3dAbsolute( px, py, z0, foc); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_mapping_perspective_3d_absolute_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), px, py, z0, foc); - } - } - private static efl_gfx_mapping_perspective_3d_absolute_delegate efl_gfx_mapping_perspective_3d_absolute_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_path.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_path.eo.cs index cd7347b..2fee23a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_path.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_path.eo.cs @@ -3,76 +3,68 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// EFL graphics path object interface -[IPathNativeInherit] +[Efl.Gfx.IPathConcrete.NativeMethods] public interface IPath : Efl.Eo.IWrapper, IDisposable { /// Set the list of commands and points to be used to create the content of path. /// Command list /// Point list -/// -void GetPath( out Efl.Gfx.PathCommandType op, out double points); +void GetPath(out Efl.Gfx.PathCommandType op, out double points); /// Set the list of commands and points to be used to create the content of path. /// Command list /// Point list -/// -void SetPath( Efl.Gfx.PathCommandType op, double points); +void SetPath(Efl.Gfx.PathCommandType op, double points); /// Path length property /// Commands /// Points -/// -void GetLength( out uint commands, out uint points); +void GetLength(out uint commands, out uint points); /// Current point coordinates /// X co-ordinate of the current point. /// Y co-ordinate of the current point. -/// -void GetCurrent( out double x, out double y); +void GetCurrent(out double x, out double y); /// Current control point coordinates /// X co-ordinate of control point. /// Y co-ordinate of control point. -/// -void GetCurrentCtrl( out double x, out double y); +void GetCurrentCtrl(out double x, out double y); /// Copy the path data from the object specified. /// Shape object from where data will be copied. -/// -void CopyFrom( Efl.Object dup_from); +void CopyFrom(Efl.Object dup_from); /// Compute and return the bounding box of the currently set path /// Contain the bounding box of the currently set path -/// -void GetBounds( out Eina.Rect r); +void GetBounds(out Eina.Rect r); /// Reset the path data of the path object. -/// void Reset(); /// Moves the current point to the given point, implicitly starting a new subpath and closing the previous one. /// See also . /// X co-ordinate of the current point. /// Y co-ordinate of the current point. -/// -void AppendMoveTo( double x, double y); +void AppendMoveTo(double x, double y); /// Adds a straight line from the current position to the given end point. After the line is drawn, the current position is updated to be at the end point of the line. /// If no current position present, it draws a line to itself, basically a point. /// /// See also . /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. -/// -void AppendLineTo( double x, double y); +void AppendLineTo(double x, double y); /// Adds a quadratic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x, ctrl_y). After the path is drawn, the current position is updated to be at the end point of the path. /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. /// X co-ordinate of control point. /// Y co-ordinate of control point. -/// -void AppendQuadraticTo( double x, double y, double ctrl_x, double ctrl_y); +void AppendQuadraticTo(double x, double y, double ctrl_x, double ctrl_y); /// Same as efl_gfx_path_append_quadratic_to() api only difference is that it uses the current control point to draw the bezier. /// See also . /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. -/// -void AppendSquadraticTo( double x, double y); +void AppendSquadraticTo(double x, double y); /// Adds a cubic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x0, ctrl_y0), and (ctrl_x1, ctrl_y1). After the path is drawn, the current position is updated to be at the end point of the path. /// X co-ordinate of 1st control point. /// Y co-ordinate of 1st control point. @@ -80,16 +72,14 @@ void AppendSquadraticTo( double x, double y); /// Y co-ordinate of 2nd control point. /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. -/// -void AppendCubicTo( double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); +void AppendCubicTo(double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); /// Same as efl_gfx_path_append_cubic_to() api only difference is that it uses the current control point to draw the bezier. /// See also . /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. /// X co-ordinate of 2nd control point. /// Y co-ordinate of 2nd control point. -/// -void AppendScubicTo( double x, double y, double ctrl_x, double ctrl_y); +void AppendScubicTo(double x, double y, double ctrl_x, double ctrl_y); /// Append an arc that connects from the current point int the point list to the given point (x,y). The arc is defined by the given radius in x-direction (rx) and radius in y direction (ry). /// Use this api if you know the end point's of the arc otherwise use more convenient function . /// X co-ordinate of end point of the arc. @@ -99,8 +89,7 @@ void AppendScubicTo( double x, double y, double ctrl_x, double ctrl_y); /// X-axis rotation , normally 0. /// Defines whether to draw the larger arc or smaller arc joining two point. /// Defines whether the arc will be drawn counter-clockwise or clockwise from current point to the end point taking into account the large_arc property. -/// -void AppendArcTo( double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep); +void AppendArcTo(double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep); /// Append an arc that enclosed in the given rectangle (x, y, w, h). The angle is defined in counter clock wise , use -ve angle for clockwise arc. /// X co-ordinate of the rect. /// Y co-ordinate of the rect. @@ -108,18 +97,15 @@ void AppendArcTo( double x, double y, double rx, double ry, double angle, b /// Height of the rect. /// Angle at which the arc will start /// @ Length of the arc. -/// -void AppendArc( double x, double y, double w, double h, double start_angle, double sweep_length); +void AppendArc(double x, double y, double w, double h, double start_angle, double sweep_length); /// Closes the current subpath by drawing a line to the beginning of the subpath, automatically starting a new path. The current point of the new path is (0, 0). /// If the subpath does not contain any points, this function does nothing. -/// void CloseAppend(); /// Append a circle with given center and radius. /// X co-ordinate of the center of the circle. /// Y co-ordinate of the center of the circle. /// Radius of the circle. -/// -void AppendCircle( double x, double y, double radius); +void AppendCircle(double x, double y, double radius); /// Append the given rectangle with rounded corner to the path. /// The xr and yr arguments specify the radii of the ellipses defining the corners of the rounded rectangle. /// @@ -132,12 +118,10 @@ void AppendCircle( double x, double y, double radius); /// Height of the rectangle. /// The x radius of the rounded corner and should be in range [ 0 to w/2 ] /// The y radius of the rounded corner and should be in range [ 0 to h/2 ] -/// -void AppendRect( double x, double y, double w, double h, double rx, double ry); +void AppendRect(double x, double y, double w, double h, double rx, double ry); /// Append SVG path data /// SVG path data to append -/// -void AppendSvgPath( System.String svg_path_data); +void AppendSvgPath(System.String svg_path_data); /// Creates intermediary path part-way between two paths /// Sets the points of the obj as the linear interpolation of the points in the from and to paths. The path's x,y position and control point coordinates are likewise interpolated. /// @@ -146,19 +130,17 @@ void AppendSvgPath( System.String svg_path_data); /// Destination path /// Position map in range 0.0 to 1.0 /// true on success, false otherwise -bool Interpolate( Efl.Object from, Efl.Object to, double pos_map); +bool Interpolate(Efl.Object from, Efl.Object to, double pos_map); /// Equal commands in object /// Object /// True on success, false otherwise -bool EqualCommands( Efl.Object with); +bool EqualCommands(Efl.Object with); /// Reserve path commands buffer in advance. If you know the count of path commands coming, you can reserve commands buffer in advance to avoid buffer growing job. /// Commands count to reserve /// Pointers count to reserve -/// -void Reserve( uint cmd_count, uint pts_count); +void Reserve(uint cmd_count, uint pts_count); /// Request to update the path object. /// One path object may get appending several path calls (such as append_cubic, append_rect, etc) to construct the final path data. Here commit means all path data is prepared and now object could update its own internal status based on the last path information. -/// void Commit(); } /// EFL graphics path object interface @@ -168,76 +150,110 @@ IPath { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IPathConcrete)) - return Efl.Gfx.IPathNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IPathConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_path_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IPathConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IPathConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Set the list of commands and points to be used to create the content of path. /// Command list /// Point list - /// - public void GetPath( out Efl.Gfx.PathCommandType op, out double points) { + public void GetPath(out Efl.Gfx.PathCommandType op, out double points) { System.IntPtr _out_op = System.IntPtr.Zero; System.IntPtr _out_points = System.IntPtr.Zero; - Efl.Gfx.IPathNativeInherit.efl_gfx_path_get_ptr.Value.Delegate(this.NativeHandle, out _out_op, out _out_points); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_get_ptr.Value.Delegate(this.NativeHandle,out _out_op, out _out_points); Eina.Error.RaiseIfUnhandledException(); op = Eina.PrimitiveConversion.PointerToManaged(_out_op); points = Eina.PrimitiveConversion.PointerToManaged(_out_points); @@ -245,66 +261,58 @@ IPath /// Set the list of commands and points to be used to create the content of path. /// Command list /// Point list - /// - public void SetPath( Efl.Gfx.PathCommandType op, double points) { + public void SetPath(Efl.Gfx.PathCommandType op, double points) { var _in_op = Eina.PrimitiveConversion.ManagedToPointerAlloc(op); var _in_points = Eina.PrimitiveConversion.ManagedToPointerAlloc(points); - Efl.Gfx.IPathNativeInherit.efl_gfx_path_set_ptr.Value.Delegate(this.NativeHandle, _in_op, _in_points); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_set_ptr.Value.Delegate(this.NativeHandle,_in_op, _in_points); Eina.Error.RaiseIfUnhandledException(); } /// Path length property /// Commands /// Points - /// - public void GetLength( out uint commands, out uint points) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_length_get_ptr.Value.Delegate(this.NativeHandle, out commands, out points); + public void GetLength(out uint commands, out uint points) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_length_get_ptr.Value.Delegate(this.NativeHandle,out commands, out points); Eina.Error.RaiseIfUnhandledException(); } /// Current point coordinates /// X co-ordinate of the current point. /// Y co-ordinate of the current point. - /// - public void GetCurrent( out double x, out double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_current_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetCurrent(out double x, out double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_current_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Current control point coordinates /// X co-ordinate of control point. /// Y co-ordinate of control point. - /// - public void GetCurrentCtrl( out double x, out double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetCurrentCtrl(out double x, out double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Copy the path data from the object specified. /// Shape object from where data will be copied. - /// - public void CopyFrom( Efl.Object dup_from) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_copy_from_ptr.Value.Delegate(this.NativeHandle, dup_from); + public void CopyFrom(Efl.Object dup_from) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_copy_from_ptr.Value.Delegate(this.NativeHandle,dup_from); Eina.Error.RaiseIfUnhandledException(); } /// Compute and return the bounding box of the currently set path /// Contain the bounding box of the currently set path - /// - public void GetBounds( out Eina.Rect r) { + public void GetBounds(out Eina.Rect r) { var _out_r = new Eina.Rect.NativeStruct(); - Efl.Gfx.IPathNativeInherit.efl_gfx_path_bounds_get_ptr.Value.Delegate(this.NativeHandle, out _out_r); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_bounds_get_ptr.Value.Delegate(this.NativeHandle,out _out_r); Eina.Error.RaiseIfUnhandledException(); r = _out_r; } /// Reset the path data of the path object. - /// public void Reset() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_reset_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_reset_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Moves the current point to the given point, implicitly starting a new subpath and closing the previous one. /// See also . /// X co-ordinate of the current point. /// Y co-ordinate of the current point. - /// - public void AppendMoveTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_move_to_ptr.Value.Delegate(this.NativeHandle, x, y); + public void AppendMoveTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_move_to_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a straight line from the current position to the given end point. After the line is drawn, the current position is updated to be at the end point of the line. @@ -313,9 +321,8 @@ IPath /// See also . /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - public void AppendLineTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_line_to_ptr.Value.Delegate(this.NativeHandle, x, y); + public void AppendLineTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_line_to_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a quadratic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x, ctrl_y). After the path is drawn, the current position is updated to be at the end point of the path. @@ -323,18 +330,16 @@ IPath /// Y co-ordinate of end point of the line. /// X co-ordinate of control point. /// Y co-ordinate of control point. - /// - public void AppendQuadraticTo( double x, double y, double ctrl_x, double ctrl_y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(this.NativeHandle, x, y, ctrl_x, ctrl_y); + public void AppendQuadraticTo(double x, double y, double ctrl_x, double ctrl_y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(this.NativeHandle,x, y, ctrl_x, ctrl_y); Eina.Error.RaiseIfUnhandledException(); } /// Same as efl_gfx_path_append_quadratic_to() api only difference is that it uses the current control point to draw the bezier. /// See also . /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - public void AppendSquadraticTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(this.NativeHandle, x, y); + public void AppendSquadraticTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a cubic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x0, ctrl_y0), and (ctrl_x1, ctrl_y1). After the path is drawn, the current position is updated to be at the end point of the path. @@ -344,9 +349,8 @@ IPath /// Y co-ordinate of 2nd control point. /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - public void AppendCubicTo( double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_cubic_to_ptr.Value.Delegate(this.NativeHandle, ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + public void AppendCubicTo(double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_cubic_to_ptr.Value.Delegate(this.NativeHandle,ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); Eina.Error.RaiseIfUnhandledException(); } /// Same as efl_gfx_path_append_cubic_to() api only difference is that it uses the current control point to draw the bezier. @@ -355,9 +359,8 @@ IPath /// Y co-ordinate of end point of the line. /// X co-ordinate of 2nd control point. /// Y co-ordinate of 2nd control point. - /// - public void AppendScubicTo( double x, double y, double ctrl_x, double ctrl_y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_scubic_to_ptr.Value.Delegate(this.NativeHandle, x, y, ctrl_x, ctrl_y); + public void AppendScubicTo(double x, double y, double ctrl_x, double ctrl_y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_scubic_to_ptr.Value.Delegate(this.NativeHandle,x, y, ctrl_x, ctrl_y); Eina.Error.RaiseIfUnhandledException(); } /// Append an arc that connects from the current point int the point list to the given point (x,y). The arc is defined by the given radius in x-direction (rx) and radius in y direction (ry). @@ -369,9 +372,8 @@ IPath /// X-axis rotation , normally 0. /// Defines whether to draw the larger arc or smaller arc joining two point. /// Defines whether the arc will be drawn counter-clockwise or clockwise from current point to the end point taking into account the large_arc property. - /// - public void AppendArcTo( double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_arc_to_ptr.Value.Delegate(this.NativeHandle, x, y, rx, ry, angle, large_arc, sweep); + public void AppendArcTo(double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_arc_to_ptr.Value.Delegate(this.NativeHandle,x, y, rx, ry, angle, large_arc, sweep); Eina.Error.RaiseIfUnhandledException(); } /// Append an arc that enclosed in the given rectangle (x, y, w, h). The angle is defined in counter clock wise , use -ve angle for clockwise arc. @@ -381,25 +383,22 @@ IPath /// Height of the rect. /// Angle at which the arc will start /// @ Length of the arc. - /// - public void AppendArc( double x, double y, double w, double h, double start_angle, double sweep_length) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_arc_ptr.Value.Delegate(this.NativeHandle, x, y, w, h, start_angle, sweep_length); + public void AppendArc(double x, double y, double w, double h, double start_angle, double sweep_length) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_arc_ptr.Value.Delegate(this.NativeHandle,x, y, w, h, start_angle, sweep_length); Eina.Error.RaiseIfUnhandledException(); } /// Closes the current subpath by drawing a line to the beginning of the subpath, automatically starting a new path. The current point of the new path is (0, 0). /// If the subpath does not contain any points, this function does nothing. - /// public void CloseAppend() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_close_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_close_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Append a circle with given center and radius. /// X co-ordinate of the center of the circle. /// Y co-ordinate of the center of the circle. /// Radius of the circle. - /// - public void AppendCircle( double x, double y, double radius) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_circle_ptr.Value.Delegate(this.NativeHandle, x, y, radius); + public void AppendCircle(double x, double y, double radius) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_circle_ptr.Value.Delegate(this.NativeHandle,x, y, radius); Eina.Error.RaiseIfUnhandledException(); } /// Append the given rectangle with rounded corner to the path. @@ -414,16 +413,14 @@ IPath /// Height of the rectangle. /// The x radius of the rounded corner and should be in range [ 0 to w/2 ] /// The y radius of the rounded corner and should be in range [ 0 to h/2 ] - /// - public void AppendRect( double x, double y, double w, double h, double rx, double ry) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_rect_ptr.Value.Delegate(this.NativeHandle, x, y, w, h, rx, ry); + public void AppendRect(double x, double y, double w, double h, double rx, double ry) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_rect_ptr.Value.Delegate(this.NativeHandle,x, y, w, h, rx, ry); Eina.Error.RaiseIfUnhandledException(); } /// Append SVG path data /// SVG path data to append - /// - public void AppendSvgPath( System.String svg_path_data) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_svg_path_ptr.Value.Delegate(this.NativeHandle, svg_path_data); + public void AppendSvgPath(System.String svg_path_data) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_svg_path_ptr.Value.Delegate(this.NativeHandle,svg_path_data); Eina.Error.RaiseIfUnhandledException(); } /// Creates intermediary path part-way between two paths @@ -434,736 +431,1154 @@ IPath /// Destination path /// Position map in range 0.0 to 1.0 /// true on success, false otherwise - public bool Interpolate( Efl.Object from, Efl.Object to, double pos_map) { - var _ret_var = Efl.Gfx.IPathNativeInherit.efl_gfx_path_interpolate_ptr.Value.Delegate(this.NativeHandle, from, to, pos_map); + public bool Interpolate(Efl.Object from, Efl.Object to, double pos_map) { + var _ret_var = Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_interpolate_ptr.Value.Delegate(this.NativeHandle,from, to, pos_map); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Equal commands in object /// Object /// True on success, false otherwise - public bool EqualCommands( Efl.Object with) { - var _ret_var = Efl.Gfx.IPathNativeInherit.efl_gfx_path_equal_commands_ptr.Value.Delegate(this.NativeHandle, with); + public bool EqualCommands(Efl.Object with) { + var _ret_var = Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_equal_commands_ptr.Value.Delegate(this.NativeHandle,with); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reserve path commands buffer in advance. If you know the count of path commands coming, you can reserve commands buffer in advance to avoid buffer growing job. /// Commands count to reserve /// Pointers count to reserve - /// - public void Reserve( uint cmd_count, uint pts_count) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_reserve_ptr.Value.Delegate(this.NativeHandle, cmd_count, pts_count); + public void Reserve(uint cmd_count, uint pts_count) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_reserve_ptr.Value.Delegate(this.NativeHandle,cmd_count, pts_count); Eina.Error.RaiseIfUnhandledException(); } /// Request to update the path object. /// One path object may get appending several path calls (such as append_cubic, append_rect, etc) to construct the final path data. Here commit means all path data is prepared and now object could update its own internal status based on the last path information. - /// public void Commit() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_commit_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_commit_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IPathConcrete.efl_gfx_path_mixin_get(); } -} -public class IPathNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_gfx_path_get_static_delegate == null) - efl_gfx_path_get_static_delegate = new efl_gfx_path_get_delegate(path_get); - if (methods.FirstOrDefault(m => m.Name == "GetPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_get_static_delegate)}); - if (efl_gfx_path_set_static_delegate == null) - efl_gfx_path_set_static_delegate = new efl_gfx_path_set_delegate(path_set); - if (methods.FirstOrDefault(m => m.Name == "SetPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_set_static_delegate)}); - if (efl_gfx_path_length_get_static_delegate == null) - efl_gfx_path_length_get_static_delegate = new efl_gfx_path_length_get_delegate(length_get); - if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_length_get_static_delegate)}); - if (efl_gfx_path_current_get_static_delegate == null) - efl_gfx_path_current_get_static_delegate = new efl_gfx_path_current_get_delegate(current_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_current_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_get_static_delegate)}); - if (efl_gfx_path_current_ctrl_get_static_delegate == null) - efl_gfx_path_current_ctrl_get_static_delegate = new efl_gfx_path_current_ctrl_get_delegate(current_ctrl_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrentCtrl") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_current_ctrl_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_ctrl_get_static_delegate)}); - if (efl_gfx_path_copy_from_static_delegate == null) - efl_gfx_path_copy_from_static_delegate = new efl_gfx_path_copy_from_delegate(copy_from); - if (methods.FirstOrDefault(m => m.Name == "CopyFrom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_copy_from"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_copy_from_static_delegate)}); - if (efl_gfx_path_bounds_get_static_delegate == null) - efl_gfx_path_bounds_get_static_delegate = new efl_gfx_path_bounds_get_delegate(bounds_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounds") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_bounds_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_bounds_get_static_delegate)}); - if (efl_gfx_path_reset_static_delegate == null) - efl_gfx_path_reset_static_delegate = new efl_gfx_path_reset_delegate(reset); - if (methods.FirstOrDefault(m => m.Name == "Reset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reset_static_delegate)}); - if (efl_gfx_path_append_move_to_static_delegate == null) - efl_gfx_path_append_move_to_static_delegate = new efl_gfx_path_append_move_to_delegate(append_move_to); - if (methods.FirstOrDefault(m => m.Name == "AppendMoveTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_move_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_move_to_static_delegate)}); - if (efl_gfx_path_append_line_to_static_delegate == null) - efl_gfx_path_append_line_to_static_delegate = new efl_gfx_path_append_line_to_delegate(append_line_to); - if (methods.FirstOrDefault(m => m.Name == "AppendLineTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_line_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_line_to_static_delegate)}); - if (efl_gfx_path_append_quadratic_to_static_delegate == null) - efl_gfx_path_append_quadratic_to_static_delegate = new efl_gfx_path_append_quadratic_to_delegate(append_quadratic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendQuadraticTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_quadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_quadratic_to_static_delegate)}); - if (efl_gfx_path_append_squadratic_to_static_delegate == null) - efl_gfx_path_append_squadratic_to_static_delegate = new efl_gfx_path_append_squadratic_to_delegate(append_squadratic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendSquadraticTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_squadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_squadratic_to_static_delegate)}); - if (efl_gfx_path_append_cubic_to_static_delegate == null) - efl_gfx_path_append_cubic_to_static_delegate = new efl_gfx_path_append_cubic_to_delegate(append_cubic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendCubicTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_cubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_cubic_to_static_delegate)}); - if (efl_gfx_path_append_scubic_to_static_delegate == null) - efl_gfx_path_append_scubic_to_static_delegate = new efl_gfx_path_append_scubic_to_delegate(append_scubic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendScubicTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_scubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_scubic_to_static_delegate)}); - if (efl_gfx_path_append_arc_to_static_delegate == null) - efl_gfx_path_append_arc_to_static_delegate = new efl_gfx_path_append_arc_to_delegate(append_arc_to); - if (methods.FirstOrDefault(m => m.Name == "AppendArcTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_arc_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_to_static_delegate)}); - if (efl_gfx_path_append_arc_static_delegate == null) - efl_gfx_path_append_arc_static_delegate = new efl_gfx_path_append_arc_delegate(append_arc); - if (methods.FirstOrDefault(m => m.Name == "AppendArc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_arc"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_static_delegate)}); - if (efl_gfx_path_append_close_static_delegate == null) - efl_gfx_path_append_close_static_delegate = new efl_gfx_path_append_close_delegate(append_close); - if (methods.FirstOrDefault(m => m.Name == "CloseAppend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_close"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_close_static_delegate)}); - if (efl_gfx_path_append_circle_static_delegate == null) - efl_gfx_path_append_circle_static_delegate = new efl_gfx_path_append_circle_delegate(append_circle); - if (methods.FirstOrDefault(m => m.Name == "AppendCircle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_circle"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_circle_static_delegate)}); - if (efl_gfx_path_append_rect_static_delegate == null) - efl_gfx_path_append_rect_static_delegate = new efl_gfx_path_append_rect_delegate(append_rect); - if (methods.FirstOrDefault(m => m.Name == "AppendRect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_rect"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_rect_static_delegate)}); - if (efl_gfx_path_append_svg_path_static_delegate == null) - efl_gfx_path_append_svg_path_static_delegate = new efl_gfx_path_append_svg_path_delegate(append_svg_path); - if (methods.FirstOrDefault(m => m.Name == "AppendSvgPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_svg_path"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_svg_path_static_delegate)}); - if (efl_gfx_path_interpolate_static_delegate == null) - efl_gfx_path_interpolate_static_delegate = new efl_gfx_path_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_interpolate_static_delegate)}); - if (efl_gfx_path_equal_commands_static_delegate == null) - efl_gfx_path_equal_commands_static_delegate = new efl_gfx_path_equal_commands_delegate(equal_commands); - if (methods.FirstOrDefault(m => m.Name == "EqualCommands") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_equal_commands"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_equal_commands_static_delegate)}); - if (efl_gfx_path_reserve_static_delegate == null) - efl_gfx_path_reserve_static_delegate = new efl_gfx_path_reserve_delegate(reserve); - if (methods.FirstOrDefault(m => m.Name == "Reserve") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_reserve"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reserve_static_delegate)}); - if (efl_gfx_path_commit_static_delegate == null) - efl_gfx_path_commit_static_delegate = new efl_gfx_path_commit_delegate(commit); - if (methods.FirstOrDefault(m => m.Name == "Commit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_commit"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_commit_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IPathConcrete.efl_gfx_path_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Gfx.IPathConcrete.efl_gfx_path_mixin_get(); - } + 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_gfx_path_get_static_delegate == null) + { + efl_gfx_path_get_static_delegate = new efl_gfx_path_get_delegate(path_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_get_static_delegate) }); + } - private delegate void efl_gfx_path_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points); + if (efl_gfx_path_set_static_delegate == null) + { + efl_gfx_path_set_static_delegate = new efl_gfx_path_set_delegate(path_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_set_static_delegate) }); + } - public delegate void efl_gfx_path_get_api_delegate(System.IntPtr obj, out System.IntPtr op, out System.IntPtr points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_get"); - private static void path_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points) - { - Eina.Log.Debug("function efl_gfx_path_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); - double _out_points = default(double); - - try { - ((IPathConcrete)wrapper).GetPath( out _out_op, out _out_points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_path_length_get_static_delegate == null) + { + efl_gfx_path_length_get_static_delegate = new efl_gfx_path_length_get_delegate(length_get); } - op = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_op); - points = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_points); - } else { - efl_gfx_path_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out op, out points); - } - } - private static efl_gfx_path_get_delegate efl_gfx_path_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_length_get_static_delegate) }); + } - private delegate void efl_gfx_path_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points); + if (efl_gfx_path_current_get_static_delegate == null) + { + efl_gfx_path_current_get_static_delegate = new efl_gfx_path_current_get_delegate(current_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCurrent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_current_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_get_static_delegate) }); + } - public delegate void efl_gfx_path_set_api_delegate(System.IntPtr obj, System.IntPtr op, System.IntPtr points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_set"); - private static void path_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points) - { - Eina.Log.Debug("function efl_gfx_path_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_op = Eina.PrimitiveConversion.PointerToManaged(op); - var _in_points = Eina.PrimitiveConversion.PointerToManaged(points); - - try { - ((IPathConcrete)wrapper).SetPath( _in_op, _in_points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), op, points); - } - } - private static efl_gfx_path_set_delegate efl_gfx_path_set_static_delegate; + if (efl_gfx_path_current_ctrl_get_static_delegate == null) + { + efl_gfx_path_current_ctrl_get_static_delegate = new efl_gfx_path_current_ctrl_get_delegate(current_ctrl_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCurrentCtrl") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_current_ctrl_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_ctrl_get_static_delegate) }); + } - private delegate void efl_gfx_path_length_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points); + if (efl_gfx_path_copy_from_static_delegate == null) + { + efl_gfx_path_copy_from_static_delegate = new efl_gfx_path_copy_from_delegate(copy_from); + } + if (methods.FirstOrDefault(m => m.Name == "CopyFrom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_copy_from"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_copy_from_static_delegate) }); + } - public delegate void efl_gfx_path_length_get_api_delegate(System.IntPtr obj, out uint commands, out uint points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_length_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_length_get"); - private static void length_get(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points) - { - Eina.Log.Debug("function efl_gfx_path_length_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - commands = default(uint); points = default(uint); - try { - ((IPathConcrete)wrapper).GetLength( out commands, out points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out commands, out points); - } - } - private static efl_gfx_path_length_get_delegate efl_gfx_path_length_get_static_delegate; + if (efl_gfx_path_bounds_get_static_delegate == null) + { + efl_gfx_path_bounds_get_static_delegate = new efl_gfx_path_bounds_get_delegate(bounds_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBounds") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_bounds_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_bounds_get_static_delegate) }); + } - private delegate void efl_gfx_path_current_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (efl_gfx_path_reset_static_delegate == null) + { + efl_gfx_path_reset_static_delegate = new efl_gfx_path_reset_delegate(reset); + } + if (methods.FirstOrDefault(m => m.Name == "Reset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reset_static_delegate) }); + } - public delegate void efl_gfx_path_current_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_current_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_current_get"); - private static void current_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_path_current_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IPathConcrete)wrapper).GetCurrent( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_current_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_gfx_path_current_get_delegate efl_gfx_path_current_get_static_delegate; + if (efl_gfx_path_append_move_to_static_delegate == null) + { + efl_gfx_path_append_move_to_static_delegate = new efl_gfx_path_append_move_to_delegate(append_move_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendMoveTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_move_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_move_to_static_delegate) }); + } - private delegate void efl_gfx_path_current_ctrl_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (efl_gfx_path_append_line_to_static_delegate == null) + { + efl_gfx_path_append_line_to_static_delegate = new efl_gfx_path_append_line_to_delegate(append_line_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendLineTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_line_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_line_to_static_delegate) }); + } - public delegate void efl_gfx_path_current_ctrl_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_current_ctrl_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_current_ctrl_get"); - private static void current_ctrl_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_path_current_ctrl_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IPathConcrete)wrapper).GetCurrentCtrl( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_gfx_path_current_ctrl_get_delegate efl_gfx_path_current_ctrl_get_static_delegate; + if (efl_gfx_path_append_quadratic_to_static_delegate == null) + { + efl_gfx_path_append_quadratic_to_static_delegate = new efl_gfx_path_append_quadratic_to_delegate(append_quadratic_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendQuadraticTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_quadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_quadratic_to_static_delegate) }); + } - private delegate void efl_gfx_path_copy_from_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object dup_from); + if (efl_gfx_path_append_squadratic_to_static_delegate == null) + { + efl_gfx_path_append_squadratic_to_static_delegate = new efl_gfx_path_append_squadratic_to_delegate(append_squadratic_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendSquadraticTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_squadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_squadratic_to_static_delegate) }); + } - public delegate void efl_gfx_path_copy_from_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object dup_from); - public static Efl.Eo.FunctionWrapper efl_gfx_path_copy_from_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_copy_from"); - private static void copy_from(System.IntPtr obj, System.IntPtr pd, Efl.Object dup_from) - { - Eina.Log.Debug("function efl_gfx_path_copy_from was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).CopyFrom( dup_from); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_copy_from_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dup_from); - } - } - private static efl_gfx_path_copy_from_delegate efl_gfx_path_copy_from_static_delegate; + if (efl_gfx_path_append_cubic_to_static_delegate == null) + { + efl_gfx_path_append_cubic_to_static_delegate = new efl_gfx_path_append_cubic_to_delegate(append_cubic_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendCubicTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_cubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_cubic_to_static_delegate) }); + } - private delegate void efl_gfx_path_bounds_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r); + if (efl_gfx_path_append_scubic_to_static_delegate == null) + { + efl_gfx_path_append_scubic_to_static_delegate = new efl_gfx_path_append_scubic_to_delegate(append_scubic_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendScubicTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_scubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_scubic_to_static_delegate) }); + } - public delegate void efl_gfx_path_bounds_get_api_delegate(System.IntPtr obj, out Eina.Rect.NativeStruct r); - public static Efl.Eo.FunctionWrapper efl_gfx_path_bounds_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_bounds_get"); - private static void bounds_get(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r) - { - Eina.Log.Debug("function efl_gfx_path_bounds_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _out_r = default(Eina.Rect); - - try { - ((IPathConcrete)wrapper).GetBounds( out _out_r); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_path_append_arc_to_static_delegate == null) + { + efl_gfx_path_append_arc_to_static_delegate = new efl_gfx_path_append_arc_to_delegate(append_arc_to); } - r = _out_r; - } else { - efl_gfx_path_bounds_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r); - } - } - private static efl_gfx_path_bounds_get_delegate efl_gfx_path_bounds_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "AppendArcTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_arc_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_to_static_delegate) }); + } - private delegate void efl_gfx_path_reset_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_path_append_arc_static_delegate == null) + { + efl_gfx_path_append_arc_static_delegate = new efl_gfx_path_append_arc_delegate(append_arc); + } + if (methods.FirstOrDefault(m => m.Name == "AppendArc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_arc"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_static_delegate) }); + } - public delegate void efl_gfx_path_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_reset"); - private static void reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).Reset(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_path_reset_delegate efl_gfx_path_reset_static_delegate; + if (efl_gfx_path_append_close_static_delegate == null) + { + efl_gfx_path_append_close_static_delegate = new efl_gfx_path_append_close_delegate(append_close); + } + if (methods.FirstOrDefault(m => m.Name == "CloseAppend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_close"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_close_static_delegate) }); + } - private delegate void efl_gfx_path_append_move_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + if (efl_gfx_path_append_circle_static_delegate == null) + { + efl_gfx_path_append_circle_static_delegate = new efl_gfx_path_append_circle_delegate(append_circle); + } + if (methods.FirstOrDefault(m => m.Name == "AppendCircle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_circle"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_circle_static_delegate) }); + } - public delegate void efl_gfx_path_append_move_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_move_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_move_to"); - private static void append_move_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_move_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).AppendMoveTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_move_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static efl_gfx_path_append_move_to_delegate efl_gfx_path_append_move_to_static_delegate; + if (efl_gfx_path_append_rect_static_delegate == null) + { + efl_gfx_path_append_rect_static_delegate = new efl_gfx_path_append_rect_delegate(append_rect); + } + if (methods.FirstOrDefault(m => m.Name == "AppendRect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_rect"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_rect_static_delegate) }); + } - private delegate void efl_gfx_path_append_line_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + if (efl_gfx_path_append_svg_path_static_delegate == null) + { + efl_gfx_path_append_svg_path_static_delegate = new efl_gfx_path_append_svg_path_delegate(append_svg_path); + } + if (methods.FirstOrDefault(m => m.Name == "AppendSvgPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_svg_path"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_svg_path_static_delegate) }); + } - public delegate void efl_gfx_path_append_line_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_line_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_line_to"); - private static void append_line_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_line_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).AppendLineTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_line_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static efl_gfx_path_append_line_to_delegate efl_gfx_path_append_line_to_static_delegate; + if (efl_gfx_path_interpolate_static_delegate == null) + { + efl_gfx_path_interpolate_static_delegate = new efl_gfx_path_interpolate_delegate(interpolate); + } + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_interpolate_static_delegate) }); + } - private delegate void efl_gfx_path_append_quadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + if (efl_gfx_path_equal_commands_static_delegate == null) + { + efl_gfx_path_equal_commands_static_delegate = new efl_gfx_path_equal_commands_delegate(equal_commands); + } + if (methods.FirstOrDefault(m => m.Name == "EqualCommands") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_equal_commands"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_equal_commands_static_delegate) }); + } - public delegate void efl_gfx_path_append_quadratic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_quadratic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_quadratic_to"); - private static void append_quadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) - { - Eina.Log.Debug("function efl_gfx_path_append_quadratic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).AppendQuadraticTo( x, y, ctrl_x, ctrl_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); - } - } - private static efl_gfx_path_append_quadratic_to_delegate efl_gfx_path_append_quadratic_to_static_delegate; + if (efl_gfx_path_reserve_static_delegate == null) + { + efl_gfx_path_reserve_static_delegate = new efl_gfx_path_reserve_delegate(reserve); + } + if (methods.FirstOrDefault(m => m.Name == "Reserve") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_reserve"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reserve_static_delegate) }); + } - private delegate void efl_gfx_path_append_squadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + if (efl_gfx_path_commit_static_delegate == null) + { + efl_gfx_path_commit_static_delegate = new efl_gfx_path_commit_delegate(commit); + } + if (methods.FirstOrDefault(m => m.Name == "Commit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_commit"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_commit_static_delegate) }); + } - public delegate void efl_gfx_path_append_squadratic_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_squadratic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_squadratic_to"); - private static void append_squadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_squadratic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).AppendSquadraticTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Gfx.IPathConcrete.efl_gfx_path_mixin_get(); } - } - private static efl_gfx_path_append_squadratic_to_delegate efl_gfx_path_append_squadratic_to_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_gfx_path_append_cubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); + + private delegate void efl_gfx_path_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points); + + public delegate void efl_gfx_path_get_api_delegate(System.IntPtr obj, out System.IntPtr op, out System.IntPtr points); - public delegate void efl_gfx_path_append_cubic_to_api_delegate(System.IntPtr obj, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_cubic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_cubic_to"); - private static void append_cubic_to(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_cubic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).AppendCubicTo( ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_cubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); - } - } - private static efl_gfx_path_append_cubic_to_delegate efl_gfx_path_append_cubic_to_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_path_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_get"); + private static void path_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points) + { + Eina.Log.Debug("function efl_gfx_path_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); + double _out_points = default(double); + + try + { + ((IPathConcrete)wrapper).GetPath(out _out_op, out _out_points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_scubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + op = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_op); + points = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_points); + + } + else + { + efl_gfx_path_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out op, out points); + } + } + private static efl_gfx_path_get_delegate efl_gfx_path_get_static_delegate; - public delegate void efl_gfx_path_append_scubic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_scubic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_scubic_to"); - private static void append_scubic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) - { - Eina.Log.Debug("function efl_gfx_path_append_scubic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).AppendScubicTo( x, y, ctrl_x, ctrl_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_scubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); - } - } - private static efl_gfx_path_append_scubic_to_delegate efl_gfx_path_append_scubic_to_static_delegate; + + private delegate void efl_gfx_path_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points); + + public delegate void efl_gfx_path_set_api_delegate(System.IntPtr obj, System.IntPtr op, System.IntPtr points); - private delegate void efl_gfx_path_append_arc_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); + public static Efl.Eo.FunctionWrapper efl_gfx_path_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_set"); + private static void path_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points) + { + Eina.Log.Debug("function efl_gfx_path_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_op = Eina.PrimitiveConversion.PointerToManaged(op); + var _in_points = Eina.PrimitiveConversion.PointerToManaged(points); + + try + { + ((IPathConcrete)wrapper).SetPath(_in_op, _in_points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), op, points); + } + } - public delegate void efl_gfx_path_append_arc_to_api_delegate(System.IntPtr obj, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_arc_to"); - private static void append_arc_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) - { - Eina.Log.Debug("function efl_gfx_path_append_arc_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).AppendArcTo( x, y, rx, ry, angle, large_arc, sweep); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_arc_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, rx, ry, angle, large_arc, sweep); + private static efl_gfx_path_set_delegate efl_gfx_path_set_static_delegate; + + + private delegate void efl_gfx_path_length_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points); + + + public delegate void efl_gfx_path_length_get_api_delegate(System.IntPtr obj, out uint commands, out uint points); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_length_get"); + + private static void length_get(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points) + { + Eina.Log.Debug("function efl_gfx_path_length_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + commands = default(uint); points = default(uint); + try + { + ((IPathConcrete)wrapper).GetLength(out commands, out points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out commands, out points); + } } - } - private static efl_gfx_path_append_arc_to_delegate efl_gfx_path_append_arc_to_static_delegate; + private static efl_gfx_path_length_get_delegate efl_gfx_path_length_get_static_delegate; + + + private delegate void efl_gfx_path_current_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_path_current_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_current_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_current_get"); + + private static void current_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_path_current_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IPathConcrete)wrapper).GetCurrent(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_current_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } - private delegate void efl_gfx_path_append_arc_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length); + private static efl_gfx_path_current_get_delegate efl_gfx_path_current_get_static_delegate; + + + private delegate void efl_gfx_path_current_ctrl_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_path_current_ctrl_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_current_ctrl_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_current_ctrl_get"); + + private static void current_ctrl_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_path_current_ctrl_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IPathConcrete)wrapper).GetCurrentCtrl(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + private static efl_gfx_path_current_ctrl_get_delegate efl_gfx_path_current_ctrl_get_static_delegate; + + + private delegate void efl_gfx_path_copy_from_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object dup_from); + + + public delegate void efl_gfx_path_copy_from_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object dup_from); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_copy_from_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_copy_from"); + + private static void copy_from(System.IntPtr obj, System.IntPtr pd, Efl.Object dup_from) + { + Eina.Log.Debug("function efl_gfx_path_copy_from was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).CopyFrom(dup_from); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_append_arc_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double start_angle, double sweep_length); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_arc"); - private static void append_arc(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length) - { - Eina.Log.Debug("function efl_gfx_path_append_arc was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).AppendArc( x, y, w, h, start_angle, sweep_length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_arc_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, start_angle, sweep_length); + + } + else + { + efl_gfx_path_copy_from_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dup_from); + } } - } - private static efl_gfx_path_append_arc_delegate efl_gfx_path_append_arc_static_delegate; + private static efl_gfx_path_copy_from_delegate efl_gfx_path_copy_from_static_delegate; - private delegate void efl_gfx_path_append_close_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_path_bounds_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r); + + public delegate void efl_gfx_path_bounds_get_api_delegate(System.IntPtr obj, out Eina.Rect.NativeStruct r); - public delegate void efl_gfx_path_append_close_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_close_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_close"); - private static void append_close(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_append_close was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).CloseAppend(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_path_append_close_delegate efl_gfx_path_append_close_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_path_bounds_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_bounds_get"); + private static void bounds_get(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r) + { + Eina.Log.Debug("function efl_gfx_path_bounds_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _out_r = default(Eina.Rect); + + try + { + ((IPathConcrete)wrapper).GetBounds(out _out_r); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_circle_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius); + r = _out_r; + + } + else + { + efl_gfx_path_bounds_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r); + } + } + private static efl_gfx_path_bounds_get_delegate efl_gfx_path_bounds_get_static_delegate; + + + private delegate void efl_gfx_path_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_path_reset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_reset"); + + private static void reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).Reset(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_path_append_circle_api_delegate(System.IntPtr obj, double x, double y, double radius); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_circle_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_circle"); - private static void append_circle(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius) - { - Eina.Log.Debug("function efl_gfx_path_append_circle was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).AppendCircle( x, y, radius); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_circle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, radius); + private static efl_gfx_path_reset_delegate efl_gfx_path_reset_static_delegate; + + + private delegate void efl_gfx_path_append_move_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_path_append_move_to_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_move_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_move_to"); + + private static void append_move_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_move_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).AppendMoveTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_move_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } } - } - private static efl_gfx_path_append_circle_delegate efl_gfx_path_append_circle_static_delegate; + private static efl_gfx_path_append_move_to_delegate efl_gfx_path_append_move_to_static_delegate; + + + private delegate void efl_gfx_path_append_line_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_path_append_line_to_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_line_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_line_to"); + + private static void append_line_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_line_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).AppendLineTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_line_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } - private delegate void efl_gfx_path_append_rect_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry); + private static efl_gfx_path_append_line_to_delegate efl_gfx_path_append_line_to_static_delegate; + + + private delegate void efl_gfx_path_append_quadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + + + public delegate void efl_gfx_path_append_quadratic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_quadratic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_quadratic_to"); + + private static void append_quadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) + { + Eina.Log.Debug("function efl_gfx_path_append_quadratic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).AppendQuadraticTo(x, y, ctrl_x, ctrl_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); + } + } - public delegate void efl_gfx_path_append_rect_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double rx, double ry); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_rect_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_rect"); - private static void append_rect(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry) - { - Eina.Log.Debug("function efl_gfx_path_append_rect was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).AppendRect( x, y, w, h, rx, ry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_rect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, rx, ry); + private static efl_gfx_path_append_quadratic_to_delegate efl_gfx_path_append_quadratic_to_static_delegate; + + + private delegate void efl_gfx_path_append_squadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_path_append_squadratic_to_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_squadratic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_squadratic_to"); + + private static void append_squadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_squadratic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).AppendSquadraticTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } } - } - private static efl_gfx_path_append_rect_delegate efl_gfx_path_append_rect_static_delegate; + private static efl_gfx_path_append_squadratic_to_delegate efl_gfx_path_append_squadratic_to_static_delegate; + + + private delegate void efl_gfx_path_append_cubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); + + + public delegate void efl_gfx_path_append_cubic_to_api_delegate(System.IntPtr obj, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_cubic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_cubic_to"); + + private static void append_cubic_to(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_cubic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).AppendCubicTo(ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_cubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + } + } - private delegate void efl_gfx_path_append_svg_path_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); + private static efl_gfx_path_append_cubic_to_delegate efl_gfx_path_append_cubic_to_static_delegate; + + + private delegate void efl_gfx_path_append_scubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + + + public delegate void efl_gfx_path_append_scubic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_scubic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_scubic_to"); + + private static void append_scubic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) + { + Eina.Log.Debug("function efl_gfx_path_append_scubic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).AppendScubicTo(x, y, ctrl_x, ctrl_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_path_append_scubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); + } + } - public delegate void efl_gfx_path_append_svg_path_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_svg_path_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_svg_path"); - private static void append_svg_path(System.IntPtr obj, System.IntPtr pd, System.String svg_path_data) - { - Eina.Log.Debug("function efl_gfx_path_append_svg_path was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).AppendSvgPath( svg_path_data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_svg_path_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), svg_path_data); + private static efl_gfx_path_append_scubic_to_delegate efl_gfx_path_append_scubic_to_static_delegate; + + + private delegate void efl_gfx_path_append_arc_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); + + + public delegate void efl_gfx_path_append_arc_to_api_delegate(System.IntPtr obj, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_arc_to"); + + private static void append_arc_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) + { + Eina.Log.Debug("function efl_gfx_path_append_arc_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).AppendArcTo(x, y, rx, ry, angle, large_arc, sweep); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_arc_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, rx, ry, angle, large_arc, sweep); + } } - } - private static efl_gfx_path_append_svg_path_delegate efl_gfx_path_append_svg_path_static_delegate; + private static efl_gfx_path_append_arc_to_delegate efl_gfx_path_append_arc_to_static_delegate; + + + private delegate void efl_gfx_path_append_arc_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length); + + + public delegate void efl_gfx_path_append_arc_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double start_angle, double sweep_length); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_arc"); + + private static void append_arc(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length) + { + Eina.Log.Debug("function efl_gfx_path_append_arc was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).AppendArc(x, y, w, h, start_angle, sweep_length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_arc_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, start_angle, sweep_length); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_path_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object to, double pos_map); + private static efl_gfx_path_append_arc_delegate efl_gfx_path_append_arc_static_delegate; + + + private delegate void efl_gfx_path_append_close_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_path_append_close_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_close_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_close"); + + private static void append_close(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_append_close was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).CloseAppend(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_gfx_path_append_close_delegate efl_gfx_path_append_close_static_delegate; + + + private delegate void efl_gfx_path_append_circle_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius); + + + public delegate void efl_gfx_path_append_circle_api_delegate(System.IntPtr obj, double x, double y, double radius); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_circle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_circle"); + + private static void append_circle(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius) + { + Eina.Log.Debug("function efl_gfx_path_append_circle was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).AppendCircle(x, y, radius); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_circle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, radius); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_path_interpolate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object to, double pos_map); - public static Efl.Eo.FunctionWrapper efl_gfx_path_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_interpolate"); - private static bool interpolate(System.IntPtr obj, System.IntPtr pd, Efl.Object from, Efl.Object to, double pos_map) - { - Eina.Log.Debug("function efl_gfx_path_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPathConcrete)wrapper).Interpolate( from, to, pos_map); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_path_append_circle_delegate efl_gfx_path_append_circle_static_delegate; + + + private delegate void efl_gfx_path_append_rect_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry); + + + public delegate void efl_gfx_path_append_rect_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double rx, double ry); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_rect_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_rect"); + + private static void append_rect(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry) + { + Eina.Log.Debug("function efl_gfx_path_append_rect was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).AppendRect(x, y, w, h, rx, ry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_rect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, rx, ry); } - return _ret_var; - } else { - return efl_gfx_path_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to, pos_map); } - } - private static efl_gfx_path_interpolate_delegate efl_gfx_path_interpolate_static_delegate; + private static efl_gfx_path_append_rect_delegate efl_gfx_path_append_rect_static_delegate; + + + private delegate void efl_gfx_path_append_svg_path_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); + + + public delegate void efl_gfx_path_append_svg_path_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_svg_path_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_svg_path"); + + private static void append_svg_path(System.IntPtr obj, System.IntPtr pd, System.String svg_path_data) + { + Eina.Log.Debug("function efl_gfx_path_append_svg_path was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).AppendSvgPath(svg_path_data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_svg_path_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), svg_path_data); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_path_equal_commands_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object with); + private static efl_gfx_path_append_svg_path_delegate efl_gfx_path_append_svg_path_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_path_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object to, double pos_map); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_path_interpolate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object to, double pos_map); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_interpolate"); + + private static bool interpolate(System.IntPtr obj, System.IntPtr pd, Efl.Object from, Efl.Object to, double pos_map) + { + Eina.Log.Debug("function efl_gfx_path_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPathConcrete)wrapper).Interpolate(from, to, pos_map); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_path_equal_commands_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object with); - public static Efl.Eo.FunctionWrapper efl_gfx_path_equal_commands_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_equal_commands"); - private static bool equal_commands(System.IntPtr obj, System.IntPtr pd, Efl.Object with) - { - Eina.Log.Debug("function efl_gfx_path_equal_commands was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPathConcrete)wrapper).EqualCommands( with); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_path_equal_commands_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), with); + else + { + return efl_gfx_path_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to, pos_map); + } } - } - private static efl_gfx_path_equal_commands_delegate efl_gfx_path_equal_commands_static_delegate; + private static efl_gfx_path_interpolate_delegate efl_gfx_path_interpolate_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_path_equal_commands_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object with); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_path_equal_commands_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object with); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_equal_commands_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_equal_commands"); + + private static bool equal_commands(System.IntPtr obj, System.IntPtr pd, Efl.Object with) + { + Eina.Log.Debug("function efl_gfx_path_equal_commands was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPathConcrete)wrapper).EqualCommands(with); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_reserve_delegate(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count); + return _ret_var; + } + else + { + return efl_gfx_path_equal_commands_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), with); + } + } - public delegate void efl_gfx_path_reserve_api_delegate(System.IntPtr obj, uint cmd_count, uint pts_count); - public static Efl.Eo.FunctionWrapper efl_gfx_path_reserve_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_reserve"); - private static void reserve(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count) - { - Eina.Log.Debug("function efl_gfx_path_reserve was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).Reserve( cmd_count, pts_count); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_reserve_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cmd_count, pts_count); + private static efl_gfx_path_equal_commands_delegate efl_gfx_path_equal_commands_static_delegate; + + + private delegate void efl_gfx_path_reserve_delegate(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count); + + + public delegate void efl_gfx_path_reserve_api_delegate(System.IntPtr obj, uint cmd_count, uint pts_count); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_reserve_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_reserve"); + + private static void reserve(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count) + { + Eina.Log.Debug("function efl_gfx_path_reserve was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).Reserve(cmd_count, pts_count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_reserve_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cmd_count, pts_count); + } } - } - private static efl_gfx_path_reserve_delegate efl_gfx_path_reserve_static_delegate; + private static efl_gfx_path_reserve_delegate efl_gfx_path_reserve_static_delegate; + + + private delegate void efl_gfx_path_commit_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_path_commit_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_commit_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_commit"); + + private static void commit(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_commit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPathConcrete)wrapper).Commit(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_commit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_path_commit_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_path_commit_delegate efl_gfx_path_commit_static_delegate; + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_gfx_path_commit_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_commit_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_commit"); - private static void commit(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_commit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPathConcrete)wrapper).Commit(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_commit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_path_commit_delegate efl_gfx_path_commit_static_delegate; } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_shape.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_shape.eo.cs index 877f2b9..5dc3fb7 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_shape.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_shape.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// EFL graphics shape object interface -[IShapeNativeInherit] +[Efl.Gfx.IShapeConcrete.NativeMethods] public interface IShape : Efl.Gfx.IPath , Efl.Eo.IWrapper, IDisposable @@ -16,48 +20,41 @@ public interface IShape : double GetStrokeScale(); /// The stroke scale to be used for stroking the path. Will be used along with stroke width property. /// Stroke scale value -/// -void SetStrokeScale( double s); +void SetStrokeScale(double s); /// The color to be used for stroking the path. /// The red component of the given color. /// The green component of the given color. /// The blue component of the given color. /// The alpha component of the given color. -/// -void GetStrokeColor( out int r, out int g, out int b, out int a); +void GetStrokeColor(out int r, out int g, out int b, out int a); /// The color to be used for stroking the path. /// The red component of the given color. /// The green component of the given color. /// The blue component of the given color. /// The alpha component of the given color. -/// -void SetStrokeColor( int r, int g, int b, int a); +void SetStrokeColor(int r, int g, int b, int a); /// The stroke width to be used for stroking the path. /// Stroke width to be used double GetStrokeWidth(); /// The stroke width to be used for stroking the path. /// Stroke width to be used -/// -void SetStrokeWidth( double w); +void SetStrokeWidth(double w); /// Not implemented /// Centered stroke location double GetStrokeLocation(); /// Not implemented /// Centered stroke location -/// -void SetStrokeLocation( double centered); +void SetStrokeLocation(double centered); /// Set stroke dash pattern. A dash pattern is specified by dashes, an array of . values(length, gap) must be positive. /// See also /// Stroke dash /// Stroke dash length -/// -void GetStrokeDash( out Efl.Gfx.Dash dash, out uint length); +void GetStrokeDash(out Efl.Gfx.Dash dash, out uint length); /// Set stroke dash pattern. A dash pattern is specified by dashes, an array of . values(length, gap) must be positive. /// See also /// Stroke dash /// Stroke dash length -/// -void SetStrokeDash( ref Efl.Gfx.Dash dash, uint length); +void SetStrokeDash(ref Efl.Gfx.Dash dash, uint length); /// The cap style to be used for stroking the path. The cap will be used for capping the end point of a open subpath. /// See also . /// Cap style to use, default is @@ -65,8 +62,7 @@ Efl.Gfx.Cap GetStrokeCap(); /// The cap style to be used for stroking the path. The cap will be used for capping the end point of a open subpath. /// See also . /// Cap style to use, default is -/// -void SetStrokeCap( Efl.Gfx.Cap c); +void SetStrokeCap(Efl.Gfx.Cap c); /// The join style to be used for stroking the path. The join style will be used for joining the two line segment while stroking the path. /// See also . /// Join style to use, default is @@ -74,15 +70,13 @@ Efl.Gfx.Join GetStrokeJoin(); /// The join style to be used for stroking the path. The join style will be used for joining the two line segment while stroking the path. /// See also . /// Join style to use, default is -/// -void SetStrokeJoin( Efl.Gfx.Join j); +void SetStrokeJoin(Efl.Gfx.Join j); /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or Efl.Gfx.FillRule GetFillRule(); /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or -/// -void SetFillRule( Efl.Gfx.FillRule fill_rule); +void SetFillRule(Efl.Gfx.FillRule fill_rule); /// The stroke scale to be used for stroking the path. Will be used along with stroke width property. /// Stroke scale value double StrokeScale { @@ -129,80 +123,114 @@ IShape , Efl.Gfx.IPath { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IShapeConcrete)) - return Efl.Gfx.IShapeNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IShapeConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_shape_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IShapeConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IShapeConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// The stroke scale to be used for stroking the path. Will be used along with stroke width property. /// Stroke scale value public double GetStrokeScale() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_scale_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_scale_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The stroke scale to be used for stroking the path. Will be used along with stroke width property. /// Stroke scale value - /// - public void SetStrokeScale( double s) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_scale_set_ptr.Value.Delegate(this.NativeHandle, s); + public void SetStrokeScale(double s) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_scale_set_ptr.Value.Delegate(this.NativeHandle,s); Eina.Error.RaiseIfUnhandledException(); } /// The color to be used for stroking the path. @@ -210,9 +238,8 @@ IShape /// The green component of the given color. /// The blue component of the given color. /// The alpha component of the given color. - /// - public void GetStrokeColor( out int r, out int g, out int b, out int a) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetStrokeColor(out int r, out int g, out int b, out int a) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// The color to be used for stroking the path. @@ -220,47 +247,43 @@ IShape /// The green component of the given color. /// The blue component of the given color. /// The alpha component of the given color. - /// - public void SetStrokeColor( int r, int g, int b, int a) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetStrokeColor(int r, int g, int b, int a) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// The stroke width to be used for stroking the path. /// Stroke width to be used public double GetStrokeWidth() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_width_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_width_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The stroke width to be used for stroking the path. /// Stroke width to be used - /// - public void SetStrokeWidth( double w) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_width_set_ptr.Value.Delegate(this.NativeHandle, w); + public void SetStrokeWidth(double w) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_width_set_ptr.Value.Delegate(this.NativeHandle,w); Eina.Error.RaiseIfUnhandledException(); } /// Not implemented /// Centered stroke location public double GetStrokeLocation() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_location_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_location_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Not implemented /// Centered stroke location - /// - public void SetStrokeLocation( double centered) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_location_set_ptr.Value.Delegate(this.NativeHandle, centered); + public void SetStrokeLocation(double centered) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_location_set_ptr.Value.Delegate(this.NativeHandle,centered); Eina.Error.RaiseIfUnhandledException(); } /// Set stroke dash pattern. A dash pattern is specified by dashes, an array of . values(length, gap) must be positive. /// See also /// Stroke dash /// Stroke dash length - /// - public void GetStrokeDash( out Efl.Gfx.Dash dash, out uint length) { + public void GetStrokeDash(out Efl.Gfx.Dash dash, out uint length) { var _out_dash = new System.IntPtr(); - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_dash_get_ptr.Value.Delegate(this.NativeHandle, out _out_dash, out length); + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_dash_get_ptr.Value.Delegate(this.NativeHandle,out _out_dash, out length); Eina.Error.RaiseIfUnhandledException(); dash = Eina.PrimitiveConversion.PointerToManaged(_out_dash); } @@ -268,10 +291,9 @@ IShape /// See also /// Stroke dash /// Stroke dash length - /// - public void SetStrokeDash( ref Efl.Gfx.Dash dash, uint length) { + public void SetStrokeDash(ref Efl.Gfx.Dash dash, uint length) { Efl.Gfx.Dash.NativeStruct _in_dash = dash; - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_dash_set_ptr.Value.Delegate(this.NativeHandle, ref _in_dash, length); + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_dash_set_ptr.Value.Delegate(this.NativeHandle,ref _in_dash, length); Eina.Error.RaiseIfUnhandledException(); dash = _in_dash; } @@ -279,56 +301,52 @@ IShape /// See also . /// Cap style to use, default is public Efl.Gfx.Cap GetStrokeCap() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_cap_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_cap_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The cap style to be used for stroking the path. The cap will be used for capping the end point of a open subpath. /// See also . /// Cap style to use, default is - /// - public void SetStrokeCap( Efl.Gfx.Cap c) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_cap_set_ptr.Value.Delegate(this.NativeHandle, c); + public void SetStrokeCap(Efl.Gfx.Cap c) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_cap_set_ptr.Value.Delegate(this.NativeHandle,c); Eina.Error.RaiseIfUnhandledException(); } /// The join style to be used for stroking the path. The join style will be used for joining the two line segment while stroking the path. /// See also . /// Join style to use, default is public Efl.Gfx.Join GetStrokeJoin() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_join_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_join_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The join style to be used for stroking the path. The join style will be used for joining the two line segment while stroking the path. /// See also . /// Join style to use, default is - /// - public void SetStrokeJoin( Efl.Gfx.Join j) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_stroke_join_set_ptr.Value.Delegate(this.NativeHandle, j); + public void SetStrokeJoin(Efl.Gfx.Join j) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_join_set_ptr.Value.Delegate(this.NativeHandle,j); Eina.Error.RaiseIfUnhandledException(); } /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or public Efl.Gfx.FillRule GetFillRule() { - var _ret_var = Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_fill_rule_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_fill_rule_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or - /// - public void SetFillRule( Efl.Gfx.FillRule fill_rule) { - Efl.Gfx.IShapeNativeInherit.efl_gfx_shape_fill_rule_set_ptr.Value.Delegate(this.NativeHandle, fill_rule); + public void SetFillRule(Efl.Gfx.FillRule fill_rule) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_fill_rule_set_ptr.Value.Delegate(this.NativeHandle,fill_rule); Eina.Error.RaiseIfUnhandledException(); } /// Set the list of commands and points to be used to create the content of path. /// Command list /// Point list - /// - public void GetPath( out Efl.Gfx.PathCommandType op, out double points) { + public void GetPath(out Efl.Gfx.PathCommandType op, out double points) { System.IntPtr _out_op = System.IntPtr.Zero; System.IntPtr _out_points = System.IntPtr.Zero; - Efl.Gfx.IPathNativeInherit.efl_gfx_path_get_ptr.Value.Delegate(this.NativeHandle, out _out_op, out _out_points); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_get_ptr.Value.Delegate(this.NativeHandle,out _out_op, out _out_points); Eina.Error.RaiseIfUnhandledException(); op = Eina.PrimitiveConversion.PointerToManaged(_out_op); points = Eina.PrimitiveConversion.PointerToManaged(_out_points); @@ -336,66 +354,58 @@ IShape /// Set the list of commands and points to be used to create the content of path. /// Command list /// Point list - /// - public void SetPath( Efl.Gfx.PathCommandType op, double points) { + public void SetPath(Efl.Gfx.PathCommandType op, double points) { var _in_op = Eina.PrimitiveConversion.ManagedToPointerAlloc(op); var _in_points = Eina.PrimitiveConversion.ManagedToPointerAlloc(points); - Efl.Gfx.IPathNativeInherit.efl_gfx_path_set_ptr.Value.Delegate(this.NativeHandle, _in_op, _in_points); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_set_ptr.Value.Delegate(this.NativeHandle,_in_op, _in_points); Eina.Error.RaiseIfUnhandledException(); } /// Path length property /// Commands /// Points - /// - public void GetLength( out uint commands, out uint points) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_length_get_ptr.Value.Delegate(this.NativeHandle, out commands, out points); + public void GetLength(out uint commands, out uint points) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_length_get_ptr.Value.Delegate(this.NativeHandle,out commands, out points); Eina.Error.RaiseIfUnhandledException(); } /// Current point coordinates /// X co-ordinate of the current point. /// Y co-ordinate of the current point. - /// - public void GetCurrent( out double x, out double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_current_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetCurrent(out double x, out double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_current_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Current control point coordinates /// X co-ordinate of control point. /// Y co-ordinate of control point. - /// - public void GetCurrentCtrl( out double x, out double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetCurrentCtrl(out double x, out double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Copy the path data from the object specified. /// Shape object from where data will be copied. - /// - public void CopyFrom( Efl.Object dup_from) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_copy_from_ptr.Value.Delegate(this.NativeHandle, dup_from); + public void CopyFrom(Efl.Object dup_from) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_copy_from_ptr.Value.Delegate(this.NativeHandle,dup_from); Eina.Error.RaiseIfUnhandledException(); } /// Compute and return the bounding box of the currently set path /// Contain the bounding box of the currently set path - /// - public void GetBounds( out Eina.Rect r) { + public void GetBounds(out Eina.Rect r) { var _out_r = new Eina.Rect.NativeStruct(); - Efl.Gfx.IPathNativeInherit.efl_gfx_path_bounds_get_ptr.Value.Delegate(this.NativeHandle, out _out_r); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_bounds_get_ptr.Value.Delegate(this.NativeHandle,out _out_r); Eina.Error.RaiseIfUnhandledException(); r = _out_r; } /// Reset the path data of the path object. - /// public void Reset() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_reset_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_reset_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Moves the current point to the given point, implicitly starting a new subpath and closing the previous one. /// See also . /// X co-ordinate of the current point. /// Y co-ordinate of the current point. - /// - public void AppendMoveTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_move_to_ptr.Value.Delegate(this.NativeHandle, x, y); + public void AppendMoveTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_move_to_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a straight line from the current position to the given end point. After the line is drawn, the current position is updated to be at the end point of the line. @@ -404,9 +414,8 @@ IShape /// See also . /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - public void AppendLineTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_line_to_ptr.Value.Delegate(this.NativeHandle, x, y); + public void AppendLineTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_line_to_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a quadratic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x, ctrl_y). After the path is drawn, the current position is updated to be at the end point of the path. @@ -414,18 +423,16 @@ IShape /// Y co-ordinate of end point of the line. /// X co-ordinate of control point. /// Y co-ordinate of control point. - /// - public void AppendQuadraticTo( double x, double y, double ctrl_x, double ctrl_y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(this.NativeHandle, x, y, ctrl_x, ctrl_y); + public void AppendQuadraticTo(double x, double y, double ctrl_x, double ctrl_y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(this.NativeHandle,x, y, ctrl_x, ctrl_y); Eina.Error.RaiseIfUnhandledException(); } /// Same as efl_gfx_path_append_quadratic_to() api only difference is that it uses the current control point to draw the bezier. /// See also . /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - public void AppendSquadraticTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(this.NativeHandle, x, y); + public void AppendSquadraticTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a cubic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x0, ctrl_y0), and (ctrl_x1, ctrl_y1). After the path is drawn, the current position is updated to be at the end point of the path. @@ -435,9 +442,8 @@ IShape /// Y co-ordinate of 2nd control point. /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - public void AppendCubicTo( double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_cubic_to_ptr.Value.Delegate(this.NativeHandle, ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + public void AppendCubicTo(double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_cubic_to_ptr.Value.Delegate(this.NativeHandle,ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); Eina.Error.RaiseIfUnhandledException(); } /// Same as efl_gfx_path_append_cubic_to() api only difference is that it uses the current control point to draw the bezier. @@ -446,9 +452,8 @@ IShape /// Y co-ordinate of end point of the line. /// X co-ordinate of 2nd control point. /// Y co-ordinate of 2nd control point. - /// - public void AppendScubicTo( double x, double y, double ctrl_x, double ctrl_y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_scubic_to_ptr.Value.Delegate(this.NativeHandle, x, y, ctrl_x, ctrl_y); + public void AppendScubicTo(double x, double y, double ctrl_x, double ctrl_y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_scubic_to_ptr.Value.Delegate(this.NativeHandle,x, y, ctrl_x, ctrl_y); Eina.Error.RaiseIfUnhandledException(); } /// Append an arc that connects from the current point int the point list to the given point (x,y). The arc is defined by the given radius in x-direction (rx) and radius in y direction (ry). @@ -460,9 +465,8 @@ IShape /// X-axis rotation , normally 0. /// Defines whether to draw the larger arc or smaller arc joining two point. /// Defines whether the arc will be drawn counter-clockwise or clockwise from current point to the end point taking into account the large_arc property. - /// - public void AppendArcTo( double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_arc_to_ptr.Value.Delegate(this.NativeHandle, x, y, rx, ry, angle, large_arc, sweep); + public void AppendArcTo(double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_arc_to_ptr.Value.Delegate(this.NativeHandle,x, y, rx, ry, angle, large_arc, sweep); Eina.Error.RaiseIfUnhandledException(); } /// Append an arc that enclosed in the given rectangle (x, y, w, h). The angle is defined in counter clock wise , use -ve angle for clockwise arc. @@ -472,25 +476,22 @@ IShape /// Height of the rect. /// Angle at which the arc will start /// @ Length of the arc. - /// - public void AppendArc( double x, double y, double w, double h, double start_angle, double sweep_length) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_arc_ptr.Value.Delegate(this.NativeHandle, x, y, w, h, start_angle, sweep_length); + public void AppendArc(double x, double y, double w, double h, double start_angle, double sweep_length) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_arc_ptr.Value.Delegate(this.NativeHandle,x, y, w, h, start_angle, sweep_length); Eina.Error.RaiseIfUnhandledException(); } /// Closes the current subpath by drawing a line to the beginning of the subpath, automatically starting a new path. The current point of the new path is (0, 0). /// If the subpath does not contain any points, this function does nothing. - /// public void CloseAppend() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_close_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_close_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Append a circle with given center and radius. /// X co-ordinate of the center of the circle. /// Y co-ordinate of the center of the circle. /// Radius of the circle. - /// - public void AppendCircle( double x, double y, double radius) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_circle_ptr.Value.Delegate(this.NativeHandle, x, y, radius); + public void AppendCircle(double x, double y, double radius) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_circle_ptr.Value.Delegate(this.NativeHandle,x, y, radius); Eina.Error.RaiseIfUnhandledException(); } /// Append the given rectangle with rounded corner to the path. @@ -505,16 +506,14 @@ IShape /// Height of the rectangle. /// The x radius of the rounded corner and should be in range [ 0 to w/2 ] /// The y radius of the rounded corner and should be in range [ 0 to h/2 ] - /// - public void AppendRect( double x, double y, double w, double h, double rx, double ry) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_rect_ptr.Value.Delegate(this.NativeHandle, x, y, w, h, rx, ry); + public void AppendRect(double x, double y, double w, double h, double rx, double ry) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_rect_ptr.Value.Delegate(this.NativeHandle,x, y, w, h, rx, ry); Eina.Error.RaiseIfUnhandledException(); } /// Append SVG path data /// SVG path data to append - /// - public void AppendSvgPath( System.String svg_path_data) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_svg_path_ptr.Value.Delegate(this.NativeHandle, svg_path_data); + public void AppendSvgPath(System.String svg_path_data) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_svg_path_ptr.Value.Delegate(this.NativeHandle,svg_path_data); Eina.Error.RaiseIfUnhandledException(); } /// Creates intermediary path part-way between two paths @@ -525,1232 +524,1922 @@ IShape /// Destination path /// Position map in range 0.0 to 1.0 /// true on success, false otherwise - public bool Interpolate( Efl.Object from, Efl.Object to, double pos_map) { - var _ret_var = Efl.Gfx.IPathNativeInherit.efl_gfx_path_interpolate_ptr.Value.Delegate(this.NativeHandle, from, to, pos_map); + public bool Interpolate(Efl.Object from, Efl.Object to, double pos_map) { + var _ret_var = Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_interpolate_ptr.Value.Delegate(this.NativeHandle,from, to, pos_map); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Equal commands in object /// Object /// True on success, false otherwise - public bool EqualCommands( Efl.Object with) { - var _ret_var = Efl.Gfx.IPathNativeInherit.efl_gfx_path_equal_commands_ptr.Value.Delegate(this.NativeHandle, with); + public bool EqualCommands(Efl.Object with) { + var _ret_var = Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_equal_commands_ptr.Value.Delegate(this.NativeHandle,with); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reserve path commands buffer in advance. If you know the count of path commands coming, you can reserve commands buffer in advance to avoid buffer growing job. /// Commands count to reserve /// Pointers count to reserve - /// - public void Reserve( uint cmd_count, uint pts_count) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_reserve_ptr.Value.Delegate(this.NativeHandle, cmd_count, pts_count); + public void Reserve(uint cmd_count, uint pts_count) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_reserve_ptr.Value.Delegate(this.NativeHandle,cmd_count, pts_count); Eina.Error.RaiseIfUnhandledException(); } /// Request to update the path object. /// One path object may get appending several path calls (such as append_cubic, append_rect, etc) to construct the final path data. Here commit means all path data is prepared and now object could update its own internal status based on the last path information. - /// public void Commit() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_commit_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_commit_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// The stroke scale to be used for stroking the path. Will be used along with stroke width property. /// Stroke scale value public double StrokeScale { get { return GetStrokeScale(); } - set { SetStrokeScale( value); } + set { SetStrokeScale(value); } } /// The stroke width to be used for stroking the path. /// Stroke width to be used public double StrokeWidth { get { return GetStrokeWidth(); } - set { SetStrokeWidth( value); } + set { SetStrokeWidth(value); } } /// Not implemented /// Centered stroke location public double StrokeLocation { get { return GetStrokeLocation(); } - set { SetStrokeLocation( value); } + set { SetStrokeLocation(value); } } /// The cap style to be used for stroking the path. The cap will be used for capping the end point of a open subpath. /// See also . /// Cap style to use, default is public Efl.Gfx.Cap StrokeCap { get { return GetStrokeCap(); } - set { SetStrokeCap( value); } + set { SetStrokeCap(value); } } /// The join style to be used for stroking the path. The join style will be used for joining the two line segment while stroking the path. /// See also . /// Join style to use, default is public Efl.Gfx.Join StrokeJoin { get { return GetStrokeJoin(); } - set { SetStrokeJoin( value); } + set { SetStrokeJoin(value); } } /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or public Efl.Gfx.FillRule FillRule { get { return GetFillRule(); } - set { SetFillRule( value); } + set { SetFillRule(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IShapeConcrete.efl_gfx_shape_mixin_get(); } -} -public class IShapeNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_shape_stroke_scale_get_static_delegate == null) - efl_gfx_shape_stroke_scale_get_static_delegate = new efl_gfx_shape_stroke_scale_get_delegate(stroke_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_scale_get_static_delegate)}); - if (efl_gfx_shape_stroke_scale_set_static_delegate == null) - efl_gfx_shape_stroke_scale_set_static_delegate = new efl_gfx_shape_stroke_scale_set_delegate(stroke_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_scale_set_static_delegate)}); - if (efl_gfx_shape_stroke_color_get_static_delegate == null) - efl_gfx_shape_stroke_color_get_static_delegate = new efl_gfx_shape_stroke_color_get_delegate(stroke_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_color_get_static_delegate)}); - if (efl_gfx_shape_stroke_color_set_static_delegate == null) - efl_gfx_shape_stroke_color_set_static_delegate = new efl_gfx_shape_stroke_color_set_delegate(stroke_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_color_set_static_delegate)}); - if (efl_gfx_shape_stroke_width_get_static_delegate == null) - efl_gfx_shape_stroke_width_get_static_delegate = new efl_gfx_shape_stroke_width_get_delegate(stroke_width_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_width_get_static_delegate)}); - if (efl_gfx_shape_stroke_width_set_static_delegate == null) - efl_gfx_shape_stroke_width_set_static_delegate = new efl_gfx_shape_stroke_width_set_delegate(stroke_width_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_width_set_static_delegate)}); - if (efl_gfx_shape_stroke_location_get_static_delegate == null) - efl_gfx_shape_stroke_location_get_static_delegate = new efl_gfx_shape_stroke_location_get_delegate(stroke_location_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeLocation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_location_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_location_get_static_delegate)}); - if (efl_gfx_shape_stroke_location_set_static_delegate == null) - efl_gfx_shape_stroke_location_set_static_delegate = new efl_gfx_shape_stroke_location_set_delegate(stroke_location_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeLocation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_location_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_location_set_static_delegate)}); - if (efl_gfx_shape_stroke_dash_get_static_delegate == null) - efl_gfx_shape_stroke_dash_get_static_delegate = new efl_gfx_shape_stroke_dash_get_delegate(stroke_dash_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeDash") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_dash_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_dash_get_static_delegate)}); - if (efl_gfx_shape_stroke_dash_set_static_delegate == null) - efl_gfx_shape_stroke_dash_set_static_delegate = new efl_gfx_shape_stroke_dash_set_delegate(stroke_dash_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeDash") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_dash_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_dash_set_static_delegate)}); - if (efl_gfx_shape_stroke_cap_get_static_delegate == null) - efl_gfx_shape_stroke_cap_get_static_delegate = new efl_gfx_shape_stroke_cap_get_delegate(stroke_cap_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeCap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_cap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_cap_get_static_delegate)}); - if (efl_gfx_shape_stroke_cap_set_static_delegate == null) - efl_gfx_shape_stroke_cap_set_static_delegate = new efl_gfx_shape_stroke_cap_set_delegate(stroke_cap_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeCap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_cap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_cap_set_static_delegate)}); - if (efl_gfx_shape_stroke_join_get_static_delegate == null) - efl_gfx_shape_stroke_join_get_static_delegate = new efl_gfx_shape_stroke_join_get_delegate(stroke_join_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrokeJoin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_join_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_join_get_static_delegate)}); - if (efl_gfx_shape_stroke_join_set_static_delegate == null) - efl_gfx_shape_stroke_join_set_static_delegate = new efl_gfx_shape_stroke_join_set_delegate(stroke_join_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrokeJoin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_stroke_join_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_join_set_static_delegate)}); - if (efl_gfx_shape_fill_rule_get_static_delegate == null) - efl_gfx_shape_fill_rule_get_static_delegate = new efl_gfx_shape_fill_rule_get_delegate(fill_rule_get); - if (methods.FirstOrDefault(m => m.Name == "GetFillRule") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_fill_rule_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_fill_rule_get_static_delegate)}); - if (efl_gfx_shape_fill_rule_set_static_delegate == null) - efl_gfx_shape_fill_rule_set_static_delegate = new efl_gfx_shape_fill_rule_set_delegate(fill_rule_set); - if (methods.FirstOrDefault(m => m.Name == "SetFillRule") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_shape_fill_rule_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_fill_rule_set_static_delegate)}); - if (efl_gfx_path_get_static_delegate == null) - efl_gfx_path_get_static_delegate = new efl_gfx_path_get_delegate(path_get); - if (methods.FirstOrDefault(m => m.Name == "GetPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_get_static_delegate)}); - if (efl_gfx_path_set_static_delegate == null) - efl_gfx_path_set_static_delegate = new efl_gfx_path_set_delegate(path_set); - if (methods.FirstOrDefault(m => m.Name == "SetPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_set_static_delegate)}); - if (efl_gfx_path_length_get_static_delegate == null) - efl_gfx_path_length_get_static_delegate = new efl_gfx_path_length_get_delegate(length_get); - if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_length_get_static_delegate)}); - if (efl_gfx_path_current_get_static_delegate == null) - efl_gfx_path_current_get_static_delegate = new efl_gfx_path_current_get_delegate(current_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_current_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_get_static_delegate)}); - if (efl_gfx_path_current_ctrl_get_static_delegate == null) - efl_gfx_path_current_ctrl_get_static_delegate = new efl_gfx_path_current_ctrl_get_delegate(current_ctrl_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrentCtrl") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_current_ctrl_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_ctrl_get_static_delegate)}); - if (efl_gfx_path_copy_from_static_delegate == null) - efl_gfx_path_copy_from_static_delegate = new efl_gfx_path_copy_from_delegate(copy_from); - if (methods.FirstOrDefault(m => m.Name == "CopyFrom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_copy_from"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_copy_from_static_delegate)}); - if (efl_gfx_path_bounds_get_static_delegate == null) - efl_gfx_path_bounds_get_static_delegate = new efl_gfx_path_bounds_get_delegate(bounds_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounds") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_bounds_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_bounds_get_static_delegate)}); - if (efl_gfx_path_reset_static_delegate == null) - efl_gfx_path_reset_static_delegate = new efl_gfx_path_reset_delegate(reset); - if (methods.FirstOrDefault(m => m.Name == "Reset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reset_static_delegate)}); - if (efl_gfx_path_append_move_to_static_delegate == null) - efl_gfx_path_append_move_to_static_delegate = new efl_gfx_path_append_move_to_delegate(append_move_to); - if (methods.FirstOrDefault(m => m.Name == "AppendMoveTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_move_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_move_to_static_delegate)}); - if (efl_gfx_path_append_line_to_static_delegate == null) - efl_gfx_path_append_line_to_static_delegate = new efl_gfx_path_append_line_to_delegate(append_line_to); - if (methods.FirstOrDefault(m => m.Name == "AppendLineTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_line_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_line_to_static_delegate)}); - if (efl_gfx_path_append_quadratic_to_static_delegate == null) - efl_gfx_path_append_quadratic_to_static_delegate = new efl_gfx_path_append_quadratic_to_delegate(append_quadratic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendQuadraticTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_quadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_quadratic_to_static_delegate)}); - if (efl_gfx_path_append_squadratic_to_static_delegate == null) - efl_gfx_path_append_squadratic_to_static_delegate = new efl_gfx_path_append_squadratic_to_delegate(append_squadratic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendSquadraticTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_squadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_squadratic_to_static_delegate)}); - if (efl_gfx_path_append_cubic_to_static_delegate == null) - efl_gfx_path_append_cubic_to_static_delegate = new efl_gfx_path_append_cubic_to_delegate(append_cubic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendCubicTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_cubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_cubic_to_static_delegate)}); - if (efl_gfx_path_append_scubic_to_static_delegate == null) - efl_gfx_path_append_scubic_to_static_delegate = new efl_gfx_path_append_scubic_to_delegate(append_scubic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendScubicTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_scubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_scubic_to_static_delegate)}); - if (efl_gfx_path_append_arc_to_static_delegate == null) - efl_gfx_path_append_arc_to_static_delegate = new efl_gfx_path_append_arc_to_delegate(append_arc_to); - if (methods.FirstOrDefault(m => m.Name == "AppendArcTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_arc_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_to_static_delegate)}); - if (efl_gfx_path_append_arc_static_delegate == null) - efl_gfx_path_append_arc_static_delegate = new efl_gfx_path_append_arc_delegate(append_arc); - if (methods.FirstOrDefault(m => m.Name == "AppendArc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_arc"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_static_delegate)}); - if (efl_gfx_path_append_close_static_delegate == null) - efl_gfx_path_append_close_static_delegate = new efl_gfx_path_append_close_delegate(append_close); - if (methods.FirstOrDefault(m => m.Name == "CloseAppend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_close"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_close_static_delegate)}); - if (efl_gfx_path_append_circle_static_delegate == null) - efl_gfx_path_append_circle_static_delegate = new efl_gfx_path_append_circle_delegate(append_circle); - if (methods.FirstOrDefault(m => m.Name == "AppendCircle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_circle"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_circle_static_delegate)}); - if (efl_gfx_path_append_rect_static_delegate == null) - efl_gfx_path_append_rect_static_delegate = new efl_gfx_path_append_rect_delegate(append_rect); - if (methods.FirstOrDefault(m => m.Name == "AppendRect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_rect"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_rect_static_delegate)}); - if (efl_gfx_path_append_svg_path_static_delegate == null) - efl_gfx_path_append_svg_path_static_delegate = new efl_gfx_path_append_svg_path_delegate(append_svg_path); - if (methods.FirstOrDefault(m => m.Name == "AppendSvgPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_svg_path"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_svg_path_static_delegate)}); - if (efl_gfx_path_interpolate_static_delegate == null) - efl_gfx_path_interpolate_static_delegate = new efl_gfx_path_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_interpolate_static_delegate)}); - if (efl_gfx_path_equal_commands_static_delegate == null) - efl_gfx_path_equal_commands_static_delegate = new efl_gfx_path_equal_commands_delegate(equal_commands); - if (methods.FirstOrDefault(m => m.Name == "EqualCommands") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_equal_commands"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_equal_commands_static_delegate)}); - if (efl_gfx_path_reserve_static_delegate == null) - efl_gfx_path_reserve_static_delegate = new efl_gfx_path_reserve_delegate(reserve); - if (methods.FirstOrDefault(m => m.Name == "Reserve") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_reserve"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reserve_static_delegate)}); - if (efl_gfx_path_commit_static_delegate == null) - efl_gfx_path_commit_static_delegate = new efl_gfx_path_commit_delegate(commit); - if (methods.FirstOrDefault(m => m.Name == "Commit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_commit"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_commit_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IShapeConcrete.efl_gfx_shape_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IShapeConcrete.efl_gfx_shape_mixin_get(); - } + 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_gfx_shape_stroke_scale_get_static_delegate == null) + { + efl_gfx_shape_stroke_scale_get_static_delegate = new efl_gfx_shape_stroke_scale_get_delegate(stroke_scale_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrokeScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_scale_get_static_delegate) }); + } - private delegate double efl_gfx_shape_stroke_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_shape_stroke_scale_set_static_delegate == null) + { + efl_gfx_shape_stroke_scale_set_static_delegate = new efl_gfx_shape_stroke_scale_set_delegate(stroke_scale_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_scale_set_static_delegate) }); + } - public delegate double efl_gfx_shape_stroke_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_scale_get"); - private static double stroke_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IShapeConcrete)wrapper).GetStrokeScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_shape_stroke_color_get_static_delegate == null) + { + efl_gfx_shape_stroke_color_get_static_delegate = new efl_gfx_shape_stroke_color_get_delegate(stroke_color_get); } - return _ret_var; - } else { - return efl_gfx_shape_stroke_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_shape_stroke_scale_get_delegate efl_gfx_shape_stroke_scale_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetStrokeColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_color_get_static_delegate) }); + } - private delegate void efl_gfx_shape_stroke_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double s); + if (efl_gfx_shape_stroke_color_set_static_delegate == null) + { + efl_gfx_shape_stroke_color_set_static_delegate = new efl_gfx_shape_stroke_color_set_delegate(stroke_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_color_set_static_delegate) }); + } - public delegate void efl_gfx_shape_stroke_scale_set_api_delegate(System.IntPtr obj, double s); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_scale_set"); - private static void stroke_scale_set(System.IntPtr obj, System.IntPtr pd, double s) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).SetStrokeScale( s); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); - } - } - private static efl_gfx_shape_stroke_scale_set_delegate efl_gfx_shape_stroke_scale_set_static_delegate; + if (efl_gfx_shape_stroke_width_get_static_delegate == null) + { + efl_gfx_shape_stroke_width_get_static_delegate = new efl_gfx_shape_stroke_width_get_delegate(stroke_width_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrokeWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_width_get_static_delegate) }); + } - private delegate void efl_gfx_shape_stroke_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + if (efl_gfx_shape_stroke_width_set_static_delegate == null) + { + efl_gfx_shape_stroke_width_set_static_delegate = new efl_gfx_shape_stroke_width_set_delegate(stroke_width_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_width_set_static_delegate) }); + } - public delegate void efl_gfx_shape_stroke_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_color_get"); - private static void stroke_color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); - try { - ((IShapeConcrete)wrapper).GetStrokeColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_gfx_shape_stroke_color_get_delegate efl_gfx_shape_stroke_color_get_static_delegate; + if (efl_gfx_shape_stroke_location_get_static_delegate == null) + { + efl_gfx_shape_stroke_location_get_static_delegate = new efl_gfx_shape_stroke_location_get_delegate(stroke_location_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrokeLocation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_location_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_location_get_static_delegate) }); + } - private delegate void efl_gfx_shape_stroke_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + if (efl_gfx_shape_stroke_location_set_static_delegate == null) + { + efl_gfx_shape_stroke_location_set_static_delegate = new efl_gfx_shape_stroke_location_set_delegate(stroke_location_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeLocation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_location_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_location_set_static_delegate) }); + } - public delegate void efl_gfx_shape_stroke_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_color_set"); - private static void stroke_color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).SetStrokeColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_gfx_shape_stroke_color_set_delegate efl_gfx_shape_stroke_color_set_static_delegate; + if (efl_gfx_shape_stroke_dash_get_static_delegate == null) + { + efl_gfx_shape_stroke_dash_get_static_delegate = new efl_gfx_shape_stroke_dash_get_delegate(stroke_dash_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrokeDash") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_dash_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_dash_get_static_delegate) }); + } - private delegate double efl_gfx_shape_stroke_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_shape_stroke_dash_set_static_delegate == null) + { + efl_gfx_shape_stroke_dash_set_static_delegate = new efl_gfx_shape_stroke_dash_set_delegate(stroke_dash_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeDash") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_dash_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_dash_set_static_delegate) }); + } - public delegate double efl_gfx_shape_stroke_width_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_width_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_width_get"); - private static double stroke_width_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_width_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IShapeConcrete)wrapper).GetStrokeWidth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_shape_stroke_cap_get_static_delegate == null) + { + efl_gfx_shape_stroke_cap_get_static_delegate = new efl_gfx_shape_stroke_cap_get_delegate(stroke_cap_get); } - return _ret_var; - } else { - return efl_gfx_shape_stroke_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_shape_stroke_width_get_delegate efl_gfx_shape_stroke_width_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetStrokeCap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_cap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_cap_get_static_delegate) }); + } - private delegate void efl_gfx_shape_stroke_width_set_delegate(System.IntPtr obj, System.IntPtr pd, double w); + if (efl_gfx_shape_stroke_cap_set_static_delegate == null) + { + efl_gfx_shape_stroke_cap_set_static_delegate = new efl_gfx_shape_stroke_cap_set_delegate(stroke_cap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeCap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_cap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_cap_set_static_delegate) }); + } - public delegate void efl_gfx_shape_stroke_width_set_api_delegate(System.IntPtr obj, double w); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_width_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_width_set"); - private static void stroke_width_set(System.IntPtr obj, System.IntPtr pd, double w) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_width_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).SetStrokeWidth( w); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w); - } - } - private static efl_gfx_shape_stroke_width_set_delegate efl_gfx_shape_stroke_width_set_static_delegate; + if (efl_gfx_shape_stroke_join_get_static_delegate == null) + { + efl_gfx_shape_stroke_join_get_static_delegate = new efl_gfx_shape_stroke_join_get_delegate(stroke_join_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrokeJoin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_join_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_join_get_static_delegate) }); + } - private delegate double efl_gfx_shape_stroke_location_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_shape_stroke_join_set_static_delegate == null) + { + efl_gfx_shape_stroke_join_set_static_delegate = new efl_gfx_shape_stroke_join_set_delegate(stroke_join_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrokeJoin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_join_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_join_set_static_delegate) }); + } - public delegate double efl_gfx_shape_stroke_location_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_location_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_location_get"); - private static double stroke_location_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_location_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IShapeConcrete)wrapper).GetStrokeLocation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_shape_fill_rule_get_static_delegate == null) + { + efl_gfx_shape_fill_rule_get_static_delegate = new efl_gfx_shape_fill_rule_get_delegate(fill_rule_get); } - return _ret_var; - } else { - return efl_gfx_shape_stroke_location_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_shape_stroke_location_get_delegate efl_gfx_shape_stroke_location_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFillRule") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_fill_rule_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_fill_rule_get_static_delegate) }); + } - private delegate void efl_gfx_shape_stroke_location_set_delegate(System.IntPtr obj, System.IntPtr pd, double centered); + if (efl_gfx_shape_fill_rule_set_static_delegate == null) + { + efl_gfx_shape_fill_rule_set_static_delegate = new efl_gfx_shape_fill_rule_set_delegate(fill_rule_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFillRule") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_fill_rule_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_fill_rule_set_static_delegate) }); + } - public delegate void efl_gfx_shape_stroke_location_set_api_delegate(System.IntPtr obj, double centered); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_location_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_location_set"); - private static void stroke_location_set(System.IntPtr obj, System.IntPtr pd, double centered) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_location_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).SetStrokeLocation( centered); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_location_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), centered); - } - } - private static efl_gfx_shape_stroke_location_set_delegate efl_gfx_shape_stroke_location_set_static_delegate; + if (efl_gfx_path_get_static_delegate == null) + { + efl_gfx_path_get_static_delegate = new efl_gfx_path_get_delegate(path_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_get_static_delegate) }); + } - private delegate void efl_gfx_shape_stroke_dash_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr dash, out uint length); + if (efl_gfx_path_set_static_delegate == null) + { + efl_gfx_path_set_static_delegate = new efl_gfx_path_set_delegate(path_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_set_static_delegate) }); + } - public delegate void efl_gfx_shape_stroke_dash_get_api_delegate(System.IntPtr obj, out System.IntPtr dash, out uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_dash_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_dash_get"); - private static void stroke_dash_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr dash, out uint length) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_dash_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.Dash _out_dash = default(Efl.Gfx.Dash); - length = default(uint); - try { - ((IShapeConcrete)wrapper).GetStrokeDash( out _out_dash, out length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_path_length_get_static_delegate == null) + { + efl_gfx_path_length_get_static_delegate = new efl_gfx_path_length_get_delegate(length_get); } - dash = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_dash); - } else { - efl_gfx_shape_stroke_dash_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dash, out length); - } - } - private static efl_gfx_shape_stroke_dash_get_delegate efl_gfx_shape_stroke_dash_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_length_get_static_delegate) }); + } - private delegate void efl_gfx_shape_stroke_dash_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.Dash.NativeStruct dash, uint length); + if (efl_gfx_path_current_get_static_delegate == null) + { + efl_gfx_path_current_get_static_delegate = new efl_gfx_path_current_get_delegate(current_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCurrent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_current_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_get_static_delegate) }); + } - public delegate void efl_gfx_shape_stroke_dash_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.Dash.NativeStruct dash, uint length); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_dash_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_dash_set"); - private static void stroke_dash_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.Dash.NativeStruct dash, uint length) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_dash_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.Dash _in_dash = dash; - - try { - ((IShapeConcrete)wrapper).SetStrokeDash( ref _in_dash, length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_path_current_ctrl_get_static_delegate == null) + { + efl_gfx_path_current_ctrl_get_static_delegate = new efl_gfx_path_current_ctrl_get_delegate(current_ctrl_get); } - dash = _in_dash; - } else { - efl_gfx_shape_stroke_dash_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref dash, length); - } - } - private static efl_gfx_shape_stroke_dash_set_delegate efl_gfx_shape_stroke_dash_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetCurrentCtrl") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_current_ctrl_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_ctrl_get_static_delegate) }); + } - private delegate Efl.Gfx.Cap efl_gfx_shape_stroke_cap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_path_copy_from_static_delegate == null) + { + efl_gfx_path_copy_from_static_delegate = new efl_gfx_path_copy_from_delegate(copy_from); + } + if (methods.FirstOrDefault(m => m.Name == "CopyFrom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_copy_from"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_copy_from_static_delegate) }); + } - public delegate Efl.Gfx.Cap efl_gfx_shape_stroke_cap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_cap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_cap_get"); - private static Efl.Gfx.Cap stroke_cap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_cap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.Cap _ret_var = default(Efl.Gfx.Cap); - try { - _ret_var = ((IShapeConcrete)wrapper).GetStrokeCap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_path_bounds_get_static_delegate == null) + { + efl_gfx_path_bounds_get_static_delegate = new efl_gfx_path_bounds_get_delegate(bounds_get); } - return _ret_var; - } else { - return efl_gfx_shape_stroke_cap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_shape_stroke_cap_get_delegate efl_gfx_shape_stroke_cap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetBounds") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_bounds_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_bounds_get_static_delegate) }); + } - private delegate void efl_gfx_shape_stroke_cap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Cap c); + if (efl_gfx_path_reset_static_delegate == null) + { + efl_gfx_path_reset_static_delegate = new efl_gfx_path_reset_delegate(reset); + } + if (methods.FirstOrDefault(m => m.Name == "Reset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reset_static_delegate) }); + } - public delegate void efl_gfx_shape_stroke_cap_set_api_delegate(System.IntPtr obj, Efl.Gfx.Cap c); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_cap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_cap_set"); - private static void stroke_cap_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Cap c) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_cap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).SetStrokeCap( c); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_cap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), c); - } - } - private static efl_gfx_shape_stroke_cap_set_delegate efl_gfx_shape_stroke_cap_set_static_delegate; + if (efl_gfx_path_append_move_to_static_delegate == null) + { + efl_gfx_path_append_move_to_static_delegate = new efl_gfx_path_append_move_to_delegate(append_move_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendMoveTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_move_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_move_to_static_delegate) }); + } - private delegate Efl.Gfx.Join efl_gfx_shape_stroke_join_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_path_append_line_to_static_delegate == null) + { + efl_gfx_path_append_line_to_static_delegate = new efl_gfx_path_append_line_to_delegate(append_line_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendLineTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_line_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_line_to_static_delegate) }); + } - public delegate Efl.Gfx.Join efl_gfx_shape_stroke_join_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_join_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_join_get"); - private static Efl.Gfx.Join stroke_join_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_join_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.Join _ret_var = default(Efl.Gfx.Join); - try { - _ret_var = ((IShapeConcrete)wrapper).GetStrokeJoin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_path_append_quadratic_to_static_delegate == null) + { + efl_gfx_path_append_quadratic_to_static_delegate = new efl_gfx_path_append_quadratic_to_delegate(append_quadratic_to); } - return _ret_var; - } else { - return efl_gfx_shape_stroke_join_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_shape_stroke_join_get_delegate efl_gfx_shape_stroke_join_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "AppendQuadraticTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_quadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_quadratic_to_static_delegate) }); + } - private delegate void efl_gfx_shape_stroke_join_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Join j); + if (efl_gfx_path_append_squadratic_to_static_delegate == null) + { + efl_gfx_path_append_squadratic_to_static_delegate = new efl_gfx_path_append_squadratic_to_delegate(append_squadratic_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendSquadraticTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_squadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_squadratic_to_static_delegate) }); + } - public delegate void efl_gfx_shape_stroke_join_set_api_delegate(System.IntPtr obj, Efl.Gfx.Join j); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_join_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_stroke_join_set"); - private static void stroke_join_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Join j) - { - Eina.Log.Debug("function efl_gfx_shape_stroke_join_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).SetStrokeJoin( j); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_stroke_join_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), j); - } - } - private static efl_gfx_shape_stroke_join_set_delegate efl_gfx_shape_stroke_join_set_static_delegate; + if (efl_gfx_path_append_cubic_to_static_delegate == null) + { + efl_gfx_path_append_cubic_to_static_delegate = new efl_gfx_path_append_cubic_to_delegate(append_cubic_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendCubicTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_cubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_cubic_to_static_delegate) }); + } - private delegate Efl.Gfx.FillRule efl_gfx_shape_fill_rule_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_path_append_scubic_to_static_delegate == null) + { + efl_gfx_path_append_scubic_to_static_delegate = new efl_gfx_path_append_scubic_to_delegate(append_scubic_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendScubicTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_scubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_scubic_to_static_delegate) }); + } - public delegate Efl.Gfx.FillRule efl_gfx_shape_fill_rule_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_fill_rule_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_fill_rule_get"); - private static Efl.Gfx.FillRule fill_rule_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_shape_fill_rule_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.FillRule _ret_var = default(Efl.Gfx.FillRule); - try { - _ret_var = ((IShapeConcrete)wrapper).GetFillRule(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_path_append_arc_to_static_delegate == null) + { + efl_gfx_path_append_arc_to_static_delegate = new efl_gfx_path_append_arc_to_delegate(append_arc_to); } - return _ret_var; - } else { - return efl_gfx_shape_fill_rule_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_shape_fill_rule_get_delegate efl_gfx_shape_fill_rule_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "AppendArcTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_arc_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_to_static_delegate) }); + } - private delegate void efl_gfx_shape_fill_rule_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.FillRule fill_rule); + if (efl_gfx_path_append_arc_static_delegate == null) + { + efl_gfx_path_append_arc_static_delegate = new efl_gfx_path_append_arc_delegate(append_arc); + } + if (methods.FirstOrDefault(m => m.Name == "AppendArc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_arc"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_static_delegate) }); + } - public delegate void efl_gfx_shape_fill_rule_set_api_delegate(System.IntPtr obj, Efl.Gfx.FillRule fill_rule); - public static Efl.Eo.FunctionWrapper efl_gfx_shape_fill_rule_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_shape_fill_rule_set"); - private static void fill_rule_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.FillRule fill_rule) - { - Eina.Log.Debug("function efl_gfx_shape_fill_rule_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).SetFillRule( fill_rule); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_shape_fill_rule_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill_rule); - } - } - private static efl_gfx_shape_fill_rule_set_delegate efl_gfx_shape_fill_rule_set_static_delegate; + if (efl_gfx_path_append_close_static_delegate == null) + { + efl_gfx_path_append_close_static_delegate = new efl_gfx_path_append_close_delegate(append_close); + } + if (methods.FirstOrDefault(m => m.Name == "CloseAppend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_close"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_close_static_delegate) }); + } - private delegate void efl_gfx_path_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points); + if (efl_gfx_path_append_circle_static_delegate == null) + { + efl_gfx_path_append_circle_static_delegate = new efl_gfx_path_append_circle_delegate(append_circle); + } + if (methods.FirstOrDefault(m => m.Name == "AppendCircle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_circle"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_circle_static_delegate) }); + } - public delegate void efl_gfx_path_get_api_delegate(System.IntPtr obj, out System.IntPtr op, out System.IntPtr points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_get"); - private static void path_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points) - { - Eina.Log.Debug("function efl_gfx_path_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); - double _out_points = default(double); - - try { - ((IShapeConcrete)wrapper).GetPath( out _out_op, out _out_points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_path_append_rect_static_delegate == null) + { + efl_gfx_path_append_rect_static_delegate = new efl_gfx_path_append_rect_delegate(append_rect); } - op = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_op); - points = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_points); - } else { - efl_gfx_path_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out op, out points); - } - } - private static efl_gfx_path_get_delegate efl_gfx_path_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "AppendRect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_rect"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_rect_static_delegate) }); + } - private delegate void efl_gfx_path_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points); + if (efl_gfx_path_append_svg_path_static_delegate == null) + { + efl_gfx_path_append_svg_path_static_delegate = new efl_gfx_path_append_svg_path_delegate(append_svg_path); + } + if (methods.FirstOrDefault(m => m.Name == "AppendSvgPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_svg_path"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_svg_path_static_delegate) }); + } - public delegate void efl_gfx_path_set_api_delegate(System.IntPtr obj, System.IntPtr op, System.IntPtr points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_set"); - private static void path_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points) - { - Eina.Log.Debug("function efl_gfx_path_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_op = Eina.PrimitiveConversion.PointerToManaged(op); - var _in_points = Eina.PrimitiveConversion.PointerToManaged(points); - - try { - ((IShapeConcrete)wrapper).SetPath( _in_op, _in_points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), op, points); - } - } - private static efl_gfx_path_set_delegate efl_gfx_path_set_static_delegate; + if (efl_gfx_path_interpolate_static_delegate == null) + { + efl_gfx_path_interpolate_static_delegate = new efl_gfx_path_interpolate_delegate(interpolate); + } + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_interpolate_static_delegate) }); + } - private delegate void efl_gfx_path_length_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points); + if (efl_gfx_path_equal_commands_static_delegate == null) + { + efl_gfx_path_equal_commands_static_delegate = new efl_gfx_path_equal_commands_delegate(equal_commands); + } + if (methods.FirstOrDefault(m => m.Name == "EqualCommands") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_equal_commands"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_equal_commands_static_delegate) }); + } - public delegate void efl_gfx_path_length_get_api_delegate(System.IntPtr obj, out uint commands, out uint points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_length_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_length_get"); - private static void length_get(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points) - { - Eina.Log.Debug("function efl_gfx_path_length_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - commands = default(uint); points = default(uint); - try { - ((IShapeConcrete)wrapper).GetLength( out commands, out points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out commands, out points); - } - } - private static efl_gfx_path_length_get_delegate efl_gfx_path_length_get_static_delegate; + if (efl_gfx_path_reserve_static_delegate == null) + { + efl_gfx_path_reserve_static_delegate = new efl_gfx_path_reserve_delegate(reserve); + } + if (methods.FirstOrDefault(m => m.Name == "Reserve") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_reserve"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reserve_static_delegate) }); + } - private delegate void efl_gfx_path_current_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (efl_gfx_path_commit_static_delegate == null) + { + efl_gfx_path_commit_static_delegate = new efl_gfx_path_commit_delegate(commit); + } + if (methods.FirstOrDefault(m => m.Name == "Commit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_commit"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_commit_static_delegate) }); + } - public delegate void efl_gfx_path_current_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_current_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_current_get"); - private static void current_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_path_current_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IShapeConcrete)wrapper).GetCurrent( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_current_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Gfx.IShapeConcrete.efl_gfx_shape_mixin_get(); } - } - private static efl_gfx_path_current_get_delegate efl_gfx_path_current_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate double efl_gfx_shape_stroke_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_shape_stroke_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_scale_get"); + + private static double stroke_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IShapeConcrete)wrapper).GetStrokeScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_current_ctrl_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + return _ret_var; + } + else + { + return efl_gfx_shape_stroke_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_path_current_ctrl_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_current_ctrl_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_current_ctrl_get"); - private static void current_ctrl_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_path_current_ctrl_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IShapeConcrete)wrapper).GetCurrentCtrl( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + private static efl_gfx_shape_stroke_scale_get_delegate efl_gfx_shape_stroke_scale_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double s); + + + public delegate void efl_gfx_shape_stroke_scale_set_api_delegate(System.IntPtr obj, double s); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_scale_set"); + + private static void stroke_scale_set(System.IntPtr obj, System.IntPtr pd, double s) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).SetStrokeScale(s); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), s); + } } - } - private static efl_gfx_path_current_ctrl_get_delegate efl_gfx_path_current_ctrl_get_static_delegate; + private static efl_gfx_shape_stroke_scale_set_delegate efl_gfx_shape_stroke_scale_set_static_delegate; + + + private delegate void efl_gfx_shape_stroke_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + + + public delegate void efl_gfx_shape_stroke_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_color_get"); + + private static void stroke_color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); + try + { + ((IShapeConcrete)wrapper).GetStrokeColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_copy_from_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object dup_from); + + } + else + { + efl_gfx_shape_stroke_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_gfx_shape_stroke_color_get_delegate efl_gfx_shape_stroke_color_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + + + public delegate void efl_gfx_shape_stroke_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_color_set"); + + private static void stroke_color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).SetStrokeColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_copy_from_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object dup_from); - public static Efl.Eo.FunctionWrapper efl_gfx_path_copy_from_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_copy_from"); - private static void copy_from(System.IntPtr obj, System.IntPtr pd, Efl.Object dup_from) - { - Eina.Log.Debug("function efl_gfx_path_copy_from was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).CopyFrom( dup_from); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_copy_from_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dup_from); + + } + else + { + efl_gfx_shape_stroke_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } } - } - private static efl_gfx_path_copy_from_delegate efl_gfx_path_copy_from_static_delegate; + private static efl_gfx_shape_stroke_color_set_delegate efl_gfx_shape_stroke_color_set_static_delegate; + + + private delegate double efl_gfx_shape_stroke_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_shape_stroke_width_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_width_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_width_get"); + + private static double stroke_width_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_width_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IShapeConcrete)wrapper).GetStrokeWidth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_bounds_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r); + return _ret_var; + } + else + { + return efl_gfx_shape_stroke_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_path_bounds_get_api_delegate(System.IntPtr obj, out Eina.Rect.NativeStruct r); - public static Efl.Eo.FunctionWrapper efl_gfx_path_bounds_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_bounds_get"); - private static void bounds_get(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r) - { - Eina.Log.Debug("function efl_gfx_path_bounds_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _out_r = default(Eina.Rect); - - try { - ((IShapeConcrete)wrapper).GetBounds( out _out_r); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_shape_stroke_width_get_delegate efl_gfx_shape_stroke_width_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_width_set_delegate(System.IntPtr obj, System.IntPtr pd, double w); + + + public delegate void efl_gfx_shape_stroke_width_set_api_delegate(System.IntPtr obj, double w); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_width_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_width_set"); + + private static void stroke_width_set(System.IntPtr obj, System.IntPtr pd, double w) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_width_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).SetStrokeWidth(w); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w); } - r = _out_r; - } else { - efl_gfx_path_bounds_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r); } - } - private static efl_gfx_path_bounds_get_delegate efl_gfx_path_bounds_get_static_delegate; + private static efl_gfx_shape_stroke_width_set_delegate efl_gfx_shape_stroke_width_set_static_delegate; + + + private delegate double efl_gfx_shape_stroke_location_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_shape_stroke_location_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_location_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_location_get"); + + private static double stroke_location_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_location_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IShapeConcrete)wrapper).GetStrokeLocation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_reset_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_shape_stroke_location_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_shape_stroke_location_get_delegate efl_gfx_shape_stroke_location_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_location_set_delegate(System.IntPtr obj, System.IntPtr pd, double centered); + + + public delegate void efl_gfx_shape_stroke_location_set_api_delegate(System.IntPtr obj, double centered); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_location_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_location_set"); + + private static void stroke_location_set(System.IntPtr obj, System.IntPtr pd, double centered) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_location_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).SetStrokeLocation(centered); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_reset"); - private static void reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IShapeConcrete)wrapper).Reset(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_gfx_shape_stroke_location_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), centered); + } } - } - private static efl_gfx_path_reset_delegate efl_gfx_path_reset_static_delegate; + private static efl_gfx_shape_stroke_location_set_delegate efl_gfx_shape_stroke_location_set_static_delegate; - private delegate void efl_gfx_path_append_move_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_gfx_shape_stroke_dash_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr dash, out uint length); + + public delegate void efl_gfx_shape_stroke_dash_get_api_delegate(System.IntPtr obj, out System.IntPtr dash, out uint length); - public delegate void efl_gfx_path_append_move_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_move_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_move_to"); - private static void append_move_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_move_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).AppendMoveTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_move_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static efl_gfx_path_append_move_to_delegate efl_gfx_path_append_move_to_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_dash_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_dash_get"); + private static void stroke_dash_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr dash, out uint length) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_dash_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.Dash _out_dash = default(Efl.Gfx.Dash); + length = default(uint); + try + { + ((IShapeConcrete)wrapper).GetStrokeDash(out _out_dash, out length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_line_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + dash = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_dash); + + } + else + { + efl_gfx_shape_stroke_dash_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out dash, out length); + } + } + private static efl_gfx_shape_stroke_dash_get_delegate efl_gfx_shape_stroke_dash_get_static_delegate; - public delegate void efl_gfx_path_append_line_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_line_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_line_to"); - private static void append_line_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_line_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).AppendLineTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_line_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static efl_gfx_path_append_line_to_delegate efl_gfx_path_append_line_to_static_delegate; + + private delegate void efl_gfx_shape_stroke_dash_set_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.Dash.NativeStruct dash, uint length); + + public delegate void efl_gfx_shape_stroke_dash_set_api_delegate(System.IntPtr obj, ref Efl.Gfx.Dash.NativeStruct dash, uint length); - private delegate void efl_gfx_path_append_quadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_dash_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_dash_set"); + private static void stroke_dash_set(System.IntPtr obj, System.IntPtr pd, ref Efl.Gfx.Dash.NativeStruct dash, uint length) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_dash_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.Dash _in_dash = dash; + + try + { + ((IShapeConcrete)wrapper).SetStrokeDash(ref _in_dash, length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_append_quadratic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_quadratic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_quadratic_to"); - private static void append_quadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) - { - Eina.Log.Debug("function efl_gfx_path_append_quadratic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).AppendQuadraticTo( x, y, ctrl_x, ctrl_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); + dash = _in_dash; + + } + else + { + efl_gfx_shape_stroke_dash_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref dash, length); + } } - } - private static efl_gfx_path_append_quadratic_to_delegate efl_gfx_path_append_quadratic_to_static_delegate; + private static efl_gfx_shape_stroke_dash_set_delegate efl_gfx_shape_stroke_dash_set_static_delegate; + + + private delegate Efl.Gfx.Cap efl_gfx_shape_stroke_cap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.Cap efl_gfx_shape_stroke_cap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_cap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_cap_get"); + + private static Efl.Gfx.Cap stroke_cap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_cap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.Cap _ret_var = default(Efl.Gfx.Cap); + try + { + _ret_var = ((IShapeConcrete)wrapper).GetStrokeCap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_squadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + return _ret_var; + } + else + { + return efl_gfx_shape_stroke_cap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_path_append_squadratic_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_squadratic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_squadratic_to"); - private static void append_squadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_squadratic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).AppendSquadraticTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + private static efl_gfx_shape_stroke_cap_get_delegate efl_gfx_shape_stroke_cap_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_cap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Cap c); + + + public delegate void efl_gfx_shape_stroke_cap_set_api_delegate(System.IntPtr obj, Efl.Gfx.Cap c); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_cap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_cap_set"); + + private static void stroke_cap_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Cap c) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_cap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).SetStrokeCap(c); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_cap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), c); + } } - } - private static efl_gfx_path_append_squadratic_to_delegate efl_gfx_path_append_squadratic_to_static_delegate; + private static efl_gfx_shape_stroke_cap_set_delegate efl_gfx_shape_stroke_cap_set_static_delegate; + + + private delegate Efl.Gfx.Join efl_gfx_shape_stroke_join_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.Join efl_gfx_shape_stroke_join_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_join_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_join_get"); + + private static Efl.Gfx.Join stroke_join_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_join_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.Join _ret_var = default(Efl.Gfx.Join); + try + { + _ret_var = ((IShapeConcrete)wrapper).GetStrokeJoin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_cubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); + return _ret_var; + } + else + { + return efl_gfx_shape_stroke_join_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_path_append_cubic_to_api_delegate(System.IntPtr obj, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_cubic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_cubic_to"); - private static void append_cubic_to(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_cubic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).AppendCubicTo( ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_cubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + private static efl_gfx_shape_stroke_join_get_delegate efl_gfx_shape_stroke_join_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_join_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Join j); + + + public delegate void efl_gfx_shape_stroke_join_set_api_delegate(System.IntPtr obj, Efl.Gfx.Join j); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_join_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_join_set"); + + private static void stroke_join_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.Join j) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_join_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).SetStrokeJoin(j); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_join_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), j); + } } - } - private static efl_gfx_path_append_cubic_to_delegate efl_gfx_path_append_cubic_to_static_delegate; + private static efl_gfx_shape_stroke_join_set_delegate efl_gfx_shape_stroke_join_set_static_delegate; + + + private delegate Efl.Gfx.FillRule efl_gfx_shape_fill_rule_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.FillRule efl_gfx_shape_fill_rule_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_fill_rule_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_fill_rule_get"); + + private static Efl.Gfx.FillRule fill_rule_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_fill_rule_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.FillRule _ret_var = default(Efl.Gfx.FillRule); + try + { + _ret_var = ((IShapeConcrete)wrapper).GetFillRule(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_gfx_path_append_scubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + } + else + { + return efl_gfx_shape_fill_rule_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_gfx_shape_fill_rule_get_delegate efl_gfx_shape_fill_rule_get_static_delegate; + + + private delegate void efl_gfx_shape_fill_rule_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.FillRule fill_rule); + + + public delegate void efl_gfx_shape_fill_rule_set_api_delegate(System.IntPtr obj, Efl.Gfx.FillRule fill_rule); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_fill_rule_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_fill_rule_set"); + + private static void fill_rule_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.FillRule fill_rule) + { + Eina.Log.Debug("function efl_gfx_shape_fill_rule_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).SetFillRule(fill_rule); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_append_scubic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_scubic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_scubic_to"); - private static void append_scubic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) - { - Eina.Log.Debug("function efl_gfx_path_append_scubic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).AppendScubicTo( x, y, ctrl_x, ctrl_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_scubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); + + } + else + { + efl_gfx_shape_fill_rule_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill_rule); + } } - } - private static efl_gfx_path_append_scubic_to_delegate efl_gfx_path_append_scubic_to_static_delegate; + private static efl_gfx_shape_fill_rule_set_delegate efl_gfx_shape_fill_rule_set_static_delegate; - private delegate void efl_gfx_path_append_arc_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); + + private delegate void efl_gfx_path_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points); + + public delegate void efl_gfx_path_get_api_delegate(System.IntPtr obj, out System.IntPtr op, out System.IntPtr points); - public delegate void efl_gfx_path_append_arc_to_api_delegate(System.IntPtr obj, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_arc_to"); - private static void append_arc_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) - { - Eina.Log.Debug("function efl_gfx_path_append_arc_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).AppendArcTo( x, y, rx, ry, angle, large_arc, sweep); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_arc_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, rx, ry, angle, large_arc, sweep); + public static Efl.Eo.FunctionWrapper efl_gfx_path_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_get"); + + private static void path_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points) + { + Eina.Log.Debug("function efl_gfx_path_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); + double _out_points = default(double); + + try + { + ((IShapeConcrete)wrapper).GetPath(out _out_op, out _out_points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + op = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_op); + points = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_points); + + } + else + { + efl_gfx_path_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out op, out points); + } } - } - private static efl_gfx_path_append_arc_to_delegate efl_gfx_path_append_arc_to_static_delegate; + private static efl_gfx_path_get_delegate efl_gfx_path_get_static_delegate; - private delegate void efl_gfx_path_append_arc_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length); + + private delegate void efl_gfx_path_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points); + + public delegate void efl_gfx_path_set_api_delegate(System.IntPtr obj, System.IntPtr op, System.IntPtr points); - public delegate void efl_gfx_path_append_arc_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double start_angle, double sweep_length); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_arc"); - private static void append_arc(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length) - { - Eina.Log.Debug("function efl_gfx_path_append_arc was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).AppendArc( x, y, w, h, start_angle, sweep_length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_arc_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, start_angle, sweep_length); + public static Efl.Eo.FunctionWrapper efl_gfx_path_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_set"); + + private static void path_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points) + { + Eina.Log.Debug("function efl_gfx_path_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_op = Eina.PrimitiveConversion.PointerToManaged(op); + var _in_points = Eina.PrimitiveConversion.PointerToManaged(points); + + try + { + ((IShapeConcrete)wrapper).SetPath(_in_op, _in_points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), op, points); + } + } + + private static efl_gfx_path_set_delegate efl_gfx_path_set_static_delegate; + + + private delegate void efl_gfx_path_length_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points); + + + public delegate void efl_gfx_path_length_get_api_delegate(System.IntPtr obj, out uint commands, out uint points); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_length_get"); + + private static void length_get(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points) + { + Eina.Log.Debug("function efl_gfx_path_length_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + commands = default(uint); points = default(uint); + try + { + ((IShapeConcrete)wrapper).GetLength(out commands, out points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out commands, out points); + } } - } - private static efl_gfx_path_append_arc_delegate efl_gfx_path_append_arc_static_delegate; + private static efl_gfx_path_length_get_delegate efl_gfx_path_length_get_static_delegate; + + + private delegate void efl_gfx_path_current_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_path_current_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_current_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_current_get"); + + private static void current_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_path_current_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IShapeConcrete)wrapper).GetCurrent(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_current_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } - private delegate void efl_gfx_path_append_close_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_path_current_get_delegate efl_gfx_path_current_get_static_delegate; + + + private delegate void efl_gfx_path_current_ctrl_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_path_current_ctrl_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_current_ctrl_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_current_ctrl_get"); + + private static void current_ctrl_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_path_current_ctrl_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IShapeConcrete)wrapper).GetCurrentCtrl(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + private static efl_gfx_path_current_ctrl_get_delegate efl_gfx_path_current_ctrl_get_static_delegate; + + + private delegate void efl_gfx_path_copy_from_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object dup_from); + + + public delegate void efl_gfx_path_copy_from_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object dup_from); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_copy_from_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_copy_from"); + + private static void copy_from(System.IntPtr obj, System.IntPtr pd, Efl.Object dup_from) + { + Eina.Log.Debug("function efl_gfx_path_copy_from was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).CopyFrom(dup_from); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_append_close_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_close_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_close"); - private static void append_close(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_append_close was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IShapeConcrete)wrapper).CloseAppend(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_gfx_path_copy_from_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dup_from); + } } - } - private static efl_gfx_path_append_close_delegate efl_gfx_path_append_close_static_delegate; + private static efl_gfx_path_copy_from_delegate efl_gfx_path_copy_from_static_delegate; - private delegate void efl_gfx_path_append_circle_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius); + + private delegate void efl_gfx_path_bounds_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r); + + public delegate void efl_gfx_path_bounds_get_api_delegate(System.IntPtr obj, out Eina.Rect.NativeStruct r); - public delegate void efl_gfx_path_append_circle_api_delegate(System.IntPtr obj, double x, double y, double radius); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_circle_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_circle"); - private static void append_circle(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius) - { - Eina.Log.Debug("function efl_gfx_path_append_circle was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).AppendCircle( x, y, radius); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_circle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, radius); - } - } - private static efl_gfx_path_append_circle_delegate efl_gfx_path_append_circle_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_path_bounds_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_bounds_get"); + private static void bounds_get(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r) + { + Eina.Log.Debug("function efl_gfx_path_bounds_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _out_r = default(Eina.Rect); + + try + { + ((IShapeConcrete)wrapper).GetBounds(out _out_r); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_rect_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry); + r = _out_r; + + } + else + { + efl_gfx_path_bounds_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r); + } + } + private static efl_gfx_path_bounds_get_delegate efl_gfx_path_bounds_get_static_delegate; + + + private delegate void efl_gfx_path_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_path_reset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_reset"); + + private static void reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).Reset(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_path_append_rect_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double rx, double ry); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_rect_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_rect"); - private static void append_rect(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry) - { - Eina.Log.Debug("function efl_gfx_path_append_rect was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).AppendRect( x, y, w, h, rx, ry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_rect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, rx, ry); + private static efl_gfx_path_reset_delegate efl_gfx_path_reset_static_delegate; + + + private delegate void efl_gfx_path_append_move_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_path_append_move_to_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_move_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_move_to"); + + private static void append_move_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_move_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).AppendMoveTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_move_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } } - } - private static efl_gfx_path_append_rect_delegate efl_gfx_path_append_rect_static_delegate; + private static efl_gfx_path_append_move_to_delegate efl_gfx_path_append_move_to_static_delegate; + + + private delegate void efl_gfx_path_append_line_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_path_append_line_to_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_line_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_line_to"); + + private static void append_line_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_line_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).AppendLineTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_line_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } - private delegate void efl_gfx_path_append_svg_path_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); + private static efl_gfx_path_append_line_to_delegate efl_gfx_path_append_line_to_static_delegate; + + + private delegate void efl_gfx_path_append_quadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + + + public delegate void efl_gfx_path_append_quadratic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_quadratic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_quadratic_to"); + + private static void append_quadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) + { + Eina.Log.Debug("function efl_gfx_path_append_quadratic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).AppendQuadraticTo(x, y, ctrl_x, ctrl_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); + } + } - public delegate void efl_gfx_path_append_svg_path_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_svg_path_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_svg_path"); - private static void append_svg_path(System.IntPtr obj, System.IntPtr pd, System.String svg_path_data) - { - Eina.Log.Debug("function efl_gfx_path_append_svg_path was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).AppendSvgPath( svg_path_data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_svg_path_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), svg_path_data); + private static efl_gfx_path_append_quadratic_to_delegate efl_gfx_path_append_quadratic_to_static_delegate; + + + private delegate void efl_gfx_path_append_squadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_path_append_squadratic_to_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_squadratic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_squadratic_to"); + + private static void append_squadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_squadratic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).AppendSquadraticTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_gfx_path_append_squadratic_to_delegate efl_gfx_path_append_squadratic_to_static_delegate; + + + private delegate void efl_gfx_path_append_cubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); + + + public delegate void efl_gfx_path_append_cubic_to_api_delegate(System.IntPtr obj, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_cubic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_cubic_to"); + + private static void append_cubic_to(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_cubic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).AppendCubicTo(ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_cubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + } } - } - private static efl_gfx_path_append_svg_path_delegate efl_gfx_path_append_svg_path_static_delegate; + private static efl_gfx_path_append_cubic_to_delegate efl_gfx_path_append_cubic_to_static_delegate; + + + private delegate void efl_gfx_path_append_scubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + + + public delegate void efl_gfx_path_append_scubic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_scubic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_scubic_to"); + + private static void append_scubic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) + { + Eina.Log.Debug("function efl_gfx_path_append_scubic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).AppendScubicTo(x, y, ctrl_x, ctrl_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_path_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object to, double pos_map); + + } + else + { + efl_gfx_path_append_scubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); + } + } + private static efl_gfx_path_append_scubic_to_delegate efl_gfx_path_append_scubic_to_static_delegate; + + + private delegate void efl_gfx_path_append_arc_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); + + + public delegate void efl_gfx_path_append_arc_to_api_delegate(System.IntPtr obj, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_arc_to"); + + private static void append_arc_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) + { + Eina.Log.Debug("function efl_gfx_path_append_arc_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).AppendArcTo(x, y, rx, ry, angle, large_arc, sweep); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_path_interpolate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object to, double pos_map); - public static Efl.Eo.FunctionWrapper efl_gfx_path_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_interpolate"); - private static bool interpolate(System.IntPtr obj, System.IntPtr pd, Efl.Object from, Efl.Object to, double pos_map) - { - Eina.Log.Debug("function efl_gfx_path_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IShapeConcrete)wrapper).Interpolate( from, to, pos_map); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_gfx_path_append_arc_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, rx, ry, angle, large_arc, sweep); } - return _ret_var; - } else { - return efl_gfx_path_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to, pos_map); } - } - private static efl_gfx_path_interpolate_delegate efl_gfx_path_interpolate_static_delegate; + private static efl_gfx_path_append_arc_to_delegate efl_gfx_path_append_arc_to_static_delegate; + + + private delegate void efl_gfx_path_append_arc_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length); + + + public delegate void efl_gfx_path_append_arc_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double start_angle, double sweep_length); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_arc"); + + private static void append_arc(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length) + { + Eina.Log.Debug("function efl_gfx_path_append_arc was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).AppendArc(x, y, w, h, start_angle, sweep_length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_arc_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, start_angle, sweep_length); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_path_equal_commands_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object with); + private static efl_gfx_path_append_arc_delegate efl_gfx_path_append_arc_static_delegate; + + + private delegate void efl_gfx_path_append_close_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_path_append_close_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_close_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_close"); + + private static void append_close(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_append_close was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).CloseAppend(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_gfx_path_append_close_delegate efl_gfx_path_append_close_static_delegate; + + + private delegate void efl_gfx_path_append_circle_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius); + + + public delegate void efl_gfx_path_append_circle_api_delegate(System.IntPtr obj, double x, double y, double radius); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_circle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_circle"); + + private static void append_circle(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius) + { + Eina.Log.Debug("function efl_gfx_path_append_circle was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).AppendCircle(x, y, radius); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_circle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, radius); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_path_equal_commands_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object with); - public static Efl.Eo.FunctionWrapper efl_gfx_path_equal_commands_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_equal_commands"); - private static bool equal_commands(System.IntPtr obj, System.IntPtr pd, Efl.Object with) - { - Eina.Log.Debug("function efl_gfx_path_equal_commands was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IShapeConcrete)wrapper).EqualCommands( with); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_path_append_circle_delegate efl_gfx_path_append_circle_static_delegate; + + + private delegate void efl_gfx_path_append_rect_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry); + + + public delegate void efl_gfx_path_append_rect_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double rx, double ry); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_rect_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_rect"); + + private static void append_rect(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry) + { + Eina.Log.Debug("function efl_gfx_path_append_rect was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).AppendRect(x, y, w, h, rx, ry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_rect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, rx, ry); } - return _ret_var; - } else { - return efl_gfx_path_equal_commands_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), with); } - } - private static efl_gfx_path_equal_commands_delegate efl_gfx_path_equal_commands_static_delegate; + private static efl_gfx_path_append_rect_delegate efl_gfx_path_append_rect_static_delegate; + + + private delegate void efl_gfx_path_append_svg_path_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); + + + public delegate void efl_gfx_path_append_svg_path_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_svg_path_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_svg_path"); + + private static void append_svg_path(System.IntPtr obj, System.IntPtr pd, System.String svg_path_data) + { + Eina.Log.Debug("function efl_gfx_path_append_svg_path was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).AppendSvgPath(svg_path_data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_reserve_delegate(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count); + + } + else + { + efl_gfx_path_append_svg_path_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), svg_path_data); + } + } + private static efl_gfx_path_append_svg_path_delegate efl_gfx_path_append_svg_path_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_path_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object to, double pos_map); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_path_interpolate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object to, double pos_map); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_interpolate"); + + private static bool interpolate(System.IntPtr obj, System.IntPtr pd, Efl.Object from, Efl.Object to, double pos_map) + { + Eina.Log.Debug("function efl_gfx_path_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IShapeConcrete)wrapper).Interpolate(from, to, pos_map); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_reserve_api_delegate(System.IntPtr obj, uint cmd_count, uint pts_count); - public static Efl.Eo.FunctionWrapper efl_gfx_path_reserve_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_reserve"); - private static void reserve(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count) - { - Eina.Log.Debug("function efl_gfx_path_reserve was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).Reserve( cmd_count, pts_count); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_reserve_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cmd_count, pts_count); + return _ret_var; + + } + else + { + return efl_gfx_path_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to, pos_map); + } } - } - private static efl_gfx_path_reserve_delegate efl_gfx_path_reserve_static_delegate; + private static efl_gfx_path_interpolate_delegate efl_gfx_path_interpolate_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_path_equal_commands_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object with); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_path_equal_commands_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object with); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_equal_commands_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_equal_commands"); + + private static bool equal_commands(System.IntPtr obj, System.IntPtr pd, Efl.Object with) + { + Eina.Log.Debug("function efl_gfx_path_equal_commands was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IShapeConcrete)wrapper).EqualCommands(with); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_commit_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_path_equal_commands_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), with); + } + } - public delegate void efl_gfx_path_commit_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_commit_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_commit"); - private static void commit(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_commit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IShapeConcrete)wrapper).Commit(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_commit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_gfx_path_equal_commands_delegate efl_gfx_path_equal_commands_static_delegate; + + + private delegate void efl_gfx_path_reserve_delegate(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count); + + + public delegate void efl_gfx_path_reserve_api_delegate(System.IntPtr obj, uint cmd_count, uint pts_count); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_reserve_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_reserve"); + + private static void reserve(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count) + { + Eina.Log.Debug("function efl_gfx_path_reserve was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).Reserve(cmd_count, pts_count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_reserve_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cmd_count, pts_count); + } } - } - private static efl_gfx_path_commit_delegate efl_gfx_path_commit_static_delegate; + + private static efl_gfx_path_reserve_delegate efl_gfx_path_reserve_static_delegate; + + + private delegate void efl_gfx_path_commit_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_path_commit_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_commit_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_commit"); + + private static void commit(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_commit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IShapeConcrete)wrapper).Commit(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_commit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_path_commit_delegate efl_gfx_path_commit_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_size_class.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_size_class.eo.cs index ef67f9a..ec413f5 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_size_class.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_size_class.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Efl Gfx Size Class interface -[ISizeClassNativeInherit] +[Efl.Gfx.ISizeClassConcrete.NativeMethods] public interface ISizeClass : Efl.Eo.IWrapper, IDisposable { @@ -18,7 +22,7 @@ public interface ISizeClass : /// maximum width /// maximum height /// true, on success or false, on error -bool GetSizeClass( System.String size_class, out int minw, out int minh, out int maxw, out int maxh); +bool GetSizeClass(System.String size_class, out int minw, out int minh, out int maxw, out int maxh); /// Set width and height of size class. /// This function sets width and height for a size class. This will make all edje parts in the specified object that have the specified size class update their size with given values. /// The name of size class @@ -27,14 +31,13 @@ bool GetSizeClass( System.String size_class, out int minw, out int minh, out /// maximum width /// maximum height /// true, on success or false, on error -bool SetSizeClass( System.String size_class, int minw, int minh, int maxw, int maxh); +bool SetSizeClass(System.String size_class, int minw, int minh, int maxw, int maxh); /// Delete the size class. /// This function deletes any values for the specified size class. /// /// Deleting the size class will revert it to the values defined by or the size class defined in the theme file. /// The size class to be deleted. -/// -void DelSizeClass( System.String size_class); +void DelSizeClass(System.String size_class); } /// Efl Gfx Size Class interface sealed public class ISizeClassConcrete : @@ -43,68 +46,103 @@ ISizeClass { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ISizeClassConcrete)) - return Efl.Gfx.ISizeClassNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ISizeClassConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_size_class_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ISizeClassConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ISizeClassConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Get width and height of size class. /// This function gets width and height for a size class. These values will only be valid until the size class is changed or the edje object is deleted. /// The name of size class @@ -113,8 +151,8 @@ ISizeClass /// maximum width /// maximum height /// true, on success or false, on error - public bool GetSizeClass( System.String size_class, out int minw, out int minh, out int maxw, out int maxh) { - var _ret_var = Efl.Gfx.ISizeClassNativeInherit.efl_gfx_size_class_get_ptr.Value.Delegate(this.NativeHandle, size_class, out minw, out minh, out maxw, out maxh); + public bool GetSizeClass(System.String size_class, out int minw, out int minh, out int maxw, out int maxh) { + var _ret_var = Efl.Gfx.ISizeClassConcrete.NativeMethods.efl_gfx_size_class_get_ptr.Value.Delegate(this.NativeHandle,size_class, out minw, out minh, out maxw, out maxh); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -126,8 +164,8 @@ ISizeClass /// maximum width /// maximum height /// true, on success or false, on error - public bool SetSizeClass( System.String size_class, int minw, int minh, int maxw, int maxh) { - var _ret_var = Efl.Gfx.ISizeClassNativeInherit.efl_gfx_size_class_set_ptr.Value.Delegate(this.NativeHandle, size_class, minw, minh, maxw, maxh); + public bool SetSizeClass(System.String size_class, int minw, int minh, int maxw, int maxh) { + var _ret_var = Efl.Gfx.ISizeClassConcrete.NativeMethods.efl_gfx_size_class_set_ptr.Value.Delegate(this.NativeHandle,size_class, minw, minh, maxw, maxh); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -136,117 +174,179 @@ ISizeClass /// /// Deleting the size class will revert it to the values defined by or the size class defined in the theme file. /// The size class to be deleted. - /// - public void DelSizeClass( System.String size_class) { - Efl.Gfx.ISizeClassNativeInherit.efl_gfx_size_class_del_ptr.Value.Delegate(this.NativeHandle, size_class); + public void DelSizeClass(System.String size_class) { + Efl.Gfx.ISizeClassConcrete.NativeMethods.efl_gfx_size_class_del_ptr.Value.Delegate(this.NativeHandle,size_class); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Gfx.ISizeClassConcrete.efl_gfx_size_class_interface_get(); } -} -public class ISizeClassNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_size_class_get_static_delegate == null) - efl_gfx_size_class_get_static_delegate = new efl_gfx_size_class_get_delegate(size_class_get); - if (methods.FirstOrDefault(m => m.Name == "GetSizeClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_size_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_get_static_delegate)}); - if (efl_gfx_size_class_set_static_delegate == null) - efl_gfx_size_class_set_static_delegate = new efl_gfx_size_class_set_delegate(size_class_set); - if (methods.FirstOrDefault(m => m.Name == "SetSizeClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_size_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_set_static_delegate)}); - if (efl_gfx_size_class_del_static_delegate == null) - efl_gfx_size_class_del_static_delegate = new efl_gfx_size_class_del_delegate(size_class_del); - if (methods.FirstOrDefault(m => m.Name == "DelSizeClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_size_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_del_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.ISizeClassConcrete.efl_gfx_size_class_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.ISizeClassConcrete.efl_gfx_size_class_interface_get(); - } + 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_gfx_size_class_get_static_delegate == null) + { + efl_gfx_size_class_get_static_delegate = new efl_gfx_size_class_get_delegate(size_class_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_size_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, out int minw, out int minh, out int maxw, out int maxh); + if (methods.FirstOrDefault(m => m.Name == "GetSizeClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_size_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_get_static_delegate) }); + } + if (efl_gfx_size_class_set_static_delegate == null) + { + efl_gfx_size_class_set_static_delegate = new efl_gfx_size_class_set_delegate(size_class_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_size_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, out int minw, out int minh, out int maxw, out int maxh); - public static Efl.Eo.FunctionWrapper efl_gfx_size_class_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_size_class_get"); - private static bool size_class_get(System.IntPtr obj, System.IntPtr pd, System.String size_class, out int minw, out int minh, out int maxw, out int maxh) - { - Eina.Log.Debug("function efl_gfx_size_class_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - minw = default(int); minh = default(int); maxw = default(int); maxh = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((ISizeClass)wrapper).GetSizeClass( size_class, out minw, out minh, out maxw, out maxh); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSizeClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_size_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_size_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class, out minw, out minh, out maxw, out maxh); + + if (efl_gfx_size_class_del_static_delegate == null) + { + efl_gfx_size_class_del_static_delegate = new efl_gfx_size_class_del_delegate(size_class_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelSizeClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_size_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_size_class_del_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.Gfx.ISizeClassConcrete.efl_gfx_size_class_interface_get(); } - } - private static efl_gfx_size_class_get_delegate efl_gfx_size_class_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_size_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, int minw, int minh, int maxw, int maxh); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_size_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, out int minw, out int minh, out int maxw, out int maxh); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_size_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, out int minw, out int minh, out int maxw, out int maxh); + + public static Efl.Eo.FunctionWrapper efl_gfx_size_class_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_size_class_get"); + + private static bool size_class_get(System.IntPtr obj, System.IntPtr pd, System.String size_class, out int minw, out int minh, out int maxw, out int maxh) + { + Eina.Log.Debug("function efl_gfx_size_class_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + minw = default(int); minh = default(int); maxw = default(int); maxh = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((ISizeClass)wrapper).GetSizeClass(size_class, out minw, out minh, out maxw, out maxh); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_size_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, int minw, int minh, int maxw, int maxh); - public static Efl.Eo.FunctionWrapper efl_gfx_size_class_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_size_class_set"); - private static bool size_class_set(System.IntPtr obj, System.IntPtr pd, System.String size_class, int minw, int minh, int maxw, int maxh) - { - Eina.Log.Debug("function efl_gfx_size_class_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ISizeClass)wrapper).SetSizeClass( size_class, minw, minh, maxw, maxh); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_gfx_size_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class, out minw, out minh, out maxw, out maxh); + } + } + + private static efl_gfx_size_class_get_delegate efl_gfx_size_class_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_size_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, int minw, int minh, int maxw, int maxh); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_size_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class, int minw, int minh, int maxw, int maxh); + + public static Efl.Eo.FunctionWrapper efl_gfx_size_class_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_size_class_set"); + + private static bool size_class_set(System.IntPtr obj, System.IntPtr pd, System.String size_class, int minw, int minh, int maxw, int maxh) + { + Eina.Log.Debug("function efl_gfx_size_class_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ISizeClass)wrapper).SetSizeClass(size_class, minw, minh, maxw, maxh); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_size_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class, minw, minh, maxw, maxh); + + } + else + { + return efl_gfx_size_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class, minw, minh, maxw, maxh); + } } - } - private static efl_gfx_size_class_set_delegate efl_gfx_size_class_set_static_delegate; + private static efl_gfx_size_class_set_delegate efl_gfx_size_class_set_static_delegate; - private delegate void efl_gfx_size_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class); + + private delegate void efl_gfx_size_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class); + + public delegate void efl_gfx_size_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class); - public delegate void efl_gfx_size_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String size_class); - public static Efl.Eo.FunctionWrapper efl_gfx_size_class_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_size_class_del"); - private static void size_class_del(System.IntPtr obj, System.IntPtr pd, System.String size_class) - { - Eina.Log.Debug("function efl_gfx_size_class_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ISizeClass)wrapper).DelSizeClass( size_class); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_size_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class); + public static Efl.Eo.FunctionWrapper efl_gfx_size_class_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_size_class_del"); + + private static void size_class_del(System.IntPtr obj, System.IntPtr pd, System.String size_class) + { + Eina.Log.Debug("function efl_gfx_size_class_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ISizeClass)wrapper).DelSizeClass(size_class); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_size_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size_class); + } } - } - private static efl_gfx_size_class_del_delegate efl_gfx_size_class_del_static_delegate; + + private static efl_gfx_size_class_del_delegate efl_gfx_size_class_del_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_stack.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_stack.eo.cs index 1d8f193..cbd5c3a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_stack.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_stack.eo.cs @@ -3,21 +3,39 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { -public partial class Constants { +namespace Efl { + +namespace Gfx { + +public partial class Constants +{ public static readonly short StackLayerMin = -32768; } -} } -namespace Efl { namespace Gfx { -public partial class Constants { +} + +} + +namespace Efl { + +namespace Gfx { + +public partial class Constants +{ public static readonly short StackLayerMax = 32767; } -} } -namespace Efl { namespace Gfx { +} + +} + +namespace Efl { + +namespace Gfx { + /// Efl graphics stack interface /// (Since EFL 1.22) -[IStackNativeInherit] +[Efl.Gfx.IStackConcrete.NativeMethods] public interface IStack : Efl.Eo.IWrapper, IDisposable { @@ -36,8 +54,7 @@ short GetLayer(); /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . -/// -void SetLayer( short l); +void SetLayer(short l); /// Get the Evas object stacked right below obj /// This function will traverse layers in its search, if there are objects on layers below the one obj is placed at. /// @@ -64,14 +81,12 @@ Efl.Gfx.IStack GetAbove(); /// See also , and /// (Since EFL 1.22) /// The object below which to stack -/// -void StackBelow( Efl.Gfx.IStack below); +void StackBelow(Efl.Gfx.IStack below); /// Raise obj to the top of its layer. /// obj will, then, be the highest one in the layer it belongs to. Object on other layers won't get touched. /// /// See also , and /// (Since EFL 1.22) -/// void RaiseToTop(); /// Stack obj immediately above /// Objects, in a given canvas, are stacked in the order they're added. This means that, if they overlap, the highest ones will cover the lowest ones, in that order. This function is a way to change the stacking order for the objects. @@ -85,14 +100,12 @@ void RaiseToTop(); /// See also , and /// (Since EFL 1.22) /// The object above which to stack -/// -void StackAbove( Efl.Gfx.IStack above); +void StackAbove(Efl.Gfx.IStack above); /// Lower obj to the bottom of its layer. /// obj will, then, be the lowest one in the layer it belongs to. Objects on other layers won't get touched. /// /// See also , and /// (Since EFL 1.22) -/// void LowerToBottom(); /// Object stacking was changed. /// (Since EFL 1.22) @@ -132,175 +145,232 @@ IStack { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IStackConcrete)) - return Efl.Gfx.IStackNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IStackConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_stack_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IStackConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IStackConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object StackingChangedEvtKey = new object(); + /// Object stacking was changed. /// (Since EFL 1.22) public event EventHandler StackingChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_StackingChangedEvt_delegate)) { - eventHandlers.AddHandler(StackingChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_StackingChangedEvt_delegate)) { - eventHandlers.RemoveHandler(StackingChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event StackingChangedEvt. - public void On_StackingChangedEvt(EventArgs e) + public void OnStackingChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[StackingChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_StackingChangedEvt_delegate; - private void on_StackingChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_StackingChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_StackingChangedEvt_delegate = new Efl.EventCb(on_StackingChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Retrieves the layer of its canvas that the given object is part of. /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . public short GetLayer() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_layer_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_layer_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -314,9 +384,8 @@ private static object StackingChangedEvtKey = new object(); /// See also /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . - /// - public void SetLayer( short l) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_layer_set_ptr.Value.Delegate(this.NativeHandle, l); + public void SetLayer(short l) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_layer_set_ptr.Value.Delegate(this.NativeHandle,l); Eina.Error.RaiseIfUnhandledException(); } /// Get the Evas object stacked right below obj @@ -326,7 +395,7 @@ private static object StackingChangedEvtKey = new object(); /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. public Efl.Gfx.IStack GetBelow() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_below_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_below_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -337,7 +406,7 @@ private static object StackingChangedEvtKey = new object(); /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. public Efl.Gfx.IStack GetAbove() { - var _ret_var = Efl.Gfx.IStackNativeInherit.efl_gfx_stack_above_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_above_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -353,9 +422,8 @@ private static object StackingChangedEvtKey = new object(); /// See also , and /// (Since EFL 1.22) /// The object below which to stack - /// - public void StackBelow( Efl.Gfx.IStack below) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_below_ptr.Value.Delegate(this.NativeHandle, below); + public void StackBelow(Efl.Gfx.IStack below) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_below_ptr.Value.Delegate(this.NativeHandle,below); Eina.Error.RaiseIfUnhandledException(); } /// Raise obj to the top of its layer. @@ -363,9 +431,8 @@ private static object StackingChangedEvtKey = new object(); /// /// See also , and /// (Since EFL 1.22) - /// public void RaiseToTop() { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_raise_to_top_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_raise_to_top_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Stack obj immediately above @@ -380,9 +447,8 @@ private static object StackingChangedEvtKey = new object(); /// See also , and /// (Since EFL 1.22) /// The object above which to stack - /// - public void StackAbove( Efl.Gfx.IStack above) { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_above_ptr.Value.Delegate(this.NativeHandle, above); + public void StackAbove(Efl.Gfx.IStack above) { + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_above_ptr.Value.Delegate(this.NativeHandle,above); Eina.Error.RaiseIfUnhandledException(); } /// Lower obj to the bottom of its layer. @@ -390,9 +456,8 @@ private static object StackingChangedEvtKey = new object(); /// /// See also , and /// (Since EFL 1.22) - /// public void LowerToBottom() { - Efl.Gfx.IStackNativeInherit.efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(this.NativeHandle); + Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the layer of its canvas that the given object is part of. @@ -401,7 +466,7 @@ private static object StackingChangedEvtKey = new object(); /// The number of the layer to place the object on. Must be between and . public short Layer { get { return GetLayer(); } - set { SetLayer( value); } + set { SetLayer(value); } } /// Get the Evas object stacked right below obj /// This function will traverse layers in its search, if there are objects on layers below the one obj is placed at. @@ -425,249 +490,397 @@ private static object StackingChangedEvtKey = new object(); { return Efl.Gfx.IStackConcrete.efl_gfx_stack_interface_get(); } -} -public class IStackNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_gfx_stack_layer_get_static_delegate == null) - efl_gfx_stack_layer_get_static_delegate = new efl_gfx_stack_layer_get_delegate(layer_get); - if (methods.FirstOrDefault(m => m.Name == "GetLayer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_layer_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_get_static_delegate)}); - if (efl_gfx_stack_layer_set_static_delegate == null) - efl_gfx_stack_layer_set_static_delegate = new efl_gfx_stack_layer_set_delegate(layer_set); - if (methods.FirstOrDefault(m => m.Name == "SetLayer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_layer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_set_static_delegate)}); - if (efl_gfx_stack_below_get_static_delegate == null) - efl_gfx_stack_below_get_static_delegate = new efl_gfx_stack_below_get_delegate(below_get); - if (methods.FirstOrDefault(m => m.Name == "GetBelow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_below_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_get_static_delegate)}); - if (efl_gfx_stack_above_get_static_delegate == null) - efl_gfx_stack_above_get_static_delegate = new efl_gfx_stack_above_get_delegate(above_get); - if (methods.FirstOrDefault(m => m.Name == "GetAbove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_above_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_get_static_delegate)}); - if (efl_gfx_stack_below_static_delegate == null) - efl_gfx_stack_below_static_delegate = new efl_gfx_stack_below_delegate(stack_below); - if (methods.FirstOrDefault(m => m.Name == "StackBelow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_below"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_static_delegate)}); - if (efl_gfx_stack_raise_to_top_static_delegate == null) - efl_gfx_stack_raise_to_top_static_delegate = new efl_gfx_stack_raise_to_top_delegate(raise_to_top); - if (methods.FirstOrDefault(m => m.Name == "RaiseToTop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_raise_to_top"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_raise_to_top_static_delegate)}); - if (efl_gfx_stack_above_static_delegate == null) - efl_gfx_stack_above_static_delegate = new efl_gfx_stack_above_delegate(stack_above); - if (methods.FirstOrDefault(m => m.Name == "StackAbove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_above"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_static_delegate)}); - if (efl_gfx_stack_lower_to_bottom_static_delegate == null) - efl_gfx_stack_lower_to_bottom_static_delegate = new efl_gfx_stack_lower_to_bottom_delegate(lower_to_bottom); - if (methods.FirstOrDefault(m => m.Name == "LowerToBottom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_stack_lower_to_bottom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_lower_to_bottom_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IStackConcrete.efl_gfx_stack_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Gfx.IStackConcrete.efl_gfx_stack_interface_get(); - } - + 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_gfx_stack_layer_get_static_delegate == null) + { + efl_gfx_stack_layer_get_static_delegate = new efl_gfx_stack_layer_get_delegate(layer_get); + } - private delegate short efl_gfx_stack_layer_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLayer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_layer_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_get_static_delegate) }); + } + if (efl_gfx_stack_layer_set_static_delegate == null) + { + efl_gfx_stack_layer_set_static_delegate = new efl_gfx_stack_layer_set_delegate(layer_set); + } - public delegate short efl_gfx_stack_layer_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_layer_get"); - private static short layer_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_layer_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - short _ret_var = default(short); - try { - _ret_var = ((IStack)wrapper).GetLayer(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLayer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_layer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_layer_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_stack_layer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_stack_layer_get_delegate efl_gfx_stack_layer_get_static_delegate; + if (efl_gfx_stack_below_get_static_delegate == null) + { + efl_gfx_stack_below_get_static_delegate = new efl_gfx_stack_below_get_delegate(below_get); + } - private delegate void efl_gfx_stack_layer_set_delegate(System.IntPtr obj, System.IntPtr pd, short l); + if (methods.FirstOrDefault(m => m.Name == "GetBelow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_below_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_get_static_delegate) }); + } + if (efl_gfx_stack_above_get_static_delegate == null) + { + efl_gfx_stack_above_get_static_delegate = new efl_gfx_stack_above_get_delegate(above_get); + } - public delegate void efl_gfx_stack_layer_set_api_delegate(System.IntPtr obj, short l); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_layer_set"); - private static void layer_set(System.IntPtr obj, System.IntPtr pd, short l) - { - Eina.Log.Debug("function efl_gfx_stack_layer_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IStack)wrapper).SetLayer( l); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_layer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l); - } - } - private static efl_gfx_stack_layer_set_delegate efl_gfx_stack_layer_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetAbove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_above_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_get_static_delegate) }); + } + if (efl_gfx_stack_below_static_delegate == null) + { + efl_gfx_stack_below_static_delegate = new efl_gfx_stack_below_delegate(stack_below); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IStack efl_gfx_stack_below_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "StackBelow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_below"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_below_static_delegate) }); + } + if (efl_gfx_stack_raise_to_top_static_delegate == null) + { + efl_gfx_stack_raise_to_top_static_delegate = new efl_gfx_stack_raise_to_top_delegate(raise_to_top); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IStack efl_gfx_stack_below_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_below_get"); - private static Efl.Gfx.IStack below_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_below_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); - try { - _ret_var = ((IStack)wrapper).GetBelow(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "RaiseToTop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_raise_to_top"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_raise_to_top_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_stack_below_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_stack_below_get_delegate efl_gfx_stack_below_get_static_delegate; + if (efl_gfx_stack_above_static_delegate == null) + { + efl_gfx_stack_above_static_delegate = new efl_gfx_stack_above_delegate(stack_above); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IStack efl_gfx_stack_above_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "StackAbove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_above"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_above_static_delegate) }); + } + if (efl_gfx_stack_lower_to_bottom_static_delegate == null) + { + efl_gfx_stack_lower_to_bottom_static_delegate = new efl_gfx_stack_lower_to_bottom_delegate(lower_to_bottom); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IStack efl_gfx_stack_above_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_above_get"); - private static Efl.Gfx.IStack above_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_above_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); - try { - _ret_var = ((IStack)wrapper).GetAbove(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "LowerToBottom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_stack_lower_to_bottom"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_stack_lower_to_bottom_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.Gfx.IStackConcrete.efl_gfx_stack_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate short efl_gfx_stack_layer_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate short efl_gfx_stack_layer_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_layer_get"); + + private static short layer_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_layer_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + short _ret_var = default(short); + try + { + _ret_var = ((IStack)wrapper).GetLayer(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_stack_above_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_stack_layer_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_stack_above_get_delegate efl_gfx_stack_above_get_static_delegate; + private static efl_gfx_stack_layer_get_delegate efl_gfx_stack_layer_get_static_delegate; + + + private delegate void efl_gfx_stack_layer_set_delegate(System.IntPtr obj, System.IntPtr pd, short l); + + + public delegate void efl_gfx_stack_layer_set_api_delegate(System.IntPtr obj, short l); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_layer_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_layer_set"); + + private static void layer_set(System.IntPtr obj, System.IntPtr pd, short l) + { + Eina.Log.Debug("function efl_gfx_stack_layer_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IStack)wrapper).SetLayer(l); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_stack_below_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack below); + + } + else + { + efl_gfx_stack_layer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l); + } + } + private static efl_gfx_stack_layer_set_delegate efl_gfx_stack_layer_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IStack efl_gfx_stack_below_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IStack efl_gfx_stack_below_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_below_get"); + + private static Efl.Gfx.IStack below_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_below_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); + try + { + _ret_var = ((IStack)wrapper).GetBelow(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_stack_below_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack below); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_below"); - private static void stack_below(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack below) - { - Eina.Log.Debug("function efl_gfx_stack_below was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IStack)wrapper).StackBelow( below); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_below_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), below); + return _ret_var; + + } + else + { + return efl_gfx_stack_below_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_stack_below_delegate efl_gfx_stack_below_static_delegate; + private static efl_gfx_stack_below_get_delegate efl_gfx_stack_below_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IStack efl_gfx_stack_above_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IStack efl_gfx_stack_above_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_above_get"); + + private static Efl.Gfx.IStack above_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_above_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IStack _ret_var = default(Efl.Gfx.IStack); + try + { + _ret_var = ((IStack)wrapper).GetAbove(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_stack_raise_to_top_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_stack_above_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_stack_above_get_delegate efl_gfx_stack_above_get_static_delegate; + + + private delegate void efl_gfx_stack_below_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack below); + + + public delegate void efl_gfx_stack_below_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack below); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_below_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_below"); + + private static void stack_below(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack below) + { + Eina.Log.Debug("function efl_gfx_stack_below was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IStack)wrapper).StackBelow(below); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_stack_raise_to_top_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_raise_to_top_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_raise_to_top"); - private static void raise_to_top(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_raise_to_top was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IStack)wrapper).RaiseToTop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_raise_to_top_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_gfx_stack_below_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), below); + } } - } - private static efl_gfx_stack_raise_to_top_delegate efl_gfx_stack_raise_to_top_static_delegate; + private static efl_gfx_stack_below_delegate efl_gfx_stack_below_static_delegate; + + + private delegate void efl_gfx_stack_raise_to_top_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_stack_raise_to_top_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_raise_to_top_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_raise_to_top"); + + private static void raise_to_top(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_raise_to_top was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IStack)wrapper).RaiseToTop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_stack_raise_to_top_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_stack_above_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack above); + private static efl_gfx_stack_raise_to_top_delegate efl_gfx_stack_raise_to_top_static_delegate; + + + private delegate void efl_gfx_stack_above_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack above); + + + public delegate void efl_gfx_stack_above_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IStack above); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_above"); + + private static void stack_above(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack above) + { + Eina.Log.Debug("function efl_gfx_stack_above was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IStack)wrapper).StackAbove(above); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_stack_above_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), above); + } + } - public delegate void efl_gfx_stack_above_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IStack above); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_above_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_above"); - private static void stack_above(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IStack above) - { - Eina.Log.Debug("function efl_gfx_stack_above was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IStack)wrapper).StackAbove( above); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_above_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), above); + private static efl_gfx_stack_above_delegate efl_gfx_stack_above_static_delegate; + + + private delegate void efl_gfx_stack_lower_to_bottom_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_stack_lower_to_bottom_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_stack_lower_to_bottom_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_stack_lower_to_bottom"); + + private static void lower_to_bottom(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_stack_lower_to_bottom was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IStack)wrapper).LowerToBottom(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_stack_above_delegate efl_gfx_stack_above_static_delegate; + private static efl_gfx_stack_lower_to_bottom_delegate efl_gfx_stack_lower_to_bottom_static_delegate; - private delegate void efl_gfx_stack_lower_to_bottom_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_gfx_stack_lower_to_bottom_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_stack_lower_to_bottom_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_stack_lower_to_bottom"); - private static void lower_to_bottom(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_stack_lower_to_bottom was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IStack)wrapper).LowerToBottom(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_stack_lower_to_bottom_delegate efl_gfx_stack_lower_to_bottom_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_text_class.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_text_class.eo.cs index 9649849..483c075 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_text_class.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_text_class.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Efl Gfx Text Class interface -[ITextClassNativeInherit] +[Efl.Gfx.ITextClassConcrete.NativeMethods] public interface ITextClass : Efl.Eo.IWrapper, IDisposable { @@ -16,21 +20,20 @@ public interface ITextClass : /// Font name /// Font Size /// true, on success or false, on error -bool GetTextClass( System.String text_class, out System.String font, out Efl.Font.Size size); +bool GetTextClass(System.String text_class, out System.String font, out Efl.Font.Size size); /// Set Edje text class. /// This function sets the text class for the Edje. /// The text class name /// Font name /// Font Size /// true, on success or false, on error -bool SetTextClass( System.String text_class, System.String font, Efl.Font.Size size); +bool SetTextClass(System.String text_class, System.String font, Efl.Font.Size size); /// Delete the text class. /// This function deletes any values for the specified text class. /// /// Deleting the text class will revert it to the values defined by or the text class defined in the theme file. /// The text class to be deleted. -/// -void DelTextClass( System.String text_class); +void DelTextClass(System.String text_class); } /// Efl Gfx Text Class interface sealed public class ITextClassConcrete : @@ -39,76 +42,111 @@ ITextClass { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextClassConcrete)) - return Efl.Gfx.ITextClassNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextClassConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_text_class_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextClassConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextClassConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Get font and font size from edje text class. /// This function gets the font and the font size from text class. The font string will only be valid until the text class is changed or the edje object is deleted. /// The text class name /// Font name /// Font Size /// true, on success or false, on error - public bool GetTextClass( System.String text_class, out System.String font, out Efl.Font.Size size) { - var _ret_var = Efl.Gfx.ITextClassNativeInherit.efl_gfx_text_class_get_ptr.Value.Delegate(this.NativeHandle, text_class, out font, out size); + public bool GetTextClass(System.String text_class, out System.String font, out Efl.Font.Size size) { + var _ret_var = Efl.Gfx.ITextClassConcrete.NativeMethods.efl_gfx_text_class_get_ptr.Value.Delegate(this.NativeHandle,text_class, out font, out size); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -118,8 +156,8 @@ ITextClass /// Font name /// Font Size /// true, on success or false, on error - public bool SetTextClass( System.String text_class, System.String font, Efl.Font.Size size) { - var _ret_var = Efl.Gfx.ITextClassNativeInherit.efl_gfx_text_class_set_ptr.Value.Delegate(this.NativeHandle, text_class, font, size); + public bool SetTextClass(System.String text_class, System.String font, Efl.Font.Size size) { + var _ret_var = Efl.Gfx.ITextClassConcrete.NativeMethods.efl_gfx_text_class_set_ptr.Value.Delegate(this.NativeHandle,text_class, font, size); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -128,119 +166,181 @@ ITextClass /// /// Deleting the text class will revert it to the values defined by or the text class defined in the theme file. /// The text class to be deleted. - /// - public void DelTextClass( System.String text_class) { - Efl.Gfx.ITextClassNativeInherit.efl_gfx_text_class_del_ptr.Value.Delegate(this.NativeHandle, text_class); + public void DelTextClass(System.String text_class) { + Efl.Gfx.ITextClassConcrete.NativeMethods.efl_gfx_text_class_del_ptr.Value.Delegate(this.NativeHandle,text_class); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Gfx.ITextClassConcrete.efl_gfx_text_class_interface_get(); } -} -public class ITextClassNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_text_class_get_static_delegate == null) - efl_gfx_text_class_get_static_delegate = new efl_gfx_text_class_get_delegate(text_class_get); - if (methods.FirstOrDefault(m => m.Name == "GetTextClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_text_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_get_static_delegate)}); - if (efl_gfx_text_class_set_static_delegate == null) - efl_gfx_text_class_set_static_delegate = new efl_gfx_text_class_set_delegate(text_class_set); - if (methods.FirstOrDefault(m => m.Name == "SetTextClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_text_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_set_static_delegate)}); - if (efl_gfx_text_class_del_static_delegate == null) - efl_gfx_text_class_del_static_delegate = new efl_gfx_text_class_del_delegate(text_class_del); - if (methods.FirstOrDefault(m => m.Name == "DelTextClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_text_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_del_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.ITextClassConcrete.efl_gfx_text_class_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.ITextClassConcrete.efl_gfx_text_class_interface_get(); - } + 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_gfx_text_class_get_static_delegate == null) + { + efl_gfx_text_class_get_static_delegate = new efl_gfx_text_class_get_delegate(text_class_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_text_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + if (methods.FirstOrDefault(m => m.Name == "GetTextClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_text_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_get_static_delegate) }); + } + if (efl_gfx_text_class_set_static_delegate == null) + { + efl_gfx_text_class_set_static_delegate = new efl_gfx_text_class_set_delegate(text_class_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_text_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_gfx_text_class_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_text_class_get"); - private static bool text_class_get(System.IntPtr obj, System.IntPtr pd, System.String text_class, out System.String font, out Efl.Font.Size size) - { - Eina.Log.Debug("function efl_gfx_text_class_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_font = default(System.String); - size = default(Efl.Font.Size); bool _ret_var = default(bool); - try { - _ret_var = ((ITextClass)wrapper).GetTextClass( text_class, out _out_font, out size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetTextClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_text_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_set_static_delegate) }); + } + + if (efl_gfx_text_class_del_static_delegate == null) + { + efl_gfx_text_class_del_static_delegate = new efl_gfx_text_class_del_delegate(text_class_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelTextClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_text_class_del"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_text_class_del_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.Gfx.ITextClassConcrete.efl_gfx_text_class_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_text_class_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_text_class_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + + public static Efl.Eo.FunctionWrapper efl_gfx_text_class_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_text_class_get"); + + private static bool text_class_get(System.IntPtr obj, System.IntPtr pd, System.String text_class, out System.String font, out Efl.Font.Size size) + { + Eina.Log.Debug("function efl_gfx_text_class_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_font = default(System.String); + size = default(Efl.Font.Size); bool _ret_var = default(bool); + try + { + _ret_var = ((ITextClass)wrapper).GetTextClass(text_class, out _out_font, out size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + font = _out_font; return _ret_var; - } else { - return efl_gfx_text_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class, out font, out size); + + } + else + { + return efl_gfx_text_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class, out font, out size); + } } - } - private static efl_gfx_text_class_get_delegate efl_gfx_text_class_get_static_delegate; + private static efl_gfx_text_class_get_delegate efl_gfx_text_class_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_text_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_text_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_text_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + + public static Efl.Eo.FunctionWrapper efl_gfx_text_class_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_text_class_set"); + + private static bool text_class_set(System.IntPtr obj, System.IntPtr pd, System.String text_class, System.String font, Efl.Font.Size size) + { + Eina.Log.Debug("function efl_gfx_text_class_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextClass)wrapper).SetTextClass(text_class, font, size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_text_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_gfx_text_class_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_text_class_set"); - private static bool text_class_set(System.IntPtr obj, System.IntPtr pd, System.String text_class, System.String font, Efl.Font.Size size) - { - Eina.Log.Debug("function efl_gfx_text_class_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextClass)wrapper).SetTextClass( text_class, font, size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_text_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class, font, size); + + } + else + { + return efl_gfx_text_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class, font, size); + } } - } - private static efl_gfx_text_class_set_delegate efl_gfx_text_class_set_static_delegate; + private static efl_gfx_text_class_set_delegate efl_gfx_text_class_set_static_delegate; - private delegate void efl_gfx_text_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class); + + private delegate void efl_gfx_text_class_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class); + + public delegate void efl_gfx_text_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class); - public delegate void efl_gfx_text_class_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text_class); - public static Efl.Eo.FunctionWrapper efl_gfx_text_class_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_text_class_del"); - private static void text_class_del(System.IntPtr obj, System.IntPtr pd, System.String text_class) - { - Eina.Log.Debug("function efl_gfx_text_class_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextClass)wrapper).DelTextClass( text_class); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_text_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class); + public static Efl.Eo.FunctionWrapper efl_gfx_text_class_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_text_class_del"); + + private static void text_class_del(System.IntPtr obj, System.IntPtr pd, System.String text_class) + { + Eina.Log.Debug("function efl_gfx_text_class_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextClass)wrapper).DelTextClass(text_class); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_text_class_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text_class); + } } - } - private static efl_gfx_text_class_del_delegate efl_gfx_text_class_del_static_delegate; + + private static efl_gfx_text_class_del_delegate efl_gfx_text_class_del_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_types.eot.cs index afd24d5..073a8cb 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_types.eot.cs @@ -3,21 +3,35 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Font { -public struct Size { +namespace Efl { + +namespace Font { + +public struct Size +{ private int payload; public static implicit operator Size(int x) { return new Size{payload=x}; } + public static implicit operator int(Size x) { return x.payload; } + +} + +} + } -} } -namespace Efl { namespace Gfx { + +namespace Efl { + +namespace Gfx { + /// Graphics colorspace type public enum Colorspace { @@ -69,11 +83,17 @@ RgbaS3tcDxt4 = 17, /// OpenGL COMPRESSED_RGBA_S3TC_DXT5_EXT format with RGBA. /// (Since EFL 1.11.) RgbaS3tcDxt5 = 18, -/// Palette = 19, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// Graphics render operation mode public enum RenderOp { @@ -84,8 +104,15 @@ Copy = 1, /// Sentinel value to indicate last enum field during iteration Last = 2, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// These values determine how the points are interpreted in a stream of points. /// (Since EFL 1.14) public enum PathCommandType @@ -103,8 +130,15 @@ Close = 4, /// Sentinel value to indicate last enum field during iteration Last = 5, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// These values determine how the end of opened sub-paths are rendered in a stroke. /// (Since EFL 1.14) public enum Cap @@ -118,8 +152,15 @@ Square = 2, /// Sentinel value to indicate last enum field during iteration Last = 3, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// These values determine how two joining lines are rendered in a stroker. /// (Since EFL 1.14) public enum Join @@ -133,8 +174,15 @@ Bevel = 2, /// Sentinel value to indicate last enum field during iteration Last = 3, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// Specifies how the area outside the gradient area should be filled. /// (Since EFL 1.14) public enum GradientSpread @@ -148,8 +196,15 @@ Repeat = 2, /// Sentinel value to indicate last enum field during iteration Last = 3, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// Type defining how an image content get filled. /// (Since EFL 1.14) public enum FillRule @@ -159,8 +214,15 @@ Winding = 0, /// Draw a horizontal line from the point to a location outside the shape, and count the number of intersections. If the number of intersections is an odd number, the point is inside the shape. OddEven = 1, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// How an image's center region (the complement to the border region) should be rendered by EFL public enum BorderFillMode { @@ -171,8 +233,15 @@ Default = 1, /// Image's center region is to be made solid, even if it has transparency on it Solid = 2, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// What property got changed for this object /// (Since EFL 1.18) public enum ChangeFlag @@ -188,8 +257,15 @@ Fill = 4, /// all properties got changed All = 65535, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// Aspect types/policies for scaling size hints. /// See also . public enum HintAspect @@ -205,8 +281,15 @@ Vertical = 3, /// Use all horizontal and vertical container spaces to place an object (never growing it out of those bounds), using the given aspect. Both = 4, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// Efl Gfx Color Class layer enum public enum ColorClassLayer { @@ -217,8 +300,15 @@ Outline = 1, /// Shadow color Shadow = 2, } -} } -namespace Efl { namespace Gfx { + +} + +} + +namespace Efl { + +namespace Gfx { + /// Type describing dash. /// (Since EFL 1.14) [StructLayout(LayoutKind.Sequential)] @@ -230,8 +320,8 @@ public struct Dash public double Gap; ///Constructor for Dash. public Dash( - double Length=default(double), - double Gap=default(double) ) + double Length = default(double), + double Gap = default(double) ) { this.Length = Length; this.Gap = Gap; @@ -273,8 +363,14 @@ public struct Dash } -} } -namespace Efl { namespace Gfx { +} + +} + +namespace Efl { + +namespace Gfx { + /// Type defining gradient stops. Describes the location and color of a transition point in a gradient. /// (Since EFL 1.14) [StructLayout(LayoutKind.Sequential)] @@ -292,11 +388,11 @@ public struct GradientStop public int A; ///Constructor for GradientStop. public GradientStop( - double Offset=default(double), - int R=default(int), - int G=default(int), - int B=default(int), - int A=default(int) ) + double Offset = default(double), + int R = default(int), + int G = default(int), + int B = default(int), + int A = default(int) ) { this.Offset = Offset; this.R = R; @@ -353,8 +449,14 @@ public struct GradientStop } -} } -namespace Efl { namespace Gfx { +} + +} + +namespace Efl { + +namespace Gfx { + /// Internal structure for . [StructLayout(LayoutKind.Sequential)] public struct StrokeColor @@ -369,10 +471,10 @@ public struct StrokeColor public int A; ///Constructor for StrokeColor. public StrokeColor( - int R=default(int), - int G=default(int), - int B=default(int), - int A=default(int) ) + int R = default(int), + int G = default(int), + int B = default(int), + int A = default(int) ) { this.R = R; this.G = G; @@ -424,8 +526,14 @@ public struct StrokeColor } -} } -namespace Efl { namespace Gfx { +} + +} + +namespace Efl { + +namespace Gfx { + /// Type defining stroke information. Describes the properties to define the path stroke. /// (Since EFL 1.14) [StructLayout(LayoutKind.Sequential)] @@ -449,14 +557,14 @@ public struct Stroke public Efl.Gfx.Join Join; ///Constructor for Stroke. public Stroke( - double Scale=default(double), - double Width=default(double), - double Centered=default(double), - Efl.Gfx.StrokeColor Color=default(Efl.Gfx.StrokeColor), - Efl.Gfx.Dash Dash=default(Efl.Gfx.Dash), - uint Dash_length=default(uint), - Efl.Gfx.Cap Cap=default(Efl.Gfx.Cap), - Efl.Gfx.Join Join=default(Efl.Gfx.Join) ) + double Scale = default(double), + double Width = default(double), + double Centered = default(double), + Efl.Gfx.StrokeColor Color = default(Efl.Gfx.StrokeColor), + Efl.Gfx.Dash Dash = default(Efl.Gfx.Dash), + uint Dash_length = default(uint), + Efl.Gfx.Cap Cap = default(Efl.Gfx.Cap), + Efl.Gfx.Join Join = default(Efl.Gfx.Join) ) { this.Scale = Scale; this.Width = Width; @@ -528,8 +636,14 @@ public struct Stroke } -} } -namespace Efl { namespace Gfx { +} + +} + +namespace Efl { + +namespace Gfx { + /// Public shape [StructLayout(LayoutKind.Sequential)] public struct ShapePublic @@ -538,7 +652,7 @@ public struct ShapePublic public Efl.Gfx.Stroke Stroke; ///Constructor for ShapePublic. public ShapePublic( - Efl.Gfx.Stroke Stroke=default(Efl.Gfx.Stroke) ) + Efl.Gfx.Stroke Stroke = default(Efl.Gfx.Stroke) ) { this.Stroke = Stroke; } @@ -575,9 +689,14 @@ public struct ShapePublic } -} } -namespace Efl { namespace Gfx { -/// +} + +} + +namespace Efl { + +namespace Gfx { + [StructLayout(LayoutKind.Sequential)] public struct PathChangeEvent { @@ -585,7 +704,7 @@ public struct PathChangeEvent public Efl.Gfx.ChangeFlag What; ///Constructor for PathChangeEvent. public PathChangeEvent( - Efl.Gfx.ChangeFlag What=default(Efl.Gfx.ChangeFlag) ) + Efl.Gfx.ChangeFlag What = default(Efl.Gfx.ChangeFlag) ) { this.What = What; } @@ -622,8 +741,16 @@ public struct PathChangeEvent } -} } -namespace Efl { namespace Gfx { namespace Event { +} + +} + +namespace Efl { + +namespace Gfx { + +namespace Event { + /// Data sent along a "render,post" event, after a frame has been rendered. [StructLayout(LayoutKind.Sequential)] public struct RenderPost @@ -632,7 +759,7 @@ public struct RenderPost public Eina.List Updated_area; ///Constructor for RenderPost. public RenderPost( - Eina.List Updated_area=default(Eina.List) ) + Eina.List Updated_area = default(Eina.List) ) { this.Updated_area = Updated_area; } @@ -669,4 +796,9 @@ public struct RenderPost } -} } } +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_view.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_view.eo.cs index d995ed1..11a13a8 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_view.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_view.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Gfx { +namespace Efl { + +namespace Gfx { + /// Efl graphics view interface -[IViewNativeInherit] +[Efl.Gfx.IViewConcrete.NativeMethods] public interface IView : Efl.Eo.IWrapper, IDisposable { @@ -33,8 +37,7 @@ Eina.Size2D GetViewSize(); /// /// Refer to each implementing class specific documentation for more details. /// Size of the view. -/// -void SetViewSize( Eina.Size2D size); +void SetViewSize(Eina.Size2D size); /// The dimensions of this object's viewport. /// This property represents the size of an image (file on disk, vector graphics, GL or 3D scene, ...) view: this is the logical size of a view, not the number of pixels in the buffer, nor its visible size on the window. /// @@ -58,68 +61,103 @@ IView { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IViewConcrete)) - return Efl.Gfx.IViewNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IViewConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_gfx_view_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IViewConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IViewConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// The dimensions of this object's viewport. /// This property represents the size of an image (file on disk, vector graphics, GL or 3D scene, ...) view: this is the logical size of a view, not the number of pixels in the buffer, nor its visible size on the window. /// @@ -132,7 +170,7 @@ IView /// Refer to each implementing class specific documentation for more details. /// Size of the view. public Eina.Size2D GetViewSize() { - var _ret_var = Efl.Gfx.IViewNativeInherit.efl_gfx_view_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Gfx.IViewConcrete.NativeMethods.efl_gfx_view_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -147,10 +185,9 @@ IView /// /// Refer to each implementing class specific documentation for more details. /// Size of the view. - /// - public void SetViewSize( Eina.Size2D size) { + public void SetViewSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IViewNativeInherit.efl_gfx_view_size_set_ptr.Value.Delegate(this.NativeHandle, _in_size); + Efl.Gfx.IViewConcrete.NativeMethods.efl_gfx_view_size_set_ptr.Value.Delegate(this.NativeHandle,_in_size); Eina.Error.RaiseIfUnhandledException(); } /// The dimensions of this object's viewport. @@ -166,86 +203,132 @@ IView /// Size of the view. public Eina.Size2D ViewSize { get { return GetViewSize(); } - set { SetViewSize( value); } + set { SetViewSize(value); } } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IViewConcrete.efl_gfx_view_interface_get(); } -} -public class IViewNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_gfx_view_size_get_static_delegate == null) - efl_gfx_view_size_get_static_delegate = new efl_gfx_view_size_get_delegate(view_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_view_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_get_static_delegate)}); - if (efl_gfx_view_size_set_static_delegate == null) - efl_gfx_view_size_set_static_delegate = new efl_gfx_view_size_set_delegate(view_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetViewSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_view_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Gfx.IViewConcrete.efl_gfx_view_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Gfx.IViewConcrete.efl_gfx_view_interface_get(); - } + 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_gfx_view_size_get_static_delegate == null) + { + efl_gfx_view_size_get_static_delegate = new efl_gfx_view_size_get_delegate(view_size_get); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetViewSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_view_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_get_static_delegate) }); + } + if (efl_gfx_view_size_set_static_delegate == null) + { + efl_gfx_view_size_set_static_delegate = new efl_gfx_view_size_set_delegate(view_size_set); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_view_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_view_size_get"); - private static Eina.Size2D.NativeStruct view_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_view_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IView)wrapper).GetViewSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetViewSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_view_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_set_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.Gfx.IViewConcrete.efl_gfx_view_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_view_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_view_size_get"); + + private static Eina.Size2D.NativeStruct view_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_view_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IView)wrapper).GetViewSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_view_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_view_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_view_size_get_delegate efl_gfx_view_size_get_static_delegate; + private static efl_gfx_view_size_get_delegate efl_gfx_view_size_get_static_delegate; - private delegate void efl_gfx_view_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + private delegate void efl_gfx_view_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_gfx_view_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public delegate void efl_gfx_view_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_view_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_view_size_set"); - private static void view_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_view_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; + public static Efl.Eo.FunctionWrapper efl_gfx_view_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_view_size_set"); + + private static void view_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_view_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; - try { - ((IView)wrapper).SetViewSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IView)wrapper).SetViewSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_view_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - } else { - efl_gfx_view_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - } - private static efl_gfx_view_size_set_delegate efl_gfx_view_size_set_static_delegate; + + private static efl_gfx_view_size_set_delegate efl_gfx_view_size_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_device.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_device.eo.cs index f80da13..c94e2fe 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_device.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_device.eo.cs @@ -3,87 +3,109 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Input { +namespace Efl { + +namespace Input { + /// Represents a pointing device such as a touch finger, pen or mouse. -[DeviceNativeInherit] +[Efl.Input.Device.NativeMethods] public class Device : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Device)) - return Efl.Input.DeviceNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Device)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_input_device_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Device(Efl.Object parent= null - ) : - base(efl_input_device_class_get(), typeof(Device), parent) + ) : base(efl_input_device_class_get(), typeof(Device), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Device(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Device(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Device(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Device type property /// Input device class virtual public Efl.Input.DeviceType GetDeviceType() { - var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Device type property /// Input device class - /// - virtual public void SetDeviceType( Efl.Input.DeviceType klass) { - Efl.Input.DeviceNativeInherit.efl_input_device_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), klass); + virtual public void SetDeviceType(Efl.Input.DeviceType klass) { + Efl.Input.Device.NativeMethods.efl_input_device_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),klass); Eina.Error.RaiseIfUnhandledException(); } /// Device source property /// Input device virtual public Efl.Input.Device GetSource() { - var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Device source property /// Input device - /// - virtual public void SetSource( Efl.Input.Device src) { - Efl.Input.DeviceNativeInherit.efl_input_device_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), src); + virtual public void SetSource(Efl.Input.Device src) { + Efl.Input.Device.NativeMethods.efl_input_device_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),src); Eina.Error.RaiseIfUnhandledException(); } /// Get the that represents a seat. @@ -94,29 +116,28 @@ public class Device : Efl.Object, Efl.Eo.IWrapper /// In case no seat is found, null is returned. /// The seat this device belongs to. virtual public Efl.Input.Device GetSeat() { - var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_seat_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_seat_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Seat id number /// The id of the seat virtual public uint GetSeatId() { - var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_seat_id_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_seat_id_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Seat id number /// The id of the seat - /// - virtual public void SetSeatId( uint id) { - Efl.Input.DeviceNativeInherit.efl_input_device_seat_id_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id); + virtual public void SetSeatId(uint id) { + Efl.Input.Device.NativeMethods.efl_input_device_seat_id_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),id); Eina.Error.RaiseIfUnhandledException(); } /// Lists the children attached to this device. /// This is only meaningful with seat devices, as they are groups of real input devices. /// List of device children virtual public Eina.Iterator ChildrenIterate() { - var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_children_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_children_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -126,7 +147,7 @@ public class Device : Efl.Object, Efl.Eo.IWrapper /// If a seat device is passed returns the number of pointer devices in the seat. /// Pointer caps virtual public uint HasPointerCaps() { - var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_has_pointer_caps_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_has_pointer_caps_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -134,13 +155,13 @@ public class Device : Efl.Object, Efl.Eo.IWrapper /// Input device class public Efl.Input.DeviceType DeviceType { get { return GetDeviceType(); } - set { SetDeviceType( value); } + set { SetDeviceType(value); } } /// Device source property /// Input device public Efl.Input.Device Source { get { return GetSource(); } - set { SetSource( value); } + set { SetSource(value); } } /// Get the that represents a seat. /// This method will find the seat the device belongs to. @@ -156,291 +177,459 @@ public class Device : Efl.Object, Efl.Eo.IWrapper /// The id of the seat public uint SeatId { get { return GetSeatId(); } - set { SetSeatId( value); } + set { SetSeatId(value); } } private static IntPtr GetEflClassStatic() { return Efl.Input.Device.efl_input_device_class_get(); } -} -public class DeviceNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_input_device_type_get_static_delegate == null) - efl_input_device_type_get_static_delegate = new efl_input_device_type_get_delegate(device_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetDeviceType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_type_get_static_delegate)}); - if (efl_input_device_type_set_static_delegate == null) - efl_input_device_type_set_static_delegate = new efl_input_device_type_set_delegate(device_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetDeviceType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_type_set_static_delegate)}); - if (efl_input_device_source_get_static_delegate == null) - efl_input_device_source_get_static_delegate = new efl_input_device_source_get_delegate(source_get); - if (methods.FirstOrDefault(m => m.Name == "GetSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_source_get_static_delegate)}); - if (efl_input_device_source_set_static_delegate == null) - efl_input_device_source_set_static_delegate = new efl_input_device_source_set_delegate(source_set); - if (methods.FirstOrDefault(m => m.Name == "SetSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_source_set_static_delegate)}); - if (efl_input_device_seat_get_static_delegate == null) - efl_input_device_seat_get_static_delegate = new efl_input_device_seat_get_delegate(seat_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeat") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_seat_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_seat_get_static_delegate)}); - if (efl_input_device_seat_id_get_static_delegate == null) - efl_input_device_seat_id_get_static_delegate = new efl_input_device_seat_id_get_delegate(seat_id_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeatId") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_seat_id_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_seat_id_get_static_delegate)}); - if (efl_input_device_seat_id_set_static_delegate == null) - efl_input_device_seat_id_set_static_delegate = new efl_input_device_seat_id_set_delegate(seat_id_set); - if (methods.FirstOrDefault(m => m.Name == "SetSeatId") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_seat_id_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_seat_id_set_static_delegate)}); - if (efl_input_device_children_iterate_static_delegate == null) - efl_input_device_children_iterate_static_delegate = new efl_input_device_children_iterate_delegate(children_iterate); - if (methods.FirstOrDefault(m => m.Name == "ChildrenIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_children_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_children_iterate_static_delegate)}); - if (efl_input_device_has_pointer_caps_static_delegate == null) - efl_input_device_has_pointer_caps_static_delegate = new efl_input_device_has_pointer_caps_delegate(has_pointer_caps); - if (methods.FirstOrDefault(m => m.Name == "HasPointerCaps") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_has_pointer_caps"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_has_pointer_caps_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Input.Device.efl_input_device_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Input.Device.efl_input_device_class_get(); - } + 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_input_device_type_get_static_delegate == null) + { + efl_input_device_type_get_static_delegate = new efl_input_device_type_get_delegate(device_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetDeviceType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_type_get_static_delegate) }); + } - private delegate Efl.Input.DeviceType efl_input_device_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_device_type_set_static_delegate == null) + { + efl_input_device_type_set_static_delegate = new efl_input_device_type_set_delegate(device_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetDeviceType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_type_set_static_delegate) }); + } - public delegate Efl.Input.DeviceType efl_input_device_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_device_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_type_get"); - private static Efl.Input.DeviceType device_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_device_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.DeviceType _ret_var = default(Efl.Input.DeviceType); - try { - _ret_var = ((Device)wrapper).GetDeviceType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_device_source_get_static_delegate == null) + { + efl_input_device_source_get_static_delegate = new efl_input_device_source_get_delegate(source_get); } - return _ret_var; - } else { - return efl_input_device_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_device_type_get_delegate efl_input_device_type_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_source_get_static_delegate) }); + } - private delegate void efl_input_device_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.DeviceType klass); + if (efl_input_device_source_set_static_delegate == null) + { + efl_input_device_source_set_static_delegate = new efl_input_device_source_set_delegate(source_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_source_set_static_delegate) }); + } - public delegate void efl_input_device_type_set_api_delegate(System.IntPtr obj, Efl.Input.DeviceType klass); - public static Efl.Eo.FunctionWrapper efl_input_device_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_type_set"); - private static void device_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.DeviceType klass) - { - Eina.Log.Debug("function efl_input_device_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Device)wrapper).SetDeviceType( klass); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_device_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass); - } - } - private static efl_input_device_type_set_delegate efl_input_device_type_set_static_delegate; + if (efl_input_device_seat_get_static_delegate == null) + { + efl_input_device_seat_get_static_delegate = new efl_input_device_seat_get_delegate(seat_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSeat") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_seat_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_seat_get_static_delegate) }); + } + if (efl_input_device_seat_id_get_static_delegate == null) + { + efl_input_device_seat_id_get_static_delegate = new efl_input_device_seat_id_get_delegate(seat_id_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_input_device_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSeatId") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_seat_id_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_seat_id_get_static_delegate) }); + } + if (efl_input_device_seat_id_set_static_delegate == null) + { + efl_input_device_seat_id_set_static_delegate = new efl_input_device_seat_id_set_delegate(seat_id_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_input_device_source_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_device_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_source_get"); - private static Efl.Input.Device source_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_device_source_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((Device)wrapper).GetSource(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSeatId") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_seat_id_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_seat_id_set_static_delegate) }); } - return _ret_var; - } else { - return efl_input_device_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_device_source_get_delegate efl_input_device_source_get_static_delegate; + if (efl_input_device_children_iterate_static_delegate == null) + { + efl_input_device_children_iterate_static_delegate = new efl_input_device_children_iterate_delegate(children_iterate); + } - private delegate void efl_input_device_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device src); + if (methods.FirstOrDefault(m => m.Name == "ChildrenIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_children_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_children_iterate_static_delegate) }); + } + if (efl_input_device_has_pointer_caps_static_delegate == null) + { + efl_input_device_has_pointer_caps_static_delegate = new efl_input_device_has_pointer_caps_delegate(has_pointer_caps); + } - public delegate void efl_input_device_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device src); - public static Efl.Eo.FunctionWrapper efl_input_device_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_source_set"); - private static void source_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device src) - { - Eina.Log.Debug("function efl_input_device_source_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Device)wrapper).SetSource( src); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_device_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), src); - } - } - private static efl_input_device_source_set_delegate efl_input_device_source_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "HasPointerCaps") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_has_pointer_caps"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_has_pointer_caps_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Input.Device.efl_input_device_class_get(); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_input_device_seat_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.Input.DeviceType efl_input_device_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Input.DeviceType efl_input_device_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_device_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_type_get"); + + private static Efl.Input.DeviceType device_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_device_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.DeviceType _ret_var = default(Efl.Input.DeviceType); + try + { + _ret_var = ((Device)wrapper).GetDeviceType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_input_device_seat_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_device_seat_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_seat_get"); - private static Efl.Input.Device seat_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_device_seat_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((Device)wrapper).GetSeat(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_input_device_seat_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_input_device_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_device_seat_get_delegate efl_input_device_seat_get_static_delegate; + private static efl_input_device_type_get_delegate efl_input_device_type_get_static_delegate; + + + private delegate void efl_input_device_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.DeviceType klass); + + + public delegate void efl_input_device_type_set_api_delegate(System.IntPtr obj, Efl.Input.DeviceType klass); + + public static Efl.Eo.FunctionWrapper efl_input_device_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_type_set"); + + private static void device_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.DeviceType klass) + { + Eina.Log.Debug("function efl_input_device_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Device)wrapper).SetDeviceType(klass); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_device_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass); + } + } - private delegate uint efl_input_device_seat_id_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_input_device_type_set_delegate efl_input_device_type_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_input_device_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_input_device_source_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_device_source_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_source_get"); + + private static Efl.Input.Device source_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_device_source_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((Device)wrapper).GetSource(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate uint efl_input_device_seat_id_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_device_seat_id_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_seat_id_get"); - private static uint seat_id_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_device_seat_id_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((Device)wrapper).GetSeatId(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_input_device_seat_id_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_input_device_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_device_seat_id_get_delegate efl_input_device_seat_id_get_static_delegate; + private static efl_input_device_source_get_delegate efl_input_device_source_get_static_delegate; + + + private delegate void efl_input_device_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device src); + + + public delegate void efl_input_device_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device src); + + public static Efl.Eo.FunctionWrapper efl_input_device_source_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_source_set"); + + private static void source_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device src) + { + Eina.Log.Debug("function efl_input_device_source_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Device)wrapper).SetSource(src); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_device_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), src); + } + } - private delegate void efl_input_device_seat_id_set_delegate(System.IntPtr obj, System.IntPtr pd, uint id); + private static efl_input_device_source_set_delegate efl_input_device_source_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_input_device_seat_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_input_device_seat_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_device_seat_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_seat_get"); + + private static Efl.Input.Device seat_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_device_seat_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((Device)wrapper).GetSeat(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_input_device_seat_id_set_api_delegate(System.IntPtr obj, uint id); - public static Efl.Eo.FunctionWrapper efl_input_device_seat_id_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_seat_id_set"); - private static void seat_id_set(System.IntPtr obj, System.IntPtr pd, uint id) - { - Eina.Log.Debug("function efl_input_device_seat_id_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Device)wrapper).SetSeatId( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_device_seat_id_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } + else + { + return efl_input_device_seat_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_device_seat_id_set_delegate efl_input_device_seat_id_set_static_delegate; - - private delegate System.IntPtr efl_input_device_children_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_input_device_seat_get_delegate efl_input_device_seat_get_static_delegate; + + + private delegate uint efl_input_device_seat_id_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate uint efl_input_device_seat_id_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_device_seat_id_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_seat_id_get"); + + private static uint seat_id_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_device_seat_id_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((Device)wrapper).GetSeatId(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate System.IntPtr efl_input_device_children_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_device_children_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_children_iterate"); - private static System.IntPtr children_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_device_children_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Device)wrapper).ChildrenIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_input_device_children_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_input_device_seat_id_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_device_children_iterate_delegate efl_input_device_children_iterate_static_delegate; + private static efl_input_device_seat_id_get_delegate efl_input_device_seat_id_get_static_delegate; + + + private delegate void efl_input_device_seat_id_set_delegate(System.IntPtr obj, System.IntPtr pd, uint id); + + + public delegate void efl_input_device_seat_id_set_api_delegate(System.IntPtr obj, uint id); + + public static Efl.Eo.FunctionWrapper efl_input_device_seat_id_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_seat_id_set"); + + private static void seat_id_set(System.IntPtr obj, System.IntPtr pd, uint id) + { + Eina.Log.Debug("function efl_input_device_seat_id_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Device)wrapper).SetSeatId(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_device_seat_id_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } + } - private delegate uint efl_input_device_has_pointer_caps_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_input_device_seat_id_set_delegate efl_input_device_seat_id_set_static_delegate; + + + private delegate System.IntPtr efl_input_device_children_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_input_device_children_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_device_children_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_children_iterate"); + + private static System.IntPtr children_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_device_children_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Device)wrapper).ChildrenIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - public delegate uint efl_input_device_has_pointer_caps_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_device_has_pointer_caps_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_has_pointer_caps"); - private static uint has_pointer_caps(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_device_has_pointer_caps was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((Device)wrapper).HasPointerCaps(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_input_device_children_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_input_device_children_iterate_delegate efl_input_device_children_iterate_static_delegate; + + + private delegate uint efl_input_device_has_pointer_caps_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate uint efl_input_device_has_pointer_caps_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_device_has_pointer_caps_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_has_pointer_caps"); + + private static uint has_pointer_caps(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_device_has_pointer_caps was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((Device)wrapper).HasPointerCaps(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_input_device_has_pointer_caps_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_input_device_has_pointer_caps_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_device_has_pointer_caps_delegate efl_input_device_has_pointer_caps_static_delegate; + + private static efl_input_device_has_pointer_caps_delegate efl_input_device_has_pointer_caps_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } -namespace Efl { namespace Input { + +namespace Efl { + +namespace Input { + /// General type of input device. /// Legacy support since 1.8 as Evas_Device_Class. public enum DeviceType @@ -462,8 +651,15 @@ Wand = 6, /// A gamepad controller or joystick. Gamepad = 7, } -} } -namespace Efl { namespace Input { + +} + +} + +namespace Efl { + +namespace Input { + /// General type of input device. /// Legacy support since 1.8 as Evas_Device_Subclass. public enum DeviceSubtype @@ -495,4 +691,8 @@ Remocon = 11, /// A virtual keyboard. VirtualKeyboard = 12, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_event.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_event.eo.cs index b8bdc54..346095e 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_event.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_event.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Input { +namespace Efl { + +namespace Input { + /// Represents a generic event data. /// Note: Most Efl Events do not carry Efl Objects, rather simple data structures. This class is intended to carry more complex event data, such as pointer events. -[IEventNativeInherit] +[Efl.Input.IEventConcrete.NativeMethods] public interface IEvent : Efl.IDuplicate , Efl.Eo.IWrapper, IDisposable @@ -18,41 +22,35 @@ public interface IEvent : double GetTimestamp(); /// Call this when generating events manually. /// Time in milliseconds when the event happened. -/// -void SetTimestamp( double ms); +void SetTimestamp(double ms); /// Input device that originated this event. /// Input device origin Efl.Input.Device GetDevice(); /// Input device that originated this event. /// Input device origin -/// -void SetDevice( Efl.Input.Device dev); +void SetDevice(Efl.Input.Device dev); /// Extra flags for this event, may be changed by the user. /// Input event flags Efl.Input.Flags GetEventFlags(); /// Extra flags for this event, may be changed by the user. /// Input event flags -/// -void SetEventFlags( Efl.Input.Flags flags); +void SetEventFlags(Efl.Input.Flags flags); /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise bool GetProcessed(); /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise -/// -void SetProcessed( bool val); +void SetProcessed(bool val); /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise bool GetScrolling(); /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise -/// -void SetScrolling( bool val); +void SetScrolling(bool val); /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise bool GetFake(); /// Resets the internal data to 0 or default values. -/// void Reset(); /// The time at which an event was generated. /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it. @@ -99,157 +97,186 @@ IEvent , Efl.IDuplicate { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IEventConcrete)) - return Efl.Input.IEventNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IEventConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_input_event_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IEventConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IEventConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// The time at which an event was generated. /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it. /// Time in milliseconds when the event happened. public double GetTimestamp() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_timestamp_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Call this when generating events manually. /// Time in milliseconds when the event happened. - /// - public void SetTimestamp( double ms) { - Efl.Input.IEventNativeInherit.efl_input_timestamp_set_ptr.Value.Delegate(this.NativeHandle, ms); + public void SetTimestamp(double ms) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_set_ptr.Value.Delegate(this.NativeHandle,ms); Eina.Error.RaiseIfUnhandledException(); } /// Input device that originated this event. /// Input device origin public Efl.Input.Device GetDevice() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_device_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_device_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Input device that originated this event. /// Input device origin - /// - public void SetDevice( Efl.Input.Device dev) { - Efl.Input.IEventNativeInherit.efl_input_device_set_ptr.Value.Delegate(this.NativeHandle, dev); + public void SetDevice(Efl.Input.Device dev) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_device_set_ptr.Value.Delegate(this.NativeHandle,dev); Eina.Error.RaiseIfUnhandledException(); } /// Extra flags for this event, may be changed by the user. /// Input event flags public Efl.Input.Flags GetEventFlags() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_event_flags_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Extra flags for this event, may be changed by the user. /// Input event flags - /// - public void SetEventFlags( Efl.Input.Flags flags) { - Efl.Input.IEventNativeInherit.efl_input_event_flags_set_ptr.Value.Delegate(this.NativeHandle, flags); + public void SetEventFlags(Efl.Input.Flags flags) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_set_ptr.Value.Delegate(this.NativeHandle,flags); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise public bool GetProcessed() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_processed_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise - /// - public void SetProcessed( bool val) { - Efl.Input.IEventNativeInherit.efl_input_processed_set_ptr.Value.Delegate(this.NativeHandle, val); + public void SetProcessed(bool val) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_set_ptr.Value.Delegate(this.NativeHandle,val); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise public bool GetScrolling() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_scrolling_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise - /// - public void SetScrolling( bool val) { - Efl.Input.IEventNativeInherit.efl_input_scrolling_set_ptr.Value.Delegate(this.NativeHandle, val); + public void SetScrolling(bool val) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_set_ptr.Value.Delegate(this.NativeHandle,val); Eina.Error.RaiseIfUnhandledException(); } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise public bool GetFake() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_fake_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_fake_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Resets the internal data to 0 or default values. - /// public void Reset() { - Efl.Input.IEventNativeInherit.efl_input_reset_ptr.Value.Delegate(this.NativeHandle); + Efl.Input.IEventConcrete.NativeMethods.efl_input_reset_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Creates a carbon copy of this object and returns it. /// The newly created object will have no event handlers or anything of the sort. /// Returned carbon copy - public Efl.IDuplicate DoDuplicate() { - var _ret_var = Efl.IDuplicateNativeInherit.efl_duplicate_ptr.Value.Delegate(this.NativeHandle); + public Efl.IDuplicate Duplicate() { + var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -258,31 +285,31 @@ IEvent /// Time in milliseconds when the event happened. public double Timestamp { get { return GetTimestamp(); } - set { SetTimestamp( value); } + set { SetTimestamp(value); } } /// Input device that originated this event. /// Input device origin public Efl.Input.Device Device { get { return GetDevice(); } - set { SetDevice( value); } + set { SetDevice(value); } } /// Extra flags for this event, may be changed by the user. /// Input event flags public Efl.Input.Flags EventFlags { get { return GetEventFlags(); } - set { SetEventFlags( value); } + set { SetEventFlags(value); } } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise public bool Processed { get { return GetProcessed(); } - set { SetProcessed( value); } + set { SetProcessed(value); } } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise public bool Scrolling { get { return GetScrolling(); } - set { SetScrolling( value); } + set { SetScrolling(value); } } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise @@ -293,393 +320,626 @@ IEvent { return Efl.Input.IEventConcrete.efl_input_event_mixin_get(); } -} -public class IEventNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_input_timestamp_get_static_delegate == null) - efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get); - if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate)}); - if (efl_input_timestamp_set_static_delegate == null) - efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set); - if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate)}); - if (efl_input_device_get_static_delegate == null) - efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get); - if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate)}); - if (efl_input_device_set_static_delegate == null) - efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set); - if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate)}); - if (efl_input_event_flags_get_static_delegate == null) - efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get); - if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate)}); - if (efl_input_event_flags_set_static_delegate == null) - efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set); - if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate)}); - if (efl_input_processed_get_static_delegate == null) - efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get); - if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate)}); - if (efl_input_processed_set_static_delegate == null) - efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set); - if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate)}); - if (efl_input_scrolling_get_static_delegate == null) - efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate)}); - if (efl_input_scrolling_set_static_delegate == null) - efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate)}); - if (efl_input_fake_get_static_delegate == null) - efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get); - if (methods.FirstOrDefault(m => m.Name == "GetFake") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate)}); - if (efl_input_reset_static_delegate == null) - efl_input_reset_static_delegate = new efl_input_reset_delegate(reset); - if (methods.FirstOrDefault(m => m.Name == "Reset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate)}); - if (efl_duplicate_static_delegate == null) - efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); - if (methods.FirstOrDefault(m => m.Name == "DoDuplicate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Input.IEventConcrete.efl_input_event_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Input.IEventConcrete.efl_input_event_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_input_timestamp_get_static_delegate == null) + { + efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate) }); + } - private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_timestamp_set_static_delegate == null) + { + efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate) }); + } - public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_timestamp_get"); - private static double timestamp_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_timestamp_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IEventConcrete)wrapper).GetTimestamp(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_device_get_static_delegate == null) + { + efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get); } - return _ret_var; - } else { - return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate) }); + } - private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms); + if (efl_input_device_set_static_delegate == null) + { + efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate) }); + } - public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms); - public static Efl.Eo.FunctionWrapper efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_timestamp_set"); - private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms) - { - Eina.Log.Debug("function efl_input_timestamp_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IEventConcrete)wrapper).SetTimestamp( ms); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms); - } - } - private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate; + if (efl_input_event_flags_get_static_delegate == null) + { + efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_event_flags_set_static_delegate == null) + { + efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_get"); - private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_device_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((IEventConcrete)wrapper).GetDevice(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_processed_get_static_delegate == null) + { + efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get); } - return _ret_var; - } else { - return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_device_get_delegate efl_input_device_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate) }); + } - private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); + if (efl_input_processed_set_static_delegate == null) + { + efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate) }); + } - public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); - public static Efl.Eo.FunctionWrapper efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_set"); - private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) - { - Eina.Log.Debug("function efl_input_device_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IEventConcrete)wrapper).SetDevice( dev); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); - } - } - private static efl_input_device_set_delegate efl_input_device_set_static_delegate; + if (efl_input_scrolling_get_static_delegate == null) + { + efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate) }); + } - private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_scrolling_set_static_delegate == null) + { + efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate) }); + } - public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_event_flags_get"); - private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_event_flags_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Flags _ret_var = default(Efl.Input.Flags); - try { - _ret_var = ((IEventConcrete)wrapper).GetEventFlags(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_fake_get_static_delegate == null) + { + efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get); } - return _ret_var; - } else { - return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFake") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate) }); + } - private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags); + if (efl_input_reset_static_delegate == null) + { + efl_input_reset_static_delegate = new efl_input_reset_delegate(reset); + } + if (methods.FirstOrDefault(m => m.Name == "Reset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate) }); + } - public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags); - public static Efl.Eo.FunctionWrapper efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_event_flags_set"); - private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags) - { - Eina.Log.Debug("function efl_input_event_flags_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IEventConcrete)wrapper).SetEventFlags( flags); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); - } - } - private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate; + if (efl_duplicate_static_delegate == null) + { + efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); + } + if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Input.IEventConcrete.efl_input_event_mixin_get(); + } + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_get"); + + private static double timestamp_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_timestamp_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IEventConcrete)wrapper).GetTimestamp(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_processed_get"); - private static bool processed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_processed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IEventConcrete)wrapper).GetProcessed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate; + } + else + { + return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); - + private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate; + + + private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms); + + + public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms); + + public static Efl.Eo.FunctionWrapper efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_set"); + + private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms) + { + Eina.Log.Debug("function efl_input_timestamp_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IEventConcrete)wrapper).SetTimestamp(ms); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_processed_set"); - private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_processed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IEventConcrete)wrapper).SetProcessed( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + + } + else + { + efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms); + } } - } - private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate; + private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_get"); + + private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_device_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((IEventConcrete)wrapper).GetDevice(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_device_get_delegate efl_input_device_get_static_delegate; + + + private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); + + + public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); + + public static Efl.Eo.FunctionWrapper efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_set"); + + private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) + { + Eina.Log.Debug("function efl_input_device_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IEventConcrete)wrapper).SetDevice(dev); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_scrolling_get"); - private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_scrolling_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IEventConcrete)wrapper).GetScrolling(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); } - return _ret_var; - } else { - return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate; + private static efl_input_device_set_delegate efl_input_device_set_static_delegate; + + + private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_get"); + + private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_event_flags_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Flags _ret_var = default(Efl.Input.Flags); + try + { + _ret_var = ((IEventConcrete)wrapper).GetEventFlags(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + } + else + { + return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate; + + + private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags); + + + public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags); + + public static Efl.Eo.FunctionWrapper efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_set"); + + private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags) + { + Eina.Log.Debug("function efl_input_event_flags_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IEventConcrete)wrapper).SetEventFlags(flags); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_scrolling_set"); - private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_scrolling_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IEventConcrete)wrapper).SetScrolling( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + + } + else + { + efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); + } } - } - private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate; + private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_get"); + + private static bool processed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_processed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IEventConcrete)wrapper).GetProcessed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate; + + + private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_set"); + + private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_processed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IEventConcrete)wrapper).SetProcessed(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_fake_get"); - private static bool fake_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_fake_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IEventConcrete)wrapper).GetFake(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } - return _ret_var; - } else { - return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate; + private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_get"); + + private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_scrolling_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IEventConcrete)wrapper).GetScrolling(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + + } + else + { + return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate; + + + private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_set"); + + private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_scrolling_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IEventConcrete)wrapper).SetScrolling(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_reset"); - private static void reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IEventConcrete)wrapper).Reset(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } } - } - private static efl_input_reset_delegate efl_input_reset_static_delegate; + private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_fake_get"); + + private static bool fake_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_fake_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IEventConcrete)wrapper).GetFake(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_duplicate"); - private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_duplicate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IDuplicate _ret_var = default(Efl.IDuplicate); - try { - _ret_var = ((IEventConcrete)wrapper).DoDuplicate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate; + + + private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_input_reset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_reset"); + + private static void reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IEventConcrete)wrapper).Reset(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_input_reset_delegate efl_input_reset_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_duplicate"); + + private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_duplicate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IDuplicate _ret_var = default(Efl.IDuplicate); + try + { + _ret_var = ((IEventConcrete)wrapper).Duplicate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_duplicate_delegate efl_duplicate_static_delegate; + + private static efl_duplicate_delegate efl_duplicate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_focus.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_focus.eo.cs index 71176ff..3b24e86 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_focus.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_focus.eo.cs @@ -3,83 +3,106 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Input { +namespace Efl { + +namespace Input { + /// Represents a focus event. /// (Since EFL 1.22) -[FocusNativeInherit] +[Efl.Input.Focus.NativeMethods] public class Focus : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Focus)) - return Efl.Input.FocusNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Focus)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_input_focus_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Focus(Efl.Object parent= null - ) : - base(efl_input_focus_class_get(), typeof(Focus), parent) + ) : base(efl_input_focus_class_get(), typeof(Focus), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Focus(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Focus(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Focus(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// The focused object /// (Since EFL 1.22) /// The focused object. In case this represents a canvas focus the object will be null virtual public Efl.Object GetObject() { - var _ret_var = Efl.Input.FocusNativeInherit.efl_input_focus_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Focus.NativeMethods.efl_input_focus_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The focused object /// (Since EFL 1.22) /// The focused object. In case this represents a canvas focus the object will be null - /// - virtual public void SetObject( Efl.Object kw_object) { - Efl.Input.FocusNativeInherit.efl_input_focus_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_object); + virtual public void SetObject(Efl.Object kw_object) { + Efl.Input.Focus.NativeMethods.efl_input_focus_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_object); Eina.Error.RaiseIfUnhandledException(); } /// Creates a carbon copy of this object and returns it. /// The newly created object will have no event handlers or anything of the sort. /// Returned carbon copy - virtual public Efl.IDuplicate DoDuplicate() { - var _ret_var = Efl.IDuplicateNativeInherit.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + virtual public Efl.IDuplicate Duplicate() { + var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -87,84 +110,78 @@ public class Focus : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it. /// Time in milliseconds when the event happened. virtual public double GetTimestamp() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_timestamp_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Call this when generating events manually. /// Time in milliseconds when the event happened. - /// - virtual public void SetTimestamp( double ms) { - Efl.Input.IEventNativeInherit.efl_input_timestamp_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ms); + virtual public void SetTimestamp(double ms) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ms); Eina.Error.RaiseIfUnhandledException(); } /// Input device that originated this event. /// Input device origin virtual public Efl.Input.Device GetDevice() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Input device that originated this event. /// Input device origin - /// - virtual public void SetDevice( Efl.Input.Device dev) { - Efl.Input.IEventNativeInherit.efl_input_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dev); + virtual public void SetDevice(Efl.Input.Device dev) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dev); Eina.Error.RaiseIfUnhandledException(); } /// Extra flags for this event, may be changed by the user. /// Input event flags virtual public Efl.Input.Flags GetEventFlags() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_event_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Extra flags for this event, may be changed by the user. /// Input event flags - /// - virtual public void SetEventFlags( Efl.Input.Flags flags) { - Efl.Input.IEventNativeInherit.efl_input_event_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), flags); + virtual public void SetEventFlags(Efl.Input.Flags flags) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),flags); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise virtual public bool GetProcessed() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_processed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise - /// - virtual public void SetProcessed( bool val) { - Efl.Input.IEventNativeInherit.efl_input_processed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetProcessed(bool val) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise virtual public bool GetScrolling() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_scrolling_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise - /// - virtual public void SetScrolling( bool val) { - Efl.Input.IEventNativeInherit.efl_input_scrolling_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetScrolling(bool val) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise virtual public bool GetFake() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_fake_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_fake_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Resets the internal data to 0 or default values. - /// virtual public void Reset() { - Efl.Input.IEventNativeInherit.efl_input_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Input.IEventConcrete.NativeMethods.efl_input_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// The focused object @@ -172,38 +189,38 @@ public class Focus : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent /// The focused object. In case this represents a canvas focus the object will be null public Efl.Object Object { get { return GetObject(); } - set { SetObject( value); } + set { SetObject(value); } } /// The time at which an event was generated. /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it. /// Time in milliseconds when the event happened. public double Timestamp { get { return GetTimestamp(); } - set { SetTimestamp( value); } + set { SetTimestamp(value); } } /// Input device that originated this event. /// Input device origin public Efl.Input.Device Device { get { return GetDevice(); } - set { SetDevice( value); } + set { SetDevice(value); } } /// Extra flags for this event, may be changed by the user. /// Input event flags public Efl.Input.Flags EventFlags { get { return GetEventFlags(); } - set { SetEventFlags( value); } + set { SetEventFlags(value); } } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise public bool Processed { get { return GetProcessed(); } - set { SetProcessed( value); } + set { SetProcessed(value); } } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise public bool Scrolling { get { return GetScrolling(); } - set { SetScrolling( value); } + set { SetScrolling(value); } } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise @@ -214,451 +231,718 @@ public class Focus : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent { return Efl.Input.Focus.efl_input_focus_class_get(); } -} -public class FocusNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_input_focus_object_get_static_delegate == null) - efl_input_focus_object_get_static_delegate = new efl_input_focus_object_get_delegate(object_get); - if (methods.FirstOrDefault(m => m.Name == "GetObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_focus_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_focus_object_get_static_delegate)}); - if (efl_input_focus_object_set_static_delegate == null) - efl_input_focus_object_set_static_delegate = new efl_input_focus_object_set_delegate(object_set); - if (methods.FirstOrDefault(m => m.Name == "SetObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_focus_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_focus_object_set_static_delegate)}); - if (efl_duplicate_static_delegate == null) - efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); - if (methods.FirstOrDefault(m => m.Name == "DoDuplicate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate)}); - if (efl_input_timestamp_get_static_delegate == null) - efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get); - if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate)}); - if (efl_input_timestamp_set_static_delegate == null) - efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set); - if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate)}); - if (efl_input_device_get_static_delegate == null) - efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get); - if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate)}); - if (efl_input_device_set_static_delegate == null) - efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set); - if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate)}); - if (efl_input_event_flags_get_static_delegate == null) - efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get); - if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate)}); - if (efl_input_event_flags_set_static_delegate == null) - efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set); - if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate)}); - if (efl_input_processed_get_static_delegate == null) - efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get); - if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate)}); - if (efl_input_processed_set_static_delegate == null) - efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set); - if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate)}); - if (efl_input_scrolling_get_static_delegate == null) - efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate)}); - if (efl_input_scrolling_set_static_delegate == null) - efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate)}); - if (efl_input_fake_get_static_delegate == null) - efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get); - if (methods.FirstOrDefault(m => m.Name == "GetFake") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate)}); - if (efl_input_reset_static_delegate == null) - efl_input_reset_static_delegate = new efl_input_reset_delegate(reset); - if (methods.FirstOrDefault(m => m.Name == "Reset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Input.Focus.efl_input_focus_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Input.Focus.efl_input_focus_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_input_focus_object_get_static_delegate == null) + { + efl_input_focus_object_get_static_delegate = new efl_input_focus_object_get_delegate(object_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_focus_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_focus_object_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_input_focus_object_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_focus_object_set_static_delegate == null) + { + efl_input_focus_object_set_static_delegate = new efl_input_focus_object_set_delegate(object_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_focus_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_focus_object_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_input_focus_object_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_focus_object_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_focus_object_get"); - private static Efl.Object object_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_focus_object_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((Focus)wrapper).GetObject(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_duplicate_static_delegate == null) + { + efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); } - return _ret_var; - } else { - return efl_input_focus_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_focus_object_get_delegate efl_input_focus_object_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate) }); + } - private delegate void efl_input_focus_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object kw_object); + if (efl_input_timestamp_get_static_delegate == null) + { + efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate) }); + } - public delegate void efl_input_focus_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object kw_object); - public static Efl.Eo.FunctionWrapper efl_input_focus_object_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_focus_object_set"); - private static void object_set(System.IntPtr obj, System.IntPtr pd, Efl.Object kw_object) - { - Eina.Log.Debug("function efl_input_focus_object_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Focus)wrapper).SetObject( kw_object); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_focus_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object); - } - } - private static efl_input_focus_object_set_delegate efl_input_focus_object_set_static_delegate; + if (efl_input_timestamp_set_static_delegate == null) + { + efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_device_get_static_delegate == null) + { + efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_duplicate"); - private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_duplicate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IDuplicate _ret_var = default(Efl.IDuplicate); - try { - _ret_var = ((Focus)wrapper).DoDuplicate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_device_set_static_delegate == null) + { + efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set); } - return _ret_var; - } else { - return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_duplicate_delegate efl_duplicate_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate) }); + } - private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_event_flags_get_static_delegate == null) + { + efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate) }); + } - public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_timestamp_get"); - private static double timestamp_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_timestamp_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Focus)wrapper).GetTimestamp(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_event_flags_set_static_delegate == null) + { + efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set); } - return _ret_var; - } else { - return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate) }); + } - private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms); + if (efl_input_processed_get_static_delegate == null) + { + efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate) }); + } - public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms); - public static Efl.Eo.FunctionWrapper efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_timestamp_set"); - private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms) - { - Eina.Log.Debug("function efl_input_timestamp_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Focus)wrapper).SetTimestamp( ms); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms); - } - } - private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate; + if (efl_input_processed_set_static_delegate == null) + { + efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_scrolling_get_static_delegate == null) + { + efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_get"); - private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_device_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((Focus)wrapper).GetDevice(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_scrolling_set_static_delegate == null) + { + efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set); } - return _ret_var; - } else { - return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_device_get_delegate efl_input_device_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate) }); + } - private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); + if (efl_input_fake_get_static_delegate == null) + { + efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFake") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate) }); + } - public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); - public static Efl.Eo.FunctionWrapper efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_set"); - private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) - { - Eina.Log.Debug("function efl_input_device_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Focus)wrapper).SetDevice( dev); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); + if (efl_input_reset_static_delegate == null) + { + efl_input_reset_static_delegate = new efl_input_reset_delegate(reset); + } + + if (methods.FirstOrDefault(m => m.Name == "Reset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; } - } - private static efl_input_device_set_delegate efl_input_device_set_static_delegate; + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Input.Focus.efl_input_focus_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_input_focus_object_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_input_focus_object_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_focus_object_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_focus_object_get"); + + private static Efl.Object object_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_focus_object_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((Focus)wrapper).GetObject(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_input_focus_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_focus_object_get_delegate efl_input_focus_object_get_static_delegate; + + + private delegate void efl_input_focus_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object kw_object); + + + public delegate void efl_input_focus_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object kw_object); + + public static Efl.Eo.FunctionWrapper efl_input_focus_object_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_focus_object_set"); + + private static void object_set(System.IntPtr obj, System.IntPtr pd, Efl.Object kw_object) + { + Eina.Log.Debug("function efl_input_focus_object_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Focus)wrapper).SetObject(kw_object); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_event_flags_get"); - private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_event_flags_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Flags _ret_var = default(Efl.Input.Flags); - try { - _ret_var = ((Focus)wrapper).GetEventFlags(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_input_focus_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object); } + } + + private static efl_input_focus_object_set_delegate efl_input_focus_object_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_duplicate"); + + private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_duplicate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IDuplicate _ret_var = default(Efl.IDuplicate); + try + { + _ret_var = ((Focus)wrapper).Duplicate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate; + private static efl_duplicate_delegate efl_duplicate_static_delegate; + + + private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_get"); + + private static double timestamp_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_timestamp_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Focus)wrapper).GetTimestamp(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags); + } + else + { + return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate; + + + private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms); + + + public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms); + + public static Efl.Eo.FunctionWrapper efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_set"); + + private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms) + { + Eina.Log.Debug("function efl_input_timestamp_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Focus)wrapper).SetTimestamp(ms); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags); - public static Efl.Eo.FunctionWrapper efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_event_flags_set"); - private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags) - { - Eina.Log.Debug("function efl_input_event_flags_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Focus)wrapper).SetEventFlags( flags); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); + + } + else + { + efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms); + } } - } - private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate; + private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_get"); + + private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_device_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((Focus)wrapper).GetDevice(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_device_get_delegate efl_input_device_get_static_delegate; + + + private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); + + + public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); + + public static Efl.Eo.FunctionWrapper efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_set"); + + private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) + { + Eina.Log.Debug("function efl_input_device_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Focus)wrapper).SetDevice(dev); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_processed_get"); - private static bool processed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_processed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Focus)wrapper).GetProcessed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); } - return _ret_var; - } else { - return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate; + private static efl_input_device_set_delegate efl_input_device_set_static_delegate; + + + private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_get"); + + private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_event_flags_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Flags _ret_var = default(Efl.Input.Flags); + try + { + _ret_var = ((Focus)wrapper).GetEventFlags(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + return _ret_var; + } + else + { + return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_processed_set"); - private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_processed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Focus)wrapper).SetProcessed( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate; + + + private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags); + + + public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags); + + public static Efl.Eo.FunctionWrapper efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_set"); + + private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags) + { + Eina.Log.Debug("function efl_input_event_flags_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Focus)wrapper).SetEventFlags(flags); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); + } } - } - private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate; + private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_get"); + + private static bool processed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_processed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Focus)wrapper).GetProcessed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_scrolling_get"); - private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_scrolling_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Focus)wrapper).GetScrolling(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate; + + + private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_set"); + + private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_processed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Focus)wrapper).SetProcessed(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } - return _ret_var; - } else { - return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate; + private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_get"); + + private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_scrolling_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Focus)wrapper).GetScrolling(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + return _ret_var; + } + else + { + return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_scrolling_set"); - private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_scrolling_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Focus)wrapper).SetScrolling( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate; + + + private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_set"); + + private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_scrolling_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Focus)wrapper).SetScrolling(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } } - } - private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate; + private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_fake_get"); + + private static bool fake_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_fake_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Focus)wrapper).GetFake(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_fake_get"); - private static bool fake_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_fake_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Focus)wrapper).GetFake(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate; + + + private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_input_reset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_reset"); + + private static void reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Focus)wrapper).Reset(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate; + private static efl_input_reset_delegate efl_input_reset_static_delegate; - private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_input_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_reset"); - private static void reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Focus)wrapper).Reset(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_reset_delegate efl_input_reset_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_hold.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_hold.eo.cs index b925201..a8120d2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_hold.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_hold.eo.cs @@ -3,80 +3,103 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Input { +namespace Efl { + +namespace Input { + /// Event data sent when inputs are put on hold or resumed. -[HoldNativeInherit] +[Efl.Input.Hold.NativeMethods] public class Hold : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Hold)) - return Efl.Input.HoldNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Hold)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_input_hold_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Hold(Efl.Object parent= null - ) : - base(efl_input_hold_class_get(), typeof(Hold), parent) + ) : base(efl_input_hold_class_get(), typeof(Hold), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Hold(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Hold(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Hold(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Property to show if inputs are now on hold. /// true if inputs are on hold, false otherwise virtual public bool GetHold() { - var _ret_var = Efl.Input.HoldNativeInherit.efl_input_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Hold.NativeMethods.efl_input_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Property to show if inputs are now on hold. /// true if inputs are on hold, false otherwise - /// - virtual public void SetHold( bool val) { - Efl.Input.HoldNativeInherit.efl_input_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetHold(bool val) { + Efl.Input.Hold.NativeMethods.efl_input_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Creates a carbon copy of this object and returns it. /// The newly created object will have no event handlers or anything of the sort. /// Returned carbon copy - virtual public Efl.IDuplicate DoDuplicate() { - var _ret_var = Efl.IDuplicateNativeInherit.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + virtual public Efl.IDuplicate Duplicate() { + var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -84,84 +107,78 @@ public class Hold : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it. /// Time in milliseconds when the event happened. virtual public double GetTimestamp() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_timestamp_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Call this when generating events manually. /// Time in milliseconds when the event happened. - /// - virtual public void SetTimestamp( double ms) { - Efl.Input.IEventNativeInherit.efl_input_timestamp_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ms); + virtual public void SetTimestamp(double ms) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ms); Eina.Error.RaiseIfUnhandledException(); } /// Input device that originated this event. /// Input device origin virtual public Efl.Input.Device GetDevice() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Input device that originated this event. /// Input device origin - /// - virtual public void SetDevice( Efl.Input.Device dev) { - Efl.Input.IEventNativeInherit.efl_input_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dev); + virtual public void SetDevice(Efl.Input.Device dev) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dev); Eina.Error.RaiseIfUnhandledException(); } /// Extra flags for this event, may be changed by the user. /// Input event flags virtual public Efl.Input.Flags GetEventFlags() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_event_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Extra flags for this event, may be changed by the user. /// Input event flags - /// - virtual public void SetEventFlags( Efl.Input.Flags flags) { - Efl.Input.IEventNativeInherit.efl_input_event_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), flags); + virtual public void SetEventFlags(Efl.Input.Flags flags) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),flags); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise virtual public bool GetProcessed() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_processed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise - /// - virtual public void SetProcessed( bool val) { - Efl.Input.IEventNativeInherit.efl_input_processed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetProcessed(bool val) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise virtual public bool GetScrolling() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_scrolling_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise - /// - virtual public void SetScrolling( bool val) { - Efl.Input.IEventNativeInherit.efl_input_scrolling_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetScrolling(bool val) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise virtual public bool GetFake() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_fake_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_fake_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Resets the internal data to 0 or default values. - /// virtual public void Reset() { - Efl.Input.IEventNativeInherit.efl_input_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Input.IEventConcrete.NativeMethods.efl_input_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// The time at which an event was generated. @@ -169,31 +186,31 @@ public class Hold : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent /// Time in milliseconds when the event happened. public double Timestamp { get { return GetTimestamp(); } - set { SetTimestamp( value); } + set { SetTimestamp(value); } } /// Input device that originated this event. /// Input device origin public Efl.Input.Device Device { get { return GetDevice(); } - set { SetDevice( value); } + set { SetDevice(value); } } /// Extra flags for this event, may be changed by the user. /// Input event flags public Efl.Input.Flags EventFlags { get { return GetEventFlags(); } - set { SetEventFlags( value); } + set { SetEventFlags(value); } } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise public bool Processed { get { return GetProcessed(); } - set { SetProcessed( value); } + set { SetProcessed(value); } } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise public bool Scrolling { get { return GetScrolling(); } - set { SetScrolling( value); } + set { SetScrolling(value); } } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise @@ -204,451 +221,718 @@ public class Hold : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent { return Efl.Input.Hold.efl_input_hold_class_get(); } -} -public class HoldNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_input_hold_get_static_delegate == null) - efl_input_hold_get_static_delegate = new efl_input_hold_get_delegate(hold_get); - if (methods.FirstOrDefault(m => m.Name == "GetHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_hold_get_static_delegate)}); - if (efl_input_hold_set_static_delegate == null) - efl_input_hold_set_static_delegate = new efl_input_hold_set_delegate(hold_set); - if (methods.FirstOrDefault(m => m.Name == "SetHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_hold_set_static_delegate)}); - if (efl_duplicate_static_delegate == null) - efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); - if (methods.FirstOrDefault(m => m.Name == "DoDuplicate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate)}); - if (efl_input_timestamp_get_static_delegate == null) - efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get); - if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate)}); - if (efl_input_timestamp_set_static_delegate == null) - efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set); - if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate)}); - if (efl_input_device_get_static_delegate == null) - efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get); - if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate)}); - if (efl_input_device_set_static_delegate == null) - efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set); - if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate)}); - if (efl_input_event_flags_get_static_delegate == null) - efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get); - if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate)}); - if (efl_input_event_flags_set_static_delegate == null) - efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set); - if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate)}); - if (efl_input_processed_get_static_delegate == null) - efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get); - if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate)}); - if (efl_input_processed_set_static_delegate == null) - efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set); - if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate)}); - if (efl_input_scrolling_get_static_delegate == null) - efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate)}); - if (efl_input_scrolling_set_static_delegate == null) - efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate)}); - if (efl_input_fake_get_static_delegate == null) - efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get); - if (methods.FirstOrDefault(m => m.Name == "GetFake") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate)}); - if (efl_input_reset_static_delegate == null) - efl_input_reset_static_delegate = new efl_input_reset_delegate(reset); - if (methods.FirstOrDefault(m => m.Name == "Reset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Input.Hold.efl_input_hold_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Input.Hold.efl_input_hold_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_input_hold_get_static_delegate == null) + { + efl_input_hold_get_static_delegate = new efl_input_hold_get_delegate(hold_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_hold_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_hold_set_static_delegate == null) + { + efl_input_hold_set_static_delegate = new efl_input_hold_set_delegate(hold_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_hold_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_hold_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_hold_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_hold_get"); - private static bool hold_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_hold_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Hold)wrapper).GetHold(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_duplicate_static_delegate == null) + { + efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); } - return _ret_var; - } else { - return efl_input_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_hold_get_delegate efl_input_hold_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate) }); + } - private delegate void efl_input_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + if (efl_input_timestamp_get_static_delegate == null) + { + efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate) }); + } - public delegate void efl_input_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_hold_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_hold_set"); - private static void hold_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_hold_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Hold)wrapper).SetHold( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); - } - } - private static efl_input_hold_set_delegate efl_input_hold_set_static_delegate; + if (efl_input_timestamp_set_static_delegate == null) + { + efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_device_get_static_delegate == null) + { + efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_duplicate"); - private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_duplicate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IDuplicate _ret_var = default(Efl.IDuplicate); - try { - _ret_var = ((Hold)wrapper).DoDuplicate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_device_set_static_delegate == null) + { + efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set); } - return _ret_var; - } else { - return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_duplicate_delegate efl_duplicate_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate) }); + } - private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_event_flags_get_static_delegate == null) + { + efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate) }); + } - public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_timestamp_get"); - private static double timestamp_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_timestamp_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Hold)wrapper).GetTimestamp(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_event_flags_set_static_delegate == null) + { + efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set); } - return _ret_var; - } else { - return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate) }); + } - private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms); + if (efl_input_processed_get_static_delegate == null) + { + efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate) }); + } - public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms); - public static Efl.Eo.FunctionWrapper efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_timestamp_set"); - private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms) - { - Eina.Log.Debug("function efl_input_timestamp_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Hold)wrapper).SetTimestamp( ms); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms); - } - } - private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate; + if (efl_input_processed_set_static_delegate == null) + { + efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_scrolling_get_static_delegate == null) + { + efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_get"); - private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_device_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((Hold)wrapper).GetDevice(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_scrolling_set_static_delegate == null) + { + efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set); } - return _ret_var; - } else { - return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_device_get_delegate efl_input_device_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate) }); + } - private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); + if (efl_input_fake_get_static_delegate == null) + { + efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFake") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate) }); + } - public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); - public static Efl.Eo.FunctionWrapper efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_set"); - private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) - { - Eina.Log.Debug("function efl_input_device_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Hold)wrapper).SetDevice( dev); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); + if (efl_input_reset_static_delegate == null) + { + efl_input_reset_static_delegate = new efl_input_reset_delegate(reset); + } + + if (methods.FirstOrDefault(m => m.Name == "Reset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; } - } - private static efl_input_device_set_delegate efl_input_device_set_static_delegate; + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Input.Hold.efl_input_hold_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_hold_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_hold_get"); + + private static bool hold_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_hold_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Hold)wrapper).GetHold(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_input_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_hold_get_delegate efl_input_hold_get_static_delegate; + + + private delegate void efl_input_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_hold_set"); + + private static void hold_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_hold_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Hold)wrapper).SetHold(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_event_flags_get"); - private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_event_flags_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Flags _ret_var = default(Efl.Input.Flags); - try { - _ret_var = ((Hold)wrapper).GetEventFlags(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_input_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } + } + + private static efl_input_hold_set_delegate efl_input_hold_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_duplicate"); + + private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_duplicate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IDuplicate _ret_var = default(Efl.IDuplicate); + try + { + _ret_var = ((Hold)wrapper).Duplicate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate; + private static efl_duplicate_delegate efl_duplicate_static_delegate; + + + private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_get"); + + private static double timestamp_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_timestamp_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Hold)wrapper).GetTimestamp(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags); + } + else + { + return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate; + + + private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms); + + + public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms); + + public static Efl.Eo.FunctionWrapper efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_set"); + + private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms) + { + Eina.Log.Debug("function efl_input_timestamp_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Hold)wrapper).SetTimestamp(ms); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags); - public static Efl.Eo.FunctionWrapper efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_event_flags_set"); - private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags) - { - Eina.Log.Debug("function efl_input_event_flags_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Hold)wrapper).SetEventFlags( flags); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); + + } + else + { + efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms); + } } - } - private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate; + private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_get"); + + private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_device_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((Hold)wrapper).GetDevice(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_device_get_delegate efl_input_device_get_static_delegate; + + + private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); + + + public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); + + public static Efl.Eo.FunctionWrapper efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_set"); + + private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) + { + Eina.Log.Debug("function efl_input_device_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Hold)wrapper).SetDevice(dev); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_processed_get"); - private static bool processed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_processed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Hold)wrapper).GetProcessed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); } - return _ret_var; - } else { - return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate; + private static efl_input_device_set_delegate efl_input_device_set_static_delegate; + + + private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_get"); + + private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_event_flags_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Flags _ret_var = default(Efl.Input.Flags); + try + { + _ret_var = ((Hold)wrapper).GetEventFlags(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + return _ret_var; + } + else + { + return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_processed_set"); - private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_processed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Hold)wrapper).SetProcessed( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate; + + + private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags); + + + public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags); + + public static Efl.Eo.FunctionWrapper efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_set"); + + private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags) + { + Eina.Log.Debug("function efl_input_event_flags_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Hold)wrapper).SetEventFlags(flags); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); + } } - } - private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate; + private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_get"); + + private static bool processed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_processed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Hold)wrapper).GetProcessed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_scrolling_get"); - private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_scrolling_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Hold)wrapper).GetScrolling(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate; + + + private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_set"); + + private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_processed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Hold)wrapper).SetProcessed(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } - return _ret_var; - } else { - return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate; + private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_get"); + + private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_scrolling_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Hold)wrapper).GetScrolling(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + return _ret_var; + } + else + { + return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_scrolling_set"); - private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_scrolling_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Hold)wrapper).SetScrolling( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate; + + + private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_set"); + + private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_scrolling_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Hold)wrapper).SetScrolling(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } } - } - private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate; + private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_fake_get"); + + private static bool fake_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_fake_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Hold)wrapper).GetFake(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_fake_get"); - private static bool fake_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_fake_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Hold)wrapper).GetFake(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate; + + + private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_input_reset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_reset"); + + private static void reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Hold)wrapper).Reset(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate; + private static efl_input_reset_delegate efl_input_reset_static_delegate; - private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_input_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_reset"); - private static void reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Hold)wrapper).Reset(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_reset_delegate efl_input_reset_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_interface.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_interface.eo.cs index 4d1189e..5ceb1f9 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_interface.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_interface.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Input { +namespace Efl { + +namespace Input { + /// An object implementing this interface can send pointer events. /// Windows and canvas objects may send input events. /// @@ -13,19 +17,18 @@ namespace Efl { namespace Input { /// A "finger" refers to a single point of input, usually in an absolute coordinates input device, and that can support more than one input position at at time (think multi-touch screens). The first finger (id 0) is sent along with a pointer event, so be careful to not handle those events twice. Note that if the input device can support "hovering", it is entirely possible to receive move events without down coming first. /// /// A "key" is a key press from a keyboard or equivalent type of input device. Long, repeated, key presses will always happen like this: down...up,down...up,down...up (not down...up or down...down...down...up). -[IInterfaceNativeInherit] +[Efl.Input.IInterfaceConcrete.NativeMethods] public interface IInterface : Efl.Eo.IWrapper, IDisposable { /// Check if input events from a given seat is enabled. /// The seat to act on. /// true to enable events for a seat or false otherwise. -bool GetSeatEventFilter( Efl.Input.Device seat); +bool GetSeatEventFilter(Efl.Input.Device seat); /// Add or remove a given seat to the filter list. If the filter list is empty this object will report mouse, keyboard and focus events from any seat, otherwise those events will only be reported if the event comes from a seat that is in the list. /// The seat to act on. /// true to enable events for a seat or false otherwise. -/// -void SetSeatEventFilter( Efl.Input.Device seat, bool enable); +void SetSeatEventFilter(Efl.Input.Device seat, bool enable); /// Main pointer move (current and previous positions are known). event EventHandler PointerMoveEvt; /// Main pointer button pressed (button id is known). @@ -153,952 +156,1190 @@ IInterface { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IInterfaceConcrete)) - return Efl.Input.IInterfaceNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IInterfaceConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_input_interface_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IInterfaceConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IInterfaceConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object PointerMoveEvtKey = new object(); + /// Main pointer move (current and previous positions are known). public event EventHandler PointerMoveEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerMoveEvt_Args args = new Efl.Input.IInterfacePointerMoveEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_MOVE"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerMoveEvt_delegate)) { - eventHandlers.AddHandler(PointerMoveEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_MOVE"; - if (RemoveNativeEventHandler(key, this.evt_PointerMoveEvt_delegate)) { - eventHandlers.RemoveHandler(PointerMoveEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerMoveEvt. - public void On_PointerMoveEvt(Efl.Input.IInterfacePointerMoveEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerMoveEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerMoveEvt_delegate; - private void on_PointerMoveEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerMoveEvt(Efl.Input.IInterfacePointerMoveEvt_Args e) { - Efl.Input.IInterfacePointerMoveEvt_Args args = new Efl.Input.IInterfacePointerMoveEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerMoveEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_MOVE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerDownEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Main pointer button pressed (button id is known). public event EventHandler PointerDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerDownEvt_Args args = new Efl.Input.IInterfacePointerDownEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_DOWN"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerDownEvt_delegate)) { - eventHandlers.AddHandler(PointerDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_PointerDownEvt_delegate)) { - eventHandlers.RemoveHandler(PointerDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerDownEvt. - public void On_PointerDownEvt(Efl.Input.IInterfacePointerDownEvt_Args e) + public void OnPointerDownEvt(Efl.Input.IInterfacePointerDownEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerDownEvtKey]; + var key = "_EFL_EVENT_POINTER_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerDownEvt_delegate; - private void on_PointerDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Input.IInterfacePointerDownEvt_Args args = new Efl.Input.IInterfacePointerDownEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object PointerUpEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Main pointer button released (button id is known). public event EventHandler PointerUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerUpEvt_Args args = new Efl.Input.IInterfacePointerUpEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_UP"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerUpEvt_delegate)) { - eventHandlers.AddHandler(PointerUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_UP"; - if (RemoveNativeEventHandler(key, this.evt_PointerUpEvt_delegate)) { - eventHandlers.RemoveHandler(PointerUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerUpEvt. - public void On_PointerUpEvt(Efl.Input.IInterfacePointerUpEvt_Args e) + public void OnPointerUpEvt(Efl.Input.IInterfacePointerUpEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerUpEvtKey]; + var key = "_EFL_EVENT_POINTER_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerUpEvt_delegate; - private void on_PointerUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Input.IInterfacePointerUpEvt_Args args = new Efl.Input.IInterfacePointerUpEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object PointerCancelEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Main pointer button press was cancelled (button id is known). This can happen in rare cases when the window manager passes the focus to a more urgent window, for instance. You probably don't need to listen to this event, as it will be accompanied by an up event. public event EventHandler PointerCancelEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerCancelEvt_Args args = new Efl.Input.IInterfacePointerCancelEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_CANCEL"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerCancelEvt_delegate)) { - eventHandlers.AddHandler(PointerCancelEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_CANCEL"; - if (RemoveNativeEventHandler(key, this.evt_PointerCancelEvt_delegate)) { - eventHandlers.RemoveHandler(PointerCancelEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerCancelEvt. - public void On_PointerCancelEvt(Efl.Input.IInterfacePointerCancelEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerCancelEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerCancelEvt_delegate; - private void on_PointerCancelEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerCancelEvt(Efl.Input.IInterfacePointerCancelEvt_Args e) { - Efl.Input.IInterfacePointerCancelEvt_Args args = new Efl.Input.IInterfacePointerCancelEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerCancelEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_CANCEL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerInEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Pointer entered a window or a widget. public event EventHandler PointerInEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerInEvt_Args args = new Efl.Input.IInterfacePointerInEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_IN"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerInEvt_delegate)) { - eventHandlers.AddHandler(PointerInEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_IN"; - if (RemoveNativeEventHandler(key, this.evt_PointerInEvt_delegate)) { - eventHandlers.RemoveHandler(PointerInEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerInEvt. - public void On_PointerInEvt(Efl.Input.IInterfacePointerInEvt_Args e) + public void OnPointerInEvt(Efl.Input.IInterfacePointerInEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerInEvtKey]; + var key = "_EFL_EVENT_POINTER_IN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerInEvt_delegate; - private void on_PointerInEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Input.IInterfacePointerInEvt_Args args = new Efl.Input.IInterfacePointerInEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerInEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object PointerOutEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Pointer left a window or a widget. public event EventHandler PointerOutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerOutEvt_Args args = new Efl.Input.IInterfacePointerOutEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_OUT"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerOutEvt_delegate)) { - eventHandlers.AddHandler(PointerOutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_OUT"; - if (RemoveNativeEventHandler(key, this.evt_PointerOutEvt_delegate)) { - eventHandlers.RemoveHandler(PointerOutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerOutEvt. - public void On_PointerOutEvt(Efl.Input.IInterfacePointerOutEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerOutEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerOutEvt_delegate; - private void on_PointerOutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerOutEvt(Efl.Input.IInterfacePointerOutEvt_Args e) { - Efl.Input.IInterfacePointerOutEvt_Args args = new Efl.Input.IInterfacePointerOutEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerOutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_OUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerWheelEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Mouse wheel event. public event EventHandler PointerWheelEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerWheelEvt_Args args = new Efl.Input.IInterfacePointerWheelEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_WHEEL"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerWheelEvt_delegate)) { - eventHandlers.AddHandler(PointerWheelEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_WHEEL"; - if (RemoveNativeEventHandler(key, this.evt_PointerWheelEvt_delegate)) { - eventHandlers.RemoveHandler(PointerWheelEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerWheelEvt. - public void On_PointerWheelEvt(Efl.Input.IInterfacePointerWheelEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerWheelEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerWheelEvt_delegate; - private void on_PointerWheelEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPointerWheelEvt(Efl.Input.IInterfacePointerWheelEvt_Args e) { - Efl.Input.IInterfacePointerWheelEvt_Args args = new Efl.Input.IInterfacePointerWheelEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerWheelEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_POINTER_WHEEL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PointerAxisEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Pen or other axis event update. public event EventHandler PointerAxisEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfacePointerAxisEvt_Args args = new Efl.Input.IInterfacePointerAxisEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_POINTER_AXIS"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_PointerAxisEvt_delegate)) { - eventHandlers.AddHandler(PointerAxisEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_POINTER_AXIS"; - if (RemoveNativeEventHandler(key, this.evt_PointerAxisEvt_delegate)) { - eventHandlers.RemoveHandler(PointerAxisEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event PointerAxisEvt. - public void On_PointerAxisEvt(Efl.Input.IInterfacePointerAxisEvt_Args e) + public void OnPointerAxisEvt(Efl.Input.IInterfacePointerAxisEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PointerAxisEvtKey]; + var key = "_EFL_EVENT_POINTER_AXIS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PointerAxisEvt_delegate; - private void on_PointerAxisEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Input.IInterfacePointerAxisEvt_Args args = new Efl.Input.IInterfacePointerAxisEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_PointerAxisEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object FingerMoveEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Finger moved (current and previous positions are known). public event EventHandler FingerMoveEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceFingerMoveEvt_Args args = new Efl.Input.IInterfaceFingerMoveEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_FINGER_MOVE"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_FingerMoveEvt_delegate)) { - eventHandlers.AddHandler(FingerMoveEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_FINGER_MOVE"; - if (RemoveNativeEventHandler(key, this.evt_FingerMoveEvt_delegate)) { - eventHandlers.RemoveHandler(FingerMoveEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event FingerMoveEvt. - public void On_FingerMoveEvt(Efl.Input.IInterfaceFingerMoveEvt_Args e) + public void OnFingerMoveEvt(Efl.Input.IInterfaceFingerMoveEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FingerMoveEvtKey]; + var key = "_EFL_EVENT_FINGER_MOVE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FingerMoveEvt_delegate; - private void on_FingerMoveEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Input.IInterfaceFingerMoveEvt_Args args = new Efl.Input.IInterfaceFingerMoveEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_FingerMoveEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object FingerDownEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Finger pressed (finger id is known). public event EventHandler FingerDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceFingerDownEvt_Args args = new Efl.Input.IInterfaceFingerDownEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_FINGER_DOWN"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_FingerDownEvt_delegate)) { - eventHandlers.AddHandler(FingerDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_FINGER_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_FingerDownEvt_delegate)) { - eventHandlers.RemoveHandler(FingerDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event FingerDownEvt. - public void On_FingerDownEvt(Efl.Input.IInterfaceFingerDownEvt_Args e) + public void OnFingerDownEvt(Efl.Input.IInterfaceFingerDownEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FingerDownEvtKey]; + var key = "_EFL_EVENT_FINGER_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FingerDownEvt_delegate; - private void on_FingerDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Input.IInterfaceFingerDownEvt_Args args = new Efl.Input.IInterfaceFingerDownEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_FingerDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object FingerUpEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Finger released (finger id is known). public event EventHandler FingerUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceFingerUpEvt_Args args = new Efl.Input.IInterfaceFingerUpEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_FINGER_UP"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_FingerUpEvt_delegate)) { - eventHandlers.AddHandler(FingerUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_FINGER_UP"; - if (RemoveNativeEventHandler(key, this.evt_FingerUpEvt_delegate)) { - eventHandlers.RemoveHandler(FingerUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event FingerUpEvt. - public void On_FingerUpEvt(Efl.Input.IInterfaceFingerUpEvt_Args e) + public void OnFingerUpEvt(Efl.Input.IInterfaceFingerUpEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FingerUpEvtKey]; + var key = "_EFL_EVENT_FINGER_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FingerUpEvt_delegate; - private void on_FingerUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Input.IInterfaceFingerUpEvt_Args args = new Efl.Input.IInterfaceFingerUpEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Pointer); - try { - On_FingerUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object KeyDownEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Keyboard key press. public event EventHandler KeyDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceKeyDownEvt_Args args = new Efl.Input.IInterfaceKeyDownEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Key); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_KEY_DOWN"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_KeyDownEvt_delegate)) { - eventHandlers.AddHandler(KeyDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_KEY_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_KeyDownEvt_delegate)) { - eventHandlers.RemoveHandler(KeyDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event KeyDownEvt. - public void On_KeyDownEvt(Efl.Input.IInterfaceKeyDownEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[KeyDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_KeyDownEvt_delegate; - private void on_KeyDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnKeyDownEvt(Efl.Input.IInterfaceKeyDownEvt_Args e) { - Efl.Input.IInterfaceKeyDownEvt_Args args = new Efl.Input.IInterfaceKeyDownEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Key); - try { - On_KeyDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_KEY_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object KeyUpEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Keyboard key release. public event EventHandler KeyUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceKeyUpEvt_Args args = new Efl.Input.IInterfaceKeyUpEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Key); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_KEY_UP"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_KeyUpEvt_delegate)) { - eventHandlers.AddHandler(KeyUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_KEY_UP"; - if (RemoveNativeEventHandler(key, this.evt_KeyUpEvt_delegate)) { - eventHandlers.RemoveHandler(KeyUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event KeyUpEvt. - public void On_KeyUpEvt(Efl.Input.IInterfaceKeyUpEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[KeyUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_KeyUpEvt_delegate; - private void on_KeyUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnKeyUpEvt(Efl.Input.IInterfaceKeyUpEvt_Args e) { - Efl.Input.IInterfaceKeyUpEvt_Args args = new Efl.Input.IInterfaceKeyUpEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Key); - try { - On_KeyUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_KEY_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object HoldEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// All input events are on hold or resumed. public event EventHandler HoldEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceHoldEvt_Args args = new Efl.Input.IInterfaceHoldEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Hold); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_HOLD"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_HoldEvt_delegate)) { - eventHandlers.AddHandler(HoldEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_HOLD"; - if (RemoveNativeEventHandler(key, this.evt_HoldEvt_delegate)) { - eventHandlers.RemoveHandler(HoldEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event HoldEvt. - public void On_HoldEvt(Efl.Input.IInterfaceHoldEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[HoldEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_HoldEvt_delegate; - private void on_HoldEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnHoldEvt(Efl.Input.IInterfaceHoldEvt_Args e) { - Efl.Input.IInterfaceHoldEvt_Args args = new Efl.Input.IInterfaceHoldEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Hold); - try { - On_HoldEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_HOLD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FocusInEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// A focus in event. public event EventHandler FocusInEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceFocusInEvt_Args args = new Efl.Input.IInterfaceFocusInEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_FOCUS_IN"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_FocusInEvt_delegate)) { - eventHandlers.AddHandler(FocusInEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_FOCUS_IN"; - if (RemoveNativeEventHandler(key, this.evt_FocusInEvt_delegate)) { - eventHandlers.RemoveHandler(FocusInEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event FocusInEvt. - public void On_FocusInEvt(Efl.Input.IInterfaceFocusInEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusInEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusInEvt_delegate; - private void on_FocusInEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFocusInEvt(Efl.Input.IInterfaceFocusInEvt_Args e) { - Efl.Input.IInterfaceFocusInEvt_Args args = new Efl.Input.IInterfaceFocusInEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_FocusInEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_FOCUS_IN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FocusOutEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// A focus out event. public event EventHandler FocusOutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Input.IInterfaceFocusOutEvt_Args args = new Efl.Input.IInterfaceFocusOutEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_FOCUS_OUT"; - if (AddNativeEventHandler(efl.Libs.Evas, key, this.evt_FocusOutEvt_delegate)) { - eventHandlers.AddHandler(FocusOutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_FOCUS_OUT"; - if (RemoveNativeEventHandler(key, this.evt_FocusOutEvt_delegate)) { - eventHandlers.RemoveHandler(FocusOutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Evas, key, value); } } } ///Method to raise event FocusOutEvt. - public void On_FocusOutEvt(Efl.Input.IInterfaceFocusOutEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusOutEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusOutEvt_delegate; - private void on_FocusOutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFocusOutEvt(Efl.Input.IInterfaceFocusOutEvt_Args e) { - Efl.Input.IInterfaceFocusOutEvt_Args args = new Efl.Input.IInterfaceFocusOutEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_FocusOutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_FOCUS_OUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_PointerMoveEvt_delegate = new Efl.EventCb(on_PointerMoveEvt_NativeCallback); - evt_PointerDownEvt_delegate = new Efl.EventCb(on_PointerDownEvt_NativeCallback); - evt_PointerUpEvt_delegate = new Efl.EventCb(on_PointerUpEvt_NativeCallback); - evt_PointerCancelEvt_delegate = new Efl.EventCb(on_PointerCancelEvt_NativeCallback); - evt_PointerInEvt_delegate = new Efl.EventCb(on_PointerInEvt_NativeCallback); - evt_PointerOutEvt_delegate = new Efl.EventCb(on_PointerOutEvt_NativeCallback); - evt_PointerWheelEvt_delegate = new Efl.EventCb(on_PointerWheelEvt_NativeCallback); - evt_PointerAxisEvt_delegate = new Efl.EventCb(on_PointerAxisEvt_NativeCallback); - evt_FingerMoveEvt_delegate = new Efl.EventCb(on_FingerMoveEvt_NativeCallback); - evt_FingerDownEvt_delegate = new Efl.EventCb(on_FingerDownEvt_NativeCallback); - evt_FingerUpEvt_delegate = new Efl.EventCb(on_FingerUpEvt_NativeCallback); - evt_KeyDownEvt_delegate = new Efl.EventCb(on_KeyDownEvt_NativeCallback); - evt_KeyUpEvt_delegate = new Efl.EventCb(on_KeyUpEvt_NativeCallback); - evt_HoldEvt_delegate = new Efl.EventCb(on_HoldEvt_NativeCallback); - evt_FocusInEvt_delegate = new Efl.EventCb(on_FocusInEvt_NativeCallback); - evt_FocusOutEvt_delegate = new Efl.EventCb(on_FocusOutEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Check if input events from a given seat is enabled. /// The seat to act on. /// true to enable events for a seat or false otherwise. - public bool GetSeatEventFilter( Efl.Input.Device seat) { - var _ret_var = Efl.Input.IInterfaceNativeInherit.efl_input_seat_event_filter_get_ptr.Value.Delegate(this.NativeHandle, seat); + public bool GetSeatEventFilter(Efl.Input.Device seat) { + var _ret_var = Efl.Input.IInterfaceConcrete.NativeMethods.efl_input_seat_event_filter_get_ptr.Value.Delegate(this.NativeHandle,seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Add or remove a given seat to the filter list. If the filter list is empty this object will report mouse, keyboard and focus events from any seat, otherwise those events will only be reported if the event comes from a seat that is in the list. /// The seat to act on. /// true to enable events for a seat or false otherwise. - /// - public void SetSeatEventFilter( Efl.Input.Device seat, bool enable) { - Efl.Input.IInterfaceNativeInherit.efl_input_seat_event_filter_set_ptr.Value.Delegate(this.NativeHandle, seat, enable); + public void SetSeatEventFilter(Efl.Input.Device seat, bool enable) { + Efl.Input.IInterfaceConcrete.NativeMethods.efl_input_seat_event_filter_set_ptr.Value.Delegate(this.NativeHandle,seat, enable); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Input.IInterfaceConcrete.efl_input_interface_interface_get(); } -} -public class IInterfaceNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_input_seat_event_filter_get_static_delegate == null) - efl_input_seat_event_filter_get_static_delegate = new efl_input_seat_event_filter_get_delegate(seat_event_filter_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeatEventFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_seat_event_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_seat_event_filter_get_static_delegate)}); - if (efl_input_seat_event_filter_set_static_delegate == null) - efl_input_seat_event_filter_set_static_delegate = new efl_input_seat_event_filter_set_delegate(seat_event_filter_set); - if (methods.FirstOrDefault(m => m.Name == "SetSeatEventFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_seat_event_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_seat_event_filter_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Input.IInterfaceConcrete.efl_input_interface_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Input.IInterfaceConcrete.efl_input_interface_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_input_seat_event_filter_get_static_delegate == null) + { + efl_input_seat_event_filter_get_static_delegate = new efl_input_seat_event_filter_get_delegate(seat_event_filter_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_seat_event_filter_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + if (methods.FirstOrDefault(m => m.Name == "GetSeatEventFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_seat_event_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_seat_event_filter_get_static_delegate) }); + } + if (efl_input_seat_event_filter_set_static_delegate == null) + { + efl_input_seat_event_filter_set_static_delegate = new efl_input_seat_event_filter_set_delegate(seat_event_filter_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_seat_event_filter_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_input_seat_event_filter_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_seat_event_filter_get"); - private static bool seat_event_filter_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_input_seat_event_filter_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IInterface)wrapper).GetSeatEventFilter( seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSeatEventFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_seat_event_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_seat_event_filter_set_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.Input.IInterfaceConcrete.efl_input_interface_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_seat_event_filter_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_seat_event_filter_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + public static Efl.Eo.FunctionWrapper efl_input_seat_event_filter_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_seat_event_filter_get"); + + private static bool seat_event_filter_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_input_seat_event_filter_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IInterface)wrapper).GetSeatEventFilter(seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_input_seat_event_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + + } + else + { + return efl_input_seat_event_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + } } - } - private static efl_input_seat_event_filter_get_delegate efl_input_seat_event_filter_get_static_delegate; + private static efl_input_seat_event_filter_get_delegate efl_input_seat_event_filter_get_static_delegate; - private delegate void efl_input_seat_event_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat, [MarshalAs(UnmanagedType.U1)] bool enable); + + private delegate void efl_input_seat_event_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat, [MarshalAs(UnmanagedType.U1)] bool enable); + + public delegate void efl_input_seat_event_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat, [MarshalAs(UnmanagedType.U1)] bool enable); - public delegate void efl_input_seat_event_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper efl_input_seat_event_filter_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_seat_event_filter_set"); - private static void seat_event_filter_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat, bool enable) - { - Eina.Log.Debug("function efl_input_seat_event_filter_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterface)wrapper).SetSeatEventFilter( seat, enable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_input_seat_event_filter_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_seat_event_filter_set"); + + private static void seat_event_filter_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat, bool enable) + { + Eina.Log.Debug("function efl_input_seat_event_filter_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterface)wrapper).SetSeatEventFilter(seat, enable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_seat_event_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat, enable); } - } else { - efl_input_seat_event_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat, enable); } - } - private static efl_input_seat_event_filter_set_delegate efl_input_seat_event_filter_set_static_delegate; + + private static efl_input_seat_event_filter_set_delegate efl_input_seat_event_filter_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_key.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_key.eo.cs index ab05181..15d22a2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_key.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_key.eo.cs @@ -3,154 +3,172 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Input { +namespace Efl { + +namespace Input { + /// Represents a single key event from a keyboard or similar device. -[KeyNativeInherit] +[Efl.Input.Key.NativeMethods] public class Key : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent,Efl.Input.IState { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Key)) - return Efl.Input.KeyNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Key)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_input_key_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Key(Efl.Object parent= null - ) : - base(efl_input_key_class_get(), typeof(Key), parent) + ) : base(efl_input_key_class_get(), typeof(Key), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Key(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Key(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Key(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// true if the key is down, false if it is released. /// true if the key is pressed, false otherwise virtual public bool GetPressed() { - var _ret_var = Efl.Input.KeyNativeInherit.efl_input_key_pressed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_pressed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if the key is down, false if it is released. /// true if the key is pressed, false otherwise - /// - virtual public void SetPressed( bool val) { - Efl.Input.KeyNativeInherit.efl_input_key_pressed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetPressed(bool val) { + Efl.Input.Key.NativeMethods.efl_input_key_pressed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Name string of the key. /// Key name virtual public System.String GetKeyName() { - var _ret_var = Efl.Input.KeyNativeInherit.efl_input_key_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Name string of the key. /// Key name - /// - virtual public void SetKeyName( System.String val) { - Efl.Input.KeyNativeInherit.efl_input_key_name_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetKeyName(System.String val) { + Efl.Input.Key.NativeMethods.efl_input_key_name_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Logical key. /// Eg. Shift + 1 = exclamation /// Logical key name virtual public System.String GetKey() { - var _ret_var = Efl.Input.KeyNativeInherit.efl_input_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Logical key. /// Eg. Shift + 1 = exclamation /// Logical key name - /// - virtual public void SetKey( System.String val) { - Efl.Input.KeyNativeInherit.efl_input_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetKey(System.String val) { + Efl.Input.Key.NativeMethods.efl_input_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// A UTF8 string if this keystroke has produced a visible string to be added. /// Visible string from key press in UTF8 virtual public System.String GetString() { - var _ret_var = Efl.Input.KeyNativeInherit.efl_input_key_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// A UTF8 string if this keystroke has produced a visible string to be added. /// Visible string from key press in UTF8 - /// - virtual public void SetString( System.String val) { - Efl.Input.KeyNativeInherit.efl_input_key_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetString(System.String val) { + Efl.Input.Key.NativeMethods.efl_input_key_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// A UTF8 string if this keystroke has modified a string in the middle of being composed. /// Note: This string replaces the previous one /// Composed key string in UTF8 virtual public System.String GetCompose() { - var _ret_var = Efl.Input.KeyNativeInherit.efl_input_key_compose_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_compose_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// A UTF8 string if this keystroke has modified a string in the middle of being composed. /// Note: This string replaces the previous one /// Composed key string in UTF8 - /// - virtual public void SetCompose( System.String val) { - Efl.Input.KeyNativeInherit.efl_input_key_compose_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetCompose(System.String val) { + Efl.Input.Key.NativeMethods.efl_input_key_compose_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Key scan code numeric value. /// Key scan code virtual public int GetKeyCode() { - var _ret_var = Efl.Input.KeyNativeInherit.efl_input_key_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Key scan code numeric value. /// Key scan code - /// - virtual public void SetKeyCode( int val) { - Efl.Input.KeyNativeInherit.efl_input_key_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetKeyCode(int val) { + Efl.Input.Key.NativeMethods.efl_input_key_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Creates a carbon copy of this object and returns it. /// The newly created object will have no event handlers or anything of the sort. /// Returned carbon copy - virtual public Efl.IDuplicate DoDuplicate() { - var _ret_var = Efl.IDuplicateNativeInherit.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + virtual public Efl.IDuplicate Duplicate() { + var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -158,84 +176,78 @@ public class Key : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent,E /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it. /// Time in milliseconds when the event happened. virtual public double GetTimestamp() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_timestamp_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Call this when generating events manually. /// Time in milliseconds when the event happened. - /// - virtual public void SetTimestamp( double ms) { - Efl.Input.IEventNativeInherit.efl_input_timestamp_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ms); + virtual public void SetTimestamp(double ms) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ms); Eina.Error.RaiseIfUnhandledException(); } /// Input device that originated this event. /// Input device origin virtual public Efl.Input.Device GetDevice() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Input device that originated this event. /// Input device origin - /// - virtual public void SetDevice( Efl.Input.Device dev) { - Efl.Input.IEventNativeInherit.efl_input_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dev); + virtual public void SetDevice(Efl.Input.Device dev) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dev); Eina.Error.RaiseIfUnhandledException(); } /// Extra flags for this event, may be changed by the user. /// Input event flags virtual public Efl.Input.Flags GetEventFlags() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_event_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Extra flags for this event, may be changed by the user. /// Input event flags - /// - virtual public void SetEventFlags( Efl.Input.Flags flags) { - Efl.Input.IEventNativeInherit.efl_input_event_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), flags); + virtual public void SetEventFlags(Efl.Input.Flags flags) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),flags); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise virtual public bool GetProcessed() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_processed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise - /// - virtual public void SetProcessed( bool val) { - Efl.Input.IEventNativeInherit.efl_input_processed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetProcessed(bool val) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise virtual public bool GetScrolling() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_scrolling_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise - /// - virtual public void SetScrolling( bool val) { - Efl.Input.IEventNativeInherit.efl_input_scrolling_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetScrolling(bool val) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise virtual public bool GetFake() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_fake_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_fake_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Resets the internal data to 0 or default values. - /// virtual public void Reset() { - Efl.Input.IEventNativeInherit.efl_input_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Input.IEventConcrete.NativeMethods.efl_input_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Indicates whether a key modifier is on, such as Ctrl, Shift, ... @@ -243,8 +255,8 @@ public class Key : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent,E /// The modifier key to test. /// The seat device, may be null /// true if the key modifier is pressed. - virtual public bool GetModifierEnabled( Efl.Input.Modifier mod, Efl.Input.Device seat) { - var _ret_var = Efl.Input.IStateNativeInherit.efl_input_modifier_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mod, seat); + virtual public bool GetModifierEnabled(Efl.Input.Modifier mod, Efl.Input.Device seat) { + var _ret_var = Efl.Input.IStateConcrete.NativeMethods.efl_input_modifier_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mod, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -253,8 +265,8 @@ public class Key : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent,E /// The lock key to test. /// The seat device, may be null /// true if the key lock is on. - virtual public bool GetLockEnabled( Efl.Input.Lock kw_lock, Efl.Input.Device seat) { - var _ret_var = Efl.Input.IStateNativeInherit.efl_input_lock_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_lock, seat); + virtual public bool GetLockEnabled(Efl.Input.Lock kw_lock, Efl.Input.Device seat) { + var _ret_var = Efl.Input.IStateConcrete.NativeMethods.efl_input_lock_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_lock, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -262,63 +274,63 @@ public class Key : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent,E /// true if the key is pressed, false otherwise public bool Pressed { get { return GetPressed(); } - set { SetPressed( value); } + set { SetPressed(value); } } /// Name string of the key. /// Key name public System.String KeyName { get { return GetKeyName(); } - set { SetKeyName( value); } + set { SetKeyName(value); } } /// A UTF8 string if this keystroke has produced a visible string to be added. /// Visible string from key press in UTF8 public System.String String { get { return GetString(); } - set { SetString( value); } + set { SetString(value); } } /// A UTF8 string if this keystroke has modified a string in the middle of being composed. /// Note: This string replaces the previous one /// Composed key string in UTF8 public System.String Compose { get { return GetCompose(); } - set { SetCompose( value); } + set { SetCompose(value); } } /// Key scan code numeric value. /// Key scan code public int KeyCode { get { return GetKeyCode(); } - set { SetKeyCode( value); } + set { SetKeyCode(value); } } /// The time at which an event was generated. /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it. /// Time in milliseconds when the event happened. public double Timestamp { get { return GetTimestamp(); } - set { SetTimestamp( value); } + set { SetTimestamp(value); } } /// Input device that originated this event. /// Input device origin public Efl.Input.Device Device { get { return GetDevice(); } - set { SetDevice( value); } + set { SetDevice(value); } } /// Extra flags for this event, may be changed by the user. /// Input event flags public Efl.Input.Flags EventFlags { get { return GetEventFlags(); } - set { SetEventFlags( value); } + set { SetEventFlags(value); } } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise public bool Processed { get { return GetProcessed(); } - set { SetProcessed( value); } + set { SetProcessed(value); } } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise public bool Scrolling { get { return GetScrolling(); } - set { SetScrolling( value); } + set { SetScrolling(value); } } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise @@ -329,794 +341,1265 @@ public class Key : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent,E { return Efl.Input.Key.efl_input_key_class_get(); } -} -public class KeyNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_input_key_pressed_get_static_delegate == null) - efl_input_key_pressed_get_static_delegate = new efl_input_key_pressed_get_delegate(pressed_get); - if (methods.FirstOrDefault(m => m.Name == "GetPressed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_pressed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_pressed_get_static_delegate)}); - if (efl_input_key_pressed_set_static_delegate == null) - efl_input_key_pressed_set_static_delegate = new efl_input_key_pressed_set_delegate(pressed_set); - if (methods.FirstOrDefault(m => m.Name == "SetPressed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_pressed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_pressed_set_static_delegate)}); - if (efl_input_key_name_get_static_delegate == null) - efl_input_key_name_get_static_delegate = new efl_input_key_name_get_delegate(key_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetKeyName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_name_get_static_delegate)}); - if (efl_input_key_name_set_static_delegate == null) - efl_input_key_name_set_static_delegate = new efl_input_key_name_set_delegate(key_name_set); - if (methods.FirstOrDefault(m => m.Name == "SetKeyName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_name_set_static_delegate)}); - if (efl_input_key_get_static_delegate == null) - efl_input_key_get_static_delegate = new efl_input_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_get_static_delegate)}); - if (efl_input_key_set_static_delegate == null) - efl_input_key_set_static_delegate = new efl_input_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_set_static_delegate)}); - if (efl_input_key_string_get_static_delegate == null) - efl_input_key_string_get_static_delegate = new efl_input_key_string_get_delegate(string_get); - if (methods.FirstOrDefault(m => m.Name == "GetString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_string_get_static_delegate)}); - if (efl_input_key_string_set_static_delegate == null) - efl_input_key_string_set_static_delegate = new efl_input_key_string_set_delegate(string_set); - if (methods.FirstOrDefault(m => m.Name == "SetString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_string_set_static_delegate)}); - if (efl_input_key_compose_get_static_delegate == null) - efl_input_key_compose_get_static_delegate = new efl_input_key_compose_get_delegate(compose_get); - if (methods.FirstOrDefault(m => m.Name == "GetCompose") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_compose_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_compose_get_static_delegate)}); - if (efl_input_key_compose_set_static_delegate == null) - efl_input_key_compose_set_static_delegate = new efl_input_key_compose_set_delegate(compose_set); - if (methods.FirstOrDefault(m => m.Name == "SetCompose") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_compose_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_compose_set_static_delegate)}); - if (efl_input_key_code_get_static_delegate == null) - efl_input_key_code_get_static_delegate = new efl_input_key_code_get_delegate(key_code_get); - if (methods.FirstOrDefault(m => m.Name == "GetKeyCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_code_get_static_delegate)}); - if (efl_input_key_code_set_static_delegate == null) - efl_input_key_code_set_static_delegate = new efl_input_key_code_set_delegate(key_code_set); - if (methods.FirstOrDefault(m => m.Name == "SetKeyCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_key_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_code_set_static_delegate)}); - if (efl_duplicate_static_delegate == null) - efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); - if (methods.FirstOrDefault(m => m.Name == "DoDuplicate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate)}); - if (efl_input_timestamp_get_static_delegate == null) - efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get); - if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate)}); - if (efl_input_timestamp_set_static_delegate == null) - efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set); - if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate)}); - if (efl_input_device_get_static_delegate == null) - efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get); - if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate)}); - if (efl_input_device_set_static_delegate == null) - efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set); - if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate)}); - if (efl_input_event_flags_get_static_delegate == null) - efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get); - if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate)}); - if (efl_input_event_flags_set_static_delegate == null) - efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set); - if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate)}); - if (efl_input_processed_get_static_delegate == null) - efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get); - if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate)}); - if (efl_input_processed_set_static_delegate == null) - efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set); - if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate)}); - if (efl_input_scrolling_get_static_delegate == null) - efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate)}); - if (efl_input_scrolling_set_static_delegate == null) - efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate)}); - if (efl_input_fake_get_static_delegate == null) - efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get); - if (methods.FirstOrDefault(m => m.Name == "GetFake") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate)}); - if (efl_input_reset_static_delegate == null) - efl_input_reset_static_delegate = new efl_input_reset_delegate(reset); - if (methods.FirstOrDefault(m => m.Name == "Reset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate)}); - if (efl_input_modifier_enabled_get_static_delegate == null) - efl_input_modifier_enabled_get_static_delegate = new efl_input_modifier_enabled_get_delegate(modifier_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetModifierEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_modifier_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_modifier_enabled_get_static_delegate)}); - if (efl_input_lock_enabled_get_static_delegate == null) - efl_input_lock_enabled_get_static_delegate = new efl_input_lock_enabled_get_delegate(lock_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetLockEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_lock_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_lock_enabled_get_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Input.Key.efl_input_key_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Input.Key.efl_input_key_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_input_key_pressed_get_static_delegate == null) + { + efl_input_key_pressed_get_static_delegate = new efl_input_key_pressed_get_delegate(pressed_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPressed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_pressed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_pressed_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_key_pressed_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_key_pressed_set_static_delegate == null) + { + efl_input_key_pressed_set_static_delegate = new efl_input_key_pressed_set_delegate(pressed_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPressed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_pressed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_pressed_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_key_pressed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_key_pressed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_pressed_get"); - private static bool pressed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_key_pressed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Key)wrapper).GetPressed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_key_name_get_static_delegate == null) + { + efl_input_key_name_get_static_delegate = new efl_input_key_name_get_delegate(key_name_get); } - return _ret_var; - } else { - return efl_input_key_pressed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_key_pressed_get_delegate efl_input_key_pressed_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetKeyName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_name_get_static_delegate) }); + } - private delegate void efl_input_key_pressed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + if (efl_input_key_name_set_static_delegate == null) + { + efl_input_key_name_set_static_delegate = new efl_input_key_name_set_delegate(key_name_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetKeyName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_name_set_static_delegate) }); + } - public delegate void efl_input_key_pressed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_key_pressed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_pressed_set"); - private static void pressed_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_key_pressed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Key)wrapper).SetPressed( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_key_pressed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); - } - } - private static efl_input_key_pressed_set_delegate efl_input_key_pressed_set_static_delegate; + if (efl_input_key_get_static_delegate == null) + { + efl_input_key_get_static_delegate = new efl_input_key_get_delegate(key_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_input_key_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_key_set_static_delegate == null) + { + efl_input_key_set_static_delegate = new efl_input_key_set_delegate(key_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_input_key_name_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_key_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_name_get"); - private static System.String key_name_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_key_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Key)wrapper).GetKeyName(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_key_string_get_static_delegate == null) + { + efl_input_key_string_get_static_delegate = new efl_input_key_string_get_delegate(string_get); } - return _ret_var; - } else { - return efl_input_key_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_key_name_get_delegate efl_input_key_name_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_string_get_static_delegate) }); + } - private delegate void efl_input_key_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + if (efl_input_key_string_set_static_delegate == null) + { + efl_input_key_string_set_static_delegate = new efl_input_key_string_set_delegate(string_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_string_set_static_delegate) }); + } - public delegate void efl_input_key_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); - public static Efl.Eo.FunctionWrapper efl_input_key_name_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_name_set"); - private static void key_name_set(System.IntPtr obj, System.IntPtr pd, System.String val) - { - Eina.Log.Debug("function efl_input_key_name_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Key)wrapper).SetKeyName( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_key_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); - } - } - private static efl_input_key_name_set_delegate efl_input_key_name_set_static_delegate; + if (efl_input_key_compose_get_static_delegate == null) + { + efl_input_key_compose_get_static_delegate = new efl_input_key_compose_get_delegate(compose_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCompose") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_compose_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_compose_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_input_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_key_compose_set_static_delegate == null) + { + efl_input_key_compose_set_static_delegate = new efl_input_key_compose_set_delegate(compose_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCompose") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_compose_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_compose_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_input_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Key)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_key_code_get_static_delegate == null) + { + efl_input_key_code_get_static_delegate = new efl_input_key_code_get_delegate(key_code_get); } - return _ret_var; - } else { - return efl_input_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_key_get_delegate efl_input_key_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetKeyCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_code_get_static_delegate) }); + } - private delegate void efl_input_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + if (efl_input_key_code_set_static_delegate == null) + { + efl_input_key_code_set_static_delegate = new efl_input_key_code_set_delegate(key_code_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetKeyCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_code_set_static_delegate) }); + } - public delegate void efl_input_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); - public static Efl.Eo.FunctionWrapper efl_input_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String val) - { - Eina.Log.Debug("function efl_input_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Key)wrapper).SetKey( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); - } - } - private static efl_input_key_set_delegate efl_input_key_set_static_delegate; + if (efl_duplicate_static_delegate == null) + { + efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); + } + if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_input_key_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_timestamp_get_static_delegate == null) + { + efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_input_key_string_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_key_string_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_string_get"); - private static System.String string_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_key_string_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Key)wrapper).GetString(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_timestamp_set_static_delegate == null) + { + efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set); } - return _ret_var; - } else { - return efl_input_key_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_key_string_get_delegate efl_input_key_string_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate) }); + } - private delegate void efl_input_key_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + if (efl_input_device_get_static_delegate == null) + { + efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate) }); + } - public delegate void efl_input_key_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); - public static Efl.Eo.FunctionWrapper efl_input_key_string_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_string_set"); - private static void string_set(System.IntPtr obj, System.IntPtr pd, System.String val) - { - Eina.Log.Debug("function efl_input_key_string_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Key)wrapper).SetString( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_key_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); - } - } - private static efl_input_key_string_set_delegate efl_input_key_string_set_static_delegate; + if (efl_input_device_set_static_delegate == null) + { + efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_input_key_compose_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_event_flags_get_static_delegate == null) + { + efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_input_key_compose_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_key_compose_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_compose_get"); - private static System.String compose_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_key_compose_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Key)wrapper).GetCompose(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_event_flags_set_static_delegate == null) + { + efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set); } - return _ret_var; - } else { - return efl_input_key_compose_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_key_compose_get_delegate efl_input_key_compose_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate) }); + } - private delegate void efl_input_key_compose_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + if (efl_input_processed_get_static_delegate == null) + { + efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate) }); + } - public delegate void efl_input_key_compose_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); - public static Efl.Eo.FunctionWrapper efl_input_key_compose_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_compose_set"); - private static void compose_set(System.IntPtr obj, System.IntPtr pd, System.String val) - { - Eina.Log.Debug("function efl_input_key_compose_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Key)wrapper).SetCompose( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_key_compose_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); - } - } - private static efl_input_key_compose_set_delegate efl_input_key_compose_set_static_delegate; + if (efl_input_processed_set_static_delegate == null) + { + efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate) }); + } - private delegate int efl_input_key_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_scrolling_get_static_delegate == null) + { + efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate) }); + } - public delegate int efl_input_key_code_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_key_code_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_code_get"); - private static int key_code_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_key_code_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Key)wrapper).GetKeyCode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_scrolling_set_static_delegate == null) + { + efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set); } - return _ret_var; - } else { - return efl_input_key_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_key_code_get_delegate efl_input_key_code_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate) }); + } - private delegate void efl_input_key_code_set_delegate(System.IntPtr obj, System.IntPtr pd, int val); + if (efl_input_fake_get_static_delegate == null) + { + efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFake") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate) }); + } - public delegate void efl_input_key_code_set_api_delegate(System.IntPtr obj, int val); - public static Efl.Eo.FunctionWrapper efl_input_key_code_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_key_code_set"); - private static void key_code_set(System.IntPtr obj, System.IntPtr pd, int val) - { - Eina.Log.Debug("function efl_input_key_code_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Key)wrapper).SetKeyCode( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_key_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); - } - } - private static efl_input_key_code_set_delegate efl_input_key_code_set_static_delegate; + if (efl_input_reset_static_delegate == null) + { + efl_input_reset_static_delegate = new efl_input_reset_delegate(reset); + } + if (methods.FirstOrDefault(m => m.Name == "Reset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_input_modifier_enabled_get_static_delegate == null) + { + efl_input_modifier_enabled_get_static_delegate = new efl_input_modifier_enabled_get_delegate(modifier_enabled_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetModifierEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_modifier_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_modifier_enabled_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_duplicate"); - private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_duplicate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IDuplicate _ret_var = default(Efl.IDuplicate); - try { - _ret_var = ((Key)wrapper).DoDuplicate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_input_lock_enabled_get_static_delegate == null) + { + efl_input_lock_enabled_get_static_delegate = new efl_input_lock_enabled_get_delegate(lock_enabled_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLockEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_lock_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_lock_enabled_get_static_delegate) }); } - return _ret_var; - } else { - return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_duplicate_delegate efl_duplicate_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Input.Key.efl_input_key_class_get(); + } - private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_key_pressed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_key_pressed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_key_pressed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_pressed_get"); + + private static bool pressed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_key_pressed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Key)wrapper).GetPressed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_timestamp_get"); - private static double timestamp_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_timestamp_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Key)wrapper).GetTimestamp(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_input_key_pressed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate; + private static efl_input_key_pressed_get_delegate efl_input_key_pressed_get_static_delegate; + + + private delegate void efl_input_key_pressed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_key_pressed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_key_pressed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_pressed_set"); + + private static void pressed_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_key_pressed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).SetPressed(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms); + + } + else + { + efl_input_key_pressed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } + } + private static efl_input_key_pressed_set_delegate efl_input_key_pressed_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_input_key_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_input_key_name_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_key_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_name_get"); + + private static System.String key_name_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_key_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Key)wrapper).GetKeyName(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms); - public static Efl.Eo.FunctionWrapper efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_timestamp_set"); - private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms) - { - Eina.Log.Debug("function efl_input_timestamp_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Key)wrapper).SetTimestamp( ms); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms); + return _ret_var; + + } + else + { + return efl_input_key_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate; + private static efl_input_key_name_get_delegate efl_input_key_name_get_static_delegate; + + + private delegate void efl_input_key_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + + + public delegate void efl_input_key_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + + public static Efl.Eo.FunctionWrapper efl_input_key_name_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_name_set"); + + private static void key_name_set(System.IntPtr obj, System.IntPtr pd, System.String val) + { + Eina.Log.Debug("function efl_input_key_name_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).SetKeyName(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_input_key_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } + } + private static efl_input_key_name_set_delegate efl_input_key_name_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_input_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_input_key_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_get"); + + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Key)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_get"); - private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_device_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((Key)wrapper).GetDevice(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_input_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_device_get_delegate efl_input_device_get_static_delegate; + private static efl_input_key_get_delegate efl_input_key_get_static_delegate; + + + private delegate void efl_input_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + + + public delegate void efl_input_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + + public static Efl.Eo.FunctionWrapper efl_input_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String val) + { + Eina.Log.Debug("function efl_input_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).SetKey(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } + } - private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); + private static efl_input_key_set_delegate efl_input_key_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_input_key_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_input_key_string_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_key_string_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_string_get"); + + private static System.String string_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_key_string_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Key)wrapper).GetString(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); - public static Efl.Eo.FunctionWrapper efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_set"); - private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) - { - Eina.Log.Debug("function efl_input_device_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Key)wrapper).SetDevice( dev); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); + } + else + { + return efl_input_key_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_device_set_delegate efl_input_device_set_static_delegate; + private static efl_input_key_string_get_delegate efl_input_key_string_get_static_delegate; + + + private delegate void efl_input_key_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + + + public delegate void efl_input_key_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + + public static Efl.Eo.FunctionWrapper efl_input_key_string_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_string_set"); + + private static void string_set(System.IntPtr obj, System.IntPtr pd, System.String val) + { + Eina.Log.Debug("function efl_input_key_string_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).SetString(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_input_key_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } + } + private static efl_input_key_string_set_delegate efl_input_key_string_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_input_key_compose_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_input_key_compose_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_key_compose_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_compose_get"); + + private static System.String compose_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_key_compose_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Key)wrapper).GetCompose(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_event_flags_get"); - private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_event_flags_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Flags _ret_var = default(Efl.Input.Flags); - try { - _ret_var = ((Key)wrapper).GetEventFlags(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_input_key_compose_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate; + private static efl_input_key_compose_get_delegate efl_input_key_compose_get_static_delegate; + + + private delegate void efl_input_key_compose_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + + + public delegate void efl_input_key_compose_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + + public static Efl.Eo.FunctionWrapper efl_input_key_compose_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_compose_set"); + + private static void compose_set(System.IntPtr obj, System.IntPtr pd, System.String val) + { + Eina.Log.Debug("function efl_input_key_compose_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).SetCompose(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags); + + } + else + { + efl_input_key_compose_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } + } + private static efl_input_key_compose_set_delegate efl_input_key_compose_set_static_delegate; + + + private delegate int efl_input_key_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_input_key_code_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_key_code_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_code_get"); + + private static int key_code_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_key_code_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Key)wrapper).GetKeyCode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags); - public static Efl.Eo.FunctionWrapper efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_event_flags_set"); - private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags) - { - Eina.Log.Debug("function efl_input_event_flags_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Key)wrapper).SetEventFlags( flags); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); + return _ret_var; + + } + else + { + return efl_input_key_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate; + private static efl_input_key_code_get_delegate efl_input_key_code_get_static_delegate; + + + private delegate void efl_input_key_code_set_delegate(System.IntPtr obj, System.IntPtr pd, int val); + + + public delegate void efl_input_key_code_set_api_delegate(System.IntPtr obj, int val); + + public static Efl.Eo.FunctionWrapper efl_input_key_code_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_code_set"); + + private static void key_code_set(System.IntPtr obj, System.IntPtr pd, int val) + { + Eina.Log.Debug("function efl_input_key_code_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).SetKeyCode(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_key_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_input_key_code_set_delegate efl_input_key_code_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_duplicate"); + + private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_duplicate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IDuplicate _ret_var = default(Efl.IDuplicate); + try + { + _ret_var = ((Key)wrapper).Duplicate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_processed_get"); - private static bool processed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_processed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Key)wrapper).GetProcessed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate; + private static efl_duplicate_delegate efl_duplicate_static_delegate; + + + private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_get"); + + private static double timestamp_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_timestamp_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Key)wrapper).GetTimestamp(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + return _ret_var; + } + else + { + return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_processed_set"); - private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_processed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Key)wrapper).SetProcessed( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate; + + + private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms); + + + public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms); + + public static Efl.Eo.FunctionWrapper efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_set"); + + private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms) + { + Eina.Log.Debug("function efl_input_timestamp_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).SetTimestamp(ms); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms); + } } - } - private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate; + private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_get"); + + private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_device_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((Key)wrapper).GetDevice(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_scrolling_get"); - private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_scrolling_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Key)wrapper).GetScrolling(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_input_device_get_delegate efl_input_device_get_static_delegate; + + + private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); + + + public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); + + public static Efl.Eo.FunctionWrapper efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_set"); + + private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) + { + Eina.Log.Debug("function efl_input_device_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).SetDevice(dev); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); } - return _ret_var; - } else { - return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate; + private static efl_input_device_set_delegate efl_input_device_set_static_delegate; + + + private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_get"); + + private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_event_flags_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Flags _ret_var = default(Efl.Input.Flags); + try + { + _ret_var = ((Key)wrapper).GetEventFlags(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + } + else + { + return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate; + + + private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags); + + + public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags); + + public static Efl.Eo.FunctionWrapper efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_set"); + + private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags) + { + Eina.Log.Debug("function efl_input_event_flags_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).SetEventFlags(flags); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_scrolling_set"); - private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_scrolling_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Key)wrapper).SetScrolling( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + + } + else + { + efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); + } } - } - private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate; + private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_get"); + + private static bool processed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_processed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Key)wrapper).GetProcessed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_fake_get"); - private static bool fake_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_fake_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Key)wrapper).GetFake(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate; + + + private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_set"); + + private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_processed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).SetProcessed(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } - return _ret_var; - } else { - return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate; + private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_get"); + + private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_scrolling_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Key)wrapper).GetScrolling(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate; + + + private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_set"); + + private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_scrolling_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).SetScrolling(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_reset"); - private static void reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Key)wrapper).Reset(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } } - } - private static efl_input_reset_delegate efl_input_reset_static_delegate; + private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_fake_get"); + + private static bool fake_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_fake_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Key)wrapper).GetFake(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_modifier_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_modifier_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_input_modifier_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_modifier_enabled_get"); - private static bool modifier_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_input_modifier_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Key)wrapper).GetModifierEnabled( mod, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_input_modifier_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mod, seat); + else + { + return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_modifier_enabled_get_delegate efl_input_modifier_enabled_get_static_delegate; + private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate; + + + private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_input_reset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_reset"); + + private static void reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Key)wrapper).Reset(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_lock_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + private static efl_input_reset_delegate efl_input_reset_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_modifier_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_modifier_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + public static Efl.Eo.FunctionWrapper efl_input_modifier_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_modifier_enabled_get"); + + private static bool modifier_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_input_modifier_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Key)wrapper).GetModifierEnabled(mod, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_lock_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_input_lock_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_lock_enabled_get"); - private static bool lock_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_input_lock_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Key)wrapper).GetLockEnabled( kw_lock, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_input_modifier_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mod, seat); + } + } + + private static efl_input_modifier_enabled_get_delegate efl_input_modifier_enabled_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_lock_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_lock_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + public static Efl.Eo.FunctionWrapper efl_input_lock_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_lock_enabled_get"); + + private static bool lock_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_input_lock_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Key)wrapper).GetLockEnabled(kw_lock, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_input_lock_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_lock, seat); + + } + else + { + return efl_input_lock_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_lock, seat); + } } - } - private static efl_input_lock_enabled_get_delegate efl_input_lock_enabled_get_static_delegate; + + private static efl_input_lock_enabled_get_delegate efl_input_lock_enabled_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_pointer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_pointer.eo.cs index 63512a2..442499c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_pointer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_pointer.eo.cs @@ -3,80 +3,103 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Input { +namespace Efl { + +namespace Input { + /// Event data carried over with any pointer event (mouse, touch, pen, ...) -[PointerNativeInherit] +[Efl.Input.Pointer.NativeMethods] public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent,Efl.Input.IState { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Pointer)) - return Efl.Input.PointerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Pointer)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_input_pointer_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Pointer(Efl.Object parent= null - ) : - base(efl_input_pointer_class_get(), typeof(Pointer), parent) + ) : base(efl_input_pointer_class_get(), typeof(Pointer), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Pointer(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Pointer(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Pointer(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// The action represented by this event. /// Event action virtual public Efl.Pointer.Action GetAction() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_action_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_action_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The action represented by this event. /// Event action - /// - virtual public void SetAction( Efl.Pointer.Action act) { - Efl.Input.PointerNativeInherit.efl_input_pointer_action_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), act); + virtual public void SetAction(Efl.Pointer.Action act) { + Efl.Input.Pointer.NativeMethods.efl_input_pointer_action_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),act); Eina.Error.RaiseIfUnhandledException(); } /// true if this event carries a valid value for the specified key. /// Pressed key /// true if input value is valid, false otherwise - virtual public bool GetValueHas( Efl.Input.Value key) { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_value_has_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public bool GetValueHas(Efl.Input.Value key) { + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_value_has_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -86,8 +109,8 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// Most values are precise floating point values, usually in pixels, radians, or in a range of [-1, 1] or [0, 1]. Some values are discrete values (integers) and thus should preferably be queried with the other methods of this class. /// key /// key value - virtual public double GetValue( Efl.Input.Value key) { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public double GetValue(Efl.Input.Value key) { + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -98,8 +121,8 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// key /// key value /// false if the value could not be set (eg. delta). - virtual public bool SetValue( Efl.Input.Value key, double val) { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key, val); + virtual public bool SetValue(Efl.Input.Value key, double val) { + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key, val); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -107,24 +130,23 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// Valid if and only if (button) is true. /// 1 to 32, 0 if not a button event. virtual public int GetButton() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_button_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_button_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The mouse button that triggered the event. /// Valid if and only if (button) is true. /// 1 to 32, 0 if not a button event. - /// - virtual public void SetButton( int but) { - Efl.Input.PointerNativeInherit.efl_input_pointer_button_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), but); + virtual public void SetButton(int but) { + Efl.Input.Pointer.NativeMethods.efl_input_pointer_button_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),but); Eina.Error.RaiseIfUnhandledException(); } /// Whether a mouse button is pressed at the moment of the event. /// Valid if and only if (button_pressed) is true. /// 1 to 32, 0 if not a button event. /// true when the button was pressed, false otherwise - virtual public bool GetButtonPressed( int button) { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_button_pressed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), button); + virtual public bool GetButtonPressed(int button) { + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_button_pressed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),button); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -132,26 +154,24 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// Valid if and only if (button_pressed) is true. /// 1 to 32, 0 if not a button event. /// true when the button was pressed, false otherwise - /// - virtual public void SetButtonPressed( int button, bool pressed) { - Efl.Input.PointerNativeInherit.efl_input_pointer_button_pressed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), button, pressed); + virtual public void SetButtonPressed(int button, bool pressed) { + Efl.Input.Pointer.NativeMethods.efl_input_pointer_button_pressed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),button, pressed); Eina.Error.RaiseIfUnhandledException(); } /// Position where the event happened, relative to the window. /// See for floating point precision (subpixel location). /// The position of the event, in pixels. virtual public Eina.Position2D GetPosition() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Position where the event happened, relative to the window. /// See for floating point precision (subpixel location). /// The position of the event, in pixels. - /// - virtual public void SetPosition( Eina.Position2D pos) { + virtual public void SetPosition(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Input.PointerNativeInherit.efl_input_pointer_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Input.Pointer.NativeMethods.efl_input_pointer_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// Position where the event happened, relative to the window. @@ -160,7 +180,7 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// See also . /// The position of the event, in pixels. virtual public Eina.Vector2 GetPrecisePosition() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_precise_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_precise_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -169,10 +189,9 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// /// See also . /// The position of the event, in pixels. - /// - virtual public void SetPrecisePosition( Eina.Vector2 pos) { + virtual public void SetPrecisePosition(Eina.Vector2 pos) { Eina.Vector2.NativeStruct _in_pos = pos; - Efl.Input.PointerNativeInherit.efl_input_pointer_precise_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Input.Pointer.NativeMethods.efl_input_pointer_precise_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// Position of the previous event, valid for move events. @@ -181,7 +200,7 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// This position, in integers, is an approximation of (previous_x), (previous_y). Use if you need simple pixel positions, but prefer the generic interface if you need precise coordinates. /// The position of the event, in pixels. virtual public Eina.Position2D GetPreviousPosition() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_previous_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_previous_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -190,119 +209,111 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// /// This position, in integers, is an approximation of (previous_x), (previous_y). Use if you need simple pixel positions, but prefer the generic interface if you need precise coordinates. /// The position of the event, in pixels. - /// - virtual public void SetPreviousPosition( Eina.Position2D pos) { + virtual public void SetPreviousPosition(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Input.PointerNativeInherit.efl_input_pointer_previous_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Input.Pointer.NativeMethods.efl_input_pointer_previous_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// ID of the tool (eg. pen) that triggered this event. /// Tool ID virtual public int GetTool() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_tool_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_tool_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// ID of the tool (eg. pen) that triggered this event. /// Tool ID - /// - virtual public void SetTool( int id) { - Efl.Input.PointerNativeInherit.efl_input_pointer_tool_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id); + virtual public void SetTool(int id) { + Efl.Input.Pointer.NativeMethods.efl_input_pointer_tool_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),id); Eina.Error.RaiseIfUnhandledException(); } /// The object where this event first originated, in case of propagation or repetition of the event. /// Source object: virtual public Efl.Object GetSource() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The object where this event first originated, in case of propagation or repetition of the event. /// Source object: - /// - virtual public void SetSource( Efl.Object src) { - Efl.Input.PointerNativeInherit.efl_input_pointer_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), src); + virtual public void SetSource(Efl.Object src) { + Efl.Input.Pointer.NativeMethods.efl_input_pointer_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),src); Eina.Error.RaiseIfUnhandledException(); } /// Double or triple click information. /// Button information flags virtual public Efl.Pointer.Flags GetButtonFlags() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_button_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_button_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Double or triple click information. /// Button information flags - /// - virtual public void SetButtonFlags( Efl.Pointer.Flags flags) { - Efl.Input.PointerNativeInherit.efl_input_pointer_button_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), flags); + virtual public void SetButtonFlags(Efl.Pointer.Flags flags) { + Efl.Input.Pointer.NativeMethods.efl_input_pointer_button_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),flags); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates a double click (2nd press). /// This is just a helper function around . /// true if the button press was a double click, false otherwise virtual public bool GetDoubleClick() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_double_click_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_double_click_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates a double click (2nd press). /// This is just a helper function around . /// true if the button press was a double click, false otherwise - /// - virtual public void SetDoubleClick( bool val) { - Efl.Input.PointerNativeInherit.efl_input_pointer_double_click_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetDoubleClick(bool val) { + Efl.Input.Pointer.NativeMethods.efl_input_pointer_double_click_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates a triple click (3rd press). /// This is just a helper function around . /// true if the button press was a triple click, false otherwise virtual public bool GetTripleClick() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_triple_click_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_triple_click_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates a triple click (3rd press). /// This is just a helper function around . /// true if the button press was a triple click, false otherwise - /// - virtual public void SetTripleClick( bool val) { - Efl.Input.PointerNativeInherit.efl_input_pointer_triple_click_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetTripleClick(bool val) { + Efl.Input.Pointer.NativeMethods.efl_input_pointer_triple_click_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Direction of the wheel, usually vertical. /// If true this was a horizontal wheel. virtual public bool GetWheelHorizontal() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_wheel_horizontal_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_wheel_horizontal_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Direction of the wheel, usually vertical. /// If true this was a horizontal wheel. - /// - virtual public void SetWheelHorizontal( bool horizontal) { - Efl.Input.PointerNativeInherit.efl_input_pointer_wheel_horizontal_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), horizontal); + virtual public void SetWheelHorizontal(bool horizontal) { + Efl.Input.Pointer.NativeMethods.efl_input_pointer_wheel_horizontal_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),horizontal); Eina.Error.RaiseIfUnhandledException(); } /// Delta movement of the wheel in discrete steps. /// Wheel movement delta virtual public int GetWheelDelta() { - var _ret_var = Efl.Input.PointerNativeInherit.efl_input_pointer_wheel_delta_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.Pointer.NativeMethods.efl_input_pointer_wheel_delta_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Delta movement of the wheel in discrete steps. /// Wheel movement delta - /// - virtual public void SetWheelDelta( int dist) { - Efl.Input.PointerNativeInherit.efl_input_pointer_wheel_delta_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dist); + virtual public void SetWheelDelta(int dist) { + Efl.Input.Pointer.NativeMethods.efl_input_pointer_wheel_delta_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dist); Eina.Error.RaiseIfUnhandledException(); } /// Creates a carbon copy of this object and returns it. /// The newly created object will have no event handlers or anything of the sort. /// Returned carbon copy - virtual public Efl.IDuplicate DoDuplicate() { - var _ret_var = Efl.IDuplicateNativeInherit.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + virtual public Efl.IDuplicate Duplicate() { + var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -310,84 +321,78 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it. /// Time in milliseconds when the event happened. virtual public double GetTimestamp() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_timestamp_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Call this when generating events manually. /// Time in milliseconds when the event happened. - /// - virtual public void SetTimestamp( double ms) { - Efl.Input.IEventNativeInherit.efl_input_timestamp_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ms); + virtual public void SetTimestamp(double ms) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ms); Eina.Error.RaiseIfUnhandledException(); } /// Input device that originated this event. /// Input device origin virtual public Efl.Input.Device GetDevice() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Input device that originated this event. /// Input device origin - /// - virtual public void SetDevice( Efl.Input.Device dev) { - Efl.Input.IEventNativeInherit.efl_input_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dev); + virtual public void SetDevice(Efl.Input.Device dev) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dev); Eina.Error.RaiseIfUnhandledException(); } /// Extra flags for this event, may be changed by the user. /// Input event flags virtual public Efl.Input.Flags GetEventFlags() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_event_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Extra flags for this event, may be changed by the user. /// Input event flags - /// - virtual public void SetEventFlags( Efl.Input.Flags flags) { - Efl.Input.IEventNativeInherit.efl_input_event_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), flags); + virtual public void SetEventFlags(Efl.Input.Flags flags) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),flags); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise virtual public bool GetProcessed() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_processed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise - /// - virtual public void SetProcessed( bool val) { - Efl.Input.IEventNativeInherit.efl_input_processed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetProcessed(bool val) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise virtual public bool GetScrolling() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_scrolling_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise - /// - virtual public void SetScrolling( bool val) { - Efl.Input.IEventNativeInherit.efl_input_scrolling_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetScrolling(bool val) { + Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise virtual public bool GetFake() { - var _ret_var = Efl.Input.IEventNativeInherit.efl_input_fake_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_fake_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Resets the internal data to 0 or default values. - /// virtual public void Reset() { - Efl.Input.IEventNativeInherit.efl_input_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Input.IEventConcrete.NativeMethods.efl_input_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Indicates whether a key modifier is on, such as Ctrl, Shift, ... @@ -395,8 +400,8 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// The modifier key to test. /// The seat device, may be null /// true if the key modifier is pressed. - virtual public bool GetModifierEnabled( Efl.Input.Modifier mod, Efl.Input.Device seat) { - var _ret_var = Efl.Input.IStateNativeInherit.efl_input_modifier_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mod, seat); + virtual public bool GetModifierEnabled(Efl.Input.Modifier mod, Efl.Input.Device seat) { + var _ret_var = Efl.Input.IStateConcrete.NativeMethods.efl_input_modifier_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mod, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -405,8 +410,8 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// The lock key to test. /// The seat device, may be null /// true if the key lock is on. - virtual public bool GetLockEnabled( Efl.Input.Lock kw_lock, Efl.Input.Device seat) { - var _ret_var = Efl.Input.IStateNativeInherit.efl_input_lock_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_lock, seat); + virtual public bool GetLockEnabled(Efl.Input.Lock kw_lock, Efl.Input.Device seat) { + var _ret_var = Efl.Input.IStateConcrete.NativeMethods.efl_input_lock_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_lock, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -414,21 +419,21 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// Event action public Efl.Pointer.Action Action { get { return GetAction(); } - set { SetAction( value); } + set { SetAction(value); } } /// The mouse button that triggered the event. /// Valid if and only if (button) is true. /// 1 to 32, 0 if not a button event. public int Button { get { return GetButton(); } - set { SetButton( value); } + set { SetButton(value); } } /// Position where the event happened, relative to the window. /// See for floating point precision (subpixel location). /// The position of the event, in pixels. public Eina.Position2D Position { get { return GetPosition(); } - set { SetPosition( value); } + set { SetPosition(value); } } /// Position where the event happened, relative to the window. /// This position is in floating point values, for more precise coordinates, in subpixels. Note that many input devices are unable to give better precision than a single pixel, so this may be equal to . @@ -437,7 +442,7 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// The position of the event, in pixels. public Eina.Vector2 PrecisePosition { get { return GetPrecisePosition(); } - set { SetPrecisePosition( value); } + set { SetPrecisePosition(value); } } /// Position of the previous event, valid for move events. /// Relative to the window. May be equal to (by default). @@ -446,82 +451,82 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve /// The position of the event, in pixels. public Eina.Position2D PreviousPosition { get { return GetPreviousPosition(); } - set { SetPreviousPosition( value); } + set { SetPreviousPosition(value); } } /// ID of the tool (eg. pen) that triggered this event. /// Tool ID public int Tool { get { return GetTool(); } - set { SetTool( value); } + set { SetTool(value); } } /// The object where this event first originated, in case of propagation or repetition of the event. /// Source object: public Efl.Object Source { get { return GetSource(); } - set { SetSource( value); } + set { SetSource(value); } } /// Double or triple click information. /// Button information flags public Efl.Pointer.Flags ButtonFlags { get { return GetButtonFlags(); } - set { SetButtonFlags( value); } + set { SetButtonFlags(value); } } /// true if indicates a double click (2nd press). /// This is just a helper function around . /// true if the button press was a double click, false otherwise public bool DoubleClick { get { return GetDoubleClick(); } - set { SetDoubleClick( value); } + set { SetDoubleClick(value); } } /// true if indicates a triple click (3rd press). /// This is just a helper function around . /// true if the button press was a triple click, false otherwise public bool TripleClick { get { return GetTripleClick(); } - set { SetTripleClick( value); } + set { SetTripleClick(value); } } /// Direction of the wheel, usually vertical. /// If true this was a horizontal wheel. public bool WheelHorizontal { get { return GetWheelHorizontal(); } - set { SetWheelHorizontal( value); } + set { SetWheelHorizontal(value); } } /// Delta movement of the wheel in discrete steps. /// Wheel movement delta public int WheelDelta { get { return GetWheelDelta(); } - set { SetWheelDelta( value); } + set { SetWheelDelta(value); } } /// The time at which an event was generated. /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it. /// Time in milliseconds when the event happened. public double Timestamp { get { return GetTimestamp(); } - set { SetTimestamp( value); } + set { SetTimestamp(value); } } /// Input device that originated this event. /// Input device origin public Efl.Input.Device Device { get { return GetDevice(); } - set { SetDevice( value); } + set { SetDevice(value); } } /// Extra flags for this event, may be changed by the user. /// Input event flags public Efl.Input.Flags EventFlags { get { return GetEventFlags(); } - set { SetEventFlags( value); } + set { SetEventFlags(value); } } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise public bool Processed { get { return GetProcessed(); } - set { SetProcessed( value); } + set { SetProcessed(value); } } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise public bool Scrolling { get { return GetScrolling(); } - set { SetScrolling( value); } + set { SetScrolling(value); } } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise @@ -532,1283 +537,2043 @@ public class Pointer : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEve { return Efl.Input.Pointer.efl_input_pointer_class_get(); } -} -public class PointerNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_input_pointer_action_get_static_delegate == null) - efl_input_pointer_action_get_static_delegate = new efl_input_pointer_action_get_delegate(action_get); - if (methods.FirstOrDefault(m => m.Name == "GetAction") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_action_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_action_get_static_delegate)}); - if (efl_input_pointer_action_set_static_delegate == null) - efl_input_pointer_action_set_static_delegate = new efl_input_pointer_action_set_delegate(action_set); - if (methods.FirstOrDefault(m => m.Name == "SetAction") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_action_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_action_set_static_delegate)}); - if (efl_input_pointer_value_has_get_static_delegate == null) - efl_input_pointer_value_has_get_static_delegate = new efl_input_pointer_value_has_get_delegate(value_has_get); - if (methods.FirstOrDefault(m => m.Name == "GetValueHas") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_value_has_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_value_has_get_static_delegate)}); - if (efl_input_pointer_value_get_static_delegate == null) - efl_input_pointer_value_get_static_delegate = new efl_input_pointer_value_get_delegate(value_get); - if (methods.FirstOrDefault(m => m.Name == "GetValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_value_get_static_delegate)}); - if (efl_input_pointer_value_set_static_delegate == null) - efl_input_pointer_value_set_static_delegate = new efl_input_pointer_value_set_delegate(value_set); - if (methods.FirstOrDefault(m => m.Name == "SetValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_value_set_static_delegate)}); - if (efl_input_pointer_button_get_static_delegate == null) - efl_input_pointer_button_get_static_delegate = new efl_input_pointer_button_get_delegate(button_get); - if (methods.FirstOrDefault(m => m.Name == "GetButton") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_button_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_get_static_delegate)}); - if (efl_input_pointer_button_set_static_delegate == null) - efl_input_pointer_button_set_static_delegate = new efl_input_pointer_button_set_delegate(button_set); - if (methods.FirstOrDefault(m => m.Name == "SetButton") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_button_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_set_static_delegate)}); - if (efl_input_pointer_button_pressed_get_static_delegate == null) - efl_input_pointer_button_pressed_get_static_delegate = new efl_input_pointer_button_pressed_get_delegate(button_pressed_get); - if (methods.FirstOrDefault(m => m.Name == "GetButtonPressed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_button_pressed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_pressed_get_static_delegate)}); - if (efl_input_pointer_button_pressed_set_static_delegate == null) - efl_input_pointer_button_pressed_set_static_delegate = new efl_input_pointer_button_pressed_set_delegate(button_pressed_set); - if (methods.FirstOrDefault(m => m.Name == "SetButtonPressed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_button_pressed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_pressed_set_static_delegate)}); - if (efl_input_pointer_position_get_static_delegate == null) - efl_input_pointer_position_get_static_delegate = new efl_input_pointer_position_get_delegate(position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_position_get_static_delegate)}); - if (efl_input_pointer_position_set_static_delegate == null) - efl_input_pointer_position_set_static_delegate = new efl_input_pointer_position_set_delegate(position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_position_set_static_delegate)}); - if (efl_input_pointer_precise_position_get_static_delegate == null) - efl_input_pointer_precise_position_get_static_delegate = new efl_input_pointer_precise_position_get_delegate(precise_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPrecisePosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_precise_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_precise_position_get_static_delegate)}); - if (efl_input_pointer_precise_position_set_static_delegate == null) - efl_input_pointer_precise_position_set_static_delegate = new efl_input_pointer_precise_position_set_delegate(precise_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPrecisePosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_precise_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_precise_position_set_static_delegate)}); - if (efl_input_pointer_previous_position_get_static_delegate == null) - efl_input_pointer_previous_position_get_static_delegate = new efl_input_pointer_previous_position_get_delegate(previous_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPreviousPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_previous_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_previous_position_get_static_delegate)}); - if (efl_input_pointer_previous_position_set_static_delegate == null) - efl_input_pointer_previous_position_set_static_delegate = new efl_input_pointer_previous_position_set_delegate(previous_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPreviousPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_previous_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_previous_position_set_static_delegate)}); - if (efl_input_pointer_tool_get_static_delegate == null) - efl_input_pointer_tool_get_static_delegate = new efl_input_pointer_tool_get_delegate(tool_get); - if (methods.FirstOrDefault(m => m.Name == "GetTool") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_tool_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_tool_get_static_delegate)}); - if (efl_input_pointer_tool_set_static_delegate == null) - efl_input_pointer_tool_set_static_delegate = new efl_input_pointer_tool_set_delegate(tool_set); - if (methods.FirstOrDefault(m => m.Name == "SetTool") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_tool_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_tool_set_static_delegate)}); - if (efl_input_pointer_source_get_static_delegate == null) - efl_input_pointer_source_get_static_delegate = new efl_input_pointer_source_get_delegate(source_get); - if (methods.FirstOrDefault(m => m.Name == "GetSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_source_get_static_delegate)}); - if (efl_input_pointer_source_set_static_delegate == null) - efl_input_pointer_source_set_static_delegate = new efl_input_pointer_source_set_delegate(source_set); - if (methods.FirstOrDefault(m => m.Name == "SetSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_source_set_static_delegate)}); - if (efl_input_pointer_button_flags_get_static_delegate == null) - efl_input_pointer_button_flags_get_static_delegate = new efl_input_pointer_button_flags_get_delegate(button_flags_get); - if (methods.FirstOrDefault(m => m.Name == "GetButtonFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_button_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_flags_get_static_delegate)}); - if (efl_input_pointer_button_flags_set_static_delegate == null) - efl_input_pointer_button_flags_set_static_delegate = new efl_input_pointer_button_flags_set_delegate(button_flags_set); - if (methods.FirstOrDefault(m => m.Name == "SetButtonFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_button_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_flags_set_static_delegate)}); - if (efl_input_pointer_double_click_get_static_delegate == null) - efl_input_pointer_double_click_get_static_delegate = new efl_input_pointer_double_click_get_delegate(double_click_get); - if (methods.FirstOrDefault(m => m.Name == "GetDoubleClick") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_double_click_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_double_click_get_static_delegate)}); - if (efl_input_pointer_double_click_set_static_delegate == null) - efl_input_pointer_double_click_set_static_delegate = new efl_input_pointer_double_click_set_delegate(double_click_set); - if (methods.FirstOrDefault(m => m.Name == "SetDoubleClick") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_double_click_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_double_click_set_static_delegate)}); - if (efl_input_pointer_triple_click_get_static_delegate == null) - efl_input_pointer_triple_click_get_static_delegate = new efl_input_pointer_triple_click_get_delegate(triple_click_get); - if (methods.FirstOrDefault(m => m.Name == "GetTripleClick") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_triple_click_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_triple_click_get_static_delegate)}); - if (efl_input_pointer_triple_click_set_static_delegate == null) - efl_input_pointer_triple_click_set_static_delegate = new efl_input_pointer_triple_click_set_delegate(triple_click_set); - if (methods.FirstOrDefault(m => m.Name == "SetTripleClick") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_triple_click_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_triple_click_set_static_delegate)}); - if (efl_input_pointer_wheel_horizontal_get_static_delegate == null) - efl_input_pointer_wheel_horizontal_get_static_delegate = new efl_input_pointer_wheel_horizontal_get_delegate(wheel_horizontal_get); - if (methods.FirstOrDefault(m => m.Name == "GetWheelHorizontal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_wheel_horizontal_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_wheel_horizontal_get_static_delegate)}); - if (efl_input_pointer_wheel_horizontal_set_static_delegate == null) - efl_input_pointer_wheel_horizontal_set_static_delegate = new efl_input_pointer_wheel_horizontal_set_delegate(wheel_horizontal_set); - if (methods.FirstOrDefault(m => m.Name == "SetWheelHorizontal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_wheel_horizontal_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_wheel_horizontal_set_static_delegate)}); - if (efl_input_pointer_wheel_delta_get_static_delegate == null) - efl_input_pointer_wheel_delta_get_static_delegate = new efl_input_pointer_wheel_delta_get_delegate(wheel_delta_get); - if (methods.FirstOrDefault(m => m.Name == "GetWheelDelta") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_wheel_delta_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_wheel_delta_get_static_delegate)}); - if (efl_input_pointer_wheel_delta_set_static_delegate == null) - efl_input_pointer_wheel_delta_set_static_delegate = new efl_input_pointer_wheel_delta_set_delegate(wheel_delta_set); - if (methods.FirstOrDefault(m => m.Name == "SetWheelDelta") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_pointer_wheel_delta_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_wheel_delta_set_static_delegate)}); - if (efl_duplicate_static_delegate == null) - efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); - if (methods.FirstOrDefault(m => m.Name == "DoDuplicate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate)}); - if (efl_input_timestamp_get_static_delegate == null) - efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get); - if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate)}); - if (efl_input_timestamp_set_static_delegate == null) - efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set); - if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate)}); - if (efl_input_device_get_static_delegate == null) - efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get); - if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate)}); - if (efl_input_device_set_static_delegate == null) - efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set); - if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate)}); - if (efl_input_event_flags_get_static_delegate == null) - efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get); - if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate)}); - if (efl_input_event_flags_set_static_delegate == null) - efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set); - if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate)}); - if (efl_input_processed_get_static_delegate == null) - efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get); - if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate)}); - if (efl_input_processed_set_static_delegate == null) - efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set); - if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate)}); - if (efl_input_scrolling_get_static_delegate == null) - efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate)}); - if (efl_input_scrolling_set_static_delegate == null) - efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate)}); - if (efl_input_fake_get_static_delegate == null) - efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get); - if (methods.FirstOrDefault(m => m.Name == "GetFake") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate)}); - if (efl_input_reset_static_delegate == null) - efl_input_reset_static_delegate = new efl_input_reset_delegate(reset); - if (methods.FirstOrDefault(m => m.Name == "Reset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate)}); - if (efl_input_modifier_enabled_get_static_delegate == null) - efl_input_modifier_enabled_get_static_delegate = new efl_input_modifier_enabled_get_delegate(modifier_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetModifierEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_modifier_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_modifier_enabled_get_static_delegate)}); - if (efl_input_lock_enabled_get_static_delegate == null) - efl_input_lock_enabled_get_static_delegate = new efl_input_lock_enabled_get_delegate(lock_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetLockEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_lock_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_lock_enabled_get_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Input.Pointer.efl_input_pointer_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Input.Pointer.efl_input_pointer_class_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_input_pointer_action_get_static_delegate == null) + { + efl_input_pointer_action_get_static_delegate = new efl_input_pointer_action_get_delegate(action_get); + } - private delegate Efl.Pointer.Action efl_input_pointer_action_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetAction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_action_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_action_get_static_delegate) }); + } + if (efl_input_pointer_action_set_static_delegate == null) + { + efl_input_pointer_action_set_static_delegate = new efl_input_pointer_action_set_delegate(action_set); + } - public delegate Efl.Pointer.Action efl_input_pointer_action_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_action_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_action_get"); - private static Efl.Pointer.Action action_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_action_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Pointer.Action _ret_var = default(Efl.Pointer.Action); - try { - _ret_var = ((Pointer)wrapper).GetAction(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetAction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_action_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_action_set_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_action_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_pointer_action_get_delegate efl_input_pointer_action_get_static_delegate; + if (efl_input_pointer_value_has_get_static_delegate == null) + { + efl_input_pointer_value_has_get_static_delegate = new efl_input_pointer_value_has_get_delegate(value_has_get); + } - private delegate void efl_input_pointer_action_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Pointer.Action act); + if (methods.FirstOrDefault(m => m.Name == "GetValueHas") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_value_has_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_value_has_get_static_delegate) }); + } + if (efl_input_pointer_value_get_static_delegate == null) + { + efl_input_pointer_value_get_static_delegate = new efl_input_pointer_value_get_delegate(value_get); + } - public delegate void efl_input_pointer_action_set_api_delegate(System.IntPtr obj, Efl.Pointer.Action act); - public static Efl.Eo.FunctionWrapper efl_input_pointer_action_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_action_set"); - private static void action_set(System.IntPtr obj, System.IntPtr pd, Efl.Pointer.Action act) - { - Eina.Log.Debug("function efl_input_pointer_action_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetAction( act); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_action_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), act); - } - } - private static efl_input_pointer_action_set_delegate efl_input_pointer_action_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_value_get_static_delegate) }); + } + if (efl_input_pointer_value_set_static_delegate == null) + { + efl_input_pointer_value_set_static_delegate = new efl_input_pointer_value_set_delegate(value_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_pointer_value_has_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key); + if (methods.FirstOrDefault(m => m.Name == "SetValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_value_set_static_delegate) }); + } + if (efl_input_pointer_button_get_static_delegate == null) + { + efl_input_pointer_button_get_static_delegate = new efl_input_pointer_button_get_delegate(button_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_pointer_value_has_get_api_delegate(System.IntPtr obj, Efl.Input.Value key); - public static Efl.Eo.FunctionWrapper efl_input_pointer_value_has_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_value_has_get"); - private static bool value_has_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key) - { - Eina.Log.Debug("function efl_input_pointer_value_has_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pointer)wrapper).GetValueHas( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetButton") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_button_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_get_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_value_has_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); - } - } - private static efl_input_pointer_value_has_get_delegate efl_input_pointer_value_has_get_static_delegate; + if (efl_input_pointer_button_set_static_delegate == null) + { + efl_input_pointer_button_set_static_delegate = new efl_input_pointer_button_set_delegate(button_set); + } - private delegate double efl_input_pointer_value_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key); + if (methods.FirstOrDefault(m => m.Name == "SetButton") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_button_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_set_static_delegate) }); + } + if (efl_input_pointer_button_pressed_get_static_delegate == null) + { + efl_input_pointer_button_pressed_get_static_delegate = new efl_input_pointer_button_pressed_get_delegate(button_pressed_get); + } - public delegate double efl_input_pointer_value_get_api_delegate(System.IntPtr obj, Efl.Input.Value key); - public static Efl.Eo.FunctionWrapper efl_input_pointer_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_value_get"); - private static double value_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key) - { - Eina.Log.Debug("function efl_input_pointer_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Pointer)wrapper).GetValue( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetButtonPressed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_button_pressed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_pressed_get_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); - } - } - private static efl_input_pointer_value_get_delegate efl_input_pointer_value_get_static_delegate; + if (efl_input_pointer_button_pressed_set_static_delegate == null) + { + efl_input_pointer_button_pressed_set_static_delegate = new efl_input_pointer_button_pressed_set_delegate(button_pressed_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_pointer_value_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key, double val); + if (methods.FirstOrDefault(m => m.Name == "SetButtonPressed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_button_pressed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_pressed_set_static_delegate) }); + } + if (efl_input_pointer_position_get_static_delegate == null) + { + efl_input_pointer_position_get_static_delegate = new efl_input_pointer_position_get_delegate(position_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_pointer_value_set_api_delegate(System.IntPtr obj, Efl.Input.Value key, double val); - public static Efl.Eo.FunctionWrapper efl_input_pointer_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_value_set"); - private static bool value_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key, double val) - { - Eina.Log.Debug("function efl_input_pointer_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pointer)wrapper).SetValue( key, val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_position_get_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, val); - } - } - private static efl_input_pointer_value_set_delegate efl_input_pointer_value_set_static_delegate; + if (efl_input_pointer_position_set_static_delegate == null) + { + efl_input_pointer_position_set_static_delegate = new efl_input_pointer_position_set_delegate(position_set); + } - private delegate int efl_input_pointer_button_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_position_set_static_delegate) }); + } + if (efl_input_pointer_precise_position_get_static_delegate == null) + { + efl_input_pointer_precise_position_get_static_delegate = new efl_input_pointer_precise_position_get_delegate(precise_position_get); + } - public delegate int efl_input_pointer_button_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_button_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_button_get"); - private static int button_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_button_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Pointer)wrapper).GetButton(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPrecisePosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_precise_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_precise_position_get_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_button_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_pointer_button_get_delegate efl_input_pointer_button_get_static_delegate; + if (efl_input_pointer_precise_position_set_static_delegate == null) + { + efl_input_pointer_precise_position_set_static_delegate = new efl_input_pointer_precise_position_set_delegate(precise_position_set); + } - private delegate void efl_input_pointer_button_set_delegate(System.IntPtr obj, System.IntPtr pd, int but); + if (methods.FirstOrDefault(m => m.Name == "SetPrecisePosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_precise_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_precise_position_set_static_delegate) }); + } + if (efl_input_pointer_previous_position_get_static_delegate == null) + { + efl_input_pointer_previous_position_get_static_delegate = new efl_input_pointer_previous_position_get_delegate(previous_position_get); + } - public delegate void efl_input_pointer_button_set_api_delegate(System.IntPtr obj, int but); - public static Efl.Eo.FunctionWrapper efl_input_pointer_button_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_button_set"); - private static void button_set(System.IntPtr obj, System.IntPtr pd, int but) - { - Eina.Log.Debug("function efl_input_pointer_button_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetButton( but); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_button_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), but); - } - } - private static efl_input_pointer_button_set_delegate efl_input_pointer_button_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPreviousPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_previous_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_previous_position_get_static_delegate) }); + } + if (efl_input_pointer_previous_position_set_static_delegate == null) + { + efl_input_pointer_previous_position_set_static_delegate = new efl_input_pointer_previous_position_set_delegate(previous_position_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_pointer_button_pressed_get_delegate(System.IntPtr obj, System.IntPtr pd, int button); + if (methods.FirstOrDefault(m => m.Name == "SetPreviousPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_previous_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_previous_position_set_static_delegate) }); + } + if (efl_input_pointer_tool_get_static_delegate == null) + { + efl_input_pointer_tool_get_static_delegate = new efl_input_pointer_tool_get_delegate(tool_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_pointer_button_pressed_get_api_delegate(System.IntPtr obj, int button); - public static Efl.Eo.FunctionWrapper efl_input_pointer_button_pressed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_button_pressed_get"); - private static bool button_pressed_get(System.IntPtr obj, System.IntPtr pd, int button) - { - Eina.Log.Debug("function efl_input_pointer_button_pressed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pointer)wrapper).GetButtonPressed( button); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTool") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_tool_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_tool_get_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_button_pressed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); - } - } - private static efl_input_pointer_button_pressed_get_delegate efl_input_pointer_button_pressed_get_static_delegate; + if (efl_input_pointer_tool_set_static_delegate == null) + { + efl_input_pointer_tool_set_static_delegate = new efl_input_pointer_tool_set_delegate(tool_set); + } - private delegate void efl_input_pointer_button_pressed_set_delegate(System.IntPtr obj, System.IntPtr pd, int button, [MarshalAs(UnmanagedType.U1)] bool pressed); + if (methods.FirstOrDefault(m => m.Name == "SetTool") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_tool_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_tool_set_static_delegate) }); + } + if (efl_input_pointer_source_get_static_delegate == null) + { + efl_input_pointer_source_get_static_delegate = new efl_input_pointer_source_get_delegate(source_get); + } - public delegate void efl_input_pointer_button_pressed_set_api_delegate(System.IntPtr obj, int button, [MarshalAs(UnmanagedType.U1)] bool pressed); - public static Efl.Eo.FunctionWrapper efl_input_pointer_button_pressed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_button_pressed_set"); - private static void button_pressed_set(System.IntPtr obj, System.IntPtr pd, int button, bool pressed) - { - Eina.Log.Debug("function efl_input_pointer_button_pressed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetButtonPressed( button, pressed); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_button_pressed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button, pressed); - } - } - private static efl_input_pointer_button_pressed_set_delegate efl_input_pointer_button_pressed_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_source_get_static_delegate) }); + } + if (efl_input_pointer_source_set_static_delegate == null) + { + efl_input_pointer_source_set_static_delegate = new efl_input_pointer_source_set_delegate(source_set); + } - private delegate Eina.Position2D.NativeStruct efl_input_pointer_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_source_set_static_delegate) }); + } + if (efl_input_pointer_button_flags_get_static_delegate == null) + { + efl_input_pointer_button_flags_get_static_delegate = new efl_input_pointer_button_flags_get_delegate(button_flags_get); + } - public delegate Eina.Position2D.NativeStruct efl_input_pointer_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_position_get"); - private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Pointer)wrapper).GetPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetButtonFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_button_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_flags_get_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_pointer_position_get_delegate efl_input_pointer_position_get_static_delegate; + if (efl_input_pointer_button_flags_set_static_delegate == null) + { + efl_input_pointer_button_flags_set_static_delegate = new efl_input_pointer_button_flags_set_delegate(button_flags_set); + } - private delegate void efl_input_pointer_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (methods.FirstOrDefault(m => m.Name == "SetButtonFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_button_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_button_flags_set_static_delegate) }); + } + if (efl_input_pointer_double_click_get_static_delegate == null) + { + efl_input_pointer_double_click_get_static_delegate = new efl_input_pointer_double_click_get_delegate(double_click_get); + } - public delegate void efl_input_pointer_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_input_pointer_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_position_set"); - private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_input_pointer_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((Pointer)wrapper).SetPosition( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_input_pointer_position_set_delegate efl_input_pointer_position_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetDoubleClick") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_double_click_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_double_click_get_static_delegate) }); + } + if (efl_input_pointer_double_click_set_static_delegate == null) + { + efl_input_pointer_double_click_set_static_delegate = new efl_input_pointer_double_click_set_delegate(double_click_set); + } - private delegate Eina.Vector2.NativeStruct efl_input_pointer_precise_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetDoubleClick") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_double_click_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_double_click_set_static_delegate) }); + } + if (efl_input_pointer_triple_click_get_static_delegate == null) + { + efl_input_pointer_triple_click_get_static_delegate = new efl_input_pointer_triple_click_get_delegate(triple_click_get); + } - public delegate Eina.Vector2.NativeStruct efl_input_pointer_precise_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_precise_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_precise_position_get"); - private static Eina.Vector2.NativeStruct precise_position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_precise_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Vector2 _ret_var = default(Eina.Vector2); - try { - _ret_var = ((Pointer)wrapper).GetPrecisePosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTripleClick") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_triple_click_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_triple_click_get_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_precise_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_pointer_precise_position_get_delegate efl_input_pointer_precise_position_get_static_delegate; + if (efl_input_pointer_triple_click_set_static_delegate == null) + { + efl_input_pointer_triple_click_set_static_delegate = new efl_input_pointer_triple_click_set_delegate(triple_click_set); + } - private delegate void efl_input_pointer_precise_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Vector2.NativeStruct pos); + if (methods.FirstOrDefault(m => m.Name == "SetTripleClick") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_triple_click_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_triple_click_set_static_delegate) }); + } + if (efl_input_pointer_wheel_horizontal_get_static_delegate == null) + { + efl_input_pointer_wheel_horizontal_get_static_delegate = new efl_input_pointer_wheel_horizontal_get_delegate(wheel_horizontal_get); + } - public delegate void efl_input_pointer_precise_position_set_api_delegate(System.IntPtr obj, Eina.Vector2.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_input_pointer_precise_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_precise_position_set"); - private static void precise_position_set(System.IntPtr obj, System.IntPtr pd, Eina.Vector2.NativeStruct pos) - { - Eina.Log.Debug("function efl_input_pointer_precise_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Vector2 _in_pos = pos; - - try { - ((Pointer)wrapper).SetPrecisePosition( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_precise_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_input_pointer_precise_position_set_delegate efl_input_pointer_precise_position_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetWheelHorizontal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_wheel_horizontal_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_wheel_horizontal_get_static_delegate) }); + } + if (efl_input_pointer_wheel_horizontal_set_static_delegate == null) + { + efl_input_pointer_wheel_horizontal_set_static_delegate = new efl_input_pointer_wheel_horizontal_set_delegate(wheel_horizontal_set); + } - private delegate Eina.Position2D.NativeStruct efl_input_pointer_previous_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetWheelHorizontal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_wheel_horizontal_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_wheel_horizontal_set_static_delegate) }); + } + if (efl_input_pointer_wheel_delta_get_static_delegate == null) + { + efl_input_pointer_wheel_delta_get_static_delegate = new efl_input_pointer_wheel_delta_get_delegate(wheel_delta_get); + } - public delegate Eina.Position2D.NativeStruct efl_input_pointer_previous_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_previous_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_previous_position_get"); - private static Eina.Position2D.NativeStruct previous_position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_previous_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Pointer)wrapper).GetPreviousPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetWheelDelta") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_wheel_delta_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_wheel_delta_get_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_previous_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_pointer_previous_position_get_delegate efl_input_pointer_previous_position_get_static_delegate; + if (efl_input_pointer_wheel_delta_set_static_delegate == null) + { + efl_input_pointer_wheel_delta_set_static_delegate = new efl_input_pointer_wheel_delta_set_delegate(wheel_delta_set); + } - private delegate void efl_input_pointer_previous_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (methods.FirstOrDefault(m => m.Name == "SetWheelDelta") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_pointer_wheel_delta_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_pointer_wheel_delta_set_static_delegate) }); + } + if (efl_duplicate_static_delegate == null) + { + efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate); + } - public delegate void efl_input_pointer_previous_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_input_pointer_previous_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_previous_position_set"); - private static void previous_position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_input_pointer_previous_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((Pointer)wrapper).SetPreviousPosition( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_previous_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_input_pointer_previous_position_set_delegate efl_input_pointer_previous_position_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate) }); + } + if (efl_input_timestamp_get_static_delegate == null) + { + efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get); + } - private delegate int efl_input_pointer_tool_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate) }); + } + if (efl_input_timestamp_set_static_delegate == null) + { + efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set); + } - public delegate int efl_input_pointer_tool_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_tool_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_tool_get"); - private static int tool_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_tool_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Pointer)wrapper).GetTool(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_tool_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_pointer_tool_get_delegate efl_input_pointer_tool_get_static_delegate; + if (efl_input_device_get_static_delegate == null) + { + efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get); + } - private delegate void efl_input_pointer_tool_set_delegate(System.IntPtr obj, System.IntPtr pd, int id); + if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate) }); + } + if (efl_input_device_set_static_delegate == null) + { + efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set); + } - public delegate void efl_input_pointer_tool_set_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_input_pointer_tool_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_tool_set"); - private static void tool_set(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_input_pointer_tool_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetTool( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_tool_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); - } - } - private static efl_input_pointer_tool_set_delegate efl_input_pointer_tool_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate) }); + } + if (efl_input_event_flags_get_static_delegate == null) + { + efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_input_pointer_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate) }); + } + if (efl_input_event_flags_set_static_delegate == null) + { + efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_input_pointer_source_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_source_get"); - private static Efl.Object source_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_source_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((Pointer)wrapper).GetSource(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_pointer_source_get_delegate efl_input_pointer_source_get_static_delegate; + if (efl_input_processed_get_static_delegate == null) + { + efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get); + } - private delegate void efl_input_pointer_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object src); + if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate) }); + } + if (efl_input_processed_set_static_delegate == null) + { + efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set); + } - public delegate void efl_input_pointer_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object src); - public static Efl.Eo.FunctionWrapper efl_input_pointer_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_source_set"); - private static void source_set(System.IntPtr obj, System.IntPtr pd, Efl.Object src) - { - Eina.Log.Debug("function efl_input_pointer_source_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetSource( src); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), src); - } - } - private static efl_input_pointer_source_set_delegate efl_input_pointer_source_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate) }); + } + if (efl_input_scrolling_get_static_delegate == null) + { + efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get); + } - private delegate Efl.Pointer.Flags efl_input_pointer_button_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate) }); + } + if (efl_input_scrolling_set_static_delegate == null) + { + efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set); + } - public delegate Efl.Pointer.Flags efl_input_pointer_button_flags_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_button_flags_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_button_flags_get"); - private static Efl.Pointer.Flags button_flags_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_button_flags_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Pointer.Flags _ret_var = default(Efl.Pointer.Flags); - try { - _ret_var = ((Pointer)wrapper).GetButtonFlags(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_button_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_input_pointer_button_flags_get_delegate efl_input_pointer_button_flags_get_static_delegate; + if (efl_input_fake_get_static_delegate == null) + { + efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get); + } - private delegate void efl_input_pointer_button_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Pointer.Flags flags); + if (methods.FirstOrDefault(m => m.Name == "GetFake") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate) }); + } + if (efl_input_reset_static_delegate == null) + { + efl_input_reset_static_delegate = new efl_input_reset_delegate(reset); + } - public delegate void efl_input_pointer_button_flags_set_api_delegate(System.IntPtr obj, Efl.Pointer.Flags flags); - public static Efl.Eo.FunctionWrapper efl_input_pointer_button_flags_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_button_flags_set"); - private static void button_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Pointer.Flags flags) - { - Eina.Log.Debug("function efl_input_pointer_button_flags_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetButtonFlags( flags); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_button_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); - } - } - private static efl_input_pointer_button_flags_set_delegate efl_input_pointer_button_flags_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Reset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate) }); + } + if (efl_input_modifier_enabled_get_static_delegate == null) + { + efl_input_modifier_enabled_get_static_delegate = new efl_input_modifier_enabled_get_delegate(modifier_enabled_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_pointer_double_click_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetModifierEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_modifier_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_modifier_enabled_get_static_delegate) }); + } + if (efl_input_lock_enabled_get_static_delegate == null) + { + efl_input_lock_enabled_get_static_delegate = new efl_input_lock_enabled_get_delegate(lock_enabled_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_pointer_double_click_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_double_click_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_double_click_get"); - private static bool double_click_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_double_click_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pointer)wrapper).GetDoubleClick(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetLockEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_lock_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_lock_enabled_get_static_delegate) }); } - return _ret_var; - } else { - return efl_input_pointer_double_click_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Input.Pointer.efl_input_pointer_class_get(); } - } - private static efl_input_pointer_double_click_get_delegate efl_input_pointer_double_click_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.Pointer.Action efl_input_pointer_action_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Pointer.Action efl_input_pointer_action_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_action_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_action_get"); + + private static Efl.Pointer.Action action_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_action_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Pointer.Action _ret_var = default(Efl.Pointer.Action); + try + { + _ret_var = ((Pointer)wrapper).GetAction(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_pointer_double_click_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + return _ret_var; + } + else + { + return efl_input_pointer_action_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_input_pointer_double_click_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_pointer_double_click_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_double_click_set"); - private static void double_click_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_pointer_double_click_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetDoubleClick( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_double_click_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + private static efl_input_pointer_action_get_delegate efl_input_pointer_action_get_static_delegate; + + + private delegate void efl_input_pointer_action_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Pointer.Action act); + + + public delegate void efl_input_pointer_action_set_api_delegate(System.IntPtr obj, Efl.Pointer.Action act); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_action_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_action_set"); + + private static void action_set(System.IntPtr obj, System.IntPtr pd, Efl.Pointer.Action act) + { + Eina.Log.Debug("function efl_input_pointer_action_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetAction(act); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_pointer_action_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), act); + } } - } - private static efl_input_pointer_double_click_set_delegate efl_input_pointer_double_click_set_static_delegate; + private static efl_input_pointer_action_set_delegate efl_input_pointer_action_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_pointer_value_has_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_pointer_value_has_get_api_delegate(System.IntPtr obj, Efl.Input.Value key); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_value_has_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_value_has_get"); + + private static bool value_has_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key) + { + Eina.Log.Debug("function efl_input_pointer_value_has_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pointer)wrapper).GetValueHas(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_pointer_triple_click_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_input_pointer_value_has_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } + } + private static efl_input_pointer_value_has_get_delegate efl_input_pointer_value_has_get_static_delegate; + + + private delegate double efl_input_pointer_value_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key); + + + public delegate double efl_input_pointer_value_get_api_delegate(System.IntPtr obj, Efl.Input.Value key); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_value_get"); + + private static double value_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key) + { + Eina.Log.Debug("function efl_input_pointer_value_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Pointer)wrapper).GetValue(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_pointer_triple_click_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_triple_click_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_triple_click_get"); - private static bool triple_click_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_triple_click_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pointer)wrapper).GetTripleClick(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_input_pointer_triple_click_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_input_pointer_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } } - } - private static efl_input_pointer_triple_click_get_delegate efl_input_pointer_triple_click_get_static_delegate; + private static efl_input_pointer_value_get_delegate efl_input_pointer_value_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_pointer_value_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key, double val); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_pointer_value_set_api_delegate(System.IntPtr obj, Efl.Input.Value key, double val); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_value_set"); + + private static bool value_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Value key, double val) + { + Eina.Log.Debug("function efl_input_pointer_value_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pointer)wrapper).SetValue(key, val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_pointer_triple_click_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + return _ret_var; + } + else + { + return efl_input_pointer_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, val); + } + } - public delegate void efl_input_pointer_triple_click_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_pointer_triple_click_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_triple_click_set"); - private static void triple_click_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_pointer_triple_click_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetTripleClick( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_triple_click_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + private static efl_input_pointer_value_set_delegate efl_input_pointer_value_set_static_delegate; + + + private delegate int efl_input_pointer_button_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_input_pointer_button_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_button_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_button_get"); + + private static int button_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_button_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Pointer)wrapper).GetButton(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_input_pointer_button_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_pointer_triple_click_set_delegate efl_input_pointer_triple_click_set_static_delegate; + private static efl_input_pointer_button_get_delegate efl_input_pointer_button_get_static_delegate; + + + private delegate void efl_input_pointer_button_set_delegate(System.IntPtr obj, System.IntPtr pd, int but); + + + public delegate void efl_input_pointer_button_set_api_delegate(System.IntPtr obj, int but); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_button_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_button_set"); + + private static void button_set(System.IntPtr obj, System.IntPtr pd, int but) + { + Eina.Log.Debug("function efl_input_pointer_button_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetButton(but); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_pointer_button_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), but); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_pointer_wheel_horizontal_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_input_pointer_button_set_delegate efl_input_pointer_button_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_pointer_button_pressed_get_delegate(System.IntPtr obj, System.IntPtr pd, int button); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_pointer_button_pressed_get_api_delegate(System.IntPtr obj, int button); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_button_pressed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_button_pressed_get"); + + private static bool button_pressed_get(System.IntPtr obj, System.IntPtr pd, int button) + { + Eina.Log.Debug("function efl_input_pointer_button_pressed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pointer)wrapper).GetButtonPressed(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_pointer_wheel_horizontal_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_wheel_horizontal_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_wheel_horizontal_get"); - private static bool wheel_horizontal_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_wheel_horizontal_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pointer)wrapper).GetWheelHorizontal(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_input_pointer_wheel_horizontal_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_input_pointer_button_pressed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } } - } - private static efl_input_pointer_wheel_horizontal_get_delegate efl_input_pointer_wheel_horizontal_get_static_delegate; + private static efl_input_pointer_button_pressed_get_delegate efl_input_pointer_button_pressed_get_static_delegate; + + + private delegate void efl_input_pointer_button_pressed_set_delegate(System.IntPtr obj, System.IntPtr pd, int button, [MarshalAs(UnmanagedType.U1)] bool pressed); + + + public delegate void efl_input_pointer_button_pressed_set_api_delegate(System.IntPtr obj, int button, [MarshalAs(UnmanagedType.U1)] bool pressed); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_button_pressed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_button_pressed_set"); + + private static void button_pressed_set(System.IntPtr obj, System.IntPtr pd, int button, bool pressed) + { + Eina.Log.Debug("function efl_input_pointer_button_pressed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetButtonPressed(button, pressed); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_pointer_button_pressed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button, pressed); + } + } - private delegate void efl_input_pointer_wheel_horizontal_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horizontal); + private static efl_input_pointer_button_pressed_set_delegate efl_input_pointer_button_pressed_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_input_pointer_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_input_pointer_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_position_get"); + + private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Pointer)wrapper).GetPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_input_pointer_wheel_horizontal_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horizontal); - public static Efl.Eo.FunctionWrapper efl_input_pointer_wheel_horizontal_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_wheel_horizontal_set"); - private static void wheel_horizontal_set(System.IntPtr obj, System.IntPtr pd, bool horizontal) - { - Eina.Log.Debug("function efl_input_pointer_wheel_horizontal_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetWheelHorizontal( horizontal); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_wheel_horizontal_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horizontal); + } + else + { + return efl_input_pointer_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_pointer_wheel_horizontal_set_delegate efl_input_pointer_wheel_horizontal_set_static_delegate; + private static efl_input_pointer_position_get_delegate efl_input_pointer_position_get_static_delegate; - private delegate int efl_input_pointer_wheel_delta_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_input_pointer_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_input_pointer_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public delegate int efl_input_pointer_wheel_delta_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_pointer_wheel_delta_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_wheel_delta_get"); - private static int wheel_delta_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_pointer_wheel_delta_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Pointer)wrapper).GetWheelDelta(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_input_pointer_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_position_set"); + + private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_input_pointer_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((Pointer)wrapper).SetPosition(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_pointer_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - return _ret_var; - } else { - return efl_input_pointer_wheel_delta_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_pointer_wheel_delta_get_delegate efl_input_pointer_wheel_delta_get_static_delegate; - - private delegate void efl_input_pointer_wheel_delta_set_delegate(System.IntPtr obj, System.IntPtr pd, int dist); + private static efl_input_pointer_position_set_delegate efl_input_pointer_position_set_static_delegate; + + + private delegate Eina.Vector2.NativeStruct efl_input_pointer_precise_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Vector2.NativeStruct efl_input_pointer_precise_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_precise_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_precise_position_get"); + + private static Eina.Vector2.NativeStruct precise_position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_precise_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Vector2 _ret_var = default(Eina.Vector2); + try + { + _ret_var = ((Pointer)wrapper).GetPrecisePosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_input_pointer_wheel_delta_set_api_delegate(System.IntPtr obj, int dist); - public static Efl.Eo.FunctionWrapper efl_input_pointer_wheel_delta_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_pointer_wheel_delta_set"); - private static void wheel_delta_set(System.IntPtr obj, System.IntPtr pd, int dist) - { - Eina.Log.Debug("function efl_input_pointer_wheel_delta_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetWheelDelta( dist); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_pointer_wheel_delta_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dist); + } + else + { + return efl_input_pointer_precise_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_pointer_wheel_delta_set_delegate efl_input_pointer_wheel_delta_set_static_delegate; + private static efl_input_pointer_precise_position_get_delegate efl_input_pointer_precise_position_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_input_pointer_precise_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Vector2.NativeStruct pos); + + public delegate void efl_input_pointer_precise_position_set_api_delegate(System.IntPtr obj, Eina.Vector2.NativeStruct pos); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_duplicate"); - private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_duplicate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IDuplicate _ret_var = default(Efl.IDuplicate); - try { - _ret_var = ((Pointer)wrapper).DoDuplicate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_input_pointer_precise_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_precise_position_set"); + + private static void precise_position_set(System.IntPtr obj, System.IntPtr pd, Eina.Vector2.NativeStruct pos) + { + Eina.Log.Debug("function efl_input_pointer_precise_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Vector2 _in_pos = pos; + + try + { + ((Pointer)wrapper).SetPrecisePosition(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_pointer_precise_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } + } + + private static efl_input_pointer_precise_position_set_delegate efl_input_pointer_precise_position_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_input_pointer_previous_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_input_pointer_previous_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_previous_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_previous_position_get"); + + private static Eina.Position2D.NativeStruct previous_position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_previous_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Pointer)wrapper).GetPreviousPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_input_pointer_previous_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_duplicate_delegate efl_duplicate_static_delegate; + private static efl_input_pointer_previous_position_get_delegate efl_input_pointer_previous_position_get_static_delegate; - private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_input_pointer_previous_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_input_pointer_previous_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_timestamp_get"); - private static double timestamp_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_timestamp_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Pointer)wrapper).GetTimestamp(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_input_pointer_previous_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_previous_position_set"); + + private static void previous_position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_input_pointer_previous_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((Pointer)wrapper).SetPreviousPosition(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_pointer_previous_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - return _ret_var; - } else { - return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate; + private static efl_input_pointer_previous_position_set_delegate efl_input_pointer_previous_position_set_static_delegate; + + + private delegate int efl_input_pointer_tool_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_input_pointer_tool_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_tool_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_tool_get"); + + private static int tool_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_tool_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Pointer)wrapper).GetTool(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms); + return _ret_var; + } + else + { + return efl_input_pointer_tool_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms); - public static Efl.Eo.FunctionWrapper efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_timestamp_set"); - private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms) - { - Eina.Log.Debug("function efl_input_timestamp_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetTimestamp( ms); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms); + private static efl_input_pointer_tool_get_delegate efl_input_pointer_tool_get_static_delegate; + + + private delegate void efl_input_pointer_tool_set_delegate(System.IntPtr obj, System.IntPtr pd, int id); + + + public delegate void efl_input_pointer_tool_set_api_delegate(System.IntPtr obj, int id); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_tool_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_tool_set"); + + private static void tool_set(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_input_pointer_tool_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetTool(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_pointer_tool_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } } - } - private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate; + private static efl_input_pointer_tool_set_delegate efl_input_pointer_tool_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_input_pointer_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_input_pointer_source_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_source_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_source_get"); + + private static Efl.Object source_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_source_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((Pointer)wrapper).GetSource(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_input_pointer_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_get"); - private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_device_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((Pointer)wrapper).GetDevice(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_input_pointer_source_get_delegate efl_input_pointer_source_get_static_delegate; + + + private delegate void efl_input_pointer_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object src); + + + public delegate void efl_input_pointer_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object src); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_source_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_source_set"); + + private static void source_set(System.IntPtr obj, System.IntPtr pd, Efl.Object src) + { + Eina.Log.Debug("function efl_input_pointer_source_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetSource(src); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_pointer_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), src); } - return _ret_var; - } else { - return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_device_get_delegate efl_input_device_get_static_delegate; + private static efl_input_pointer_source_set_delegate efl_input_pointer_source_set_static_delegate; + + + private delegate Efl.Pointer.Flags efl_input_pointer_button_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Pointer.Flags efl_input_pointer_button_flags_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_button_flags_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_button_flags_get"); + + private static Efl.Pointer.Flags button_flags_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_button_flags_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Pointer.Flags _ret_var = default(Efl.Pointer.Flags); + try + { + _ret_var = ((Pointer)wrapper).GetButtonFlags(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); + } + else + { + return efl_input_pointer_button_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_pointer_button_flags_get_delegate efl_input_pointer_button_flags_get_static_delegate; + + + private delegate void efl_input_pointer_button_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Pointer.Flags flags); + + + public delegate void efl_input_pointer_button_flags_set_api_delegate(System.IntPtr obj, Efl.Pointer.Flags flags); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_button_flags_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_button_flags_set"); + + private static void button_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Pointer.Flags flags) + { + Eina.Log.Debug("function efl_input_pointer_button_flags_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetButtonFlags(flags); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device dev); - public static Efl.Eo.FunctionWrapper efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_device_set"); - private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) - { - Eina.Log.Debug("function efl_input_device_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetDevice( dev); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); + + } + else + { + efl_input_pointer_button_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); + } } - } - private static efl_input_device_set_delegate efl_input_device_set_static_delegate; + private static efl_input_pointer_button_flags_set_delegate efl_input_pointer_button_flags_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_pointer_double_click_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_pointer_double_click_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_double_click_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_double_click_get"); + + private static bool double_click_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_double_click_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pointer)wrapper).GetDoubleClick(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + + } + else + { + return efl_input_pointer_double_click_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_pointer_double_click_get_delegate efl_input_pointer_double_click_get_static_delegate; + + + private delegate void efl_input_pointer_double_click_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_pointer_double_click_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_double_click_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_double_click_set"); + + private static void double_click_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_pointer_double_click_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetDoubleClick(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_event_flags_get"); - private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_event_flags_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Flags _ret_var = default(Efl.Input.Flags); - try { - _ret_var = ((Pointer)wrapper).GetEventFlags(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_input_pointer_double_click_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } - return _ret_var; - } else { - return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate; + private static efl_input_pointer_double_click_set_delegate efl_input_pointer_double_click_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_pointer_triple_click_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_pointer_triple_click_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_triple_click_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_triple_click_get"); + + private static bool triple_click_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_triple_click_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pointer)wrapper).GetTripleClick(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags); + return _ret_var; + } + else + { + return efl_input_pointer_triple_click_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags); - public static Efl.Eo.FunctionWrapper efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_event_flags_set"); - private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags) - { - Eina.Log.Debug("function efl_input_event_flags_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetEventFlags( flags); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); + private static efl_input_pointer_triple_click_get_delegate efl_input_pointer_triple_click_get_static_delegate; + + + private delegate void efl_input_pointer_triple_click_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_pointer_triple_click_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_triple_click_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_triple_click_set"); + + private static void triple_click_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_pointer_triple_click_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetTripleClick(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_pointer_triple_click_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } } - } - private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate; + private static efl_input_pointer_triple_click_set_delegate efl_input_pointer_triple_click_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_pointer_wheel_horizontal_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_pointer_wheel_horizontal_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_wheel_horizontal_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_wheel_horizontal_get"); + + private static bool wheel_horizontal_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_wheel_horizontal_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pointer)wrapper).GetWheelHorizontal(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_input_pointer_wheel_horizontal_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_pointer_wheel_horizontal_get_delegate efl_input_pointer_wheel_horizontal_get_static_delegate; + + + private delegate void efl_input_pointer_wheel_horizontal_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horizontal); + + + public delegate void efl_input_pointer_wheel_horizontal_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horizontal); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_wheel_horizontal_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_wheel_horizontal_set"); + + private static void wheel_horizontal_set(System.IntPtr obj, System.IntPtr pd, bool horizontal) + { + Eina.Log.Debug("function efl_input_pointer_wheel_horizontal_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetWheelHorizontal(horizontal); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_processed_get"); - private static bool processed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_processed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pointer)wrapper).GetProcessed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_input_pointer_wheel_horizontal_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horizontal); } + } + + private static efl_input_pointer_wheel_horizontal_set_delegate efl_input_pointer_wheel_horizontal_set_static_delegate; + + + private delegate int efl_input_pointer_wheel_delta_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_input_pointer_wheel_delta_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_wheel_delta_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_wheel_delta_get"); + + private static int wheel_delta_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_pointer_wheel_delta_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Pointer)wrapper).GetWheelDelta(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_input_pointer_wheel_delta_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate; + private static efl_input_pointer_wheel_delta_get_delegate efl_input_pointer_wheel_delta_get_static_delegate; + + + private delegate void efl_input_pointer_wheel_delta_set_delegate(System.IntPtr obj, System.IntPtr pd, int dist); + + + public delegate void efl_input_pointer_wheel_delta_set_api_delegate(System.IntPtr obj, int dist); + + public static Efl.Eo.FunctionWrapper efl_input_pointer_wheel_delta_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_pointer_wheel_delta_set"); + + private static void wheel_delta_set(System.IntPtr obj, System.IntPtr pd, int dist) + { + Eina.Log.Debug("function efl_input_pointer_wheel_delta_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetWheelDelta(dist); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + } + else + { + efl_input_pointer_wheel_delta_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dist); + } + } + private static efl_input_pointer_wheel_delta_set_delegate efl_input_pointer_wheel_delta_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_duplicate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_duplicate"); + + private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_duplicate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IDuplicate _ret_var = default(Efl.IDuplicate); + try + { + _ret_var = ((Pointer)wrapper).Duplicate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_processed_set"); - private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_processed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetProcessed( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + return _ret_var; + + } + else + { + return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate; + private static efl_duplicate_delegate efl_duplicate_static_delegate; + + + private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_get"); + + private static double timestamp_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_timestamp_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Pointer)wrapper).GetTimestamp(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + + } + else + { + return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate; + + + private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms); + + + public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms); + + public static Efl.Eo.FunctionWrapper efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_timestamp_set"); + + private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms) + { + Eina.Log.Debug("function efl_input_timestamp_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetTimestamp(ms); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_scrolling_get"); - private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_scrolling_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pointer)wrapper).GetScrolling(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms); } - return _ret_var; - } else { - return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate; + private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_get"); + + private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_device_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((Pointer)wrapper).GetDevice(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + return _ret_var; + } + else + { + return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); - public static Efl.Eo.FunctionWrapper efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_scrolling_set"); - private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val) - { - Eina.Log.Debug("function efl_input_scrolling_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pointer)wrapper).SetScrolling( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + private static efl_input_device_get_delegate efl_input_device_get_static_delegate; + + + private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); + + + public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device dev); + + public static Efl.Eo.FunctionWrapper efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_device_set"); + + private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) + { + Eina.Log.Debug("function efl_input_device_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetDevice(dev); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); + } } - } - private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate; + private static efl_input_device_set_delegate efl_input_device_set_static_delegate; + + + private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_get"); + + private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_event_flags_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Flags _ret_var = default(Efl.Input.Flags); + try + { + _ret_var = ((Pointer)wrapper).GetEventFlags(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate; + + + private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags); + + + public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags); + + public static Efl.Eo.FunctionWrapper efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_event_flags_set"); + + private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags) + { + Eina.Log.Debug("function efl_input_event_flags_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetEventFlags(flags); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_fake_get"); - private static bool fake_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_fake_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pointer)wrapper).GetFake(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); } - return _ret_var; - } else { - return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate; + private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_get"); + + private static bool processed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_processed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pointer)wrapper).GetProcessed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate; + + + private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_processed_set"); + + private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_processed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetProcessed(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_input_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_reset"); - private static void reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_input_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Pointer)wrapper).Reset(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } } - } - private static efl_input_reset_delegate efl_input_reset_static_delegate; + private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_get"); + + private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_scrolling_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pointer)wrapper).GetScrolling(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_modifier_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + return _ret_var; + } + else + { + return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_modifier_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_input_modifier_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_modifier_enabled_get"); - private static bool modifier_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_input_modifier_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pointer)wrapper).GetModifierEnabled( mod, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate; + + + private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val); + + + public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val); + + public static Efl.Eo.FunctionWrapper efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_scrolling_set"); + + private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val) + { + Eina.Log.Debug("function efl_input_scrolling_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).SetScrolling(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } - return _ret_var; - } else { - return efl_input_modifier_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mod, seat); } - } - private static efl_input_modifier_enabled_get_delegate efl_input_modifier_enabled_get_static_delegate; + private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_fake_get"); + + private static bool fake_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_fake_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pointer)wrapper).GetFake(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_lock_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate; + + + private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_input_reset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_reset"); + + private static void reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pointer)wrapper).Reset(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_input_reset_delegate efl_input_reset_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_modifier_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_modifier_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + public static Efl.Eo.FunctionWrapper efl_input_modifier_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_modifier_enabled_get"); + + private static bool modifier_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_input_modifier_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pointer)wrapper).GetModifierEnabled(mod, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_lock_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_input_lock_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_lock_enabled_get"); - private static bool lock_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_input_lock_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pointer)wrapper).GetLockEnabled( kw_lock, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_input_modifier_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mod, seat); + } + } + + private static efl_input_modifier_enabled_get_delegate efl_input_modifier_enabled_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_lock_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_lock_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + public static Efl.Eo.FunctionWrapper efl_input_lock_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_lock_enabled_get"); + + private static bool lock_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_input_lock_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pointer)wrapper).GetLockEnabled(kw_lock, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_input_lock_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_lock, seat); + + } + else + { + return efl_input_lock_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_lock, seat); + } } - } - private static efl_input_lock_enabled_get_delegate efl_input_lock_enabled_get_static_delegate; + + private static efl_input_lock_enabled_get_delegate efl_input_lock_enabled_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_state.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_state.eo.cs index ae9b42f..ecdc418 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_state.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_state.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Input { +namespace Efl { + +namespace Input { + /// Efl input state interface. /// (Since EFL 1.22) -[IStateNativeInherit] +[Efl.Input.IStateConcrete.NativeMethods] public interface IState : Efl.Eo.IWrapper, IDisposable { @@ -16,13 +20,13 @@ public interface IState : /// The modifier key to test. /// The seat device, may be null /// true if the key modifier is pressed. -bool GetModifierEnabled( Efl.Input.Modifier mod, Efl.Input.Device seat); +bool GetModifierEnabled(Efl.Input.Modifier mod, Efl.Input.Device seat); /// Indicates whether a key lock is on, such as NumLock, CapsLock, ... /// (Since EFL 1.22) /// The lock key to test. /// The seat device, may be null /// true if the key lock is on. -bool GetLockEnabled( Efl.Input.Lock kw_lock, Efl.Input.Device seat); +bool GetLockEnabled(Efl.Input.Lock kw_lock, Efl.Input.Device seat); } /// Efl input state interface. /// (Since EFL 1.22) @@ -32,75 +36,110 @@ IState { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IStateConcrete)) - return Efl.Input.IStateNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IStateConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_input_state_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IStateConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IStateConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Indicates whether a key modifier is on, such as Ctrl, Shift, ... /// (Since EFL 1.22) /// The modifier key to test. /// The seat device, may be null /// true if the key modifier is pressed. - public bool GetModifierEnabled( Efl.Input.Modifier mod, Efl.Input.Device seat) { - var _ret_var = Efl.Input.IStateNativeInherit.efl_input_modifier_enabled_get_ptr.Value.Delegate(this.NativeHandle, mod, seat); + public bool GetModifierEnabled(Efl.Input.Modifier mod, Efl.Input.Device seat) { + var _ret_var = Efl.Input.IStateConcrete.NativeMethods.efl_input_modifier_enabled_get_ptr.Value.Delegate(this.NativeHandle,mod, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -109,8 +148,8 @@ IState /// The lock key to test. /// The seat device, may be null /// true if the key lock is on. - public bool GetLockEnabled( Efl.Input.Lock kw_lock, Efl.Input.Device seat) { - var _ret_var = Efl.Input.IStateNativeInherit.efl_input_lock_enabled_get_ptr.Value.Delegate(this.NativeHandle, kw_lock, seat); + public bool GetLockEnabled(Efl.Input.Lock kw_lock, Efl.Input.Device seat) { + var _ret_var = Efl.Input.IStateConcrete.NativeMethods.efl_input_lock_enabled_get_ptr.Value.Delegate(this.NativeHandle,kw_lock, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -118,80 +157,126 @@ IState { return Efl.Input.IStateConcrete.efl_input_state_interface_get(); } -} -public class IStateNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas); - 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_input_modifier_enabled_get_static_delegate == null) - efl_input_modifier_enabled_get_static_delegate = new efl_input_modifier_enabled_get_delegate(modifier_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetModifierEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_modifier_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_modifier_enabled_get_static_delegate)}); - if (efl_input_lock_enabled_get_static_delegate == null) - efl_input_lock_enabled_get_static_delegate = new efl_input_lock_enabled_get_delegate(lock_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetLockEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_lock_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_lock_enabled_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Input.IStateConcrete.efl_input_state_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Input.IStateConcrete.efl_input_state_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// 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_input_modifier_enabled_get_static_delegate == null) + { + efl_input_modifier_enabled_get_static_delegate = new efl_input_modifier_enabled_get_delegate(modifier_enabled_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_modifier_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + if (methods.FirstOrDefault(m => m.Name == "GetModifierEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_modifier_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_modifier_enabled_get_static_delegate) }); + } + if (efl_input_lock_enabled_get_static_delegate == null) + { + efl_input_lock_enabled_get_static_delegate = new efl_input_lock_enabled_get_delegate(lock_enabled_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_modifier_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_input_modifier_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_modifier_enabled_get"); - private static bool modifier_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_input_modifier_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IState)wrapper).GetModifierEnabled( mod, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetLockEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_lock_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_lock_enabled_get_static_delegate) }); } - return _ret_var; - } else { - return efl_input_modifier_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mod, seat); + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Input.IStateConcrete.efl_input_state_interface_get(); } - } - private static efl_input_modifier_enabled_get_delegate efl_input_modifier_enabled_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_lock_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_modifier_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_modifier_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_lock_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_input_lock_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_lock_enabled_get"); - private static bool lock_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_input_lock_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IState)wrapper).GetLockEnabled( kw_lock, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_input_modifier_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_modifier_enabled_get"); + + private static bool modifier_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_input_modifier_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IState)wrapper).GetModifierEnabled(mod, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_input_modifier_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mod, seat); } + } + + private static efl_input_modifier_enabled_get_delegate efl_input_modifier_enabled_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_lock_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_lock_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + + public static Efl.Eo.FunctionWrapper efl_input_lock_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_lock_enabled_get"); + + private static bool lock_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_input_lock_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IState)wrapper).GetLockEnabled(kw_lock, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_input_lock_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_lock, seat); + + } + else + { + return efl_input_lock_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_lock, seat); + } } - } - private static efl_input_lock_enabled_get_delegate efl_input_lock_enabled_get_static_delegate; + + private static efl_input_lock_enabled_get_delegate efl_input_lock_enabled_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_types.eot.cs index 8c80622..b24f285 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_types.eot.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Pointer { +namespace Efl { + +namespace Pointer { + /// Pointer event type. Represents which kind of event this is. /// (Since EFL 1.19) public enum Action @@ -28,8 +32,15 @@ Wheel = 7, /// Axis event (pen, stick, ...). Axis = 8, } -} } -namespace Efl { namespace Pointer { + +} + +} + +namespace Efl { + +namespace Pointer { + /// Pointer flags indicating whether a double or triple click is under way. /// (Since EFL 1.19) public enum Flags @@ -41,8 +52,15 @@ DoubleClick = 1, /// This mouse button press was the 3rd press of a triple click TripleClick = 2, } -} } -namespace Efl { namespace Input { + +} + +} + +namespace Efl { + +namespace Input { + /// Special flags set during an input event propagation. /// (Since EFL 1.19) public enum Flags @@ -54,8 +72,15 @@ Processed = 1, /// This event flag indicates the event occurs while scrolling; for example, DOWN event occurs during scrolling. The event should be used for informational purposes and maybe some indications visually, but not actually perform anything. Scrolling = 2, } -} } -namespace Efl { namespace Input { + +} + +} + +namespace Efl { + +namespace Input { + /// How the mouse pointer should be handled by EFL. /// In the mode autograb, when a mouse button is pressed down over an object and held down, with the mouse pointer being moved outside of it, the pointer still behaves as being bound to that object, albeit out of its drawing region. When the button is released, the event will be fed to the object, that may check if the final position is over it or not and do something about it. /// @@ -71,8 +96,15 @@ NoGrab = 1, /// (Since EFL 1.2) NoGrabNoRepeatUpdown = 2, } -} } -namespace Efl { namespace Input { + +} + +} + +namespace Efl { + +namespace Input { + /// Keys for the generic values of all events. /// (Since EFL 1.19) public enum Value @@ -132,8 +164,15 @@ WheelHorizontal = 25, /// Current position of the slider on the tool. Range: [-1, 1]. Default: 0. Slider = 26, } -} } -namespace Efl { namespace Input { + +} + +} + +namespace Efl { + +namespace Input { + /// Key modifiers such as Control, Alt, etc... /// This enum may be used as a bitmask with OR operations, depending on the API. /// @@ -158,8 +197,15 @@ Hyper = 32, /// Super key modifier (may be "Windows" key) Super = 64, } -} } -namespace Efl { namespace Input { + +} + +} + +namespace Efl { + +namespace Input { + /// Key locks such as Num Lock, Scroll Lock and Caps Lock. /// This enum may be used as a bitmask with OR operations, depending on the API. /// @@ -178,4 +224,8 @@ Scroll = 4, /// Shift Lock Shift = 8, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_interpolator.eo.cs index d0d9991..fd23558 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_interpolator.eo.cs @@ -3,17 +3,19 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl interpolator interface -[IInterpolatorNativeInherit] +[Efl.IInterpolatorConcrete.NativeMethods] public interface IInterpolator : Efl.Eo.IWrapper, IDisposable { /// Interpolate the given value. /// Input value mapped from 0.0 to 1.0. /// Output value calculated by interpolating the input value. -double Interpolate( double progress); +double Interpolate(double progress); } /// Efl interpolator interface sealed public class IInterpolatorConcrete : @@ -22,73 +24,108 @@ IInterpolator { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IInterpolatorConcrete)) - return Efl.IInterpolatorNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IInterpolatorConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_interpolator_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IInterpolatorConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IInterpolatorConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Interpolate the given value. /// Input value mapped from 0.0 to 1.0. /// Output value calculated by interpolating the input value. - public double Interpolate( double progress) { - var _ret_var = Efl.IInterpolatorNativeInherit.efl_interpolator_interpolate_ptr.Value.Delegate(this.NativeHandle, progress); + public double Interpolate(double progress) { + var _ret_var = Efl.IInterpolatorConcrete.NativeMethods.efl_interpolator_interpolate_ptr.Value.Delegate(this.NativeHandle,progress); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -96,51 +133,78 @@ IInterpolator { return Efl.IInterpolatorConcrete.efl_interpolator_interface_get(); } -} -public class IInterpolatorNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_interpolator_interpolate_static_delegate == null) - efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IInterpolatorConcrete.efl_interpolator_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IInterpolatorConcrete.efl_interpolator_interface_get(); - } + 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_interpolator_interpolate_static_delegate == null) + { + efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); + } - private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_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.IInterpolatorConcrete.efl_interpolator_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + + public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); + + public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_interpolator_interpolate"); + + private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) + { + Eina.Log.Debug("function efl_interpolator_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IInterpolator)wrapper).Interpolate(progress); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); - public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_interpolator_interpolate"); - private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) - { - Eina.Log.Debug("function efl_interpolator_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IInterpolator)wrapper).Interpolate( progress); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + + } + else + { + return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + } } - } - private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_io_buffer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_io_buffer.eo.cs index fff1a90..1ee4893 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_io_buffer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_io_buffer.eo.cs @@ -3,283 +3,356 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Io { +namespace Efl { + +namespace Io { + /// Generic In-memory buffer of data to be used as I/O. /// This class offers both input and output, which can be used at the same time since and use different offsets/position internally. /// /// One can get temporary direct access to internal buffer with or steal the buffer with . /// /// A fixed sized buffer can be implemented by setting followed by -[BufferNativeInherit] +[Efl.Io.Buffer.NativeMethods] public class Buffer : Efl.Object, Efl.Eo.IWrapper,Efl.Io.ICloser,Efl.Io.IPositioner,Efl.Io.IReader,Efl.Io.ISizer,Efl.Io.IWriter { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Buffer)) - return Efl.Io.BufferNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Buffer)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_io_buffer_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Buffer(Efl.Object parent= null - ) : - base(efl_io_buffer_class_get(), typeof(Buffer), parent) + ) : base(efl_io_buffer_class_get(), typeof(Buffer), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Buffer(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Buffer(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Buffer(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object PositionReadChangedEvtKey = new object(); + /// Notifies changed public event EventHandler PositionReadChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_BUFFER_EVENT_POSITION_READ_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PositionReadChangedEvt_delegate)) { - eventHandlers.AddHandler(PositionReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_BUFFER_EVENT_POSITION_READ_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PositionReadChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PositionReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PositionReadChangedEvt. - public void On_PositionReadChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PositionReadChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PositionReadChangedEvt_delegate; - private void on_PositionReadChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPositionReadChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_PositionReadChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_BUFFER_EVENT_POSITION_READ_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PositionWriteChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies changed public event EventHandler PositionWriteChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_BUFFER_EVENT_POSITION_WRITE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PositionWriteChangedEvt_delegate)) { - eventHandlers.AddHandler(PositionWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_BUFFER_EVENT_POSITION_WRITE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PositionWriteChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PositionWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PositionWriteChangedEvt. - public void On_PositionWriteChangedEvt(EventArgs e) + public void OnPositionWriteChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PositionWriteChangedEvtKey]; + var key = "_EFL_IO_BUFFER_EVENT_POSITION_WRITE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PositionWriteChangedEvt_delegate; - private void on_PositionWriteChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_PositionWriteChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ReallocatedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies the internal buffer was reallocated, thus whatever was returned by becomes invalid public event EventHandler ReallocatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_BUFFER_EVENT_REALLOCATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ReallocatedEvt_delegate)) { - eventHandlers.AddHandler(ReallocatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_BUFFER_EVENT_REALLOCATED"; - if (RemoveNativeEventHandler(key, this.evt_ReallocatedEvt_delegate)) { - eventHandlers.RemoveHandler(ReallocatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ReallocatedEvt. - public void On_ReallocatedEvt(EventArgs e) + public void OnReallocatedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ReallocatedEvtKey]; + var key = "_EFL_IO_BUFFER_EVENT_REALLOCATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ReallocatedEvt_delegate; - private void on_ReallocatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ReallocatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClosedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies closed, when property is marked as true /// (Since EFL 1.22) public event EventHandler ClosedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClosedEvt_delegate)) { - eventHandlers.AddHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (RemoveNativeEventHandler(key, this.evt_ClosedEvt_delegate)) { - eventHandlers.RemoveHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClosedEvt. - public void On_ClosedEvt(EventArgs e) + public void OnClosedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClosedEvtKey]; + var key = "_EFL_IO_CLOSER_EVENT_CLOSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClosedEvt_delegate; - private void on_ClosedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClosedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object PositionChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies position changed public event EventHandler PositionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_POSITIONER_EVENT_POSITION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.AddHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_POSITIONER_EVENT_POSITION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PositionChangedEvt. - public void On_PositionChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PositionChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PositionChangedEvt_delegate; - private void on_PositionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPositionChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_PositionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_POSITIONER_EVENT_POSITION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CanReadChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies can_read property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -287,48 +360,65 @@ private static object CanReadChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanReadChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.AddHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanReadChangedEvt. - public void On_CanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) + public void OnCanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanReadChangedEvtKey]; + var key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanReadChangedEvt_delegate; - private void on_CanReadChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanReadChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object EosEvtKey = new object(); /// Notifies end of stream, when property is marked as true. /// If this is used alongside with an , then it should be emitted before that call. /// @@ -338,91 +428,109 @@ private static object EosEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler EosEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_EOS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EosEvt_delegate)) { - eventHandlers.AddHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_EOS"; - if (RemoveNativeEventHandler(key, this.evt_EosEvt_delegate)) { - eventHandlers.RemoveHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EosEvt. - public void On_EosEvt(EventArgs e) + public void OnEosEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EosEvtKey]; + var key = "_EFL_IO_READER_EVENT_EOS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EosEvt_delegate; - private void on_EosEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EosEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object SizeChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies size changed public event EventHandler SizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_SIZER_EVENT_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.AddHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_SIZER_EVENT_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SizeChangedEvt. - public void On_SizeChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SizeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SizeChangedEvt_delegate; - private void on_SizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSizeChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_SIZER_EVENT_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CanWriteChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies can_write property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -430,60 +538,64 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanWriteChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.AddHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanWriteChangedEvt. - public void On_CanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanWriteChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanWriteChangedEvt_delegate; - private void on_CanWriteChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) { - Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanWriteChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_PositionReadChangedEvt_delegate = new Efl.EventCb(on_PositionReadChangedEvt_NativeCallback); - evt_PositionWriteChangedEvt_delegate = new Efl.EventCb(on_PositionWriteChangedEvt_NativeCallback); - evt_ReallocatedEvt_delegate = new Efl.EventCb(on_ReallocatedEvt_NativeCallback); - evt_ClosedEvt_delegate = new Efl.EventCb(on_ClosedEvt_NativeCallback); - evt_PositionChangedEvt_delegate = new Efl.EventCb(on_PositionChangedEvt_NativeCallback); - evt_CanReadChangedEvt_delegate = new Efl.EventCb(on_CanReadChangedEvt_NativeCallback); - evt_EosEvt_delegate = new Efl.EventCb(on_EosEvt_NativeCallback); - evt_SizeChangedEvt_delegate = new Efl.EventCb(on_SizeChangedEvt_NativeCallback); - evt_CanWriteChangedEvt_delegate = new Efl.EventCb(on_CanWriteChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Limit how big the buffer can grow. /// This affects both and how buffer grows when is called. @@ -491,15 +603,14 @@ private static object CanWriteChangedEvtKey = new object(); /// If you want a buffer of an exact size always set the limit before any further calls that can expand it. /// Defines a maximum buffer size, or 0 to allow unlimited amount of bytes virtual public uint GetLimit() { - var _ret_var = Efl.Io.BufferNativeInherit.efl_io_buffer_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.Buffer.NativeMethods.efl_io_buffer_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Constructor-only property to set buffer limit. 0 is unlimited /// Defines a maximum buffer size, or 0 to allow unlimited amount of bytes - /// - virtual public void SetLimit( uint size) { - Efl.Io.BufferNativeInherit.efl_io_buffer_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), size); + virtual public void SetLimit(uint size) { + Efl.Io.Buffer.NativeMethods.efl_io_buffer_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),size); Eina.Error.RaiseIfUnhandledException(); } /// The position used by . @@ -508,7 +619,7 @@ private static object CanWriteChangedEvtKey = new object(); /// will return the greatest of and . /// Position in buffer virtual public ulong GetPositionRead() { - var _ret_var = Efl.Io.BufferNativeInherit.efl_io_buffer_position_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.Buffer.NativeMethods.efl_io_buffer_position_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -518,8 +629,8 @@ private static object CanWriteChangedEvtKey = new object(); /// will return the greatest of and . /// Position in buffer /// true if setting the position succeeded, false otherwise - virtual public bool SetPositionRead( ulong position) { - var _ret_var = Efl.Io.BufferNativeInherit.efl_io_buffer_position_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), position); + virtual public bool SetPositionRead(ulong position) { + var _ret_var = Efl.Io.Buffer.NativeMethods.efl_io_buffer_position_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),position); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -529,7 +640,7 @@ private static object CanWriteChangedEvtKey = new object(); /// will return the greatest of and . /// Position in buffer virtual public ulong GetPositionWrite() { - var _ret_var = Efl.Io.BufferNativeInherit.efl_io_buffer_position_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.Buffer.NativeMethods.efl_io_buffer_position_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -539,8 +650,8 @@ private static object CanWriteChangedEvtKey = new object(); /// will return the greatest of and . /// Position in buffer /// true if setting the position succeeded, false otherwise - virtual public bool SetPositionWrite( ulong position) { - var _ret_var = Efl.Io.BufferNativeInherit.efl_io_buffer_position_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), position); + virtual public bool SetPositionWrite(ulong position) { + var _ret_var = Efl.Io.Buffer.NativeMethods.efl_io_buffer_position_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),position); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -548,23 +659,21 @@ private static object CanWriteChangedEvtKey = new object(); /// The memory pointed by slice may be changed by other methods of this class. The event "reallocated" will be called in those situations. /// Slice of the current buffer, may be invalidated if , or are called. It is the full slice, not a partial one starting at current position. virtual public Eina.Slice GetSlice() { - var _ret_var = Efl.Io.BufferNativeInherit.efl_io_buffer_slice_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.Buffer.NativeMethods.efl_io_buffer_slice_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Immediately pre-allocate a buffer of at least a given size. /// Amount of bytes to pre-allocate. - /// - virtual public void Preallocate( uint size) { - Efl.Io.BufferNativeInherit.efl_io_buffer_preallocate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), size); + virtual public void Preallocate(uint size) { + Efl.Io.Buffer.NativeMethods.efl_io_buffer_preallocate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),size); Eina.Error.RaiseIfUnhandledException(); } /// Adopt a read-only slice as buffer's backing store. /// The slice memory will not be copied and must remain alive during the buffer's lifetime. Usually this is guaranteed by some global static-const memory or some parent object and this buffer being a view of that -- be aware of parent memory remaining alive, such as "slice,changed" events. /// Slice to adopt as read-only - /// - virtual public void AdoptReadonly( Eina.Slice slice) { - Efl.Io.BufferNativeInherit.efl_io_buffer_adopt_readonly_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), slice); + virtual public void AdoptReadonly(Eina.Slice slice) { + Efl.Io.Buffer.NativeMethods.efl_io_buffer_adopt_readonly_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),slice); Eina.Error.RaiseIfUnhandledException(); } /// Adopt a read-write slice as buffer's backing store. @@ -572,9 +681,8 @@ private static object CanWriteChangedEvtKey = new object(); /// /// The memory will be disposed using free() and reallocated using realloc(). /// Slice to adopt as read-write - /// - virtual public void AdoptReadwrite( Eina.RwSlice slice) { - Efl.Io.BufferNativeInherit.efl_io_buffer_adopt_readwrite_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), slice); + virtual public void AdoptReadwrite(Eina.RwSlice slice) { + Efl.Io.Buffer.NativeMethods.efl_io_buffer_adopt_readwrite_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),slice); Eina.Error.RaiseIfUnhandledException(); } /// Steals the internal buffer memory and returns it as a binbuf. @@ -583,7 +691,7 @@ private static object CanWriteChangedEvtKey = new object(); /// On failure, for example a read-only backing store was adopted with , NULL is returned. /// Binbuf virtual public Eina.Binbuf BinbufSteal() { - var _ret_var = Efl.Io.BufferNativeInherit.efl_io_buffer_binbuf_steal_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.Buffer.NativeMethods.efl_io_buffer_binbuf_steal_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); var _binbuf_ret = new Eina.Binbuf(_ret_var, true); return _binbuf_ret; @@ -592,7 +700,7 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if closed, false otherwise virtual public bool GetClosed() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_closed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_closed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -601,7 +709,7 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if close on exec(), false otherwise virtual public bool GetCloseOnExec() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -609,8 +717,8 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if close on exec(), false otherwise /// true if could set, false if not supported or failed. - virtual public bool SetCloseOnExec( bool close_on_exec) { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_exec); + virtual public bool SetCloseOnExec(bool close_on_exec) { + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),close_on_exec); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -619,7 +727,7 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if close on invalidate, false otherwise virtual public bool GetCloseOnInvalidate() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -627,9 +735,8 @@ private static object CanWriteChangedEvtKey = new object(); /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. /// (Since EFL 1.22) /// true if close on invalidate, false otherwise - /// - virtual public void SetCloseOnInvalidate( bool close_on_invalidate) { - Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_invalidate); + virtual public void SetCloseOnInvalidate(bool close_on_invalidate) { + Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),close_on_invalidate); Eina.Error.RaiseIfUnhandledException(); } /// Closes the Input/Output object. @@ -639,22 +746,22 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// 0 on succeed, a mapping of errno otherwise virtual public Eina.Error Close() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Position property /// Position in file or buffer virtual public ulong GetPosition() { - var _ret_var = Efl.Io.IPositionerNativeInherit.efl_io_positioner_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IPositionerConcrete.NativeMethods.efl_io_positioner_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Try to set position object, relative to start of file. See /// Position in file or buffer /// true if could reposition, false if errors. - virtual public bool SetPosition( ulong position) { - var _ret_var = Efl.Io.IPositionerNativeInherit.efl_io_positioner_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), position); + virtual public bool SetPosition(ulong position) { + var _ret_var = Efl.Io.IPositionerConcrete.NativeMethods.efl_io_positioner_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),position); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -662,8 +769,8 @@ private static object CanWriteChangedEvtKey = new object(); /// Offset in byte relative to whence /// Whence /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Seek( long offset, Efl.Io.PositionerWhence whence) { - var _ret_var = Efl.Io.IPositionerNativeInherit.efl_io_positioner_seek_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), offset, whence); + virtual public Eina.Error Seek(long offset, Efl.Io.PositionerWhence whence) { + var _ret_var = Efl.Io.IPositionerConcrete.NativeMethods.efl_io_positioner_seek_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),offset, whence); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -671,32 +778,30 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise virtual public bool GetCanRead() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise - /// - virtual public void SetCanRead( bool can_read) { - Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_read); + virtual public void SetCanRead(bool can_read) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_read); Eina.Error.RaiseIfUnhandledException(); } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise virtual public bool GetEos() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_eos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise - /// - virtual public void SetEos( bool is_eos) { - Efl.Io.IReaderNativeInherit.efl_io_reader_eos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), is_eos); + virtual public void SetEos(bool is_eos) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),is_eos); Eina.Error.RaiseIfUnhandledException(); } /// Reads data into a pre-allocated buffer. @@ -706,31 +811,31 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// Provides a pre-allocated memory to be filled up to rw_slice.len. It will be populated and the length will be set to the actually used amount of bytes, which can be smaller than the request. /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Read( ref Eina.RwSlice rw_slice) { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_read_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref rw_slice); + virtual public Eina.Error Read(ref Eina.RwSlice rw_slice) { + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_read_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref rw_slice); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Size property /// Object size virtual public ulong GetSize() { - var _ret_var = Efl.Io.ISizerNativeInherit.efl_io_sizer_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ISizerConcrete.NativeMethods.efl_io_sizer_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Try to resize the object, check with get if the value was accepted or not. /// Object size /// true if could resize, false if errors. - virtual public bool SetSize( ulong size) { - var _ret_var = Efl.Io.ISizerNativeInherit.efl_io_sizer_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), size); + virtual public bool SetSize(ulong size) { + var _ret_var = Efl.Io.ISizerConcrete.NativeMethods.efl_io_sizer_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),size); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Resize object /// Object size /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Resize( ulong size) { - var _ret_var = Efl.Io.ISizerNativeInherit.efl_io_sizer_resize_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), size); + virtual public Eina.Error Resize(ulong size) { + var _ret_var = Efl.Io.ISizerConcrete.NativeMethods.efl_io_sizer_resize_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),size); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -738,16 +843,15 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise virtual public bool GetCanWrite() { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise - /// - virtual public void SetCanWrite( bool can_write) { - Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_write); + virtual public void SetCanWrite(bool can_write) { + Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_write); Eina.Error.RaiseIfUnhandledException(); } /// Writes data from a pre-populated buffer. @@ -758,8 +862,8 @@ private static object CanWriteChangedEvtKey = new object(); /// Provides a pre-populated memory to be used up to slice.len. The returned slice will be adapted as length will be set to the actually used amount of bytes, which can be smaller than the request. /// Convenience to output the remaining parts of slice that was not written. If the full slice was written, this will be a slice of zero-length. /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Write( ref Eina.Slice slice, ref Eina.Slice remaining) { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_write_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref slice, ref remaining); + virtual public Eina.Error Write(ref Eina.Slice slice, ref Eina.Slice remaining) { + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_write_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref slice, ref remaining); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -770,7 +874,7 @@ private static object CanWriteChangedEvtKey = new object(); /// Defines a maximum buffer size, or 0 to allow unlimited amount of bytes public uint Limit { get { return GetLimit(); } - set { SetLimit( value); } + set { SetLimit(value); } } /// The position used by . /// Note that or will affect this property and . @@ -779,7 +883,7 @@ private static object CanWriteChangedEvtKey = new object(); /// Position in buffer public ulong PositionRead { get { return GetPositionRead(); } - set { SetPositionRead( value); } + set { SetPositionRead(value); } } /// The position used by . /// Note that or will affect this property and . @@ -788,7 +892,7 @@ private static object CanWriteChangedEvtKey = new object(); /// Position in buffer public ulong PositionWrite { get { return GetPositionWrite(); } - set { SetPositionWrite( value); } + set { SetPositionWrite(value); } } /// Get a temporary access to buffer's internal memory. /// The memory pointed by slice may be changed by other methods of this class. The event "reallocated" will be called in those situations. @@ -808,7 +912,7 @@ private static object CanWriteChangedEvtKey = new object(); /// true if close on exec(), false otherwise public bool CloseOnExec { get { return GetCloseOnExec(); } - set { SetCloseOnExec( value); } + set { SetCloseOnExec(value); } } /// If true will automatically close() on object invalidate. /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. @@ -816,953 +920,1492 @@ private static object CanWriteChangedEvtKey = new object(); /// true if close on invalidate, false otherwise public bool CloseOnInvalidate { get { return GetCloseOnInvalidate(); } - set { SetCloseOnInvalidate( value); } + set { SetCloseOnInvalidate(value); } } /// Position property /// Position in file or buffer public ulong Position { get { return GetPosition(); } - set { SetPosition( value); } + set { SetPosition(value); } } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise public bool CanRead { get { return GetCanRead(); } - set { SetCanRead( value); } + set { SetCanRead(value); } } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise public bool Eos { get { return GetEos(); } - set { SetEos( value); } + set { SetEos(value); } } /// Size property /// Object size public ulong Size { get { return GetSize(); } - set { SetSize( value); } + set { SetSize(value); } } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise public bool CanWrite { get { return GetCanWrite(); } - set { SetCanWrite( value); } + set { SetCanWrite(value); } } private static IntPtr GetEflClassStatic() { return Efl.Io.Buffer.efl_io_buffer_class_get(); } -} -public class BufferNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_io_buffer_limit_get_static_delegate == null) - efl_io_buffer_limit_get_static_delegate = new efl_io_buffer_limit_get_delegate(limit_get); - if (methods.FirstOrDefault(m => m.Name == "GetLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_buffer_limit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_limit_get_static_delegate)}); - if (efl_io_buffer_limit_set_static_delegate == null) - efl_io_buffer_limit_set_static_delegate = new efl_io_buffer_limit_set_delegate(limit_set); - if (methods.FirstOrDefault(m => m.Name == "SetLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_buffer_limit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_limit_set_static_delegate)}); - if (efl_io_buffer_position_read_get_static_delegate == null) - efl_io_buffer_position_read_get_static_delegate = new efl_io_buffer_position_read_get_delegate(position_read_get); - if (methods.FirstOrDefault(m => m.Name == "GetPositionRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_buffer_position_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_position_read_get_static_delegate)}); - if (efl_io_buffer_position_read_set_static_delegate == null) - efl_io_buffer_position_read_set_static_delegate = new efl_io_buffer_position_read_set_delegate(position_read_set); - if (methods.FirstOrDefault(m => m.Name == "SetPositionRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_buffer_position_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_position_read_set_static_delegate)}); - if (efl_io_buffer_position_write_get_static_delegate == null) - efl_io_buffer_position_write_get_static_delegate = new efl_io_buffer_position_write_get_delegate(position_write_get); - if (methods.FirstOrDefault(m => m.Name == "GetPositionWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_buffer_position_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_position_write_get_static_delegate)}); - if (efl_io_buffer_position_write_set_static_delegate == null) - efl_io_buffer_position_write_set_static_delegate = new efl_io_buffer_position_write_set_delegate(position_write_set); - if (methods.FirstOrDefault(m => m.Name == "SetPositionWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_buffer_position_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_position_write_set_static_delegate)}); - if (efl_io_buffer_slice_get_static_delegate == null) - efl_io_buffer_slice_get_static_delegate = new efl_io_buffer_slice_get_delegate(slice_get); - if (methods.FirstOrDefault(m => m.Name == "GetSlice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_buffer_slice_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_slice_get_static_delegate)}); - if (efl_io_buffer_preallocate_static_delegate == null) - efl_io_buffer_preallocate_static_delegate = new efl_io_buffer_preallocate_delegate(preallocate); - if (methods.FirstOrDefault(m => m.Name == "Preallocate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_buffer_preallocate"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_preallocate_static_delegate)}); - if (efl_io_buffer_adopt_readonly_static_delegate == null) - efl_io_buffer_adopt_readonly_static_delegate = new efl_io_buffer_adopt_readonly_delegate(adopt_readonly); - if (methods.FirstOrDefault(m => m.Name == "AdoptReadonly") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_buffer_adopt_readonly"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_adopt_readonly_static_delegate)}); - if (efl_io_buffer_adopt_readwrite_static_delegate == null) - efl_io_buffer_adopt_readwrite_static_delegate = new efl_io_buffer_adopt_readwrite_delegate(adopt_readwrite); - if (methods.FirstOrDefault(m => m.Name == "AdoptReadwrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_buffer_adopt_readwrite"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_adopt_readwrite_static_delegate)}); - if (efl_io_buffer_binbuf_steal_static_delegate == null) - efl_io_buffer_binbuf_steal_static_delegate = new efl_io_buffer_binbuf_steal_delegate(binbuf_steal); - if (methods.FirstOrDefault(m => m.Name == "BinbufSteal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_buffer_binbuf_steal"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_binbuf_steal_static_delegate)}); - if (efl_io_closer_closed_get_static_delegate == null) - efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); - if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate)}); - if (efl_io_closer_close_on_exec_get_static_delegate == null) - efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate)}); - if (efl_io_closer_close_on_exec_set_static_delegate == null) - efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate)}); - if (efl_io_closer_close_on_invalidate_get_static_delegate == null) - efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate)}); - if (efl_io_closer_close_on_invalidate_set_static_delegate == null) - efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate)}); - if (efl_io_closer_close_static_delegate == null) - efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); - if (methods.FirstOrDefault(m => m.Name == "Close") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate)}); - if (efl_io_positioner_position_get_static_delegate == null) - efl_io_positioner_position_get_static_delegate = new efl_io_positioner_position_get_delegate(position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_positioner_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_position_get_static_delegate)}); - if (efl_io_positioner_position_set_static_delegate == null) - efl_io_positioner_position_set_static_delegate = new efl_io_positioner_position_set_delegate(position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_positioner_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_position_set_static_delegate)}); - if (efl_io_positioner_seek_static_delegate == null) - efl_io_positioner_seek_static_delegate = new efl_io_positioner_seek_delegate(seek); - if (methods.FirstOrDefault(m => m.Name == "Seek") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_positioner_seek"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_seek_static_delegate)}); - if (efl_io_reader_can_read_get_static_delegate == null) - efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate)}); - if (efl_io_reader_can_read_set_static_delegate == null) - efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate)}); - if (efl_io_reader_eos_get_static_delegate == null) - efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); - if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate)}); - if (efl_io_reader_eos_set_static_delegate == null) - efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); - if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate)}); - if (efl_io_reader_read_static_delegate == null) - efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); - if (methods.FirstOrDefault(m => m.Name == "Read") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate)}); - if (efl_io_sizer_size_get_static_delegate == null) - efl_io_sizer_size_get_static_delegate = new efl_io_sizer_size_get_delegate(size_get); - if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_sizer_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_size_get_static_delegate)}); - if (efl_io_sizer_size_set_static_delegate == null) - efl_io_sizer_size_set_static_delegate = new efl_io_sizer_size_set_delegate(size_set); - if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_sizer_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_size_set_static_delegate)}); - if (efl_io_sizer_resize_static_delegate == null) - efl_io_sizer_resize_static_delegate = new efl_io_sizer_resize_delegate(resize); - if (methods.FirstOrDefault(m => m.Name == "Resize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_sizer_resize"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_resize_static_delegate)}); - if (efl_io_writer_can_write_get_static_delegate == null) - efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate)}); - if (efl_io_writer_can_write_set_static_delegate == null) - efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate)}); - if (efl_io_writer_write_static_delegate == null) - efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); - if (methods.FirstOrDefault(m => m.Name == "Write") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Io.Buffer.efl_io_buffer_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Io.Buffer.efl_io_buffer_class_get(); - } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.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_io_buffer_limit_get_static_delegate == null) + { + efl_io_buffer_limit_get_static_delegate = new efl_io_buffer_limit_get_delegate(limit_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_buffer_limit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_limit_get_static_delegate) }); + } + if (efl_io_buffer_limit_set_static_delegate == null) + { + efl_io_buffer_limit_set_static_delegate = new efl_io_buffer_limit_set_delegate(limit_set); + } - private delegate uint efl_io_buffer_limit_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_buffer_limit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_limit_set_static_delegate) }); + } + if (efl_io_buffer_position_read_get_static_delegate == null) + { + efl_io_buffer_position_read_get_static_delegate = new efl_io_buffer_position_read_get_delegate(position_read_get); + } - public delegate uint efl_io_buffer_limit_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_buffer_limit_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_buffer_limit_get"); - private static uint limit_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_buffer_limit_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((Buffer)wrapper).GetLimit(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPositionRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_buffer_position_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_position_read_get_static_delegate) }); } - return _ret_var; - } else { - return efl_io_buffer_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_buffer_limit_get_delegate efl_io_buffer_limit_get_static_delegate; + if (efl_io_buffer_position_read_set_static_delegate == null) + { + efl_io_buffer_position_read_set_static_delegate = new efl_io_buffer_position_read_set_delegate(position_read_set); + } - private delegate void efl_io_buffer_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, uint size); + if (methods.FirstOrDefault(m => m.Name == "SetPositionRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_buffer_position_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_position_read_set_static_delegate) }); + } + if (efl_io_buffer_position_write_get_static_delegate == null) + { + efl_io_buffer_position_write_get_static_delegate = new efl_io_buffer_position_write_get_delegate(position_write_get); + } - public delegate void efl_io_buffer_limit_set_api_delegate(System.IntPtr obj, uint size); - public static Efl.Eo.FunctionWrapper efl_io_buffer_limit_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_buffer_limit_set"); - private static void limit_set(System.IntPtr obj, System.IntPtr pd, uint size) - { - Eina.Log.Debug("function efl_io_buffer_limit_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Buffer)wrapper).SetLimit( size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_buffer_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - private static efl_io_buffer_limit_set_delegate efl_io_buffer_limit_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPositionWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_buffer_position_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_position_write_get_static_delegate) }); + } + if (efl_io_buffer_position_write_set_static_delegate == null) + { + efl_io_buffer_position_write_set_static_delegate = new efl_io_buffer_position_write_set_delegate(position_write_set); + } - private delegate ulong efl_io_buffer_position_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetPositionWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_buffer_position_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_position_write_set_static_delegate) }); + } + if (efl_io_buffer_slice_get_static_delegate == null) + { + efl_io_buffer_slice_get_static_delegate = new efl_io_buffer_slice_get_delegate(slice_get); + } - public delegate ulong efl_io_buffer_position_read_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_buffer_position_read_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_buffer_position_read_get"); - private static ulong position_read_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_buffer_position_read_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - ulong _ret_var = default(ulong); - try { - _ret_var = ((Buffer)wrapper).GetPositionRead(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSlice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_buffer_slice_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_slice_get_static_delegate) }); } - return _ret_var; - } else { - return efl_io_buffer_position_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_buffer_position_read_get_delegate efl_io_buffer_position_read_get_static_delegate; + if (efl_io_buffer_preallocate_static_delegate == null) + { + efl_io_buffer_preallocate_static_delegate = new efl_io_buffer_preallocate_delegate(preallocate); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_buffer_position_read_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong position); + if (methods.FirstOrDefault(m => m.Name == "Preallocate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_buffer_preallocate"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_preallocate_static_delegate) }); + } + if (efl_io_buffer_adopt_readonly_static_delegate == null) + { + efl_io_buffer_adopt_readonly_static_delegate = new efl_io_buffer_adopt_readonly_delegate(adopt_readonly); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_buffer_position_read_set_api_delegate(System.IntPtr obj, ulong position); - public static Efl.Eo.FunctionWrapper efl_io_buffer_position_read_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_buffer_position_read_set"); - private static bool position_read_set(System.IntPtr obj, System.IntPtr pd, ulong position) - { - Eina.Log.Debug("function efl_io_buffer_position_read_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Buffer)wrapper).SetPositionRead( position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "AdoptReadonly") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_buffer_adopt_readonly"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_adopt_readonly_static_delegate) }); + } + + if (efl_io_buffer_adopt_readwrite_static_delegate == null) + { + efl_io_buffer_adopt_readwrite_static_delegate = new efl_io_buffer_adopt_readwrite_delegate(adopt_readwrite); } - return _ret_var; - } else { - return efl_io_buffer_position_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); - } - } - private static efl_io_buffer_position_read_set_delegate efl_io_buffer_position_read_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "AdoptReadwrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_buffer_adopt_readwrite"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_adopt_readwrite_static_delegate) }); + } - private delegate ulong efl_io_buffer_position_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_io_buffer_binbuf_steal_static_delegate == null) + { + efl_io_buffer_binbuf_steal_static_delegate = new efl_io_buffer_binbuf_steal_delegate(binbuf_steal); + } + if (methods.FirstOrDefault(m => m.Name == "BinbufSteal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_buffer_binbuf_steal"), func = Marshal.GetFunctionPointerForDelegate(efl_io_buffer_binbuf_steal_static_delegate) }); + } - public delegate ulong efl_io_buffer_position_write_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_buffer_position_write_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_buffer_position_write_get"); - private static ulong position_write_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_buffer_position_write_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - ulong _ret_var = default(ulong); - try { - _ret_var = ((Buffer)wrapper).GetPositionWrite(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_io_closer_closed_get_static_delegate == null) + { + efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); } - return _ret_var; - } else { - return efl_io_buffer_position_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_buffer_position_write_get_delegate efl_io_buffer_position_write_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_buffer_position_write_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong position); + if (efl_io_closer_close_on_exec_get_static_delegate == null) + { + efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_buffer_position_write_set_api_delegate(System.IntPtr obj, ulong position); - public static Efl.Eo.FunctionWrapper efl_io_buffer_position_write_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_buffer_position_write_set"); - private static bool position_write_set(System.IntPtr obj, System.IntPtr pd, ulong position) - { - Eina.Log.Debug("function efl_io_buffer_position_write_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Buffer)wrapper).SetPositionWrite( position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_io_closer_close_on_exec_set_static_delegate == null) + { + efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); } - return _ret_var; - } else { - return efl_io_buffer_position_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); - } - } - private static efl_io_buffer_position_write_set_delegate efl_io_buffer_position_write_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate) }); + } - private delegate Eina.Slice efl_io_buffer_slice_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_io_closer_close_on_invalidate_get_static_delegate == null) + { + efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate) }); + } - public delegate Eina.Slice efl_io_buffer_slice_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_buffer_slice_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_buffer_slice_get"); - private static Eina.Slice slice_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_buffer_slice_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Slice _ret_var = default(Eina.Slice); - try { - _ret_var = ((Buffer)wrapper).GetSlice(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_io_closer_close_on_invalidate_set_static_delegate == null) + { + efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); } - return _ret_var; - } else { - return efl_io_buffer_slice_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_buffer_slice_get_delegate efl_io_buffer_slice_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate) }); + } - private delegate void efl_io_buffer_preallocate_delegate(System.IntPtr obj, System.IntPtr pd, uint size); + if (efl_io_closer_close_static_delegate == null) + { + efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); + } + if (methods.FirstOrDefault(m => m.Name == "Close") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate) }); + } - public delegate void efl_io_buffer_preallocate_api_delegate(System.IntPtr obj, uint size); - public static Efl.Eo.FunctionWrapper efl_io_buffer_preallocate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_buffer_preallocate"); - private static void preallocate(System.IntPtr obj, System.IntPtr pd, uint size) - { - Eina.Log.Debug("function efl_io_buffer_preallocate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Buffer)wrapper).Preallocate( size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_buffer_preallocate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + if (efl_io_positioner_position_get_static_delegate == null) + { + efl_io_positioner_position_get_static_delegate = new efl_io_positioner_position_get_delegate(position_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_positioner_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_position_get_static_delegate) }); + } + + if (efl_io_positioner_position_set_static_delegate == null) + { + efl_io_positioner_position_set_static_delegate = new efl_io_positioner_position_set_delegate(position_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_positioner_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_position_set_static_delegate) }); + } + + if (efl_io_positioner_seek_static_delegate == null) + { + efl_io_positioner_seek_static_delegate = new efl_io_positioner_seek_delegate(seek); + } + + if (methods.FirstOrDefault(m => m.Name == "Seek") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_positioner_seek"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_seek_static_delegate) }); + } + + if (efl_io_reader_can_read_get_static_delegate == null) + { + efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate) }); + } + + if (efl_io_reader_can_read_set_static_delegate == null) + { + efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate) }); + } + + if (efl_io_reader_eos_get_static_delegate == null) + { + efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate) }); + } + + if (efl_io_reader_eos_set_static_delegate == null) + { + efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate) }); + } + + if (efl_io_reader_read_static_delegate == null) + { + efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); + } + + if (methods.FirstOrDefault(m => m.Name == "Read") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate) }); + } + + if (efl_io_sizer_size_get_static_delegate == null) + { + efl_io_sizer_size_get_static_delegate = new efl_io_sizer_size_get_delegate(size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_sizer_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_size_get_static_delegate) }); + } + + if (efl_io_sizer_size_set_static_delegate == null) + { + efl_io_sizer_size_set_static_delegate = new efl_io_sizer_size_set_delegate(size_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_sizer_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_size_set_static_delegate) }); + } + + if (efl_io_sizer_resize_static_delegate == null) + { + efl_io_sizer_resize_static_delegate = new efl_io_sizer_resize_delegate(resize); + } + + if (methods.FirstOrDefault(m => m.Name == "Resize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_sizer_resize"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_resize_static_delegate) }); + } + + if (efl_io_writer_can_write_get_static_delegate == null) + { + efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate) }); + } + + if (efl_io_writer_can_write_set_static_delegate == null) + { + efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate) }); + } + + if (efl_io_writer_write_static_delegate == null) + { + efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); + } + + if (methods.FirstOrDefault(m => m.Name == "Write") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Io.Buffer.efl_io_buffer_class_get(); } - } - private static efl_io_buffer_preallocate_delegate efl_io_buffer_preallocate_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_io_buffer_adopt_readonly_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Slice slice); + + private delegate uint efl_io_buffer_limit_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate uint efl_io_buffer_limit_get_api_delegate(System.IntPtr obj); - public delegate void efl_io_buffer_adopt_readonly_api_delegate(System.IntPtr obj, Eina.Slice slice); - public static Efl.Eo.FunctionWrapper efl_io_buffer_adopt_readonly_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_buffer_adopt_readonly"); - private static void adopt_readonly(System.IntPtr obj, System.IntPtr pd, Eina.Slice slice) - { - Eina.Log.Debug("function efl_io_buffer_adopt_readonly was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Buffer)wrapper).AdoptReadonly( slice); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_buffer_adopt_readonly_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice); + public static Efl.Eo.FunctionWrapper efl_io_buffer_limit_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_buffer_limit_get"); + + private static uint limit_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_buffer_limit_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((Buffer)wrapper).GetLimit(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_buffer_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_buffer_adopt_readonly_delegate efl_io_buffer_adopt_readonly_static_delegate; + private static efl_io_buffer_limit_get_delegate efl_io_buffer_limit_get_static_delegate; - private delegate void efl_io_buffer_adopt_readwrite_delegate(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice); + + private delegate void efl_io_buffer_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, uint size); + + public delegate void efl_io_buffer_limit_set_api_delegate(System.IntPtr obj, uint size); - public delegate void efl_io_buffer_adopt_readwrite_api_delegate(System.IntPtr obj, Eina.RwSlice slice); - public static Efl.Eo.FunctionWrapper efl_io_buffer_adopt_readwrite_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_buffer_adopt_readwrite"); - private static void adopt_readwrite(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice) - { - Eina.Log.Debug("function efl_io_buffer_adopt_readwrite was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Buffer)wrapper).AdoptReadwrite( slice); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_buffer_adopt_readwrite_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice); + public static Efl.Eo.FunctionWrapper efl_io_buffer_limit_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_buffer_limit_set"); + + private static void limit_set(System.IntPtr obj, System.IntPtr pd, uint size) + { + Eina.Log.Debug("function efl_io_buffer_limit_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Buffer)wrapper).SetLimit(size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_buffer_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } } - } - private static efl_io_buffer_adopt_readwrite_delegate efl_io_buffer_adopt_readwrite_static_delegate; + private static efl_io_buffer_limit_set_delegate efl_io_buffer_limit_set_static_delegate; - private delegate System.IntPtr efl_io_buffer_binbuf_steal_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate ulong efl_io_buffer_position_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate ulong efl_io_buffer_position_read_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_buffer_position_read_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_buffer_position_read_get"); + + private static ulong position_read_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_buffer_position_read_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + ulong _ret_var = default(ulong); + try + { + _ret_var = ((Buffer)wrapper).GetPositionRead(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate System.IntPtr efl_io_buffer_binbuf_steal_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_buffer_binbuf_steal_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_buffer_binbuf_steal"); - private static System.IntPtr binbuf_steal(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_buffer_binbuf_steal was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Binbuf _ret_var = default(Eina.Binbuf); - try { - _ret_var = ((Buffer)wrapper).BinbufSteal(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_io_buffer_binbuf_steal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_io_buffer_position_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_buffer_binbuf_steal_delegate efl_io_buffer_binbuf_steal_static_delegate; + private static efl_io_buffer_position_read_get_delegate efl_io_buffer_position_read_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_buffer_position_read_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong position); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_buffer_position_read_set_api_delegate(System.IntPtr obj, ulong position); + + public static Efl.Eo.FunctionWrapper efl_io_buffer_position_read_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_buffer_position_read_set"); + + private static bool position_read_set(System.IntPtr obj, System.IntPtr pd, ulong position) + { + Eina.Log.Debug("function efl_io_buffer_position_read_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Buffer)wrapper).SetPositionRead(position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_closed_get"); - private static bool closed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_closed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Buffer)wrapper).GetClosed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_io_buffer_position_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); + } + } + + private static efl_io_buffer_position_read_set_delegate efl_io_buffer_position_read_set_static_delegate; + + + private delegate ulong efl_io_buffer_position_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate ulong efl_io_buffer_position_write_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_buffer_position_write_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_buffer_position_write_get"); + + private static ulong position_write_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_buffer_position_write_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + ulong _ret_var = default(ulong); + try + { + _ret_var = ((Buffer)wrapper).GetPositionWrite(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_buffer_position_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; + private static efl_io_buffer_position_write_get_delegate efl_io_buffer_position_write_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_buffer_position_write_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong position); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_buffer_position_write_set_api_delegate(System.IntPtr obj, ulong position); + + public static Efl.Eo.FunctionWrapper efl_io_buffer_position_write_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_buffer_position_write_set"); + + private static bool position_write_set(System.IntPtr obj, System.IntPtr pd, ulong position) + { + Eina.Log.Debug("function efl_io_buffer_position_write_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Buffer)wrapper).SetPositionWrite(position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_get"); - private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Buffer)wrapper).GetCloseOnExec(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_io_buffer_position_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); + } } - } - private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; + private static efl_io_buffer_position_write_set_delegate efl_io_buffer_position_write_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + private delegate Eina.Slice efl_io_buffer_slice_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Slice efl_io_buffer_slice_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_buffer_slice_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_buffer_slice_get"); + + private static Eina.Slice slice_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_buffer_slice_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Slice _ret_var = default(Eina.Slice); + try + { + _ret_var = ((Buffer)wrapper).GetSlice(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_set"); - private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Buffer)wrapper).SetCloseOnExec( close_on_exec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); + else + { + return efl_io_buffer_slice_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; + private static efl_io_buffer_slice_get_delegate efl_io_buffer_slice_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_io_buffer_preallocate_delegate(System.IntPtr obj, System.IntPtr pd, uint size); + + public delegate void efl_io_buffer_preallocate_api_delegate(System.IntPtr obj, uint size); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_get"); - private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Buffer)wrapper).GetCloseOnInvalidate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_buffer_preallocate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_buffer_preallocate"); + + private static void preallocate(System.IntPtr obj, System.IntPtr pd, uint size) + { + Eina.Log.Debug("function efl_io_buffer_preallocate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Buffer)wrapper).Preallocate(size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_buffer_preallocate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - return _ret_var; - } else { - return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; + private static efl_io_buffer_preallocate_delegate efl_io_buffer_preallocate_static_delegate; - private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + private delegate void efl_io_buffer_adopt_readonly_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Slice slice); + + public delegate void efl_io_buffer_adopt_readonly_api_delegate(System.IntPtr obj, Eina.Slice slice); - public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_set"); - private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Buffer)wrapper).SetCloseOnInvalidate( close_on_invalidate); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); + public static Efl.Eo.FunctionWrapper efl_io_buffer_adopt_readonly_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_buffer_adopt_readonly"); + + private static void adopt_readonly(System.IntPtr obj, System.IntPtr pd, Eina.Slice slice) + { + Eina.Log.Debug("function efl_io_buffer_adopt_readonly was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Buffer)wrapper).AdoptReadonly(slice); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_buffer_adopt_readonly_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice); + } } - } - private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + private static efl_io_buffer_adopt_readonly_delegate efl_io_buffer_adopt_readonly_static_delegate; - private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_io_buffer_adopt_readwrite_delegate(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice); + + public delegate void efl_io_buffer_adopt_readwrite_api_delegate(System.IntPtr obj, Eina.RwSlice slice); - public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close"); - private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Buffer)wrapper).Close(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_buffer_adopt_readwrite_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_buffer_adopt_readwrite"); + + private static void adopt_readwrite(System.IntPtr obj, System.IntPtr pd, Eina.RwSlice slice) + { + Eina.Log.Debug("function efl_io_buffer_adopt_readwrite was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Buffer)wrapper).AdoptReadwrite(slice); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_buffer_adopt_readwrite_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice); } - return _ret_var; - } else { - return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; + private static efl_io_buffer_adopt_readwrite_delegate efl_io_buffer_adopt_readwrite_static_delegate; - private delegate ulong efl_io_positioner_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_io_buffer_binbuf_steal_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_io_buffer_binbuf_steal_api_delegate(System.IntPtr obj); - public delegate ulong efl_io_positioner_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_positioner_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_positioner_position_get"); - private static ulong position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_positioner_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - ulong _ret_var = default(ulong); - try { - _ret_var = ((Buffer)wrapper).GetPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_buffer_binbuf_steal_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_buffer_binbuf_steal"); + + private static System.IntPtr binbuf_steal(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_buffer_binbuf_steal was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Binbuf _ret_var = default(Eina.Binbuf); + try + { + _ret_var = ((Buffer)wrapper).BinbufSteal(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_io_buffer_binbuf_steal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_io_buffer_binbuf_steal_delegate efl_io_buffer_binbuf_steal_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_closed_get"); + + private static bool closed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_closed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Buffer)wrapper).GetClosed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_positioner_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_positioner_position_get_delegate efl_io_positioner_position_get_static_delegate; + private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_positioner_position_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong position); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_positioner_position_set_api_delegate(System.IntPtr obj, ulong position); - public static Efl.Eo.FunctionWrapper efl_io_positioner_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_positioner_position_set"); - private static bool position_set(System.IntPtr obj, System.IntPtr pd, ulong position) - { - Eina.Log.Debug("function efl_io_positioner_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Buffer)wrapper).SetPosition( position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_get"); + + private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Buffer)wrapper).GetCloseOnExec(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_set"); + + private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Buffer)wrapper).SetCloseOnExec(close_on_exec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_positioner_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); + + } + else + { + return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); + } } - } - private static efl_io_positioner_position_set_delegate efl_io_positioner_position_set_static_delegate; + private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; - private delegate Eina.Error efl_io_positioner_seek_delegate(System.IntPtr obj, System.IntPtr pd, long offset, Efl.Io.PositionerWhence whence); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_get"); + + private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Buffer)wrapper).GetCloseOnInvalidate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Error efl_io_positioner_seek_api_delegate(System.IntPtr obj, long offset, Efl.Io.PositionerWhence whence); - public static Efl.Eo.FunctionWrapper efl_io_positioner_seek_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_positioner_seek"); - private static Eina.Error seek(System.IntPtr obj, System.IntPtr pd, long offset, Efl.Io.PositionerWhence whence) - { - Eina.Log.Debug("function efl_io_positioner_seek was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Buffer)wrapper).Seek( offset, whence); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_positioner_seek_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset, whence); + else + { + return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_positioner_seek_delegate efl_io_positioner_seek_static_delegate; + private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_get"); - private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_can_read_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Buffer)wrapper).GetCanRead(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_set"); + + private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Buffer)wrapper).SetCloseOnInvalidate(close_on_invalidate); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); } + } + + private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + + + private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close"); + + private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Buffer)wrapper).Close(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; + private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; - private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); + + private delegate ulong efl_io_positioner_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate ulong efl_io_positioner_position_get_api_delegate(System.IntPtr obj); - public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_set"); - private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) - { - Eina.Log.Debug("function efl_io_reader_can_read_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Buffer)wrapper).SetCanRead( can_read); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); + public static Efl.Eo.FunctionWrapper efl_io_positioner_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_positioner_position_get"); + + private static ulong position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_positioner_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + ulong _ret_var = default(ulong); + try + { + _ret_var = ((Buffer)wrapper).GetPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_positioner_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; + private static efl_io_positioner_position_get_delegate efl_io_positioner_position_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_positioner_position_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong position); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_positioner_position_set_api_delegate(System.IntPtr obj, ulong position); + + public static Efl.Eo.FunctionWrapper efl_io_positioner_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_positioner_position_set"); + + private static bool position_set(System.IntPtr obj, System.IntPtr pd, ulong position) + { + Eina.Log.Debug("function efl_io_positioner_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Buffer)wrapper).SetPosition(position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_get"); - private static bool eos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_eos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Buffer)wrapper).GetEos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_io_positioner_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); + } } - } - private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; + private static efl_io_positioner_position_set_delegate efl_io_positioner_position_set_static_delegate; - private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + + private delegate Eina.Error efl_io_positioner_seek_delegate(System.IntPtr obj, System.IntPtr pd, long offset, Efl.Io.PositionerWhence whence); + + public delegate Eina.Error efl_io_positioner_seek_api_delegate(System.IntPtr obj, long offset, Efl.Io.PositionerWhence whence); - public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_set"); - private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) - { - Eina.Log.Debug("function efl_io_reader_eos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Buffer)wrapper).SetEos( is_eos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); + public static Efl.Eo.FunctionWrapper efl_io_positioner_seek_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_positioner_seek"); + + private static Eina.Error seek(System.IntPtr obj, System.IntPtr pd, long offset, Efl.Io.PositionerWhence whence) + { + Eina.Log.Debug("function efl_io_positioner_seek was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Buffer)wrapper).Seek(offset, whence); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_positioner_seek_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset, whence); + } } - } - private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + private static efl_io_positioner_seek_delegate efl_io_positioner_seek_static_delegate; - private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_get"); + + private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_can_read_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Buffer)wrapper).GetCanRead(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); - public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_read"); - private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) - { - Eina.Log.Debug("function efl_io_reader_read was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Buffer)wrapper).Read( ref rw_slice); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + else + { + return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; + private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; - private delegate ulong efl_io_sizer_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); + + public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); - public delegate ulong efl_io_sizer_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_sizer_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_sizer_size_get"); - private static ulong size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_sizer_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - ulong _ret_var = default(ulong); - try { - _ret_var = ((Buffer)wrapper).GetSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_set"); + + private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) + { + Eina.Log.Debug("function efl_io_reader_can_read_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Buffer)wrapper).SetCanRead(can_read); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); + } + } + + private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_get"); + + private static bool eos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_eos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Buffer)wrapper).GetEos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_sizer_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_sizer_size_get_delegate efl_io_sizer_size_get_static_delegate; + private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_sizer_size_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong size); + + private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + + public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_sizer_size_set_api_delegate(System.IntPtr obj, ulong size); - public static Efl.Eo.FunctionWrapper efl_io_sizer_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_sizer_size_set"); - private static bool size_set(System.IntPtr obj, System.IntPtr pd, ulong size) - { - Eina.Log.Debug("function efl_io_sizer_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Buffer)wrapper).SetSize( size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_set"); + + private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) + { + Eina.Log.Debug("function efl_io_reader_eos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Buffer)wrapper).SetEos(is_eos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); } + } + + private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + + + private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + + + public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); + + public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_read"); + + private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) + { + Eina.Log.Debug("function efl_io_reader_read was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Buffer)wrapper).Read(ref rw_slice); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_sizer_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + + } + else + { + return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + } } - } - private static efl_io_sizer_size_set_delegate efl_io_sizer_size_set_static_delegate; + private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; - private delegate Eina.Error efl_io_sizer_resize_delegate(System.IntPtr obj, System.IntPtr pd, ulong size); + + private delegate ulong efl_io_sizer_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate ulong efl_io_sizer_size_get_api_delegate(System.IntPtr obj); - public delegate Eina.Error efl_io_sizer_resize_api_delegate(System.IntPtr obj, ulong size); - public static Efl.Eo.FunctionWrapper efl_io_sizer_resize_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_sizer_resize"); - private static Eina.Error resize(System.IntPtr obj, System.IntPtr pd, ulong size) - { - Eina.Log.Debug("function efl_io_sizer_resize was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Buffer)wrapper).Resize( size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_sizer_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_sizer_size_get"); + + private static ulong size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_sizer_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + ulong _ret_var = default(ulong); + try + { + _ret_var = ((Buffer)wrapper).GetSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_sizer_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_io_sizer_size_get_delegate efl_io_sizer_size_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_sizer_size_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong size); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_sizer_size_set_api_delegate(System.IntPtr obj, ulong size); + + public static Efl.Eo.FunctionWrapper efl_io_sizer_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_sizer_size_set"); + + private static bool size_set(System.IntPtr obj, System.IntPtr pd, ulong size) + { + Eina.Log.Debug("function efl_io_sizer_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Buffer)wrapper).SetSize(size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_sizer_resize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + + } + else + { + return efl_io_sizer_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } } - } - private static efl_io_sizer_resize_delegate efl_io_sizer_resize_static_delegate; + private static efl_io_sizer_size_set_delegate efl_io_sizer_size_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Error efl_io_sizer_resize_delegate(System.IntPtr obj, System.IntPtr pd, ulong size); + + public delegate Eina.Error efl_io_sizer_resize_api_delegate(System.IntPtr obj, ulong size); + + public static Efl.Eo.FunctionWrapper efl_io_sizer_resize_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_sizer_resize"); + + private static Eina.Error resize(System.IntPtr obj, System.IntPtr pd, ulong size) + { + Eina.Log.Debug("function efl_io_sizer_resize was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Buffer)wrapper).Resize(size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_get"); - private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_writer_can_write_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Buffer)wrapper).GetCanWrite(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_io_sizer_resize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } } - } - private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; + private static efl_io_sizer_resize_delegate efl_io_sizer_resize_static_delegate; - private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); - public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_set"); - private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) - { - Eina.Log.Debug("function efl_io_writer_can_write_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Buffer)wrapper).SetCanWrite( can_write); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_get"); + + private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_writer_can_write_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Buffer)wrapper).GetCanWrite(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; - private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + + private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + + public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); - public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); - public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_write"); - private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) - { - Eina.Log.Debug("function efl_io_writer_write was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Buffer)wrapper).Write( ref slice, ref remaining); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_set"); + + private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) + { + Eina.Log.Debug("function efl_io_writer_can_write_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Buffer)wrapper).SetCanWrite(can_write); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); + } + } + + private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + + + private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + + + public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); + + public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_write"); + + private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) + { + Eina.Log.Debug("function efl_io_writer_write was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Buffer)wrapper).Write(ref slice, ref remaining); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + + } + else + { + return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + } } - } - private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_io_closer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_io_closer.eo.cs index 8e7e988..f9d0d36 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_io_closer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_io_closer.eo.cs @@ -3,14 +3,18 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Io { +namespace Efl { + +namespace Io { + /// Generic interface for objects that can close themselves. /// This interface allows external objects to transparently close an input or output stream, cleaning up its resources. /// /// Calls to may or may not block, that's not up to this interface to specify. /// (Since EFL 1.22) -[ICloserNativeInherit] +[Efl.Io.ICloserConcrete.NativeMethods] public interface ICloser : Efl.Eo.IWrapper, IDisposable { @@ -27,7 +31,7 @@ bool GetCloseOnExec(); /// (Since EFL 1.22) /// true if close on exec(), false otherwise /// true if could set, false if not supported or failed. -bool SetCloseOnExec( bool close_on_exec); +bool SetCloseOnExec(bool close_on_exec); /// If true will automatically close() on object invalidate. /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. /// (Since EFL 1.22) @@ -37,8 +41,7 @@ bool GetCloseOnInvalidate(); /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. /// (Since EFL 1.22) /// true if close on invalidate, false otherwise -/// -void SetCloseOnInvalidate( bool close_on_invalidate); +void SetCloseOnInvalidate(bool close_on_invalidate); /// Closes the Input/Output object. /// This operation will be executed immediately and may or may not block the caller thread for some time. The details of blocking behavior is to be defined by the implementation and may be subject to other parameters such as non-blocking flags, maximum timeout or even retry attempts. /// @@ -83,174 +86,231 @@ ICloser { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ICloserConcrete)) - return Efl.Io.ICloserNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ICloserConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_io_closer_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ICloserConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ICloserConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ClosedEvtKey = new object(); + /// Notifies closed, when property is marked as true /// (Since EFL 1.22) public event EventHandler ClosedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClosedEvt_delegate)) { - eventHandlers.AddHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (RemoveNativeEventHandler(key, this.evt_ClosedEvt_delegate)) { - eventHandlers.RemoveHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClosedEvt. - public void On_ClosedEvt(EventArgs e) + public void OnClosedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClosedEvtKey]; + var key = "_EFL_IO_CLOSER_EVENT_CLOSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClosedEvt_delegate; - private void on_ClosedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClosedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ClosedEvt_delegate = new Efl.EventCb(on_ClosedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// If true will notify object was closed. /// (Since EFL 1.22) /// true if closed, false otherwise public bool GetClosed() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_closed_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_closed_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -259,7 +319,7 @@ private static object ClosedEvtKey = new object(); /// (Since EFL 1.22) /// true if close on exec(), false otherwise public bool GetCloseOnExec() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -267,8 +327,8 @@ private static object ClosedEvtKey = new object(); /// (Since EFL 1.22) /// true if close on exec(), false otherwise /// true if could set, false if not supported or failed. - public bool SetCloseOnExec( bool close_on_exec) { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_set_ptr.Value.Delegate(this.NativeHandle, close_on_exec); + public bool SetCloseOnExec(bool close_on_exec) { + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_set_ptr.Value.Delegate(this.NativeHandle,close_on_exec); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -277,7 +337,7 @@ private static object ClosedEvtKey = new object(); /// (Since EFL 1.22) /// true if close on invalidate, false otherwise public bool GetCloseOnInvalidate() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -285,9 +345,8 @@ private static object ClosedEvtKey = new object(); /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. /// (Since EFL 1.22) /// true if close on invalidate, false otherwise - /// - public void SetCloseOnInvalidate( bool close_on_invalidate) { - Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(this.NativeHandle, close_on_invalidate); + public void SetCloseOnInvalidate(bool close_on_invalidate) { + Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(this.NativeHandle,close_on_invalidate); Eina.Error.RaiseIfUnhandledException(); } /// Closes the Input/Output object. @@ -297,7 +356,7 @@ private static object ClosedEvtKey = new object(); /// (Since EFL 1.22) /// 0 on succeed, a mapping of errno otherwise public Eina.Error Close() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -313,7 +372,7 @@ private static object ClosedEvtKey = new object(); /// true if close on exec(), false otherwise public bool CloseOnExec { get { return GetCloseOnExec(); } - set { SetCloseOnExec( value); } + set { SetCloseOnExec(value); } } /// If true will automatically close() on object invalidate. /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. @@ -321,201 +380,315 @@ private static object ClosedEvtKey = new object(); /// true if close on invalidate, false otherwise public bool CloseOnInvalidate { get { return GetCloseOnInvalidate(); } - set { SetCloseOnInvalidate( value); } + set { SetCloseOnInvalidate(value); } } private static IntPtr GetEflClassStatic() { return Efl.Io.ICloserConcrete.efl_io_closer_interface_get(); } -} -public class ICloserNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_io_closer_closed_get_static_delegate == null) - efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); - if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate)}); - if (efl_io_closer_close_on_exec_get_static_delegate == null) - efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate)}); - if (efl_io_closer_close_on_exec_set_static_delegate == null) - efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate)}); - if (efl_io_closer_close_on_invalidate_get_static_delegate == null) - efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate)}); - if (efl_io_closer_close_on_invalidate_set_static_delegate == null) - efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate)}); - if (efl_io_closer_close_static_delegate == null) - efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); - if (methods.FirstOrDefault(m => m.Name == "Close") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Io.ICloserConcrete.efl_io_closer_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Io.ICloserConcrete.efl_io_closer_interface_get(); - } + 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_io_closer_closed_get_static_delegate == null) + { + efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate) }); + } + if (efl_io_closer_close_on_exec_get_static_delegate == null) + { + efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_closed_get"); - private static bool closed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_closed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ICloser)wrapper).GetClosed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate) }); } - return _ret_var; - } else { - return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; + if (efl_io_closer_close_on_exec_set_static_delegate == null) + { + efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate) }); + } + if (efl_io_closer_close_on_invalidate_get_static_delegate == null) + { + efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_get"); - private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ICloser)wrapper).GetCloseOnExec(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate) }); + } + + if (efl_io_closer_close_on_invalidate_set_static_delegate == null) + { + efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); } + + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate) }); + } + + if (efl_io_closer_close_static_delegate == null) + { + efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); + } + + if (methods.FirstOrDefault(m => m.Name == "Close") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_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.Io.ICloserConcrete.efl_io_closer_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_closed_get"); + + private static bool closed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_closed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ICloser)wrapper).GetClosed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; + private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_get"); + + private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ICloser)wrapper).GetCloseOnExec(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_set"); - private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ICloser)wrapper).SetCloseOnExec( close_on_exec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); + else + { + return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; + private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_set"); + + private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ICloser)wrapper).SetCloseOnExec(close_on_exec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_get"); - private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ICloser)wrapper).GetCloseOnInvalidate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); + } } - } - private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; + private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; - private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); - public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_set"); - private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ICloser)wrapper).SetCloseOnInvalidate( close_on_invalidate); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_get"); + + private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ICloser)wrapper).GetCloseOnInvalidate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; - private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); - public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close"); - private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((ICloser)wrapper).Close(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_set"); + + private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ICloser)wrapper).SetCloseOnInvalidate(close_on_invalidate); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); + } + } + + private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + + + private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close"); + + private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((ICloser)wrapper).Close(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; + + private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_io_positioner.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_io_positioner.eo.cs index 006ac36..e99eafb 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_io_positioner.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_io_positioner.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Io { +namespace Efl { + +namespace Io { + /// Generic interface for objects that can change or report position. -[IPositionerNativeInherit] +[Efl.Io.IPositionerConcrete.NativeMethods] public interface IPositioner : Efl.Eo.IWrapper, IDisposable { @@ -16,12 +20,12 @@ ulong GetPosition(); /// Try to set position object, relative to start of file. See /// Position in file or buffer /// true if could reposition, false if errors. -bool SetPosition( ulong position); +bool SetPosition(ulong position); /// Seek in data /// Offset in byte relative to whence /// Whence /// 0 on succeed, a mapping of errno otherwise -Eina.Error Seek( long offset, Efl.Io.PositionerWhence whence); +Eina.Error Seek(long offset, Efl.Io.PositionerWhence whence); /// Notifies position changed event EventHandler PositionChangedEvt; /// Position property @@ -38,180 +42,237 @@ IPositioner { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IPositionerConcrete)) - return Efl.Io.IPositionerNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IPositionerConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_io_positioner_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IPositionerConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IPositionerConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object PositionChangedEvtKey = new object(); + /// Notifies position changed public event EventHandler PositionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_POSITIONER_EVENT_POSITION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.AddHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_POSITIONER_EVENT_POSITION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PositionChangedEvt. - public void On_PositionChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PositionChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PositionChangedEvt_delegate; - private void on_PositionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPositionChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_PositionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_POSITIONER_EVENT_POSITION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_PositionChangedEvt_delegate = new Efl.EventCb(on_PositionChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Position property /// Position in file or buffer public ulong GetPosition() { - var _ret_var = Efl.Io.IPositionerNativeInherit.efl_io_positioner_position_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Io.IPositionerConcrete.NativeMethods.efl_io_positioner_position_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Try to set position object, relative to start of file. See /// Position in file or buffer /// true if could reposition, false if errors. - public bool SetPosition( ulong position) { - var _ret_var = Efl.Io.IPositionerNativeInherit.efl_io_positioner_position_set_ptr.Value.Delegate(this.NativeHandle, position); + public bool SetPosition(ulong position) { + var _ret_var = Efl.Io.IPositionerConcrete.NativeMethods.efl_io_positioner_position_set_ptr.Value.Delegate(this.NativeHandle,position); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -219,8 +280,8 @@ private static object PositionChangedEvtKey = new object(); /// Offset in byte relative to whence /// Whence /// 0 on succeed, a mapping of errno otherwise - public Eina.Error Seek( long offset, Efl.Io.PositionerWhence whence) { - var _ret_var = Efl.Io.IPositionerNativeInherit.efl_io_positioner_seek_ptr.Value.Delegate(this.NativeHandle, offset, whence); + public Eina.Error Seek(long offset, Efl.Io.PositionerWhence whence) { + var _ret_var = Efl.Io.IPositionerConcrete.NativeMethods.efl_io_positioner_seek_ptr.Value.Delegate(this.NativeHandle,offset, whence); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -228,119 +289,185 @@ private static object PositionChangedEvtKey = new object(); /// Position in file or buffer public ulong Position { get { return GetPosition(); } - set { SetPosition( value); } + set { SetPosition(value); } } private static IntPtr GetEflClassStatic() { return Efl.Io.IPositionerConcrete.efl_io_positioner_mixin_get(); } -} -public class IPositionerNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_io_positioner_position_get_static_delegate == null) - efl_io_positioner_position_get_static_delegate = new efl_io_positioner_position_get_delegate(position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_positioner_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_position_get_static_delegate)}); - if (efl_io_positioner_position_set_static_delegate == null) - efl_io_positioner_position_set_static_delegate = new efl_io_positioner_position_set_delegate(position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_positioner_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_position_set_static_delegate)}); - if (efl_io_positioner_seek_static_delegate == null) - efl_io_positioner_seek_static_delegate = new efl_io_positioner_seek_delegate(seek); - if (methods.FirstOrDefault(m => m.Name == "Seek") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_positioner_seek"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_seek_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Io.IPositionerConcrete.efl_io_positioner_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Io.IPositionerConcrete.efl_io_positioner_mixin_get(); - } + 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_io_positioner_position_get_static_delegate == null) + { + efl_io_positioner_position_get_static_delegate = new efl_io_positioner_position_get_delegate(position_get); + } - private delegate ulong efl_io_positioner_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_positioner_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_position_get_static_delegate) }); + } + if (efl_io_positioner_position_set_static_delegate == null) + { + efl_io_positioner_position_set_static_delegate = new efl_io_positioner_position_set_delegate(position_set); + } - public delegate ulong efl_io_positioner_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_positioner_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_positioner_position_get"); - private static ulong position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_positioner_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - ulong _ret_var = default(ulong); - try { - _ret_var = ((IPositionerConcrete)wrapper).GetPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_positioner_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_position_set_static_delegate) }); } - return _ret_var; - } else { - return efl_io_positioner_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_io_positioner_seek_static_delegate == null) + { + efl_io_positioner_seek_static_delegate = new efl_io_positioner_seek_delegate(seek); + } + + if (methods.FirstOrDefault(m => m.Name == "Seek") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_positioner_seek"), func = Marshal.GetFunctionPointerForDelegate(efl_io_positioner_seek_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.Io.IPositionerConcrete.efl_io_positioner_mixin_get(); } - } - private static efl_io_positioner_position_get_delegate efl_io_positioner_position_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_positioner_position_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong position); + + private delegate ulong efl_io_positioner_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate ulong efl_io_positioner_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_positioner_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_positioner_position_get"); + + private static ulong position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_positioner_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + ulong _ret_var = default(ulong); + try + { + _ret_var = ((IPositionerConcrete)wrapper).GetPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_positioner_position_set_api_delegate(System.IntPtr obj, ulong position); - public static Efl.Eo.FunctionWrapper efl_io_positioner_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_positioner_position_set"); - private static bool position_set(System.IntPtr obj, System.IntPtr pd, ulong position) - { - Eina.Log.Debug("function efl_io_positioner_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPositionerConcrete)wrapper).SetPosition( position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_positioner_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); + else + { + return efl_io_positioner_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_positioner_position_set_delegate efl_io_positioner_position_set_static_delegate; + private static efl_io_positioner_position_get_delegate efl_io_positioner_position_get_static_delegate; - private delegate Eina.Error efl_io_positioner_seek_delegate(System.IntPtr obj, System.IntPtr pd, long offset, Efl.Io.PositionerWhence whence); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_positioner_position_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong position); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_positioner_position_set_api_delegate(System.IntPtr obj, ulong position); + + public static Efl.Eo.FunctionWrapper efl_io_positioner_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_positioner_position_set"); + + private static bool position_set(System.IntPtr obj, System.IntPtr pd, ulong position) + { + Eina.Log.Debug("function efl_io_positioner_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPositionerConcrete)wrapper).SetPosition(position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Error efl_io_positioner_seek_api_delegate(System.IntPtr obj, long offset, Efl.Io.PositionerWhence whence); - public static Efl.Eo.FunctionWrapper efl_io_positioner_seek_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_positioner_seek"); - private static Eina.Error seek(System.IntPtr obj, System.IntPtr pd, long offset, Efl.Io.PositionerWhence whence) - { - Eina.Log.Debug("function efl_io_positioner_seek was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((IPositionerConcrete)wrapper).Seek( offset, whence); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_io_positioner_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); + } + } + + private static efl_io_positioner_position_set_delegate efl_io_positioner_position_set_static_delegate; + + + private delegate Eina.Error efl_io_positioner_seek_delegate(System.IntPtr obj, System.IntPtr pd, long offset, Efl.Io.PositionerWhence whence); + + + public delegate Eina.Error efl_io_positioner_seek_api_delegate(System.IntPtr obj, long offset, Efl.Io.PositionerWhence whence); + + public static Efl.Eo.FunctionWrapper efl_io_positioner_seek_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_positioner_seek"); + + private static Eina.Error seek(System.IntPtr obj, System.IntPtr pd, long offset, Efl.Io.PositionerWhence whence) + { + Eina.Log.Debug("function efl_io_positioner_seek was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((IPositionerConcrete)wrapper).Seek(offset, whence); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_positioner_seek_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset, whence); + + } + else + { + return efl_io_positioner_seek_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset, whence); + } } - } - private static efl_io_positioner_seek_delegate efl_io_positioner_seek_static_delegate; + + private static efl_io_positioner_seek_delegate efl_io_positioner_seek_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } -namespace Efl { namespace Io { + +} + +namespace Efl { + +namespace Io { + /// Seek position modes public enum PositionerWhence { @@ -351,4 +478,8 @@ Current = 1, /// Seek from the end of stream/file End = 2, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_io_queue.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_io_queue.eo.cs index 28cfdea..cc5d709 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_io_queue.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_io_queue.eo.cs @@ -3,149 +3,195 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Io { +namespace Efl { + +namespace Io { + /// Generic In-memory queue of data to be used as I/O. /// This class is to be used to receive temporary data using and hold it until someone calls to consume it. /// /// A fixed sized queue can be implemented by setting followed by -[QueueNativeInherit] +[Efl.Io.Queue.NativeMethods] public class Queue : Efl.Object, Efl.Eo.IWrapper,Efl.Io.ICloser,Efl.Io.IReader,Efl.Io.IWriter { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Queue)) - return Efl.Io.QueueNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Queue)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_io_queue_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Queue(Efl.Object parent= null - ) : - base(efl_io_queue_class_get(), typeof(Queue), parent) + ) : base(efl_io_queue_class_get(), typeof(Queue), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Queue(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Queue(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Queue(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object SliceChangedEvtKey = new object(); + /// The read-slice returned by may have changed. public event EventHandler SliceChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_QUEUE_EVENT_SLICE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SliceChangedEvt_delegate)) { - eventHandlers.AddHandler(SliceChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_QUEUE_EVENT_SLICE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SliceChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SliceChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SliceChangedEvt. - public void On_SliceChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SliceChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SliceChangedEvt_delegate; - private void on_SliceChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSliceChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SliceChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_QUEUE_EVENT_SLICE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClosedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies closed, when property is marked as true /// (Since EFL 1.22) public event EventHandler ClosedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClosedEvt_delegate)) { - eventHandlers.AddHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (RemoveNativeEventHandler(key, this.evt_ClosedEvt_delegate)) { - eventHandlers.RemoveHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClosedEvt. - public void On_ClosedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClosedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClosedEvt_delegate; - private void on_ClosedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClosedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClosedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_CLOSER_EVENT_CLOSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CanReadChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies can_read property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -153,48 +199,65 @@ private static object CanReadChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanReadChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.AddHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanReadChangedEvt. - public void On_CanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) + public void OnCanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanReadChangedEvtKey]; + var key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanReadChangedEvt_delegate; - private void on_CanReadChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanReadChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object EosEvtKey = new object(); /// Notifies end of stream, when property is marked as true. /// If this is used alongside with an , then it should be emitted before that call. /// @@ -204,47 +267,56 @@ private static object EosEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler EosEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_EOS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EosEvt_delegate)) { - eventHandlers.AddHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_EOS"; - if (RemoveNativeEventHandler(key, this.evt_EosEvt_delegate)) { - eventHandlers.RemoveHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EosEvt. - public void On_EosEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EosEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EosEvt_delegate; - private void on_EosEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEosEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EosEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_READER_EVENT_EOS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CanWriteChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies can_write property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -252,56 +324,64 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanWriteChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.AddHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanWriteChangedEvt. - public void On_CanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) + public void OnCanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanWriteChangedEvtKey]; + var key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanWriteChangedEvt_delegate; - private void on_CanWriteChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanWriteChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_SliceChangedEvt_delegate = new Efl.EventCb(on_SliceChangedEvt_NativeCallback); - evt_ClosedEvt_delegate = new Efl.EventCb(on_ClosedEvt_NativeCallback); - evt_CanReadChangedEvt_delegate = new Efl.EventCb(on_CanReadChangedEvt_NativeCallback); - evt_EosEvt_delegate = new Efl.EventCb(on_EosEvt_NativeCallback); - evt_CanWriteChangedEvt_delegate = new Efl.EventCb(on_CanWriteChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Limit how big the buffer can grow. /// This affects both and how buffer grows when is called. @@ -309,21 +389,20 @@ private static object CanWriteChangedEvtKey = new object(); /// If you want a buffer of an exact size, always set the limit before any further calls that can expand it. /// Defines a maximum buffer size, or 0 to allow unlimited amount of bytes virtual public uint GetLimit() { - var _ret_var = Efl.Io.QueueNativeInherit.efl_io_queue_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.Queue.NativeMethods.efl_io_queue_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Constructor-only property to set buffer limit. 0 is unlimited /// Defines a maximum buffer size, or 0 to allow unlimited amount of bytes - /// - virtual public void SetLimit( uint size) { - Efl.Io.QueueNativeInherit.efl_io_queue_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), size); + virtual public void SetLimit(uint size) { + Efl.Io.Queue.NativeMethods.efl_io_queue_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),size); Eina.Error.RaiseIfUnhandledException(); } /// How many bytes are available for read /// Bytes available to read virtual public uint GetUsage() { - var _ret_var = Efl.Io.QueueNativeInherit.efl_io_queue_usage_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.Queue.NativeMethods.efl_io_queue_usage_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -331,15 +410,14 @@ private static object CanWriteChangedEvtKey = new object(); /// The memory pointed to by slice may be changed by other methods of this class. The event "slice,changed" will be called in those situations. /// Slice of the current buffer, may be invalidated if , or are called. It is the full slice available for reading. virtual public Eina.Slice GetSlice() { - var _ret_var = Efl.Io.QueueNativeInherit.efl_io_queue_slice_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.Queue.NativeMethods.efl_io_queue_slice_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Immediately pre-allocate a buffer of at least a given size. /// Amount of bytes to pre-allocate. - /// - virtual public void Preallocate( uint size) { - Efl.Io.QueueNativeInherit.efl_io_queue_preallocate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), size); + virtual public void Preallocate(uint size) { + Efl.Io.Queue.NativeMethods.efl_io_queue_preallocate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),size); Eina.Error.RaiseIfUnhandledException(); } /// Discard the given number of bytes. @@ -349,32 +427,29 @@ private static object CanWriteChangedEvtKey = new object(); /// /// As an example, some protocols provide messages with a "size" header, in which case is used to peek into the available memory to see if there is a "size" and if the rest of the slice is the full payload. In that situation the slice may be handled by a processing function. When the function is complete the defined amount of data must be discarded -- with this function. /// Bytes to discard - /// - virtual public void Discard( uint amount) { - Efl.Io.QueueNativeInherit.efl_io_queue_discard_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), amount); + virtual public void Discard(uint amount) { + Efl.Io.Queue.NativeMethods.efl_io_queue_discard_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),amount); Eina.Error.RaiseIfUnhandledException(); } /// Clears the queue. Same as reading all data. /// This is equivalent to calling with amount of bytes. - /// virtual public void Clear() { - Efl.Io.QueueNativeInherit.efl_io_queue_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Io.Queue.NativeMethods.efl_io_queue_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Mark this end-of-stream. /// That will set to true and forbid any further writes. /// /// Unlike , this won't clear anything. - /// virtual public void EosMark() { - Efl.Io.QueueNativeInherit.efl_io_queue_eos_mark_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Io.Queue.NativeMethods.efl_io_queue_eos_mark_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// If true will notify object was closed. /// (Since EFL 1.22) /// true if closed, false otherwise virtual public bool GetClosed() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_closed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_closed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -383,7 +458,7 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if close on exec(), false otherwise virtual public bool GetCloseOnExec() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -391,8 +466,8 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if close on exec(), false otherwise /// true if could set, false if not supported or failed. - virtual public bool SetCloseOnExec( bool close_on_exec) { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_exec); + virtual public bool SetCloseOnExec(bool close_on_exec) { + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),close_on_exec); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -401,7 +476,7 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if close on invalidate, false otherwise virtual public bool GetCloseOnInvalidate() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -409,9 +484,8 @@ private static object CanWriteChangedEvtKey = new object(); /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. /// (Since EFL 1.22) /// true if close on invalidate, false otherwise - /// - virtual public void SetCloseOnInvalidate( bool close_on_invalidate) { - Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_invalidate); + virtual public void SetCloseOnInvalidate(bool close_on_invalidate) { + Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),close_on_invalidate); Eina.Error.RaiseIfUnhandledException(); } /// Closes the Input/Output object. @@ -421,7 +495,7 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// 0 on succeed, a mapping of errno otherwise virtual public Eina.Error Close() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -429,32 +503,30 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise virtual public bool GetCanRead() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise - /// - virtual public void SetCanRead( bool can_read) { - Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_read); + virtual public void SetCanRead(bool can_read) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_read); Eina.Error.RaiseIfUnhandledException(); } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise virtual public bool GetEos() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_eos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise - /// - virtual public void SetEos( bool is_eos) { - Efl.Io.IReaderNativeInherit.efl_io_reader_eos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), is_eos); + virtual public void SetEos(bool is_eos) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),is_eos); Eina.Error.RaiseIfUnhandledException(); } /// Reads data into a pre-allocated buffer. @@ -464,8 +536,8 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// Provides a pre-allocated memory to be filled up to rw_slice.len. It will be populated and the length will be set to the actually used amount of bytes, which can be smaller than the request. /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Read( ref Eina.RwSlice rw_slice) { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_read_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref rw_slice); + virtual public Eina.Error Read(ref Eina.RwSlice rw_slice) { + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_read_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref rw_slice); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -473,16 +545,15 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise virtual public bool GetCanWrite() { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise - /// - virtual public void SetCanWrite( bool can_write) { - Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_write); + virtual public void SetCanWrite(bool can_write) { + Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_write); Eina.Error.RaiseIfUnhandledException(); } /// Writes data from a pre-populated buffer. @@ -493,8 +564,8 @@ private static object CanWriteChangedEvtKey = new object(); /// Provides a pre-populated memory to be used up to slice.len. The returned slice will be adapted as length will be set to the actually used amount of bytes, which can be smaller than the request. /// Convenience to output the remaining parts of slice that was not written. If the full slice was written, this will be a slice of zero-length. /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Write( ref Eina.Slice slice, ref Eina.Slice remaining) { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_write_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref slice, ref remaining); + virtual public Eina.Error Write(ref Eina.Slice slice, ref Eina.Slice remaining) { + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_write_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref slice, ref remaining); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -505,7 +576,7 @@ private static object CanWriteChangedEvtKey = new object(); /// Defines a maximum buffer size, or 0 to allow unlimited amount of bytes public uint Limit { get { return GetLimit(); } - set { SetLimit( value); } + set { SetLimit(value); } } /// How many bytes are available for read /// Bytes available to read @@ -530,7 +601,7 @@ private static object CanWriteChangedEvtKey = new object(); /// true if close on exec(), false otherwise public bool CloseOnExec { get { return GetCloseOnExec(); } - set { SetCloseOnExec( value); } + set { SetCloseOnExec(value); } } /// If true will automatically close() on object invalidate. /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. @@ -538,679 +609,1065 @@ private static object CanWriteChangedEvtKey = new object(); /// true if close on invalidate, false otherwise public bool CloseOnInvalidate { get { return GetCloseOnInvalidate(); } - set { SetCloseOnInvalidate( value); } + set { SetCloseOnInvalidate(value); } } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise public bool CanRead { get { return GetCanRead(); } - set { SetCanRead( value); } + set { SetCanRead(value); } } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise public bool Eos { get { return GetEos(); } - set { SetEos( value); } + set { SetEos(value); } } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise public bool CanWrite { get { return GetCanWrite(); } - set { SetCanWrite( value); } + set { SetCanWrite(value); } } private static IntPtr GetEflClassStatic() { return Efl.Io.Queue.efl_io_queue_class_get(); } -} -public class QueueNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_io_queue_limit_get_static_delegate == null) - efl_io_queue_limit_get_static_delegate = new efl_io_queue_limit_get_delegate(limit_get); - if (methods.FirstOrDefault(m => m.Name == "GetLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_queue_limit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_limit_get_static_delegate)}); - if (efl_io_queue_limit_set_static_delegate == null) - efl_io_queue_limit_set_static_delegate = new efl_io_queue_limit_set_delegate(limit_set); - if (methods.FirstOrDefault(m => m.Name == "SetLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_queue_limit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_limit_set_static_delegate)}); - if (efl_io_queue_usage_get_static_delegate == null) - efl_io_queue_usage_get_static_delegate = new efl_io_queue_usage_get_delegate(usage_get); - if (methods.FirstOrDefault(m => m.Name == "GetUsage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_queue_usage_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_usage_get_static_delegate)}); - if (efl_io_queue_slice_get_static_delegate == null) - efl_io_queue_slice_get_static_delegate = new efl_io_queue_slice_get_delegate(slice_get); - if (methods.FirstOrDefault(m => m.Name == "GetSlice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_queue_slice_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_slice_get_static_delegate)}); - if (efl_io_queue_preallocate_static_delegate == null) - efl_io_queue_preallocate_static_delegate = new efl_io_queue_preallocate_delegate(preallocate); - if (methods.FirstOrDefault(m => m.Name == "Preallocate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_queue_preallocate"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_preallocate_static_delegate)}); - if (efl_io_queue_discard_static_delegate == null) - efl_io_queue_discard_static_delegate = new efl_io_queue_discard_delegate(discard); - if (methods.FirstOrDefault(m => m.Name == "Discard") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_queue_discard"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_discard_static_delegate)}); - if (efl_io_queue_clear_static_delegate == null) - efl_io_queue_clear_static_delegate = new efl_io_queue_clear_delegate(clear); - if (methods.FirstOrDefault(m => m.Name == "Clear") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_queue_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_clear_static_delegate)}); - if (efl_io_queue_eos_mark_static_delegate == null) - efl_io_queue_eos_mark_static_delegate = new efl_io_queue_eos_mark_delegate(eos_mark); - if (methods.FirstOrDefault(m => m.Name == "EosMark") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_queue_eos_mark"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_eos_mark_static_delegate)}); - if (efl_io_closer_closed_get_static_delegate == null) - efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); - if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate)}); - if (efl_io_closer_close_on_exec_get_static_delegate == null) - efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate)}); - if (efl_io_closer_close_on_exec_set_static_delegate == null) - efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate)}); - if (efl_io_closer_close_on_invalidate_get_static_delegate == null) - efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate)}); - if (efl_io_closer_close_on_invalidate_set_static_delegate == null) - efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate)}); - if (efl_io_closer_close_static_delegate == null) - efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); - if (methods.FirstOrDefault(m => m.Name == "Close") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate)}); - if (efl_io_reader_can_read_get_static_delegate == null) - efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate)}); - if (efl_io_reader_can_read_set_static_delegate == null) - efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate)}); - if (efl_io_reader_eos_get_static_delegate == null) - efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); - if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate)}); - if (efl_io_reader_eos_set_static_delegate == null) - efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); - if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate)}); - if (efl_io_reader_read_static_delegate == null) - efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); - if (methods.FirstOrDefault(m => m.Name == "Read") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate)}); - if (efl_io_writer_can_write_get_static_delegate == null) - efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate)}); - if (efl_io_writer_can_write_set_static_delegate == null) - efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate)}); - if (efl_io_writer_write_static_delegate == null) - efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); - if (methods.FirstOrDefault(m => m.Name == "Write") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Io.Queue.efl_io_queue_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Io.Queue.efl_io_queue_class_get(); - } - + 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_io_queue_limit_get_static_delegate == null) + { + efl_io_queue_limit_get_static_delegate = new efl_io_queue_limit_get_delegate(limit_get); + } - private delegate uint efl_io_queue_limit_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_queue_limit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_limit_get_static_delegate) }); + } + if (efl_io_queue_limit_set_static_delegate == null) + { + efl_io_queue_limit_set_static_delegate = new efl_io_queue_limit_set_delegate(limit_set); + } - public delegate uint efl_io_queue_limit_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_queue_limit_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_queue_limit_get"); - private static uint limit_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_queue_limit_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((Queue)wrapper).GetLimit(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_queue_limit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_limit_set_static_delegate) }); } - return _ret_var; - } else { - return efl_io_queue_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_queue_limit_get_delegate efl_io_queue_limit_get_static_delegate; + if (efl_io_queue_usage_get_static_delegate == null) + { + efl_io_queue_usage_get_static_delegate = new efl_io_queue_usage_get_delegate(usage_get); + } - private delegate void efl_io_queue_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, uint size); + if (methods.FirstOrDefault(m => m.Name == "GetUsage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_queue_usage_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_usage_get_static_delegate) }); + } + if (efl_io_queue_slice_get_static_delegate == null) + { + efl_io_queue_slice_get_static_delegate = new efl_io_queue_slice_get_delegate(slice_get); + } - public delegate void efl_io_queue_limit_set_api_delegate(System.IntPtr obj, uint size); - public static Efl.Eo.FunctionWrapper efl_io_queue_limit_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_queue_limit_set"); - private static void limit_set(System.IntPtr obj, System.IntPtr pd, uint size) - { - Eina.Log.Debug("function efl_io_queue_limit_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Queue)wrapper).SetLimit( size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_queue_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - private static efl_io_queue_limit_set_delegate efl_io_queue_limit_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetSlice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_queue_slice_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_slice_get_static_delegate) }); + } + if (efl_io_queue_preallocate_static_delegate == null) + { + efl_io_queue_preallocate_static_delegate = new efl_io_queue_preallocate_delegate(preallocate); + } - private delegate uint efl_io_queue_usage_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Preallocate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_queue_preallocate"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_preallocate_static_delegate) }); + } + if (efl_io_queue_discard_static_delegate == null) + { + efl_io_queue_discard_static_delegate = new efl_io_queue_discard_delegate(discard); + } - public delegate uint efl_io_queue_usage_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_queue_usage_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_queue_usage_get"); - private static uint usage_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_queue_usage_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((Queue)wrapper).GetUsage(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Discard") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_queue_discard"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_discard_static_delegate) }); } - return _ret_var; - } else { - return efl_io_queue_usage_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_queue_usage_get_delegate efl_io_queue_usage_get_static_delegate; + if (efl_io_queue_clear_static_delegate == null) + { + efl_io_queue_clear_static_delegate = new efl_io_queue_clear_delegate(clear); + } - private delegate Eina.Slice efl_io_queue_slice_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Clear") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_queue_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_clear_static_delegate) }); + } + if (efl_io_queue_eos_mark_static_delegate == null) + { + efl_io_queue_eos_mark_static_delegate = new efl_io_queue_eos_mark_delegate(eos_mark); + } - public delegate Eina.Slice efl_io_queue_slice_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_queue_slice_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_queue_slice_get"); - private static Eina.Slice slice_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_queue_slice_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Slice _ret_var = default(Eina.Slice); - try { - _ret_var = ((Queue)wrapper).GetSlice(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "EosMark") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_queue_eos_mark"), func = Marshal.GetFunctionPointerForDelegate(efl_io_queue_eos_mark_static_delegate) }); } - return _ret_var; - } else { - return efl_io_queue_slice_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_queue_slice_get_delegate efl_io_queue_slice_get_static_delegate; + if (efl_io_closer_closed_get_static_delegate == null) + { + efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); + } - private delegate void efl_io_queue_preallocate_delegate(System.IntPtr obj, System.IntPtr pd, uint size); + if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate) }); + } + if (efl_io_closer_close_on_exec_get_static_delegate == null) + { + efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); + } - public delegate void efl_io_queue_preallocate_api_delegate(System.IntPtr obj, uint size); - public static Efl.Eo.FunctionWrapper efl_io_queue_preallocate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_queue_preallocate"); - private static void preallocate(System.IntPtr obj, System.IntPtr pd, uint size) - { - Eina.Log.Debug("function efl_io_queue_preallocate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Queue)wrapper).Preallocate( size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_queue_preallocate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - private static efl_io_queue_preallocate_delegate efl_io_queue_preallocate_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate) }); + } + if (efl_io_closer_close_on_exec_set_static_delegate == null) + { + efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); + } - private delegate void efl_io_queue_discard_delegate(System.IntPtr obj, System.IntPtr pd, uint amount); + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate) }); + } + if (efl_io_closer_close_on_invalidate_get_static_delegate == null) + { + efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); + } - public delegate void efl_io_queue_discard_api_delegate(System.IntPtr obj, uint amount); - public static Efl.Eo.FunctionWrapper efl_io_queue_discard_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_queue_discard"); - private static void discard(System.IntPtr obj, System.IntPtr pd, uint amount) - { - Eina.Log.Debug("function efl_io_queue_discard was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Queue)wrapper).Discard( amount); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_queue_discard_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), amount); - } - } - private static efl_io_queue_discard_delegate efl_io_queue_discard_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate) }); + } + if (efl_io_closer_close_on_invalidate_set_static_delegate == null) + { + efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); + } - private delegate void efl_io_queue_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate) }); + } + if (efl_io_closer_close_static_delegate == null) + { + efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); + } - public delegate void efl_io_queue_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_queue_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_queue_clear"); - private static void clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_queue_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Queue)wrapper).Clear(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_queue_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_queue_clear_delegate efl_io_queue_clear_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Close") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate) }); + } + if (efl_io_reader_can_read_get_static_delegate == null) + { + efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); + } - private delegate void efl_io_queue_eos_mark_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate) }); + } + if (efl_io_reader_can_read_set_static_delegate == null) + { + efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); + } - public delegate void efl_io_queue_eos_mark_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_queue_eos_mark_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_queue_eos_mark"); - private static void eos_mark(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_queue_eos_mark was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Queue)wrapper).EosMark(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_queue_eos_mark_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_queue_eos_mark_delegate efl_io_queue_eos_mark_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate) }); + } + if (efl_io_reader_eos_get_static_delegate == null) + { + efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate) }); + } + if (efl_io_reader_eos_set_static_delegate == null) + { + efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_closed_get"); - private static bool closed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_closed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Queue)wrapper).GetClosed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate) }); } - return _ret_var; - } else { - return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; + if (efl_io_reader_read_static_delegate == null) + { + efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Read") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate) }); + } + if (efl_io_writer_can_write_get_static_delegate == null) + { + efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_get"); - private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Queue)wrapper).GetCloseOnExec(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate) }); } - return _ret_var; - } else { - return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; + if (efl_io_writer_can_write_set_static_delegate == null) + { + efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate) }); + } + if (efl_io_writer_write_static_delegate == null) + { + efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_set"); - private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Queue)wrapper).SetCloseOnExec( close_on_exec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Write") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate) }); } - return _ret_var; - } else { - return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); - } - } - private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Io.Queue.efl_io_queue_class_get(); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate uint efl_io_queue_limit_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate uint efl_io_queue_limit_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_queue_limit_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_queue_limit_get"); + + private static uint limit_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_queue_limit_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((Queue)wrapper).GetLimit(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_get"); - private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Queue)wrapper).GetCloseOnInvalidate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_io_queue_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; + private static efl_io_queue_limit_get_delegate efl_io_queue_limit_get_static_delegate; + + + private delegate void efl_io_queue_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, uint size); + + + public delegate void efl_io_queue_limit_set_api_delegate(System.IntPtr obj, uint size); + + public static Efl.Eo.FunctionWrapper efl_io_queue_limit_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_queue_limit_set"); + + private static void limit_set(System.IntPtr obj, System.IntPtr pd, uint size) + { + Eina.Log.Debug("function efl_io_queue_limit_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Queue)wrapper).SetLimit(size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + } + else + { + efl_io_queue_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } + } + private static efl_io_queue_limit_set_delegate efl_io_queue_limit_set_static_delegate; + + + private delegate uint efl_io_queue_usage_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate uint efl_io_queue_usage_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_queue_usage_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_queue_usage_get"); + + private static uint usage_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_queue_usage_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((Queue)wrapper).GetUsage(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_set"); - private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Queue)wrapper).SetCloseOnInvalidate( close_on_invalidate); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); - } - } - private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + return _ret_var; + } + else + { + return efl_io_queue_usage_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_io_queue_usage_get_delegate efl_io_queue_usage_get_static_delegate; + + + private delegate Eina.Slice efl_io_queue_slice_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Slice efl_io_queue_slice_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_queue_slice_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_queue_slice_get"); + + private static Eina.Slice slice_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_queue_slice_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Slice _ret_var = default(Eina.Slice); + try + { + _ret_var = ((Queue)wrapper).GetSlice(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close"); - private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Queue)wrapper).Close(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_io_queue_slice_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; + private static efl_io_queue_slice_get_delegate efl_io_queue_slice_get_static_delegate; + + + private delegate void efl_io_queue_preallocate_delegate(System.IntPtr obj, System.IntPtr pd, uint size); + + + public delegate void efl_io_queue_preallocate_api_delegate(System.IntPtr obj, uint size); + + public static Efl.Eo.FunctionWrapper efl_io_queue_preallocate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_queue_preallocate"); + + private static void preallocate(System.IntPtr obj, System.IntPtr pd, uint size) + { + Eina.Log.Debug("function efl_io_queue_preallocate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Queue)wrapper).Preallocate(size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_io_queue_preallocate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } + } + private static efl_io_queue_preallocate_delegate efl_io_queue_preallocate_static_delegate; + + + private delegate void efl_io_queue_discard_delegate(System.IntPtr obj, System.IntPtr pd, uint amount); + + + public delegate void efl_io_queue_discard_api_delegate(System.IntPtr obj, uint amount); + + public static Efl.Eo.FunctionWrapper efl_io_queue_discard_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_queue_discard"); + + private static void discard(System.IntPtr obj, System.IntPtr pd, uint amount) + { + Eina.Log.Debug("function efl_io_queue_discard was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Queue)wrapper).Discard(amount); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_get"); - private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_can_read_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Queue)wrapper).GetCanRead(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_io_queue_discard_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), amount); } - return _ret_var; - } else { - return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; + private static efl_io_queue_discard_delegate efl_io_queue_discard_static_delegate; + + + private delegate void efl_io_queue_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_io_queue_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_queue_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_queue_clear"); + + private static void clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_queue_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Queue)wrapper).Clear(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_queue_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_io_queue_clear_delegate efl_io_queue_clear_static_delegate; + + + private delegate void efl_io_queue_eos_mark_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_io_queue_eos_mark_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_queue_eos_mark_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_queue_eos_mark"); + + private static void eos_mark(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_queue_eos_mark was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Queue)wrapper).EosMark(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_queue_eos_mark_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); + private static efl_io_queue_eos_mark_delegate efl_io_queue_eos_mark_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_closed_get"); + + private static bool closed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_closed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Queue)wrapper).GetClosed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_set"); - private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) - { - Eina.Log.Debug("function efl_io_reader_can_read_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Queue)wrapper).SetCanRead( can_read); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); + } + else + { + return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_get"); + + private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Queue)wrapper).GetCloseOnExec(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_get"); - private static bool eos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_eos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Queue)wrapper).GetEos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; + private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_set"); + + private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Queue)wrapper).SetCloseOnExec(close_on_exec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + return _ret_var; + } + else + { + return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); + } + } - public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_set"); - private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) - { - Eina.Log.Debug("function efl_io_reader_eos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Queue)wrapper).SetEos( is_eos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); + private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_get"); + + private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Queue)wrapper).GetCloseOnInvalidate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; + + + private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + + public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_set"); + + private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Queue)wrapper).SetCloseOnInvalidate(close_on_invalidate); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + + } + else + { + efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); + } + } + private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + + + private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close"); + + private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Queue)wrapper).Close(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); - public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_read"); - private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) - { - Eina.Log.Debug("function efl_io_reader_read was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Queue)wrapper).Read( ref rw_slice); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + else + { + return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; + private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_get"); + + private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_can_read_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Queue)wrapper).GetCanRead(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_get"); - private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_writer_can_write_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Queue)wrapper).GetCanWrite(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; + + + private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); + + + public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); + + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_set"); + + private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) + { + Eina.Log.Debug("function efl_io_reader_can_read_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Queue)wrapper).SetCanRead(can_read); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); + } + } + + private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_get"); + + private static bool eos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_eos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Queue)wrapper).GetEos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; + private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; + + + private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + + + public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); + + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_set"); + + private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) + { + Eina.Log.Debug("function efl_io_reader_eos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Queue)wrapper).SetEos(is_eos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); + } + } - private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + + + private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + + + public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); + + public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_read"); + + private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) + { + Eina.Log.Debug("function efl_io_reader_read was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Queue)wrapper).Read(ref rw_slice); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_set"); - private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) - { - Eina.Log.Debug("function efl_io_writer_can_write_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Queue)wrapper).SetCanWrite( can_write); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); + } + else + { + return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + } } - } - private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_get"); + + private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_writer_can_write_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Queue)wrapper).GetCanWrite(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + return _ret_var; + } + else + { + return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); - public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_write"); - private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) - { - Eina.Log.Debug("function efl_io_writer_write was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Queue)wrapper).Write( ref slice, ref remaining); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; + + + private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + + + public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); + + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_set"); + + private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) + { + Eina.Log.Debug("function efl_io_writer_can_write_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Queue)wrapper).SetCanWrite(can_write); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); + } + } + + private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + + + private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + + + public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); + + public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_write"); + + private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) + { + Eina.Log.Debug("function efl_io_writer_write was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Queue)wrapper).Write(ref slice, ref remaining); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + + } + else + { + return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + } } - } - private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_io_reader.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_io_reader.eo.cs index 8e21829..fdacc10 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_io_reader.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_io_reader.eo.cs @@ -3,14 +3,18 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Io { +namespace Efl { + +namespace Io { + /// Generic interface for objects that can read data into a provided memory. /// This interface allows external objects to transparently monitor for new data and as it to be read into a provided memory slice. /// /// Calls to may or may not block, that's not up to this interface to specify. The user can check based on property and signal if the stream reached an end, with event "can_read,changed" or property to known whenever a read would have data to return. /// (Since EFL 1.22) -[IReaderNativeInherit] +[Efl.Io.IReaderConcrete.NativeMethods] public interface IReader : Efl.Eo.IWrapper, IDisposable { @@ -21,8 +25,7 @@ bool GetCanRead(); /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise -/// -void SetCanRead( bool can_read); +void SetCanRead(bool can_read); /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise @@ -30,8 +33,7 @@ bool GetEos(); /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise -/// -void SetEos( bool is_eos); +void SetEos(bool is_eos); /// Reads data into a pre-allocated buffer. /// This operation will be executed immediately and may or may not block the caller thread for some time. The details of blocking behavior is to be defined by the implementation and may be subject to other parameters such as non-blocking flags, maximum timeout or even retry attempts. /// @@ -39,7 +41,7 @@ void SetEos( bool is_eos); /// (Since EFL 1.22) /// Provides a pre-allocated memory to be filled up to rw_slice.len. It will be populated and the length will be set to the actually used amount of bytes, which can be smaller than the request. /// 0 on succeed, a mapping of errno otherwise -Eina.Error Read( ref Eina.RwSlice rw_slice); +Eina.Error Read(ref Eina.RwSlice rw_slice); /// Notifies can_read property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -85,120 +87,172 @@ IReader { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IReaderConcrete)) - return Efl.Io.IReaderNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IReaderConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_io_reader_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IReaderConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IReaderConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object CanReadChangedEvtKey = new object(); + /// Notifies can_read property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -206,48 +260,65 @@ private static object CanReadChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanReadChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.AddHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanReadChangedEvt. - public void On_CanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) + public void OnCanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanReadChangedEvtKey]; + var key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanReadChangedEvt_delegate; - private void on_CanReadChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanReadChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object EosEvtKey = new object(); /// Notifies end of stream, when property is marked as true. /// If this is used alongside with an , then it should be emitted before that call. /// @@ -257,82 +328,84 @@ private static object EosEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler EosEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_EOS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EosEvt_delegate)) { - eventHandlers.AddHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_EOS"; - if (RemoveNativeEventHandler(key, this.evt_EosEvt_delegate)) { - eventHandlers.RemoveHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EosEvt. - public void On_EosEvt(EventArgs e) + public void OnEosEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EosEvtKey]; + var key = "_EFL_IO_READER_EVENT_EOS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EosEvt_delegate; - private void on_EosEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EosEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_CanReadChangedEvt_delegate = new Efl.EventCb(on_CanReadChangedEvt_NativeCallback); - evt_EosEvt_delegate = new Efl.EventCb(on_EosEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise public bool GetCanRead() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise - /// - public void SetCanRead( bool can_read) { - Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_set_ptr.Value.Delegate(this.NativeHandle, can_read); + public void SetCanRead(bool can_read) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_set_ptr.Value.Delegate(this.NativeHandle,can_read); Eina.Error.RaiseIfUnhandledException(); } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise public bool GetEos() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_eos_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise - /// - public void SetEos( bool is_eos) { - Efl.Io.IReaderNativeInherit.efl_io_reader_eos_set_ptr.Value.Delegate(this.NativeHandle, is_eos); + public void SetEos(bool is_eos) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_set_ptr.Value.Delegate(this.NativeHandle,is_eos); Eina.Error.RaiseIfUnhandledException(); } /// Reads data into a pre-allocated buffer. @@ -342,8 +415,8 @@ private static object EosEvtKey = new object(); /// (Since EFL 1.22) /// Provides a pre-allocated memory to be filled up to rw_slice.len. It will be populated and the length will be set to the actually used amount of bytes, which can be smaller than the request. /// 0 on succeed, a mapping of errno otherwise - public Eina.Error Read( ref Eina.RwSlice rw_slice) { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_read_ptr.Value.Delegate(this.NativeHandle, ref rw_slice); + public Eina.Error Read(ref Eina.RwSlice rw_slice) { + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_read_ptr.Value.Delegate(this.NativeHandle,ref rw_slice); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -352,178 +425,275 @@ private static object EosEvtKey = new object(); /// true if it can be read without blocking or failing, false otherwise public bool CanRead { get { return GetCanRead(); } - set { SetCanRead( value); } + set { SetCanRead(value); } } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise public bool Eos { get { return GetEos(); } - set { SetEos( value); } + set { SetEos(value); } } private static IntPtr GetEflClassStatic() { return Efl.Io.IReaderConcrete.efl_io_reader_interface_get(); } -} -public class IReaderNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_io_reader_can_read_get_static_delegate == null) - efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate)}); - if (efl_io_reader_can_read_set_static_delegate == null) - efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate)}); - if (efl_io_reader_eos_get_static_delegate == null) - efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); - if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate)}); - if (efl_io_reader_eos_set_static_delegate == null) - efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); - if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate)}); - if (efl_io_reader_read_static_delegate == null) - efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); - if (methods.FirstOrDefault(m => m.Name == "Read") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Io.IReaderConcrete.efl_io_reader_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Io.IReaderConcrete.efl_io_reader_interface_get(); - } + 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_io_reader_can_read_get_static_delegate == null) + { + efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate) }); + } + if (efl_io_reader_can_read_set_static_delegate == null) + { + efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_get"); - private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_can_read_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IReader)wrapper).GetCanRead(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate) }); } - return _ret_var; - } else { - return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_io_reader_eos_get_static_delegate == null) + { + efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate) }); + } + + if (efl_io_reader_eos_set_static_delegate == null) + { + efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate) }); + } + + if (efl_io_reader_read_static_delegate == null) + { + efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); + } + + if (methods.FirstOrDefault(m => m.Name == "Read") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_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.Io.IReaderConcrete.efl_io_reader_interface_get(); } - } - private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_get"); + + private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_can_read_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IReader)wrapper).GetCanRead(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_set"); - private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) - { - Eina.Log.Debug("function efl_io_reader_can_read_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IReader)wrapper).SetCanRead( can_read); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); + else + { + return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; + private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); + + public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_get"); - private static bool eos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_eos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IReader)wrapper).GetEos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_set"); + + private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) + { + Eina.Log.Debug("function efl_io_reader_can_read_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IReader)wrapper).SetCanRead(can_read); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); } - return _ret_var; - } else { - return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; + private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; - private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); - public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_set"); - private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) - { - Eina.Log.Debug("function efl_io_reader_eos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IReader)wrapper).SetEos( is_eos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_get"); + + private static bool eos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_eos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IReader)wrapper).GetEos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); } - } - private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; - private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + + private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + + public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); - public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); - public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_read"); - private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) - { - Eina.Log.Debug("function efl_io_reader_read was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((IReader)wrapper).Read( ref rw_slice); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_set"); + + private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) + { + Eina.Log.Debug("function efl_io_reader_eos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IReader)wrapper).SetEos(is_eos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); } + } + + private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + + + private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + + + public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); + + public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_read"); + + private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) + { + Eina.Log.Debug("function efl_io_reader_read was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((IReader)wrapper).Read(ref rw_slice); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + + } + else + { + return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + } } - } - private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; + + private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_io_sizer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_io_sizer.eo.cs index ea15ac0..f3a3570 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_io_sizer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_io_sizer.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Io { +namespace Efl { + +namespace Io { + /// Generic interface for objects that can resize or report size of themselves. /// This interface allows external objects to transparently resize or report its size. -[ISizerNativeInherit] +[Efl.Io.ISizerConcrete.NativeMethods] public interface ISizer : Efl.Eo.IWrapper, IDisposable { @@ -17,11 +21,11 @@ ulong GetSize(); /// Try to resize the object, check with get if the value was accepted or not. /// Object size /// true if could resize, false if errors. -bool SetSize( ulong size); +bool SetSize(ulong size); /// Resize object /// Object size /// 0 on succeed, a mapping of errno otherwise -Eina.Error Resize( ulong size); +Eina.Error Resize(ulong size); /// Notifies size changed event EventHandler SizeChangedEvt; /// Size property @@ -39,188 +43,245 @@ ISizer { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ISizerConcrete)) - return Efl.Io.ISizerNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ISizerConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_io_sizer_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ISizerConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ISizerConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object SizeChangedEvtKey = new object(); + /// Notifies size changed public event EventHandler SizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_SIZER_EVENT_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.AddHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_SIZER_EVENT_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SizeChangedEvt. - public void On_SizeChangedEvt(EventArgs e) + public void OnSizeChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SizeChangedEvtKey]; + var key = "_EFL_IO_SIZER_EVENT_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SizeChangedEvt_delegate; - private void on_SizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_SizeChangedEvt_delegate = new Efl.EventCb(on_SizeChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Size property /// Object size public ulong GetSize() { - var _ret_var = Efl.Io.ISizerNativeInherit.efl_io_sizer_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Io.ISizerConcrete.NativeMethods.efl_io_sizer_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Try to resize the object, check with get if the value was accepted or not. /// Object size /// true if could resize, false if errors. - public bool SetSize( ulong size) { - var _ret_var = Efl.Io.ISizerNativeInherit.efl_io_sizer_size_set_ptr.Value.Delegate(this.NativeHandle, size); + public bool SetSize(ulong size) { + var _ret_var = Efl.Io.ISizerConcrete.NativeMethods.efl_io_sizer_size_set_ptr.Value.Delegate(this.NativeHandle,size); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Resize object /// Object size /// 0 on succeed, a mapping of errno otherwise - public Eina.Error Resize( ulong size) { - var _ret_var = Efl.Io.ISizerNativeInherit.efl_io_sizer_resize_ptr.Value.Delegate(this.NativeHandle, size); + public Eina.Error Resize(ulong size) { + var _ret_var = Efl.Io.ISizerConcrete.NativeMethods.efl_io_sizer_resize_ptr.Value.Delegate(this.NativeHandle,size); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -228,115 +289,178 @@ private static object SizeChangedEvtKey = new object(); /// Object size public ulong Size { get { return GetSize(); } - set { SetSize( value); } + set { SetSize(value); } } private static IntPtr GetEflClassStatic() { return Efl.Io.ISizerConcrete.efl_io_sizer_mixin_get(); } -} -public class ISizerNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_io_sizer_size_get_static_delegate == null) - efl_io_sizer_size_get_static_delegate = new efl_io_sizer_size_get_delegate(size_get); - if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_sizer_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_size_get_static_delegate)}); - if (efl_io_sizer_size_set_static_delegate == null) - efl_io_sizer_size_set_static_delegate = new efl_io_sizer_size_set_delegate(size_set); - if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_sizer_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_size_set_static_delegate)}); - if (efl_io_sizer_resize_static_delegate == null) - efl_io_sizer_resize_static_delegate = new efl_io_sizer_resize_delegate(resize); - if (methods.FirstOrDefault(m => m.Name == "Resize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_sizer_resize"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_resize_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Io.ISizerConcrete.efl_io_sizer_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Io.ISizerConcrete.efl_io_sizer_mixin_get(); - } + 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_io_sizer_size_get_static_delegate == null) + { + efl_io_sizer_size_get_static_delegate = new efl_io_sizer_size_get_delegate(size_get); + } - private delegate ulong efl_io_sizer_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_sizer_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_size_get_static_delegate) }); + } + if (efl_io_sizer_size_set_static_delegate == null) + { + efl_io_sizer_size_set_static_delegate = new efl_io_sizer_size_set_delegate(size_set); + } - public delegate ulong efl_io_sizer_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_sizer_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_sizer_size_get"); - private static ulong size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_sizer_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - ulong _ret_var = default(ulong); - try { - _ret_var = ((ISizerConcrete)wrapper).GetSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_sizer_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_size_set_static_delegate) }); } - return _ret_var; - } else { - return efl_io_sizer_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_io_sizer_resize_static_delegate == null) + { + efl_io_sizer_resize_static_delegate = new efl_io_sizer_resize_delegate(resize); + } + + if (methods.FirstOrDefault(m => m.Name == "Resize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_sizer_resize"), func = Marshal.GetFunctionPointerForDelegate(efl_io_sizer_resize_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.Io.ISizerConcrete.efl_io_sizer_mixin_get(); } - } - private static efl_io_sizer_size_get_delegate efl_io_sizer_size_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_sizer_size_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong size); + + private delegate ulong efl_io_sizer_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate ulong efl_io_sizer_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_sizer_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_sizer_size_get"); + + private static ulong size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_sizer_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + ulong _ret_var = default(ulong); + try + { + _ret_var = ((ISizerConcrete)wrapper).GetSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_sizer_size_set_api_delegate(System.IntPtr obj, ulong size); - public static Efl.Eo.FunctionWrapper efl_io_sizer_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_sizer_size_set"); - private static bool size_set(System.IntPtr obj, System.IntPtr pd, ulong size) - { - Eina.Log.Debug("function efl_io_sizer_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ISizerConcrete)wrapper).SetSize( size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_sizer_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + else + { + return efl_io_sizer_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_sizer_size_set_delegate efl_io_sizer_size_set_static_delegate; + private static efl_io_sizer_size_get_delegate efl_io_sizer_size_get_static_delegate; - private delegate Eina.Error efl_io_sizer_resize_delegate(System.IntPtr obj, System.IntPtr pd, ulong size); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_sizer_size_set_delegate(System.IntPtr obj, System.IntPtr pd, ulong size); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_sizer_size_set_api_delegate(System.IntPtr obj, ulong size); - public delegate Eina.Error efl_io_sizer_resize_api_delegate(System.IntPtr obj, ulong size); - public static Efl.Eo.FunctionWrapper efl_io_sizer_resize_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_sizer_resize"); - private static Eina.Error resize(System.IntPtr obj, System.IntPtr pd, ulong size) - { - Eina.Log.Debug("function efl_io_sizer_resize was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((ISizerConcrete)wrapper).Resize( size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_sizer_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_sizer_size_set"); + + private static bool size_set(System.IntPtr obj, System.IntPtr pd, ulong size) + { + Eina.Log.Debug("function efl_io_sizer_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ISizerConcrete)wrapper).SetSize(size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_sizer_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } + } + + private static efl_io_sizer_size_set_delegate efl_io_sizer_size_set_static_delegate; + + + private delegate Eina.Error efl_io_sizer_resize_delegate(System.IntPtr obj, System.IntPtr pd, ulong size); + + + public delegate Eina.Error efl_io_sizer_resize_api_delegate(System.IntPtr obj, ulong size); + + public static Efl.Eo.FunctionWrapper efl_io_sizer_resize_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_sizer_resize"); + + private static Eina.Error resize(System.IntPtr obj, System.IntPtr pd, ulong size) + { + Eina.Log.Debug("function efl_io_sizer_resize was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((ISizerConcrete)wrapper).Resize(size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_sizer_resize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + + } + else + { + return efl_io_sizer_resize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } } - } - private static efl_io_sizer_resize_delegate efl_io_sizer_resize_static_delegate; + + private static efl_io_sizer_resize_delegate efl_io_sizer_resize_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_io_writer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_io_writer.eo.cs index 3ea2c99..cf7c57e 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_io_writer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_io_writer.eo.cs @@ -3,14 +3,18 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Io { +namespace Efl { + +namespace Io { + /// Generic interface for objects that can write data from a provided memory. /// This interface allows external objects to transparently write data to this object and be notified whether more data can be written or if it's reached capacity. /// /// Calls to may or may not block: that's not up to this interface to specify. The user can check with event "can_write,changed" or property to known whenever a write could push more data. /// (Since EFL 1.22) -[IWriterNativeInherit] +[Efl.Io.IWriterConcrete.NativeMethods] public interface IWriter : Efl.Eo.IWrapper, IDisposable { @@ -21,8 +25,7 @@ bool GetCanWrite(); /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise -/// -void SetCanWrite( bool can_write); +void SetCanWrite(bool can_write); /// Writes data from a pre-populated buffer. /// This operation will be executed immediately and may or may not block the caller thread for some time. The details of blocking behavior is defined by the implementation and may be subject to other parameters such as non-blocking flags, maximum timeout or even retry attempts. /// @@ -31,7 +34,7 @@ void SetCanWrite( bool can_write); /// Provides a pre-populated memory to be used up to slice.len. The returned slice will be adapted as length will be set to the actually used amount of bytes, which can be smaller than the request. /// Convenience to output the remaining parts of slice that was not written. If the full slice was written, this will be a slice of zero-length. /// 0 on succeed, a mapping of errno otherwise -Eina.Error Write( ref Eina.Slice slice, ref Eina.Slice remaining); +Eina.Error Write(ref Eina.Slice slice, ref Eina.Slice remaining); /// Notifies can_write property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -62,120 +65,172 @@ IWriter { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IWriterConcrete)) - return Efl.Io.IWriterNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IWriterConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_io_writer_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IWriterConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IWriterConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object CanWriteChangedEvtKey = new object(); + /// Notifies can_write property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -183,66 +238,78 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanWriteChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.AddHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanWriteChangedEvt. - public void On_CanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) + public void OnCanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanWriteChangedEvtKey]; + var key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanWriteChangedEvt_delegate; - private void on_CanWriteChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanWriteChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_CanWriteChangedEvt_delegate = new Efl.EventCb(on_CanWriteChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise public bool GetCanWrite() { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise - /// - public void SetCanWrite( bool can_write) { - Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_set_ptr.Value.Delegate(this.NativeHandle, can_write); + public void SetCanWrite(bool can_write) { + Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_set_ptr.Value.Delegate(this.NativeHandle,can_write); Eina.Error.RaiseIfUnhandledException(); } /// Writes data from a pre-populated buffer. @@ -253,8 +320,8 @@ private static object CanWriteChangedEvtKey = new object(); /// Provides a pre-populated memory to be used up to slice.len. The returned slice will be adapted as length will be set to the actually used amount of bytes, which can be smaller than the request. /// Convenience to output the remaining parts of slice that was not written. If the full slice was written, this will be a slice of zero-length. /// 0 on succeed, a mapping of errno otherwise - public Eina.Error Write( ref Eina.Slice slice, ref Eina.Slice remaining) { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_write_ptr.Value.Delegate(this.NativeHandle, ref slice, ref remaining); + public Eina.Error Write(ref Eina.Slice slice, ref Eina.Slice remaining) { + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_write_ptr.Value.Delegate(this.NativeHandle,ref slice, ref remaining); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -263,114 +330,177 @@ private static object CanWriteChangedEvtKey = new object(); /// true if it can be written without blocking or failure, false otherwise public bool CanWrite { get { return GetCanWrite(); } - set { SetCanWrite( value); } + set { SetCanWrite(value); } } private static IntPtr GetEflClassStatic() { return Efl.Io.IWriterConcrete.efl_io_writer_interface_get(); } -} -public class IWriterNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_io_writer_can_write_get_static_delegate == null) - efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate)}); - if (efl_io_writer_can_write_set_static_delegate == null) - efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate)}); - if (efl_io_writer_write_static_delegate == null) - efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); - if (methods.FirstOrDefault(m => m.Name == "Write") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Io.IWriterConcrete.efl_io_writer_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Io.IWriterConcrete.efl_io_writer_interface_get(); - } + 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_io_writer_can_write_get_static_delegate == null) + { + efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate) }); + } + if (efl_io_writer_can_write_set_static_delegate == null) + { + efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_get"); - private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_writer_can_write_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IWriter)wrapper).GetCanWrite(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate) }); } - return _ret_var; - } else { - return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_io_writer_write_static_delegate == null) + { + efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); + } + + if (methods.FirstOrDefault(m => m.Name == "Write") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_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.Io.IWriterConcrete.efl_io_writer_interface_get(); } - } - private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); - public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_set"); - private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) - { - Eina.Log.Debug("function efl_io_writer_can_write_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IWriter)wrapper).SetCanWrite( can_write); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_get"); + + private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_writer_can_write_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IWriter)wrapper).GetCanWrite(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); } - } - private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; - private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + + private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + + public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); - public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); - public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_write"); - private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) - { - Eina.Log.Debug("function efl_io_writer_write was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((IWriter)wrapper).Write( ref slice, ref remaining); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_set"); + + private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) + { + Eina.Log.Debug("function efl_io_writer_can_write_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IWriter)wrapper).SetCanWrite(can_write); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); } + } + + private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + + + private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + + + public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); + + public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_write"); + + private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) + { + Eina.Log.Debug("function efl_io_writer_write was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((IWriter)wrapper).Write(ref slice, ref remaining); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + + } + else + { + return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + } } - } - private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_layout_calc.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_layout_calc.eo.cs index 96a61c5..a4ba37f 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_layout_calc.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_layout_calc.eo.cs @@ -3,12 +3,16 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Layout { +namespace Efl { + +namespace Layout { + /// This interface defines a common set of APIs used to trigger calculations with layout objects. /// This defines all the APIs supported by legacy "Edje" object, known in EO API as Efl.Canvas.Layout. /// (Since EFL 1.22) -[ICalcNativeInherit] +[Efl.Layout.ICalcConcrete.NativeMethods] public interface ICalc : Efl.Eo.IWrapper, IDisposable { @@ -19,8 +23,7 @@ bool GetCalcAutoUpdateHints(); /// Enable or disable auto-update of size hints. /// (Since EFL 1.22) /// Whether or not update the size hints. -/// -void SetCalcAutoUpdateHints( bool update); +void SetCalcAutoUpdateHints(bool update); /// Calculates the minimum required size for a given layout object. /// This call will trigger an internal recalculation of all parts of the object, in order to return its minimum required dimensions for width and height. The user might choose to impose those minimum sizes, making the resulting calculation to get to values greater or equal than restricted in both directions. /// @@ -30,7 +33,7 @@ void SetCalcAutoUpdateHints( bool update); /// (Since EFL 1.22) /// The minimum size constraint as input, the returned size can not be lower than this (in both directions). /// The minimum required size. -Eina.Size2D CalcSizeMin( Eina.Size2D restricted); +Eina.Size2D CalcSizeMin(Eina.Size2D restricted); /// Calculates the geometry of the region, relative to a given layout object's area, occupied by all parts in the object. /// This function gets the geometry of the rectangle equal to the area required to group all parts in obj's group/collection. The x and y coordinates are relative to the top left corner of the whole obj object's area. Parts placed out of the group's boundaries will also be taken in account, so that x and y may be negative. /// @@ -59,7 +62,6 @@ int ThawCalc(); /// /// See also and . /// (Since EFL 1.22) -/// void CalcForce(); /// The layout was recalculated. /// (Since EFL 1.22) @@ -92,230 +94,295 @@ ICalc { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ICalcConcrete)) - return Efl.Layout.ICalcNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ICalcConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr efl_layout_calc_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ICalcConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ICalcConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Edje, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object RecalcEvtKey = new object(); + /// The layout was recalculated. /// (Since EFL 1.22) public event EventHandler RecalcEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LAYOUT_EVENT_RECALC"; - if (AddNativeEventHandler(efl.Libs.Edje, key, this.evt_RecalcEvt_delegate)) { - eventHandlers.AddHandler(RecalcEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Edje, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LAYOUT_EVENT_RECALC"; - if (RemoveNativeEventHandler(key, this.evt_RecalcEvt_delegate)) { - eventHandlers.RemoveHandler(RecalcEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Edje, key, value); } } } ///Method to raise event RecalcEvt. - public void On_RecalcEvt(EventArgs e) + public void OnRecalcEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RecalcEvtKey]; + var key = "_EFL_LAYOUT_EVENT_RECALC"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Edje, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RecalcEvt_delegate; - private void on_RecalcEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_RecalcEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object CircularDependencyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// A circular dependency between parts of the object was found. /// (Since EFL 1.22) public event EventHandler CircularDependencyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Layout.ICalcCircularDependencyEvt_Args args = new Efl.Layout.ICalcCircularDependencyEvt_Args(); + args.arg = new Eina.Array(evt.Info, false, false); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; - if (AddNativeEventHandler(efl.Libs.Edje, key, this.evt_CircularDependencyEvt_delegate)) { - eventHandlers.AddHandler(CircularDependencyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Edje, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; - if (RemoveNativeEventHandler(key, this.evt_CircularDependencyEvt_delegate)) { - eventHandlers.RemoveHandler(CircularDependencyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Edje, key, value); } } } ///Method to raise event CircularDependencyEvt. - public void On_CircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) + public void OnCircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CircularDependencyEvtKey]; + var key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Edje, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CircularDependencyEvt_delegate; - private void on_CircularDependencyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Layout.ICalcCircularDependencyEvt_Args args = new Efl.Layout.ICalcCircularDependencyEvt_Args(); - args.arg = new Eina.Array(evt.Info, false, false); - try { - On_CircularDependencyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_RecalcEvt_delegate = new Efl.EventCb(on_RecalcEvt_NativeCallback); - evt_CircularDependencyEvt_delegate = new Efl.EventCb(on_CircularDependencyEvt_NativeCallback); + IntPtr info = e.arg.Handle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Whether this object updates its size hints automatically. /// (Since EFL 1.22) /// Whether or not update the size hints. public bool GetCalcAutoUpdateHints() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable or disable auto-update of size hints. /// (Since EFL 1.22) /// Whether or not update the size hints. - /// - public void SetCalcAutoUpdateHints( bool update) { - Efl.Layout.ICalcNativeInherit.efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate(this.NativeHandle, update); + public void SetCalcAutoUpdateHints(bool update) { + Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate(this.NativeHandle,update); Eina.Error.RaiseIfUnhandledException(); } /// Calculates the minimum required size for a given layout object. @@ -327,9 +394,9 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The minimum size constraint as input, the returned size can not be lower than this (in both directions). /// The minimum required size. - public Eina.Size2D CalcSizeMin( Eina.Size2D restricted) { + public Eina.Size2D CalcSizeMin(Eina.Size2D restricted) { Eina.Size2D.NativeStruct _in_restricted = restricted; - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_size_min_ptr.Value.Delegate(this.NativeHandle, _in_restricted); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_size_min_ptr.Value.Delegate(this.NativeHandle,_in_restricted); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -340,7 +407,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The calculated region. public Eina.Rect CalcPartsExtends() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_parts_extends_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_parts_extends_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -351,7 +418,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The frozen state or 0 on error public int FreezeCalc() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_freeze_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_freeze_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -364,7 +431,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The frozen state or 0 if the object is not frozen or on error. public int ThawCalc() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_thaw_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_thaw_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -373,9 +440,8 @@ private static object CircularDependencyEvtKey = new object(); /// /// See also and . /// (Since EFL 1.22) - /// public void CalcForce() { - Efl.Layout.ICalcNativeInherit.efl_layout_calc_force_ptr.Value.Delegate(this.NativeHandle); + Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_force_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Whether this object updates its size hints automatically. @@ -386,230 +452,361 @@ private static object CircularDependencyEvtKey = new object(); /// Whether or not update the size hints. public bool CalcAutoUpdateHints { get { return GetCalcAutoUpdateHints(); } - set { SetCalcAutoUpdateHints( value); } + set { SetCalcAutoUpdateHints(value); } } private static IntPtr GetEflClassStatic() { return Efl.Layout.ICalcConcrete.efl_layout_calc_interface_get(); } -} -public class ICalcNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Edje); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_layout_calc_auto_update_hints_get_static_delegate == null) - efl_layout_calc_auto_update_hints_get_static_delegate = new efl_layout_calc_auto_update_hints_get_delegate(calc_auto_update_hints_get); - if (methods.FirstOrDefault(m => m.Name == "GetCalcAutoUpdateHints") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_auto_update_hints_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_get_static_delegate)}); - if (efl_layout_calc_auto_update_hints_set_static_delegate == null) - efl_layout_calc_auto_update_hints_set_static_delegate = new efl_layout_calc_auto_update_hints_set_delegate(calc_auto_update_hints_set); - if (methods.FirstOrDefault(m => m.Name == "SetCalcAutoUpdateHints") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_auto_update_hints_set"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_set_static_delegate)}); - if (efl_layout_calc_size_min_static_delegate == null) - efl_layout_calc_size_min_static_delegate = new efl_layout_calc_size_min_delegate(calc_size_min); - if (methods.FirstOrDefault(m => m.Name == "CalcSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_size_min"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_size_min_static_delegate)}); - if (efl_layout_calc_parts_extends_static_delegate == null) - efl_layout_calc_parts_extends_static_delegate = new efl_layout_calc_parts_extends_delegate(calc_parts_extends); - if (methods.FirstOrDefault(m => m.Name == "CalcPartsExtends") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_parts_extends"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_parts_extends_static_delegate)}); - if (efl_layout_calc_freeze_static_delegate == null) - efl_layout_calc_freeze_static_delegate = new efl_layout_calc_freeze_delegate(calc_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeCalc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_freeze_static_delegate)}); - if (efl_layout_calc_thaw_static_delegate == null) - efl_layout_calc_thaw_static_delegate = new efl_layout_calc_thaw_delegate(calc_thaw); - if (methods.FirstOrDefault(m => m.Name == "ThawCalc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_thaw"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_thaw_static_delegate)}); - if (efl_layout_calc_force_static_delegate == null) - efl_layout_calc_force_static_delegate = new efl_layout_calc_force_delegate(calc_force); - if (methods.FirstOrDefault(m => m.Name == "CalcForce") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_force"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_force_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Layout.ICalcConcrete.efl_layout_calc_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Layout.ICalcConcrete.efl_layout_calc_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Edje); + /// 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_layout_calc_auto_update_hints_get_static_delegate == null) + { + efl_layout_calc_auto_update_hints_get_static_delegate = new efl_layout_calc_auto_update_hints_get_delegate(calc_auto_update_hints_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCalcAutoUpdateHints") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_auto_update_hints_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_calc_auto_update_hints_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_layout_calc_auto_update_hints_set_static_delegate == null) + { + efl_layout_calc_auto_update_hints_set_static_delegate = new efl_layout_calc_auto_update_hints_set_delegate(calc_auto_update_hints_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCalcAutoUpdateHints") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_auto_update_hints_set"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_calc_auto_update_hints_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_auto_update_hints_get"); - private static bool calc_auto_update_hints_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_auto_update_hints_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ICalc)wrapper).GetCalcAutoUpdateHints(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_layout_calc_size_min_static_delegate == null) + { + efl_layout_calc_size_min_static_delegate = new efl_layout_calc_size_min_delegate(calc_size_min); + } + + if (methods.FirstOrDefault(m => m.Name == "CalcSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_size_min"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_size_min_static_delegate) }); + } + + if (efl_layout_calc_parts_extends_static_delegate == null) + { + efl_layout_calc_parts_extends_static_delegate = new efl_layout_calc_parts_extends_delegate(calc_parts_extends); + } + + if (methods.FirstOrDefault(m => m.Name == "CalcPartsExtends") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_parts_extends"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_parts_extends_static_delegate) }); + } + + if (efl_layout_calc_freeze_static_delegate == null) + { + efl_layout_calc_freeze_static_delegate = new efl_layout_calc_freeze_delegate(calc_freeze); + } + + if (methods.FirstOrDefault(m => m.Name == "FreezeCalc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_freeze_static_delegate) }); } + + if (efl_layout_calc_thaw_static_delegate == null) + { + efl_layout_calc_thaw_static_delegate = new efl_layout_calc_thaw_delegate(calc_thaw); + } + + if (methods.FirstOrDefault(m => m.Name == "ThawCalc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_thaw"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_thaw_static_delegate) }); + } + + if (efl_layout_calc_force_static_delegate == null) + { + efl_layout_calc_force_static_delegate = new efl_layout_calc_force_delegate(calc_force); + } + + if (methods.FirstOrDefault(m => m.Name == "CalcForce") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_force"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_force_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.Layout.ICalcConcrete.efl_layout_calc_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_calc_auto_update_hints_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_calc_auto_update_hints_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_auto_update_hints_get"); + + private static bool calc_auto_update_hints_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_auto_update_hints_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ICalc)wrapper).GetCalcAutoUpdateHints(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_auto_update_hints_get_delegate efl_layout_calc_auto_update_hints_get_static_delegate; + private static efl_layout_calc_auto_update_hints_get_delegate efl_layout_calc_auto_update_hints_get_static_delegate; - private delegate void efl_layout_calc_auto_update_hints_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool update); + + private delegate void efl_layout_calc_auto_update_hints_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool update); + + public delegate void efl_layout_calc_auto_update_hints_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool update); - public delegate void efl_layout_calc_auto_update_hints_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool update); - public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_auto_update_hints_set"); - private static void calc_auto_update_hints_set(System.IntPtr obj, System.IntPtr pd, bool update) - { - Eina.Log.Debug("function efl_layout_calc_auto_update_hints_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ICalc)wrapper).SetCalcAutoUpdateHints( update); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), update); + public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_auto_update_hints_set"); + + private static void calc_auto_update_hints_set(System.IntPtr obj, System.IntPtr pd, bool update) + { + Eina.Log.Debug("function efl_layout_calc_auto_update_hints_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ICalc)wrapper).SetCalcAutoUpdateHints(update); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), update); + } } - } - private static efl_layout_calc_auto_update_hints_set_delegate efl_layout_calc_auto_update_hints_set_static_delegate; + private static efl_layout_calc_auto_update_hints_set_delegate efl_layout_calc_auto_update_hints_set_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted); + + private delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted); + + public delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct restricted); - public delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct restricted); - public static Efl.Eo.FunctionWrapper efl_layout_calc_size_min_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_size_min"); - private static Eina.Size2D.NativeStruct calc_size_min(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted) - { - Eina.Log.Debug("function efl_layout_calc_size_min was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_restricted = restricted; + public static Efl.Eo.FunctionWrapper efl_layout_calc_size_min_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_size_min"); + + private static Eina.Size2D.NativeStruct calc_size_min(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted) + { + Eina.Log.Debug("function efl_layout_calc_size_min was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_restricted = restricted; Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((ICalc)wrapper).CalcSizeMin( _in_restricted); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((ICalc)wrapper).CalcSizeMin(_in_restricted); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_calc_size_min_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), restricted); + + } + else + { + return efl_layout_calc_size_min_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), restricted); + } } - } - private static efl_layout_calc_size_min_delegate efl_layout_calc_size_min_static_delegate; + private static efl_layout_calc_size_min_delegate efl_layout_calc_size_min_static_delegate; - private delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_parts_extends_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_parts_extends"); + + private static Eina.Rect.NativeStruct calc_parts_extends(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_parts_extends was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((ICalc)wrapper).CalcPartsExtends(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_parts_extends_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_parts_extends"); - private static Eina.Rect.NativeStruct calc_parts_extends(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_parts_extends was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((ICalc)wrapper).CalcPartsExtends(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_layout_calc_parts_extends_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_layout_calc_parts_extends_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_parts_extends_delegate efl_layout_calc_parts_extends_static_delegate; + private static efl_layout_calc_parts_extends_delegate efl_layout_calc_parts_extends_static_delegate; - private delegate int efl_layout_calc_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_layout_calc_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_layout_calc_freeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_freeze"); + + private static int calc_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ICalc)wrapper).FreezeCalc(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_layout_calc_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_freeze"); - private static int calc_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ICalc)wrapper).FreezeCalc(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_layout_calc_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_layout_calc_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_freeze_delegate efl_layout_calc_freeze_static_delegate; + private static efl_layout_calc_freeze_delegate efl_layout_calc_freeze_static_delegate; - private delegate int efl_layout_calc_thaw_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_layout_calc_thaw_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_layout_calc_thaw_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_thaw_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_thaw"); + + private static int calc_thaw(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_thaw was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ICalc)wrapper).ThawCalc(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_layout_calc_thaw_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_thaw_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_thaw"); - private static int calc_thaw(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_thaw was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ICalc)wrapper).ThawCalc(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_layout_calc_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_layout_calc_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_thaw_delegate efl_layout_calc_thaw_static_delegate; + private static efl_layout_calc_thaw_delegate efl_layout_calc_thaw_static_delegate; - private delegate void efl_layout_calc_force_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_layout_calc_force_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_layout_calc_force_api_delegate(System.IntPtr obj); - public delegate void efl_layout_calc_force_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_force_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_force"); - private static void calc_force(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_force was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ICalc)wrapper).CalcForce(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_calc_force_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + public static Efl.Eo.FunctionWrapper efl_layout_calc_force_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_force"); + + private static void calc_force(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_force was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ICalc)wrapper).CalcForce(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_calc_force_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_force_delegate efl_layout_calc_force_static_delegate; + + private static efl_layout_calc_force_delegate efl_layout_calc_force_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_layout_group.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_layout_group.eo.cs index f0a9b6e..3e02b33 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_layout_group.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_layout_group.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Layout { +namespace Efl { + +namespace Layout { + /// APIs representing static data from a group in an edje file. /// (Since EFL 1.22) -[IGroupNativeInherit] +[Efl.Layout.IGroupConcrete.NativeMethods] public interface IGroup : Efl.Eo.IWrapper, IDisposable { @@ -44,12 +48,12 @@ Eina.Size2D GetGroupSizeMax(); /// (Since EFL 1.22) /// The data field's key string /// The data's value string. -System.String GetGroupData( System.String key); +System.String GetGroupData(System.String key); /// Returns true if the part exists in the EDC group. /// (Since EFL 1.22) /// The part name to check. /// true if the part exists, false otherwise. -bool GetPartExist( System.String part); +bool GetPartExist(System.String part); /// Gets the minimum size specified -- as an EDC property -- for a given Edje object /// This function retrieves the obj object's minimum size values, as declared in its EDC group definition. For instance, for an Edje object of minimum size 100x100 pixels: collections { group { name: "a_group"; min: 100 100; } } /// @@ -85,68 +89,103 @@ IGroup { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IGroupConcrete)) - return Efl.Layout.IGroupNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IGroupConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr efl_layout_group_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IGroupConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IGroupConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Gets the minimum size specified -- as an EDC property -- for a given Edje object /// This function retrieves the obj object's minimum size values, as declared in its EDC group definition. For instance, for an Edje object of minimum size 100x100 pixels: collections { group { name: "a_group"; min: 100 100; } } /// @@ -158,7 +197,7 @@ IGroup /// (Since EFL 1.22) /// The minimum size as set in EDC. public Eina.Size2D GetGroupSizeMin() { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_size_min_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_size_min_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -173,7 +212,7 @@ IGroup /// (Since EFL 1.22) /// The maximum size as set in EDC. public Eina.Size2D GetGroupSizeMax() { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_size_max_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_size_max_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -188,8 +227,8 @@ IGroup /// (Since EFL 1.22) /// The data field's key string /// The data's value string. - public System.String GetGroupData( System.String key) { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_data_get_ptr.Value.Delegate(this.NativeHandle, key); + public System.String GetGroupData(System.String key) { + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_data_get_ptr.Value.Delegate(this.NativeHandle,key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -197,8 +236,8 @@ IGroup /// (Since EFL 1.22) /// The part name to check. /// true if the part exists, false otherwise. - public bool GetPartExist( System.String part) { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_part_exist_get_ptr.Value.Delegate(this.NativeHandle, part); + public bool GetPartExist(System.String part) { + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_part_exist_get_ptr.Value.Delegate(this.NativeHandle,part); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -232,138 +271,218 @@ IGroup { return Efl.Layout.IGroupConcrete.efl_layout_group_interface_get(); } -} -public class IGroupNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Edje); - 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_layout_group_size_min_get_static_delegate == null) - efl_layout_group_size_min_get_static_delegate = new efl_layout_group_size_min_get_delegate(group_size_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_min_get_static_delegate)}); - if (efl_layout_group_size_max_get_static_delegate == null) - efl_layout_group_size_max_get_static_delegate = new efl_layout_group_size_max_get_delegate(group_size_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_max_get_static_delegate)}); - if (efl_layout_group_data_get_static_delegate == null) - efl_layout_group_data_get_static_delegate = new efl_layout_group_data_get_delegate(group_data_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_data_get_static_delegate)}); - if (efl_layout_group_part_exist_get_static_delegate == null) - efl_layout_group_part_exist_get_static_delegate = new efl_layout_group_part_exist_get_delegate(part_exist_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartExist") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_part_exist_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_part_exist_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Layout.IGroupConcrete.efl_layout_group_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Layout.IGroupConcrete.efl_layout_group_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Edje); + /// 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_layout_group_size_min_get_static_delegate == null) + { + efl_layout_group_size_min_get_static_delegate = new efl_layout_group_size_min_get_delegate(group_size_min_get); + } - private delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_min_get_static_delegate) }); + } + if (efl_layout_group_size_max_get_static_delegate == null) + { + efl_layout_group_size_max_get_static_delegate = new efl_layout_group_size_max_get_delegate(group_size_max_get); + } - public delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_group_size_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_size_min_get"); - private static Eina.Size2D.NativeStruct group_size_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_group_size_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IGroup)wrapper).GetGroupSizeMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_max_get_static_delegate) }); } - return _ret_var; - } else { - return efl_layout_group_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_layout_group_size_min_get_delegate efl_layout_group_size_min_get_static_delegate; + if (efl_layout_group_data_get_static_delegate == null) + { + efl_layout_group_data_get_static_delegate = new efl_layout_group_data_get_delegate(group_data_get); + } - private delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetGroupData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_data_get_static_delegate) }); + } + if (efl_layout_group_part_exist_get_static_delegate == null) + { + efl_layout_group_part_exist_get_static_delegate = new efl_layout_group_part_exist_get_delegate(part_exist_get); + } - public delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_group_size_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_size_max_get"); - private static Eina.Size2D.NativeStruct group_size_max_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_group_size_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IGroup)wrapper).GetGroupSizeMax(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPartExist") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_part_exist_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_part_exist_get_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.Layout.IGroupConcrete.efl_layout_group_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_group_size_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_size_min_get"); + + private static Eina.Size2D.NativeStruct group_size_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_group_size_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IGroup)wrapper).GetGroupSizeMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_group_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_layout_group_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_group_size_max_get_delegate efl_layout_group_size_max_get_static_delegate; + private static efl_layout_group_size_min_get_delegate efl_layout_group_size_min_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_layout_group_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + private delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_group_size_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_size_max_get"); + + private static Eina.Size2D.NativeStruct group_size_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_group_size_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IGroup)wrapper).GetGroupSizeMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_layout_group_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_layout_group_data_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_data_get"); - private static System.String group_data_get(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_layout_group_data_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IGroup)wrapper).GetGroupData( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_layout_group_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + else + { + return efl_layout_group_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_group_data_get_delegate efl_layout_group_data_get_static_delegate; + private static efl_layout_group_size_max_get_delegate efl_layout_group_size_max_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_group_part_exist_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_layout_group_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_layout_group_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_group_part_exist_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_layout_group_part_exist_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_part_exist_get"); - private static bool part_exist_get(System.IntPtr obj, System.IntPtr pd, System.String part) - { - Eina.Log.Debug("function efl_layout_group_part_exist_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IGroup)wrapper).GetPartExist( part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_layout_group_data_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_data_get"); + + private static System.String group_data_get(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_layout_group_data_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IGroup)wrapper).GetGroupData(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_layout_group_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); } + } + + private static efl_layout_group_data_get_delegate efl_layout_group_data_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_group_part_exist_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_group_part_exist_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + public static Efl.Eo.FunctionWrapper efl_layout_group_part_exist_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_part_exist_get"); + + private static bool part_exist_get(System.IntPtr obj, System.IntPtr pd, System.String part) + { + Eina.Log.Debug("function efl_layout_group_part_exist_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IGroup)wrapper).GetPartExist(part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_group_part_exist_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + + } + else + { + return efl_layout_group_part_exist_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + } } - } - private static efl_layout_group_part_exist_get_delegate efl_layout_group_part_exist_get_static_delegate; + + private static efl_layout_group_part_exist_get_delegate efl_layout_group_part_exist_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_layout_signal.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_layout_signal.eo.cs index 666adaa..61e770c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_layout_signal.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_layout_signal.eo.cs @@ -3,16 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; - -/// /// The object the callback is being triggered from. /// The name component of the signal. /// The source of a signal used as context. -/// -public delegate void EflLayoutSignalCb( Efl.Layout.ISignal kw_object, System.String emission, System.String source); -public delegate void EflLayoutSignalCbInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Layout.ISignal kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); -internal class EflLayoutSignalCbWrapper +public delegate void EflLayoutSignalCb(Efl.Layout.ISignal kw_object, System.String emission, System.String source); +public delegate void EflLayoutSignalCbInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Layout.ISignal kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); +internal class EflLayoutSignalCbWrapper : IDisposable { private EflLayoutSignalCbInternal _cb; @@ -28,23 +26,46 @@ internal class EflLayoutSignalCbWrapper ~EflLayoutSignalCbWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); } - internal void ManagedCb( Efl.Layout.ISignal kw_object, System.String emission, System.String source) + internal void ManagedCb(Efl.Layout.ISignal kw_object,System.String emission,System.String source) { - _cb(_cb_data, kw_object, emission, source); + _cb(_cb_data, kw_object, emission, source); Eina.Error.RaiseIfUnhandledException(); } - internal static void Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Layout.ISignal kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source) + internal static void Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Layout.ISignal kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source) { GCHandle handle = GCHandle.FromIntPtr(cb_data); EflLayoutSignalCb cb = (EflLayoutSignalCb)handle.Target; try { - cb( kw_object, emission, source); + cb(kw_object, emission, source); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); @@ -52,10 +73,14 @@ internal class EflLayoutSignalCbWrapper } } -namespace Efl { namespace Layout { + +namespace Efl { + +namespace Layout { + /// Layouts asynchronous messaging and signaling interface. /// (Since EFL 1.22) -[ISignalNativeInherit] +[Efl.Layout.ISignalConcrete.NativeMethods] public interface ISignal : Efl.Eo.IWrapper, IDisposable { @@ -68,8 +93,7 @@ public interface ISignal : /// (Since EFL 1.22) /// A identification number for the message to be sent /// The message's payload -/// -void MessageSend( int id, Eina.Value msg); +void MessageSend(int id, Eina.Value msg); /// Adds a callback for an arriving Edje signal, emitted by a given Edje object. /// Edje signals are one of the communication interfaces between code and a given Edje object's theme. With signals, one can communicate two string values at a time, which are: - "emission" value: the name of the signal, in general - "source" value: a name for the signal's context, in general /// @@ -91,7 +115,7 @@ void MessageSend( int id, Eina.Value msg); /// The signal's "source" string /// The callback function to be executed when the signal is emitted. /// true in case of success, false in case of error. -bool AddSignalCallback( System.String emission, System.String source, EflLayoutSignalCb func); +bool AddSignalCallback(System.String emission, System.String source, EflLayoutSignalCb func); /// Removes a signal-triggered callback from an object. /// This function removes a callback, previously attached to the emission of a signal, from the object obj. The parameters emission, source and func must match exactly those passed to a previous call to . /// @@ -101,7 +125,7 @@ bool AddSignalCallback( System.String emission, System.String source, EflLayou /// The signal's "source" string /// The callback function to be executed when the signal is emitted. /// true in case of success, false in case of error. -bool DelSignalCallback( System.String emission, System.String source, EflLayoutSignalCb func); +bool DelSignalCallback(System.String emission, System.String source, EflLayoutSignalCb func); /// Sends/emits an Edje signal to this layout. /// This function sends a signal to the object. An Edje program, at the EDC specification level, can respond to a signal by having declared matching "signal" and "source" fields on its block. /// @@ -111,16 +135,14 @@ bool DelSignalCallback( System.String emission, System.String source, EflLayou /// (Since EFL 1.22) /// The signal's "emission" string /// The signal's "source" string -/// -void EmitSignal( System.String emission, System.String source); +void EmitSignal(System.String emission, System.String source); /// Processes an object's messages and signals queue. /// This function goes through the object message queue processing the pending messages for this specific Edje object. Normally they'd be processed only at idle time. /// /// If recurse is true, this function will be called recursively on all subobjects. /// (Since EFL 1.22) /// Whether to process messages on children objects. -/// -void SignalProcess( bool recurse); +void SignalProcess(bool recurse); } /// Layouts asynchronous messaging and signaling interface. /// (Since EFL 1.22) @@ -130,68 +152,103 @@ ISignal { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ISignalConcrete)) - return Efl.Layout.ISignalNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ISignalConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Edje)] internal static extern System.IntPtr efl_layout_signal_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ISignalConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ISignalConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Sends an (Edje) message to a given Edje object /// This function sends an Edje message to obj and to all of its child objects, if it has any (swallowed objects are one kind of child object). Only a few types are supported: - int, - float/double, - string/stringshare, - arrays of int, float, double or strings. /// @@ -201,9 +258,8 @@ ISignal /// (Since EFL 1.22) /// A identification number for the message to be sent /// The message's payload - /// - public void MessageSend( int id, Eina.Value msg) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_message_send_ptr.Value.Delegate(this.NativeHandle, id, msg); + public void MessageSend(int id, Eina.Value msg) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_message_send_ptr.Value.Delegate(this.NativeHandle,id, msg); Eina.Error.RaiseIfUnhandledException(); } /// Adds a callback for an arriving Edje signal, emitted by a given Edje object. @@ -227,9 +283,9 @@ ISignal /// The signal's "source" string /// The callback function to be executed when the signal is emitted. /// true in case of success, false in case of error. - public bool AddSignalCallback( System.String emission, System.String source, EflLayoutSignalCb func) { + public bool AddSignalCallback(System.String emission, System.String source, EflLayoutSignalCb func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.Layout.ISignalNativeInherit.efl_layout_signal_callback_add_ptr.Value.Delegate(this.NativeHandle, emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_callback_add_ptr.Value.Delegate(this.NativeHandle,emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -242,9 +298,9 @@ ISignal /// The signal's "source" string /// The callback function to be executed when the signal is emitted. /// true in case of success, false in case of error. - public bool DelSignalCallback( System.String emission, System.String source, EflLayoutSignalCb func) { + public bool DelSignalCallback(System.String emission, System.String source, EflLayoutSignalCb func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.Layout.ISignalNativeInherit.efl_layout_signal_callback_del_ptr.Value.Delegate(this.NativeHandle, emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_callback_del_ptr.Value.Delegate(this.NativeHandle,emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -257,9 +313,8 @@ ISignal /// (Since EFL 1.22) /// The signal's "emission" string /// The signal's "source" string - /// - public void EmitSignal( System.String emission, System.String source) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_emit_ptr.Value.Delegate(this.NativeHandle, emission, source); + public void EmitSignal(System.String emission, System.String source) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_emit_ptr.Value.Delegate(this.NativeHandle,emission, source); Eina.Error.RaiseIfUnhandledException(); } /// Processes an object's messages and signals queue. @@ -268,175 +323,271 @@ ISignal /// If recurse is true, this function will be called recursively on all subobjects. /// (Since EFL 1.22) /// Whether to process messages on children objects. - /// - public void SignalProcess( bool recurse) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_process_ptr.Value.Delegate(this.NativeHandle, recurse); + public void SignalProcess(bool recurse) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_process_ptr.Value.Delegate(this.NativeHandle,recurse); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Layout.ISignalConcrete.efl_layout_signal_interface_get(); } -} -public class ISignalNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Edje); - 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_layout_signal_message_send_static_delegate == null) - efl_layout_signal_message_send_static_delegate = new efl_layout_signal_message_send_delegate(message_send); - if (methods.FirstOrDefault(m => m.Name == "MessageSend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_message_send"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_message_send_static_delegate)}); - if (efl_layout_signal_callback_add_static_delegate == null) - efl_layout_signal_callback_add_static_delegate = new efl_layout_signal_callback_add_delegate(signal_callback_add); - if (methods.FirstOrDefault(m => m.Name == "AddSignalCallback") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_callback_add"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_add_static_delegate)}); - if (efl_layout_signal_callback_del_static_delegate == null) - efl_layout_signal_callback_del_static_delegate = new efl_layout_signal_callback_del_delegate(signal_callback_del); - if (methods.FirstOrDefault(m => m.Name == "DelSignalCallback") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_callback_del"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_del_static_delegate)}); - if (efl_layout_signal_emit_static_delegate == null) - efl_layout_signal_emit_static_delegate = new efl_layout_signal_emit_delegate(signal_emit); - if (methods.FirstOrDefault(m => m.Name == "EmitSignal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_emit"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_emit_static_delegate)}); - if (efl_layout_signal_process_static_delegate == null) - efl_layout_signal_process_static_delegate = new efl_layout_signal_process_delegate(signal_process); - if (methods.FirstOrDefault(m => m.Name == "SignalProcess") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_process"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_process_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Layout.ISignalConcrete.efl_layout_signal_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Layout.ISignalConcrete.efl_layout_signal_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Edje); + /// 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_layout_signal_message_send_static_delegate == null) + { + efl_layout_signal_message_send_static_delegate = new efl_layout_signal_message_send_delegate(message_send); + } + + if (methods.FirstOrDefault(m => m.Name == "MessageSend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_message_send"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_message_send_static_delegate) }); + } + if (efl_layout_signal_callback_add_static_delegate == null) + { + efl_layout_signal_callback_add_static_delegate = new efl_layout_signal_callback_add_delegate(signal_callback_add); + } - private delegate void efl_layout_signal_message_send_delegate(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg); + if (methods.FirstOrDefault(m => m.Name == "AddSignalCallback") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_callback_add"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_add_static_delegate) }); + } + if (efl_layout_signal_callback_del_static_delegate == null) + { + efl_layout_signal_callback_del_static_delegate = new efl_layout_signal_callback_del_delegate(signal_callback_del); + } - public delegate void efl_layout_signal_message_send_api_delegate(System.IntPtr obj, int id, Eina.ValueNative msg); - public static Efl.Eo.FunctionWrapper efl_layout_signal_message_send_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_message_send"); - private static void message_send(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg) - { - Eina.Log.Debug("function efl_layout_signal_message_send was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ISignal)wrapper).MessageSend( id, msg); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DelSignalCallback") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_callback_del"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_del_static_delegate) }); + } + + if (efl_layout_signal_emit_static_delegate == null) + { + efl_layout_signal_emit_static_delegate = new efl_layout_signal_emit_delegate(signal_emit); } - } else { - efl_layout_signal_message_send_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id, msg); + + if (methods.FirstOrDefault(m => m.Name == "EmitSignal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_emit"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_emit_static_delegate) }); + } + + if (efl_layout_signal_process_static_delegate == null) + { + efl_layout_signal_process_static_delegate = new efl_layout_signal_process_delegate(signal_process); + } + + if (methods.FirstOrDefault(m => m.Name == "SignalProcess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_process"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_process_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.Layout.ISignalConcrete.efl_layout_signal_interface_get(); } - } - private static efl_layout_signal_message_send_delegate efl_layout_signal_message_send_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_signal_callback_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + + private delegate void efl_layout_signal_message_send_delegate(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg); + + public delegate void efl_layout_signal_message_send_api_delegate(System.IntPtr obj, int id, Eina.ValueNative msg); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_signal_callback_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_callback_add"); - private static bool signal_callback_add(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_layout_signal_callback_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); - bool _ret_var = default(bool); - try { - _ret_var = ((ISignal)wrapper).AddSignalCallback( emission, source, func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_layout_signal_message_send_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_message_send"); + + private static void message_send(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg) + { + Eina.Log.Debug("function efl_layout_signal_message_send was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ISignal)wrapper).MessageSend(id, msg); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_message_send_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id, msg); } - return _ret_var; - } else { - return efl_layout_signal_callback_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); } - } - private static efl_layout_signal_callback_add_delegate efl_layout_signal_callback_add_static_delegate; + private static efl_layout_signal_message_send_delegate efl_layout_signal_message_send_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_signal_callback_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_signal_callback_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_signal_callback_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_signal_callback_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_callback_del"); - private static bool signal_callback_del(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_layout_signal_callback_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); + public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_callback_add"); + + private static bool signal_callback_add(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_layout_signal_callback_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); bool _ret_var = default(bool); - try { - _ret_var = ((ISignal)wrapper).DelSignalCallback( emission, source, func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + _ret_var = ((ISignal)wrapper).AddSignalCallback(emission, source, func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + } + else + { + return efl_layout_signal_callback_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + } + } + + private static efl_layout_signal_callback_add_delegate efl_layout_signal_callback_add_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_signal_callback_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_signal_callback_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + + public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_callback_del"); + + private static bool signal_callback_del(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_layout_signal_callback_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); + bool _ret_var = default(bool); + try + { + _ret_var = ((ISignal)wrapper).DelSignalCallback(emission, source, func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_signal_callback_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + + } + else + { + return efl_layout_signal_callback_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + } } - } - private static efl_layout_signal_callback_del_delegate efl_layout_signal_callback_del_static_delegate; + private static efl_layout_signal_callback_del_delegate efl_layout_signal_callback_del_static_delegate; - private delegate void efl_layout_signal_emit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); + + private delegate void efl_layout_signal_emit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); + + public delegate void efl_layout_signal_emit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); - public delegate void efl_layout_signal_emit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); - public static Efl.Eo.FunctionWrapper efl_layout_signal_emit_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_emit"); - private static void signal_emit(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source) - { - Eina.Log.Debug("function efl_layout_signal_emit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ISignal)wrapper).EmitSignal( emission, source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_layout_signal_emit_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_emit"); + + private static void signal_emit(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source) + { + Eina.Log.Debug("function efl_layout_signal_emit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ISignal)wrapper).EmitSignal(emission, source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_emit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source); } - } else { - efl_layout_signal_emit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source); } - } - private static efl_layout_signal_emit_delegate efl_layout_signal_emit_static_delegate; + private static efl_layout_signal_emit_delegate efl_layout_signal_emit_static_delegate; - private delegate void efl_layout_signal_process_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool recurse); + + private delegate void efl_layout_signal_process_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool recurse); + + public delegate void efl_layout_signal_process_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool recurse); - public delegate void efl_layout_signal_process_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool recurse); - public static Efl.Eo.FunctionWrapper efl_layout_signal_process_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_process"); - private static void signal_process(System.IntPtr obj, System.IntPtr pd, bool recurse) - { - Eina.Log.Debug("function efl_layout_signal_process was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ISignal)wrapper).SignalProcess( recurse); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_layout_signal_process_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_process"); + + private static void signal_process(System.IntPtr obj, System.IntPtr pd, bool recurse) + { + Eina.Log.Debug("function efl_layout_signal_process was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ISignal)wrapper).SignalProcess(recurse); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_process_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recurse); } - } else { - efl_layout_signal_process_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recurse); } - } - private static efl_layout_signal_process_delegate efl_layout_signal_process_static_delegate; + + private static efl_layout_signal_process_delegate efl_layout_signal_process_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_libs.cs b/internals/src/EflSharp/EflSharp/efl/efl_libs.cs index 2cffb7b..75507e2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_libs.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_libs.cs @@ -20,7 +20,6 @@ public class Libs { public const string Libdl = "libdl.so.2"; public const string Kernel32 = "kernel32.dll"; - public const string Eext = "libefl-extension.so.0"; public static Efl.Eo.NativeModule EflModule = new Efl.Eo.NativeModule(Efl); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_linear_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_linear_interpolator.eo.cs index 2d421d1..0cde7e0 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_linear_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_linear_interpolator.eo.cs @@ -3,66 +3,88 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl linear interpolator class -[LinearInterpolatorNativeInherit] +[Efl.LinearInterpolator.NativeMethods] public class LinearInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LinearInterpolator)) - return Efl.LinearInterpolatorNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LinearInterpolator)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_linear_interpolator_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LinearInterpolator(Efl.Object parent= null - ) : - base(efl_linear_interpolator_class_get(), typeof(LinearInterpolator), parent) + ) : base(efl_linear_interpolator_class_get(), typeof(LinearInterpolator), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LinearInterpolator(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LinearInterpolator(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LinearInterpolator(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Interpolate the given value. /// Input value mapped from 0.0 to 1.0. /// Output value calculated by interpolating the input value. - virtual public double Interpolate( double progress) { - var _ret_var = Efl.IInterpolatorNativeInherit.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), progress); + virtual public double Interpolate(double progress) { + var _ret_var = Efl.IInterpolatorConcrete.NativeMethods.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),progress); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -70,52 +92,79 @@ public class LinearInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { return Efl.LinearInterpolator.efl_linear_interpolator_class_get(); } -} -public class LinearInterpolatorNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_interpolator_interpolate_static_delegate == null) - efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.LinearInterpolator.efl_linear_interpolator_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.LinearInterpolator.efl_linear_interpolator_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_interpolator_interpolate_static_delegate == null) + { + efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); + } - private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.LinearInterpolator.efl_linear_interpolator_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + + public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); + + public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_interpolator_interpolate"); + + private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) + { + Eina.Log.Debug("function efl_interpolator_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((LinearInterpolator)wrapper).Interpolate(progress); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); - public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_interpolator_interpolate"); - private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) - { - Eina.Log.Debug("function efl_interpolator_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((LinearInterpolator)wrapper).Interpolate( progress); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + + } + else + { + return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + } } - } - private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop.eo.cs index ed374e9..c1cd505 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop.eo.cs @@ -3,8 +3,10 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + ///Event argument wrapper for event . public class LoopArgumentsEvt_Args : EventArgs { ///Actual event payload. @@ -13,33 +15,42 @@ public class LoopArgumentsEvt_Args : EventArgs { /// The Efl Main Loop /// The Efl main loop provides a clean and tiny event loop library with many modules to do lots of convenient things for a programmer, saving time and effort. It's lean and designed to work on anything from embedded systems all the way up to large and powerful multi-cpu workstations. The main loop has a number of primitives you can use. It serializes these and allows for greater responsiveness without the need for threads (or any other concurrency). However you can provide these if you need to. /// (Since EFL 1.22) -[LoopNativeInherit] +[Efl.Loop.NativeMethods] public abstract class Loop : Efl.Task, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Loop)) - return Efl.LoopNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Loop)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_loop_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Loop(Efl.Object parent= null - ) : - base(efl_loop_class_get(), typeof(Loop), parent) + ) : base(efl_loop_class_get(), typeof(Loop), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Loop(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class LoopRealized : Loop { @@ -47,421 +58,504 @@ public abstract class Loop : Efl.Task, Efl.Eo.IWrapper { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Loop(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Loop(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) { - var other = obj as Efl.Object; + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) + { + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object IdleEnterEvtKey = new object(); + /// Event occurs once the main loop enters the idle state. /// (Since EFL 1.22) public event EventHandler IdleEnterEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_EVENT_IDLE_ENTER"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_IdleEnterEvt_delegate)) { - eventHandlers.AddHandler(IdleEnterEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_EVENT_IDLE_ENTER"; - if (RemoveNativeEventHandler(key, this.evt_IdleEnterEvt_delegate)) { - eventHandlers.RemoveHandler(IdleEnterEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event IdleEnterEvt. - public void On_IdleEnterEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[IdleEnterEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_IdleEnterEvt_delegate; - private void on_IdleEnterEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnIdleEnterEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_IdleEnterEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LOOP_EVENT_IDLE_ENTER"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object IdleExitEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Event occurs once the main loop exits the idle state. /// (Since EFL 1.22) public event EventHandler IdleExitEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_EVENT_IDLE_EXIT"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_IdleExitEvt_delegate)) { - eventHandlers.AddHandler(IdleExitEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_EVENT_IDLE_EXIT"; - if (RemoveNativeEventHandler(key, this.evt_IdleExitEvt_delegate)) { - eventHandlers.RemoveHandler(IdleExitEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event IdleExitEvt. - public void On_IdleExitEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[IdleExitEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_IdleExitEvt_delegate; - private void on_IdleExitEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnIdleExitEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_IdleExitEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LOOP_EVENT_IDLE_EXIT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object IdleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Event occurs once the main loop is idle. If you keep listening on this event it may increase the burden on your CPU. /// (Since EFL 1.22) public event EventHandler IdleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_EVENT_IDLE"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_IdleEvt_delegate)) { - eventHandlers.AddHandler(IdleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_EVENT_IDLE"; - if (RemoveNativeEventHandler(key, this.evt_IdleEvt_delegate)) { - eventHandlers.RemoveHandler(IdleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event IdleEvt. - public void On_IdleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[IdleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_IdleEvt_delegate; - private void on_IdleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnIdleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_IdleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LOOP_EVENT_IDLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ArgumentsEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Event happens when args are provided to the loop by args_add(). /// (Since EFL 1.22) public event EventHandler ArgumentsEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.LoopArgumentsEvt_Args args = new Efl.LoopArgumentsEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_EVENT_ARGUMENTS"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_ArgumentsEvt_delegate)) { - eventHandlers.AddHandler(ArgumentsEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_EVENT_ARGUMENTS"; - if (RemoveNativeEventHandler(key, this.evt_ArgumentsEvt_delegate)) { - eventHandlers.RemoveHandler(ArgumentsEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event ArgumentsEvt. - public void On_ArgumentsEvt(Efl.LoopArgumentsEvt_Args e) + public void OnArgumentsEvt(Efl.LoopArgumentsEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ArgumentsEvtKey]; + var key = "_EFL_LOOP_EVENT_ARGUMENTS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ArgumentsEvt_delegate; - private void on_ArgumentsEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.LoopArgumentsEvt_Args args = new Efl.LoopArgumentsEvt_Args(); - args.arg = evt.Info;; - try { - On_ArgumentsEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PollHighEvtKey = new object(); /// Event occurs multiple times per second. The exact tick is undefined and can be adjusted system wide. /// (Since EFL 1.22) public event EventHandler PollHighEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_EVENT_POLL_HIGH"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_PollHighEvt_delegate)) { - eventHandlers.AddHandler(PollHighEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_EVENT_POLL_HIGH"; - if (RemoveNativeEventHandler(key, this.evt_PollHighEvt_delegate)) { - eventHandlers.RemoveHandler(PollHighEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event PollHighEvt. - public void On_PollHighEvt(EventArgs e) + public void OnPollHighEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PollHighEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PollHighEvt_delegate; - private void on_PollHighEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_PollHighEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LOOP_EVENT_POLL_HIGH"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PollMediumEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Event occurs multiple times per minute. The exact tick is undefined and can be adjusted system wide. /// (Since EFL 1.22) public event EventHandler PollMediumEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_EVENT_POLL_MEDIUM"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_PollMediumEvt_delegate)) { - eventHandlers.AddHandler(PollMediumEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_EVENT_POLL_MEDIUM"; - if (RemoveNativeEventHandler(key, this.evt_PollMediumEvt_delegate)) { - eventHandlers.RemoveHandler(PollMediumEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event PollMediumEvt. - public void On_PollMediumEvt(EventArgs e) + public void OnPollMediumEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PollMediumEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PollMediumEvt_delegate; - private void on_PollMediumEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_PollMediumEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LOOP_EVENT_POLL_MEDIUM"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PollLowEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Event occurs multiple times every 15 minutes. The exact tick is undefined and can be adjusted system wide. /// (Since EFL 1.22) public event EventHandler PollLowEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_EVENT_POLL_LOW"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_PollLowEvt_delegate)) { - eventHandlers.AddHandler(PollLowEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_EVENT_POLL_LOW"; - if (RemoveNativeEventHandler(key, this.evt_PollLowEvt_delegate)) { - eventHandlers.RemoveHandler(PollLowEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event PollLowEvt. - public void On_PollLowEvt(EventArgs e) + public void OnPollLowEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PollLowEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PollLowEvt_delegate; - private void on_PollLowEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_PollLowEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LOOP_EVENT_POLL_LOW"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object QuitEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Event occurs when the loop was requested to quit externally e.g. by a ctrl+c signal or a request from a parent loop/thread to have the child exit. /// (Since EFL 1.22) public event EventHandler QuitEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_EVENT_QUIT"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_QuitEvt_delegate)) { - eventHandlers.AddHandler(QuitEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_EVENT_QUIT"; - if (RemoveNativeEventHandler(key, this.evt_QuitEvt_delegate)) { - eventHandlers.RemoveHandler(QuitEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event QuitEvt. - public void On_QuitEvt(EventArgs e) + public void OnQuitEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[QuitEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_QuitEvt_delegate; - private void on_QuitEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_QuitEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LOOP_EVENT_QUIT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_IdleEnterEvt_delegate = new Efl.EventCb(on_IdleEnterEvt_NativeCallback); - evt_IdleExitEvt_delegate = new Efl.EventCb(on_IdleExitEvt_NativeCallback); - evt_IdleEvt_delegate = new Efl.EventCb(on_IdleEvt_NativeCallback); - evt_ArgumentsEvt_delegate = new Efl.EventCb(on_ArgumentsEvt_NativeCallback); - evt_PollHighEvt_delegate = new Efl.EventCb(on_PollHighEvt_NativeCallback); - evt_PollMediumEvt_delegate = new Efl.EventCb(on_PollMediumEvt_NativeCallback); - evt_PollLowEvt_delegate = new Efl.EventCb(on_PollLowEvt_NativeCallback); - evt_QuitEvt_delegate = new Efl.EventCb(on_QuitEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Slow down the loop execution by forcing sleep for a small period of time every time the loop iterates/loops. /// (Since EFL 1.22) /// Time to sleep for each "loop iteration" virtual public double GetThrottle() { - var _ret_var = Efl.LoopNativeInherit.efl_loop_throttle_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Loop.NativeMethods.efl_loop_throttle_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Slow down the loop execution by forcing sleep for a small period of time every time the loop iterates/loops. /// (Since EFL 1.22) /// Time to sleep for each "loop iteration" - /// - virtual public void SetThrottle( double amount) { - Efl.LoopNativeInherit.efl_loop_throttle_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), amount); + virtual public void SetThrottle(double amount) { + Efl.Loop.NativeMethods.efl_loop_throttle_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),amount); Eina.Error.RaiseIfUnhandledException(); } /// This gets the time that the main loop ceased waiting for timouts and/or events to come in or for signals or any other interrupt source. This should be considered a reference point for all time based activity that should calculate its timepoint from the return of ecore_loop_time_get(). Note that this time is meant to be used as relative to other times obtained on this run. If you need absolute time references, use a unix timestamp instead. /// (Since EFL 1.22) /// Time in seconds virtual public double GetTime() { - var _ret_var = Efl.LoopNativeInherit.efl_loop_time_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Loop.NativeMethods.efl_loop_time_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -469,24 +563,22 @@ private static object QuitEvtKey = new object(); /// Note: The time point must match whatever zero time you get from ecore_time_get() and (same 0 point). What this point is is undefined, so unless your source uses the same 0 time, then you may have to adjust and do some guessing. /// (Since EFL 1.22) /// Time in seconds - /// - virtual public void SetTime( double timepoint) { - Efl.LoopNativeInherit.efl_loop_time_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), timepoint); + virtual public void SetTime(double timepoint) { + Efl.Loop.NativeMethods.efl_loop_time_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),timepoint); Eina.Error.RaiseIfUnhandledException(); } /// Runs a single iteration of the main loop to process everything on the queue. /// (Since EFL 1.22) - /// virtual public void Iterate() { - Efl.LoopNativeInherit.efl_loop_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Loop.NativeMethods.efl_loop_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Runs a single iteration of the main loop to process everything on the queue with block/non-blocking status. /// (Since EFL 1.22) /// A flag if the main loop has a possibility of blocking. /// Return from single iteration run - virtual public int IterateMayBlock( int may_block) { - var _ret_var = Efl.LoopNativeInherit.efl_loop_iterate_may_block_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), may_block); + virtual public int IterateMayBlock(int may_block) { + var _ret_var = Efl.Loop.NativeMethods.efl_loop_iterate_may_block_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),may_block); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -494,17 +586,16 @@ private static object QuitEvtKey = new object(); /// (Since EFL 1.22) /// Value set by quit() virtual public Eina.Value Begin() { - var _ret_var = Efl.LoopNativeInherit.efl_loop_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Loop.NativeMethods.efl_loop_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Quits the main loop once all the events currently on the queue have been processed. /// (Since EFL 1.22) /// Returned value by begin() - /// - virtual public void Quit( Eina.Value exit_code) { + virtual public void Quit(Eina.Value exit_code) { var _in_exit_code = exit_code.GetNative(); - Efl.LoopNativeInherit.efl_loop_quit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_exit_code); + Efl.Loop.NativeMethods.efl_loop_quit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_exit_code); Eina.Error.RaiseIfUnhandledException(); } /// A future promise that will be resolved from a clean main loop context as soon as possible. @@ -512,7 +603,7 @@ private static object QuitEvtKey = new object(); /// (Since EFL 1.22) /// The future handle. virtual public Eina.Future Job() { - var _ret_var = Efl.LoopNativeInherit.efl_loop_job_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Loop.NativeMethods.efl_loop_job_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -521,7 +612,7 @@ private static object QuitEvtKey = new object(); /// (Since EFL 1.22) /// The future handle. virtual public Eina.Future Idle() { - var _ret_var = Efl.LoopNativeInherit.efl_loop_idle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Loop.NativeMethods.efl_loop_idle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -529,8 +620,8 @@ private static object QuitEvtKey = new object(); /// (Since EFL 1.22) /// The time from now in second that the main loop will wait before triggering it. /// The future handle. - virtual public Eina.Future Timeout( double time) { - var _ret_var = Efl.LoopNativeInherit.efl_loop_timeout_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), time); + virtual public Eina.Future Timeout(double time) { + var _ret_var = Efl.Loop.NativeMethods.efl_loop_timeout_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),time); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -539,8 +630,8 @@ private static object QuitEvtKey = new object(); /// The class provided by the registered provider. /// The provider for the newly registered class that has to provide that said Efl.Class. /// true if successfully register, false otherwise. - virtual public bool Register( Type klass, Efl.Object provider) { - var _ret_var = Efl.LoopNativeInherit.efl_loop_register_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), klass, provider); + virtual public bool Register(Type klass, Efl.Object provider) { + var _ret_var = Efl.Loop.NativeMethods.efl_loop_register_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),klass, provider); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -549,24 +640,24 @@ private static object QuitEvtKey = new object(); /// The class provided by the provider to unregister for. /// The provider for the registered class to unregister. /// true if successfully unregistered, false otherwise. - virtual public bool Unregister( Type klass, Efl.Object provider) { - var _ret_var = Efl.LoopNativeInherit.efl_loop_unregister_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), klass, provider); + virtual public bool Unregister(Type klass, Efl.Object provider) { + var _ret_var = Efl.Loop.NativeMethods.efl_loop_unregister_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),klass, provider); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - public System.Threading.Tasks.Task JobAsync( System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task JobAsync( System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { Eina.Future future = Job(); return Efl.Eo.Globals.WrapAsync(future, token); } - public System.Threading.Tasks.Task IdleAsync( System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task IdleAsync( System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { Eina.Future future = Idle(); return Efl.Eo.Globals.WrapAsync(future, token); } - public System.Threading.Tasks.Task TimeoutAsync( double time, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task TimeoutAsync(double time, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = Timeout( time); + Eina.Future future = Timeout( time); return Efl.Eo.Globals.WrapAsync(future, token); } /// Slow down the loop execution by forcing sleep for a small period of time every time the loop iterates/loops. @@ -574,414 +665,646 @@ private static object QuitEvtKey = new object(); /// Time to sleep for each "loop iteration" public double Throttle { get { return GetThrottle(); } - set { SetThrottle( value); } + set { SetThrottle(value); } } /// Retrieves the time at which the last loop stopped waiting for timeouts or events. /// (Since EFL 1.22) /// Time in seconds public double Time { get { return GetTime(); } - set { SetTime( value); } + set { SetTime(value); } } private static IntPtr GetEflClassStatic() { return Efl.Loop.efl_loop_class_get(); } -} -public class LoopNativeInherit : Efl.TaskNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_loop_throttle_get_static_delegate == null) - efl_loop_throttle_get_static_delegate = new efl_loop_throttle_get_delegate(throttle_get); - if (methods.FirstOrDefault(m => m.Name == "GetThrottle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_throttle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_throttle_get_static_delegate)}); - if (efl_loop_throttle_set_static_delegate == null) - efl_loop_throttle_set_static_delegate = new efl_loop_throttle_set_delegate(throttle_set); - if (methods.FirstOrDefault(m => m.Name == "SetThrottle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_throttle_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_throttle_set_static_delegate)}); - if (efl_loop_time_get_static_delegate == null) - efl_loop_time_get_static_delegate = new efl_loop_time_get_delegate(time_get); - if (methods.FirstOrDefault(m => m.Name == "GetTime") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_time_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_time_get_static_delegate)}); - if (efl_loop_time_set_static_delegate == null) - efl_loop_time_set_static_delegate = new efl_loop_time_set_delegate(time_set); - if (methods.FirstOrDefault(m => m.Name == "SetTime") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_time_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_time_set_static_delegate)}); - if (efl_loop_iterate_static_delegate == null) - efl_loop_iterate_static_delegate = new efl_loop_iterate_delegate(iterate); - if (methods.FirstOrDefault(m => m.Name == "Iterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_iterate_static_delegate)}); - if (efl_loop_iterate_may_block_static_delegate == null) - efl_loop_iterate_may_block_static_delegate = new efl_loop_iterate_may_block_delegate(iterate_may_block); - if (methods.FirstOrDefault(m => m.Name == "IterateMayBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_iterate_may_block"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_iterate_may_block_static_delegate)}); - if (efl_loop_begin_static_delegate == null) - efl_loop_begin_static_delegate = new efl_loop_begin_delegate(begin); - if (methods.FirstOrDefault(m => m.Name == "Begin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_begin_static_delegate)}); - if (efl_loop_quit_static_delegate == null) - efl_loop_quit_static_delegate = new efl_loop_quit_delegate(quit); - if (methods.FirstOrDefault(m => m.Name == "Quit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_quit"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_quit_static_delegate)}); - if (efl_loop_job_static_delegate == null) - efl_loop_job_static_delegate = new efl_loop_job_delegate(job); - if (methods.FirstOrDefault(m => m.Name == "Job") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_job"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_job_static_delegate)}); - if (efl_loop_idle_static_delegate == null) - efl_loop_idle_static_delegate = new efl_loop_idle_delegate(idle); - if (methods.FirstOrDefault(m => m.Name == "Idle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_idle"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_idle_static_delegate)}); - if (efl_loop_timeout_static_delegate == null) - efl_loop_timeout_static_delegate = new efl_loop_timeout_delegate(timeout); - if (methods.FirstOrDefault(m => m.Name == "Timeout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_timeout"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timeout_static_delegate)}); - if (efl_loop_register_static_delegate == null) - efl_loop_register_static_delegate = new efl_loop_register_delegate(register); - if (methods.FirstOrDefault(m => m.Name == "Register") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_register"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_register_static_delegate)}); - if (efl_loop_unregister_static_delegate == null) - efl_loop_unregister_static_delegate = new efl_loop_unregister_delegate(unregister); - if (methods.FirstOrDefault(m => m.Name == "Unregister") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_unregister_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Loop.efl_loop_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Task.NativeMethods { - return Efl.Loop.efl_loop_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_loop_throttle_get_static_delegate == null) + { + efl_loop_throttle_get_static_delegate = new efl_loop_throttle_get_delegate(throttle_get); + } - private delegate double efl_loop_throttle_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetThrottle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_throttle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_throttle_get_static_delegate) }); + } + if (efl_loop_throttle_set_static_delegate == null) + { + efl_loop_throttle_set_static_delegate = new efl_loop_throttle_set_delegate(throttle_set); + } - public delegate double efl_loop_throttle_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_throttle_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_throttle_get"); - private static double throttle_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_throttle_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Loop)wrapper).GetThrottle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetThrottle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_throttle_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_throttle_set_static_delegate) }); } - return _ret_var; - } else { - return efl_loop_throttle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_loop_time_get_static_delegate == null) + { + efl_loop_time_get_static_delegate = new efl_loop_time_get_delegate(time_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTime") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_time_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_time_get_static_delegate) }); + } + + if (efl_loop_time_set_static_delegate == null) + { + efl_loop_time_set_static_delegate = new efl_loop_time_set_delegate(time_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTime") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_time_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_time_set_static_delegate) }); + } + + if (efl_loop_iterate_static_delegate == null) + { + efl_loop_iterate_static_delegate = new efl_loop_iterate_delegate(iterate); + } + + if (methods.FirstOrDefault(m => m.Name == "Iterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_iterate_static_delegate) }); + } + + if (efl_loop_iterate_may_block_static_delegate == null) + { + efl_loop_iterate_may_block_static_delegate = new efl_loop_iterate_may_block_delegate(iterate_may_block); + } + + if (methods.FirstOrDefault(m => m.Name == "IterateMayBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_iterate_may_block"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_iterate_may_block_static_delegate) }); + } + + if (efl_loop_begin_static_delegate == null) + { + efl_loop_begin_static_delegate = new efl_loop_begin_delegate(begin); + } + + if (methods.FirstOrDefault(m => m.Name == "Begin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_begin_static_delegate) }); + } + + if (efl_loop_quit_static_delegate == null) + { + efl_loop_quit_static_delegate = new efl_loop_quit_delegate(quit); + } + + if (methods.FirstOrDefault(m => m.Name == "Quit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_quit"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_quit_static_delegate) }); + } + + if (efl_loop_job_static_delegate == null) + { + efl_loop_job_static_delegate = new efl_loop_job_delegate(job); + } + + if (methods.FirstOrDefault(m => m.Name == "Job") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_job"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_job_static_delegate) }); + } + + if (efl_loop_idle_static_delegate == null) + { + efl_loop_idle_static_delegate = new efl_loop_idle_delegate(idle); + } + + if (methods.FirstOrDefault(m => m.Name == "Idle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_idle"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_idle_static_delegate) }); + } + + if (efl_loop_timeout_static_delegate == null) + { + efl_loop_timeout_static_delegate = new efl_loop_timeout_delegate(timeout); + } + + if (methods.FirstOrDefault(m => m.Name == "Timeout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_timeout"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timeout_static_delegate) }); + } + + if (efl_loop_register_static_delegate == null) + { + efl_loop_register_static_delegate = new efl_loop_register_delegate(register); + } + + if (methods.FirstOrDefault(m => m.Name == "Register") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_register"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_register_static_delegate) }); + } + + if (efl_loop_unregister_static_delegate == null) + { + efl_loop_unregister_static_delegate = new efl_loop_unregister_delegate(unregister); + } + + if (methods.FirstOrDefault(m => m.Name == "Unregister") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_unregister_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Loop.efl_loop_class_get(); } - } - private static efl_loop_throttle_get_delegate efl_loop_throttle_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_loop_throttle_set_delegate(System.IntPtr obj, System.IntPtr pd, double amount); + + private delegate double efl_loop_throttle_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_loop_throttle_get_api_delegate(System.IntPtr obj); - public delegate void efl_loop_throttle_set_api_delegate(System.IntPtr obj, double amount); - public static Efl.Eo.FunctionWrapper efl_loop_throttle_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_throttle_set"); - private static void throttle_set(System.IntPtr obj, System.IntPtr pd, double amount) - { - Eina.Log.Debug("function efl_loop_throttle_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Loop)wrapper).SetThrottle( amount); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_loop_throttle_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), amount); + public static Efl.Eo.FunctionWrapper efl_loop_throttle_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_throttle_get"); + + private static double throttle_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_throttle_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Loop)wrapper).GetThrottle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_loop_throttle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_throttle_set_delegate efl_loop_throttle_set_static_delegate; + private static efl_loop_throttle_get_delegate efl_loop_throttle_get_static_delegate; - private delegate double efl_loop_time_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_loop_throttle_set_delegate(System.IntPtr obj, System.IntPtr pd, double amount); + + public delegate void efl_loop_throttle_set_api_delegate(System.IntPtr obj, double amount); - public delegate double efl_loop_time_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_time_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_time_get"); - private static double time_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_time_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Loop)wrapper).GetTime(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_throttle_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_throttle_set"); + + private static void throttle_set(System.IntPtr obj, System.IntPtr pd, double amount) + { + Eina.Log.Debug("function efl_loop_throttle_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Loop)wrapper).SetThrottle(amount); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_throttle_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), amount); } - return _ret_var; - } else { - return efl_loop_time_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_loop_time_get_delegate efl_loop_time_get_static_delegate; + private static efl_loop_throttle_set_delegate efl_loop_throttle_set_static_delegate; - private delegate void efl_loop_time_set_delegate(System.IntPtr obj, System.IntPtr pd, double timepoint); + + private delegate double efl_loop_time_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_loop_time_get_api_delegate(System.IntPtr obj); - public delegate void efl_loop_time_set_api_delegate(System.IntPtr obj, double timepoint); - public static Efl.Eo.FunctionWrapper efl_loop_time_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_time_set"); - private static void time_set(System.IntPtr obj, System.IntPtr pd, double timepoint) - { - Eina.Log.Debug("function efl_loop_time_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Loop)wrapper).SetTime( timepoint); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_loop_time_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), timepoint); + public static Efl.Eo.FunctionWrapper efl_loop_time_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_time_get"); + + private static double time_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_time_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Loop)wrapper).GetTime(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_loop_time_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_time_set_delegate efl_loop_time_set_static_delegate; + private static efl_loop_time_get_delegate efl_loop_time_get_static_delegate; - private delegate void efl_loop_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_loop_time_set_delegate(System.IntPtr obj, System.IntPtr pd, double timepoint); + + public delegate void efl_loop_time_set_api_delegate(System.IntPtr obj, double timepoint); + + public static Efl.Eo.FunctionWrapper efl_loop_time_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_time_set"); + + private static void time_set(System.IntPtr obj, System.IntPtr pd, double timepoint) + { + Eina.Log.Debug("function efl_loop_time_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Loop)wrapper).SetTime(timepoint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_loop_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_iterate"); - private static void iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Loop)wrapper).Iterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_loop_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_loop_time_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), timepoint); + } } - } - private static efl_loop_iterate_delegate efl_loop_iterate_static_delegate; + private static efl_loop_time_set_delegate efl_loop_time_set_static_delegate; - private delegate int efl_loop_iterate_may_block_delegate(System.IntPtr obj, System.IntPtr pd, int may_block); + + private delegate void efl_loop_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_loop_iterate_api_delegate(System.IntPtr obj); - public delegate int efl_loop_iterate_may_block_api_delegate(System.IntPtr obj, int may_block); - public static Efl.Eo.FunctionWrapper efl_loop_iterate_may_block_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_iterate_may_block"); - private static int iterate_may_block(System.IntPtr obj, System.IntPtr pd, int may_block) - { - Eina.Log.Debug("function efl_loop_iterate_may_block was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Loop)wrapper).IterateMayBlock( may_block); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_iterate"); + + private static void iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Loop)wrapper).Iterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_loop_iterate_may_block_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), may_block); } - } - private static efl_loop_iterate_may_block_delegate efl_loop_iterate_may_block_static_delegate; + private static efl_loop_iterate_delegate efl_loop_iterate_static_delegate; + + + private delegate int efl_loop_iterate_may_block_delegate(System.IntPtr obj, System.IntPtr pd, int may_block); + + + public delegate int efl_loop_iterate_may_block_api_delegate(System.IntPtr obj, int may_block); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] private delegate Eina.Value efl_loop_begin_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_loop_iterate_may_block_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_iterate_may_block"); + private static int iterate_may_block(System.IntPtr obj, System.IntPtr pd, int may_block) + { + Eina.Log.Debug("function efl_loop_iterate_may_block was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Loop)wrapper).IterateMayBlock(may_block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] public delegate Eina.Value efl_loop_begin_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_begin_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_begin"); - private static Eina.Value begin(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_begin was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Value _ret_var = default(Eina.Value); - try { - _ret_var = ((Loop)wrapper).Begin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + return _ret_var; + + } + else + { + return efl_loop_iterate_may_block_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), may_block); } + } + + private static efl_loop_iterate_may_block_delegate efl_loop_iterate_may_block_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + private delegate Eina.Value efl_loop_begin_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + public delegate Eina.Value efl_loop_begin_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_begin"); + + private static Eina.Value begin(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_begin was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = ((Loop)wrapper).Begin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_loop_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_loop_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_begin_delegate efl_loop_begin_static_delegate; + private static efl_loop_begin_delegate efl_loop_begin_static_delegate; - private delegate void efl_loop_quit_delegate(System.IntPtr obj, System.IntPtr pd, Eina.ValueNative exit_code); + + private delegate void efl_loop_quit_delegate(System.IntPtr obj, System.IntPtr pd, Eina.ValueNative exit_code); + + public delegate void efl_loop_quit_api_delegate(System.IntPtr obj, Eina.ValueNative exit_code); - public delegate void efl_loop_quit_api_delegate(System.IntPtr obj, Eina.ValueNative exit_code); - public static Efl.Eo.FunctionWrapper efl_loop_quit_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_quit"); - private static void quit(System.IntPtr obj, System.IntPtr pd, Eina.ValueNative exit_code) - { - Eina.Log.Debug("function efl_loop_quit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_exit_code = new Eina.Value(exit_code); + public static Efl.Eo.FunctionWrapper efl_loop_quit_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_quit"); + + private static void quit(System.IntPtr obj, System.IntPtr pd, Eina.ValueNative exit_code) + { + Eina.Log.Debug("function efl_loop_quit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_exit_code = new Eina.Value(exit_code); - try { - ((Loop)wrapper).Quit( _in_exit_code); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_loop_quit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), exit_code); + try + { + ((Loop)wrapper).Quit(_in_exit_code); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_quit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), exit_code); + } } - } - private static efl_loop_quit_delegate efl_loop_quit_static_delegate; + private static efl_loop_quit_delegate efl_loop_quit_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_loop_job_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_loop_job_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_loop_job_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_job_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_job"); + + private static Eina.Future job(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_job was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((Loop)wrapper).Job(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_loop_job_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_job_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_job"); - private static Eina.Future job(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_job was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((Loop)wrapper).Job(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_loop_job_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_loop_job_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_job_delegate efl_loop_job_static_delegate; + private static efl_loop_job_delegate efl_loop_job_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_loop_idle_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_loop_idle_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_loop_idle_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_idle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_idle"); + + private static Eina.Future idle(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_idle was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((Loop)wrapper).Idle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_loop_idle_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_idle_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_idle"); - private static Eina.Future idle(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_idle was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((Loop)wrapper).Idle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_loop_idle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_loop_idle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_idle_delegate efl_loop_idle_static_delegate; + private static efl_loop_idle_delegate efl_loop_idle_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_loop_timeout_delegate(System.IntPtr obj, System.IntPtr pd, double time); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_loop_timeout_delegate(System.IntPtr obj, System.IntPtr pd, double time); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_loop_timeout_api_delegate(System.IntPtr obj, double time); + + public static Efl.Eo.FunctionWrapper efl_loop_timeout_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_timeout"); + + private static Eina.Future timeout(System.IntPtr obj, System.IntPtr pd, double time) + { + Eina.Log.Debug("function efl_loop_timeout was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((Loop)wrapper).Timeout(time); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_loop_timeout_api_delegate(System.IntPtr obj, double time); - public static Efl.Eo.FunctionWrapper efl_loop_timeout_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_timeout"); - private static Eina.Future timeout(System.IntPtr obj, System.IntPtr pd, double time) - { - Eina.Log.Debug("function efl_loop_timeout was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((Loop)wrapper).Timeout( time); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_loop_timeout_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), time); + + } + else + { + return efl_loop_timeout_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), time); + } } - } - private static efl_loop_timeout_delegate efl_loop_timeout_static_delegate; + private static efl_loop_timeout_delegate efl_loop_timeout_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_loop_register_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object provider); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_loop_register_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_loop_register_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); + + public static Efl.Eo.FunctionWrapper efl_loop_register_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_register"); + + private static bool register(System.IntPtr obj, System.IntPtr pd, Type klass, Efl.Object provider) + { + Eina.Log.Debug("function efl_loop_register was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Loop)wrapper).Register(klass, provider); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_loop_register_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object provider); - public static Efl.Eo.FunctionWrapper efl_loop_register_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_register"); - private static bool register(System.IntPtr obj, System.IntPtr pd, Type klass, Efl.Object provider) - { - Eina.Log.Debug("function efl_loop_register was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Loop)wrapper).Register( klass, provider); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_loop_register_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, provider); + + } + else + { + return efl_loop_register_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, provider); + } } - } - private static efl_loop_register_delegate efl_loop_register_static_delegate; + private static efl_loop_register_delegate efl_loop_register_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_loop_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object provider); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_loop_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_loop_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); + + public static Efl.Eo.FunctionWrapper efl_loop_unregister_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_unregister"); + + private static bool unregister(System.IntPtr obj, System.IntPtr pd, Type klass, Efl.Object provider) + { + Eina.Log.Debug("function efl_loop_unregister was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Loop)wrapper).Unregister(klass, provider); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_loop_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object provider); - public static Efl.Eo.FunctionWrapper efl_loop_unregister_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_unregister"); - private static bool unregister(System.IntPtr obj, System.IntPtr pd, Type klass, Efl.Object provider) - { - Eina.Log.Debug("function efl_loop_unregister was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Loop)wrapper).Unregister( klass, provider); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_loop_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, provider); + + } + else + { + return efl_loop_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, provider); + } } - } - private static efl_loop_unregister_delegate efl_loop_unregister_static_delegate; + + private static efl_loop_unregister_delegate efl_loop_unregister_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} -namespace Efl { + +namespace Efl { + /// EFL loop arguments data structure /// (Since EFL 1.22) [StructLayout(LayoutKind.Sequential)] @@ -993,8 +1316,8 @@ public struct LoopArguments public bool Initialization; ///Constructor for LoopArguments. public LoopArguments( - Eina.Array Argv=default(Eina.Array), - bool Initialization=default(bool) ) + Eina.Array Argv = default(Eina.Array), + bool Initialization = default(bool) ) { this.Argv = Argv; this.Initialization = Initialization; @@ -1036,4 +1359,5 @@ public struct LoopArguments } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_consumer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_consumer.eo.cs index e7b205e..dd2fc85 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_consumer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_consumer.eo.cs @@ -3,37 +3,48 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// An is a class which requires one of the parents to provide an interface when performing . It will enforce this by only allowing parents which provide such an interface or NULL. /// (Since EFL 1.22) -[LoopConsumerNativeInherit] +[Efl.LoopConsumer.NativeMethods] public abstract class LoopConsumer : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LoopConsumer)) - return Efl.LoopConsumerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LoopConsumer)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_loop_consumer_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LoopConsumer(Efl.Object parent= null - ) : - base(efl_loop_consumer_class_get(), typeof(LoopConsumer), parent) + ) : base(efl_loop_consumer_class_get(), typeof(LoopConsumer), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LoopConsumer(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class LoopConsumerRealized : LoopConsumer { @@ -41,36 +52,47 @@ public abstract class LoopConsumer : Efl.Object, Efl.Eo.IWrapper { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LoopConsumer(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LoopConsumer(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Gets a handle to the loop. /// (Since EFL 1.22) /// Efl loop virtual public Efl.Loop GetLoop() { - var _ret_var = Efl.LoopConsumerNativeInherit.efl_loop_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopConsumer.NativeMethods.efl_loop_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -82,9 +104,9 @@ public abstract class LoopConsumer : Efl.Object, Efl.Eo.IWrapper /// The value to be delivered. /// Note that the value contents must survive this function scope, that is, do not use stack allocated blobs, arrays, structures or types that keep references to memory you give. Values will be automatically cleaned up using @ref eina_value_flush() once they are unused (no more future or futures returned a new value) /// The future or NULL on error. - virtual public Eina.Future FutureResolved( Eina.Value result) { + virtual public Eina.Future FutureResolved(Eina.Value result) { var _in_result = result.GetNative(); - var _ret_var = Efl.LoopConsumerNativeInherit.efl_loop_future_resolved_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_result); + var _ret_var = Efl.LoopConsumer.NativeMethods.efl_loop_future_resolved_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_result); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -95,8 +117,8 @@ public abstract class LoopConsumer : Efl.Object, Efl.Eo.IWrapper /// (Since EFL 1.22) /// An Eina_Error value /// The future or NULL on error. - virtual public Eina.Future FutureRejected( Eina.Error error) { - var _ret_var = Efl.LoopConsumerNativeInherit.efl_loop_future_rejected_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), error); + virtual public Eina.Future FutureRejected(Eina.Error error) { + var _ret_var = Efl.LoopConsumer.NativeMethods.efl_loop_future_rejected_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),error); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -105,18 +127,18 @@ public abstract class LoopConsumer : Efl.Object, Efl.Eo.IWrapper /// (Since EFL 1.22) /// The new promise. virtual public Eina.Promise NewPromise() { - var _ret_var = Efl.LoopConsumerNativeInherit.efl_loop_promise_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopConsumer.NativeMethods.efl_loop_promise_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - public System.Threading.Tasks.Task FutureResolvedAsync( Eina.Value result, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task FutureResolvedAsync(Eina.Value result, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = FutureResolved( result); + Eina.Future future = FutureResolved( result); return Efl.Eo.Globals.WrapAsync(future, token); } - public System.Threading.Tasks.Task FutureRejectedAsync( Eina.Error error, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task FutureRejectedAsync(Eina.Error error, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = FutureRejected( error); + Eina.Future future = FutureRejected( error); return Efl.Eo.Globals.WrapAsync(future, token); } /// The loop to which this object belongs to. @@ -129,140 +151,218 @@ public abstract class LoopConsumer : Efl.Object, Efl.Eo.IWrapper { return Efl.LoopConsumer.efl_loop_consumer_class_get(); } -} -public class LoopConsumerNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_loop_get_static_delegate == null) - efl_loop_get_static_delegate = new efl_loop_get_delegate(loop_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_get_static_delegate)}); - if (efl_loop_future_resolved_static_delegate == null) - efl_loop_future_resolved_static_delegate = new efl_loop_future_resolved_delegate(future_resolved); - if (methods.FirstOrDefault(m => m.Name == "FutureResolved") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_future_resolved"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_future_resolved_static_delegate)}); - if (efl_loop_future_rejected_static_delegate == null) - efl_loop_future_rejected_static_delegate = new efl_loop_future_rejected_delegate(future_rejected); - if (methods.FirstOrDefault(m => m.Name == "FutureRejected") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_future_rejected"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_future_rejected_static_delegate)}); - if (efl_loop_promise_new_static_delegate == null) - efl_loop_promise_new_static_delegate = new efl_loop_promise_new_delegate(promise_new); - if (methods.FirstOrDefault(m => m.Name == "NewPromise") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_promise_new"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_promise_new_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.LoopConsumer.efl_loop_consumer_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.LoopConsumer.efl_loop_consumer_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_loop_get_static_delegate == null) + { + efl_loop_get_static_delegate = new efl_loop_get_delegate(loop_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Loop efl_loop_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_loop_future_resolved_static_delegate == null) + { + efl_loop_future_resolved_static_delegate = new efl_loop_future_resolved_delegate(future_resolved); + } + if (methods.FirstOrDefault(m => m.Name == "FutureResolved") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_future_resolved"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_future_resolved_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Loop efl_loop_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_get"); - private static Efl.Loop loop_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Loop _ret_var = default(Efl.Loop); - try { - _ret_var = ((LoopConsumer)wrapper).GetLoop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_loop_future_rejected_static_delegate == null) + { + efl_loop_future_rejected_static_delegate = new efl_loop_future_rejected_delegate(future_rejected); } + + if (methods.FirstOrDefault(m => m.Name == "FutureRejected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_future_rejected"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_future_rejected_static_delegate) }); + } + + if (efl_loop_promise_new_static_delegate == null) + { + efl_loop_promise_new_static_delegate = new efl_loop_promise_new_delegate(promise_new); + } + + if (methods.FirstOrDefault(m => m.Name == "NewPromise") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_promise_new"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_promise_new_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.LoopConsumer.efl_loop_consumer_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Loop efl_loop_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Loop efl_loop_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_get"); + + private static Efl.Loop loop_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Loop _ret_var = default(Efl.Loop); + try + { + _ret_var = ((LoopConsumer)wrapper).GetLoop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_loop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_loop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_get_delegate efl_loop_get_static_delegate; + private static efl_loop_get_delegate efl_loop_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_loop_future_resolved_delegate(System.IntPtr obj, System.IntPtr pd, Eina.ValueNative result); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_loop_future_resolved_delegate(System.IntPtr obj, System.IntPtr pd, Eina.ValueNative result); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_loop_future_resolved_api_delegate(System.IntPtr obj, Eina.ValueNative result); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_loop_future_resolved_api_delegate(System.IntPtr obj, Eina.ValueNative result); - public static Efl.Eo.FunctionWrapper efl_loop_future_resolved_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_future_resolved"); - private static Eina.Future future_resolved(System.IntPtr obj, System.IntPtr pd, Eina.ValueNative result) - { - Eina.Log.Debug("function efl_loop_future_resolved was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_result = new Eina.Value(result); + public static Efl.Eo.FunctionWrapper efl_loop_future_resolved_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_future_resolved"); + + private static Eina.Future future_resolved(System.IntPtr obj, System.IntPtr pd, Eina.ValueNative result) + { + Eina.Log.Debug("function efl_loop_future_resolved was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_result = new Eina.Value(result); Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((LoopConsumer)wrapper).FutureResolved( _in_result); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((LoopConsumer)wrapper).FutureResolved(_in_result); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_loop_future_resolved_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), result); + + } + else + { + return efl_loop_future_resolved_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), result); + } } - } - private static efl_loop_future_resolved_delegate efl_loop_future_resolved_static_delegate; + private static efl_loop_future_resolved_delegate efl_loop_future_resolved_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_loop_future_rejected_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Error error); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_loop_future_rejected_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Error error); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_loop_future_rejected_api_delegate(System.IntPtr obj, Eina.Error error); + + public static Efl.Eo.FunctionWrapper efl_loop_future_rejected_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_future_rejected"); + + private static Eina.Future future_rejected(System.IntPtr obj, System.IntPtr pd, Eina.Error error) + { + Eina.Log.Debug("function efl_loop_future_rejected was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((LoopConsumer)wrapper).FutureRejected(error); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_loop_future_rejected_api_delegate(System.IntPtr obj, Eina.Error error); - public static Efl.Eo.FunctionWrapper efl_loop_future_rejected_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_future_rejected"); - private static Eina.Future future_rejected(System.IntPtr obj, System.IntPtr pd, Eina.Error error) - { - Eina.Log.Debug("function efl_loop_future_rejected was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((LoopConsumer)wrapper).FutureRejected( error); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_loop_future_rejected_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), error); + + } + else + { + return efl_loop_future_rejected_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), error); + } } - } - private static efl_loop_future_rejected_delegate efl_loop_future_rejected_static_delegate; + private static efl_loop_future_rejected_delegate efl_loop_future_rejected_static_delegate; - private delegate Eina.Promise efl_loop_promise_new_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Promise efl_loop_promise_new_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Promise efl_loop_promise_new_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_promise_new_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_promise_new"); + + private static Eina.Promise promise_new(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_promise_new was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Promise _ret_var = default(Eina.Promise); + try + { + _ret_var = ((LoopConsumer)wrapper).NewPromise(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Promise efl_loop_promise_new_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_promise_new_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_promise_new"); - private static Eina.Promise promise_new(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_promise_new was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Promise _ret_var = default(Eina.Promise); - try { - _ret_var = ((LoopConsumer)wrapper).NewPromise(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_loop_promise_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_loop_promise_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_promise_new_delegate efl_loop_promise_new_static_delegate; + + private static efl_loop_promise_new_delegate efl_loop_promise_new_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_fd.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_fd.eo.cs index 84f3719..103f819 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_fd.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_fd.eo.cs @@ -3,372 +3,494 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Fds are objects that watch the activity on a given file descriptor. This file descriptor can be a network, a file, provided by a library. /// The object will trigger relevant events depending on what's happening. -[LoopFdNativeInherit] +[Efl.LoopFd.NativeMethods] public class LoopFd : Efl.LoopConsumer, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LoopFd)) - return Efl.LoopFdNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LoopFd)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_loop_fd_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LoopFd(Efl.Object parent= null - ) : - base(efl_loop_fd_class_get(), typeof(LoopFd), parent) + ) : base(efl_loop_fd_class_get(), typeof(LoopFd), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LoopFd(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LoopFd(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LoopFd(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ReadEvtKey = new object(); + /// Called when a read happened on the file descriptor public event EventHandler ReadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_FD_EVENT_READ"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_ReadEvt_delegate)) { - eventHandlers.AddHandler(ReadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_FD_EVENT_READ"; - if (RemoveNativeEventHandler(key, this.evt_ReadEvt_delegate)) { - eventHandlers.RemoveHandler(ReadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event ReadEvt. - public void On_ReadEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ReadEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ReadEvt_delegate; - private void on_ReadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnReadEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ReadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LOOP_FD_EVENT_READ"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WriteEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when a write happened on the file descriptor public event EventHandler WriteEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_FD_EVENT_WRITE"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_WriteEvt_delegate)) { - eventHandlers.AddHandler(WriteEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_FD_EVENT_WRITE"; - if (RemoveNativeEventHandler(key, this.evt_WriteEvt_delegate)) { - eventHandlers.RemoveHandler(WriteEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event WriteEvt. - public void On_WriteEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WriteEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WriteEvt_delegate; - private void on_WriteEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnWriteEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_WriteEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LOOP_FD_EVENT_WRITE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ErrorEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when a error occurred on the file descriptor public event EventHandler ErrorEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_FD_EVENT_ERROR"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_ErrorEvt_delegate)) { - eventHandlers.AddHandler(ErrorEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_FD_EVENT_ERROR"; - if (RemoveNativeEventHandler(key, this.evt_ErrorEvt_delegate)) { - eventHandlers.RemoveHandler(ErrorEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event ErrorEvt. - public void On_ErrorEvt(EventArgs e) + public void OnErrorEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ErrorEvtKey]; + var key = "_EFL_LOOP_FD_EVENT_ERROR"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ErrorEvt_delegate; - private void on_ErrorEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ErrorEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ReadEvt_delegate = new Efl.EventCb(on_ReadEvt_NativeCallback); - evt_WriteEvt_delegate = new Efl.EventCb(on_WriteEvt_NativeCallback); - evt_ErrorEvt_delegate = new Efl.EventCb(on_ErrorEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Defines which file descriptor to watch. If it is a file, use file_fd variant. /// The file descriptor. virtual public int GetFd() { - var _ret_var = Efl.LoopFdNativeInherit.efl_loop_fd_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopFd.NativeMethods.efl_loop_fd_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Defines the fd to watch. /// The file descriptor. - /// - virtual public void SetFd( int fd) { - Efl.LoopFdNativeInherit.efl_loop_fd_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fd); + virtual public void SetFd(int fd) { + Efl.LoopFd.NativeMethods.efl_loop_fd_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fd); Eina.Error.RaiseIfUnhandledException(); } /// Defines which file descriptor to watch when watching a file. /// The file descriptor. virtual public int GetFdFile() { - var _ret_var = Efl.LoopFdNativeInherit.efl_loop_fd_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopFd.NativeMethods.efl_loop_fd_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Defines the fd to watch on. /// The file descriptor. - /// - virtual public void SetFdFile( int fd) { - Efl.LoopFdNativeInherit.efl_loop_fd_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fd); + virtual public void SetFdFile(int fd) { + Efl.LoopFd.NativeMethods.efl_loop_fd_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fd); Eina.Error.RaiseIfUnhandledException(); } /// Defines which file descriptor to watch. If it is a file, use file_fd variant. /// The file descriptor. public int Fd { get { return GetFd(); } - set { SetFd( value); } + set { SetFd(value); } } /// Defines which file descriptor to watch when watching a file. /// The file descriptor. public int FdFile { get { return GetFdFile(); } - set { SetFdFile( value); } + set { SetFdFile(value); } } private static IntPtr GetEflClassStatic() { return Efl.LoopFd.efl_loop_fd_class_get(); } -} -public class LoopFdNativeInherit : Efl.LoopConsumerNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_loop_fd_get_static_delegate == null) - efl_loop_fd_get_static_delegate = new efl_loop_fd_get_delegate(fd_get); - if (methods.FirstOrDefault(m => m.Name == "GetFd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_fd_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_fd_get_static_delegate)}); - if (efl_loop_fd_set_static_delegate == null) - efl_loop_fd_set_static_delegate = new efl_loop_fd_set_delegate(fd_set); - if (methods.FirstOrDefault(m => m.Name == "SetFd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_fd_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_fd_set_static_delegate)}); - if (efl_loop_fd_file_get_static_delegate == null) - efl_loop_fd_file_get_static_delegate = new efl_loop_fd_file_get_delegate(fd_file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFdFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_fd_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_fd_file_get_static_delegate)}); - if (efl_loop_fd_file_set_static_delegate == null) - efl_loop_fd_file_set_static_delegate = new efl_loop_fd_file_set_delegate(fd_file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFdFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_fd_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_fd_file_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.LoopFd.efl_loop_fd_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopConsumer.NativeMethods { - return Efl.LoopFd.efl_loop_fd_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_loop_fd_get_static_delegate == null) + { + efl_loop_fd_get_static_delegate = new efl_loop_fd_get_delegate(fd_get); + } - private delegate int efl_loop_fd_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_fd_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_fd_get_static_delegate) }); + } + if (efl_loop_fd_set_static_delegate == null) + { + efl_loop_fd_set_static_delegate = new efl_loop_fd_set_delegate(fd_set); + } - public delegate int efl_loop_fd_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_fd_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_fd_get"); - private static int fd_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_fd_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LoopFd)wrapper).GetFd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_fd_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_fd_set_static_delegate) }); } - return _ret_var; - } else { - return efl_loop_fd_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_loop_fd_file_get_static_delegate == null) + { + efl_loop_fd_file_get_static_delegate = new efl_loop_fd_file_get_delegate(fd_file_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFdFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_fd_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_fd_file_get_static_delegate) }); + } + + if (efl_loop_fd_file_set_static_delegate == null) + { + efl_loop_fd_file_set_static_delegate = new efl_loop_fd_file_set_delegate(fd_file_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFdFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_fd_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_fd_file_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.LoopFd.efl_loop_fd_class_get(); } - } - private static efl_loop_fd_get_delegate efl_loop_fd_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_loop_fd_set_delegate(System.IntPtr obj, System.IntPtr pd, int fd); + + private delegate int efl_loop_fd_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_loop_fd_get_api_delegate(System.IntPtr obj); - public delegate void efl_loop_fd_set_api_delegate(System.IntPtr obj, int fd); - public static Efl.Eo.FunctionWrapper efl_loop_fd_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_fd_set"); - private static void fd_set(System.IntPtr obj, System.IntPtr pd, int fd) - { - Eina.Log.Debug("function efl_loop_fd_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopFd)wrapper).SetFd( fd); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_fd_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_fd_get"); + + private static int fd_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_fd_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LoopFd)wrapper).GetFd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_loop_fd_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_loop_fd_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fd); } - } - private static efl_loop_fd_set_delegate efl_loop_fd_set_static_delegate; + private static efl_loop_fd_get_delegate efl_loop_fd_get_static_delegate; - private delegate int efl_loop_fd_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_loop_fd_set_delegate(System.IntPtr obj, System.IntPtr pd, int fd); + + public delegate void efl_loop_fd_set_api_delegate(System.IntPtr obj, int fd); - public delegate int efl_loop_fd_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_fd_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_fd_file_get"); - private static int fd_file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_fd_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LoopFd)wrapper).GetFdFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_fd_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_fd_set"); + + private static void fd_set(System.IntPtr obj, System.IntPtr pd, int fd) + { + Eina.Log.Debug("function efl_loop_fd_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopFd)wrapper).SetFd(fd); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_fd_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fd); } + } + + private static efl_loop_fd_set_delegate efl_loop_fd_set_static_delegate; + + + private delegate int efl_loop_fd_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_loop_fd_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_fd_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_fd_file_get"); + + private static int fd_file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_fd_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LoopFd)wrapper).GetFdFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_loop_fd_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_loop_fd_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_fd_file_get_delegate efl_loop_fd_file_get_static_delegate; + private static efl_loop_fd_file_get_delegate efl_loop_fd_file_get_static_delegate; - private delegate void efl_loop_fd_file_set_delegate(System.IntPtr obj, System.IntPtr pd, int fd); + + private delegate void efl_loop_fd_file_set_delegate(System.IntPtr obj, System.IntPtr pd, int fd); + + public delegate void efl_loop_fd_file_set_api_delegate(System.IntPtr obj, int fd); - public delegate void efl_loop_fd_file_set_api_delegate(System.IntPtr obj, int fd); - public static Efl.Eo.FunctionWrapper efl_loop_fd_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_fd_file_set"); - private static void fd_file_set(System.IntPtr obj, System.IntPtr pd, int fd) - { - Eina.Log.Debug("function efl_loop_fd_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopFd)wrapper).SetFdFile( fd); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_fd_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_fd_file_set"); + + private static void fd_file_set(System.IntPtr obj, System.IntPtr pd, int fd) + { + Eina.Log.Debug("function efl_loop_fd_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopFd)wrapper).SetFdFile(fd); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_fd_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fd); } - } else { - efl_loop_fd_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fd); } - } - private static efl_loop_fd_file_set_delegate efl_loop_fd_file_set_static_delegate; + + private static efl_loop_fd_file_set_delegate efl_loop_fd_file_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_handler.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_handler.eo.cs index 44d542c..76e8e96 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_handler.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_handler.eo.cs @@ -3,619 +3,824 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// An object that describes an low-level source of I/O to listen to for available data to be read or written, depending on the OS and data source type. When I/O becomes available various events are produced and the callbacks attached to them will be called. -[LoopHandlerNativeInherit] +[Efl.LoopHandler.NativeMethods] public class LoopHandler : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LoopHandler)) - return Efl.LoopHandlerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LoopHandler)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_loop_handler_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LoopHandler(Efl.Object parent= null - ) : - base(efl_loop_handler_class_get(), typeof(LoopHandler), parent) + ) : base(efl_loop_handler_class_get(), typeof(LoopHandler), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LoopHandler(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LoopHandler(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LoopHandler(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ReadEvtKey = new object(); + /// Called when a read occurs on the descriptor. public event EventHandler ReadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_HANDLER_EVENT_READ"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_ReadEvt_delegate)) { - eventHandlers.AddHandler(ReadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_HANDLER_EVENT_READ"; - if (RemoveNativeEventHandler(key, this.evt_ReadEvt_delegate)) { - eventHandlers.RemoveHandler(ReadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event ReadEvt. - public void On_ReadEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ReadEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ReadEvt_delegate; - private void on_ReadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ReadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public void OnReadEvt(EventArgs e) + { + var key = "_EFL_LOOP_HANDLER_EVENT_READ"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WriteEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when a write occurs on the descriptor. public event EventHandler WriteEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_HANDLER_EVENT_WRITE"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_WriteEvt_delegate)) { - eventHandlers.AddHandler(WriteEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_HANDLER_EVENT_WRITE"; - if (RemoveNativeEventHandler(key, this.evt_WriteEvt_delegate)) { - eventHandlers.RemoveHandler(WriteEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event WriteEvt. - public void On_WriteEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WriteEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WriteEvt_delegate; - private void on_WriteEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_WriteEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public void OnWriteEvt(EventArgs e) + { + var key = "_EFL_LOOP_HANDLER_EVENT_WRITE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ErrorEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when a error occurrs on the descriptor. public event EventHandler ErrorEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_HANDLER_EVENT_ERROR"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_ErrorEvt_delegate)) { - eventHandlers.AddHandler(ErrorEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_HANDLER_EVENT_ERROR"; - if (RemoveNativeEventHandler(key, this.evt_ErrorEvt_delegate)) { - eventHandlers.RemoveHandler(ErrorEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event ErrorEvt. - public void On_ErrorEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ErrorEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ErrorEvt_delegate; - private void on_ErrorEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ErrorEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public void OnErrorEvt(EventArgs e) + { + var key = "_EFL_LOOP_HANDLER_EVENT_ERROR"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BufferEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when buffered data already read from the descriptor should be processed. public event EventHandler BufferEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_HANDLER_EVENT_BUFFER"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_BufferEvt_delegate)) { - eventHandlers.AddHandler(BufferEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_HANDLER_EVENT_BUFFER"; - if (RemoveNativeEventHandler(key, this.evt_BufferEvt_delegate)) { - eventHandlers.RemoveHandler(BufferEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event BufferEvt. - public void On_BufferEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BufferEvtKey]; + public void OnBufferEvt(EventArgs e) + { + var key = "_EFL_LOOP_HANDLER_EVENT_BUFFER"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BufferEvt_delegate; - private void on_BufferEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_BufferEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object PrepareEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when preparing a descriptor for listening. public event EventHandler PrepareEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_HANDLER_EVENT_PREPARE"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_PrepareEvt_delegate)) { - eventHandlers.AddHandler(PrepareEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_HANDLER_EVENT_PREPARE"; - if (RemoveNativeEventHandler(key, this.evt_PrepareEvt_delegate)) { - eventHandlers.RemoveHandler(PrepareEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event PrepareEvt. - public void On_PrepareEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PrepareEvtKey]; + public void OnPrepareEvt(EventArgs e) + { + var key = "_EFL_LOOP_HANDLER_EVENT_PREPARE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PrepareEvt_delegate; - private void on_PrepareEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_PrepareEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ReadEvt_delegate = new Efl.EventCb(on_ReadEvt_NativeCallback); - evt_WriteEvt_delegate = new Efl.EventCb(on_WriteEvt_NativeCallback); - evt_ErrorEvt_delegate = new Efl.EventCb(on_ErrorEvt_NativeCallback); - evt_BufferEvt_delegate = new Efl.EventCb(on_BufferEvt_NativeCallback); - evt_PrepareEvt_delegate = new Efl.EventCb(on_PrepareEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// This sets what kind of I/O should be listened to only when using a fd or fd_file for the handler /// The flags that indicate what kind of I/O should be listened for like read, write or error channels. virtual public Efl.LoopHandlerFlags GetActive() { - var _ret_var = Efl.LoopHandlerNativeInherit.efl_loop_handler_active_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopHandler.NativeMethods.efl_loop_handler_active_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This sets what kind of I/O should be listened to only when using a fd or fd_file for the handler /// The flags that indicate what kind of I/O should be listened for like read, write or error channels. - /// - virtual public void SetActive( Efl.LoopHandlerFlags flags) { - Efl.LoopHandlerNativeInherit.efl_loop_handler_active_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), flags); + virtual public void SetActive(Efl.LoopHandlerFlags flags) { + Efl.LoopHandler.NativeMethods.efl_loop_handler_active_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),flags); Eina.Error.RaiseIfUnhandledException(); } /// Controls a file descriptor to listen to for I/O, which points to a data pipe such as a device, socket or pipe etc. /// The file descriptor virtual public int GetFd() { - var _ret_var = Efl.LoopHandlerNativeInherit.efl_loop_handler_fd_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopHandler.NativeMethods.efl_loop_handler_fd_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Controls a file descriptor to listen to for I/O, which points to a data pipe such as a device, socket or pipe etc. /// The file descriptor - /// - virtual public void SetFd( int fd) { - Efl.LoopHandlerNativeInherit.efl_loop_handler_fd_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fd); + virtual public void SetFd(int fd) { + Efl.LoopHandler.NativeMethods.efl_loop_handler_fd_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fd); Eina.Error.RaiseIfUnhandledException(); } /// Controls a file descriptor to listen to for I/O that specifically points to a file in storage and not a device, socket or pipe etc. /// The file descriptor virtual public int GetFdFile() { - var _ret_var = Efl.LoopHandlerNativeInherit.efl_loop_handler_fd_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopHandler.NativeMethods.efl_loop_handler_fd_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Controls a file descriptor to listen to for I/O that specifically points to a file in storage and not a device, socket or pipe etc. /// The file descriptor - /// - virtual public void SetFdFile( int fd) { - Efl.LoopHandlerNativeInherit.efl_loop_handler_fd_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fd); + virtual public void SetFdFile(int fd) { + Efl.LoopHandler.NativeMethods.efl_loop_handler_fd_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fd); Eina.Error.RaiseIfUnhandledException(); } /// Controls a windows win32 object handle to listen to for I/O. When it becomes available for any data the read event will be produced. /// A win32 object handle virtual public System.IntPtr GetWin32() { - var _ret_var = Efl.LoopHandlerNativeInherit.efl_loop_handler_win32_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopHandler.NativeMethods.efl_loop_handler_win32_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Controls a windows win32 object handle to listen to for I/O. When it becomes available for any data the read event will be produced. /// A win32 object handle - /// - virtual public void SetWin32( System.IntPtr handle) { - Efl.LoopHandlerNativeInherit.efl_loop_handler_win32_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), handle); + virtual public void SetWin32(System.IntPtr handle) { + Efl.LoopHandler.NativeMethods.efl_loop_handler_win32_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),handle); Eina.Error.RaiseIfUnhandledException(); } /// This sets what kind of I/O should be listened to only when using a fd or fd_file for the handler /// The flags that indicate what kind of I/O should be listened for like read, write or error channels. public Efl.LoopHandlerFlags Active { get { return GetActive(); } - set { SetActive( value); } + set { SetActive(value); } } /// Controls a file descriptor to listen to for I/O, which points to a data pipe such as a device, socket or pipe etc. /// The file descriptor public int Fd { get { return GetFd(); } - set { SetFd( value); } + set { SetFd(value); } } /// Controls a file descriptor to listen to for I/O that specifically points to a file in storage and not a device, socket or pipe etc. /// The file descriptor public int FdFile { get { return GetFdFile(); } - set { SetFdFile( value); } + set { SetFdFile(value); } } /// Controls a windows win32 object handle to listen to for I/O. When it becomes available for any data the read event will be produced. /// A win32 object handle public System.IntPtr Win32 { get { return GetWin32(); } - set { SetWin32( value); } + set { SetWin32(value); } } private static IntPtr GetEflClassStatic() { return Efl.LoopHandler.efl_loop_handler_class_get(); } -} -public class LoopHandlerNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_loop_handler_active_get_static_delegate == null) - efl_loop_handler_active_get_static_delegate = new efl_loop_handler_active_get_delegate(active_get); - if (methods.FirstOrDefault(m => m.Name == "GetActive") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_handler_active_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_active_get_static_delegate)}); - if (efl_loop_handler_active_set_static_delegate == null) - efl_loop_handler_active_set_static_delegate = new efl_loop_handler_active_set_delegate(active_set); - if (methods.FirstOrDefault(m => m.Name == "SetActive") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_handler_active_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_active_set_static_delegate)}); - if (efl_loop_handler_fd_get_static_delegate == null) - efl_loop_handler_fd_get_static_delegate = new efl_loop_handler_fd_get_delegate(fd_get); - if (methods.FirstOrDefault(m => m.Name == "GetFd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_handler_fd_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_fd_get_static_delegate)}); - if (efl_loop_handler_fd_set_static_delegate == null) - efl_loop_handler_fd_set_static_delegate = new efl_loop_handler_fd_set_delegate(fd_set); - if (methods.FirstOrDefault(m => m.Name == "SetFd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_handler_fd_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_fd_set_static_delegate)}); - if (efl_loop_handler_fd_file_get_static_delegate == null) - efl_loop_handler_fd_file_get_static_delegate = new efl_loop_handler_fd_file_get_delegate(fd_file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFdFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_handler_fd_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_fd_file_get_static_delegate)}); - if (efl_loop_handler_fd_file_set_static_delegate == null) - efl_loop_handler_fd_file_set_static_delegate = new efl_loop_handler_fd_file_set_delegate(fd_file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFdFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_handler_fd_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_fd_file_set_static_delegate)}); - if (efl_loop_handler_win32_get_static_delegate == null) - efl_loop_handler_win32_get_static_delegate = new efl_loop_handler_win32_get_delegate(win32_get); - if (methods.FirstOrDefault(m => m.Name == "GetWin32") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_handler_win32_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_win32_get_static_delegate)}); - if (efl_loop_handler_win32_set_static_delegate == null) - efl_loop_handler_win32_set_static_delegate = new efl_loop_handler_win32_set_delegate(win32_set); - if (methods.FirstOrDefault(m => m.Name == "SetWin32") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_handler_win32_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_win32_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.LoopHandler.efl_loop_handler_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.LoopHandler.efl_loop_handler_class_get(); - } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_loop_handler_active_get_static_delegate == null) + { + efl_loop_handler_active_get_static_delegate = new efl_loop_handler_active_get_delegate(active_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetActive") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_handler_active_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_active_get_static_delegate) }); + } - private delegate Efl.LoopHandlerFlags efl_loop_handler_active_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_loop_handler_active_set_static_delegate == null) + { + efl_loop_handler_active_set_static_delegate = new efl_loop_handler_active_set_delegate(active_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetActive") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_handler_active_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_active_set_static_delegate) }); + } - public delegate Efl.LoopHandlerFlags efl_loop_handler_active_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_handler_active_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_handler_active_get"); - private static Efl.LoopHandlerFlags active_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_handler_active_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.LoopHandlerFlags _ret_var = default(Efl.LoopHandlerFlags); - try { - _ret_var = ((LoopHandler)wrapper).GetActive(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_loop_handler_fd_get_static_delegate == null) + { + efl_loop_handler_fd_get_static_delegate = new efl_loop_handler_fd_get_delegate(fd_get); } - return _ret_var; - } else { - return efl_loop_handler_active_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_loop_handler_active_get_delegate efl_loop_handler_active_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_handler_fd_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_fd_get_static_delegate) }); + } - private delegate void efl_loop_handler_active_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.LoopHandlerFlags flags); + if (efl_loop_handler_fd_set_static_delegate == null) + { + efl_loop_handler_fd_set_static_delegate = new efl_loop_handler_fd_set_delegate(fd_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_handler_fd_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_fd_set_static_delegate) }); + } - public delegate void efl_loop_handler_active_set_api_delegate(System.IntPtr obj, Efl.LoopHandlerFlags flags); - public static Efl.Eo.FunctionWrapper efl_loop_handler_active_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_handler_active_set"); - private static void active_set(System.IntPtr obj, System.IntPtr pd, Efl.LoopHandlerFlags flags) - { - Eina.Log.Debug("function efl_loop_handler_active_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopHandler)wrapper).SetActive( flags); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_loop_handler_active_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); - } - } - private static efl_loop_handler_active_set_delegate efl_loop_handler_active_set_static_delegate; + if (efl_loop_handler_fd_file_get_static_delegate == null) + { + efl_loop_handler_fd_file_get_static_delegate = new efl_loop_handler_fd_file_get_delegate(fd_file_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFdFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_handler_fd_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_fd_file_get_static_delegate) }); + } - private delegate int efl_loop_handler_fd_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_loop_handler_fd_file_set_static_delegate == null) + { + efl_loop_handler_fd_file_set_static_delegate = new efl_loop_handler_fd_file_set_delegate(fd_file_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFdFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_handler_fd_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_fd_file_set_static_delegate) }); + } - public delegate int efl_loop_handler_fd_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_handler_fd_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_handler_fd_get"); - private static int fd_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_handler_fd_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LoopHandler)wrapper).GetFd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_loop_handler_win32_get_static_delegate == null) + { + efl_loop_handler_win32_get_static_delegate = new efl_loop_handler_win32_get_delegate(win32_get); } - return _ret_var; - } else { - return efl_loop_handler_fd_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_loop_handler_fd_get_delegate efl_loop_handler_fd_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetWin32") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_handler_win32_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_win32_get_static_delegate) }); + } - private delegate void efl_loop_handler_fd_set_delegate(System.IntPtr obj, System.IntPtr pd, int fd); + if (efl_loop_handler_win32_set_static_delegate == null) + { + efl_loop_handler_win32_set_static_delegate = new efl_loop_handler_win32_set_delegate(win32_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetWin32") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_handler_win32_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_handler_win32_set_static_delegate) }); + } - public delegate void efl_loop_handler_fd_set_api_delegate(System.IntPtr obj, int fd); - public static Efl.Eo.FunctionWrapper efl_loop_handler_fd_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_handler_fd_set"); - private static void fd_set(System.IntPtr obj, System.IntPtr pd, int fd) - { - Eina.Log.Debug("function efl_loop_handler_fd_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopHandler)wrapper).SetFd( fd); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_loop_handler_fd_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fd); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.LoopHandler.efl_loop_handler_class_get(); } - } - private static efl_loop_handler_fd_set_delegate efl_loop_handler_fd_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.LoopHandlerFlags efl_loop_handler_active_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.LoopHandlerFlags efl_loop_handler_active_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_handler_active_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_handler_active_get"); + + private static Efl.LoopHandlerFlags active_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_handler_active_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.LoopHandlerFlags _ret_var = default(Efl.LoopHandlerFlags); + try + { + _ret_var = ((LoopHandler)wrapper).GetActive(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate int efl_loop_handler_fd_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_loop_handler_active_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate int efl_loop_handler_fd_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_handler_fd_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_handler_fd_file_get"); - private static int fd_file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_handler_fd_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LoopHandler)wrapper).GetFdFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_loop_handler_active_get_delegate efl_loop_handler_active_get_static_delegate; + + + private delegate void efl_loop_handler_active_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.LoopHandlerFlags flags); + + + public delegate void efl_loop_handler_active_set_api_delegate(System.IntPtr obj, Efl.LoopHandlerFlags flags); + + public static Efl.Eo.FunctionWrapper efl_loop_handler_active_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_handler_active_set"); + + private static void active_set(System.IntPtr obj, System.IntPtr pd, Efl.LoopHandlerFlags flags) + { + Eina.Log.Debug("function efl_loop_handler_active_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopHandler)wrapper).SetActive(flags); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_handler_active_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); } - return _ret_var; - } else { - return efl_loop_handler_fd_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_loop_handler_fd_file_get_delegate efl_loop_handler_fd_file_get_static_delegate; + private static efl_loop_handler_active_set_delegate efl_loop_handler_active_set_static_delegate; + + + private delegate int efl_loop_handler_fd_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_loop_handler_fd_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_handler_fd_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_handler_fd_get"); + + private static int fd_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_handler_fd_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LoopHandler)wrapper).GetFd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_loop_handler_fd_file_set_delegate(System.IntPtr obj, System.IntPtr pd, int fd); + return _ret_var; + } + else + { + return efl_loop_handler_fd_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_loop_handler_fd_file_set_api_delegate(System.IntPtr obj, int fd); - public static Efl.Eo.FunctionWrapper efl_loop_handler_fd_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_handler_fd_file_set"); - private static void fd_file_set(System.IntPtr obj, System.IntPtr pd, int fd) - { - Eina.Log.Debug("function efl_loop_handler_fd_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopHandler)wrapper).SetFdFile( fd); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_loop_handler_fd_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fd); + private static efl_loop_handler_fd_get_delegate efl_loop_handler_fd_get_static_delegate; + + + private delegate void efl_loop_handler_fd_set_delegate(System.IntPtr obj, System.IntPtr pd, int fd); + + + public delegate void efl_loop_handler_fd_set_api_delegate(System.IntPtr obj, int fd); + + public static Efl.Eo.FunctionWrapper efl_loop_handler_fd_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_handler_fd_set"); + + private static void fd_set(System.IntPtr obj, System.IntPtr pd, int fd) + { + Eina.Log.Debug("function efl_loop_handler_fd_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopHandler)wrapper).SetFd(fd); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_handler_fd_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fd); + } } - } - private static efl_loop_handler_fd_file_set_delegate efl_loop_handler_fd_file_set_static_delegate; + private static efl_loop_handler_fd_set_delegate efl_loop_handler_fd_set_static_delegate; + + + private delegate int efl_loop_handler_fd_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_loop_handler_fd_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_handler_fd_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_handler_fd_file_get"); + + private static int fd_file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_handler_fd_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LoopHandler)wrapper).GetFdFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate System.IntPtr efl_loop_handler_win32_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_loop_handler_fd_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate System.IntPtr efl_loop_handler_win32_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_handler_win32_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_handler_win32_get"); - private static System.IntPtr win32_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_handler_win32_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((LoopHandler)wrapper).GetWin32(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_loop_handler_fd_file_get_delegate efl_loop_handler_fd_file_get_static_delegate; + + + private delegate void efl_loop_handler_fd_file_set_delegate(System.IntPtr obj, System.IntPtr pd, int fd); + + + public delegate void efl_loop_handler_fd_file_set_api_delegate(System.IntPtr obj, int fd); + + public static Efl.Eo.FunctionWrapper efl_loop_handler_fd_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_handler_fd_file_set"); + + private static void fd_file_set(System.IntPtr obj, System.IntPtr pd, int fd) + { + Eina.Log.Debug("function efl_loop_handler_fd_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopHandler)wrapper).SetFdFile(fd); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_handler_fd_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fd); } - return _ret_var; - } else { - return efl_loop_handler_win32_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_loop_handler_win32_get_delegate efl_loop_handler_win32_get_static_delegate; + private static efl_loop_handler_fd_file_set_delegate efl_loop_handler_fd_file_set_static_delegate; + + + private delegate System.IntPtr efl_loop_handler_win32_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_loop_handler_win32_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_handler_win32_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_handler_win32_get"); + + private static System.IntPtr win32_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_handler_win32_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((LoopHandler)wrapper).GetWin32(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_loop_handler_win32_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr handle); + return _ret_var; + } + else + { + return efl_loop_handler_win32_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_loop_handler_win32_set_api_delegate(System.IntPtr obj, System.IntPtr handle); - public static Efl.Eo.FunctionWrapper efl_loop_handler_win32_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_handler_win32_set"); - private static void win32_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr handle) - { - Eina.Log.Debug("function efl_loop_handler_win32_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopHandler)wrapper).SetWin32( handle); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_loop_handler_win32_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), handle); + private static efl_loop_handler_win32_get_delegate efl_loop_handler_win32_get_static_delegate; + + + private delegate void efl_loop_handler_win32_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr handle); + + + public delegate void efl_loop_handler_win32_set_api_delegate(System.IntPtr obj, System.IntPtr handle); + + public static Efl.Eo.FunctionWrapper efl_loop_handler_win32_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_handler_win32_set"); + + private static void win32_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr handle) + { + Eina.Log.Debug("function efl_loop_handler_win32_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopHandler)wrapper).SetWin32(handle); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_handler_win32_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), handle); + } } - } - private static efl_loop_handler_win32_set_delegate efl_loop_handler_win32_set_static_delegate; + + private static efl_loop_handler_win32_set_delegate efl_loop_handler_win32_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} -namespace Efl { +} + +namespace Efl { + /// A set of flags that can be OR'd together to indicate which are desired public enum LoopHandlerFlags { @@ -628,4 +833,6 @@ Write = 2, /// Error channel input is desired Error = 4, } -} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_message.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_message.eo.cs index 113a9b7..dc474e2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_message.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_message.eo.cs @@ -3,133 +3,171 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + ///Event argument wrapper for event . public class LoopMessageMessageEvt_Args : EventArgs { ///Actual event payload. public Efl.LoopMessage arg { get; set; } } /// Base message payload object class. Inherit this and extend for specific message types. -[LoopMessageNativeInherit] +[Efl.LoopMessage.NativeMethods] public class LoopMessage : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LoopMessage)) - return Efl.LoopMessageNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LoopMessage)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_loop_message_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LoopMessage(Efl.Object parent= null - ) : - base(efl_loop_message_class_get(), typeof(LoopMessage), parent) + ) : base(efl_loop_message_class_get(), typeof(LoopMessage), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LoopMessage(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LoopMessage(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LoopMessage(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object MessageEvtKey = new object(); + /// The message payload data public event EventHandler MessageEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.LoopMessageMessageEvt_Args args = new Efl.LoopMessageMessageEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.LoopMessage); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_MESSAGE_EVENT_MESSAGE"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_MessageEvt_delegate)) { - eventHandlers.AddHandler(MessageEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_MESSAGE_EVENT_MESSAGE"; - if (RemoveNativeEventHandler(key, this.evt_MessageEvt_delegate)) { - eventHandlers.RemoveHandler(MessageEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event MessageEvt. - public void On_MessageEvt(Efl.LoopMessageMessageEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[MessageEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_MessageEvt_delegate; - private void on_MessageEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnMessageEvt(Efl.LoopMessageMessageEvt_Args e) { - Efl.LoopMessageMessageEvt_Args args = new Efl.LoopMessageMessageEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.LoopMessage); - try { - On_MessageEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LOOP_MESSAGE_EVENT_MESSAGE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_MessageEvt_delegate = new Efl.EventCb(on_MessageEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } private static IntPtr GetEflClassStatic() { return Efl.LoopMessage.efl_loop_message_class_get(); } -} -public class LoopMessageNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.LoopMessage.efl_loop_message_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.LoopMessage.efl_loop_message_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.LoopMessage.efl_loop_message_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future.eo.cs index 09c7fcb..fa0c167 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future.eo.cs @@ -3,159 +3,224 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Used internally for futures on the loop -[LoopMessageFutureNativeInherit] +[Efl.LoopMessageFuture.NativeMethods] public class LoopMessageFuture : Efl.LoopMessage, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LoopMessageFuture)) - return Efl.LoopMessageFutureNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LoopMessageFuture)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_loop_message_future_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LoopMessageFuture(Efl.Object parent= null - ) : - base(efl_loop_message_future_class_get(), typeof(LoopMessageFuture), parent) + ) : base(efl_loop_message_future_class_get(), typeof(LoopMessageFuture), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LoopMessageFuture(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LoopMessageFuture(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LoopMessageFuture(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// No description supplied. /// No description supplied. virtual public System.IntPtr GetData() { - var _ret_var = Efl.LoopMessageFutureNativeInherit.efl_loop_message_future_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopMessageFuture.NativeMethods.efl_loop_message_future_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// No description supplied. /// No description supplied. - /// - virtual public void SetData( System.IntPtr data) { - Efl.LoopMessageFutureNativeInherit.efl_loop_message_future_data_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), data); + virtual public void SetData(System.IntPtr data) { + Efl.LoopMessageFuture.NativeMethods.efl_loop_message_future_data_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),data); Eina.Error.RaiseIfUnhandledException(); } /// No description supplied. /// No description supplied. public System.IntPtr Data { get { return GetData(); } - set { SetData( value); } + set { SetData(value); } } private static IntPtr GetEflClassStatic() { return Efl.LoopMessageFuture.efl_loop_message_future_class_get(); } -} -public class LoopMessageFutureNativeInherit : Efl.LoopMessageNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopMessage.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_loop_message_future_data_get_static_delegate == null) - efl_loop_message_future_data_get_static_delegate = new efl_loop_message_future_data_get_delegate(data_get); - if (methods.FirstOrDefault(m => m.Name == "GetData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_message_future_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_future_data_get_static_delegate)}); - if (efl_loop_message_future_data_set_static_delegate == null) - efl_loop_message_future_data_set_static_delegate = new efl_loop_message_future_data_set_delegate(data_set); - if (methods.FirstOrDefault(m => m.Name == "SetData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_message_future_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_future_data_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.LoopMessageFuture.efl_loop_message_future_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.LoopMessageFuture.efl_loop_message_future_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_loop_message_future_data_get_static_delegate == null) + { + efl_loop_message_future_data_get_static_delegate = new efl_loop_message_future_data_get_delegate(data_get); + } - private delegate System.IntPtr efl_loop_message_future_data_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_message_future_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_future_data_get_static_delegate) }); + } + if (efl_loop_message_future_data_set_static_delegate == null) + { + efl_loop_message_future_data_set_static_delegate = new efl_loop_message_future_data_set_delegate(data_set); + } - public delegate System.IntPtr efl_loop_message_future_data_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_message_future_data_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_message_future_data_get"); - private static System.IntPtr data_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_message_future_data_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((LoopMessageFuture)wrapper).GetData(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_message_future_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_future_data_set_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.LoopMessageFuture.efl_loop_message_future_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate System.IntPtr efl_loop_message_future_data_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_loop_message_future_data_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_message_future_data_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_message_future_data_get"); + + private static System.IntPtr data_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_message_future_data_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((LoopMessageFuture)wrapper).GetData(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_loop_message_future_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_loop_message_future_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_message_future_data_get_delegate efl_loop_message_future_data_get_static_delegate; + private static efl_loop_message_future_data_get_delegate efl_loop_message_future_data_get_static_delegate; - private delegate void efl_loop_message_future_data_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + + private delegate void efl_loop_message_future_data_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + + public delegate void efl_loop_message_future_data_set_api_delegate(System.IntPtr obj, System.IntPtr data); - public delegate void efl_loop_message_future_data_set_api_delegate(System.IntPtr obj, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_loop_message_future_data_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_message_future_data_set"); - private static void data_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) - { - Eina.Log.Debug("function efl_loop_message_future_data_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopMessageFuture)wrapper).SetData( data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_message_future_data_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_message_future_data_set"); + + private static void data_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) + { + Eina.Log.Debug("function efl_loop_message_future_data_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopMessageFuture)wrapper).SetData(data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_message_future_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); } - } else { - efl_loop_message_future_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); } - } - private static efl_loop_message_future_data_set_delegate efl_loop_message_future_data_set_static_delegate; + + private static efl_loop_message_future_data_set_delegate efl_loop_message_future_data_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future_handler.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future_handler.eo.cs index d621837..76c5db7 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future_handler.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future_handler.eo.cs @@ -3,116 +3,147 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + ///Event argument wrapper for event . public class LoopMessageFutureHandlerMessageFutureEvt_Args : EventArgs { ///Actual event payload. public Efl.LoopMessageFuture arg { get; set; } } /// Internal use for future on an efl loop - replacing legacy ecore events -[LoopMessageFutureHandlerNativeInherit] +[Efl.LoopMessageFutureHandler.NativeMethods] public class LoopMessageFutureHandler : Efl.LoopMessageHandler, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LoopMessageFutureHandler)) - return Efl.LoopMessageFutureHandlerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LoopMessageFutureHandler)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_loop_message_future_handler_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LoopMessageFutureHandler(Efl.Object parent= null - ) : - base(efl_loop_message_future_handler_class_get(), typeof(LoopMessageFutureHandler), parent) + ) : base(efl_loop_message_future_handler_class_get(), typeof(LoopMessageFutureHandler), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LoopMessageFutureHandler(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LoopMessageFutureHandler(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LoopMessageFutureHandler(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object MessageFutureEvtKey = new object(); + /// No description supplied. public event EventHandler MessageFutureEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.LoopMessageFutureHandlerMessageFutureEvt_Args args = new Efl.LoopMessageFutureHandlerMessageFutureEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.LoopMessageFuture); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_MESSAGE_FUTURE_HANDLER_EVENT_MESSAGE_FUTURE"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_MessageFutureEvt_delegate)) { - eventHandlers.AddHandler(MessageFutureEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_MESSAGE_FUTURE_HANDLER_EVENT_MESSAGE_FUTURE"; - if (RemoveNativeEventHandler(key, this.evt_MessageFutureEvt_delegate)) { - eventHandlers.RemoveHandler(MessageFutureEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event MessageFutureEvt. - public void On_MessageFutureEvt(Efl.LoopMessageFutureHandlerMessageFutureEvt_Args e) + public void OnMessageFutureEvt(Efl.LoopMessageFutureHandlerMessageFutureEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[MessageFutureEvtKey]; + var key = "_EFL_LOOP_MESSAGE_FUTURE_HANDLER_EVENT_MESSAGE_FUTURE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_MessageFutureEvt_delegate; - private void on_MessageFutureEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.LoopMessageFutureHandlerMessageFutureEvt_Args args = new Efl.LoopMessageFutureHandlerMessageFutureEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.LoopMessageFuture); - try { - On_MessageFutureEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_MessageFutureEvt_delegate = new Efl.EventCb(on_MessageFutureEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// No description supplied. /// No description supplied. virtual public Efl.LoopMessageFuture AddMessageType() { - var _ret_var = Efl.LoopMessageFutureHandlerNativeInherit.efl_loop_message_future_handler_message_type_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopMessageFutureHandler.NativeMethods.efl_loop_message_future_handler_message_type_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -120,52 +151,79 @@ private static object MessageFutureEvtKey = new object(); { return Efl.LoopMessageFutureHandler.efl_loop_message_future_handler_class_get(); } -} -public class LoopMessageFutureHandlerNativeInherit : Efl.LoopMessageHandlerNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_loop_message_future_handler_message_type_add_static_delegate == null) - efl_loop_message_future_handler_message_type_add_static_delegate = new efl_loop_message_future_handler_message_type_add_delegate(message_type_add); - if (methods.FirstOrDefault(m => m.Name == "AddMessageType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_message_future_handler_message_type_add"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_future_handler_message_type_add_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopMessageHandler.NativeMethods { - return Efl.LoopMessageFutureHandler.efl_loop_message_future_handler_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.LoopMessageFutureHandler.efl_loop_message_future_handler_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_loop_message_future_handler_message_type_add_static_delegate == null) + { + efl_loop_message_future_handler_message_type_add_static_delegate = new efl_loop_message_future_handler_message_type_add_delegate(message_type_add); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.LoopMessageFuture efl_loop_message_future_handler_message_type_add_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "AddMessageType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_message_future_handler_message_type_add"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_future_handler_message_type_add_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.LoopMessageFutureHandler.efl_loop_message_future_handler_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.LoopMessageFuture efl_loop_message_future_handler_message_type_add_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.LoopMessageFuture efl_loop_message_future_handler_message_type_add_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_message_future_handler_message_type_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_message_future_handler_message_type_add"); + + private static Efl.LoopMessageFuture message_type_add(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_message_future_handler_message_type_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.LoopMessageFuture _ret_var = default(Efl.LoopMessageFuture); + try + { + _ret_var = ((LoopMessageFutureHandler)wrapper).AddMessageType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.LoopMessageFuture efl_loop_message_future_handler_message_type_add_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_message_future_handler_message_type_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_message_future_handler_message_type_add"); - private static Efl.LoopMessageFuture message_type_add(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_message_future_handler_message_type_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.LoopMessageFuture _ret_var = default(Efl.LoopMessageFuture); - try { - _ret_var = ((LoopMessageFutureHandler)wrapper).AddMessageType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_loop_message_future_handler_message_type_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_loop_message_future_handler_message_type_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_message_future_handler_message_type_add_delegate efl_loop_message_future_handler_message_type_add_static_delegate; + + private static efl_loop_message_future_handler_message_type_add_delegate efl_loop_message_future_handler_message_type_add_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_handler.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_handler.eo.cs index 0b10c7f..d35edae 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_handler.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_handler.eo.cs @@ -3,137 +3,166 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + ///Event argument wrapper for event . public class LoopMessageHandlerMessageEvt_Args : EventArgs { ///Actual event payload. public Efl.LoopMessage arg { get; set; } } /// Message handlers represent a single message type on the Efl.Loop parent object. These message handlers can be used to listen for that message type by listening to the message event for the generic case or a class specific event type to get specific message object typing correct. -[LoopMessageHandlerNativeInherit] +[Efl.LoopMessageHandler.NativeMethods] public class LoopMessageHandler : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LoopMessageHandler)) - return Efl.LoopMessageHandlerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LoopMessageHandler)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_loop_message_handler_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LoopMessageHandler(Efl.Object parent= null - ) : - base(efl_loop_message_handler_class_get(), typeof(LoopMessageHandler), parent) + ) : base(efl_loop_message_handler_class_get(), typeof(LoopMessageHandler), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LoopMessageHandler(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LoopMessageHandler(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LoopMessageHandler(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object MessageEvtKey = new object(); + /// The message payload data public event EventHandler MessageEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.LoopMessageHandlerMessageEvt_Args args = new Efl.LoopMessageHandlerMessageEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.LoopMessage); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_MESSAGE_HANDLER_EVENT_MESSAGE"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_MessageEvt_delegate)) { - eventHandlers.AddHandler(MessageEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_MESSAGE_HANDLER_EVENT_MESSAGE"; - if (RemoveNativeEventHandler(key, this.evt_MessageEvt_delegate)) { - eventHandlers.RemoveHandler(MessageEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event MessageEvt. - public void On_MessageEvt(Efl.LoopMessageHandlerMessageEvt_Args e) + public void OnMessageEvt(Efl.LoopMessageHandlerMessageEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[MessageEvtKey]; + var key = "_EFL_LOOP_MESSAGE_HANDLER_EVENT_MESSAGE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_MessageEvt_delegate; - private void on_MessageEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.LoopMessageHandlerMessageEvt_Args args = new Efl.LoopMessageHandlerMessageEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.LoopMessage); - try { - On_MessageEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_MessageEvt_delegate = new Efl.EventCb(on_MessageEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Creates a new message object of the correct type for this message type. /// The new message payload object. virtual public Efl.LoopMessage AddMessage() { - var _ret_var = Efl.LoopMessageHandlerNativeInherit.efl_loop_message_handler_message_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopMessageHandler.NativeMethods.efl_loop_message_handler_message_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Place the message on the queue to be called later when message_process() is called on the loop object. /// The message to place on the queue. - /// - virtual public void MessageSend( Efl.LoopMessage message) { - Efl.LoopMessageHandlerNativeInherit.efl_loop_message_handler_message_send_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), message); + virtual public void MessageSend(Efl.LoopMessage message) { + Efl.LoopMessageHandler.NativeMethods.efl_loop_message_handler_message_send_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),message); Eina.Error.RaiseIfUnhandledException(); } /// Overide me (implement) then call super after calling the right callback type if you specialize the message type. /// Generic message event type - /// - virtual public void CallMessage( Efl.LoopMessage message) { - Efl.LoopMessageHandlerNativeInherit.efl_loop_message_handler_message_call_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), message); + virtual public void CallMessage(Efl.LoopMessage message) { + Efl.LoopMessageHandler.NativeMethods.efl_loop_message_handler_message_call_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),message); Eina.Error.RaiseIfUnhandledException(); } /// Delete all queued messages belonging to this message handler that are pending on the queue so they are not processed later. /// True if any messages of this type were cleared. virtual public bool ClearMessage() { - var _ret_var = Efl.LoopMessageHandlerNativeInherit.efl_loop_message_handler_message_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopMessageHandler.NativeMethods.efl_loop_message_handler_message_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -141,137 +170,215 @@ private static object MessageEvtKey = new object(); { return Efl.LoopMessageHandler.efl_loop_message_handler_class_get(); } -} -public class LoopMessageHandlerNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_loop_message_handler_message_add_static_delegate == null) - efl_loop_message_handler_message_add_static_delegate = new efl_loop_message_handler_message_add_delegate(message_add); - if (methods.FirstOrDefault(m => m.Name == "AddMessage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_message_handler_message_add"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_handler_message_add_static_delegate)}); - if (efl_loop_message_handler_message_send_static_delegate == null) - efl_loop_message_handler_message_send_static_delegate = new efl_loop_message_handler_message_send_delegate(message_send); - if (methods.FirstOrDefault(m => m.Name == "MessageSend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_message_handler_message_send"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_handler_message_send_static_delegate)}); - if (efl_loop_message_handler_message_call_static_delegate == null) - efl_loop_message_handler_message_call_static_delegate = new efl_loop_message_handler_message_call_delegate(message_call); - if (methods.FirstOrDefault(m => m.Name == "CallMessage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_message_handler_message_call"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_handler_message_call_static_delegate)}); - if (efl_loop_message_handler_message_clear_static_delegate == null) - efl_loop_message_handler_message_clear_static_delegate = new efl_loop_message_handler_message_clear_delegate(message_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearMessage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_message_handler_message_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_handler_message_clear_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.LoopMessageHandler.efl_loop_message_handler_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.LoopMessageHandler.efl_loop_message_handler_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_loop_message_handler_message_add_static_delegate == null) + { + efl_loop_message_handler_message_add_static_delegate = new efl_loop_message_handler_message_add_delegate(message_add); + } + if (methods.FirstOrDefault(m => m.Name == "AddMessage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_message_handler_message_add"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_handler_message_add_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.LoopMessage efl_loop_message_handler_message_add_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_loop_message_handler_message_send_static_delegate == null) + { + efl_loop_message_handler_message_send_static_delegate = new efl_loop_message_handler_message_send_delegate(message_send); + } + if (methods.FirstOrDefault(m => m.Name == "MessageSend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_message_handler_message_send"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_handler_message_send_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.LoopMessage efl_loop_message_handler_message_add_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_message_handler_message_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_message_handler_message_add"); - private static Efl.LoopMessage message_add(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_message_handler_message_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.LoopMessage _ret_var = default(Efl.LoopMessage); - try { - _ret_var = ((LoopMessageHandler)wrapper).AddMessage(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_loop_message_handler_message_call_static_delegate == null) + { + efl_loop_message_handler_message_call_static_delegate = new efl_loop_message_handler_message_call_delegate(message_call); } - return _ret_var; - } else { - return efl_loop_message_handler_message_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (methods.FirstOrDefault(m => m.Name == "CallMessage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_message_handler_message_call"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_handler_message_call_static_delegate) }); + } + + if (efl_loop_message_handler_message_clear_static_delegate == null) + { + efl_loop_message_handler_message_clear_static_delegate = new efl_loop_message_handler_message_clear_delegate(message_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearMessage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_message_handler_message_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_message_handler_message_clear_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.LoopMessageHandler.efl_loop_message_handler_class_get(); } - } - private static efl_loop_message_handler_message_add_delegate efl_loop_message_handler_message_add_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_loop_message_handler_message_send_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.LoopMessage message); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.LoopMessage efl_loop_message_handler_message_add_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.LoopMessage efl_loop_message_handler_message_add_api_delegate(System.IntPtr obj); - public delegate void efl_loop_message_handler_message_send_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.LoopMessage message); - public static Efl.Eo.FunctionWrapper efl_loop_message_handler_message_send_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_message_handler_message_send"); - private static void message_send(System.IntPtr obj, System.IntPtr pd, Efl.LoopMessage message) - { - Eina.Log.Debug("function efl_loop_message_handler_message_send was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopMessageHandler)wrapper).MessageSend( message); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_message_handler_message_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_message_handler_message_add"); + + private static Efl.LoopMessage message_add(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_message_handler_message_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.LoopMessage _ret_var = default(Efl.LoopMessage); + try + { + _ret_var = ((LoopMessageHandler)wrapper).AddMessage(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_loop_message_handler_message_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_loop_message_handler_message_send_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), message); } - } - private static efl_loop_message_handler_message_send_delegate efl_loop_message_handler_message_send_static_delegate; + private static efl_loop_message_handler_message_add_delegate efl_loop_message_handler_message_add_static_delegate; - private delegate void efl_loop_message_handler_message_call_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.LoopMessage message); + + private delegate void efl_loop_message_handler_message_send_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.LoopMessage message); + + public delegate void efl_loop_message_handler_message_send_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.LoopMessage message); - public delegate void efl_loop_message_handler_message_call_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.LoopMessage message); - public static Efl.Eo.FunctionWrapper efl_loop_message_handler_message_call_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_message_handler_message_call"); - private static void message_call(System.IntPtr obj, System.IntPtr pd, Efl.LoopMessage message) - { - Eina.Log.Debug("function efl_loop_message_handler_message_call was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopMessageHandler)wrapper).CallMessage( message); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_message_handler_message_send_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_message_handler_message_send"); + + private static void message_send(System.IntPtr obj, System.IntPtr pd, Efl.LoopMessage message) + { + Eina.Log.Debug("function efl_loop_message_handler_message_send was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopMessageHandler)wrapper).MessageSend(message); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_message_handler_message_send_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), message); } - } else { - efl_loop_message_handler_message_call_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), message); } - } - private static efl_loop_message_handler_message_call_delegate efl_loop_message_handler_message_call_static_delegate; + private static efl_loop_message_handler_message_send_delegate efl_loop_message_handler_message_send_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_loop_message_handler_message_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_loop_message_handler_message_call_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.LoopMessage message); + + public delegate void efl_loop_message_handler_message_call_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.LoopMessage message); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_loop_message_handler_message_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_message_handler_message_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_message_handler_message_clear"); - private static bool message_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_message_handler_message_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LoopMessageHandler)wrapper).ClearMessage(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_message_handler_message_call_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_message_handler_message_call"); + + private static void message_call(System.IntPtr obj, System.IntPtr pd, Efl.LoopMessage message) + { + Eina.Log.Debug("function efl_loop_message_handler_message_call was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopMessageHandler)wrapper).CallMessage(message); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_loop_message_handler_message_call_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), message); + } + } + + private static efl_loop_message_handler_message_call_delegate efl_loop_message_handler_message_call_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_loop_message_handler_message_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_loop_message_handler_message_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_message_handler_message_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_message_handler_message_clear"); + + private static bool message_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_message_handler_message_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LoopMessageHandler)wrapper).ClearMessage(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_loop_message_handler_message_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_loop_message_handler_message_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_message_handler_message_clear_delegate efl_loop_message_handler_message_clear_static_delegate; + + private static efl_loop_message_handler_message_clear_delegate efl_loop_message_handler_message_clear_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_model.eo.cs index 98e9ee4..e22020f 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_model.eo.cs @@ -3,36 +3,46 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { -/// -[LoopModelNativeInherit] +namespace Efl { + +[Efl.LoopModel.NativeMethods] public abstract class LoopModel : Efl.LoopConsumer, Efl.Eo.IWrapper,Efl.IModel { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LoopModel)) - return Efl.LoopModelNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LoopModel)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_loop_model_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LoopModel(Efl.Object parent= null - ) : - base(efl_loop_model_class_get(), typeof(LoopModel), parent) + ) : base(efl_loop_model_class_get(), typeof(LoopModel), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LoopModel(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class LoopModelRealized : LoopModel { @@ -40,219 +50,288 @@ public abstract class LoopModel : Efl.LoopConsumer, Efl.Eo.IWrapper,Efl.IModel { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LoopModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LoopModel(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object PropertiesChangedEvtKey = new object(); + /// Event dispatched when properties list is available. public event EventHandler PropertiesChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IModelPropertiesChangedEvt_Args args = new Efl.IModelPropertiesChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.AddHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PropertiesChangedEvt. - public void On_PropertiesChangedEvt(Efl.IModelPropertiesChangedEvt_Args e) + public void OnPropertiesChangedEvt(Efl.IModelPropertiesChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertiesChangedEvtKey]; + var key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertiesChangedEvt_delegate; - private void on_PropertiesChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IModelPropertiesChangedEvt_Args args = new Efl.IModelPropertiesChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PropertiesChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ChildAddedEvtKey = new object(); /// Event dispatched when new child is added. public event EventHandler ChildAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IModelChildAddedEvt_Args args = new Efl.IModelChildAddedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_MODEL_EVENT_CHILD_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ChildAddedEvt_delegate)) { - eventHandlers.AddHandler(ChildAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_MODEL_EVENT_CHILD_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ChildAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ChildAddedEvt. - public void On_ChildAddedEvt(Efl.IModelChildAddedEvt_Args e) + public void OnChildAddedEvt(Efl.IModelChildAddedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildAddedEvtKey]; + var key = "_EFL_MODEL_EVENT_CHILD_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildAddedEvt_delegate; - private void on_ChildAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IModelChildAddedEvt_Args args = new Efl.IModelChildAddedEvt_Args(); - args.arg = evt.Info;; - try { - On_ChildAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ChildRemovedEvtKey = new object(); /// Event dispatched when child is removed. public event EventHandler ChildRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IModelChildRemovedEvt_Args args = new Efl.IModelChildRemovedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ChildRemovedEvt_delegate)) { - eventHandlers.AddHandler(ChildRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ChildRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ChildRemovedEvt. - public void On_ChildRemovedEvt(Efl.IModelChildRemovedEvt_Args e) + public void OnChildRemovedEvt(Efl.IModelChildRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildRemovedEvtKey]; + var key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildRemovedEvt_delegate; - private void on_ChildRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IModelChildRemovedEvt_Args args = new Efl.IModelChildRemovedEvt_Args(); - args.arg = evt.Info;; - try { - On_ChildRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ChildrenCountChangedEvtKey = new object(); /// Event dispatched when children count is finished. public event EventHandler ChildrenCountChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ChildrenCountChangedEvt_delegate)) { - eventHandlers.AddHandler(ChildrenCountChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChildrenCountChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildrenCountChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ChildrenCountChangedEvt. - public void On_ChildrenCountChangedEvt(EventArgs e) + public void OnChildrenCountChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildrenCountChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildrenCountChangedEvt_delegate; - private void on_ChildrenCountChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ChildrenCountChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_PropertiesChangedEvt_delegate = new Efl.EventCb(on_PropertiesChangedEvt_NativeCallback); - evt_ChildAddedEvt_delegate = new Efl.EventCb(on_ChildAddedEvt_NativeCallback); - evt_ChildRemovedEvt_delegate = new Efl.EventCb(on_ChildRemovedEvt_NativeCallback); - evt_ChildrenCountChangedEvt_delegate = new Efl.EventCb(on_ChildrenCountChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// To be called when a Child model is created by by the one creating the child object. /// This function is used to properly define the lifecycle of the new Child Model object and make sure that once it has 0 ref except its parent Model, it will be destroyed. This function should only be called once per child. It is useful for who have a lot of children and shouldn't keep more than what is used in memory. - /// virtual public void VolatileMake() { - Efl.LoopModelNativeInherit.efl_loop_model_volatile_make_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.LoopModel.NativeMethods.efl_loop_model_volatile_make_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Get properties from model. @@ -261,7 +340,7 @@ private static object ChildrenCountChangedEvtKey = new object(); /// See also . /// Array of current properties virtual public Eina.Iterator GetProperties() { - var _ret_var = Efl.IModelNativeInherit.efl_model_properties_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_properties_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -271,8 +350,8 @@ private static object ChildrenCountChangedEvtKey = new object(); /// See , /// Property name /// Property value - virtual public Eina.Value GetProperty( System.String property) { - var _ret_var = Efl.IModelNativeInherit.efl_model_property_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), property); + virtual public Eina.Value GetProperty(System.String property) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),property); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -285,8 +364,8 @@ private static object ChildrenCountChangedEvtKey = new object(); /// Property name /// Property value /// Return an error in case the property could not be set, the value that was set otherwise. - virtual public Eina.Future SetProperty( System.String property, Eina.Value value) { - var _ret_var = Efl.IModelNativeInherit.efl_model_property_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), property, value); + virtual public Eina.Future SetProperty(System.String property, Eina.Value value) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),property, value); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -296,7 +375,7 @@ private static object ChildrenCountChangedEvtKey = new object(); /// See also . /// Current known children count virtual public uint GetChildrenCount() { - var _ret_var = Efl.IModelNativeInherit.efl_model_children_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_children_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -304,10 +383,8 @@ private static object ChildrenCountChangedEvtKey = new object(); /// can return an error with code EAGAIN when it doesn't have any meaningful value. To make life easier, this future will resolve when the error:EAGAIN disapears. Either into a failed future in case the error code changed to something else or a success with the value of the property whenever the property finally changes. /// /// The future can also be canceled if the model itself gets destroyed. - /// - /// - virtual public Eina.Future GetPropertyReady( System.String property) { - var _ret_var = Efl.IModelNativeInherit.efl_model_property_ready_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), property); + virtual public Eina.Future GetPropertyReady(System.String property) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_ready_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),property); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -326,8 +403,8 @@ private static object ChildrenCountChangedEvtKey = new object(); /// Range begin - start from here. /// Range size. If count is 0, start is ignored. /// Array of children - virtual public Eina.Future GetChildrenSlice( uint start, uint count) { - var _ret_var = Efl.IModelNativeInherit.efl_model_children_slice_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), start, count); + virtual public Eina.Future GetChildrenSlice(uint start, uint count) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_children_slice_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),start, count); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -335,31 +412,30 @@ private static object ChildrenCountChangedEvtKey = new object(); /// Add a new child, possibly dummy, depending on the implementation, of a internal keeping. When the child is effectively added the event is then raised and the new child is kept along with other children. /// Child object virtual public Efl.Object AddChild() { - var _ret_var = Efl.IModelNativeInherit.efl_model_child_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_child_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Remove a child. /// Remove a child of a internal keeping. When the child is effectively removed the event is then raised to give a chance for listeners to perform any cleanup and/or update references. /// Child to be removed - /// - virtual public void DelChild( Efl.Object child) { - Efl.IModelNativeInherit.efl_model_child_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child); + virtual public void DelChild(Efl.Object child) { + Efl.IModelConcrete.NativeMethods.efl_model_child_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child); Eina.Error.RaiseIfUnhandledException(); } - public System.Threading.Tasks.Task SetPropertyAsync( System.String property, Eina.Value value, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task SetPropertyAsync(System.String property,Eina.Value value, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = SetProperty( property, value); + Eina.Future future = SetProperty( property, value); return Efl.Eo.Globals.WrapAsync(future, token); } - public System.Threading.Tasks.Task GetPropertyReadyAsync( System.String property, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task GetPropertyReadyAsync(System.String property, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = GetPropertyReady( property); + Eina.Future future = GetPropertyReady( property); return Efl.Eo.Globals.WrapAsync(future, token); } - public System.Threading.Tasks.Task GetChildrenSliceAsync( uint start, uint count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task GetChildrenSliceAsync(uint start,uint count, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = GetChildrenSlice( start, count); + Eina.Future future = GetChildrenSlice( start, count); return Efl.Eo.Globals.WrapAsync(future, token); } /// Get properties from model. @@ -382,282 +458,445 @@ private static object ChildrenCountChangedEvtKey = new object(); { return Efl.LoopModel.efl_loop_model_class_get(); } -} -public class LoopModelNativeInherit : Efl.LoopConsumerNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_loop_model_volatile_make_static_delegate == null) - efl_loop_model_volatile_make_static_delegate = new efl_loop_model_volatile_make_delegate(volatile_make); - if (methods.FirstOrDefault(m => m.Name == "VolatileMake") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_model_volatile_make"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_model_volatile_make_static_delegate)}); - if (efl_model_properties_get_static_delegate == null) - efl_model_properties_get_static_delegate = new efl_model_properties_get_delegate(properties_get); - if (methods.FirstOrDefault(m => m.Name == "GetProperties") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_properties_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_properties_get_static_delegate)}); - if (efl_model_property_get_static_delegate == null) - efl_model_property_get_static_delegate = new efl_model_property_get_delegate(property_get); - if (methods.FirstOrDefault(m => m.Name == "GetProperty") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_property_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_get_static_delegate)}); - if (efl_model_property_set_static_delegate == null) - efl_model_property_set_static_delegate = new efl_model_property_set_delegate(property_set); - if (methods.FirstOrDefault(m => m.Name == "SetProperty") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_property_set"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_set_static_delegate)}); - if (efl_model_children_count_get_static_delegate == null) - efl_model_children_count_get_static_delegate = new efl_model_children_count_get_delegate(children_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetChildrenCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_children_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_count_get_static_delegate)}); - if (efl_model_property_ready_get_static_delegate == null) - efl_model_property_ready_get_static_delegate = new efl_model_property_ready_get_delegate(property_ready_get); - if (methods.FirstOrDefault(m => m.Name == "GetPropertyReady") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_property_ready_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_ready_get_static_delegate)}); - if (efl_model_children_slice_get_static_delegate == null) - efl_model_children_slice_get_static_delegate = new efl_model_children_slice_get_delegate(children_slice_get); - if (methods.FirstOrDefault(m => m.Name == "GetChildrenSlice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_children_slice_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_slice_get_static_delegate)}); - if (efl_model_child_add_static_delegate == null) - efl_model_child_add_static_delegate = new efl_model_child_add_delegate(child_add); - if (methods.FirstOrDefault(m => m.Name == "AddChild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_child_add"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_add_static_delegate)}); - if (efl_model_child_del_static_delegate == null) - efl_model_child_del_static_delegate = new efl_model_child_del_delegate(child_del); - if (methods.FirstOrDefault(m => m.Name == "DelChild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_child_del"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_del_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopConsumer.NativeMethods { - return Efl.LoopModel.efl_loop_model_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.LoopModel.efl_loop_model_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_loop_model_volatile_make_static_delegate == null) + { + efl_loop_model_volatile_make_static_delegate = new efl_loop_model_volatile_make_delegate(volatile_make); + } - private delegate void efl_loop_model_volatile_make_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "VolatileMake") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_model_volatile_make"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_model_volatile_make_static_delegate) }); + } + if (efl_model_properties_get_static_delegate == null) + { + efl_model_properties_get_static_delegate = new efl_model_properties_get_delegate(properties_get); + } - public delegate void efl_loop_model_volatile_make_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_model_volatile_make_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_model_volatile_make"); - private static void volatile_make(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_model_volatile_make was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopModel)wrapper).VolatileMake(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetProperties") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_properties_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_properties_get_static_delegate) }); + } + + if (efl_model_property_get_static_delegate == null) + { + efl_model_property_get_static_delegate = new efl_model_property_get_delegate(property_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetProperty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_get_static_delegate) }); + } + + if (efl_model_property_set_static_delegate == null) + { + efl_model_property_set_static_delegate = new efl_model_property_set_delegate(property_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetProperty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_set"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_set_static_delegate) }); + } + + if (efl_model_children_count_get_static_delegate == null) + { + efl_model_children_count_get_static_delegate = new efl_model_children_count_get_delegate(children_count_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetChildrenCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_children_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_count_get_static_delegate) }); + } + + if (efl_model_property_ready_get_static_delegate == null) + { + efl_model_property_ready_get_static_delegate = new efl_model_property_ready_get_delegate(property_ready_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPropertyReady") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_ready_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_ready_get_static_delegate) }); + } + + if (efl_model_children_slice_get_static_delegate == null) + { + efl_model_children_slice_get_static_delegate = new efl_model_children_slice_get_delegate(children_slice_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetChildrenSlice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_children_slice_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_slice_get_static_delegate) }); + } + + if (efl_model_child_add_static_delegate == null) + { + efl_model_child_add_static_delegate = new efl_model_child_add_delegate(child_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddChild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_child_add"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_add_static_delegate) }); } - } else { - efl_loop_model_volatile_make_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_model_child_del_static_delegate == null) + { + efl_model_child_del_static_delegate = new efl_model_child_del_delegate(child_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelChild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_child_del"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_del_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.LoopModel.efl_loop_model_class_get(); } - } - private static efl_loop_model_volatile_make_delegate efl_loop_model_volatile_make_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate System.IntPtr efl_model_properties_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_loop_model_volatile_make_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_loop_model_volatile_make_api_delegate(System.IntPtr obj); - public delegate System.IntPtr efl_model_properties_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_model_properties_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_properties_get"); - private static System.IntPtr properties_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_model_properties_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((LoopModel)wrapper).GetProperties(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_model_volatile_make_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_model_volatile_make"); + + private static void volatile_make(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_model_volatile_make was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopModel)wrapper).VolatileMake(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_model_volatile_make_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_model_properties_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_model_properties_get_delegate efl_model_properties_get_static_delegate; + private static efl_loop_model_volatile_make_delegate efl_loop_model_volatile_make_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] private delegate Eina.Value efl_model_property_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + private delegate System.IntPtr efl_model_properties_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_model_properties_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_properties_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_properties_get"); + + private static System.IntPtr properties_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_properties_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((LoopModel)wrapper).GetProperties(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] public delegate Eina.Value efl_model_property_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); - public static Efl.Eo.FunctionWrapper efl_model_property_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_property_get"); - private static Eina.Value property_get(System.IntPtr obj, System.IntPtr pd, System.String property) - { - Eina.Log.Debug("function efl_model_property_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Value _ret_var = default(Eina.Value); - try { - _ret_var = ((LoopModel)wrapper).GetProperty( property); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_model_property_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + else + { + return efl_model_properties_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_model_property_get_delegate efl_model_property_get_static_delegate; + private static efl_model_properties_get_delegate efl_model_properties_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_model_property_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + private delegate Eina.Value efl_model_property_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + public delegate Eina.Value efl_model_property_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_model_property_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_get"); + + private static Eina.Value property_get(System.IntPtr obj, System.IntPtr pd, System.String property) + { + Eina.Log.Debug("function efl_model_property_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = ((LoopModel)wrapper).GetProperty(property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_model_property_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); - public static Efl.Eo.FunctionWrapper efl_model_property_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_property_set"); - private static Eina.Future property_set(System.IntPtr obj, System.IntPtr pd, System.String property, Eina.Value value) - { - Eina.Log.Debug("function efl_model_property_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((LoopModel)wrapper).SetProperty( property, value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_model_property_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property, value); + else + { + return efl_model_property_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + } } - } - private static efl_model_property_set_delegate efl_model_property_set_static_delegate; + private static efl_model_property_get_delegate efl_model_property_get_static_delegate; - private delegate uint efl_model_children_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_property_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_property_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + + public static Efl.Eo.FunctionWrapper efl_model_property_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_set"); + + private static Eina.Future property_set(System.IntPtr obj, System.IntPtr pd, System.String property, Eina.Value value) + { + Eina.Log.Debug("function efl_model_property_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((LoopModel)wrapper).SetProperty(property, value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate uint efl_model_children_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_model_children_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_children_count_get"); - private static uint children_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_model_children_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((LoopModel)wrapper).GetChildrenCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_model_children_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_model_property_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property, value); + } } - } - private static efl_model_children_count_get_delegate efl_model_children_count_get_static_delegate; + private static efl_model_property_set_delegate efl_model_property_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_model_property_ready_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + private delegate uint efl_model_children_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate uint efl_model_children_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_children_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_children_count_get"); + + private static uint children_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_children_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((LoopModel)wrapper).GetChildrenCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_model_property_ready_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); - public static Efl.Eo.FunctionWrapper efl_model_property_ready_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_property_ready_get"); - private static Eina.Future property_ready_get(System.IntPtr obj, System.IntPtr pd, System.String property) - { - Eina.Log.Debug("function efl_model_property_ready_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((LoopModel)wrapper).GetPropertyReady( property); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_model_property_ready_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + else + { + return efl_model_children_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_model_property_ready_get_delegate efl_model_property_ready_get_static_delegate; + private static efl_model_children_count_get_delegate efl_model_children_count_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_model_children_slice_get_delegate(System.IntPtr obj, System.IntPtr pd, uint start, uint count); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_property_ready_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_property_ready_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_model_property_ready_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_ready_get"); + + private static Eina.Future property_ready_get(System.IntPtr obj, System.IntPtr pd, System.String property) + { + Eina.Log.Debug("function efl_model_property_ready_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((LoopModel)wrapper).GetPropertyReady(property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_model_children_slice_get_api_delegate(System.IntPtr obj, uint start, uint count); - public static Efl.Eo.FunctionWrapper efl_model_children_slice_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_children_slice_get"); - private static Eina.Future children_slice_get(System.IntPtr obj, System.IntPtr pd, uint start, uint count) - { - Eina.Log.Debug("function efl_model_children_slice_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((LoopModel)wrapper).GetChildrenSlice( start, count); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_model_children_slice_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, count); + else + { + return efl_model_property_ready_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + } } - } - private static efl_model_children_slice_get_delegate efl_model_children_slice_get_static_delegate; + private static efl_model_property_ready_get_delegate efl_model_property_ready_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_model_child_add_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_children_slice_get_delegate(System.IntPtr obj, System.IntPtr pd, uint start, uint count); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_children_slice_get_api_delegate(System.IntPtr obj, uint start, uint count); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_model_child_add_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_model_child_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_child_add"); - private static Efl.Object child_add(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_model_child_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((LoopModel)wrapper).AddChild(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_model_children_slice_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_children_slice_get"); + + private static Eina.Future children_slice_get(System.IntPtr obj, System.IntPtr pd, uint start, uint count) + { + Eina.Log.Debug("function efl_model_children_slice_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((LoopModel)wrapper).GetChildrenSlice(start, count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_children_slice_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, count); } + } + + private static efl_model_children_slice_get_delegate efl_model_children_slice_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_model_child_add_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_model_child_add_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_child_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_child_add"); + + private static Efl.Object child_add(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_child_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((LoopModel)wrapper).AddChild(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_model_child_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_model_child_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_model_child_add_delegate efl_model_child_add_static_delegate; + private static efl_model_child_add_delegate efl_model_child_add_static_delegate; - private delegate void efl_model_child_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child); + + private delegate void efl_model_child_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child); + + public delegate void efl_model_child_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child); - public delegate void efl_model_child_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child); - public static Efl.Eo.FunctionWrapper efl_model_child_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_child_del"); - private static void child_del(System.IntPtr obj, System.IntPtr pd, Efl.Object child) - { - Eina.Log.Debug("function efl_model_child_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopModel)wrapper).DelChild( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_model_child_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + public static Efl.Eo.FunctionWrapper efl_model_child_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_child_del"); + + private static void child_del(System.IntPtr obj, System.IntPtr pd, Efl.Object child) + { + Eina.Log.Debug("function efl_model_child_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopModel)wrapper).DelChild(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_model_child_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } } - } - private static efl_model_child_del_delegate efl_model_child_del_static_delegate; + + private static efl_model_child_del_delegate efl_model_child_del_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_timer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_timer.eo.cs index 666242c..deed173 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_timer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_timer.eo.cs @@ -3,159 +3,188 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Timers are objects that will call a given callback at some point in the future and repeat that tick at a given interval. /// Timers require the ecore main loop to be running and functioning properly. They do not guarantee exact timing but try to work on a "best effort" basis. /// /// The and calls are used to pause and unpause the timer. /// (Since EFL 1.22) -[LoopTimerNativeInherit] +[Efl.LoopTimer.NativeMethods] public class LoopTimer : Efl.LoopConsumer, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LoopTimer)) - return Efl.LoopTimerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LoopTimer)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_loop_timer_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Interval the timer ticks on. See + /// Initializes a new instance of the class. + /// Parent instance. + /// Interval the timer ticks on. See public LoopTimer(Efl.Object parent - , double timerInterval) : - base(efl_loop_timer_class_get(), typeof(LoopTimer), parent) + , double timerInterval) : base(efl_loop_timer_class_get(), typeof(LoopTimer), parent) { if (Efl.Eo.Globals.ParamHelperCheck(timerInterval)) + { SetTimerInterval(Efl.Eo.Globals.GetParamHelper(timerInterval)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LoopTimer(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LoopTimer(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LoopTimer(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object TimerTickEvtKey = new object(); + /// Event triggered when the specified time as passed. /// (Since EFL 1.22) public event EventHandler TimerTickEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LOOP_TIMER_EVENT_TIMER_TICK"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_TimerTickEvt_delegate)) { - eventHandlers.AddHandler(TimerTickEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LOOP_TIMER_EVENT_TIMER_TICK"; - if (RemoveNativeEventHandler(key, this.evt_TimerTickEvt_delegate)) { - eventHandlers.RemoveHandler(TimerTickEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event TimerTickEvt. - public void On_TimerTickEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[TimerTickEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_TimerTickEvt_delegate; - private void on_TimerTickEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnTimerTickEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_TimerTickEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LOOP_TIMER_EVENT_TIMER_TICK"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_TimerTickEvt_delegate = new Efl.EventCb(on_TimerTickEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Gets the interval the timer ticks on. /// (Since EFL 1.22) /// The new interval in seconds virtual public double GetTimerInterval() { - var _ret_var = Efl.LoopTimerNativeInherit.efl_loop_timer_interval_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopTimer.NativeMethods.efl_loop_timer_interval_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Changes the interval the timer ticks off. If set during a timer call this will affect the next interval. /// (Since EFL 1.22) /// The new interval in seconds - /// - virtual public void SetTimerInterval( double kw_in) { - Efl.LoopTimerNativeInherit.efl_loop_timer_interval_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_in); + virtual public void SetTimerInterval(double kw_in) { + Efl.LoopTimer.NativeMethods.efl_loop_timer_interval_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_in); Eina.Error.RaiseIfUnhandledException(); } /// Gets the pending time regarding a timer. /// (Since EFL 1.22) /// Pending time virtual public double GetTimePending() { - var _ret_var = Efl.LoopTimerNativeInherit.efl_loop_timer_time_pending_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.LoopTimer.NativeMethods.efl_loop_timer_time_pending_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Resets a timer to its full interval. This effectively makes the timer start ticking off from zero now. /// This is equal to delaying the timer by the already passed time, since the timer started ticking /// (Since EFL 1.22) - /// virtual public void ResetTimer() { - Efl.LoopTimerNativeInherit.efl_loop_timer_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.LoopTimer.NativeMethods.efl_loop_timer_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This effectively resets a timer but based on the time when this iteration of the main loop started. /// (Since EFL 1.22) - /// virtual public void ResetTimerLoop() { - Efl.LoopTimerNativeInherit.efl_loop_timer_loop_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.LoopTimer.NativeMethods.efl_loop_timer_loop_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Adds a delay to the next occurrence of a timer. This doesn't affect the timer interval. /// (Since EFL 1.22) /// The amount of time by which to delay the timer in seconds - /// - virtual public void TimerDelay( double add) { - Efl.LoopTimerNativeInherit.efl_loop_timer_delay_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), add); + virtual public void TimerDelay(double add) { + Efl.LoopTimer.NativeMethods.efl_loop_timer_delay_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),add); Eina.Error.RaiseIfUnhandledException(); } /// Interval the timer ticks on. @@ -163,7 +192,7 @@ private static object TimerTickEvtKey = new object(); /// The new interval in seconds public double TimerInterval { get { return GetTimerInterval(); } - set { SetTimerInterval( value); } + set { SetTimerInterval(value); } } /// Pending time regarding a timer. /// (Since EFL 1.22) @@ -175,193 +204,305 @@ private static object TimerTickEvtKey = new object(); { return Efl.LoopTimer.efl_loop_timer_class_get(); } -} -public class LoopTimerNativeInherit : Efl.LoopConsumerNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_loop_timer_interval_get_static_delegate == null) - efl_loop_timer_interval_get_static_delegate = new efl_loop_timer_interval_get_delegate(timer_interval_get); - if (methods.FirstOrDefault(m => m.Name == "GetTimerInterval") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_timer_interval_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_interval_get_static_delegate)}); - if (efl_loop_timer_interval_set_static_delegate == null) - efl_loop_timer_interval_set_static_delegate = new efl_loop_timer_interval_set_delegate(timer_interval_set); - if (methods.FirstOrDefault(m => m.Name == "SetTimerInterval") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_timer_interval_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_interval_set_static_delegate)}); - if (efl_loop_timer_time_pending_get_static_delegate == null) - efl_loop_timer_time_pending_get_static_delegate = new efl_loop_timer_time_pending_get_delegate(time_pending_get); - if (methods.FirstOrDefault(m => m.Name == "GetTimePending") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_timer_time_pending_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_time_pending_get_static_delegate)}); - if (efl_loop_timer_reset_static_delegate == null) - efl_loop_timer_reset_static_delegate = new efl_loop_timer_reset_delegate(timer_reset); - if (methods.FirstOrDefault(m => m.Name == "ResetTimer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_timer_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_reset_static_delegate)}); - if (efl_loop_timer_loop_reset_static_delegate == null) - efl_loop_timer_loop_reset_static_delegate = new efl_loop_timer_loop_reset_delegate(timer_loop_reset); - if (methods.FirstOrDefault(m => m.Name == "ResetTimerLoop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_timer_loop_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_loop_reset_static_delegate)}); - if (efl_loop_timer_delay_static_delegate == null) - efl_loop_timer_delay_static_delegate = new efl_loop_timer_delay_delegate(timer_delay); - if (methods.FirstOrDefault(m => m.Name == "TimerDelay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_loop_timer_delay"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_delay_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.LoopTimer.efl_loop_timer_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopConsumer.NativeMethods { - return Efl.LoopTimer.efl_loop_timer_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_loop_timer_interval_get_static_delegate == null) + { + efl_loop_timer_interval_get_static_delegate = new efl_loop_timer_interval_get_delegate(timer_interval_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTimerInterval") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_timer_interval_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_interval_get_static_delegate) }); + } + if (efl_loop_timer_interval_set_static_delegate == null) + { + efl_loop_timer_interval_set_static_delegate = new efl_loop_timer_interval_set_delegate(timer_interval_set); + } - private delegate double efl_loop_timer_interval_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetTimerInterval") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_timer_interval_set"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_interval_set_static_delegate) }); + } + if (efl_loop_timer_time_pending_get_static_delegate == null) + { + efl_loop_timer_time_pending_get_static_delegate = new efl_loop_timer_time_pending_get_delegate(time_pending_get); + } - public delegate double efl_loop_timer_interval_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_timer_interval_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_timer_interval_get"); - private static double timer_interval_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_timer_interval_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((LoopTimer)wrapper).GetTimerInterval(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTimePending") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_timer_time_pending_get"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_time_pending_get_static_delegate) }); } - return _ret_var; - } else { - return efl_loop_timer_interval_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_loop_timer_reset_static_delegate == null) + { + efl_loop_timer_reset_static_delegate = new efl_loop_timer_reset_delegate(timer_reset); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetTimer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_timer_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_reset_static_delegate) }); + } + + if (efl_loop_timer_loop_reset_static_delegate == null) + { + efl_loop_timer_loop_reset_static_delegate = new efl_loop_timer_loop_reset_delegate(timer_loop_reset); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetTimerLoop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_timer_loop_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_loop_reset_static_delegate) }); + } + + if (efl_loop_timer_delay_static_delegate == null) + { + efl_loop_timer_delay_static_delegate = new efl_loop_timer_delay_delegate(timer_delay); + } + + if (methods.FirstOrDefault(m => m.Name == "TimerDelay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_timer_delay"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timer_delay_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.LoopTimer.efl_loop_timer_class_get(); } - } - private static efl_loop_timer_interval_get_delegate efl_loop_timer_interval_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_loop_timer_interval_set_delegate(System.IntPtr obj, System.IntPtr pd, double kw_in); + + private delegate double efl_loop_timer_interval_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_loop_timer_interval_get_api_delegate(System.IntPtr obj); - public delegate void efl_loop_timer_interval_set_api_delegate(System.IntPtr obj, double kw_in); - public static Efl.Eo.FunctionWrapper efl_loop_timer_interval_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_timer_interval_set"); - private static void timer_interval_set(System.IntPtr obj, System.IntPtr pd, double kw_in) - { - Eina.Log.Debug("function efl_loop_timer_interval_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopTimer)wrapper).SetTimerInterval( kw_in); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_timer_interval_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_timer_interval_get"); + + private static double timer_interval_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_timer_interval_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((LoopTimer)wrapper).GetTimerInterval(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_loop_timer_interval_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_loop_timer_interval_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_in); } - } - private static efl_loop_timer_interval_set_delegate efl_loop_timer_interval_set_static_delegate; + private static efl_loop_timer_interval_get_delegate efl_loop_timer_interval_get_static_delegate; - private delegate double efl_loop_timer_time_pending_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_loop_timer_interval_set_delegate(System.IntPtr obj, System.IntPtr pd, double kw_in); + + public delegate void efl_loop_timer_interval_set_api_delegate(System.IntPtr obj, double kw_in); - public delegate double efl_loop_timer_time_pending_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_timer_time_pending_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_timer_time_pending_get"); - private static double time_pending_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_timer_time_pending_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((LoopTimer)wrapper).GetTimePending(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_timer_interval_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_timer_interval_set"); + + private static void timer_interval_set(System.IntPtr obj, System.IntPtr pd, double kw_in) + { + Eina.Log.Debug("function efl_loop_timer_interval_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopTimer)wrapper).SetTimerInterval(kw_in); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_loop_timer_interval_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_in); + } + } + + private static efl_loop_timer_interval_set_delegate efl_loop_timer_interval_set_static_delegate; + + + private delegate double efl_loop_timer_time_pending_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_loop_timer_time_pending_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_loop_timer_time_pending_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_timer_time_pending_get"); + + private static double time_pending_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_timer_time_pending_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((LoopTimer)wrapper).GetTimePending(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_loop_timer_time_pending_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_loop_timer_time_pending_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_loop_timer_time_pending_get_delegate efl_loop_timer_time_pending_get_static_delegate; + private static efl_loop_timer_time_pending_get_delegate efl_loop_timer_time_pending_get_static_delegate; - private delegate void efl_loop_timer_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_loop_timer_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_loop_timer_reset_api_delegate(System.IntPtr obj); - public delegate void efl_loop_timer_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_timer_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_timer_reset"); - private static void timer_reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_timer_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopTimer)wrapper).ResetTimer(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_timer_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_timer_reset"); + + private static void timer_reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_timer_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopTimer)wrapper).ResetTimer(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_timer_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_loop_timer_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_loop_timer_reset_delegate efl_loop_timer_reset_static_delegate; + private static efl_loop_timer_reset_delegate efl_loop_timer_reset_static_delegate; - private delegate void efl_loop_timer_loop_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_loop_timer_loop_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_loop_timer_loop_reset_api_delegate(System.IntPtr obj); - public delegate void efl_loop_timer_loop_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_loop_timer_loop_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_timer_loop_reset"); - private static void timer_loop_reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_loop_timer_loop_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopTimer)wrapper).ResetTimerLoop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_timer_loop_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_timer_loop_reset"); + + private static void timer_loop_reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_loop_timer_loop_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopTimer)wrapper).ResetTimerLoop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_timer_loop_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_loop_timer_loop_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_loop_timer_loop_reset_delegate efl_loop_timer_loop_reset_static_delegate; + private static efl_loop_timer_loop_reset_delegate efl_loop_timer_loop_reset_static_delegate; - private delegate void efl_loop_timer_delay_delegate(System.IntPtr obj, System.IntPtr pd, double add); + + private delegate void efl_loop_timer_delay_delegate(System.IntPtr obj, System.IntPtr pd, double add); + + public delegate void efl_loop_timer_delay_api_delegate(System.IntPtr obj, double add); - public delegate void efl_loop_timer_delay_api_delegate(System.IntPtr obj, double add); - public static Efl.Eo.FunctionWrapper efl_loop_timer_delay_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_loop_timer_delay"); - private static void timer_delay(System.IntPtr obj, System.IntPtr pd, double add) - { - Eina.Log.Debug("function efl_loop_timer_delay was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LoopTimer)wrapper).TimerDelay( add); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_loop_timer_delay_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_timer_delay"); + + private static void timer_delay(System.IntPtr obj, System.IntPtr pd, double add) + { + Eina.Log.Debug("function efl_loop_timer_delay was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LoopTimer)wrapper).TimerDelay(add); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_loop_timer_delay_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), add); } - } else { - efl_loop_timer_delay_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), add); } - } - private static efl_loop_timer_delay_delegate efl_loop_timer_delay_static_delegate; + + private static efl_loop_timer_delay_delegate efl_loop_timer_delay_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_model.eo.cs index 2d773a9..9d493d2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_model.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl model interface -[IModelNativeInherit] +[Efl.IModelConcrete.NativeMethods] public interface IModel : Efl.Eo.IWrapper, IDisposable { @@ -22,7 +24,7 @@ Eina.Iterator GetProperties(); /// See , /// Property name /// Property value -Eina.Value GetProperty( System.String property); +Eina.Value GetProperty(System.String property); /// Set a property value of a given property name. /// The caller must ensure to call at least efl_model_prop_list before being able to see/set properties. This function sets a new property value into given property name. Once the operation is completed the concrete implementation should raise event in order to notify listeners of the new value of the property. /// @@ -32,7 +34,7 @@ Eina.Value GetProperty( System.String property); /// Property name /// Property value /// Return an error in case the property could not be set, the value that was set otherwise. - Eina.Future SetProperty( System.String property, Eina.Value value); + Eina.Future SetProperty(System.String property, Eina.Value value); /// Get children count. /// When efl_model_load is completed can be used to get the number of children. can also be used before calling so a valid range is known. Event is emitted when count is finished. /// @@ -43,9 +45,7 @@ uint GetChildrenCount(); /// can return an error with code EAGAIN when it doesn't have any meaningful value. To make life easier, this future will resolve when the error:EAGAIN disapears. Either into a failed future in case the error code changed to something else or a success with the value of the property whenever the property finally changes. /// /// The future can also be canceled if the model itself gets destroyed. -/// -/// - Eina.Future GetPropertyReady( System.String property); + Eina.Future GetPropertyReady(System.String property); /// Get children slice OR full range. /// behaves in two different ways, it may provide the slice if count is non-zero OR full range otherwise. /// @@ -61,7 +61,7 @@ uint GetChildrenCount(); /// Range begin - start from here. /// Range size. If count is 0, start is ignored. /// Array of children - Eina.Future GetChildrenSlice( uint start, uint count); + Eina.Future GetChildrenSlice(uint start, uint count); /// Add a new child. /// Add a new child, possibly dummy, depending on the implementation, of a internal keeping. When the child is effectively added the event is then raised and the new child is kept along with other children. /// Child object @@ -69,11 +69,10 @@ Efl.Object AddChild(); /// Remove a child. /// Remove a child of a internal keeping. When the child is effectively removed the event is then raised to give a chance for listeners to perform any cleanup and/or update references. /// Child to be removed -/// -void DelChild( Efl.Object child); - System.Threading.Tasks.Task SetPropertyAsync( System.String property, Eina.Value value, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); - System.Threading.Tasks.Task GetPropertyReadyAsync( System.String property, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); - System.Threading.Tasks.Task GetChildrenSliceAsync( uint start, uint count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +void DelChild(Efl.Object child); + System.Threading.Tasks.Task SetPropertyAsync(System.String property,Eina.Value value, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPropertyReadyAsync(System.String property, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetChildrenSliceAsync(uint start,uint count, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); /// Event dispatched when properties list is available. event EventHandler PropertiesChangedEvt; /// Event dispatched when new child is added. @@ -121,305 +120,413 @@ IModel { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IModelConcrete)) - return Efl.IModelNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IModelConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_model_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IModelConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IModelConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object PropertiesChangedEvtKey = new object(); + /// Event dispatched when properties list is available. public event EventHandler PropertiesChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IModelPropertiesChangedEvt_Args args = new Efl.IModelPropertiesChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.AddHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PropertiesChangedEvt. - public void On_PropertiesChangedEvt(Efl.IModelPropertiesChangedEvt_Args e) + public void OnPropertiesChangedEvt(Efl.IModelPropertiesChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertiesChangedEvtKey]; + var key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertiesChangedEvt_delegate; - private void on_PropertiesChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IModelPropertiesChangedEvt_Args args = new Efl.IModelPropertiesChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PropertiesChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ChildAddedEvtKey = new object(); /// Event dispatched when new child is added. public event EventHandler ChildAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IModelChildAddedEvt_Args args = new Efl.IModelChildAddedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_MODEL_EVENT_CHILD_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ChildAddedEvt_delegate)) { - eventHandlers.AddHandler(ChildAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_MODEL_EVENT_CHILD_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ChildAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ChildAddedEvt. - public void On_ChildAddedEvt(Efl.IModelChildAddedEvt_Args e) + public void OnChildAddedEvt(Efl.IModelChildAddedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildAddedEvtKey]; + var key = "_EFL_MODEL_EVENT_CHILD_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildAddedEvt_delegate; - private void on_ChildAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IModelChildAddedEvt_Args args = new Efl.IModelChildAddedEvt_Args(); - args.arg = evt.Info;; - try { - On_ChildAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ChildRemovedEvtKey = new object(); /// Event dispatched when child is removed. public event EventHandler ChildRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IModelChildRemovedEvt_Args args = new Efl.IModelChildRemovedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ChildRemovedEvt_delegate)) { - eventHandlers.AddHandler(ChildRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ChildRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ChildRemovedEvt. - public void On_ChildRemovedEvt(Efl.IModelChildRemovedEvt_Args e) + public void OnChildRemovedEvt(Efl.IModelChildRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildRemovedEvtKey]; + var key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildRemovedEvt_delegate; - private void on_ChildRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IModelChildRemovedEvt_Args args = new Efl.IModelChildRemovedEvt_Args(); - args.arg = evt.Info;; - try { - On_ChildRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ChildrenCountChangedEvtKey = new object(); /// Event dispatched when children count is finished. public event EventHandler ChildrenCountChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ChildrenCountChangedEvt_delegate)) { - eventHandlers.AddHandler(ChildrenCountChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChildrenCountChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildrenCountChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ChildrenCountChangedEvt. - public void On_ChildrenCountChangedEvt(EventArgs e) + public void OnChildrenCountChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildrenCountChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildrenCountChangedEvt_delegate; - private void on_ChildrenCountChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ChildrenCountChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_PropertiesChangedEvt_delegate = new Efl.EventCb(on_PropertiesChangedEvt_NativeCallback); - evt_ChildAddedEvt_delegate = new Efl.EventCb(on_ChildAddedEvt_NativeCallback); - evt_ChildRemovedEvt_delegate = new Efl.EventCb(on_ChildRemovedEvt_NativeCallback); - evt_ChildrenCountChangedEvt_delegate = new Efl.EventCb(on_ChildrenCountChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Get properties from model. /// properties_get is due to provide callers a way the fetch the current properties implemented/used by the model. The event will be raised to notify listeners of any modifications in the properties. @@ -427,7 +534,7 @@ private static object ChildrenCountChangedEvtKey = new object(); /// See also . /// Array of current properties public Eina.Iterator GetProperties() { - var _ret_var = Efl.IModelNativeInherit.efl_model_properties_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_properties_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -437,8 +544,8 @@ private static object ChildrenCountChangedEvtKey = new object(); /// See , /// Property name /// Property value - public Eina.Value GetProperty( System.String property) { - var _ret_var = Efl.IModelNativeInherit.efl_model_property_get_ptr.Value.Delegate(this.NativeHandle, property); + public Eina.Value GetProperty(System.String property) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_get_ptr.Value.Delegate(this.NativeHandle,property); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -451,8 +558,8 @@ private static object ChildrenCountChangedEvtKey = new object(); /// Property name /// Property value /// Return an error in case the property could not be set, the value that was set otherwise. - public Eina.Future SetProperty( System.String property, Eina.Value value) { - var _ret_var = Efl.IModelNativeInherit.efl_model_property_set_ptr.Value.Delegate(this.NativeHandle, property, value); + public Eina.Future SetProperty(System.String property, Eina.Value value) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_set_ptr.Value.Delegate(this.NativeHandle,property, value); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -462,7 +569,7 @@ private static object ChildrenCountChangedEvtKey = new object(); /// See also . /// Current known children count public uint GetChildrenCount() { - var _ret_var = Efl.IModelNativeInherit.efl_model_children_count_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_children_count_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -470,10 +577,8 @@ private static object ChildrenCountChangedEvtKey = new object(); /// can return an error with code EAGAIN when it doesn't have any meaningful value. To make life easier, this future will resolve when the error:EAGAIN disapears. Either into a failed future in case the error code changed to something else or a success with the value of the property whenever the property finally changes. /// /// The future can also be canceled if the model itself gets destroyed. - /// - /// - public Eina.Future GetPropertyReady( System.String property) { - var _ret_var = Efl.IModelNativeInherit.efl_model_property_ready_get_ptr.Value.Delegate(this.NativeHandle, property); + public Eina.Future GetPropertyReady(System.String property) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_ready_get_ptr.Value.Delegate(this.NativeHandle,property); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -492,8 +597,8 @@ private static object ChildrenCountChangedEvtKey = new object(); /// Range begin - start from here. /// Range size. If count is 0, start is ignored. /// Array of children - public Eina.Future GetChildrenSlice( uint start, uint count) { - var _ret_var = Efl.IModelNativeInherit.efl_model_children_slice_get_ptr.Value.Delegate(this.NativeHandle, start, count); + public Eina.Future GetChildrenSlice(uint start, uint count) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_children_slice_get_ptr.Value.Delegate(this.NativeHandle,start, count); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -501,31 +606,30 @@ private static object ChildrenCountChangedEvtKey = new object(); /// Add a new child, possibly dummy, depending on the implementation, of a internal keeping. When the child is effectively added the event is then raised and the new child is kept along with other children. /// Child object public Efl.Object AddChild() { - var _ret_var = Efl.IModelNativeInherit.efl_model_child_add_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_child_add_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Remove a child. /// Remove a child of a internal keeping. When the child is effectively removed the event is then raised to give a chance for listeners to perform any cleanup and/or update references. /// Child to be removed - /// - public void DelChild( Efl.Object child) { - Efl.IModelNativeInherit.efl_model_child_del_ptr.Value.Delegate(this.NativeHandle, child); + public void DelChild(Efl.Object child) { + Efl.IModelConcrete.NativeMethods.efl_model_child_del_ptr.Value.Delegate(this.NativeHandle,child); Eina.Error.RaiseIfUnhandledException(); } - public System.Threading.Tasks.Task SetPropertyAsync( System.String property, Eina.Value value, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task SetPropertyAsync(System.String property,Eina.Value value, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = SetProperty( property, value); + Eina.Future future = SetProperty( property, value); return Efl.Eo.Globals.WrapAsync(future, token); } - public System.Threading.Tasks.Task GetPropertyReadyAsync( System.String property, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task GetPropertyReadyAsync(System.String property, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = GetPropertyReady( property); + Eina.Future future = GetPropertyReady( property); return Efl.Eo.Globals.WrapAsync(future, token); } - public System.Threading.Tasks.Task GetChildrenSliceAsync( uint start, uint count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task GetChildrenSliceAsync(uint start,uint count, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = GetChildrenSlice( start, count); + Eina.Future future = GetChildrenSlice( start, count); return Efl.Eo.Globals.WrapAsync(future, token); } /// Get properties from model. @@ -548,257 +652,404 @@ private static object ChildrenCountChangedEvtKey = new object(); { return Efl.IModelConcrete.efl_model_interface_get(); } -} -public class IModelNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_model_properties_get_static_delegate == null) - efl_model_properties_get_static_delegate = new efl_model_properties_get_delegate(properties_get); - if (methods.FirstOrDefault(m => m.Name == "GetProperties") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_properties_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_properties_get_static_delegate)}); - if (efl_model_property_get_static_delegate == null) - efl_model_property_get_static_delegate = new efl_model_property_get_delegate(property_get); - if (methods.FirstOrDefault(m => m.Name == "GetProperty") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_property_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_get_static_delegate)}); - if (efl_model_property_set_static_delegate == null) - efl_model_property_set_static_delegate = new efl_model_property_set_delegate(property_set); - if (methods.FirstOrDefault(m => m.Name == "SetProperty") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_property_set"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_set_static_delegate)}); - if (efl_model_children_count_get_static_delegate == null) - efl_model_children_count_get_static_delegate = new efl_model_children_count_get_delegate(children_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetChildrenCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_children_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_count_get_static_delegate)}); - if (efl_model_property_ready_get_static_delegate == null) - efl_model_property_ready_get_static_delegate = new efl_model_property_ready_get_delegate(property_ready_get); - if (methods.FirstOrDefault(m => m.Name == "GetPropertyReady") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_property_ready_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_ready_get_static_delegate)}); - if (efl_model_children_slice_get_static_delegate == null) - efl_model_children_slice_get_static_delegate = new efl_model_children_slice_get_delegate(children_slice_get); - if (methods.FirstOrDefault(m => m.Name == "GetChildrenSlice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_children_slice_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_slice_get_static_delegate)}); - if (efl_model_child_add_static_delegate == null) - efl_model_child_add_static_delegate = new efl_model_child_add_delegate(child_add); - if (methods.FirstOrDefault(m => m.Name == "AddChild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_child_add"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_add_static_delegate)}); - if (efl_model_child_del_static_delegate == null) - efl_model_child_del_static_delegate = new efl_model_child_del_delegate(child_del); - if (methods.FirstOrDefault(m => m.Name == "DelChild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_model_child_del"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_del_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IModelConcrete.efl_model_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IModelConcrete.efl_model_interface_get(); - } + 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_model_properties_get_static_delegate == null) + { + efl_model_properties_get_static_delegate = new efl_model_properties_get_delegate(properties_get); + } - private delegate System.IntPtr efl_model_properties_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetProperties") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_properties_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_properties_get_static_delegate) }); + } + if (efl_model_property_get_static_delegate == null) + { + efl_model_property_get_static_delegate = new efl_model_property_get_delegate(property_get); + } - public delegate System.IntPtr efl_model_properties_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_model_properties_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_properties_get"); - private static System.IntPtr properties_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_model_properties_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IModel)wrapper).GetProperties(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetProperty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_get_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_model_properties_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_model_property_set_static_delegate == null) + { + efl_model_property_set_static_delegate = new efl_model_property_set_delegate(property_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetProperty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_set"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_set_static_delegate) }); + } + + if (efl_model_children_count_get_static_delegate == null) + { + efl_model_children_count_get_static_delegate = new efl_model_children_count_get_delegate(children_count_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetChildrenCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_children_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_count_get_static_delegate) }); + } + + if (efl_model_property_ready_get_static_delegate == null) + { + efl_model_property_ready_get_static_delegate = new efl_model_property_ready_get_delegate(property_ready_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPropertyReady") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_ready_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_ready_get_static_delegate) }); + } + + if (efl_model_children_slice_get_static_delegate == null) + { + efl_model_children_slice_get_static_delegate = new efl_model_children_slice_get_delegate(children_slice_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetChildrenSlice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_children_slice_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_slice_get_static_delegate) }); + } + + if (efl_model_child_add_static_delegate == null) + { + efl_model_child_add_static_delegate = new efl_model_child_add_delegate(child_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddChild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_child_add"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_add_static_delegate) }); + } + + if (efl_model_child_del_static_delegate == null) + { + efl_model_child_del_static_delegate = new efl_model_child_del_delegate(child_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelChild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_child_del"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_del_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.IModelConcrete.efl_model_interface_get(); } - } - private static efl_model_properties_get_delegate efl_model_properties_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] private delegate Eina.Value efl_model_property_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + private delegate System.IntPtr efl_model_properties_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_model_properties_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_properties_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_properties_get"); + + private static System.IntPtr properties_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_properties_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IModel)wrapper).GetProperties(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] public delegate Eina.Value efl_model_property_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); - public static Efl.Eo.FunctionWrapper efl_model_property_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_property_get"); - private static Eina.Value property_get(System.IntPtr obj, System.IntPtr pd, System.String property) - { - Eina.Log.Debug("function efl_model_property_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Value _ret_var = default(Eina.Value); - try { - _ret_var = ((IModel)wrapper).GetProperty( property); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_model_property_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + else + { + return efl_model_properties_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_model_property_get_delegate efl_model_property_get_static_delegate; + private static efl_model_properties_get_delegate efl_model_properties_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_model_property_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + private delegate Eina.Value efl_model_property_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + public delegate Eina.Value efl_model_property_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_model_property_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_get"); + + private static Eina.Value property_get(System.IntPtr obj, System.IntPtr pd, System.String property) + { + Eina.Log.Debug("function efl_model_property_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = ((IModel)wrapper).GetProperty(property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_model_property_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); - public static Efl.Eo.FunctionWrapper efl_model_property_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_property_set"); - private static Eina.Future property_set(System.IntPtr obj, System.IntPtr pd, System.String property, Eina.Value value) - { - Eina.Log.Debug("function efl_model_property_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((IModel)wrapper).SetProperty( property, value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_model_property_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property, value); + else + { + return efl_model_property_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + } } - } - private static efl_model_property_set_delegate efl_model_property_set_static_delegate; + private static efl_model_property_get_delegate efl_model_property_get_static_delegate; - private delegate uint efl_model_children_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_property_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_property_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + + public static Efl.Eo.FunctionWrapper efl_model_property_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_set"); + + private static Eina.Future property_set(System.IntPtr obj, System.IntPtr pd, System.String property, Eina.Value value) + { + Eina.Log.Debug("function efl_model_property_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((IModel)wrapper).SetProperty(property, value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate uint efl_model_children_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_model_children_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_children_count_get"); - private static uint children_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_model_children_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((IModel)wrapper).GetChildrenCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_model_children_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_model_property_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property, value); + } } - } - private static efl_model_children_count_get_delegate efl_model_children_count_get_static_delegate; + private static efl_model_property_set_delegate efl_model_property_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_model_property_ready_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + private delegate uint efl_model_children_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate uint efl_model_children_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_children_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_children_count_get"); + + private static uint children_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_children_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((IModel)wrapper).GetChildrenCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_model_property_ready_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); - public static Efl.Eo.FunctionWrapper efl_model_property_ready_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_property_ready_get"); - private static Eina.Future property_ready_get(System.IntPtr obj, System.IntPtr pd, System.String property) - { - Eina.Log.Debug("function efl_model_property_ready_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((IModel)wrapper).GetPropertyReady( property); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_model_property_ready_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + else + { + return efl_model_children_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_model_property_ready_get_delegate efl_model_property_ready_get_static_delegate; + private static efl_model_children_count_get_delegate efl_model_children_count_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_model_children_slice_get_delegate(System.IntPtr obj, System.IntPtr pd, uint start, uint count); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_property_ready_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_property_ready_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_model_property_ready_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_ready_get"); + + private static Eina.Future property_ready_get(System.IntPtr obj, System.IntPtr pd, System.String property) + { + Eina.Log.Debug("function efl_model_property_ready_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((IModel)wrapper).GetPropertyReady(property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_model_children_slice_get_api_delegate(System.IntPtr obj, uint start, uint count); - public static Efl.Eo.FunctionWrapper efl_model_children_slice_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_children_slice_get"); - private static Eina.Future children_slice_get(System.IntPtr obj, System.IntPtr pd, uint start, uint count) - { - Eina.Log.Debug("function efl_model_children_slice_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((IModel)wrapper).GetChildrenSlice( start, count); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_model_children_slice_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, count); + else + { + return efl_model_property_ready_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + } } - } - private static efl_model_children_slice_get_delegate efl_model_children_slice_get_static_delegate; + private static efl_model_property_ready_get_delegate efl_model_property_ready_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_model_child_add_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_children_slice_get_delegate(System.IntPtr obj, System.IntPtr pd, uint start, uint count); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_children_slice_get_api_delegate(System.IntPtr obj, uint start, uint count); + + public static Efl.Eo.FunctionWrapper efl_model_children_slice_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_children_slice_get"); + + private static Eina.Future children_slice_get(System.IntPtr obj, System.IntPtr pd, uint start, uint count) + { + Eina.Log.Debug("function efl_model_children_slice_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((IModel)wrapper).GetChildrenSlice(start, count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_model_child_add_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_model_child_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_child_add"); - private static Efl.Object child_add(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_model_child_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((IModel)wrapper).AddChild(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_model_children_slice_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, count); + } + } + + private static efl_model_children_slice_get_delegate efl_model_children_slice_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_model_child_add_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_model_child_add_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_child_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_child_add"); + + private static Efl.Object child_add(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_child_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((IModel)wrapper).AddChild(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_model_child_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_model_child_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_model_child_add_delegate efl_model_child_add_static_delegate; + private static efl_model_child_add_delegate efl_model_child_add_static_delegate; - private delegate void efl_model_child_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child); + + private delegate void efl_model_child_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child); + + + public delegate void efl_model_child_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child); + public static Efl.Eo.FunctionWrapper efl_model_child_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_child_del"); - public delegate void efl_model_child_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child); - public static Efl.Eo.FunctionWrapper efl_model_child_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_model_child_del"); - private static void child_del(System.IntPtr obj, System.IntPtr pd, Efl.Object child) - { - Eina.Log.Debug("function efl_model_child_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IModel)wrapper).DelChild( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void child_del(System.IntPtr obj, System.IntPtr pd, Efl.Object child) + { + Eina.Log.Debug("function efl_model_child_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IModel)wrapper).DelChild(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_model_child_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); } - } else { - efl_model_child_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); } - } - private static efl_model_child_del_delegate efl_model_child_del_static_delegate; + + private static efl_model_child_del_delegate efl_model_child_del_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} -namespace Efl { + +namespace Efl { + /// EFL model property event data structure [StructLayout(LayoutKind.Sequential)] public struct ModelPropertyEvent @@ -809,8 +1060,8 @@ public struct ModelPropertyEvent public Eina.Array Invalidated_properties; ///Constructor for ModelPropertyEvent. public ModelPropertyEvent( - Eina.Array Changed_properties=default(Eina.Array), - Eina.Array Invalidated_properties=default(Eina.Array) ) + Eina.Array Changed_properties = default(Eina.Array), + Eina.Array Invalidated_properties = default(Eina.Array) ) { this.Changed_properties = Changed_properties; this.Invalidated_properties = Invalidated_properties; @@ -852,8 +1103,10 @@ public struct ModelPropertyEvent } -} -namespace Efl { +} + +namespace Efl { + /// Every time a child is added the event is dispatched passing along this structure. [StructLayout(LayoutKind.Sequential)] public struct ModelChildrenEvent @@ -864,8 +1117,8 @@ public struct ModelChildrenEvent public Efl.Object Child; ///Constructor for ModelChildrenEvent. public ModelChildrenEvent( - uint Index=default(uint), - Efl.Object Child=default(Efl.Object) ) + uint Index = default(uint), + Efl.Object Child = default(Efl.Object) ) { this.Index = Index; this.Child = Child; @@ -908,4 +1161,5 @@ public struct ModelChildrenEvent } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_object.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_object.eo.cs index 2be7aaf..19844b9 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_object.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_object.eo.cs @@ -3,76 +3,105 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { -public struct CallbackPriority { +namespace Efl { + +public struct CallbackPriority +{ private short payload; public static implicit operator CallbackPriority(short x) { return new CallbackPriority{payload=x}; } + public static implicit operator short(CallbackPriority x) { return x.payload; } + } -} -namespace Efl { -public partial class Constants { + +} + +namespace Efl { + +public partial class Constants +{ public static readonly Efl.CallbackPriority CallbackPriorityBefore = -100; } -} -namespace Efl { -public partial class Constants { +} + +namespace Efl { + +public partial class Constants +{ public static readonly Efl.CallbackPriority CallbackPriorityDefault = 0; } -} -namespace Efl { -public partial class Constants { +} + +namespace Efl { + +public partial class Constants +{ public static readonly Efl.CallbackPriority CallbackPriorityAfter = 100; } -} -namespace Efl { +} + +namespace Efl { + /// Abstract EFL object class. /// All EFL objects inherit from this class, which provides basic functionality like naming, debugging, hierarchy traversal, event emission and life cycle management. /// /// Life Cycle Objects are created with efl_add() and mostly disposed of with efl_del(). As an optimization, efl_add() accepts a list of initialization functions which the programmer can use to further customize the object before it is fully constructed. Also, objects can have a parent which will keep them alive as long as the parent is alive, so the programmer does not need to keep track of references. (See the property for details). Due to the above characteristics, EFL objects undergo the following phases during their Life Cycle: - Construction: The Efl.Object.constructor method is called. Afterwards, any user-supplied initialization methods are called. - Finalization: The method is called and is set to true when it returns. Object is usable at this point. - Invalidation: The object has lost its parent. The method is called so all the object's relationships can be terminated. is set to true. - Destruction: The object has no parent and it can be destroyed. The method is called, use it to return any resources the object might have gathered during its life. /// (Since EFL 1.22) -[ObjectNativeInherit] +[Efl.Object.NativeMethods] public abstract class Object : Efl.Eo.IWrapper, IDisposable { ///Pointer to the native class description. - public virtual System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Object)) - return Efl.ObjectNativeInherit.GetEflClassStatic(); + public virtual System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Object)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - protected EventHandlerList eventHandlers = new EventHandlerList(); + + protected Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + protected readonly object eventLock = new object(); protected bool inherited; protected System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Eo)] internal static extern System.IntPtr efl_object_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Object(Efl.Object parent= null - ) : - this(efl_object_class_get(), typeof(Object), parent) + ) : this(efl_object_class_get(), typeof(Object), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Object(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } + [Efl.Eo.PrivateNativeClass] private class ObjectRealized : Object { @@ -80,303 +109,385 @@ public abstract class Object : Efl.Eo.IWrapper, IDisposable { } } - protected Object(IntPtr base_klass, System.Type managed_type, Efl.Object parent) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to actually call the native library constructors. C# subclasses + /// must use the public constructor only. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Object(IntPtr baseKlass, System.Type managedType, Efl.Object parent) { - inherited = ((object)this).GetType() != managed_type; - IntPtr actual_klass = base_klass; - if (inherited) { - actual_klass = Efl.Eo.ClassRegister.GetInheritKlassOrRegister(base_klass, ((object)this).GetType()); + inherited = ((object)this).GetType() != managedType; + IntPtr actual_klass = baseKlass; + if (inherited) + { + actual_klass = Efl.Eo.ClassRegister.GetInheritKlassOrRegister(baseKlass, ((object)this).GetType()); } + handle = Efl.Eo.Globals.instantiate_start(actual_klass, parent); - RegisterEventProxies(); if (inherited) { Efl.Eo.Globals.PrivateDataSet(this); } } + + /// Finishes instantiating this object. + /// Internal usage by generated code. protected void FinishInstantiation() { handle = Efl.Eo.Globals.instantiate_end(handle); Eina.Error.RaiseIfUnhandledException(); } + ///Destructor. ~Object() { Dispose(false); } + ///Releases the underlying native instance. protected virtual void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - protected readonly object eventLock = new object(); - protected Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - protected bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + protected void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - protected bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + protected void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object DelEvtKey = new object(); + /// Object is being deleted. See . /// (Since EFL 1.22) public event EventHandler DelEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_DEL"; - if (AddNativeEventHandler(efl.Libs.Eo, key, this.evt_DelEvt_delegate)) { - eventHandlers.AddHandler(DelEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_DEL"; - if (RemoveNativeEventHandler(key, this.evt_DelEvt_delegate)) { - eventHandlers.RemoveHandler(DelEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Eo, key, value); } } } ///Method to raise event DelEvt. - public void On_DelEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DelEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DelEvt_delegate; - private void on_DelEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDelEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_DelEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_DEL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object InvalidateEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Object is being invalidated and losing its parent. See . /// (Since EFL 1.22) public event EventHandler InvalidateEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_INVALIDATE"; - if (AddNativeEventHandler(efl.Libs.Eo, key, this.evt_InvalidateEvt_delegate)) { - eventHandlers.AddHandler(InvalidateEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_INVALIDATE"; - if (RemoveNativeEventHandler(key, this.evt_InvalidateEvt_delegate)) { - eventHandlers.RemoveHandler(InvalidateEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Eo, key, value); } } } ///Method to raise event InvalidateEvt. - public void On_InvalidateEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[InvalidateEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_InvalidateEvt_delegate; - private void on_InvalidateEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnInvalidateEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_InvalidateEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_INVALIDATE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object NorefEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Object has lost its last reference, only parent relationship is keeping it alive. Advanced usage. /// (Since EFL 1.22) public event EventHandler NorefEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_NOREF"; - if (AddNativeEventHandler(efl.Libs.Eo, key, this.evt_NorefEvt_delegate)) { - eventHandlers.AddHandler(NorefEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_NOREF"; - if (RemoveNativeEventHandler(key, this.evt_NorefEvt_delegate)) { - eventHandlers.RemoveHandler(NorefEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Eo, key, value); } } } ///Method to raise event NorefEvt. - public void On_NorefEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[NorefEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_NorefEvt_delegate; - private void on_NorefEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnNorefEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_NorefEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_NOREF"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DestructEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Object has been fully destroyed. It can not be used beyond this point. This event should only serve to clean up any reference you keep to the object. /// (Since EFL 1.22) public event EventHandler DestructEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_EVENT_DESTRUCT"; - if (AddNativeEventHandler(efl.Libs.Eo, key, this.evt_DestructEvt_delegate)) { - eventHandlers.AddHandler(DestructEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Eo, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_EVENT_DESTRUCT"; - if (RemoveNativeEventHandler(key, this.evt_DestructEvt_delegate)) { - eventHandlers.RemoveHandler(DestructEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Eo, key, value); } } } ///Method to raise event DestructEvt. - public void On_DestructEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DestructEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DestructEvt_delegate; - private void on_DestructEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDestructEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_DestructEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_EVENT_DESTRUCT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Eo, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected virtual void RegisterEventProxies() - { - evt_DelEvt_delegate = new Efl.EventCb(on_DelEvt_NativeCallback); - evt_InvalidateEvt_delegate = new Efl.EventCb(on_InvalidateEvt_NativeCallback); - evt_NorefEvt_delegate = new Efl.EventCb(on_NorefEvt_NativeCallback); - evt_DestructEvt_delegate = new Efl.EventCb(on_DestructEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// The parent of an object. /// Parents keep references to their children and will release these references when destroyed. In this way, objects can be assigned to a parent upon creation, tying their life cycle so the programmer does not need to worry about destroying the child object. In order to destroy an object before its parent, set the parent to NULL and use efl_unref(), or use efl_del() directly. @@ -387,7 +498,7 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// The new parent. virtual public Efl.Object GetParent() { - var _ret_var = Efl.ObjectNativeInherit.efl_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Object.NativeMethods.efl_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -399,9 +510,8 @@ private static object DestructEvtKey = new object(); /// For example: If you have a widget which can swallow objects into an internal box, the parent of the swallowed objects should be the widget, not the internal box. The user is not even aware of the existence of the internal box. /// (Since EFL 1.22) /// The new parent. - /// - virtual public void SetParent( Efl.Object parent) { - Efl.ObjectNativeInherit.efl_parent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), parent); + virtual public void SetParent(Efl.Object parent) { + Efl.Object.NativeMethods.efl_parent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),parent); Eina.Error.RaiseIfUnhandledException(); } /// The name of the object. @@ -409,7 +519,7 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// The name. virtual public System.String GetName() { - var _ret_var = Efl.ObjectNativeInherit.efl_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Object.NativeMethods.efl_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -417,9 +527,8 @@ private static object DestructEvtKey = new object(); /// Every EFL object can have a name. Names may not contain the following characters: / ? * [ ] ! : Using any of these in a name will result in undefined behavior later on. An empty string is considered the same as a NULL string or no string for the name. /// (Since EFL 1.22) /// The name. - /// - virtual public void SetName( System.String name) { - Efl.ObjectNativeInherit.efl_name_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public void SetName(System.String name) { + Efl.Object.NativeMethods.efl_name_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); } /// A human readable comment for the object. @@ -427,7 +536,7 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// The comment. virtual public System.String GetComment() { - var _ret_var = Efl.ObjectNativeInherit.efl_comment_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Object.NativeMethods.efl_comment_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -435,9 +544,8 @@ private static object DestructEvtKey = new object(); /// Every EFL object can have a comment. This is intended for developers and debugging. An empty string is considered the same as a NULL string or no string for the comment. /// (Since EFL 1.22) /// The comment. - /// - virtual public void SetComment( System.String comment) { - Efl.ObjectNativeInherit.efl_comment_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), comment); + virtual public void SetComment(System.String comment) { + Efl.Object.NativeMethods.efl_comment_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),comment); Eina.Error.RaiseIfUnhandledException(); } /// Return the global count of freeze events. @@ -445,7 +553,7 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// The global event freeze count. public static int GetEventGlobalFreezeCount() { - var _ret_var = Efl.ObjectNativeInherit.efl_event_global_freeze_count_get_ptr.Value.Delegate(); + var _ret_var = Efl.Object.NativeMethods.efl_event_global_freeze_count_get_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -454,7 +562,7 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// The event freeze count of this object. virtual public int GetEventFreezeCount() { - var _ret_var = Efl.ObjectNativeInherit.efl_event_freeze_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Object.NativeMethods.efl_event_freeze_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -462,7 +570,7 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// true if the object is finalized, false otherwise. virtual public bool GetFinalized() { - var _ret_var = Efl.ObjectNativeInherit.efl_finalized_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Object.NativeMethods.efl_finalized_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -470,7 +578,7 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// true if the object is invalidated, false otherwise. virtual public bool GetInvalidated() { - var _ret_var = Efl.ObjectNativeInherit.efl_invalidated_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Object.NativeMethods.efl_invalidated_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -478,7 +586,7 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// true if the object is invalidating, false otherwise. virtual public bool GetInvalidating() { - var _ret_var = Efl.ObjectNativeInherit.efl_invalidating_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Object.NativeMethods.efl_invalidating_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -491,7 +599,7 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// Whether to allow efl_unref() to zero even if is not null. virtual public bool GetAllowParentUnref() { - var _ret_var = Efl.ObjectNativeInherit.efl_allow_parent_unref_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Object.NativeMethods.efl_allow_parent_unref_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -503,9 +611,8 @@ private static object DestructEvtKey = new object(); /// Warning: Use this function very carefully, unless you're absolutely sure of what you are doing. /// (Since EFL 1.22) /// Whether to allow efl_unref() to zero even if is not null. - /// - virtual public void SetAllowParentUnref( bool allow) { - Efl.ObjectNativeInherit.efl_allow_parent_unref_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), allow); + virtual public void SetAllowParentUnref(bool allow) { + Efl.Object.NativeMethods.efl_allow_parent_unref_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),allow); Eina.Error.RaiseIfUnhandledException(); } /// Build a read-only name for this object used for debugging. @@ -516,9 +623,8 @@ private static object DestructEvtKey = new object(); /// Usually more debug information should be added to sb after calling the super function. /// (Since EFL 1.22) /// A string buffer, must not be null. - /// - virtual public void DebugNameOverride( Eina.Strbuf sb) { - Efl.ObjectNativeInherit.efl_debug_name_override_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sb); + virtual public void DebugNameOverride(Eina.Strbuf sb) { + Efl.Object.NativeMethods.efl_debug_name_override_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sb); Eina.Error.RaiseIfUnhandledException(); } /// Searches upwards in the object tree for a provider which knows the given class/interface. @@ -526,17 +632,16 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// The class identifier to search for. /// Object from the provider list. - virtual public Efl.Object FindProvider( Type klass) { - var _ret_var = Efl.ObjectNativeInherit.efl_provider_find_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), klass); + virtual public Efl.Object FindProvider(Type klass) { + var _ret_var = Efl.Object.NativeMethods.efl_provider_find_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),klass); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Implement this method to provide deinitialization code for your object if you need it. /// Will be called once has returned. See the Life Cycle section in this class' description. /// (Since EFL 1.22) - /// virtual public void Destructor() { - Efl.ObjectNativeInherit.efl_destructor_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Object.NativeMethods.efl_destructor_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Implement this method to finish the initialization of your object after all (if any) user-provided configuration methods have been executed. @@ -544,16 +649,15 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// The new object. Return NULL to abort object creation. virtual public Efl.Object FinalizeAdd() { - var _ret_var = Efl.ObjectNativeInherit.efl_finalize_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Object.NativeMethods.efl_finalize_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Implement this method to perform special actions when your object loses its parent, if you need to. /// It is called when the parent reference is lost or set to NULL. After this call returns, is set to true. This allows a simpler tear down of complex hierarchies, by performing object destruction in two steps, first all object relationships are broken and then the isolated objects are destroyed. Performing everything in the can sometimes lead to deadlocks, but implementing this method is optional if this is not your case. When an object with a parent is destroyed, it first receives a call to and then to . See the Life Cycle section in this class' description. /// (Since EFL 1.22) - /// virtual public void Invalidate() { - Efl.ObjectNativeInherit.efl_invalidate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Object.NativeMethods.efl_invalidate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Find a child object with the given name and return it. @@ -561,33 +665,30 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// The name search string. /// The first object found. - virtual public Efl.Object FindName( System.String search) { - var _ret_var = Efl.ObjectNativeInherit.efl_name_find_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), search); + virtual public Efl.Object FindName(System.String search) { + var _ret_var = Efl.Object.NativeMethods.efl_name_find_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),search); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Thaw events of object. /// Allows event callbacks to be called again for this object after a call to . The amount of thaws must match the amount of freezes for events to be re-enabled. /// (Since EFL 1.22) - /// virtual public void ThawEvent() { - Efl.ObjectNativeInherit.efl_event_thaw_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Object.NativeMethods.efl_event_thaw_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Freeze events of this object. /// Prevents event callbacks from being called for this object. Enable events again using . Events marked hot cannot be stopped. /// (Since EFL 1.22) - /// virtual public void FreezeEvent() { - Efl.ObjectNativeInherit.efl_event_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Object.NativeMethods.efl_event_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Gobally thaw events for ALL EFL OBJECTS. /// Allows event callbacks to be called for all EFL objects after they have been disabled by . The amount of thaws must match the amount of freezes for events to be re-enabled. /// (Since EFL 1.22) - /// public static void ThawEventGlobal() { - Efl.ObjectNativeInherit.efl_event_global_thaw_ptr.Value.Delegate(); + Efl.Object.NativeMethods.efl_event_global_thaw_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); } /// Globally freeze events for ALL EFL OBJECTS. @@ -595,34 +696,31 @@ private static object DestructEvtKey = new object(); /// /// Note: USE WITH CAUTION. /// (Since EFL 1.22) - /// public static void FreezeEventGlobal() { - Efl.ObjectNativeInherit.efl_event_global_freeze_ptr.Value.Delegate(); + Efl.Object.NativeMethods.efl_event_global_freeze_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); } /// Stop the current callback call. /// This stops the current callback call. Any other callbacks for the current event will not be called. This is useful when you want to filter out events. Just add higher priority events and call this under certain conditions to block a certain event. /// (Since EFL 1.22) - /// virtual public void EventCallbackStop() { - Efl.ObjectNativeInherit.efl_event_callback_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Object.NativeMethods.efl_event_callback_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Remove an event callback forwarder for a specified event and object. /// (Since EFL 1.22) /// The description of the event to listen to /// The object to emit events from - /// - virtual public void DelEventCallbackForwarder( Efl.EventDescription desc, Efl.Object new_obj) { + virtual public void DelEventCallbackForwarder(Efl.EventDescription desc, Efl.Object new_obj) { var _in_desc = Eina.PrimitiveConversion.ManagedToPointerAlloc(desc); - Efl.ObjectNativeInherit.efl_event_callback_forwarder_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_desc, new_obj); + Efl.Object.NativeMethods.efl_event_callback_forwarder_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_desc, new_obj); Eina.Error.RaiseIfUnhandledException(); } /// Get an iterator on all childrens /// (Since EFL 1.22) /// Children iterator virtual public Eina.Iterator NewChildrenIterator() { - var _ret_var = Efl.ObjectNativeInherit.efl_children_iterator_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Object.NativeMethods.efl_children_iterator_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -633,8 +731,8 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// the object that will be used to composite the parent. /// true if successful. false otherwise. - virtual public bool AttachComposite( Efl.Object comp_obj) { - var _ret_var = Efl.ObjectNativeInherit.efl_composite_attach_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), comp_obj); + virtual public bool AttachComposite(Efl.Object comp_obj) { + var _ret_var = Efl.Object.NativeMethods.efl_composite_attach_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),comp_obj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -645,8 +743,8 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// The object that will be removed from the parent. /// true if successful. false otherwise. - virtual public bool CompositeDetach( Efl.Object comp_obj) { - var _ret_var = Efl.ObjectNativeInherit.efl_composite_detach_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), comp_obj); + virtual public bool CompositeDetach(Efl.Object comp_obj) { + var _ret_var = Efl.Object.NativeMethods.efl_composite_detach_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),comp_obj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -655,7 +753,7 @@ private static object DestructEvtKey = new object(); /// (Since EFL 1.22) /// true if it is. false otherwise. virtual public bool IsCompositePart() { - var _ret_var = Efl.ObjectNativeInherit.efl_composite_part_is_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Object.NativeMethods.efl_composite_part_is_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -669,7 +767,7 @@ private static object DestructEvtKey = new object(); /// The new parent. public Efl.Object Parent { get { return GetParent(); } - set { SetParent( value); } + set { SetParent(value); } } /// The name of the object. /// Every EFL object can have a name. Names may not contain the following characters: / ? * [ ] ! : Using any of these in a name will result in undefined behavior later on. An empty string is considered the same as a NULL string or no string for the name. @@ -677,7 +775,7 @@ private static object DestructEvtKey = new object(); /// The name. public System.String Name { get { return GetName(); } - set { SetName( value); } + set { SetName(value); } } /// A human readable comment for the object. /// Every EFL object can have a comment. This is intended for developers and debugging. An empty string is considered the same as a NULL string or no string for the comment. @@ -685,7 +783,7 @@ private static object DestructEvtKey = new object(); /// The comment. public System.String Comment { get { return GetComment(); } - set { SetComment( value); } + set { SetComment(value); } } /// Return the global count of freeze events. /// This is the amount of calls to minus the amount of calls to . EFL will not emit any event while this count is > 0 (Except events marked hot). @@ -729,846 +827,1329 @@ private static object DestructEvtKey = new object(); /// Whether to allow efl_unref() to zero even if is not null. public bool AllowParentUnref { get { return GetAllowParentUnref(); } - set { SetAllowParentUnref( value); } + set { SetAllowParentUnref(value); } } private static IntPtr GetEflClassStatic() { return Efl.Object.efl_object_class_get(); } -} -public class ObjectNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Eo); - 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_parent_get_static_delegate == null) - efl_parent_get_static_delegate = new efl_parent_get_delegate(parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_parent_get_static_delegate)}); - if (efl_parent_set_static_delegate == null) - efl_parent_set_static_delegate = new efl_parent_set_delegate(parent_set); - if (methods.FirstOrDefault(m => m.Name == "SetParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_parent_set_static_delegate)}); - if (efl_name_get_static_delegate == null) - efl_name_get_static_delegate = new efl_name_get_delegate(name_get); - if (methods.FirstOrDefault(m => m.Name == "GetName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_name_get_static_delegate)}); - if (efl_name_set_static_delegate == null) - efl_name_set_static_delegate = new efl_name_set_delegate(name_set); - if (methods.FirstOrDefault(m => m.Name == "SetName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_name_set_static_delegate)}); - if (efl_comment_get_static_delegate == null) - efl_comment_get_static_delegate = new efl_comment_get_delegate(comment_get); - if (methods.FirstOrDefault(m => m.Name == "GetComment") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_comment_get"), func = Marshal.GetFunctionPointerForDelegate(efl_comment_get_static_delegate)}); - if (efl_comment_set_static_delegate == null) - efl_comment_set_static_delegate = new efl_comment_set_delegate(comment_set); - if (methods.FirstOrDefault(m => m.Name == "SetComment") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_comment_set"), func = Marshal.GetFunctionPointerForDelegate(efl_comment_set_static_delegate)}); - if (efl_event_freeze_count_get_static_delegate == null) - efl_event_freeze_count_get_static_delegate = new efl_event_freeze_count_get_delegate(event_freeze_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetEventFreezeCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_event_freeze_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_event_freeze_count_get_static_delegate)}); - if (efl_finalized_get_static_delegate == null) - efl_finalized_get_static_delegate = new efl_finalized_get_delegate(finalized_get); - if (methods.FirstOrDefault(m => m.Name == "GetFinalized") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_finalized_get"), func = Marshal.GetFunctionPointerForDelegate(efl_finalized_get_static_delegate)}); - if (efl_invalidated_get_static_delegate == null) - efl_invalidated_get_static_delegate = new efl_invalidated_get_delegate(invalidated_get); - if (methods.FirstOrDefault(m => m.Name == "GetInvalidated") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_invalidated_get"), func = Marshal.GetFunctionPointerForDelegate(efl_invalidated_get_static_delegate)}); - if (efl_invalidating_get_static_delegate == null) - efl_invalidating_get_static_delegate = new efl_invalidating_get_delegate(invalidating_get); - if (methods.FirstOrDefault(m => m.Name == "GetInvalidating") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_invalidating_get"), func = Marshal.GetFunctionPointerForDelegate(efl_invalidating_get_static_delegate)}); - if (efl_allow_parent_unref_get_static_delegate == null) - efl_allow_parent_unref_get_static_delegate = new efl_allow_parent_unref_get_delegate(allow_parent_unref_get); - if (methods.FirstOrDefault(m => m.Name == "GetAllowParentUnref") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_allow_parent_unref_get"), func = Marshal.GetFunctionPointerForDelegate(efl_allow_parent_unref_get_static_delegate)}); - if (efl_allow_parent_unref_set_static_delegate == null) - efl_allow_parent_unref_set_static_delegate = new efl_allow_parent_unref_set_delegate(allow_parent_unref_set); - if (methods.FirstOrDefault(m => m.Name == "SetAllowParentUnref") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_allow_parent_unref_set"), func = Marshal.GetFunctionPointerForDelegate(efl_allow_parent_unref_set_static_delegate)}); - if (efl_debug_name_override_static_delegate == null) - efl_debug_name_override_static_delegate = new efl_debug_name_override_delegate(debug_name_override); - if (methods.FirstOrDefault(m => m.Name == "DebugNameOverride") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_debug_name_override"), func = Marshal.GetFunctionPointerForDelegate(efl_debug_name_override_static_delegate)}); - if (efl_provider_find_static_delegate == null) - efl_provider_find_static_delegate = new efl_provider_find_delegate(provider_find); - if (methods.FirstOrDefault(m => m.Name == "FindProvider") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_provider_find"), func = Marshal.GetFunctionPointerForDelegate(efl_provider_find_static_delegate)}); - if (efl_destructor_static_delegate == null) - efl_destructor_static_delegate = new efl_destructor_delegate(destructor); - if (methods.FirstOrDefault(m => m.Name == "Destructor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_destructor"), func = Marshal.GetFunctionPointerForDelegate(efl_destructor_static_delegate)}); - if (efl_finalize_static_delegate == null) - efl_finalize_static_delegate = new efl_finalize_delegate(finalize); - if (methods.FirstOrDefault(m => m.Name == "FinalizeAdd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_finalize"), func = Marshal.GetFunctionPointerForDelegate(efl_finalize_static_delegate)}); - if (efl_invalidate_static_delegate == null) - efl_invalidate_static_delegate = new efl_invalidate_delegate(invalidate); - if (methods.FirstOrDefault(m => m.Name == "Invalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_invalidate"), func = Marshal.GetFunctionPointerForDelegate(efl_invalidate_static_delegate)}); - if (efl_name_find_static_delegate == null) - efl_name_find_static_delegate = new efl_name_find_delegate(name_find); - if (methods.FirstOrDefault(m => m.Name == "FindName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_name_find"), func = Marshal.GetFunctionPointerForDelegate(efl_name_find_static_delegate)}); - if (efl_event_thaw_static_delegate == null) - efl_event_thaw_static_delegate = new efl_event_thaw_delegate(event_thaw); - if (methods.FirstOrDefault(m => m.Name == "ThawEvent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_event_thaw"), func = Marshal.GetFunctionPointerForDelegate(efl_event_thaw_static_delegate)}); - if (efl_event_freeze_static_delegate == null) - efl_event_freeze_static_delegate = new efl_event_freeze_delegate(event_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeEvent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_event_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_event_freeze_static_delegate)}); - if (efl_event_callback_stop_static_delegate == null) - efl_event_callback_stop_static_delegate = new efl_event_callback_stop_delegate(event_callback_stop); - if (methods.FirstOrDefault(m => m.Name == "EventCallbackStop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_event_callback_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_event_callback_stop_static_delegate)}); - if (efl_event_callback_forwarder_del_static_delegate == null) - efl_event_callback_forwarder_del_static_delegate = new efl_event_callback_forwarder_del_delegate(event_callback_forwarder_del); - if (methods.FirstOrDefault(m => m.Name == "DelEventCallbackForwarder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_event_callback_forwarder_del"), func = Marshal.GetFunctionPointerForDelegate(efl_event_callback_forwarder_del_static_delegate)}); - if (efl_children_iterator_new_static_delegate == null) - efl_children_iterator_new_static_delegate = new efl_children_iterator_new_delegate(children_iterator_new); - if (methods.FirstOrDefault(m => m.Name == "NewChildrenIterator") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_children_iterator_new"), func = Marshal.GetFunctionPointerForDelegate(efl_children_iterator_new_static_delegate)}); - if (efl_composite_attach_static_delegate == null) - efl_composite_attach_static_delegate = new efl_composite_attach_delegate(composite_attach); - if (methods.FirstOrDefault(m => m.Name == "AttachComposite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_composite_attach"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_attach_static_delegate)}); - if (efl_composite_detach_static_delegate == null) - efl_composite_detach_static_delegate = new efl_composite_detach_delegate(composite_detach); - if (methods.FirstOrDefault(m => m.Name == "CompositeDetach") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_composite_detach"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_detach_static_delegate)}); - if (efl_composite_part_is_static_delegate == null) - efl_composite_part_is_static_delegate = new efl_composite_part_is_delegate(composite_part_is); - if (methods.FirstOrDefault(m => m.Name == "IsCompositePart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_composite_part_is"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_part_is_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Object.efl_object_class_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Object.efl_object_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Eo); + /// 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_parent_get_static_delegate == null) + { + efl_parent_get_static_delegate = new efl_parent_get_delegate(parent_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_parent_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_parent_set_static_delegate == null) + { + efl_parent_set_static_delegate = new efl_parent_set_delegate(parent_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_parent_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_parent_get"); - private static Efl.Object parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((Object)wrapper).GetParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_name_get_static_delegate == null) + { + efl_name_get_static_delegate = new efl_name_get_delegate(name_get); } - return _ret_var; - } else { - return efl_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_parent_get_delegate efl_parent_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_name_get_static_delegate) }); + } - private delegate void efl_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object parent); + if (efl_name_set_static_delegate == null) + { + efl_name_set_static_delegate = new efl_name_set_delegate(name_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_name_set_static_delegate) }); + } - public delegate void efl_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object parent); - public static Efl.Eo.FunctionWrapper efl_parent_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_parent_set"); - private static void parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Object parent) - { - Eina.Log.Debug("function efl_parent_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetParent( parent); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); - } - } - private static efl_parent_set_delegate efl_parent_set_static_delegate; + if (efl_comment_get_static_delegate == null) + { + efl_comment_get_static_delegate = new efl_comment_get_delegate(comment_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetComment") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_comment_get"), func = Marshal.GetFunctionPointerForDelegate(efl_comment_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_comment_set_static_delegate == null) + { + efl_comment_set_static_delegate = new efl_comment_set_delegate(comment_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetComment") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_comment_set"), func = Marshal.GetFunctionPointerForDelegate(efl_comment_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_name_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_name_get"); - private static System.String name_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Object)wrapper).GetName(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_event_freeze_count_get_static_delegate == null) + { + efl_event_freeze_count_get_static_delegate = new efl_event_freeze_count_get_delegate(event_freeze_count_get); } - return _ret_var; - } else { - return efl_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_name_get_delegate efl_name_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetEventFreezeCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_event_freeze_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_event_freeze_count_get_static_delegate) }); + } - private delegate void efl_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + if (efl_finalized_get_static_delegate == null) + { + efl_finalized_get_static_delegate = new efl_finalized_get_delegate(finalized_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFinalized") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_finalized_get"), func = Marshal.GetFunctionPointerForDelegate(efl_finalized_get_static_delegate) }); + } - public delegate void efl_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_name_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_name_set"); - private static void name_set(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_name_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetName( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); - } - } - private static efl_name_set_delegate efl_name_set_static_delegate; + if (efl_invalidated_get_static_delegate == null) + { + efl_invalidated_get_static_delegate = new efl_invalidated_get_delegate(invalidated_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetInvalidated") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_invalidated_get"), func = Marshal.GetFunctionPointerForDelegate(efl_invalidated_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_comment_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_invalidating_get_static_delegate == null) + { + efl_invalidating_get_static_delegate = new efl_invalidating_get_delegate(invalidating_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetInvalidating") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_invalidating_get"), func = Marshal.GetFunctionPointerForDelegate(efl_invalidating_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_comment_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_comment_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_comment_get"); - private static System.String comment_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_comment_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Object)wrapper).GetComment(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_allow_parent_unref_get_static_delegate == null) + { + efl_allow_parent_unref_get_static_delegate = new efl_allow_parent_unref_get_delegate(allow_parent_unref_get); } - return _ret_var; - } else { - return efl_comment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_comment_get_delegate efl_comment_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetAllowParentUnref") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_allow_parent_unref_get"), func = Marshal.GetFunctionPointerForDelegate(efl_allow_parent_unref_get_static_delegate) }); + } - private delegate void efl_comment_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String comment); + if (efl_allow_parent_unref_set_static_delegate == null) + { + efl_allow_parent_unref_set_static_delegate = new efl_allow_parent_unref_set_delegate(allow_parent_unref_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetAllowParentUnref") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_allow_parent_unref_set"), func = Marshal.GetFunctionPointerForDelegate(efl_allow_parent_unref_set_static_delegate) }); + } - public delegate void efl_comment_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String comment); - public static Efl.Eo.FunctionWrapper efl_comment_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_comment_set"); - private static void comment_set(System.IntPtr obj, System.IntPtr pd, System.String comment) - { - Eina.Log.Debug("function efl_comment_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetComment( comment); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_comment_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comment); - } - } - private static efl_comment_set_delegate efl_comment_set_static_delegate; + if (efl_debug_name_override_static_delegate == null) + { + efl_debug_name_override_static_delegate = new efl_debug_name_override_delegate(debug_name_override); + } + if (methods.FirstOrDefault(m => m.Name == "DebugNameOverride") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_debug_name_override"), func = Marshal.GetFunctionPointerForDelegate(efl_debug_name_override_static_delegate) }); + } - private delegate int efl_event_global_freeze_count_get_delegate(); + if (efl_provider_find_static_delegate == null) + { + efl_provider_find_static_delegate = new efl_provider_find_delegate(provider_find); + } + if (methods.FirstOrDefault(m => m.Name == "FindProvider") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_provider_find"), func = Marshal.GetFunctionPointerForDelegate(efl_provider_find_static_delegate) }); + } - public delegate int efl_event_global_freeze_count_get_api_delegate(); - public static Efl.Eo.FunctionWrapper efl_event_global_freeze_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_event_global_freeze_count_get"); - private static int event_global_freeze_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_event_global_freeze_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = Object.GetEventGlobalFreezeCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_destructor_static_delegate == null) + { + efl_destructor_static_delegate = new efl_destructor_delegate(destructor); } - return _ret_var; - } else { - return efl_event_global_freeze_count_get_ptr.Value.Delegate(); - } - } + if (methods.FirstOrDefault(m => m.Name == "Destructor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_destructor"), func = Marshal.GetFunctionPointerForDelegate(efl_destructor_static_delegate) }); + } - private delegate int efl_event_freeze_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_finalize_static_delegate == null) + { + efl_finalize_static_delegate = new efl_finalize_delegate(finalize); + } + if (methods.FirstOrDefault(m => m.Name == "FinalizeAdd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_finalize"), func = Marshal.GetFunctionPointerForDelegate(efl_finalize_static_delegate) }); + } - public delegate int efl_event_freeze_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_event_freeze_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_event_freeze_count_get"); - private static int event_freeze_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_event_freeze_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Object)wrapper).GetEventFreezeCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_invalidate_static_delegate == null) + { + efl_invalidate_static_delegate = new efl_invalidate_delegate(invalidate); } - return _ret_var; - } else { - return efl_event_freeze_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_event_freeze_count_get_delegate efl_event_freeze_count_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Invalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_invalidate"), func = Marshal.GetFunctionPointerForDelegate(efl_invalidate_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_finalized_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_name_find_static_delegate == null) + { + efl_name_find_static_delegate = new efl_name_find_delegate(name_find); + } + if (methods.FirstOrDefault(m => m.Name == "FindName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_name_find"), func = Marshal.GetFunctionPointerForDelegate(efl_name_find_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_finalized_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_finalized_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_finalized_get"); - private static bool finalized_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_finalized_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetFinalized(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_event_thaw_static_delegate == null) + { + efl_event_thaw_static_delegate = new efl_event_thaw_delegate(event_thaw); } - return _ret_var; - } else { - return efl_finalized_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_finalized_get_delegate efl_finalized_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ThawEvent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_event_thaw"), func = Marshal.GetFunctionPointerForDelegate(efl_event_thaw_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_invalidated_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_event_freeze_static_delegate == null) + { + efl_event_freeze_static_delegate = new efl_event_freeze_delegate(event_freeze); + } + if (methods.FirstOrDefault(m => m.Name == "FreezeEvent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_event_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_event_freeze_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_invalidated_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_invalidated_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_invalidated_get"); - private static bool invalidated_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_invalidated_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetInvalidated(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_event_callback_stop_static_delegate == null) + { + efl_event_callback_stop_static_delegate = new efl_event_callback_stop_delegate(event_callback_stop); } - return _ret_var; - } else { - return efl_invalidated_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_invalidated_get_delegate efl_invalidated_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "EventCallbackStop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_event_callback_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_event_callback_stop_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_invalidating_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_event_callback_forwarder_del_static_delegate == null) + { + efl_event_callback_forwarder_del_static_delegate = new efl_event_callback_forwarder_del_delegate(event_callback_forwarder_del); + } + if (methods.FirstOrDefault(m => m.Name == "DelEventCallbackForwarder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_event_callback_forwarder_del"), func = Marshal.GetFunctionPointerForDelegate(efl_event_callback_forwarder_del_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_invalidating_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_invalidating_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_invalidating_get"); - private static bool invalidating_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_invalidating_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetInvalidating(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_children_iterator_new_static_delegate == null) + { + efl_children_iterator_new_static_delegate = new efl_children_iterator_new_delegate(children_iterator_new); } - return _ret_var; - } else { - return efl_invalidating_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_invalidating_get_delegate efl_invalidating_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "NewChildrenIterator") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_children_iterator_new"), func = Marshal.GetFunctionPointerForDelegate(efl_children_iterator_new_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_allow_parent_unref_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_composite_attach_static_delegate == null) + { + efl_composite_attach_static_delegate = new efl_composite_attach_delegate(composite_attach); + } + if (methods.FirstOrDefault(m => m.Name == "AttachComposite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_composite_attach"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_attach_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_allow_parent_unref_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_allow_parent_unref_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_allow_parent_unref_get"); - private static bool allow_parent_unref_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_allow_parent_unref_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).GetAllowParentUnref(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_composite_detach_static_delegate == null) + { + efl_composite_detach_static_delegate = new efl_composite_detach_delegate(composite_detach); } - return _ret_var; - } else { - return efl_allow_parent_unref_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_allow_parent_unref_get_delegate efl_allow_parent_unref_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CompositeDetach") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_composite_detach"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_detach_static_delegate) }); + } - private delegate void efl_allow_parent_unref_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allow); + if (efl_composite_part_is_static_delegate == null) + { + efl_composite_part_is_static_delegate = new efl_composite_part_is_delegate(composite_part_is); + } + if (methods.FirstOrDefault(m => m.Name == "IsCompositePart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_composite_part_is"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_part_is_static_delegate) }); + } - public delegate void efl_allow_parent_unref_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allow); - public static Efl.Eo.FunctionWrapper efl_allow_parent_unref_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_allow_parent_unref_set"); - private static void allow_parent_unref_set(System.IntPtr obj, System.IntPtr pd, bool allow) - { - Eina.Log.Debug("function efl_allow_parent_unref_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).SetAllowParentUnref( allow); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_allow_parent_unref_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allow); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Object.efl_object_class_get(); } - } - private static efl_allow_parent_unref_set_delegate efl_allow_parent_unref_set_static_delegate; - - private delegate void efl_debug_name_override_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StrbufKeepOwnershipMarshaler))] Eina.Strbuf sb); + #pragma warning disable CA1707, SA1300, SA1600 + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_debug_name_override_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StrbufKeepOwnershipMarshaler))] Eina.Strbuf sb); - public static Efl.Eo.FunctionWrapper efl_debug_name_override_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_debug_name_override"); - private static void debug_name_override(System.IntPtr obj, System.IntPtr pd, Eina.Strbuf sb) - { - Eina.Log.Debug("function efl_debug_name_override was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).DebugNameOverride( sb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_debug_name_override_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sb); - } - } - private static efl_debug_name_override_delegate efl_debug_name_override_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_parent_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_parent_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_provider_find_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass); + private static Efl.Object parent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_parent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((Object)wrapper).GetParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_provider_find_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass); - public static Efl.Eo.FunctionWrapper efl_provider_find_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_provider_find"); - private static Efl.Object provider_find(System.IntPtr obj, System.IntPtr pd, Type klass) - { - Eina.Log.Debug("function efl_provider_find was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((Object)wrapper).FindProvider( klass); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_provider_find_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass); + else + { + return efl_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_provider_find_delegate efl_provider_find_static_delegate; + private static efl_parent_get_delegate efl_parent_get_static_delegate; + + + private delegate void efl_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object parent); + + + public delegate void efl_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object parent); - private delegate void efl_destructor_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_parent_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_parent_set"); + private static void parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Object parent) + { + Eina.Log.Debug("function efl_parent_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetParent(parent); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_destructor_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_destructor_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_destructor"); - private static void destructor(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_destructor was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Object)wrapper).Destructor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_destructor_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); + } } - } - private static efl_destructor_delegate efl_destructor_static_delegate; + private static efl_parent_set_delegate efl_parent_set_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_finalize_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_name_get_api_delegate(System.IntPtr obj); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_finalize_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_finalize_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_finalize"); - private static Efl.Object finalize(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_finalize was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((Object)wrapper).FinalizeAdd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_finalize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_finalize_delegate efl_finalize_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_name_get"); - private delegate void efl_invalidate_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.String name_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Object)wrapper).GetName(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_invalidate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_invalidate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_invalidate"); - private static void invalidate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_invalidate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).Invalidate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_invalidate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + return efl_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_invalidate_delegate efl_invalidate_static_delegate; + private static efl_name_get_delegate efl_name_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_name_find_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String search); + + private delegate void efl_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public delegate void efl_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_name_find_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String search); - public static Efl.Eo.FunctionWrapper efl_name_find_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_name_find"); - private static Efl.Object name_find(System.IntPtr obj, System.IntPtr pd, System.String search) - { - Eina.Log.Debug("function efl_name_find was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((Object)wrapper).FindName( search); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_name_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_name_set"); + + private static void name_set(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_name_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetName(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); } - return _ret_var; - } else { - return efl_name_find_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), search); } - } - private static efl_name_find_delegate efl_name_find_static_delegate; + private static efl_name_set_delegate efl_name_set_static_delegate; - private delegate void efl_event_thaw_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_comment_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_comment_get_api_delegate(System.IntPtr obj); - public delegate void efl_event_thaw_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_event_thaw_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_event_thaw"); - private static void event_thaw(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_event_thaw was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Object)wrapper).ThawEvent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_event_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + public static Efl.Eo.FunctionWrapper efl_comment_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_comment_get"); + + private static System.String comment_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_comment_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Object)wrapper).GetComment(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_comment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_event_thaw_delegate efl_event_thaw_static_delegate; + private static efl_comment_get_delegate efl_comment_get_static_delegate; - private delegate void efl_event_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_comment_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String comment); + + public delegate void efl_comment_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String comment); + + public static Efl.Eo.FunctionWrapper efl_comment_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_comment_set"); + + private static void comment_set(System.IntPtr obj, System.IntPtr pd, System.String comment) + { + Eina.Log.Debug("function efl_comment_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetComment(comment); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_event_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_event_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_event_freeze"); - private static void event_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_event_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Object)wrapper).FreezeEvent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_event_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_comment_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comment); + } } - } - private static efl_event_freeze_delegate efl_event_freeze_static_delegate; + private static efl_comment_set_delegate efl_comment_set_static_delegate; - private delegate void efl_event_global_thaw_delegate(); + + private delegate int efl_event_global_freeze_count_get_delegate(); + + public delegate int efl_event_global_freeze_count_get_api_delegate(); - public delegate void efl_event_global_thaw_api_delegate(); - public static Efl.Eo.FunctionWrapper efl_event_global_thaw_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_event_global_thaw"); - private static void event_global_thaw(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_event_global_thaw was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - Object.ThawEventGlobal(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_event_global_thaw_ptr.Value.Delegate(); + public static Efl.Eo.FunctionWrapper efl_event_global_freeze_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_global_freeze_count_get"); + + private static int event_global_freeze_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_event_global_freeze_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = Object.GetEventGlobalFreezeCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_event_global_freeze_count_get_ptr.Value.Delegate(); + } } - } + + private delegate int efl_event_freeze_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_event_freeze_count_get_api_delegate(System.IntPtr obj); - private delegate void efl_event_global_freeze_delegate(); + public static Efl.Eo.FunctionWrapper efl_event_freeze_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_freeze_count_get"); + private static int event_freeze_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_event_freeze_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Object)wrapper).GetEventFreezeCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_event_freeze_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_event_freeze_count_get_delegate efl_event_freeze_count_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_finalized_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_finalized_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_finalized_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_finalized_get"); + + private static bool finalized_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_finalized_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetFinalized(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_finalized_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_finalized_get_delegate efl_finalized_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_invalidated_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_invalidated_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_invalidated_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_invalidated_get"); + + private static bool invalidated_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_invalidated_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetInvalidated(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_invalidated_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_invalidated_get_delegate efl_invalidated_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_invalidating_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_invalidating_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_invalidating_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_invalidating_get"); + + private static bool invalidating_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_invalidating_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetInvalidating(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_invalidating_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_invalidating_get_delegate efl_invalidating_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_allow_parent_unref_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_allow_parent_unref_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_allow_parent_unref_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_allow_parent_unref_get"); + + private static bool allow_parent_unref_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_allow_parent_unref_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).GetAllowParentUnref(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_allow_parent_unref_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_allow_parent_unref_get_delegate efl_allow_parent_unref_get_static_delegate; + + + private delegate void efl_allow_parent_unref_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allow); + + + public delegate void efl_allow_parent_unref_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allow); + + public static Efl.Eo.FunctionWrapper efl_allow_parent_unref_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_allow_parent_unref_set"); + + private static void allow_parent_unref_set(System.IntPtr obj, System.IntPtr pd, bool allow) + { + Eina.Log.Debug("function efl_allow_parent_unref_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).SetAllowParentUnref(allow); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_event_global_freeze_api_delegate(); - public static Efl.Eo.FunctionWrapper efl_event_global_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_event_global_freeze"); - private static void event_global_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_event_global_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - Object.FreezeEventGlobal(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_event_global_freeze_ptr.Value.Delegate(); + } + else + { + efl_allow_parent_unref_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allow); + } } - } + private static efl_allow_parent_unref_set_delegate efl_allow_parent_unref_set_static_delegate; + + + private delegate void efl_debug_name_override_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StrbufKeepOwnershipMarshaler))] Eina.Strbuf sb); - private delegate void efl_event_callback_stop_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_debug_name_override_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StrbufKeepOwnershipMarshaler))] Eina.Strbuf sb); + public static Efl.Eo.FunctionWrapper efl_debug_name_override_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_debug_name_override"); + + private static void debug_name_override(System.IntPtr obj, System.IntPtr pd, Eina.Strbuf sb) + { + Eina.Log.Debug("function efl_debug_name_override was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).DebugNameOverride(sb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_event_callback_stop_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_event_callback_stop_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_event_callback_stop"); - private static void event_callback_stop(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_event_callback_stop was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Object)wrapper).EventCallbackStop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_event_callback_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_debug_name_override_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sb); + } } - } - private static efl_event_callback_stop_delegate efl_event_callback_stop_static_delegate; + private static efl_debug_name_override_delegate efl_debug_name_override_static_delegate; - private delegate void efl_event_callback_forwarder_del_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr desc, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object new_obj); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_provider_find_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_provider_find_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass); - public delegate void efl_event_callback_forwarder_del_api_delegate(System.IntPtr obj, System.IntPtr desc, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object new_obj); - public static Efl.Eo.FunctionWrapper efl_event_callback_forwarder_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_event_callback_forwarder_del"); - private static void event_callback_forwarder_del(System.IntPtr obj, System.IntPtr pd, System.IntPtr desc, Efl.Object new_obj) - { - Eina.Log.Debug("function efl_event_callback_forwarder_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_desc = Eina.PrimitiveConversion.PointerToManaged(desc); - - try { - ((Object)wrapper).DelEventCallbackForwarder( _in_desc, new_obj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_event_callback_forwarder_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), desc, new_obj); + public static Efl.Eo.FunctionWrapper efl_provider_find_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_provider_find"); + + private static Efl.Object provider_find(System.IntPtr obj, System.IntPtr pd, Type klass) + { + Eina.Log.Debug("function efl_provider_find was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((Object)wrapper).FindProvider(klass); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_provider_find_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass); + } } - } - private static efl_event_callback_forwarder_del_delegate efl_event_callback_forwarder_del_static_delegate; + private static efl_provider_find_delegate efl_provider_find_static_delegate; - private delegate System.IntPtr efl_children_iterator_new_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_destructor_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_destructor_api_delegate(System.IntPtr obj); - public delegate System.IntPtr efl_children_iterator_new_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_children_iterator_new_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_children_iterator_new"); - private static System.IntPtr children_iterator_new(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_children_iterator_new was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Object)wrapper).NewChildrenIterator(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_destructor_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_destructor"); + + private static void destructor(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_destructor was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).Destructor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_destructor_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_children_iterator_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_children_iterator_new_delegate efl_children_iterator_new_static_delegate; + private static efl_destructor_delegate efl_destructor_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_composite_attach_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object comp_obj); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_finalize_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_finalize_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_composite_attach_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object comp_obj); - public static Efl.Eo.FunctionWrapper efl_composite_attach_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_composite_attach"); - private static bool composite_attach(System.IntPtr obj, System.IntPtr pd, Efl.Object comp_obj) - { - Eina.Log.Debug("function efl_composite_attach was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).AttachComposite( comp_obj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_finalize_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_finalize"); + + private static Efl.Object finalize(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_finalize was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((Object)wrapper).FinalizeAdd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_finalize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_finalize_delegate efl_finalize_static_delegate; + + + private delegate void efl_invalidate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_invalidate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_invalidate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_invalidate"); + + private static void invalidate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_invalidate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).Invalidate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_invalidate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_invalidate_delegate efl_invalidate_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_name_find_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String search); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_name_find_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String search); + + public static Efl.Eo.FunctionWrapper efl_name_find_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_name_find"); + + private static Efl.Object name_find(System.IntPtr obj, System.IntPtr pd, System.String search) + { + Eina.Log.Debug("function efl_name_find was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((Object)wrapper).FindName(search); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_composite_attach_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comp_obj); + + } + else + { + return efl_name_find_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), search); + } } - } - private static efl_composite_attach_delegate efl_composite_attach_static_delegate; + private static efl_name_find_delegate efl_name_find_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_composite_detach_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object comp_obj); + + private delegate void efl_event_thaw_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_event_thaw_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_composite_detach_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object comp_obj); - public static Efl.Eo.FunctionWrapper efl_composite_detach_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_composite_detach"); - private static bool composite_detach(System.IntPtr obj, System.IntPtr pd, Efl.Object comp_obj) - { - Eina.Log.Debug("function efl_composite_detach was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).CompositeDetach( comp_obj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_event_thaw_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_thaw"); + + private static void event_thaw(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_event_thaw was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).ThawEvent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_event_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_event_thaw_delegate efl_event_thaw_static_delegate; + + + private delegate void efl_event_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_event_freeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_event_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_freeze"); + + private static void event_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_event_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).FreezeEvent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_event_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_event_freeze_delegate efl_event_freeze_static_delegate; + + + private delegate void efl_event_global_thaw_delegate(); + + + public delegate void efl_event_global_thaw_api_delegate(); + + public static Efl.Eo.FunctionWrapper efl_event_global_thaw_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_global_thaw"); + + private static void event_global_thaw(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_event_global_thaw was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + Object.ThawEventGlobal(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_event_global_thaw_ptr.Value.Delegate(); + } + } + + + private delegate void efl_event_global_freeze_delegate(); + + + public delegate void efl_event_global_freeze_api_delegate(); + + public static Efl.Eo.FunctionWrapper efl_event_global_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_global_freeze"); + + private static void event_global_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_event_global_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + Object.FreezeEventGlobal(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_event_global_freeze_ptr.Value.Delegate(); + } + } + + + private delegate void efl_event_callback_stop_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_event_callback_stop_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_event_callback_stop_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_callback_stop"); + + private static void event_callback_stop(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_event_callback_stop was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Object)wrapper).EventCallbackStop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_event_callback_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_event_callback_stop_delegate efl_event_callback_stop_static_delegate; + + + private delegate void efl_event_callback_forwarder_del_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr desc, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object new_obj); + + + public delegate void efl_event_callback_forwarder_del_api_delegate(System.IntPtr obj, System.IntPtr desc, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object new_obj); + + public static Efl.Eo.FunctionWrapper efl_event_callback_forwarder_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_event_callback_forwarder_del"); + + private static void event_callback_forwarder_del(System.IntPtr obj, System.IntPtr pd, System.IntPtr desc, Efl.Object new_obj) + { + Eina.Log.Debug("function efl_event_callback_forwarder_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_desc = Eina.PrimitiveConversion.PointerToManaged(desc); + + try + { + ((Object)wrapper).DelEventCallbackForwarder(_in_desc, new_obj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_event_callback_forwarder_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), desc, new_obj); + } + } + + private static efl_event_callback_forwarder_del_delegate efl_event_callback_forwarder_del_static_delegate; + + + private delegate System.IntPtr efl_children_iterator_new_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_children_iterator_new_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_children_iterator_new_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_children_iterator_new"); + + private static System.IntPtr children_iterator_new(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_children_iterator_new was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Object)wrapper).NewChildrenIterator(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_children_iterator_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_children_iterator_new_delegate efl_children_iterator_new_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_composite_attach_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object comp_obj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_composite_attach_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object comp_obj); + + public static Efl.Eo.FunctionWrapper efl_composite_attach_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_composite_attach"); + + private static bool composite_attach(System.IntPtr obj, System.IntPtr pd, Efl.Object comp_obj) + { + Eina.Log.Debug("function efl_composite_attach was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).AttachComposite(comp_obj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_composite_detach_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comp_obj); + + } + else + { + return efl_composite_attach_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comp_obj); + } } - } - private static efl_composite_detach_delegate efl_composite_detach_static_delegate; + private static efl_composite_attach_delegate efl_composite_attach_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_composite_part_is_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_composite_detach_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object comp_obj); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_composite_detach_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object comp_obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_composite_part_is_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_composite_part_is_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_composite_part_is"); - private static bool composite_part_is(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_composite_part_is was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Object)wrapper).IsCompositePart(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_composite_detach_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_composite_detach"); + + private static bool composite_detach(System.IntPtr obj, System.IntPtr pd, Efl.Object comp_obj) + { + Eina.Log.Debug("function efl_composite_detach was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).CompositeDetach(comp_obj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_composite_detach_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), comp_obj); } + } + + private static efl_composite_detach_delegate efl_composite_detach_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_composite_part_is_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_composite_part_is_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_composite_part_is_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_composite_part_is"); + + private static bool composite_part_is(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_composite_part_is was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)wrapper).IsCompositePart(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_composite_part_is_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_composite_part_is_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_composite_part_is_delegate efl_composite_part_is_static_delegate; + + private static efl_composite_part_is_delegate efl_composite_part_is_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} -namespace Efl { +} + +namespace Efl { + /// A parameter passed in event callbacks holding extra event parameters. /// This is the full event information passed to callbacks in C. /// (Since EFL 1.22) @@ -1586,9 +2167,9 @@ public struct Event public System.IntPtr Info; ///Constructor for Event. public Event( - Efl.Object Object=default(Efl.Object), - Efl.EventDescription Desc=default(Efl.EventDescription), - System.IntPtr Info=default(System.IntPtr) ) + Efl.Object Object = default(Efl.Object), + Efl.EventDescription Desc = default(Efl.EventDescription), + System.IntPtr Info = default(System.IntPtr) ) { this.Object = Object; this.Desc = Desc; @@ -1636,4 +2217,5 @@ public struct Event } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_observable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_observable.eo.cs index 051df1c..6872f76 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_observable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_observable.eo.cs @@ -3,106 +3,124 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl observable class -[ObservableNativeInherit] +[Efl.Observable.NativeMethods] public class Observable : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Observable)) - return Efl.ObservableNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Observable)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_observable_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Observable(Efl.Object parent= null - ) : - base(efl_observable_class_get(), typeof(Observable), parent) + ) : base(efl_observable_class_get(), typeof(Observable), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Observable(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Observable(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Observable(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Add an observer to a group of observers. /// Note: Observers that observe this observable are grouped by the key and an observer can belong to multiple groups at the same time. /// A key to classify observer groups /// An observer object - /// - virtual public void AddObserver( System.String key, Efl.IObserver obs) { - Efl.ObservableNativeInherit.efl_observable_observer_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key, obs); + virtual public void AddObserver(System.String key, Efl.IObserver obs) { + Efl.Observable.NativeMethods.efl_observable_observer_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key, obs); Eina.Error.RaiseIfUnhandledException(); } /// Delete an observer from a group of observers. /// See also . /// A key to classify observer groups /// An observer object - /// - virtual public void DelObserver( System.String key, Efl.IObserver obs) { - Efl.ObservableNativeInherit.efl_observable_observer_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key, obs); + virtual public void DelObserver(System.String key, Efl.IObserver obs) { + Efl.Observable.NativeMethods.efl_observable_observer_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key, obs); Eina.Error.RaiseIfUnhandledException(); } /// Clear an observer from all groups of observers. /// An observer object - /// - virtual public void ObserverClean( Efl.IObserver obs) { - Efl.ObservableNativeInherit.efl_observable_observer_clean_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), obs); + virtual public void ObserverClean(Efl.IObserver obs) { + Efl.Observable.NativeMethods.efl_observable_observer_clean_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),obs); Eina.Error.RaiseIfUnhandledException(); } /// Return a new iterator associated with a group of observers. /// A key to classify observer groups /// Iterator for observers group - virtual public Eina.Iterator NewObserversIterator( System.String key) { - var _ret_var = Efl.ObservableNativeInherit.efl_observable_observers_iterator_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public Eina.Iterator NewObserversIterator(System.String key) { + var _ret_var = Efl.Observable.NativeMethods.efl_observable_observers_iterator_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } /// Update all observers in a group by calling their update() method. /// A key to classify observer groups /// Required data to update observer - /// - virtual public void UpdateObservers( System.String key, System.IntPtr data) { - Efl.ObservableNativeInherit.efl_observable_observers_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key, data); + virtual public void UpdateObservers(System.String key, System.IntPtr data) { + Efl.Observable.NativeMethods.efl_observable_observers_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key, data); Eina.Error.RaiseIfUnhandledException(); } /// Return a new iterator associated to this observable. /// Iterator for observer virtual public Eina.Iterator NewIteratorTuple() { - var _ret_var = Efl.ObservableNativeInherit.efl_observable_iterator_tuple_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Observable.NativeMethods.efl_observable_iterator_tuple_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -110,197 +128,310 @@ public class Observable : Efl.Object, Efl.Eo.IWrapper { return Efl.Observable.efl_observable_class_get(); } -} -public class ObservableNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_observable_observer_add_static_delegate == null) - efl_observable_observer_add_static_delegate = new efl_observable_observer_add_delegate(observer_add); - if (methods.FirstOrDefault(m => m.Name == "AddObserver") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_observable_observer_add"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_observer_add_static_delegate)}); - if (efl_observable_observer_del_static_delegate == null) - efl_observable_observer_del_static_delegate = new efl_observable_observer_del_delegate(observer_del); - if (methods.FirstOrDefault(m => m.Name == "DelObserver") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_observable_observer_del"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_observer_del_static_delegate)}); - if (efl_observable_observer_clean_static_delegate == null) - efl_observable_observer_clean_static_delegate = new efl_observable_observer_clean_delegate(observer_clean); - if (methods.FirstOrDefault(m => m.Name == "ObserverClean") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_observable_observer_clean"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_observer_clean_static_delegate)}); - if (efl_observable_observers_iterator_new_static_delegate == null) - efl_observable_observers_iterator_new_static_delegate = new efl_observable_observers_iterator_new_delegate(observers_iterator_new); - if (methods.FirstOrDefault(m => m.Name == "NewObserversIterator") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_observable_observers_iterator_new"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_observers_iterator_new_static_delegate)}); - if (efl_observable_observers_update_static_delegate == null) - efl_observable_observers_update_static_delegate = new efl_observable_observers_update_delegate(observers_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateObservers") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_observable_observers_update"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_observers_update_static_delegate)}); - if (efl_observable_iterator_tuple_new_static_delegate == null) - efl_observable_iterator_tuple_new_static_delegate = new efl_observable_iterator_tuple_new_delegate(iterator_tuple_new); - if (methods.FirstOrDefault(m => m.Name == "NewIteratorTuple") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_observable_iterator_tuple_new"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_iterator_tuple_new_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Observable.efl_observable_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Observable.efl_observable_class_get(); - } + 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_observable_observer_add_static_delegate == null) + { + efl_observable_observer_add_static_delegate = new efl_observable_observer_add_delegate(observer_add); + } - private delegate void efl_observable_observer_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IObserver obs); + if (methods.FirstOrDefault(m => m.Name == "AddObserver") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_observable_observer_add"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_observer_add_static_delegate) }); + } + if (efl_observable_observer_del_static_delegate == null) + { + efl_observable_observer_del_static_delegate = new efl_observable_observer_del_delegate(observer_del); + } - public delegate void efl_observable_observer_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IObserver obs); - public static Efl.Eo.FunctionWrapper efl_observable_observer_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_observable_observer_add"); - private static void observer_add(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.IObserver obs) - { - Eina.Log.Debug("function efl_observable_observer_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Observable)wrapper).AddObserver( key, obs); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DelObserver") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_observable_observer_del"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_observer_del_static_delegate) }); } - } else { - efl_observable_observer_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, obs); + + if (efl_observable_observer_clean_static_delegate == null) + { + efl_observable_observer_clean_static_delegate = new efl_observable_observer_clean_delegate(observer_clean); + } + + if (methods.FirstOrDefault(m => m.Name == "ObserverClean") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_observable_observer_clean"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_observer_clean_static_delegate) }); + } + + if (efl_observable_observers_iterator_new_static_delegate == null) + { + efl_observable_observers_iterator_new_static_delegate = new efl_observable_observers_iterator_new_delegate(observers_iterator_new); + } + + if (methods.FirstOrDefault(m => m.Name == "NewObserversIterator") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_observable_observers_iterator_new"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_observers_iterator_new_static_delegate) }); + } + + if (efl_observable_observers_update_static_delegate == null) + { + efl_observable_observers_update_static_delegate = new efl_observable_observers_update_delegate(observers_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateObservers") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_observable_observers_update"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_observers_update_static_delegate) }); + } + + if (efl_observable_iterator_tuple_new_static_delegate == null) + { + efl_observable_iterator_tuple_new_static_delegate = new efl_observable_iterator_tuple_new_delegate(iterator_tuple_new); + } + + if (methods.FirstOrDefault(m => m.Name == "NewIteratorTuple") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_observable_iterator_tuple_new"), func = Marshal.GetFunctionPointerForDelegate(efl_observable_iterator_tuple_new_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Observable.efl_observable_class_get(); } - } - private static efl_observable_observer_add_delegate efl_observable_observer_add_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_observable_observer_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IObserver obs); + + private delegate void efl_observable_observer_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IObserver obs); + + public delegate void efl_observable_observer_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IObserver obs); - public delegate void efl_observable_observer_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IObserver obs); - public static Efl.Eo.FunctionWrapper efl_observable_observer_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_observable_observer_del"); - private static void observer_del(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.IObserver obs) - { - Eina.Log.Debug("function efl_observable_observer_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Observable)wrapper).DelObserver( key, obs); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_observable_observer_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_observable_observer_add"); + + private static void observer_add(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.IObserver obs) + { + Eina.Log.Debug("function efl_observable_observer_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Observable)wrapper).AddObserver(key, obs); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_observable_observer_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, obs); } - } else { - efl_observable_observer_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, obs); } - } - private static efl_observable_observer_del_delegate efl_observable_observer_del_static_delegate; + private static efl_observable_observer_add_delegate efl_observable_observer_add_static_delegate; + + + private delegate void efl_observable_observer_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IObserver obs); - private delegate void efl_observable_observer_clean_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IObserver obs); + + public delegate void efl_observable_observer_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IObserver obs); + public static Efl.Eo.FunctionWrapper efl_observable_observer_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_observable_observer_del"); - public delegate void efl_observable_observer_clean_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IObserver obs); - public static Efl.Eo.FunctionWrapper efl_observable_observer_clean_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_observable_observer_clean"); - private static void observer_clean(System.IntPtr obj, System.IntPtr pd, Efl.IObserver obs) - { - Eina.Log.Debug("function efl_observable_observer_clean was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Observable)wrapper).ObserverClean( obs); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void observer_del(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.IObserver obs) + { + Eina.Log.Debug("function efl_observable_observer_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Observable)wrapper).DelObserver(key, obs); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_observable_observer_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, obs); } - } else { - efl_observable_observer_clean_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), obs); } - } - private static efl_observable_observer_clean_delegate efl_observable_observer_clean_static_delegate; + private static efl_observable_observer_del_delegate efl_observable_observer_del_static_delegate; - private delegate System.IntPtr efl_observable_observers_iterator_new_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + private delegate void efl_observable_observer_clean_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IObserver obs); + + + public delegate void efl_observable_observer_clean_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IObserver obs); + public static Efl.Eo.FunctionWrapper efl_observable_observer_clean_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_observable_observer_clean"); - public delegate System.IntPtr efl_observable_observers_iterator_new_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_observable_observers_iterator_new_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_observable_observers_iterator_new"); - private static System.IntPtr observers_iterator_new(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_observable_observers_iterator_new was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Observable)wrapper).NewObserversIterator( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void observer_clean(System.IntPtr obj, System.IntPtr pd, Efl.IObserver obs) + { + Eina.Log.Debug("function efl_observable_observer_clean was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Observable)wrapper).ObserverClean(obs); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_observable_observer_clean_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), obs); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_observable_observers_iterator_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); } - } - private static efl_observable_observers_iterator_new_delegate efl_observable_observers_iterator_new_static_delegate; + private static efl_observable_observer_clean_delegate efl_observable_observer_clean_static_delegate; + + + private delegate System.IntPtr efl_observable_observers_iterator_new_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate System.IntPtr efl_observable_observers_iterator_new_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - private delegate void efl_observable_observers_update_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); + public static Efl.Eo.FunctionWrapper efl_observable_observers_iterator_new_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_observable_observers_iterator_new"); + private static System.IntPtr observers_iterator_new(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_observable_observers_iterator_new was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Observable)wrapper).NewObserversIterator(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_observable_observers_update_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_observable_observers_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_observable_observers_update"); - private static void observers_update(System.IntPtr obj, System.IntPtr pd, System.String key, System.IntPtr data) - { - Eina.Log.Debug("function efl_observable_observers_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Observable)wrapper).UpdateObservers( key, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_observable_observers_iterator_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); } - } else { - efl_observable_observers_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, data); } - } - private static efl_observable_observers_update_delegate efl_observable_observers_update_static_delegate; + private static efl_observable_observers_iterator_new_delegate efl_observable_observers_iterator_new_static_delegate; - private delegate System.IntPtr efl_observable_iterator_tuple_new_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_observable_observers_update_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); + + public delegate void efl_observable_observers_update_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); - public delegate System.IntPtr efl_observable_iterator_tuple_new_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_observable_iterator_tuple_new_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_observable_iterator_tuple_new"); - private static System.IntPtr iterator_tuple_new(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_observable_iterator_tuple_new was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Observable)wrapper).NewIteratorTuple(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_observable_observers_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_observable_observers_update"); + + private static void observers_update(System.IntPtr obj, System.IntPtr pd, System.String key, System.IntPtr data) + { + Eina.Log.Debug("function efl_observable_observers_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Observable)wrapper).UpdateObservers(key, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_observable_observers_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, data); + } + } + + private static efl_observable_observers_update_delegate efl_observable_observers_update_static_delegate; + + + private delegate System.IntPtr efl_observable_iterator_tuple_new_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_observable_iterator_tuple_new_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_observable_iterator_tuple_new_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_observable_iterator_tuple_new"); + + private static System.IntPtr iterator_tuple_new(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_observable_iterator_tuple_new was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Observable)wrapper).NewIteratorTuple(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_observable_iterator_tuple_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_observable_iterator_tuple_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_observable_iterator_tuple_new_delegate efl_observable_iterator_tuple_new_static_delegate; + + private static efl_observable_iterator_tuple_new_delegate efl_observable_iterator_tuple_new_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} -namespace Efl { +} + +namespace Efl { + /// This type describes an observable touple [StructLayout(LayoutKind.Sequential)] public struct ObservableTuple @@ -311,8 +442,8 @@ public struct ObservableTuple public Eina.Iterator Data; ///Constructor for ObservableTuple. public ObservableTuple( - System.String Key=default(System.String), - Eina.Iterator Data=default(Eina.Iterator) ) + System.String Key = default(System.String), + Eina.Iterator Data = default(Eina.Iterator) ) { this.Key = Key; this.Data = Data; @@ -354,4 +485,5 @@ public struct ObservableTuple } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_observer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_observer.eo.cs index f7e1b68..6d41796 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_observer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_observer.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl observer interface -[IObserverNativeInherit] +[Efl.IObserverConcrete.NativeMethods] public interface IObserver : Efl.Eo.IWrapper, IDisposable { @@ -14,8 +16,7 @@ public interface IObserver : /// An observable object /// A key to classify observer groups /// Required data to update the observer, usually passed by observable object -/// -void Update( Efl.Object obs, System.String key, System.IntPtr data); +void Update(Efl.Object obs, System.String key, System.IntPtr data); } /// Efl observer interface sealed public class IObserverConcrete : @@ -24,125 +25,186 @@ IObserver { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IObserverConcrete)) - return Efl.IObserverNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IObserverConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_observer_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IObserverConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IObserverConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Update observer according to the changes of observable object. /// An observable object /// A key to classify observer groups /// Required data to update the observer, usually passed by observable object - /// - public void Update( Efl.Object obs, System.String key, System.IntPtr data) { - Efl.IObserverNativeInherit.efl_observer_update_ptr.Value.Delegate(this.NativeHandle, obs, key, data); + public void Update(Efl.Object obs, System.String key, System.IntPtr data) { + Efl.IObserverConcrete.NativeMethods.efl_observer_update_ptr.Value.Delegate(this.NativeHandle,obs, key, data); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.IObserverConcrete.efl_observer_interface_get(); } -} -public class IObserverNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_observer_update_static_delegate == null) - efl_observer_update_static_delegate = new efl_observer_update_delegate(update); - if (methods.FirstOrDefault(m => m.Name == "Update") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_observer_update"), func = Marshal.GetFunctionPointerForDelegate(efl_observer_update_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IObserverConcrete.efl_observer_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.IObserverConcrete.efl_observer_interface_get(); - } + 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_observer_update_static_delegate == null) + { + efl_observer_update_static_delegate = new efl_observer_update_delegate(update); + } + + if (methods.FirstOrDefault(m => m.Name == "Update") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_observer_update"), func = Marshal.GetFunctionPointerForDelegate(efl_observer_update_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.IObserverConcrete.efl_observer_interface_get(); + } - private delegate void efl_observer_update_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object obs, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); + #pragma warning disable CA1707, SA1300, SA1600 + + private delegate void efl_observer_update_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object obs, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); - public delegate void efl_observer_update_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object obs, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_observer_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_observer_update"); - private static void update(System.IntPtr obj, System.IntPtr pd, Efl.Object obs, System.String key, System.IntPtr data) - { - Eina.Log.Debug("function efl_observer_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObserver)wrapper).Update( obs, key, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + public delegate void efl_observer_update_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object obs, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper efl_observer_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_observer_update"); + + private static void update(System.IntPtr obj, System.IntPtr pd, Efl.Object obs, System.String key, System.IntPtr data) + { + Eina.Log.Debug("function efl_observer_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObserver)wrapper).Update(obs, key, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_observer_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), obs, key, data); } - } else { - efl_observer_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), obs, key, data); } - } - private static efl_observer_update_delegate efl_observer_update_static_delegate; + + private static efl_observer_update_delegate efl_observer_update_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_orientation.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_orientation.eo.cs index 0ff5d91..b61d4c5 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_orientation.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_orientation.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl orientation interface -[IOrientationNativeInherit] +[Efl.IOrientationConcrete.NativeMethods] public interface IOrientation : Efl.Eo.IWrapper, IDisposable { @@ -17,8 +19,7 @@ Efl.Orient GetOrientation(); /// Control the orientation of a given object. /// This can be used to set the rotation on an image or a window, for instance. /// The rotation angle (CCW), see . -/// -void SetOrientation( Efl.Orient dir); +void SetOrientation(Efl.Orient dir); /// Control the flip of the given image /// Use this function to change how your image is to be flipped: vertically or horizontally or transpose or traverse. /// Flip method @@ -26,8 +27,7 @@ Efl.Flip GetFlip(); /// Control the flip of the given image /// Use this function to change how your image is to be flipped: vertically or horizontally or transpose or traverse. /// Flip method -/// -void SetFlip( Efl.Flip flip); +void SetFlip(Efl.Flip flip); /// Control the orientation of a given object. /// This can be used to set the rotation on an image or a window, for instance. /// The rotation angle (CCW), see . @@ -50,98 +50,131 @@ IOrientation { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IOrientationConcrete)) - return Efl.IOrientationNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IOrientationConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_orientation_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IOrientationConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IOrientationConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Control the orientation of a given object. /// This can be used to set the rotation on an image or a window, for instance. /// The rotation angle (CCW), see . public Efl.Orient GetOrientation() { - var _ret_var = Efl.IOrientationNativeInherit.efl_orientation_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IOrientationConcrete.NativeMethods.efl_orientation_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the orientation of a given object. /// This can be used to set the rotation on an image or a window, for instance. /// The rotation angle (CCW), see . - /// - public void SetOrientation( Efl.Orient dir) { - Efl.IOrientationNativeInherit.efl_orientation_set_ptr.Value.Delegate(this.NativeHandle, dir); + public void SetOrientation(Efl.Orient dir) { + Efl.IOrientationConcrete.NativeMethods.efl_orientation_set_ptr.Value.Delegate(this.NativeHandle,dir); Eina.Error.RaiseIfUnhandledException(); } /// Control the flip of the given image /// Use this function to change how your image is to be flipped: vertically or horizontally or transpose or traverse. /// Flip method public Efl.Flip GetFlip() { - var _ret_var = Efl.IOrientationNativeInherit.efl_orientation_flip_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IOrientationConcrete.NativeMethods.efl_orientation_flip_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the flip of the given image /// Use this function to change how your image is to be flipped: vertically or horizontally or transpose or traverse. /// Flip method - /// - public void SetFlip( Efl.Flip flip) { - Efl.IOrientationNativeInherit.efl_orientation_flip_set_ptr.Value.Delegate(this.NativeHandle, flip); + public void SetFlip(Efl.Flip flip) { + Efl.IOrientationConcrete.NativeMethods.efl_orientation_flip_set_ptr.Value.Delegate(this.NativeHandle,flip); Eina.Error.RaiseIfUnhandledException(); } /// Control the orientation of a given object. @@ -149,153 +182,232 @@ IOrientation /// The rotation angle (CCW), see . public Efl.Orient Orientation { get { return GetOrientation(); } - set { SetOrientation( value); } + set { SetOrientation(value); } } /// Control the flip of the given image /// Use this function to change how your image is to be flipped: vertically or horizontally or transpose or traverse. /// Flip method public Efl.Flip Flip { get { return GetFlip(); } - set { SetFlip( value); } + set { SetFlip(value); } } private static IntPtr GetEflClassStatic() { return Efl.IOrientationConcrete.efl_orientation_interface_get(); } -} -public class IOrientationNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_orientation_get_static_delegate == null) - efl_orientation_get_static_delegate = new efl_orientation_get_delegate(orientation_get); - if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_get_static_delegate)}); - if (efl_orientation_set_static_delegate == null) - efl_orientation_set_static_delegate = new efl_orientation_set_delegate(orientation_set); - if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_set_static_delegate)}); - if (efl_orientation_flip_get_static_delegate == null) - efl_orientation_flip_get_static_delegate = new efl_orientation_flip_get_delegate(flip_get); - if (methods.FirstOrDefault(m => m.Name == "GetFlip") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_flip_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_get_static_delegate)}); - if (efl_orientation_flip_set_static_delegate == null) - efl_orientation_flip_set_static_delegate = new efl_orientation_flip_set_delegate(flip_set); - if (methods.FirstOrDefault(m => m.Name == "SetFlip") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_flip_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IOrientationConcrete.efl_orientation_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IOrientationConcrete.efl_orientation_interface_get(); - } + 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_orientation_get_static_delegate == null) + { + efl_orientation_get_static_delegate = new efl_orientation_get_delegate(orientation_get); + } - private delegate Efl.Orient efl_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_get_static_delegate) }); + } + if (efl_orientation_set_static_delegate == null) + { + efl_orientation_set_static_delegate = new efl_orientation_set_delegate(orientation_set); + } - public delegate Efl.Orient efl_orientation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_orientation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_get"); - private static Efl.Orient orientation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_orientation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Orient _ret_var = default(Efl.Orient); - try { - _ret_var = ((IOrientation)wrapper).GetOrientation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_set_static_delegate) }); } - return _ret_var; - } else { - return efl_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_orientation_flip_get_static_delegate == null) + { + efl_orientation_flip_get_static_delegate = new efl_orientation_flip_get_delegate(flip_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFlip") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_flip_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_get_static_delegate) }); + } + + if (efl_orientation_flip_set_static_delegate == null) + { + efl_orientation_flip_set_static_delegate = new efl_orientation_flip_set_delegate(flip_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFlip") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_flip_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_set_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.IOrientationConcrete.efl_orientation_interface_get(); } - } - private static efl_orientation_get_delegate efl_orientation_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir); + + private delegate Efl.Orient efl_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Orient efl_orientation_get_api_delegate(System.IntPtr obj); - public delegate void efl_orientation_set_api_delegate(System.IntPtr obj, Efl.Orient dir); - public static Efl.Eo.FunctionWrapper efl_orientation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_set"); - private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir) - { - Eina.Log.Debug("function efl_orientation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IOrientation)wrapper).SetOrientation( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_get"); + + private static Efl.Orient orientation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_orientation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Orient _ret_var = default(Efl.Orient); + try + { + _ret_var = ((IOrientation)wrapper).GetOrientation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - } - private static efl_orientation_set_delegate efl_orientation_set_static_delegate; + private static efl_orientation_get_delegate efl_orientation_get_static_delegate; - private delegate Efl.Flip efl_orientation_flip_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir); + + public delegate void efl_orientation_set_api_delegate(System.IntPtr obj, Efl.Orient dir); - public delegate Efl.Flip efl_orientation_flip_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_orientation_flip_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_flip_get"); - private static Efl.Flip flip_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_orientation_flip_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Flip _ret_var = default(Efl.Flip); - try { - _ret_var = ((IOrientation)wrapper).GetFlip(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_set"); + + private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir) + { + Eina.Log.Debug("function efl_orientation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IOrientation)wrapper).SetOrientation(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } + + private static efl_orientation_set_delegate efl_orientation_set_static_delegate; + + + private delegate Efl.Flip efl_orientation_flip_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Flip efl_orientation_flip_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_orientation_flip_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_flip_get"); + + private static Efl.Flip flip_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_orientation_flip_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Flip _ret_var = default(Efl.Flip); + try + { + _ret_var = ((IOrientation)wrapper).GetFlip(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_orientation_flip_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_orientation_flip_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_orientation_flip_get_delegate efl_orientation_flip_get_static_delegate; + private static efl_orientation_flip_get_delegate efl_orientation_flip_get_static_delegate; - private delegate void efl_orientation_flip_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip); + + private delegate void efl_orientation_flip_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip); + + public delegate void efl_orientation_flip_set_api_delegate(System.IntPtr obj, Efl.Flip flip); - public delegate void efl_orientation_flip_set_api_delegate(System.IntPtr obj, Efl.Flip flip); - public static Efl.Eo.FunctionWrapper efl_orientation_flip_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_flip_set"); - private static void flip_set(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip) - { - Eina.Log.Debug("function efl_orientation_flip_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IOrientation)wrapper).SetFlip( flip); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_orientation_flip_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_flip_set"); + + private static void flip_set(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip) + { + Eina.Log.Debug("function efl_orientation_flip_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IOrientation)wrapper).SetFlip(flip); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_orientation_flip_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flip); } - } else { - efl_orientation_flip_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flip); } - } - private static efl_orientation_flip_set_delegate efl_orientation_flip_set_static_delegate; + + private static efl_orientation_flip_set_delegate efl_orientation_flip_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} -namespace Efl { +} +} + +namespace Efl { + /// An orientation type, to rotate visual objects. /// Not to be confused with which is meant for widgets, rather than images and canvases. This enum is used to rotate images, videos and the like. /// @@ -313,8 +425,11 @@ Down = 180, /// Orient left, rotate 90 degrees clock-wise. Left = 270, } -} -namespace Efl { + +} + +namespace Efl { + /// A flip type, to flip visual objects. /// See also . public enum Flip @@ -326,4 +441,6 @@ Horizontal = 1, /// Flip image vertically Vertical = 2, } -} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_pack.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_pack.eo.cs index 96eab1d..d0e0131 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_pack.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_pack.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// API common to all UI container objects. -[IPackNativeInherit] +[Efl.IPackConcrete.NativeMethods] public interface IPack : Efl.IContainer , Efl.Eo.IWrapper, IDisposable @@ -14,25 +16,21 @@ public interface IPack : /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment -/// -void GetPackAlign( out double align_horiz, out double align_vert); +void GetPackAlign(out double align_horiz, out double align_vert); /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment -/// -void SetPackAlign( double align_horiz, double align_vert); +void SetPackAlign(double align_horiz, double align_vert); /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise -/// -void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable); +void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable); /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise -/// -void SetPackPadding( double pad_horiz, double pad_vert, bool scalable); +void SetPackPadding(double pad_horiz, double pad_vert, bool scalable); /// Removes all packed contents, and unreferences them. /// true on success, false otherwise bool ClearPack(); @@ -43,14 +41,14 @@ bool UnpackAll(); /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed -bool Unpack( Efl.Gfx.IEntity subobj); +bool Unpack(Efl.Gfx.IEntity subobj); /// Adds an item to this container. /// Depending on the container this will either fill in the default spot, replacing any already existing element or append to the end of the container if there is no default part. /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. -bool DoPack( Efl.Gfx.IEntity subobj); +bool Pack(Efl.Gfx.IEntity subobj); } /// API common to all UI container objects. sealed public class IPackConcrete : @@ -59,255 +57,318 @@ IPack , Efl.IContainer { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IPackConcrete)) - return Efl.IPackNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IPackConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_pack_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IPackConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IPackConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ContentAddedEvtKey = new object(); + /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate(this.NativeHandle, out align_horiz, out align_vert); + public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate(this.NativeHandle,out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate(this.NativeHandle, align_horiz, align_vert); + public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate(this.NativeHandle,align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate(this.NativeHandle, out pad_horiz, out pad_vert, out scalable); + public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate(this.NativeHandle,out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate(this.NativeHandle, pad_horiz, pad_vert, scalable); + public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate(this.NativeHandle,pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -315,15 +376,15 @@ private static object ContentRemovedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate(this.NativeHandle, subobj); + public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -333,8 +394,8 @@ private static object ContentRemovedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate(this.NativeHandle, subobj); + public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -342,7 +403,7 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Iterator to object content public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -350,7 +411,7 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -358,308 +419,488 @@ private static object ContentRemovedEvtKey = new object(); { return Efl.IPackConcrete.efl_pack_interface_get(); } -} -public class IPackNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - if (efl_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IPackConcrete.efl_pack_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IPackConcrete.efl_pack_interface_get(); - } - + 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_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((IPack)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); + } + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); + } - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPack)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); - } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); + } + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((IPack)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); - } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); + } + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPack)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); - } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); + } + if (efl_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPack)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_clear_delegate efl_pack_clear_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.IPackConcrete.efl_pack_interface_get(); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((IPack)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); + } + } + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPack)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPack)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((IPack)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPack)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPack)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPack)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPack)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPack)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_delegate efl_pack_static_delegate; + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPack)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IPack)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPack)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IPack)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_delegate efl_pack_static_delegate; + + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IPack)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IPack)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_count_delegate efl_content_count_static_delegate; + + private static efl_content_count_delegate efl_content_count_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_pack_layout.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_pack_layout.eo.cs index 2831b96..98cb51e 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_pack_layout.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_pack_layout.eo.cs @@ -3,23 +3,23 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Low-level APIs for object that can lay their children out. /// Used for containers (box, grid). -[IPackLayoutNativeInherit] +[Efl.IPackLayoutConcrete.NativeMethods] public interface IPackLayout : Efl.Eo.IWrapper, IDisposable { /// Requests EFL to call the method on this object. /// This may be called asynchronously. -/// void LayoutRequest(); /// Implementation of this container's layout algorithm. /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas. /// /// This can be overriden to implement custom layout behaviors. -/// void UpdateLayout(); /// Sent after the layout was updated. event EventHandler LayoutUpdatedEvt; @@ -32,260 +32,359 @@ IPackLayout { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IPackLayoutConcrete)) - return Efl.IPackLayoutNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IPackLayoutConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_pack_layout_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IPackLayoutConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IPackLayoutConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object LayoutUpdatedEvtKey = new object(); + /// Sent after the layout was updated. public event EventHandler LayoutUpdatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.AddHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (RemoveNativeEventHandler(key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.RemoveHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LayoutUpdatedEvt. - public void On_LayoutUpdatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LayoutUpdatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LayoutUpdatedEvt_delegate; - private void on_LayoutUpdatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLayoutUpdatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_LayoutUpdatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_LayoutUpdatedEvt_delegate = new Efl.EventCb(on_LayoutUpdatedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Requests EFL to call the method on this object. /// This may be called asynchronously. - /// public void LayoutRequest() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_request_ptr.Value.Delegate(this.NativeHandle); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_request_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Implementation of this container's layout algorithm. /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas. /// /// This can be overriden to implement custom layout behaviors. - /// public void UpdateLayout() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_update_ptr.Value.Delegate(this.NativeHandle); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_update_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.IPackLayoutConcrete.efl_pack_layout_interface_get(); } -} -public class IPackLayoutNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_pack_layout_request_static_delegate == null) - efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); - if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate)}); - if (efl_pack_layout_update_static_delegate == null) - efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IPackLayoutConcrete.efl_pack_layout_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.IPackLayoutConcrete.efl_pack_layout_interface_get(); - } + 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_pack_layout_request_static_delegate == null) + { + efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); + } - private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate) }); + } + if (efl_pack_layout_update_static_delegate == null) + { + efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); + } - public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_request"); - private static void layout_request(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_request was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPackLayout)wrapper).LayoutRequest(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate) }); } - } else { - efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.IPackLayoutConcrete.efl_pack_layout_interface_get(); } - } - private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); - public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_update"); - private static void layout_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPackLayout)wrapper).UpdateLayout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_request"); + + private static void layout_request(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_request was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPackLayout)wrapper).LayoutRequest(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; + + private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + + + private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_update"); + + private static void layout_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPackLayout)wrapper).UpdateLayout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_pack_linear.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_pack_linear.eo.cs index fa91489..10161b3 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_pack_linear.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_pack_linear.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// API for containers -[IPackLinearNativeInherit] +[Efl.IPackLinearConcrete.NativeMethods] public interface IPackLinear : Efl.IPack , Efl.Eo.IWrapper, IDisposable @@ -15,50 +17,58 @@ public interface IPackLinear : /// This is the same as (subobj, 0). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. -/// Item to pack. -/// false if subobj could not be packed -bool PackBegin( Efl.Gfx.IEntity subobj); - /// Append object at the end of this container. +/// Item to pack at the beginning. +/// false if subobj could not be packed. +bool PackBegin(Efl.Gfx.IEntity subobj); + /// Append item at the end of this container. /// This is the same as (subobj, -1). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Item to pack at the end. -/// false if subobj could not be packed -bool PackEnd( Efl.Gfx.IEntity subobj); +/// false if subobj could not be packed. +bool PackEnd(Efl.Gfx.IEntity subobj); /// Prepend item before other sub object. /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Item to pack before existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. -bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing); +bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing); /// Append item after other sub object. /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Item to pack after existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. -bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing); - /// Inserts subobj at the specified index. -/// Valid range: -count to +count. -1 refers to the last element. Out of range indices will trigger an append. +bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing); + /// Inserts subobj BEFORE the item at position index. +/// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. +/// +/// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. -/// Item to pack at given index. -/// A position. +/// Item to pack. +/// Index of item to insert BEFORE. Valid range is -count to (count-1). /// false if subobj could not be packed. -bool PackAt( Efl.Gfx.IEntity subobj, int index); - /// Content at a given index in this container. -/// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1). -/// Index number +bool PackAt(Efl.Gfx.IEntity subobj, int index); + /// Content at a given index in this container. +/// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. +/// +/// If index is less than -count, it will return the first item whereas index greater than count-1 will return the last item. +/// Index of the item to retrieve. Valid range is -count to (count-1). /// The object contained at the given index. -Efl.Gfx.IEntity GetPackContent( int index); +Efl.Gfx.IEntity GetPackContent(int index); /// Get the index of a child in this container. /// An object contained in this pack. -/// -1 in case of failure, or the index of this item. -int GetPackIndex( Efl.Gfx.IEntity subobj); - /// Pop out item at specified index. -/// Equivalent to unpack(content_at(index)). -/// Index number +/// -1 in case subobj is not a child of this object, or the index of this item in the range 0 to (count-1). +int GetPackIndex(Efl.Gfx.IEntity subobj); + /// Pop out (remove) the item at the specified index. +/// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. +/// +/// If index is less than -count, it will remove the first item whereas index greater than count-1 will remove the last item. +/// +/// Equivalent to ((index)). +/// Index of item to remove. Valid range is -count to (count-1). /// The child item if it could be removed. -Efl.Gfx.IEntity PackUnpackAt( int index); +Efl.Gfx.IEntity PackUnpackAt(int index); } /// API for containers sealed public class IPackLinearConcrete : @@ -67,236 +77,303 @@ IPackLinear , Efl.IContainer, Efl.IPack { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IPackLinearConcrete)) - return Efl.IPackLinearNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IPackLinearConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_pack_linear_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IPackLinearConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IPackLinearConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ContentAddedEvtKey = new object(); + /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Prepend an object at the beginning of this container. /// This is the same as (subobj, 0). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack. - /// false if subobj could not be packed - public bool PackBegin( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate(this.NativeHandle, subobj); + /// Item to pack at the beginning. + /// false if subobj could not be packed. + public bool PackBegin(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Append object at the end of this container. + /// Append item at the end of this container. /// This is the same as (subobj, -1). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Item to pack at the end. - /// false if subobj could not be packed - public bool PackEnd( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate(this.NativeHandle, subobj); + /// false if subobj could not be packed. + public bool PackEnd(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -305,8 +382,8 @@ private static object ContentRemovedEvtKey = new object(); /// Item to pack before existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - public bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate(this.NativeHandle, subobj, existing); + public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate(this.NativeHandle,subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -315,46 +392,54 @@ private static object ContentRemovedEvtKey = new object(); /// Item to pack after existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - public bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate(this.NativeHandle, subobj, existing); + public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate(this.NativeHandle,subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Inserts subobj at the specified index. - /// Valid range: -count to +count. -1 refers to the last element. Out of range indices will trigger an append. + /// Inserts subobj BEFORE the item at position index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack at given index. - /// A position. + /// Item to pack. + /// Index of item to insert BEFORE. Valid range is -count to (count-1). /// false if subobj could not be packed. - public bool PackAt( Efl.Gfx.IEntity subobj, int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate(this.NativeHandle, subobj, index); + public bool PackAt(Efl.Gfx.IEntity subobj, int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate(this.NativeHandle,subobj, index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Content at a given index in this container. - /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1). - /// Index number + /// Content at a given index in this container. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will return the first item whereas index greater than count-1 will return the last item. + /// Index of the item to retrieve. Valid range is -count to (count-1). /// The object contained at the given index. - public Efl.Gfx.IEntity GetPackContent( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate(this.NativeHandle, index); + public Efl.Gfx.IEntity GetPackContent(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate(this.NativeHandle,index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the index of a child in this container. /// An object contained in this pack. - /// -1 in case of failure, or the index of this item. - public int GetPackIndex( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate(this.NativeHandle, subobj); + /// -1 in case subobj is not a child of this object, or the index of this item in the range 0 to (count-1). + public int GetPackIndex(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Pop out item at specified index. - /// Equivalent to unpack(content_at(index)). - /// Index number + /// Pop out (remove) the item at the specified index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will remove the first item whereas index greater than count-1 will remove the last item. + /// + /// Equivalent to ((index)). + /// Index of item to remove. Valid range is -count to (count-1). /// The child item if it could be removed. - public Efl.Gfx.IEntity PackUnpackAt( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate(this.NativeHandle, index); + public Efl.Gfx.IEntity PackUnpackAt(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate(this.NativeHandle,index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -362,7 +447,7 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Iterator to object content public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -370,48 +455,44 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate(this.NativeHandle, out align_horiz, out align_vert); + public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate(this.NativeHandle,out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate(this.NativeHandle, align_horiz, align_vert); + public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate(this.NativeHandle,align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate(this.NativeHandle, out pad_horiz, out pad_vert, out scalable); + public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate(this.NativeHandle,out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate(this.NativeHandle, pad_horiz, pad_vert, scalable); + public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate(this.NativeHandle,pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -419,15 +500,15 @@ private static object ContentRemovedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate(this.NativeHandle, subobj); + public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -437,8 +518,8 @@ private static object ContentRemovedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate(this.NativeHandle, subobj); + public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -446,540 +527,856 @@ private static object ContentRemovedEvtKey = new object(); { return Efl.IPackLinearConcrete.efl_pack_linear_interface_get(); } -} -public class IPackLinearNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_pack_begin_static_delegate == null) - efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); - if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate)}); - if (efl_pack_end_static_delegate == null) - efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); - if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate)}); - if (efl_pack_before_static_delegate == null) - efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); - if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate)}); - if (efl_pack_after_static_delegate == null) - efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); - if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate)}); - if (efl_pack_at_static_delegate == null) - efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); - if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate)}); - if (efl_pack_content_get_static_delegate == null) - efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate)}); - if (efl_pack_index_get_static_delegate == null) - efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate)}); - if (efl_pack_unpack_at_static_delegate == null) - efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); - if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate)}); - if (efl_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IPackLinearConcrete.efl_pack_linear_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.IPackLinearConcrete.efl_pack_linear_interface_get(); - } - + 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_pack_begin_static_delegate == null) + { + efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); + } + if (efl_pack_end_static_delegate == null) + { + efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_begin"); - private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_begin was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackLinear)wrapper).PackBegin( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + if (efl_pack_before_static_delegate == null) + { + efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); + } + if (efl_pack_after_static_delegate == null) + { + efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_end"); - private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackLinear)wrapper).PackEnd( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_end_delegate efl_pack_end_static_delegate; + if (efl_pack_at_static_delegate == null) + { + efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); + } + if (efl_pack_content_get_static_delegate == null) + { + efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_before"); - private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_before was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackLinear)wrapper).PackBefore( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); - } - } - private static efl_pack_before_delegate efl_pack_before_static_delegate; + if (efl_pack_index_get_static_delegate == null) + { + efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); + } + if (efl_pack_unpack_at_static_delegate == null) + { + efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_after"); - private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_after was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackLinear)wrapper).PackAfter( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); - } - } - private static efl_pack_after_delegate efl_pack_after_static_delegate; + if (efl_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_at"); - private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) - { - Eina.Log.Debug("function efl_pack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackLinear)wrapper).PackAt( subobj, index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); - } - } - private static efl_pack_at_delegate efl_pack_at_static_delegate; + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_content_get"); - private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((IPackLinear)wrapper).GetPackContent( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); - } - } - private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); + } - private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); + } - public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_index_get"); - private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_index_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IPackLinear)wrapper).GetPackIndex( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_at"); - private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_unpack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((IPackLinear)wrapper).PackUnpackAt( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); - } - } - private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IPackLinear)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_iterate_delegate efl_content_iterate_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.IPackLinearConcrete.efl_pack_linear_interface_get(); + } - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); + + private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_begin was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackLinear)wrapper).PackBegin(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IPackLinear)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_content_count_delegate efl_content_count_static_delegate; - - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); + + private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackLinear)wrapper).PackEnd(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((IPackLinear)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); + } + else + { + return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + private static efl_pack_end_delegate efl_pack_end_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); + + private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_before was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackLinear)wrapper).PackBefore(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); - + return _ret_var; - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPackLinear)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + else + { + return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + private static efl_pack_before_delegate efl_pack_before_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); + + private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_after was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackLinear)wrapper).PackAfter(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + private static efl_pack_after_delegate efl_pack_after_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); + + private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) + { + Eina.Log.Debug("function efl_pack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackLinear)wrapper).PackAt(subobj, index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((IPackLinear)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); + } + else + { + return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + } } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + private static efl_pack_at_delegate efl_pack_at_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); + + private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((IPackLinear)wrapper).GetPackContent(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + return _ret_var; + + } + else + { + return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + + + private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); + + private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_index_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IPackLinear)wrapper).GetPackIndex(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPackLinear)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + return _ret_var; + + } + else + { + return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); + + private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_unpack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((IPackLinear)wrapper).PackUnpackAt(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IPackLinear)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackLinear)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IPackLinear)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackLinear)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_content_count_delegate efl_content_count_static_delegate; + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((IPackLinear)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPackLinear)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((IPackLinear)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); + } + } + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPackLinear)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } + + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackLinear)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackLinear)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackLinear)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackLinear)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackLinear)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackLinear)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_delegate efl_pack_static_delegate; + + private static efl_pack_delegate efl_pack_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_pack_table.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_pack_table.eo.cs index 451d8a6..fda2d3a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_pack_table.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_pack_table.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// 2D containers aligned on a table with rows and columns -[IPackTableNativeInherit] +[Efl.IPackTableConcrete.NativeMethods] public interface IPackTable : Efl.IPack , Efl.Eo.IWrapper, IDisposable @@ -18,43 +20,37 @@ public interface IPackTable : /// Column span /// Row span /// Returns false if item is not a child -bool GetTablePosition( Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); +bool GetTablePosition(Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); /// Combines and /// Number of columns /// Number of rows -/// -void GetTableSize( out int cols, out int rows); +void GetTableSize(out int cols, out int rows); /// Combines and /// Number of columns /// Number of rows -/// -void SetTableSize( int cols, int rows); +void SetTableSize(int cols, int rows); /// Gird columns property /// Number of columns int GetTableColumns(); /// Specifies limit for linear adds - if direction is horizontal /// Number of columns -/// -void SetTableColumns( int cols); +void SetTableColumns(int cols); /// Table rows property /// Number of rows int GetTableRows(); /// Specifies limit for linear adds - if direction is vertical /// Number of rows -/// -void SetTableRows( int rows); +void SetTableRows(int rows); /// Primary and secondary up/left/right/down directions for linear apis. /// Default is horizontal and vertical. This overrides . /// Primary direction /// Secondary direction -/// -void GetTableDirection( out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); +void GetTableDirection(out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); /// Primary and secondary up/left/right/down directions for linear apis. /// Default is horizontal and vertical. This overrides . /// Primary direction /// Secondary direction -/// -void SetTableDirection( Efl.Ui.Dir primary, Efl.Ui.Dir secondary); +void SetTableDirection(Efl.Ui.Dir primary, Efl.Ui.Dir secondary); /// Pack object at a given location in the table. /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// A child object to pack in this table. @@ -63,18 +59,18 @@ void SetTableDirection( Efl.Ui.Dir primary, Efl.Ui.Dir secondary); /// 0 means 1, -1 means /// 0 means 1, -1 means /// true on success, false otherwise -bool PackTable( Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); +bool PackTable(Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); /// Returns all objects at a given position in this table. /// Column number /// Row number /// If true get objects spanning over this cell. /// Iterator to table contents -Eina.Iterator GetTableContents( int col, int row, bool below); +Eina.Iterator GetTableContents(int col, int row, bool below); /// Returns a child at a given position, see . /// Column number /// Row number /// Child object -Efl.Gfx.IEntity GetTableContent( int col, int row); +Efl.Gfx.IEntity GetTableContent(int col, int row); /// Gird columns property /// Number of columns int TableColumns { @@ -95,216 +91,283 @@ IPackTable , Efl.IContainer, Efl.IPack { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IPackTableConcrete)) - return Efl.IPackTableNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IPackTableConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_pack_table_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IPackTableConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IPackTableConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ContentAddedEvtKey = new object(); + /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Position and span of the subobj in this container, may be modified to move the subobj /// Child object @@ -313,71 +376,65 @@ private static object ContentRemovedEvtKey = new object(); /// Column span /// Row span /// Returns false if item is not a child - public bool GetTablePosition( Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_position_get_ptr.Value.Delegate(this.NativeHandle, subobj, out col, out row, out colspan, out rowspan); + public bool GetTablePosition(Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_position_get_ptr.Value.Delegate(this.NativeHandle,subobj, out col, out row, out colspan, out rowspan); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Combines and /// Number of columns /// Number of rows - /// - public void GetTableSize( out int cols, out int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_size_get_ptr.Value.Delegate(this.NativeHandle, out cols, out rows); + public void GetTableSize(out int cols, out int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_size_get_ptr.Value.Delegate(this.NativeHandle,out cols, out rows); Eina.Error.RaiseIfUnhandledException(); } /// Combines and /// Number of columns /// Number of rows - /// - public void SetTableSize( int cols, int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_size_set_ptr.Value.Delegate(this.NativeHandle, cols, rows); + public void SetTableSize(int cols, int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_size_set_ptr.Value.Delegate(this.NativeHandle,cols, rows); Eina.Error.RaiseIfUnhandledException(); } /// Gird columns property /// Number of columns public int GetTableColumns() { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_columns_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_columns_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies limit for linear adds - if direction is horizontal /// Number of columns - /// - public void SetTableColumns( int cols) { - Efl.IPackTableNativeInherit.efl_pack_table_columns_set_ptr.Value.Delegate(this.NativeHandle, cols); + public void SetTableColumns(int cols) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_columns_set_ptr.Value.Delegate(this.NativeHandle,cols); Eina.Error.RaiseIfUnhandledException(); } /// Table rows property /// Number of rows public int GetTableRows() { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_rows_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_rows_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies limit for linear adds - if direction is vertical /// Number of rows - /// - public void SetTableRows( int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_rows_set_ptr.Value.Delegate(this.NativeHandle, rows); + public void SetTableRows(int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_rows_set_ptr.Value.Delegate(this.NativeHandle,rows); Eina.Error.RaiseIfUnhandledException(); } /// Primary and secondary up/left/right/down directions for linear apis. /// Default is horizontal and vertical. This overrides . /// Primary direction /// Secondary direction - /// - public void GetTableDirection( out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) { - Efl.IPackTableNativeInherit.efl_pack_table_direction_get_ptr.Value.Delegate(this.NativeHandle, out primary, out secondary); + public void GetTableDirection(out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_direction_get_ptr.Value.Delegate(this.NativeHandle,out primary, out secondary); Eina.Error.RaiseIfUnhandledException(); } /// Primary and secondary up/left/right/down directions for linear apis. /// Default is horizontal and vertical. This overrides . /// Primary direction /// Secondary direction - /// - public void SetTableDirection( Efl.Ui.Dir primary, Efl.Ui.Dir secondary) { - Efl.IPackTableNativeInherit.efl_pack_table_direction_set_ptr.Value.Delegate(this.NativeHandle, primary, secondary); + public void SetTableDirection(Efl.Ui.Dir primary, Efl.Ui.Dir secondary) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_direction_set_ptr.Value.Delegate(this.NativeHandle,primary, secondary); Eina.Error.RaiseIfUnhandledException(); } /// Pack object at a given location in the table. @@ -388,8 +445,8 @@ private static object ContentRemovedEvtKey = new object(); /// 0 means 1, -1 means /// 0 means 1, -1 means /// true on success, false otherwise - public bool PackTable( Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_ptr.Value.Delegate(this.NativeHandle, subobj, col, row, colspan, rowspan); + public bool PackTable(Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_ptr.Value.Delegate(this.NativeHandle,subobj, col, row, colspan, rowspan); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -398,8 +455,8 @@ private static object ContentRemovedEvtKey = new object(); /// Row number /// If true get objects spanning over this cell. /// Iterator to table contents - public Eina.Iterator GetTableContents( int col, int row, bool below) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_contents_get_ptr.Value.Delegate(this.NativeHandle, col, row, below); + public Eina.Iterator GetTableContents(int col, int row, bool below) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_contents_get_ptr.Value.Delegate(this.NativeHandle,col, row, below); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -407,8 +464,8 @@ private static object ContentRemovedEvtKey = new object(); /// Column number /// Row number /// Child object - public Efl.Gfx.IEntity GetTableContent( int col, int row) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_content_get_ptr.Value.Delegate(this.NativeHandle, col, row); + public Efl.Gfx.IEntity GetTableContent(int col, int row) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_content_get_ptr.Value.Delegate(this.NativeHandle,col, row); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -416,7 +473,7 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Iterator to object content public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -424,48 +481,44 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate(this.NativeHandle, out align_horiz, out align_vert); + public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate(this.NativeHandle,out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate(this.NativeHandle, align_horiz, align_vert); + public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate(this.NativeHandle,align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate(this.NativeHandle, out pad_horiz, out pad_vert, out scalable); + public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate(this.NativeHandle,out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate(this.NativeHandle, pad_horiz, pad_vert, scalable); + public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate(this.NativeHandle,pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -473,15 +526,15 @@ private static object ContentRemovedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate(this.NativeHandle, subobj); + public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -491,8 +544,8 @@ private static object ContentRemovedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate(this.NativeHandle, subobj); + public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate(this.NativeHandle,subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -500,662 +553,1046 @@ private static object ContentRemovedEvtKey = new object(); /// Number of columns public int TableColumns { get { return GetTableColumns(); } - set { SetTableColumns( value); } + set { SetTableColumns(value); } } /// Table rows property /// Number of rows public int TableRows { get { return GetTableRows(); } - set { SetTableRows( value); } + set { SetTableRows(value); } } private static IntPtr GetEflClassStatic() { return Efl.IPackTableConcrete.efl_pack_table_interface_get(); } -} -public class IPackTableNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_pack_table_position_get_static_delegate == null) - efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate)}); - if (efl_pack_table_size_get_static_delegate == null) - efl_pack_table_size_get_static_delegate = new efl_pack_table_size_get_delegate(table_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_get_static_delegate)}); - if (efl_pack_table_size_set_static_delegate == null) - efl_pack_table_size_set_static_delegate = new efl_pack_table_size_set_delegate(table_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_set_static_delegate)}); - if (efl_pack_table_columns_get_static_delegate == null) - efl_pack_table_columns_get_static_delegate = new efl_pack_table_columns_get_delegate(table_columns_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableColumns") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_columns_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_get_static_delegate)}); - if (efl_pack_table_columns_set_static_delegate == null) - efl_pack_table_columns_set_static_delegate = new efl_pack_table_columns_set_delegate(table_columns_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableColumns") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_columns_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_set_static_delegate)}); - if (efl_pack_table_rows_get_static_delegate == null) - efl_pack_table_rows_get_static_delegate = new efl_pack_table_rows_get_delegate(table_rows_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableRows") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_rows_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_get_static_delegate)}); - if (efl_pack_table_rows_set_static_delegate == null) - efl_pack_table_rows_set_static_delegate = new efl_pack_table_rows_set_delegate(table_rows_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableRows") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_rows_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_set_static_delegate)}); - if (efl_pack_table_direction_get_static_delegate == null) - efl_pack_table_direction_get_static_delegate = new efl_pack_table_direction_get_delegate(table_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_get_static_delegate)}); - if (efl_pack_table_direction_set_static_delegate == null) - efl_pack_table_direction_set_static_delegate = new efl_pack_table_direction_set_delegate(table_direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_set_static_delegate)}); - if (efl_pack_table_static_delegate == null) - efl_pack_table_static_delegate = new efl_pack_table_delegate(pack_table); - if (methods.FirstOrDefault(m => m.Name == "PackTable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_static_delegate)}); - if (efl_pack_table_contents_get_static_delegate == null) - efl_pack_table_contents_get_static_delegate = new efl_pack_table_contents_get_delegate(table_contents_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableContents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_contents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_contents_get_static_delegate)}); - if (efl_pack_table_content_get_static_delegate == null) - efl_pack_table_content_get_static_delegate = new efl_pack_table_content_get_delegate(table_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_content_get_static_delegate)}); - if (efl_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IPackTableConcrete.efl_pack_table_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.IPackTableConcrete.efl_pack_table_interface_get(); - } - + 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_pack_table_position_get_static_delegate == null) + { + efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate) }); + } + if (efl_pack_table_size_get_static_delegate == null) + { + efl_pack_table_size_get_static_delegate = new efl_pack_table_size_get_delegate(table_size_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_position_get"); - private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) - { - Eina.Log.Debug("function efl_pack_table_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((IPackTable)wrapper).GetTablePosition( subobj, out col, out row, out colspan, out rowspan); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTableSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); - } - } - private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + if (efl_pack_table_size_set_static_delegate == null) + { + efl_pack_table_size_set_static_delegate = new efl_pack_table_size_set_delegate(table_size_set); + } - private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); + if (methods.FirstOrDefault(m => m.Name == "SetTableSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_set_static_delegate) }); + } + if (efl_pack_table_columns_get_static_delegate == null) + { + efl_pack_table_columns_get_static_delegate = new efl_pack_table_columns_get_delegate(table_columns_get); + } - public delegate void efl_pack_table_size_get_api_delegate(System.IntPtr obj, out int cols, out int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_size_get"); - private static void table_size_get(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows) - { - Eina.Log.Debug("function efl_pack_table_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - cols = default(int); rows = default(int); - try { - ((IPackTable)wrapper).GetTableSize( out cols, out rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cols, out rows); - } - } - private static efl_pack_table_size_get_delegate efl_pack_table_size_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetTableColumns") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_columns_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_get_static_delegate) }); + } + if (efl_pack_table_columns_set_static_delegate == null) + { + efl_pack_table_columns_set_static_delegate = new efl_pack_table_columns_set_delegate(table_columns_set); + } - private delegate void efl_pack_table_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols, int rows); + if (methods.FirstOrDefault(m => m.Name == "SetTableColumns") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_columns_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_set_static_delegate) }); + } + if (efl_pack_table_rows_get_static_delegate == null) + { + efl_pack_table_rows_get_static_delegate = new efl_pack_table_rows_get_delegate(table_rows_get); + } - public delegate void efl_pack_table_size_set_api_delegate(System.IntPtr obj, int cols, int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_size_set"); - private static void table_size_set(System.IntPtr obj, System.IntPtr pd, int cols, int rows) - { - Eina.Log.Debug("function efl_pack_table_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPackTable)wrapper).SetTableSize( cols, rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols, rows); - } - } - private static efl_pack_table_size_set_delegate efl_pack_table_size_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetTableRows") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_rows_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_get_static_delegate) }); + } + if (efl_pack_table_rows_set_static_delegate == null) + { + efl_pack_table_rows_set_static_delegate = new efl_pack_table_rows_set_delegate(table_rows_set); + } - private delegate int efl_pack_table_columns_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetTableRows") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_rows_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_set_static_delegate) }); + } + if (efl_pack_table_direction_get_static_delegate == null) + { + efl_pack_table_direction_get_static_delegate = new efl_pack_table_direction_get_delegate(table_direction_get); + } - public delegate int efl_pack_table_columns_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_table_columns_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_columns_get"); - private static int table_columns_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_table_columns_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IPackTable)wrapper).GetTableColumns(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTableDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_table_columns_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_table_columns_get_delegate efl_pack_table_columns_get_static_delegate; + if (efl_pack_table_direction_set_static_delegate == null) + { + efl_pack_table_direction_set_static_delegate = new efl_pack_table_direction_set_delegate(table_direction_set); + } - private delegate void efl_pack_table_columns_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols); + if (methods.FirstOrDefault(m => m.Name == "SetTableDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_set_static_delegate) }); + } + if (efl_pack_table_static_delegate == null) + { + efl_pack_table_static_delegate = new efl_pack_table_delegate(pack_table); + } - public delegate void efl_pack_table_columns_set_api_delegate(System.IntPtr obj, int cols); - public static Efl.Eo.FunctionWrapper efl_pack_table_columns_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_columns_set"); - private static void table_columns_set(System.IntPtr obj, System.IntPtr pd, int cols) - { - Eina.Log.Debug("function efl_pack_table_columns_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPackTable)wrapper).SetTableColumns( cols); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_columns_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols); - } - } - private static efl_pack_table_columns_set_delegate efl_pack_table_columns_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "PackTable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_static_delegate) }); + } + if (efl_pack_table_contents_get_static_delegate == null) + { + efl_pack_table_contents_get_static_delegate = new efl_pack_table_contents_get_delegate(table_contents_get); + } - private delegate int efl_pack_table_rows_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetTableContents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_contents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_contents_get_static_delegate) }); + } + if (efl_pack_table_content_get_static_delegate == null) + { + efl_pack_table_content_get_static_delegate = new efl_pack_table_content_get_delegate(table_content_get); + } - public delegate int efl_pack_table_rows_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_table_rows_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_rows_get"); - private static int table_rows_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_table_rows_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IPackTable)wrapper).GetTableRows(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTableContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_content_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_table_rows_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_table_rows_get_delegate efl_pack_table_rows_get_static_delegate; + if (efl_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } - private delegate void efl_pack_table_rows_set_delegate(System.IntPtr obj, System.IntPtr pd, int rows); + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } - public delegate void efl_pack_table_rows_set_api_delegate(System.IntPtr obj, int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_rows_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_rows_set"); - private static void table_rows_set(System.IntPtr obj, System.IntPtr pd, int rows) - { - Eina.Log.Debug("function efl_pack_table_rows_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPackTable)wrapper).SetTableRows( rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_rows_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rows); - } - } - private static efl_pack_table_rows_set_delegate efl_pack_table_rows_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); + } + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } - private delegate void efl_pack_table_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } - public delegate void efl_pack_table_direction_get_api_delegate(System.IntPtr obj, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); - public static Efl.Eo.FunctionWrapper efl_pack_table_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_direction_get"); - private static void table_direction_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) - { - Eina.Log.Debug("function efl_pack_table_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - primary = default(Efl.Ui.Dir); secondary = default(Efl.Ui.Dir); - try { - ((IPackTable)wrapper).GetTableDirection( out primary, out secondary); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out primary, out secondary); - } - } - private static efl_pack_table_direction_get_delegate efl_pack_table_direction_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); + } + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); + } - private delegate void efl_pack_table_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); + } - public delegate void efl_pack_table_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); - public static Efl.Eo.FunctionWrapper efl_pack_table_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_direction_set"); - private static void table_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary) - { - Eina.Log.Debug("function efl_pack_table_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPackTable)wrapper).SetTableDirection( primary, secondary); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), primary, secondary); - } - } - private static efl_pack_table_direction_set_delegate efl_pack_table_direction_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); + } + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_table_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_table_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table"); - private static bool pack_table(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) - { - Eina.Log.Debug("function efl_pack_table was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackTable)wrapper).PackTable( subobj, col, row, colspan, rowspan); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_table_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, row, colspan, rowspan); - } - } - private static efl_pack_table_delegate efl_pack_table_static_delegate; + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } - private delegate System.IntPtr efl_pack_table_contents_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } - public delegate System.IntPtr efl_pack_table_contents_get_api_delegate(System.IntPtr obj, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); - public static Efl.Eo.FunctionWrapper efl_pack_table_contents_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_contents_get"); - private static System.IntPtr table_contents_get(System.IntPtr obj, System.IntPtr pd, int col, int row, bool below) - { - Eina.Log.Debug("function efl_pack_table_contents_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IPackTable)wrapper).GetTableContents( col, row, below); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_pack_table_contents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row, below); + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.IPackTableConcrete.efl_pack_table_interface_get(); } - } - private static efl_pack_table_contents_get_delegate efl_pack_table_contents_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_position_get"); + + private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) + { + Eina.Log.Debug("function efl_pack_table_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((IPackTable)wrapper).GetTablePosition(subobj, out col, out row, out colspan, out rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_table_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row); + return _ret_var; + } + else + { + return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_table_content_get_api_delegate(System.IntPtr obj, int col, int row); - public static Efl.Eo.FunctionWrapper efl_pack_table_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_content_get"); - private static Efl.Gfx.IEntity table_content_get(System.IntPtr obj, System.IntPtr pd, int col, int row) - { - Eina.Log.Debug("function efl_pack_table_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((IPackTable)wrapper).GetTableContent( col, row); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + + + private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); + + + public delegate void efl_pack_table_size_get_api_delegate(System.IntPtr obj, out int cols, out int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_size_get"); + + private static void table_size_get(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows) + { + Eina.Log.Debug("function efl_pack_table_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + cols = default(int); rows = default(int); + try + { + ((IPackTable)wrapper).GetTableSize(out cols, out rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cols, out rows); } - return _ret_var; - } else { - return efl_pack_table_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row); } - } - private static efl_pack_table_content_get_delegate efl_pack_table_content_get_static_delegate; + private static efl_pack_table_size_get_delegate efl_pack_table_size_get_static_delegate; + + + private delegate void efl_pack_table_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols, int rows); + + + public delegate void efl_pack_table_size_set_api_delegate(System.IntPtr obj, int cols, int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_size_set"); + + private static void table_size_set(System.IntPtr obj, System.IntPtr pd, int cols, int rows) + { + Eina.Log.Debug("function efl_pack_table_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPackTable)wrapper).SetTableSize(cols, rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols, rows); + } + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_pack_table_size_set_delegate efl_pack_table_size_set_static_delegate; + + + private delegate int efl_pack_table_columns_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_pack_table_columns_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_table_columns_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_columns_get"); + + private static int table_columns_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_table_columns_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IPackTable)wrapper).GetTableColumns(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IPackTable)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_pack_table_columns_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + private static efl_pack_table_columns_get_delegate efl_pack_table_columns_get_static_delegate; + + + private delegate void efl_pack_table_columns_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols); + + + public delegate void efl_pack_table_columns_set_api_delegate(System.IntPtr obj, int cols); + + public static Efl.Eo.FunctionWrapper efl_pack_table_columns_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_columns_set"); + + private static void table_columns_set(System.IntPtr obj, System.IntPtr pd, int cols) + { + Eina.Log.Debug("function efl_pack_table_columns_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPackTable)wrapper).SetTableColumns(cols); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_columns_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols); + } + } - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_pack_table_columns_set_delegate efl_pack_table_columns_set_static_delegate; + + + private delegate int efl_pack_table_rows_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_pack_table_rows_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_table_rows_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_rows_get"); + + private static int table_rows_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_table_rows_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IPackTable)wrapper).GetTableRows(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IPackTable)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_pack_table_rows_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_count_delegate efl_content_count_static_delegate; - - - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + private static efl_pack_table_rows_get_delegate efl_pack_table_rows_get_static_delegate; + + + private delegate void efl_pack_table_rows_set_delegate(System.IntPtr obj, System.IntPtr pd, int rows); + + + public delegate void efl_pack_table_rows_set_api_delegate(System.IntPtr obj, int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_rows_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_rows_set"); + + private static void table_rows_set(System.IntPtr obj, System.IntPtr pd, int rows) + { + Eina.Log.Debug("function efl_pack_table_rows_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPackTable)wrapper).SetTableRows(rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_rows_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rows); + } + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((IPackTable)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); + private static efl_pack_table_rows_set_delegate efl_pack_table_rows_set_static_delegate; + + + private delegate void efl_pack_table_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + + + public delegate void efl_pack_table_direction_get_api_delegate(System.IntPtr obj, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + + public static Efl.Eo.FunctionWrapper efl_pack_table_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_direction_get"); + + private static void table_direction_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) + { + Eina.Log.Debug("function efl_pack_table_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + primary = default(Efl.Ui.Dir); secondary = default(Efl.Ui.Dir); + try + { + ((IPackTable)wrapper).GetTableDirection(out primary, out secondary); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out primary, out secondary); + } } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + private static efl_pack_table_direction_get_delegate efl_pack_table_direction_get_static_delegate; + + + private delegate void efl_pack_table_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + + + public delegate void efl_pack_table_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + + public static Efl.Eo.FunctionWrapper efl_pack_table_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_direction_set"); + + private static void table_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary) + { + Eina.Log.Debug("function efl_pack_table_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPackTable)wrapper).SetTableDirection(primary, secondary); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), primary, secondary); + } + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + private static efl_pack_table_direction_set_delegate efl_pack_table_direction_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table"); + + private static bool pack_table(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) + { + Eina.Log.Debug("function efl_pack_table was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackTable)wrapper).PackTable(subobj, col, row, colspan, rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPackTable)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + else + { + return efl_pack_table_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, row, colspan, rowspan); + } } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; - - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + private static efl_pack_table_delegate efl_pack_table_static_delegate; + + + private delegate System.IntPtr efl_pack_table_contents_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); + + + public delegate System.IntPtr efl_pack_table_contents_get_api_delegate(System.IntPtr obj, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); + + public static Efl.Eo.FunctionWrapper efl_pack_table_contents_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_contents_get"); + + private static System.IntPtr table_contents_get(System.IntPtr obj, System.IntPtr pd, int col, int row, bool below) + { + Eina.Log.Debug("function efl_pack_table_contents_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IPackTable)wrapper).GetTableContents(col, row, below); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((IPackTable)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); + } + else + { + return efl_pack_table_contents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row, below); + } } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + private static efl_pack_table_contents_get_delegate efl_pack_table_contents_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_table_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_table_content_get_api_delegate(System.IntPtr obj, int col, int row); + + public static Efl.Eo.FunctionWrapper efl_pack_table_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_content_get"); + + private static Efl.Gfx.IEntity table_content_get(System.IntPtr obj, System.IntPtr pd, int col, int row) + { + Eina.Log.Debug("function efl_pack_table_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((IPackTable)wrapper).GetTableContent(col, row); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - + return _ret_var; - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPackTable)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + else + { + return efl_pack_table_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row); + } } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + private static efl_pack_table_content_get_delegate efl_pack_table_content_get_static_delegate; + + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IPackTable)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); - + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackTable)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IPackTable)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackTable)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_content_count_delegate efl_content_count_static_delegate; + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((IPackTable)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPackTable)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((IPackTable)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); + } + } + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPackTable)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } + + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackTable)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackTable)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackTable)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + return _ret_var; + } + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackTable)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPackTable)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPackTable)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_delegate efl_pack_static_delegate; + + private static efl_pack_delegate efl_pack_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_page_indicator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_page_indicator.eo.cs index 3727d3d..d320c12 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_page_indicator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_page_indicator.eo.cs @@ -3,119 +3,171 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Page { +namespace Efl { + +namespace Page { + /// Page indicator /// Page indicator is used with . It is located on the top layer of pager widget and helps users to know the number of pages and the current page's index without scrolling. -[IndicatorNativeInherit] +[Efl.Page.Indicator.NativeMethods] public class Indicator : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Indicator)) - return Efl.Page.IndicatorNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Indicator)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_page_indicator_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Indicator(Efl.Object parent= null - ) : - base(efl_page_indicator_class_get(), typeof(Indicator), parent) + ) : base(efl_page_indicator_class_get(), typeof(Indicator), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Indicator(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Indicator(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Indicator(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// set object /// pager object /// a dummy object for layer adjustment - /// - virtual public void Bind( Efl.Ui.Pager pager, Efl.Canvas.Group group) { - Efl.Page.IndicatorNativeInherit.efl_page_indicator_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pager, group); + virtual public void Bind(Efl.Ui.Pager pager, Efl.Canvas.Group group) { + Efl.Page.Indicator.NativeMethods.efl_page_indicator_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pager, group); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Page.Indicator.efl_page_indicator_class_get(); } -} -public class IndicatorNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_page_indicator_bind_static_delegate == null) - efl_page_indicator_bind_static_delegate = new efl_page_indicator_bind_delegate(bind); - if (methods.FirstOrDefault(m => m.Name == "Bind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_page_indicator_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_page_indicator_bind_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Page.Indicator.efl_page_indicator_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Page.Indicator.efl_page_indicator_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_page_indicator_bind_static_delegate == null) + { + efl_page_indicator_bind_static_delegate = new efl_page_indicator_bind_delegate(bind); + } + + if (methods.FirstOrDefault(m => m.Name == "Bind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_page_indicator_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_page_indicator_bind_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Page.Indicator.efl_page_indicator_class_get(); + } - private delegate void efl_page_indicator_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Pager pager, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Group group); + #pragma warning disable CA1707, SA1300, SA1600 + + private delegate void efl_page_indicator_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Pager pager, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Group group); - public delegate void efl_page_indicator_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Pager pager, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Group group); - public static Efl.Eo.FunctionWrapper efl_page_indicator_bind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_page_indicator_bind"); - private static void bind(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Pager pager, Efl.Canvas.Group group) - { - Eina.Log.Debug("function efl_page_indicator_bind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Indicator)wrapper).Bind( pager, group); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + public delegate void efl_page_indicator_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Pager pager, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Group group); + + public static Efl.Eo.FunctionWrapper efl_page_indicator_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_page_indicator_bind"); + + private static void bind(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Pager pager, Efl.Canvas.Group group) + { + Eina.Log.Debug("function efl_page_indicator_bind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Indicator)wrapper).Bind(pager, group); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_page_indicator_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pager, group); } - } else { - efl_page_indicator_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pager, group); } - } - private static efl_page_indicator_bind_delegate efl_page_indicator_bind_static_delegate; + + private static efl_page_indicator_bind_delegate efl_page_indicator_bind_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_page_indicator_icon.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_page_indicator_icon.eo.cs index 22328b6..aaf8546 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_page_indicator_icon.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_page_indicator_icon.eo.cs @@ -3,83 +3,116 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Page { +namespace Efl { + +namespace Page { + /// Icon type page indicator /// This class offers icon type indicator for . This type of page indicator creates the same number of icons as pages and arrange them in a linear order. An icon has two states: default and selected. -[IndicatorIconNativeInherit] +[Efl.Page.IndicatorIcon.NativeMethods] public class IndicatorIcon : Efl.Page.Indicator, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IndicatorIcon)) - return Efl.Page.IndicatorIconNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IndicatorIcon)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_page_indicator_icon_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public IndicatorIcon(Efl.Object parent= null - ) : - base(efl_page_indicator_icon_class_get(), typeof(IndicatorIcon), parent) + ) : base(efl_page_indicator_icon_class_get(), typeof(IndicatorIcon), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected IndicatorIcon(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected IndicatorIcon(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected IndicatorIcon(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Page.IndicatorIcon.efl_page_indicator_icon_class_get(); } -} -public class IndicatorIconNativeInherit : Efl.Page.IndicatorNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Page.IndicatorIcon.efl_page_indicator_icon_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Page.Indicator.NativeMethods { - return Efl.Page.IndicatorIcon.efl_page_indicator_icon_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Page.IndicatorIcon.efl_page_indicator_icon_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_page_transition.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_page_transition.eo.cs index 2e5cfda..2df8354 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_page_transition.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_page_transition.eo.cs @@ -3,119 +3,171 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Page { +namespace Efl { + +namespace Page { + /// Page transition for /// A page transition is essential to object and invoked whenever pages are rearranged or scrolled (see ). -[TransitionNativeInherit] +[Efl.Page.Transition.NativeMethods] public class Transition : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Transition)) - return Efl.Page.TransitionNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Transition)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_page_transition_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Transition(Efl.Object parent= null - ) : - base(efl_page_transition_class_get(), typeof(Transition), parent) + ) : base(efl_page_transition_class_get(), typeof(Transition), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Transition(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Transition(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Transition(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// set object /// pager object /// a dummy object for layer adjustment - /// - virtual public void Bind( Efl.Ui.Pager pager, Efl.Canvas.Group group) { - Efl.Page.TransitionNativeInherit.efl_page_transition_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pager, group); + virtual public void Bind(Efl.Ui.Pager pager, Efl.Canvas.Group group) { + Efl.Page.Transition.NativeMethods.efl_page_transition_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pager, group); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Page.Transition.efl_page_transition_class_get(); } -} -public class TransitionNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_page_transition_bind_static_delegate == null) - efl_page_transition_bind_static_delegate = new efl_page_transition_bind_delegate(bind); - if (methods.FirstOrDefault(m => m.Name == "Bind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_page_transition_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_page_transition_bind_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Page.Transition.efl_page_transition_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Page.Transition.efl_page_transition_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_page_transition_bind_static_delegate == null) + { + efl_page_transition_bind_static_delegate = new efl_page_transition_bind_delegate(bind); + } + + if (methods.FirstOrDefault(m => m.Name == "Bind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_page_transition_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_page_transition_bind_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Page.Transition.efl_page_transition_class_get(); + } - private delegate void efl_page_transition_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Pager pager, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Group group); + #pragma warning disable CA1707, SA1300, SA1600 + + private delegate void efl_page_transition_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Pager pager, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Group group); - public delegate void efl_page_transition_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Pager pager, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Group group); - public static Efl.Eo.FunctionWrapper efl_page_transition_bind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_page_transition_bind"); - private static void bind(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Pager pager, Efl.Canvas.Group group) - { - Eina.Log.Debug("function efl_page_transition_bind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Transition)wrapper).Bind( pager, group); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + public delegate void efl_page_transition_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Pager pager, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Group group); + + public static Efl.Eo.FunctionWrapper efl_page_transition_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_page_transition_bind"); + + private static void bind(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Pager pager, Efl.Canvas.Group group) + { + Eina.Log.Debug("function efl_page_transition_bind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Transition)wrapper).Bind(pager, group); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_page_transition_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pager, group); } - } else { - efl_page_transition_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pager, group); } - } - private static efl_page_transition_bind_delegate efl_page_transition_bind_static_delegate; + + private static efl_page_transition_bind_delegate efl_page_transition_bind_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_page_transition_scroll.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_page_transition_scroll.eo.cs index 32f9f97..2e5a450 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_page_transition_scroll.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_page_transition_scroll.eo.cs @@ -3,160 +3,226 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Page { +namespace Efl { + +namespace Page { + /// Page transition for /// With this type of transition, pages are arranged linearly and move parallel to the screen by scrolling. The current page is displayed at center, and previous and next pages might be displayed optionally. -[TransitionScrollNativeInherit] +[Efl.Page.TransitionScroll.NativeMethods] public class TransitionScroll : Efl.Page.Transition, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TransitionScroll)) - return Efl.Page.TransitionScrollNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TransitionScroll)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_page_transition_scroll_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public TransitionScroll(Efl.Object parent= null - ) : - base(efl_page_transition_scroll_class_get(), typeof(TransitionScroll), parent) + ) : base(efl_page_transition_scroll_class_get(), typeof(TransitionScroll), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TransitionScroll(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TransitionScroll(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TransitionScroll(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// The number of pages displayed on each side of the current page - /// virtual public int GetSidePageNum() { - var _ret_var = Efl.Page.TransitionScrollNativeInherit.efl_page_transition_scroll_side_page_num_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Page.TransitionScroll.NativeMethods.efl_page_transition_scroll_side_page_num_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The number of pages displayed on each side of the current page - /// - /// - virtual public void SetSidePageNum( int side_page_num) { - Efl.Page.TransitionScrollNativeInherit.efl_page_transition_scroll_side_page_num_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), side_page_num); + virtual public void SetSidePageNum(int side_page_num) { + Efl.Page.TransitionScroll.NativeMethods.efl_page_transition_scroll_side_page_num_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),side_page_num); Eina.Error.RaiseIfUnhandledException(); } /// The number of pages displayed on each side of the current page -/// public int SidePageNum { get { return GetSidePageNum(); } - set { SetSidePageNum( value); } + set { SetSidePageNum(value); } } private static IntPtr GetEflClassStatic() { return Efl.Page.TransitionScroll.efl_page_transition_scroll_class_get(); } -} -public class TransitionScrollNativeInherit : Efl.Page.TransitionNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_page_transition_scroll_side_page_num_get_static_delegate == null) - efl_page_transition_scroll_side_page_num_get_static_delegate = new efl_page_transition_scroll_side_page_num_get_delegate(side_page_num_get); - if (methods.FirstOrDefault(m => m.Name == "GetSidePageNum") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_page_transition_scroll_side_page_num_get"), func = Marshal.GetFunctionPointerForDelegate(efl_page_transition_scroll_side_page_num_get_static_delegate)}); - if (efl_page_transition_scroll_side_page_num_set_static_delegate == null) - efl_page_transition_scroll_side_page_num_set_static_delegate = new efl_page_transition_scroll_side_page_num_set_delegate(side_page_num_set); - if (methods.FirstOrDefault(m => m.Name == "SetSidePageNum") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_page_transition_scroll_side_page_num_set"), func = Marshal.GetFunctionPointerForDelegate(efl_page_transition_scroll_side_page_num_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Page.TransitionScroll.efl_page_transition_scroll_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Page.Transition.NativeMethods { - return Efl.Page.TransitionScroll.efl_page_transition_scroll_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_page_transition_scroll_side_page_num_get_static_delegate == null) + { + efl_page_transition_scroll_side_page_num_get_static_delegate = new efl_page_transition_scroll_side_page_num_get_delegate(side_page_num_get); + } - private delegate int efl_page_transition_scroll_side_page_num_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSidePageNum") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_page_transition_scroll_side_page_num_get"), func = Marshal.GetFunctionPointerForDelegate(efl_page_transition_scroll_side_page_num_get_static_delegate) }); + } + if (efl_page_transition_scroll_side_page_num_set_static_delegate == null) + { + efl_page_transition_scroll_side_page_num_set_static_delegate = new efl_page_transition_scroll_side_page_num_set_delegate(side_page_num_set); + } - public delegate int efl_page_transition_scroll_side_page_num_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_page_transition_scroll_side_page_num_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_page_transition_scroll_side_page_num_get"); - private static int side_page_num_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_page_transition_scroll_side_page_num_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((TransitionScroll)wrapper).GetSidePageNum(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSidePageNum") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_page_transition_scroll_side_page_num_set"), func = Marshal.GetFunctionPointerForDelegate(efl_page_transition_scroll_side_page_num_set_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Page.TransitionScroll.efl_page_transition_scroll_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate int efl_page_transition_scroll_side_page_num_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_page_transition_scroll_side_page_num_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_page_transition_scroll_side_page_num_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_page_transition_scroll_side_page_num_get"); + + private static int side_page_num_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_page_transition_scroll_side_page_num_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((TransitionScroll)wrapper).GetSidePageNum(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_page_transition_scroll_side_page_num_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_page_transition_scroll_side_page_num_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_page_transition_scroll_side_page_num_get_delegate efl_page_transition_scroll_side_page_num_get_static_delegate; + private static efl_page_transition_scroll_side_page_num_get_delegate efl_page_transition_scroll_side_page_num_get_static_delegate; - private delegate void efl_page_transition_scroll_side_page_num_set_delegate(System.IntPtr obj, System.IntPtr pd, int side_page_num); + + private delegate void efl_page_transition_scroll_side_page_num_set_delegate(System.IntPtr obj, System.IntPtr pd, int side_page_num); + + public delegate void efl_page_transition_scroll_side_page_num_set_api_delegate(System.IntPtr obj, int side_page_num); - public delegate void efl_page_transition_scroll_side_page_num_set_api_delegate(System.IntPtr obj, int side_page_num); - public static Efl.Eo.FunctionWrapper efl_page_transition_scroll_side_page_num_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_page_transition_scroll_side_page_num_set"); - private static void side_page_num_set(System.IntPtr obj, System.IntPtr pd, int side_page_num) - { - Eina.Log.Debug("function efl_page_transition_scroll_side_page_num_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((TransitionScroll)wrapper).SetSidePageNum( side_page_num); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_page_transition_scroll_side_page_num_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_page_transition_scroll_side_page_num_set"); + + private static void side_page_num_set(System.IntPtr obj, System.IntPtr pd, int side_page_num) + { + Eina.Log.Debug("function efl_page_transition_scroll_side_page_num_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((TransitionScroll)wrapper).SetSidePageNum(side_page_num); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_page_transition_scroll_side_page_num_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), side_page_num); } - } else { - efl_page_transition_scroll_side_page_num_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), side_page_num); } - } - private static efl_page_transition_scroll_side_page_num_set_delegate efl_page_transition_scroll_side_page_num_set_static_delegate; + + private static efl_page_transition_scroll_side_page_num_set_delegate efl_page_transition_scroll_side_page_num_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_part.eo.cs index 7411485..43f098c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_part.eo.cs @@ -3,8 +3,10 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Interface for objects supporting named parts. /// An object implementing this interface will be able to provide access to some of its sub-objects by name. This gives access to parts as defined in a widget's theme. /// @@ -20,7 +22,7 @@ namespace Efl { /// /// part = ref(part(obj, "part")) func1(part, args) func2(part, args) func3(part, args) unref(part) /// (Since EFL 1.22) -[IPartNativeInherit] +[Efl.IPartConcrete.NativeMethods] public interface IPart : Efl.Eo.IWrapper, IDisposable { @@ -28,7 +30,7 @@ public interface IPart : /// (Since EFL 1.22) /// The part name. /// A (proxy) object, valid for a single call. -Efl.Object GetPart( System.String name); +Efl.Object GetPart(System.String name); } /// Interface for objects supporting named parts. /// An object implementing this interface will be able to provide access to some of its sub-objects by name. This gives access to parts as defined in a widget's theme. @@ -51,74 +53,109 @@ IPart { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IPartConcrete)) - return Efl.IPartNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IPartConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_part_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IPartConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IPartConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Get a proxy object referring to a part of an object. /// (Since EFL 1.22) /// The part name. /// A (proxy) object, valid for a single call. - public Efl.Object GetPart( System.String name) { - var _ret_var = Efl.IPartNativeInherit.efl_part_get_ptr.Value.Delegate(this.NativeHandle, name); + public Efl.Object GetPart(System.String name) { + var _ret_var = Efl.IPartConcrete.NativeMethods.efl_part_get_ptr.Value.Delegate(this.NativeHandle,name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -126,51 +163,78 @@ IPart { return Efl.IPartConcrete.efl_part_interface_get(); } -} -public class IPartNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_part_get_static_delegate == null) - efl_part_get_static_delegate = new efl_part_get_delegate(part_get); - if (methods.FirstOrDefault(m => m.Name == "GetPart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_part_get"), func = Marshal.GetFunctionPointerForDelegate(efl_part_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IPartConcrete.efl_part_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IPartConcrete.efl_part_interface_get(); - } + 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_part_get_static_delegate == null) + { + efl_part_get_static_delegate = new efl_part_get_delegate(part_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_part_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + if (methods.FirstOrDefault(m => m.Name == "GetPart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_part_get"), func = Marshal.GetFunctionPointerForDelegate(efl_part_get_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.IPartConcrete.efl_part_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_part_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_part_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_part_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_part_get"); + + private static Efl.Object part_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_part_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((IPart)wrapper).GetPart(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_part_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_part_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_part_get"); - private static Efl.Object part_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_part_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((IPart)wrapper).GetPart( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_part_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + + } + else + { + return efl_part_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } } - } - private static efl_part_get_delegate efl_part_get_static_delegate; + + private static efl_part_get_delegate efl_part_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_playable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_playable.eo.cs index f7a13bb..1f78581 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_playable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_playable.eo.cs @@ -3,19 +3,19 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl media playable interface -[IPlayableNativeInherit] +[Efl.IPlayableConcrete.NativeMethods] public interface IPlayable : Efl.Eo.IWrapper, IDisposable { /// Get the length of play for the media file. /// The length of the stream in seconds. double GetLength(); - /// -/// -bool GetPlayable(); + bool GetPlayable(); /// Get whether the media file is seekable. /// true if seekable. bool GetSeekable(); @@ -24,9 +24,7 @@ bool GetSeekable(); double Length { get ; } - /// -/// - bool Playable { + bool Playable { get ; } /// Get whether the media file is seekable. @@ -42,86 +40,119 @@ IPlayable { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IPlayableConcrete)) - return Efl.IPlayableNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IPlayableConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_playable_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IPlayableConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IPlayableConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Get the length of play for the media file. /// The length of the stream in seconds. public double GetLength() { - var _ret_var = Efl.IPlayableNativeInherit.efl_playable_length_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_length_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// public bool GetPlayable() { - var _ret_var = Efl.IPlayableNativeInherit.efl_playable_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get whether the media file is seekable. /// true if seekable. public bool GetSeekable() { - var _ret_var = Efl.IPlayableNativeInherit.efl_playable_seekable_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayableConcrete.NativeMethods.efl_playable_seekable_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -130,9 +161,7 @@ IPlayable public double Length { get { return GetLength(); } } - /// -/// - public bool Playable { + public bool Playable { get { return GetPlayable(); } } /// Get whether the media file is seekable. @@ -144,109 +173,170 @@ IPlayable { return Efl.IPlayableConcrete.efl_playable_interface_get(); } -} -public class IPlayableNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_playable_length_get_static_delegate == null) - efl_playable_length_get_static_delegate = new efl_playable_length_get_delegate(length_get); - if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_playable_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_length_get_static_delegate)}); - if (efl_playable_get_static_delegate == null) - efl_playable_get_static_delegate = new efl_playable_get_delegate(playable_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_get_static_delegate)}); - if (efl_playable_seekable_get_static_delegate == null) - efl_playable_seekable_get_static_delegate = new efl_playable_seekable_get_delegate(seekable_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_playable_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_seekable_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IPlayableConcrete.efl_playable_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IPlayableConcrete.efl_playable_interface_get(); - } + 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_playable_length_get_static_delegate == null) + { + efl_playable_length_get_static_delegate = new efl_playable_length_get_delegate(length_get); + } - private delegate double efl_playable_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_playable_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_length_get_static_delegate) }); + } + if (efl_playable_get_static_delegate == null) + { + efl_playable_get_static_delegate = new efl_playable_get_delegate(playable_get); + } - public delegate double efl_playable_length_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_playable_length_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_playable_length_get"); - private static double length_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_playable_length_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IPlayable)wrapper).GetLength(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_get_static_delegate) }); } - return _ret_var; - } else { - return efl_playable_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_playable_seekable_get_static_delegate == null) + { + efl_playable_seekable_get_static_delegate = new efl_playable_seekable_get_delegate(seekable_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_playable_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_playable_seekable_get_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.IPlayableConcrete.efl_playable_interface_get(); } - } - private static efl_playable_length_get_delegate efl_playable_length_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_playable_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_playable_length_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_playable_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_playable_length_get"); + + private static double length_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_playable_length_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IPlayable)wrapper).GetLength(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_playable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_playable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_playable_get"); - private static bool playable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_playable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPlayable)wrapper).GetPlayable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_playable_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_playable_get_delegate efl_playable_get_static_delegate; + private static efl_playable_length_get_delegate efl_playable_length_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_playable_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_playable_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_playable_seekable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_playable_seekable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_playable_seekable_get"); - private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_playable_seekable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPlayable)wrapper).GetSeekable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_playable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_playable_get"); + + private static bool playable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_playable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPlayable)wrapper).GetPlayable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_playable_get_delegate efl_playable_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_playable_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_playable_seekable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_playable_seekable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_playable_seekable_get"); + + private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_playable_seekable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPlayable)wrapper).GetSeekable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_playable_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_playable_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_playable_seekable_get_delegate efl_playable_seekable_get_static_delegate; + + private static efl_playable_seekable_get_delegate efl_playable_seekable_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_player.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_player.eo.cs index e9f4dea..9fd3d98 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_player.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_player.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl media player interface -[IPlayerNativeInherit] +[Efl.IPlayerConcrete.NativeMethods] public interface IPlayer : Efl.Eo.IWrapper, IDisposable { @@ -19,8 +21,7 @@ bool GetPlay(); /// Set play/pause state of the media file. /// This functions sets the currently playing status of the video. Using this function to play or pause the video doesn't alter it's current position. /// true if playing, false otherwise. -/// -void SetPlay( bool play); +void SetPlay(bool play); /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). @@ -28,8 +29,7 @@ double GetPos(); /// Set the position in the media file. /// This functions sets the current position of the media file to "sec", this only works on seekable streams. Setting the position doesn't change the playing state of the media file. /// The position (in seconds). -/// -void SetPos( double sec); +void SetPos(double sec); /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. /// The progress within the [0, 1] range. @@ -41,8 +41,7 @@ double GetPlaySpeed(); /// Control the play speed of the media file. /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. -/// -void SetPlaySpeed( double speed); +void SetPlaySpeed(double speed); /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level @@ -50,15 +49,13 @@ double GetVolume(); /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level -/// -void SetVolume( double volume); +void SetVolume(double volume); /// This property controls the audio mute state. /// The mute state. true or false. bool GetMute(); /// This property controls the audio mute state. /// The mute state. true or false. -/// -void SetMute( bool mute); +void SetMute(bool mute); /// Get the length of play for the media file. /// The length of the stream in seconds. double GetLength(); @@ -66,10 +63,8 @@ double GetLength(); /// true if seekable. bool GetSeekable(); /// Start a playing playable object. -/// void Start(); /// Stop playable object. -/// void Stop(); /// Whether or not the playable can be played. /// true if the object have playable data, false otherwise @@ -133,111 +128,144 @@ IPlayer { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IPlayerConcrete)) - return Efl.IPlayerNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IPlayerConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_player_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IPlayerConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IPlayerConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Whether or not the playable can be played. /// true if the object have playable data, false otherwise public bool GetPlayable() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_playable_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_playable_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get play/pause state of the media file. /// true if playing, false otherwise. public bool GetPlay() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_play_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set play/pause state of the media file. /// This functions sets the currently playing status of the video. Using this function to play or pause the video doesn't alter it's current position. /// true if playing, false otherwise. - /// - public void SetPlay( bool play) { - Efl.IPlayerNativeInherit.efl_player_play_set_ptr.Value.Delegate(this.NativeHandle, play); + public void SetPlay(bool play) { + Efl.IPlayerConcrete.NativeMethods.efl_player_play_set_ptr.Value.Delegate(this.NativeHandle,play); Eina.Error.RaiseIfUnhandledException(); } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). public double GetPos() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_pos_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_pos_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the position in the media file. /// This functions sets the current position of the media file to "sec", this only works on seekable streams. Setting the position doesn't change the playing state of the media file. /// The position (in seconds). - /// - public void SetPos( double sec) { - Efl.IPlayerNativeInherit.efl_player_pos_set_ptr.Value.Delegate(this.NativeHandle, sec); + public void SetPos(double sec) { + Efl.IPlayerConcrete.NativeMethods.efl_player_pos_set_ptr.Value.Delegate(this.NativeHandle,sec); Eina.Error.RaiseIfUnhandledException(); } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. /// The progress within the [0, 1] range. public double GetProgress() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_progress_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_progress_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -245,72 +273,67 @@ IPlayer /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. public double GetPlaySpeed() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_play_speed_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the play speed of the media file. /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. - /// - public void SetPlaySpeed( double speed) { - Efl.IPlayerNativeInherit.efl_player_play_speed_set_ptr.Value.Delegate(this.NativeHandle, speed); + public void SetPlaySpeed(double speed) { + Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_set_ptr.Value.Delegate(this.NativeHandle,speed); Eina.Error.RaiseIfUnhandledException(); } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level public double GetVolume() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_volume_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_volume_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level - /// - public void SetVolume( double volume) { - Efl.IPlayerNativeInherit.efl_player_volume_set_ptr.Value.Delegate(this.NativeHandle, volume); + public void SetVolume(double volume) { + Efl.IPlayerConcrete.NativeMethods.efl_player_volume_set_ptr.Value.Delegate(this.NativeHandle,volume); Eina.Error.RaiseIfUnhandledException(); } /// This property controls the audio mute state. /// The mute state. true or false. public bool GetMute() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_mute_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_mute_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This property controls the audio mute state. /// The mute state. true or false. - /// - public void SetMute( bool mute) { - Efl.IPlayerNativeInherit.efl_player_mute_set_ptr.Value.Delegate(this.NativeHandle, mute); + public void SetMute(bool mute) { + Efl.IPlayerConcrete.NativeMethods.efl_player_mute_set_ptr.Value.Delegate(this.NativeHandle,mute); Eina.Error.RaiseIfUnhandledException(); } /// Get the length of play for the media file. /// The length of the stream in seconds. public double GetLength() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_length_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_length_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get whether the media file is seekable. /// true if seekable. public bool GetSeekable() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_seekable_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_seekable_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Start a playing playable object. - /// public void Start() { - Efl.IPlayerNativeInherit.efl_player_start_ptr.Value.Delegate(this.NativeHandle); + Efl.IPlayerConcrete.NativeMethods.efl_player_start_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Stop playable object. - /// public void Stop() { - Efl.IPlayerNativeInherit.efl_player_stop_ptr.Value.Delegate(this.NativeHandle); + Efl.IPlayerConcrete.NativeMethods.efl_player_stop_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Whether or not the playable can be played. @@ -322,14 +345,14 @@ IPlayer /// true if playing, false otherwise. public bool Play { get { return GetPlay(); } - set { SetPlay( value); } + set { SetPlay(value); } } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). public double Pos { get { return GetPos(); } - set { SetPos( value); } + set { SetPos(value); } } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. @@ -342,20 +365,20 @@ IPlayer /// The play speed in the [0, infinity) range. public double PlaySpeed { get { return GetPlaySpeed(); } - set { SetPlaySpeed( value); } + set { SetPlaySpeed(value); } } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level public double Volume { get { return GetVolume(); } - set { SetVolume( value); } + set { SetVolume(value); } } /// This property controls the audio mute state. /// The mute state. true or false. public bool Mute { get { return GetMute(); } - set { SetMute( value); } + set { SetMute(value); } } /// Get the length of play for the media file. /// The length of the stream in seconds. @@ -371,479 +394,761 @@ IPlayer { return Efl.IPlayerConcrete.efl_player_interface_get(); } -} -public class IPlayerNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_player_playable_get_static_delegate == null) - efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_playable_get_static_delegate)}); - if (efl_player_play_get_static_delegate == null) - efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_get_static_delegate)}); - if (efl_player_play_set_static_delegate == null) - efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set); - if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_set_static_delegate)}); - if (efl_player_pos_get_static_delegate == null) - efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_get_static_delegate)}); - if (efl_player_pos_set_static_delegate == null) - efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_set_static_delegate)}); - if (efl_player_progress_get_static_delegate == null) - efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get); - if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_progress_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_progress_get_static_delegate)}); - if (efl_player_play_speed_get_static_delegate == null) - efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_get_static_delegate)}); - if (efl_player_play_speed_set_static_delegate == null) - efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set); - if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_set_static_delegate)}); - if (efl_player_volume_get_static_delegate == null) - efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get); - if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_volume_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_get_static_delegate)}); - if (efl_player_volume_set_static_delegate == null) - efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set); - if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_volume_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_set_static_delegate)}); - if (efl_player_mute_get_static_delegate == null) - efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get); - if (methods.FirstOrDefault(m => m.Name == "GetMute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_mute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_get_static_delegate)}); - if (efl_player_mute_set_static_delegate == null) - efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set); - if (methods.FirstOrDefault(m => m.Name == "SetMute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_mute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_set_static_delegate)}); - if (efl_player_length_get_static_delegate == null) - efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get); - if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_length_get_static_delegate)}); - if (efl_player_seekable_get_static_delegate == null) - efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_seekable_get_static_delegate)}); - if (efl_player_start_static_delegate == null) - efl_player_start_static_delegate = new efl_player_start_delegate(start); - if (methods.FirstOrDefault(m => m.Name == "Start") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_start"), func = Marshal.GetFunctionPointerForDelegate(efl_player_start_static_delegate)}); - if (efl_player_stop_static_delegate == null) - efl_player_stop_static_delegate = new efl_player_stop_delegate(stop); - if (methods.FirstOrDefault(m => m.Name == "Stop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IPlayerConcrete.efl_player_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.IPlayerConcrete.efl_player_interface_get(); - } + 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_player_playable_get_static_delegate == null) + { + efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_playable_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_play_get_static_delegate == null) + { + efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_playable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_playable_get"); - private static bool playable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_playable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPlayer)wrapper).GetPlayable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_play_set_static_delegate == null) + { + efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set); } - return _ret_var; - } else { - return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_pos_get_static_delegate == null) + { + efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_play_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_get"); - private static bool play_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_play_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPlayer)wrapper).GetPlay(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_pos_set_static_delegate == null) + { + efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set); } - return _ret_var; - } else { - return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_play_get_delegate efl_player_play_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_set_static_delegate) }); + } - private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play); + if (efl_player_progress_get_static_delegate == null) + { + efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_progress_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_progress_get_static_delegate) }); + } - public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play); - public static Efl.Eo.FunctionWrapper efl_player_play_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_set"); - private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play) - { - Eina.Log.Debug("function efl_player_play_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPlayer)wrapper).SetPlay( play); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play); - } - } - private static efl_player_play_set_delegate efl_player_play_set_static_delegate; + if (efl_player_play_speed_get_static_delegate == null) + { + efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_get_static_delegate) }); + } - private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_play_speed_set_static_delegate == null) + { + efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_set_static_delegate) }); + } - public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_pos_get"); - private static double pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IPlayer)wrapper).GetPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_volume_get_static_delegate == null) + { + efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get); } - return _ret_var; - } else { - return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_get_static_delegate) }); + } - private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + if (efl_player_volume_set_static_delegate == null) + { + efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_set_static_delegate) }); + } - public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec); - public static Efl.Eo.FunctionWrapper efl_player_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_pos_set"); - private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec) - { - Eina.Log.Debug("function efl_player_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPlayer)wrapper).SetPos( sec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); - } - } - private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate; + if (efl_player_mute_get_static_delegate == null) + { + efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_get_static_delegate) }); + } - private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_mute_set_static_delegate == null) + { + efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_set_static_delegate) }); + } - public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_progress_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_progress_get"); - private static double progress_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_progress_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IPlayer)wrapper).GetProgress(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_length_get_static_delegate == null) + { + efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get); } - return _ret_var; - } else { - return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_length_get_static_delegate) }); + } - private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_seekable_get_static_delegate == null) + { + efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_seekable_get_static_delegate) }); + } - public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_play_speed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_speed_get"); - private static double play_speed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_play_speed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IPlayer)wrapper).GetPlaySpeed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_start_static_delegate == null) + { + efl_player_start_static_delegate = new efl_player_start_delegate(start); } - return _ret_var; - } else { - return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Start") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_start"), func = Marshal.GetFunctionPointerForDelegate(efl_player_start_static_delegate) }); + } - private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed); + if (efl_player_stop_static_delegate == null) + { + efl_player_stop_static_delegate = new efl_player_stop_delegate(stop); + } + if (methods.FirstOrDefault(m => m.Name == "Stop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate) }); + } - public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed); - public static Efl.Eo.FunctionWrapper efl_player_play_speed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_speed_set"); - private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed) - { - Eina.Log.Debug("function efl_player_play_speed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPlayer)wrapper).SetPlaySpeed( speed); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.IPlayerConcrete.efl_player_interface_get(); } - } - private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate; - - private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_playable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_playable_get"); + + private static bool playable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_playable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPlayer)wrapper).GetPlayable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_volume_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_volume_get"); - private static double volume_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_volume_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IPlayer)wrapper).GetVolume(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate; + private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_play_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_get"); + + private static bool play_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_play_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPlayer)wrapper).GetPlay(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume); + return _ret_var; + } + else + { + return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume); - public static Efl.Eo.FunctionWrapper efl_player_volume_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_volume_set"); - private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume) - { - Eina.Log.Debug("function efl_player_volume_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPlayer)wrapper).SetVolume( volume); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume); + private static efl_player_play_get_delegate efl_player_play_get_static_delegate; + + + private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play); + + + public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play); + + public static Efl.Eo.FunctionWrapper efl_player_play_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_set"); + + private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play) + { + Eina.Log.Debug("function efl_player_play_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPlayer)wrapper).SetPlay(play); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play); + } } - } - private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate; + private static efl_player_play_set_delegate efl_player_play_set_static_delegate; + + + private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_pos_get"); + + private static double pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IPlayer)wrapper).GetPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_mute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_mute_get"); - private static bool mute_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_mute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPlayer)wrapper).GetMute(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate; + + + private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + + + public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec); + + public static Efl.Eo.FunctionWrapper efl_player_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_pos_set"); + + private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec) + { + Eina.Log.Debug("function efl_player_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPlayer)wrapper).SetPos(sec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); + } + } + + private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate; + + + private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_progress_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_progress_get"); + + private static double progress_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_progress_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IPlayer)wrapper).GetProgress(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate; + private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate; + + + private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_play_speed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_speed_get"); + + private static double play_speed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_play_speed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IPlayer)wrapper).GetPlaySpeed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute); + } + else + { + return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate; + + + private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed); + + + public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed); + + public static Efl.Eo.FunctionWrapper efl_player_play_speed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_speed_set"); + + private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed) + { + Eina.Log.Debug("function efl_player_play_speed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPlayer)wrapper).SetPlaySpeed(speed); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute); - public static Efl.Eo.FunctionWrapper efl_player_mute_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_mute_set"); - private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute) - { - Eina.Log.Debug("function efl_player_mute_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPlayer)wrapper).SetMute( mute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute); + + } + else + { + efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed); + } } - } - private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate; + private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate; + + + private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_volume_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_volume_get"); + + private static double volume_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_volume_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IPlayer)wrapper).GetVolume(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate double efl_player_length_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_length_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_length_get"); - private static double length_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_length_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IPlayer)wrapper).GetLength(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate; + + + private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume); + + + public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume); + + public static Efl.Eo.FunctionWrapper efl_player_volume_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_volume_set"); + + private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume) + { + Eina.Log.Debug("function efl_player_volume_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPlayer)wrapper).SetVolume(volume); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume); } - return _ret_var; - } else { - return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_player_length_get_delegate efl_player_length_get_static_delegate; + private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_mute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_mute_get"); + + private static bool mute_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_mute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPlayer)wrapper).GetMute(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_seekable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_seekable_get"); - private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_seekable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IPlayer)wrapper).GetSeekable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate; + + + private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute); + + + public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute); + + public static Efl.Eo.FunctionWrapper efl_player_mute_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_mute_set"); + + private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute) + { + Eina.Log.Debug("function efl_player_mute_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPlayer)wrapper).SetMute(mute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute); } + } + + private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate; + + + private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_length_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_length_get"); + + private static double length_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_length_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IPlayer)wrapper).GetLength(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate; + private static efl_player_length_get_delegate efl_player_length_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_seekable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_seekable_get"); + + private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_seekable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IPlayer)wrapper).GetSeekable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_player_start_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_start"); - private static void start(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPlayer)wrapper).Start(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate; + + + private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_player_start_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_start"); + + private static void start(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPlayer)wrapper).Start(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_start_delegate efl_player_start_static_delegate; + private static efl_player_start_delegate efl_player_start_static_delegate; + + + private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_player_stop_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_stop_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_stop"); + + private static void stop(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_stop was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IPlayer)wrapper).Stop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_player_stop_delegate efl_player_stop_static_delegate; + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_player_stop_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_stop_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_stop"); - private static void stop(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_stop was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IPlayer)wrapper).Stop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_stop_delegate efl_player_stop_static_delegate; } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_screen.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_screen.eo.cs index 8aa537c..657228f 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_screen.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_screen.eo.cs @@ -3,11 +3,13 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl screen interface /// (Since EFL 1.22) -[IScreenNativeInherit] +[Efl.IScreenConcrete.NativeMethods] public interface IScreen : Efl.Eo.IWrapper, IDisposable { @@ -32,8 +34,7 @@ int GetScreenRotation(); /// (Since EFL 1.22) /// Horizontal DPI. /// Vertical DPI. -/// -void GetScreenDpi( out int xdpi, out int ydpi); +void GetScreenDpi(out int xdpi, out int ydpi); /// Get screen size (in pixels) for the screen. /// Note that on some display systems this information is not available and a value of 0x0 will be returned. /// (Since EFL 1.22) @@ -66,74 +67,109 @@ IScreen { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IScreenConcrete)) - return Efl.IScreenNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IScreenConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_screen_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IScreenConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IScreenConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Get screen size (in pixels) for the screen. /// Note that on some display systems this information is not available and a value of 0x0 will be returned. /// (Since EFL 1.22) /// The screen size in pixels. public Eina.Size2D GetScreenSizeInPixels() { - var _ret_var = Efl.IScreenNativeInherit.efl_screen_size_in_pixels_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IScreenConcrete.NativeMethods.efl_screen_size_in_pixels_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -144,7 +180,7 @@ IScreen /// (Since EFL 1.22) /// The screen scaling factor. public float GetScreenScaleFactor() { - var _ret_var = Efl.IScreenNativeInherit.efl_screen_scale_factor_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IScreenConcrete.NativeMethods.efl_screen_scale_factor_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -153,7 +189,7 @@ IScreen /// (Since EFL 1.22) /// Screen rotation in degrees. public int GetScreenRotation() { - var _ret_var = Efl.IScreenNativeInherit.efl_screen_rotation_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IScreenConcrete.NativeMethods.efl_screen_rotation_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -161,9 +197,8 @@ IScreen /// (Since EFL 1.22) /// Horizontal DPI. /// Vertical DPI. - /// - public void GetScreenDpi( out int xdpi, out int ydpi) { - Efl.IScreenNativeInherit.efl_screen_dpi_get_ptr.Value.Delegate(this.NativeHandle, out xdpi, out ydpi); + public void GetScreenDpi(out int xdpi, out int ydpi) { + Efl.IScreenConcrete.NativeMethods.efl_screen_dpi_get_ptr.Value.Delegate(this.NativeHandle,out xdpi, out ydpi); Eina.Error.RaiseIfUnhandledException(); } /// Get screen size (in pixels) for the screen. @@ -193,137 +228,215 @@ IScreen { return Efl.IScreenConcrete.efl_screen_interface_get(); } -} -public class IScreenNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_screen_size_in_pixels_get_static_delegate == null) - efl_screen_size_in_pixels_get_static_delegate = new efl_screen_size_in_pixels_get_delegate(screen_size_in_pixels_get); - if (methods.FirstOrDefault(m => m.Name == "GetScreenSizeInPixels") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_screen_size_in_pixels_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_size_in_pixels_get_static_delegate)}); - if (efl_screen_scale_factor_get_static_delegate == null) - efl_screen_scale_factor_get_static_delegate = new efl_screen_scale_factor_get_delegate(screen_scale_factor_get); - if (methods.FirstOrDefault(m => m.Name == "GetScreenScaleFactor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_screen_scale_factor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_scale_factor_get_static_delegate)}); - if (efl_screen_rotation_get_static_delegate == null) - efl_screen_rotation_get_static_delegate = new efl_screen_rotation_get_delegate(screen_rotation_get); - if (methods.FirstOrDefault(m => m.Name == "GetScreenRotation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_screen_rotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_rotation_get_static_delegate)}); - if (efl_screen_dpi_get_static_delegate == null) - efl_screen_dpi_get_static_delegate = new efl_screen_dpi_get_delegate(screen_dpi_get); - if (methods.FirstOrDefault(m => m.Name == "GetScreenDpi") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_screen_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_dpi_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.IScreenConcrete.efl_screen_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IScreenConcrete.efl_screen_interface_get(); - } + 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_screen_size_in_pixels_get_static_delegate == null) + { + efl_screen_size_in_pixels_get_static_delegate = new efl_screen_size_in_pixels_get_delegate(screen_size_in_pixels_get); + } - private delegate Eina.Size2D.NativeStruct efl_screen_size_in_pixels_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetScreenSizeInPixels") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_screen_size_in_pixels_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_size_in_pixels_get_static_delegate) }); + } + if (efl_screen_scale_factor_get_static_delegate == null) + { + efl_screen_scale_factor_get_static_delegate = new efl_screen_scale_factor_get_delegate(screen_scale_factor_get); + } - public delegate Eina.Size2D.NativeStruct efl_screen_size_in_pixels_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_screen_size_in_pixels_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_screen_size_in_pixels_get"); - private static Eina.Size2D.NativeStruct screen_size_in_pixels_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_screen_size_in_pixels_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IScreen)wrapper).GetScreenSizeInPixels(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetScreenScaleFactor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_screen_scale_factor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_scale_factor_get_static_delegate) }); } - return _ret_var; - } else { - return efl_screen_size_in_pixels_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_screen_size_in_pixels_get_delegate efl_screen_size_in_pixels_get_static_delegate; + if (efl_screen_rotation_get_static_delegate == null) + { + efl_screen_rotation_get_static_delegate = new efl_screen_rotation_get_delegate(screen_rotation_get); + } - private delegate float efl_screen_scale_factor_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetScreenRotation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_screen_rotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_rotation_get_static_delegate) }); + } + if (efl_screen_dpi_get_static_delegate == null) + { + efl_screen_dpi_get_static_delegate = new efl_screen_dpi_get_delegate(screen_dpi_get); + } - public delegate float efl_screen_scale_factor_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_screen_scale_factor_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_screen_scale_factor_get"); - private static float screen_scale_factor_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_screen_scale_factor_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - float _ret_var = default(float); - try { - _ret_var = ((IScreen)wrapper).GetScreenScaleFactor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetScreenDpi") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_screen_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_dpi_get_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.IScreenConcrete.efl_screen_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.Size2D.NativeStruct efl_screen_size_in_pixels_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_screen_size_in_pixels_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_screen_size_in_pixels_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_screen_size_in_pixels_get"); + + private static Eina.Size2D.NativeStruct screen_size_in_pixels_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_screen_size_in_pixels_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IScreen)wrapper).GetScreenSizeInPixels(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_screen_scale_factor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_screen_size_in_pixels_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_screen_scale_factor_get_delegate efl_screen_scale_factor_get_static_delegate; + private static efl_screen_size_in_pixels_get_delegate efl_screen_size_in_pixels_get_static_delegate; - private delegate int efl_screen_rotation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate float efl_screen_scale_factor_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate float efl_screen_scale_factor_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_screen_scale_factor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_screen_scale_factor_get"); + + private static float screen_scale_factor_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_screen_scale_factor_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + float _ret_var = default(float); + try + { + _ret_var = ((IScreen)wrapper).GetScreenScaleFactor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate int efl_screen_rotation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_screen_rotation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_screen_rotation_get"); - private static int screen_rotation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_screen_rotation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IScreen)wrapper).GetScreenRotation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_screen_scale_factor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_screen_scale_factor_get_delegate efl_screen_scale_factor_get_static_delegate; + + + private delegate int efl_screen_rotation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_screen_rotation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_screen_rotation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_screen_rotation_get"); + + private static int screen_rotation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_screen_rotation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IScreen)wrapper).GetScreenRotation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_screen_rotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_screen_rotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_screen_rotation_get_delegate efl_screen_rotation_get_static_delegate; + private static efl_screen_rotation_get_delegate efl_screen_rotation_get_static_delegate; - private delegate void efl_screen_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd, out int xdpi, out int ydpi); + + private delegate void efl_screen_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd, out int xdpi, out int ydpi); + + public delegate void efl_screen_dpi_get_api_delegate(System.IntPtr obj, out int xdpi, out int ydpi); - public delegate void efl_screen_dpi_get_api_delegate(System.IntPtr obj, out int xdpi, out int ydpi); - public static Efl.Eo.FunctionWrapper efl_screen_dpi_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_screen_dpi_get"); - private static void screen_dpi_get(System.IntPtr obj, System.IntPtr pd, out int xdpi, out int ydpi) - { - Eina.Log.Debug("function efl_screen_dpi_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - xdpi = default(int); ydpi = default(int); - try { - ((IScreen)wrapper).GetScreenDpi( out xdpi, out ydpi); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_screen_dpi_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_screen_dpi_get"); + + private static void screen_dpi_get(System.IntPtr obj, System.IntPtr pd, out int xdpi, out int ydpi) + { + Eina.Log.Debug("function efl_screen_dpi_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + xdpi = default(int); ydpi = default(int); + try + { + ((IScreen)wrapper).GetScreenDpi(out xdpi, out ydpi); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_screen_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out xdpi, out ydpi); } - } else { - efl_screen_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out xdpi, out ydpi); } - } - private static efl_screen_dpi_get_delegate efl_screen_dpi_get_static_delegate; + + private static efl_screen_dpi_get_delegate efl_screen_dpi_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_select_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_select_model.eo.cs index e46749c..78f04ef 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_select_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_select_model.eo.cs @@ -3,8 +3,10 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + ///Event argument wrapper for event . public class SelectModelSelectedEvt_Args : EventArgs { ///Actual event payload. @@ -16,177 +18,226 @@ public class SelectModelUnselectedEvt_Args : EventArgs { public Efl.Object arg { get; set; } } /// Efl select model class -[SelectModelNativeInherit] +[Efl.SelectModel.NativeMethods] public class SelectModel : Efl.BooleanModel, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (SelectModel)) - return Efl.SelectModelNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(SelectModel)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_select_model_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Model that is/will be See - ///Position of this object in the parent model. See + /// Initializes a new instance of the class. + /// Parent instance. + /// Model that is/will be See + /// Position of this object in the parent model. See public SelectModel(Efl.Object parent - , Efl.IModel model, uint? index = null) : - base(efl_select_model_class_get(), typeof(SelectModel), parent) + , Efl.IModel model, uint? index = null) : base(efl_select_model_class_get(), typeof(SelectModel), parent) { if (Efl.Eo.Globals.ParamHelperCheck(model)) + { SetModel(Efl.Eo.Globals.GetParamHelper(model)); + } + if (Efl.Eo.Globals.ParamHelperCheck(index)) + { SetIndex(Efl.Eo.Globals.GetParamHelper(index)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected SelectModel(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected SelectModel(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected SelectModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object SelectedEvtKey = new object(); - /// + public event EventHandler SelectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.SelectModelSelectedEvt_Args args = new Efl.SelectModelSelectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_SELECT_MODEL_EVENT_SELECTED"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_SelectedEvt_delegate)) { - eventHandlers.AddHandler(SelectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_SELECT_MODEL_EVENT_SELECTED"; - if (RemoveNativeEventHandler(key, this.evt_SelectedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event SelectedEvt. - public void On_SelectedEvt(Efl.SelectModelSelectedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectedEvt_delegate; - private void on_SelectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.SelectModelSelectedEvt_Args args = new Efl.SelectModelSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_SelectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public void OnSelectedEvt(Efl.SelectModelSelectedEvt_Args e) + { + var key = "_EFL_SELECT_MODEL_EVENT_SELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnselectedEvtKey = new object(); - /// + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } public event EventHandler UnselectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.SelectModelUnselectedEvt_Args args = new Efl.SelectModelUnselectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_SELECT_MODEL_EVENT_UNSELECTED"; - if (AddNativeEventHandler(efl.Libs.Ecore, key, this.evt_UnselectedEvt_delegate)) { - eventHandlers.AddHandler(UnselectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_SELECT_MODEL_EVENT_UNSELECTED"; - if (RemoveNativeEventHandler(key, this.evt_UnselectedEvt_delegate)) { - eventHandlers.RemoveHandler(UnselectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); } } } ///Method to raise event UnselectedEvt. - public void On_UnselectedEvt(Efl.SelectModelUnselectedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnselectedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnselectedEvt_delegate; - private void on_UnselectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.SelectModelUnselectedEvt_Args args = new Efl.SelectModelUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnselectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public void OnUnselectedEvt(Efl.SelectModelUnselectedEvt_Args e) + { + var key = "_EFL_SELECT_MODEL_EVENT_UNSELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_SelectedEvt_delegate = new Efl.EventCb(on_SelectedEvt_NativeCallback); - evt_UnselectedEvt_delegate = new Efl.EventCb(on_UnselectedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } private static IntPtr GetEflClassStatic() { return Efl.SelectModel.efl_select_model_class_get(); } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.BooleanModel.NativeMethods + { + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.SelectModel.efl_select_model_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -public class SelectModelNativeInherit : Efl.BooleanModelNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.SelectModel.efl_select_model_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.SelectModel.efl_select_model_class_get(); - } } -} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_sinusoidal_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_sinusoidal_interpolator.eo.cs index f5a5e70..e33a83a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_sinusoidal_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_sinusoidal_interpolator.eo.cs @@ -3,81 +3,102 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl sinusoidal interpolator class /// output = (1 - cos(input * Pi)) / 2; -[SinusoidalInterpolatorNativeInherit] +[Efl.SinusoidalInterpolator.NativeMethods] public class SinusoidalInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (SinusoidalInterpolator)) - return Efl.SinusoidalInterpolatorNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(SinusoidalInterpolator)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_sinusoidal_interpolator_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public SinusoidalInterpolator(Efl.Object parent= null - ) : - base(efl_sinusoidal_interpolator_class_get(), typeof(SinusoidalInterpolator), parent) + ) : base(efl_sinusoidal_interpolator_class_get(), typeof(SinusoidalInterpolator), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected SinusoidalInterpolator(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected SinusoidalInterpolator(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected SinusoidalInterpolator(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Factor property /// Factor of the interpolation function. virtual public double GetFactor() { - var _ret_var = Efl.SinusoidalInterpolatorNativeInherit.efl_sinusoidal_interpolator_factor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.SinusoidalInterpolator.NativeMethods.efl_sinusoidal_interpolator_factor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Factor property /// Factor of the interpolation function. - /// - virtual public void SetFactor( double factor) { - Efl.SinusoidalInterpolatorNativeInherit.efl_sinusoidal_interpolator_factor_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), factor); + virtual public void SetFactor(double factor) { + Efl.SinusoidalInterpolator.NativeMethods.efl_sinusoidal_interpolator_factor_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),factor); Eina.Error.RaiseIfUnhandledException(); } /// Interpolate the given value. /// Input value mapped from 0.0 to 1.0. /// Output value calculated by interpolating the input value. - virtual public double Interpolate( double progress) { - var _ret_var = Efl.IInterpolatorNativeInherit.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), progress); + virtual public double Interpolate(double progress) { + var _ret_var = Efl.IInterpolatorConcrete.NativeMethods.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),progress); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -85,115 +106,176 @@ public class SinusoidalInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpola /// Factor of the interpolation function. public double Factor { get { return GetFactor(); } - set { SetFactor( value); } + set { SetFactor(value); } } private static IntPtr GetEflClassStatic() { return Efl.SinusoidalInterpolator.efl_sinusoidal_interpolator_class_get(); } -} -public class SinusoidalInterpolatorNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_sinusoidal_interpolator_factor_get_static_delegate == null) - efl_sinusoidal_interpolator_factor_get_static_delegate = new efl_sinusoidal_interpolator_factor_get_delegate(factor_get); - if (methods.FirstOrDefault(m => m.Name == "GetFactor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_sinusoidal_interpolator_factor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_sinusoidal_interpolator_factor_get_static_delegate)}); - if (efl_sinusoidal_interpolator_factor_set_static_delegate == null) - efl_sinusoidal_interpolator_factor_set_static_delegate = new efl_sinusoidal_interpolator_factor_set_delegate(factor_set); - if (methods.FirstOrDefault(m => m.Name == "SetFactor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_sinusoidal_interpolator_factor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_sinusoidal_interpolator_factor_set_static_delegate)}); - if (efl_interpolator_interpolate_static_delegate == null) - efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.SinusoidalInterpolator.efl_sinusoidal_interpolator_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.SinusoidalInterpolator.efl_sinusoidal_interpolator_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_sinusoidal_interpolator_factor_get_static_delegate == null) + { + efl_sinusoidal_interpolator_factor_get_static_delegate = new efl_sinusoidal_interpolator_factor_get_delegate(factor_get); + } - private delegate double efl_sinusoidal_interpolator_factor_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFactor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_sinusoidal_interpolator_factor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_sinusoidal_interpolator_factor_get_static_delegate) }); + } + if (efl_sinusoidal_interpolator_factor_set_static_delegate == null) + { + efl_sinusoidal_interpolator_factor_set_static_delegate = new efl_sinusoidal_interpolator_factor_set_delegate(factor_set); + } - public delegate double efl_sinusoidal_interpolator_factor_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_sinusoidal_interpolator_factor_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_sinusoidal_interpolator_factor_get"); - private static double factor_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_sinusoidal_interpolator_factor_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((SinusoidalInterpolator)wrapper).GetFactor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFactor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_sinusoidal_interpolator_factor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_sinusoidal_interpolator_factor_set_static_delegate) }); } - return _ret_var; - } else { - return efl_sinusoidal_interpolator_factor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_interpolator_interpolate_static_delegate == null) + { + efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); + } + + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.SinusoidalInterpolator.efl_sinusoidal_interpolator_class_get(); } - } - private static efl_sinusoidal_interpolator_factor_get_delegate efl_sinusoidal_interpolator_factor_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_sinusoidal_interpolator_factor_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor); + + private delegate double efl_sinusoidal_interpolator_factor_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_sinusoidal_interpolator_factor_get_api_delegate(System.IntPtr obj); - public delegate void efl_sinusoidal_interpolator_factor_set_api_delegate(System.IntPtr obj, double factor); - public static Efl.Eo.FunctionWrapper efl_sinusoidal_interpolator_factor_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_sinusoidal_interpolator_factor_set"); - private static void factor_set(System.IntPtr obj, System.IntPtr pd, double factor) - { - Eina.Log.Debug("function efl_sinusoidal_interpolator_factor_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((SinusoidalInterpolator)wrapper).SetFactor( factor); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_sinusoidal_interpolator_factor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_sinusoidal_interpolator_factor_get"); + + private static double factor_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_sinusoidal_interpolator_factor_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((SinusoidalInterpolator)wrapper).GetFactor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_sinusoidal_interpolator_factor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_sinusoidal_interpolator_factor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor); } - } - private static efl_sinusoidal_interpolator_factor_set_delegate efl_sinusoidal_interpolator_factor_set_static_delegate; + private static efl_sinusoidal_interpolator_factor_get_delegate efl_sinusoidal_interpolator_factor_get_static_delegate; - private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + private delegate void efl_sinusoidal_interpolator_factor_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor); + + public delegate void efl_sinusoidal_interpolator_factor_set_api_delegate(System.IntPtr obj, double factor); - public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); - public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_interpolator_interpolate"); - private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) - { - Eina.Log.Debug("function efl_interpolator_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((SinusoidalInterpolator)wrapper).Interpolate( progress); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_sinusoidal_interpolator_factor_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_sinusoidal_interpolator_factor_set"); + + private static void factor_set(System.IntPtr obj, System.IntPtr pd, double factor) + { + Eina.Log.Debug("function efl_sinusoidal_interpolator_factor_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((SinusoidalInterpolator)wrapper).SetFactor(factor); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_sinusoidal_interpolator_factor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor); + } + } + + private static efl_sinusoidal_interpolator_factor_set_delegate efl_sinusoidal_interpolator_factor_set_static_delegate; + + + private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + + public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); + + public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_interpolator_interpolate"); + + private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) + { + Eina.Log.Debug("function efl_interpolator_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((SinusoidalInterpolator)wrapper).Interpolate(progress); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + + } + else + { + return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + } } - } - private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_spring_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_spring_interpolator.eo.cs index 31c62c1..e8be01c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_spring_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_spring_interpolator.eo.cs @@ -3,82 +3,102 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl spring interpolator class -[SpringInterpolatorNativeInherit] +[Efl.SpringInterpolator.NativeMethods] public class SpringInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (SpringInterpolator)) - return Efl.SpringInterpolatorNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(SpringInterpolator)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_spring_interpolator_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public SpringInterpolator(Efl.Object parent= null - ) : - base(efl_spring_interpolator_class_get(), typeof(SpringInterpolator), parent) + ) : base(efl_spring_interpolator_class_get(), typeof(SpringInterpolator), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected SpringInterpolator(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected SpringInterpolator(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected SpringInterpolator(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Factors property /// First factor of the interpolation function. /// Second factor of the interpolation function. - /// - virtual public void GetFactors( out double factor1, out double factor2) { - Efl.SpringInterpolatorNativeInherit.efl_spring_interpolator_factors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out factor1, out factor2); + virtual public void GetFactors(out double factor1, out double factor2) { + Efl.SpringInterpolator.NativeMethods.efl_spring_interpolator_factors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out factor1, out factor2); Eina.Error.RaiseIfUnhandledException(); } /// Factors property /// First factor of the interpolation function. /// Second factor of the interpolation function. - /// - virtual public void SetFactors( double factor1, double factor2) { - Efl.SpringInterpolatorNativeInherit.efl_spring_interpolator_factors_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), factor1, factor2); + virtual public void SetFactors(double factor1, double factor2) { + Efl.SpringInterpolator.NativeMethods.efl_spring_interpolator_factors_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),factor1, factor2); Eina.Error.RaiseIfUnhandledException(); } /// Interpolate the given value. /// Input value mapped from 0.0 to 1.0. /// Output value calculated by interpolating the input value. - virtual public double Interpolate( double progress) { - var _ret_var = Efl.IInterpolatorNativeInherit.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), progress); + virtual public double Interpolate(double progress) { + var _ret_var = Efl.IInterpolatorConcrete.NativeMethods.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),progress); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -86,108 +106,169 @@ public class SpringInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator { return Efl.SpringInterpolator.efl_spring_interpolator_class_get(); } -} -public class SpringInterpolatorNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_spring_interpolator_factors_get_static_delegate == null) - efl_spring_interpolator_factors_get_static_delegate = new efl_spring_interpolator_factors_get_delegate(factors_get); - if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_spring_interpolator_factors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_spring_interpolator_factors_get_static_delegate)}); - if (efl_spring_interpolator_factors_set_static_delegate == null) - efl_spring_interpolator_factors_set_static_delegate = new efl_spring_interpolator_factors_set_delegate(factors_set); - if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_spring_interpolator_factors_set"), func = Marshal.GetFunctionPointerForDelegate(efl_spring_interpolator_factors_set_static_delegate)}); - if (efl_interpolator_interpolate_static_delegate == null) - efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.SpringInterpolator.efl_spring_interpolator_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.SpringInterpolator.efl_spring_interpolator_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_spring_interpolator_factors_get_static_delegate == null) + { + efl_spring_interpolator_factors_get_static_delegate = new efl_spring_interpolator_factors_get_delegate(factors_get); + } - private delegate void efl_spring_interpolator_factors_get_delegate(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2); + if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_spring_interpolator_factors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_spring_interpolator_factors_get_static_delegate) }); + } + if (efl_spring_interpolator_factors_set_static_delegate == null) + { + efl_spring_interpolator_factors_set_static_delegate = new efl_spring_interpolator_factors_set_delegate(factors_set); + } - public delegate void efl_spring_interpolator_factors_get_api_delegate(System.IntPtr obj, out double factor1, out double factor2); - public static Efl.Eo.FunctionWrapper efl_spring_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_spring_interpolator_factors_get"); - private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2) - { - Eina.Log.Debug("function efl_spring_interpolator_factors_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - factor1 = default(double); factor2 = default(double); - try { - ((SpringInterpolator)wrapper).GetFactors( out factor1, out factor2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_spring_interpolator_factors_set"), func = Marshal.GetFunctionPointerForDelegate(efl_spring_interpolator_factors_set_static_delegate) }); + } + + if (efl_interpolator_interpolate_static_delegate == null) + { + efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); + } + + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_static_delegate) }); } - } else { - efl_spring_interpolator_factors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out factor1, out factor2); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.SpringInterpolator.efl_spring_interpolator_class_get(); } - } - private static efl_spring_interpolator_factors_get_delegate efl_spring_interpolator_factors_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_spring_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2); + + private delegate void efl_spring_interpolator_factors_get_delegate(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2); + + public delegate void efl_spring_interpolator_factors_get_api_delegate(System.IntPtr obj, out double factor1, out double factor2); - public delegate void efl_spring_interpolator_factors_set_api_delegate(System.IntPtr obj, double factor1, double factor2); - public static Efl.Eo.FunctionWrapper efl_spring_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_spring_interpolator_factors_set"); - private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2) - { - Eina.Log.Debug("function efl_spring_interpolator_factors_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((SpringInterpolator)wrapper).SetFactors( factor1, factor2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_spring_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_spring_interpolator_factors_get"); + + private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2) + { + Eina.Log.Debug("function efl_spring_interpolator_factors_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + factor1 = default(double); factor2 = default(double); + try + { + ((SpringInterpolator)wrapper).GetFactors(out factor1, out factor2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_spring_interpolator_factors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out factor1, out factor2); } - } else { - efl_spring_interpolator_factors_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor1, factor2); } - } - private static efl_spring_interpolator_factors_set_delegate efl_spring_interpolator_factors_set_static_delegate; + private static efl_spring_interpolator_factors_get_delegate efl_spring_interpolator_factors_get_static_delegate; - private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + private delegate void efl_spring_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2); + + public delegate void efl_spring_interpolator_factors_set_api_delegate(System.IntPtr obj, double factor1, double factor2); - public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); - public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_interpolator_interpolate"); - private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) - { - Eina.Log.Debug("function efl_interpolator_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((SpringInterpolator)wrapper).Interpolate( progress); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_spring_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_spring_interpolator_factors_set"); + + private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2) + { + Eina.Log.Debug("function efl_spring_interpolator_factors_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((SpringInterpolator)wrapper).SetFactors(factor1, factor2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_spring_interpolator_factors_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor1, factor2); + } + } + + private static efl_spring_interpolator_factors_set_delegate efl_spring_interpolator_factors_set_static_delegate; + + + private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); + + + public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); + + public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_interpolator_interpolate"); + + private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) + { + Eina.Log.Debug("function efl_interpolator_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((SpringInterpolator)wrapper).Interpolate(progress); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + + } + else + { + return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); + } } - } - private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_task.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_task.eo.cs index 6bf09d8..881f55d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_task.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_task.eo.cs @@ -3,37 +3,48 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// No description supplied. /// (Since EFL 1.22) -[TaskNativeInherit] +[Efl.Task.NativeMethods] public abstract class Task : Efl.LoopConsumer, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Task)) - return Efl.TaskNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Task)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_task_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Task(Efl.Object parent= null - ) : - base(efl_task_class_get(), typeof(Task), parent) + ) : base(efl_task_class_get(), typeof(Task), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Task(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class TaskRealized : Task { @@ -41,85 +52,91 @@ public abstract class Task : Efl.LoopConsumer, Efl.Eo.IWrapper { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Task(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Task(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) { - var other = obj as Efl.Object; + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) + { + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// The priority of this task. /// (Since EFL 1.22) /// No description supplied. virtual public Efl.TaskPriority GetPriority() { - var _ret_var = Efl.TaskNativeInherit.efl_task_priority_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Task.NativeMethods.efl_task_priority_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The priority of this task. /// (Since EFL 1.22) /// No description supplied. - /// - virtual public void SetPriority( Efl.TaskPriority priority) { - Efl.TaskNativeInherit.efl_task_priority_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), priority); + virtual public void SetPriority(Efl.TaskPriority priority) { + Efl.Task.NativeMethods.efl_task_priority_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),priority); Eina.Error.RaiseIfUnhandledException(); } /// The final exit code of this task. /// (Since EFL 1.22) /// No description supplied. virtual public int GetExitCode() { - var _ret_var = Efl.TaskNativeInherit.efl_task_exit_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Task.NativeMethods.efl_task_exit_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// /// No description supplied. virtual public Efl.TaskFlags GetFlags() { - var _ret_var = Efl.TaskNativeInherit.efl_task_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Task.NativeMethods.efl_task_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// /// No description supplied. - /// - virtual public void SetFlags( Efl.TaskFlags flags) { - Efl.TaskNativeInherit.efl_task_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), flags); + virtual public void SetFlags(Efl.TaskFlags flags) { + Efl.Task.NativeMethods.efl_task_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),flags); Eina.Error.RaiseIfUnhandledException(); } /// Actually run the task /// (Since EFL 1.22) /// A future triggered when task exits and is passed int exit code virtual public Eina.Future Run() { - var _ret_var = Efl.TaskNativeInherit.efl_task_run_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Task.NativeMethods.efl_task_run_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Request the task end (may send a signal or interrupt signal resulting in a terminate event being tiggered in the target task loop) /// (Since EFL 1.22) - /// virtual public void End() { - Efl.TaskNativeInherit.efl_task_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Task.NativeMethods.efl_task_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } - public System.Threading.Tasks.Task RunAsync( System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task RunAsync( System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { Eina.Future future = Run(); return Efl.Eo.Globals.WrapAsync(future, token); @@ -129,7 +146,7 @@ public abstract class Task : Efl.LoopConsumer, Efl.Eo.IWrapper /// No description supplied. public Efl.TaskPriority Priority { get { return GetPriority(); } - set { SetPriority( value); } + set { SetPriority(value); } } /// The final exit code of this task. /// (Since EFL 1.22) @@ -137,265 +154,390 @@ public abstract class Task : Efl.LoopConsumer, Efl.Eo.IWrapper public int ExitCode { get { return GetExitCode(); } } - /// -/// No description supplied. + /// No description supplied. public Efl.TaskFlags Flags { get { return GetFlags(); } - set { SetFlags( value); } + set { SetFlags(value); } } private static IntPtr GetEflClassStatic() { return Efl.Task.efl_task_class_get(); } -} -public class TaskNativeInherit : Efl.LoopConsumerNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_task_priority_get_static_delegate == null) - efl_task_priority_get_static_delegate = new efl_task_priority_get_delegate(priority_get); - if (methods.FirstOrDefault(m => m.Name == "GetPriority") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_priority_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_priority_get_static_delegate)}); - if (efl_task_priority_set_static_delegate == null) - efl_task_priority_set_static_delegate = new efl_task_priority_set_delegate(priority_set); - if (methods.FirstOrDefault(m => m.Name == "SetPriority") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_priority_set"), func = Marshal.GetFunctionPointerForDelegate(efl_task_priority_set_static_delegate)}); - if (efl_task_exit_code_get_static_delegate == null) - efl_task_exit_code_get_static_delegate = new efl_task_exit_code_get_delegate(exit_code_get); - if (methods.FirstOrDefault(m => m.Name == "GetExitCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_exit_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_exit_code_get_static_delegate)}); - if (efl_task_flags_get_static_delegate == null) - efl_task_flags_get_static_delegate = new efl_task_flags_get_delegate(flags_get); - if (methods.FirstOrDefault(m => m.Name == "GetFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_flags_get_static_delegate)}); - if (efl_task_flags_set_static_delegate == null) - efl_task_flags_set_static_delegate = new efl_task_flags_set_delegate(flags_set); - if (methods.FirstOrDefault(m => m.Name == "SetFlags") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_task_flags_set_static_delegate)}); - if (efl_task_run_static_delegate == null) - efl_task_run_static_delegate = new efl_task_run_delegate(run); - if (methods.FirstOrDefault(m => m.Name == "Run") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_run"), func = Marshal.GetFunctionPointerForDelegate(efl_task_run_static_delegate)}); - if (efl_task_end_static_delegate == null) - efl_task_end_static_delegate = new efl_task_end_delegate(end); - if (methods.FirstOrDefault(m => m.Name == "End") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_end"), func = Marshal.GetFunctionPointerForDelegate(efl_task_end_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Task.efl_task_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopConsumer.NativeMethods { - return Efl.Task.efl_task_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_task_priority_get_static_delegate == null) + { + efl_task_priority_get_static_delegate = new efl_task_priority_get_delegate(priority_get); + } - private delegate Efl.TaskPriority efl_task_priority_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPriority") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_task_priority_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_priority_get_static_delegate) }); + } + if (efl_task_priority_set_static_delegate == null) + { + efl_task_priority_set_static_delegate = new efl_task_priority_set_delegate(priority_set); + } - public delegate Efl.TaskPriority efl_task_priority_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_task_priority_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_task_priority_get"); - private static Efl.TaskPriority priority_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_task_priority_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TaskPriority _ret_var = default(Efl.TaskPriority); - try { - _ret_var = ((Task)wrapper).GetPriority(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPriority") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_task_priority_set"), func = Marshal.GetFunctionPointerForDelegate(efl_task_priority_set_static_delegate) }); } - return _ret_var; - } else { - return efl_task_priority_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_task_priority_get_delegate efl_task_priority_get_static_delegate; + if (efl_task_exit_code_get_static_delegate == null) + { + efl_task_exit_code_get_static_delegate = new efl_task_exit_code_get_delegate(exit_code_get); + } - private delegate void efl_task_priority_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TaskPriority priority); + if (methods.FirstOrDefault(m => m.Name == "GetExitCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_task_exit_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_exit_code_get_static_delegate) }); + } + if (efl_task_flags_get_static_delegate == null) + { + efl_task_flags_get_static_delegate = new efl_task_flags_get_delegate(flags_get); + } - public delegate void efl_task_priority_set_api_delegate(System.IntPtr obj, Efl.TaskPriority priority); - public static Efl.Eo.FunctionWrapper efl_task_priority_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_task_priority_set"); - private static void priority_set(System.IntPtr obj, System.IntPtr pd, Efl.TaskPriority priority) - { - Eina.Log.Debug("function efl_task_priority_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Task)wrapper).SetPriority( priority); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_task_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_flags_get_static_delegate) }); } - } else { - efl_task_priority_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), priority); - } - } - private static efl_task_priority_set_delegate efl_task_priority_set_static_delegate; + if (efl_task_flags_set_static_delegate == null) + { + efl_task_flags_set_static_delegate = new efl_task_flags_set_delegate(flags_set); + } - private delegate int efl_task_exit_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFlags") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_task_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_task_flags_set_static_delegate) }); + } + if (efl_task_run_static_delegate == null) + { + efl_task_run_static_delegate = new efl_task_run_delegate(run); + } - public delegate int efl_task_exit_code_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_task_exit_code_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_task_exit_code_get"); - private static int exit_code_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_task_exit_code_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Task)wrapper).GetExitCode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Run") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_task_run"), func = Marshal.GetFunctionPointerForDelegate(efl_task_run_static_delegate) }); + } + + if (efl_task_end_static_delegate == null) + { + efl_task_end_static_delegate = new efl_task_end_delegate(end); + } + + if (methods.FirstOrDefault(m => m.Name == "End") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_task_end"), func = Marshal.GetFunctionPointerForDelegate(efl_task_end_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Task.efl_task_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.TaskPriority efl_task_priority_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TaskPriority efl_task_priority_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_task_priority_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_task_priority_get"); + + private static Efl.TaskPriority priority_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_task_priority_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TaskPriority _ret_var = default(Efl.TaskPriority); + try + { + _ret_var = ((Task)wrapper).GetPriority(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_task_exit_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_task_priority_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_task_exit_code_get_delegate efl_task_exit_code_get_static_delegate; + private static efl_task_priority_get_delegate efl_task_priority_get_static_delegate; - private delegate Efl.TaskFlags efl_task_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_task_priority_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TaskPriority priority); + + public delegate void efl_task_priority_set_api_delegate(System.IntPtr obj, Efl.TaskPriority priority); - public delegate Efl.TaskFlags efl_task_flags_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_task_flags_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_task_flags_get"); - private static Efl.TaskFlags flags_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_task_flags_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TaskFlags _ret_var = default(Efl.TaskFlags); - try { - _ret_var = ((Task)wrapper).GetFlags(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_task_priority_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_task_priority_set"); + + private static void priority_set(System.IntPtr obj, System.IntPtr pd, Efl.TaskPriority priority) + { + Eina.Log.Debug("function efl_task_priority_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Task)wrapper).SetPriority(priority); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_task_priority_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), priority); } + } + + private static efl_task_priority_set_delegate efl_task_priority_set_static_delegate; + + + private delegate int efl_task_exit_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_task_exit_code_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_task_exit_code_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_task_exit_code_get"); + + private static int exit_code_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_task_exit_code_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Task)wrapper).GetExitCode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_task_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_task_exit_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_task_flags_get_delegate efl_task_flags_get_static_delegate; + private static efl_task_exit_code_get_delegate efl_task_exit_code_get_static_delegate; - private delegate void efl_task_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TaskFlags flags); + + private delegate Efl.TaskFlags efl_task_flags_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.TaskFlags efl_task_flags_get_api_delegate(System.IntPtr obj); - public delegate void efl_task_flags_set_api_delegate(System.IntPtr obj, Efl.TaskFlags flags); - public static Efl.Eo.FunctionWrapper efl_task_flags_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_task_flags_set"); - private static void flags_set(System.IntPtr obj, System.IntPtr pd, Efl.TaskFlags flags) - { - Eina.Log.Debug("function efl_task_flags_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Task)wrapper).SetFlags( flags); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_task_flags_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_task_flags_get"); + + private static Efl.TaskFlags flags_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_task_flags_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TaskFlags _ret_var = default(Efl.TaskFlags); + try + { + _ret_var = ((Task)wrapper).GetFlags(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_task_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_task_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); } - } - private static efl_task_flags_set_delegate efl_task_flags_set_static_delegate; + private static efl_task_flags_get_delegate efl_task_flags_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_task_run_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_task_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TaskFlags flags); + + public delegate void efl_task_flags_set_api_delegate(System.IntPtr obj, Efl.TaskFlags flags); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_task_run_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_task_run_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_task_run"); - private static Eina.Future run(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_task_run was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((Task)wrapper).Run(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_task_flags_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_task_flags_set"); + + private static void flags_set(System.IntPtr obj, System.IntPtr pd, Efl.TaskFlags flags) + { + Eina.Log.Debug("function efl_task_flags_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Task)wrapper).SetFlags(flags); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_task_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags); } + } + + private static efl_task_flags_set_delegate efl_task_flags_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_task_run_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_task_run_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_task_run_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_task_run"); + + private static Eina.Future run(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_task_run was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((Task)wrapper).Run(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_task_run_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_task_run_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_task_run_delegate efl_task_run_static_delegate; + private static efl_task_run_delegate efl_task_run_static_delegate; - private delegate void efl_task_end_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_task_end_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_task_end_api_delegate(System.IntPtr obj); - public delegate void efl_task_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_task_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_task_end"); - private static void end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_task_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Task)wrapper).End(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_task_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_task_end"); + + private static void end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_task_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Task)wrapper).End(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_task_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_task_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_task_end_delegate efl_task_end_static_delegate; + + private static efl_task_end_delegate efl_task_end_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} -namespace Efl { +} + +namespace Efl { + /// No description supplied. /// (Since EFL 1.22) public enum TaskPriority { -/// Normal = 0, -/// Background = 1, -/// Low = 2, -/// High = 3, -/// Ultra = 4, } -} -namespace Efl { + +} + +namespace Efl { + /// No description supplied. /// (Since EFL 1.22) public enum TaskFlags { -/// None = 0, -/// UseStdin = 1, -/// UseStdout = 2, -/// NoExitCodeError = 4, } -} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text.eo.cs index 88db0c8..8d2a73b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text.eo.cs @@ -3,11 +3,13 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Efl text interface /// (Since EFL 1.22) -[ITextNativeInherit] +[Efl.ITextConcrete.NativeMethods] public interface IText : Efl.Eo.IWrapper, IDisposable { @@ -22,8 +24,7 @@ System.String GetText(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. -/// -void SetText( System.String text); +void SetText(System.String text); } /// Efl text interface /// (Since EFL 1.22) @@ -33,68 +34,103 @@ IText { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextConcrete)) - return Efl.ITextNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_text_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Retrieves the text string currently being displayed by the given text object. /// Do not free() the return value. /// @@ -102,7 +138,7 @@ IText /// (Since EFL 1.22) /// Text string to display on it. public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -110,88 +146,131 @@ IText /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate(this.NativeHandle, text); + public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate(this.NativeHandle,text); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.ITextConcrete.efl_text_interface_get(); } -} -public class ITextNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.ITextConcrete.efl_text_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.ITextConcrete.efl_text_interface_get(); - } + 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_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IText)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_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.ITextConcrete.efl_text_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IText)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IText)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IText)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + + private static efl_text_set_delegate efl_text_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_annotate.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_annotate.eo.cs index 440a2ea..bc0704b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_annotate.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_annotate.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Cursor API -[ITextAnnotateNativeInherit] +[Efl.ITextAnnotateConcrete.NativeMethods] public interface ITextAnnotate : Efl.Eo.IWrapper, IDisposable { @@ -14,46 +16,45 @@ public interface ITextAnnotate : /// This will replace the format applied by annotation with format. Assumes that annotation is a handle for an existing annotation, i.e. one that was added using to this object. Otherwise, this will fail and return false. /// Given annotation /// The new format for the given annotation -System.String GetAnnotation( Efl.TextAnnotateAnnotation annotation); +System.String GetAnnotation(Efl.TextAnnotateAnnotation annotation); /// A new format for annotation. /// This will replace the format applied by annotation with format. Assumes that annotation is a handle for an existing annotation, i.e. one that was added using to this object. Otherwise, this will fail and return false. /// Given annotation /// The new format for the given annotation /// true on success, false otherwise. -bool SetAnnotation( Efl.TextAnnotateAnnotation annotation, System.String format); +bool SetAnnotation(Efl.TextAnnotateAnnotation annotation, System.String format); /// The object-item annotation at the cursor's position. /// Cursor object /// Annotation -Efl.TextAnnotateAnnotation GetCursorItemAnnotation( Efl.TextCursorCursor cur); +Efl.TextAnnotateAnnotation GetCursorItemAnnotation(Efl.TextCursorCursor cur); /// Returns an iterator of all the handles in a range. /// Start of range /// End of range /// Handle of the Annotation -Eina.Iterator GetRangeAnnotations( Efl.TextCursorCursor start, Efl.TextCursorCursor end); +Eina.Iterator GetRangeAnnotations(Efl.TextCursorCursor start, Efl.TextCursorCursor end); /// Inserts an annotation format in a specified range [start, end - 1]. /// The format will be applied to the given range, and the annotation handle will be returned for further handling. /// Start of range /// End of range /// Annotation format /// Handle of inserted annotation -Efl.TextAnnotateAnnotation AnnotationInsert( Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String format); +Efl.TextAnnotateAnnotation AnnotationInsert(Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String format); /// Deletes given annotation. /// All formats applied by annotation will be removed and it will be deleted. /// Annotation to be removed /// true on success, false otherwise. -bool DelAnnotation( Efl.TextAnnotateAnnotation annotation); +bool DelAnnotation(Efl.TextAnnotateAnnotation annotation); /// Sets given cursors to the start and end positions of the annotation. /// The cursors start and end will be set to the start and end positions of the given annotation annotation. /// Annotation handle to query /// Cursor to be set to the start position of the annotation in the text /// Cursor to be set to the end position of the annotation in the text -/// -void GetAnnotationPositions( Efl.TextAnnotateAnnotation annotation, Efl.TextCursorCursor start, Efl.TextCursorCursor end); +void GetAnnotationPositions(Efl.TextAnnotateAnnotation annotation, Efl.TextCursorCursor start, Efl.TextCursorCursor end); /// Whether this is an "item" type of annotation. Should be used before querying the annotation's geometry, as only "item" annotations have a geometry. /// see see /// Given annotation /// true if given annotation is an object item, false otherwise -bool AnnotationIsItem( Efl.TextAnnotateAnnotation annotation); +bool AnnotationIsItem(Efl.TextAnnotateAnnotation annotation); /// Queries a given object item for its geometry. /// Note that the provided annotation should be an object item type. /// Given annotation to query @@ -62,14 +63,14 @@ bool AnnotationIsItem( Efl.TextAnnotateAnnotation annotation); /// Width of the annotation /// Height of the annotation /// true if given annotation is an object item, false otherwise -bool GetItemGeometry( Efl.TextAnnotateAnnotation an, out int x, out int y, out int w, out int h); +bool GetItemGeometry(Efl.TextAnnotateAnnotation an, out int x, out int y, out int w, out int h); /// Inserts a object item at specified position. /// This adds a placeholder to be queried by higher-level code, which in turn place graphics on top of it. It essentially places an OBJECT REPLACEMENT CHARACTER and set a special annotation to it. /// Cursor object /// Item key to be used in higher-up code to query and decided what image, emoticon etc. to embed. /// Size format of the inserted item. This hints how to size the item in the text. /// The annotation handle of the inserted item. -Efl.TextAnnotateAnnotation CursorItemInsert( Efl.TextCursorCursor cur, System.String item, System.String format); +Efl.TextAnnotateAnnotation CursorItemInsert(Efl.TextCursorCursor cur, System.String item, System.String format); } /// Cursor API sealed public class ITextAnnotateConcrete : @@ -78,74 +79,109 @@ ITextAnnotate { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextAnnotateConcrete)) - return Efl.ITextAnnotateNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextAnnotateConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_text_annotate_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextAnnotateConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextAnnotateConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// A new format for annotation. /// This will replace the format applied by annotation with format. Assumes that annotation is a handle for an existing annotation, i.e. one that was added using to this object. Otherwise, this will fail and return false. /// Given annotation /// The new format for the given annotation - public System.String GetAnnotation( Efl.TextAnnotateAnnotation annotation) { - var _ret_var = Efl.ITextAnnotateNativeInherit.efl_text_annotation_get_ptr.Value.Delegate(this.NativeHandle, annotation); + public System.String GetAnnotation(Efl.TextAnnotateAnnotation annotation) { + var _ret_var = Efl.ITextAnnotateConcrete.NativeMethods.efl_text_annotation_get_ptr.Value.Delegate(this.NativeHandle,annotation); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -154,16 +190,16 @@ ITextAnnotate /// Given annotation /// The new format for the given annotation /// true on success, false otherwise. - public bool SetAnnotation( Efl.TextAnnotateAnnotation annotation, System.String format) { - var _ret_var = Efl.ITextAnnotateNativeInherit.efl_text_annotation_set_ptr.Value.Delegate(this.NativeHandle, annotation, format); + public bool SetAnnotation(Efl.TextAnnotateAnnotation annotation, System.String format) { + var _ret_var = Efl.ITextAnnotateConcrete.NativeMethods.efl_text_annotation_set_ptr.Value.Delegate(this.NativeHandle,annotation, format); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The object-item annotation at the cursor's position. /// Cursor object /// Annotation - public Efl.TextAnnotateAnnotation GetCursorItemAnnotation( Efl.TextCursorCursor cur) { - var _ret_var = Efl.ITextAnnotateNativeInherit.efl_text_cursor_item_annotation_get_ptr.Value.Delegate(this.NativeHandle, cur); + public Efl.TextAnnotateAnnotation GetCursorItemAnnotation(Efl.TextCursorCursor cur) { + var _ret_var = Efl.ITextAnnotateConcrete.NativeMethods.efl_text_cursor_item_annotation_get_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -171,8 +207,8 @@ ITextAnnotate /// Start of range /// End of range /// Handle of the Annotation - public Eina.Iterator GetRangeAnnotations( Efl.TextCursorCursor start, Efl.TextCursorCursor end) { - var _ret_var = Efl.ITextAnnotateNativeInherit.efl_text_range_annotations_get_ptr.Value.Delegate(this.NativeHandle, start, end); + public Eina.Iterator GetRangeAnnotations(Efl.TextCursorCursor start, Efl.TextCursorCursor end) { + var _ret_var = Efl.ITextAnnotateConcrete.NativeMethods.efl_text_range_annotations_get_ptr.Value.Delegate(this.NativeHandle,start, end); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -182,8 +218,8 @@ ITextAnnotate /// End of range /// Annotation format /// Handle of inserted annotation - public Efl.TextAnnotateAnnotation AnnotationInsert( Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String format) { - var _ret_var = Efl.ITextAnnotateNativeInherit.efl_text_annotation_insert_ptr.Value.Delegate(this.NativeHandle, start, end, format); + public Efl.TextAnnotateAnnotation AnnotationInsert(Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String format) { + var _ret_var = Efl.ITextAnnotateConcrete.NativeMethods.efl_text_annotation_insert_ptr.Value.Delegate(this.NativeHandle,start, end, format); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -191,8 +227,8 @@ ITextAnnotate /// All formats applied by annotation will be removed and it will be deleted. /// Annotation to be removed /// true on success, false otherwise. - public bool DelAnnotation( Efl.TextAnnotateAnnotation annotation) { - var _ret_var = Efl.ITextAnnotateNativeInherit.efl_text_annotation_del_ptr.Value.Delegate(this.NativeHandle, annotation); + public bool DelAnnotation(Efl.TextAnnotateAnnotation annotation) { + var _ret_var = Efl.ITextAnnotateConcrete.NativeMethods.efl_text_annotation_del_ptr.Value.Delegate(this.NativeHandle,annotation); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -201,17 +237,16 @@ ITextAnnotate /// Annotation handle to query /// Cursor to be set to the start position of the annotation in the text /// Cursor to be set to the end position of the annotation in the text - /// - public void GetAnnotationPositions( Efl.TextAnnotateAnnotation annotation, Efl.TextCursorCursor start, Efl.TextCursorCursor end) { - Efl.ITextAnnotateNativeInherit.efl_text_annotation_positions_get_ptr.Value.Delegate(this.NativeHandle, annotation, start, end); + public void GetAnnotationPositions(Efl.TextAnnotateAnnotation annotation, Efl.TextCursorCursor start, Efl.TextCursorCursor end) { + Efl.ITextAnnotateConcrete.NativeMethods.efl_text_annotation_positions_get_ptr.Value.Delegate(this.NativeHandle,annotation, start, end); Eina.Error.RaiseIfUnhandledException(); } /// Whether this is an "item" type of annotation. Should be used before querying the annotation's geometry, as only "item" annotations have a geometry. /// see see /// Given annotation /// true if given annotation is an object item, false otherwise - public bool AnnotationIsItem( Efl.TextAnnotateAnnotation annotation) { - var _ret_var = Efl.ITextAnnotateNativeInherit.efl_text_annotation_is_item_ptr.Value.Delegate(this.NativeHandle, annotation); + public bool AnnotationIsItem(Efl.TextAnnotateAnnotation annotation) { + var _ret_var = Efl.ITextAnnotateConcrete.NativeMethods.efl_text_annotation_is_item_ptr.Value.Delegate(this.NativeHandle,annotation); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -223,8 +258,8 @@ ITextAnnotate /// Width of the annotation /// Height of the annotation /// true if given annotation is an object item, false otherwise - public bool GetItemGeometry( Efl.TextAnnotateAnnotation an, out int x, out int y, out int w, out int h) { - var _ret_var = Efl.ITextAnnotateNativeInherit.efl_text_item_geometry_get_ptr.Value.Delegate(this.NativeHandle, an, out x, out y, out w, out h); + public bool GetItemGeometry(Efl.TextAnnotateAnnotation an, out int x, out int y, out int w, out int h) { + var _ret_var = Efl.ITextAnnotateConcrete.NativeMethods.efl_text_item_geometry_get_ptr.Value.Delegate(this.NativeHandle,an, out x, out y, out w, out h); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -234,8 +269,8 @@ ITextAnnotate /// Item key to be used in higher-up code to query and decided what image, emoticon etc. to embed. /// Size format of the inserted item. This hints how to size the item in the text. /// The annotation handle of the inserted item. - public Efl.TextAnnotateAnnotation CursorItemInsert( Efl.TextCursorCursor cur, System.String item, System.String format) { - var _ret_var = Efl.ITextAnnotateNativeInherit.efl_text_cursor_item_insert_ptr.Value.Delegate(this.NativeHandle, cur, item, format); + public Efl.TextAnnotateAnnotation CursorItemInsert(Efl.TextCursorCursor cur, System.String item, System.String format) { + var _ret_var = Efl.ITextAnnotateConcrete.NativeMethods.efl_text_cursor_item_insert_ptr.Value.Delegate(this.NativeHandle,cur, item, format); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -243,311 +278,491 @@ ITextAnnotate { return Efl.ITextAnnotateConcrete.efl_text_annotate_interface_get(); } -} -public class ITextAnnotateNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_text_annotation_get_static_delegate == null) - efl_text_annotation_get_static_delegate = new efl_text_annotation_get_delegate(annotation_get); - if (methods.FirstOrDefault(m => m.Name == "GetAnnotation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_get_static_delegate)}); - if (efl_text_annotation_set_static_delegate == null) - efl_text_annotation_set_static_delegate = new efl_text_annotation_set_delegate(annotation_set); - if (methods.FirstOrDefault(m => m.Name == "SetAnnotation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_set_static_delegate)}); - if (efl_text_cursor_item_annotation_get_static_delegate == null) - efl_text_cursor_item_annotation_get_static_delegate = new efl_text_cursor_item_annotation_get_delegate(cursor_item_annotation_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorItemAnnotation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_item_annotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_item_annotation_get_static_delegate)}); - if (efl_text_range_annotations_get_static_delegate == null) - efl_text_range_annotations_get_static_delegate = new efl_text_range_annotations_get_delegate(range_annotations_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeAnnotations") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_range_annotations_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_range_annotations_get_static_delegate)}); - if (efl_text_annotation_insert_static_delegate == null) - efl_text_annotation_insert_static_delegate = new efl_text_annotation_insert_delegate(annotation_insert); - if (methods.FirstOrDefault(m => m.Name == "AnnotationInsert") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_insert_static_delegate)}); - if (efl_text_annotation_del_static_delegate == null) - efl_text_annotation_del_static_delegate = new efl_text_annotation_del_delegate(annotation_del); - if (methods.FirstOrDefault(m => m.Name == "DelAnnotation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_del"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_del_static_delegate)}); - if (efl_text_annotation_positions_get_static_delegate == null) - efl_text_annotation_positions_get_static_delegate = new efl_text_annotation_positions_get_delegate(annotation_positions_get); - if (methods.FirstOrDefault(m => m.Name == "GetAnnotationPositions") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_positions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_positions_get_static_delegate)}); - if (efl_text_annotation_is_item_static_delegate == null) - efl_text_annotation_is_item_static_delegate = new efl_text_annotation_is_item_delegate(annotation_is_item); - if (methods.FirstOrDefault(m => m.Name == "AnnotationIsItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_annotation_is_item"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_is_item_static_delegate)}); - if (efl_text_item_geometry_get_static_delegate == null) - efl_text_item_geometry_get_static_delegate = new efl_text_item_geometry_get_delegate(item_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetItemGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_item_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_item_geometry_get_static_delegate)}); - if (efl_text_cursor_item_insert_static_delegate == null) - efl_text_cursor_item_insert_static_delegate = new efl_text_cursor_item_insert_delegate(cursor_item_insert); - if (methods.FirstOrDefault(m => m.Name == "CursorItemInsert") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_item_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_item_insert_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.ITextAnnotateConcrete.efl_text_annotate_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.ITextAnnotateConcrete.efl_text_annotate_interface_get(); - } - + 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_text_annotation_get_static_delegate == null) + { + efl_text_annotation_get_static_delegate = new efl_text_annotation_get_delegate(annotation_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_annotation_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation); + if (methods.FirstOrDefault(m => m.Name == "GetAnnotation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_annotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_get_static_delegate) }); + } + if (efl_text_annotation_set_static_delegate == null) + { + efl_text_annotation_set_static_delegate = new efl_text_annotation_set_delegate(annotation_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_annotation_get_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation annotation); - public static Efl.Eo.FunctionWrapper efl_text_annotation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_annotation_get"); - private static System.String annotation_get(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation) - { - Eina.Log.Debug("function efl_text_annotation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextAnnotate)wrapper).GetAnnotation( annotation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetAnnotation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_annotation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_set_static_delegate) }); } - return _ret_var; - } else { - return efl_text_annotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), annotation); - } - } - private static efl_text_annotation_get_delegate efl_text_annotation_get_static_delegate; + if (efl_text_cursor_item_annotation_get_static_delegate == null) + { + efl_text_cursor_item_annotation_get_static_delegate = new efl_text_cursor_item_annotation_get_delegate(cursor_item_annotation_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_annotation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); + if (methods.FirstOrDefault(m => m.Name == "GetCursorItemAnnotation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_item_annotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_item_annotation_get_static_delegate) }); + } + if (efl_text_range_annotations_get_static_delegate == null) + { + efl_text_range_annotations_get_static_delegate = new efl_text_range_annotations_get_delegate(range_annotations_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_annotation_set_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation annotation, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); - public static Efl.Eo.FunctionWrapper efl_text_annotation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_annotation_set"); - private static bool annotation_set(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation, System.String format) - { - Eina.Log.Debug("function efl_text_annotation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextAnnotate)wrapper).SetAnnotation( annotation, format); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetRangeAnnotations") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_range_annotations_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_range_annotations_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_annotation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), annotation, format); - } - } - private static efl_text_annotation_set_delegate efl_text_annotation_set_static_delegate; + if (efl_text_annotation_insert_static_delegate == null) + { + efl_text_annotation_insert_static_delegate = new efl_text_annotation_insert_delegate(annotation_insert); + } - private delegate Efl.TextAnnotateAnnotation efl_text_cursor_item_annotation_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (methods.FirstOrDefault(m => m.Name == "AnnotationInsert") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_annotation_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_insert_static_delegate) }); + } + if (efl_text_annotation_del_static_delegate == null) + { + efl_text_annotation_del_static_delegate = new efl_text_annotation_del_delegate(annotation_del); + } - public delegate Efl.TextAnnotateAnnotation efl_text_cursor_item_annotation_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_item_annotation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_item_annotation_get"); - private static Efl.TextAnnotateAnnotation cursor_item_annotation_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_item_annotation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextAnnotateAnnotation _ret_var = default(Efl.TextAnnotateAnnotation); - try { - _ret_var = ((ITextAnnotate)wrapper).GetCursorItemAnnotation( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DelAnnotation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_annotation_del"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_del_static_delegate) }); } - return _ret_var; - } else { - return efl_text_cursor_item_annotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_item_annotation_get_delegate efl_text_cursor_item_annotation_get_static_delegate; + if (efl_text_annotation_positions_get_static_delegate == null) + { + efl_text_annotation_positions_get_static_delegate = new efl_text_annotation_positions_get_delegate(annotation_positions_get); + } - private delegate System.IntPtr efl_text_range_annotations_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + if (methods.FirstOrDefault(m => m.Name == "GetAnnotationPositions") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_annotation_positions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_positions_get_static_delegate) }); + } + if (efl_text_annotation_is_item_static_delegate == null) + { + efl_text_annotation_is_item_static_delegate = new efl_text_annotation_is_item_delegate(annotation_is_item); + } - public delegate System.IntPtr efl_text_range_annotations_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end); - public static Efl.Eo.FunctionWrapper efl_text_range_annotations_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_range_annotations_get"); - private static System.IntPtr range_annotations_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end) - { - Eina.Log.Debug("function efl_text_range_annotations_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((ITextAnnotate)wrapper).GetRangeAnnotations( start, end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "AnnotationIsItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_annotation_is_item"), func = Marshal.GetFunctionPointerForDelegate(efl_text_annotation_is_item_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_text_range_annotations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); - } - } - private static efl_text_range_annotations_get_delegate efl_text_range_annotations_get_static_delegate; + if (efl_text_item_geometry_get_static_delegate == null) + { + efl_text_item_geometry_get_static_delegate = new efl_text_item_geometry_get_delegate(item_geometry_get); + } - private delegate Efl.TextAnnotateAnnotation efl_text_annotation_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); + if (methods.FirstOrDefault(m => m.Name == "GetItemGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_item_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_item_geometry_get_static_delegate) }); + } + if (efl_text_cursor_item_insert_static_delegate == null) + { + efl_text_cursor_item_insert_static_delegate = new efl_text_cursor_item_insert_delegate(cursor_item_insert); + } - public delegate Efl.TextAnnotateAnnotation efl_text_annotation_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); - public static Efl.Eo.FunctionWrapper efl_text_annotation_insert_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_annotation_insert"); - private static Efl.TextAnnotateAnnotation annotation_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String format) - { - Eina.Log.Debug("function efl_text_annotation_insert was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextAnnotateAnnotation _ret_var = default(Efl.TextAnnotateAnnotation); - try { - _ret_var = ((ITextAnnotate)wrapper).AnnotationInsert( start, end, format); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "CursorItemInsert") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_item_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_item_insert_static_delegate) }); } - return _ret_var; - } else { - return efl_text_annotation_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end, format); - } - } - private static efl_text_annotation_insert_delegate efl_text_annotation_insert_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.ITextAnnotateConcrete.efl_text_annotate_interface_get(); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_annotation_del_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation); + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_annotation_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_annotation_get_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation annotation); + + public static Efl.Eo.FunctionWrapper efl_text_annotation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_annotation_get"); + + private static System.String annotation_get(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation) + { + Eina.Log.Debug("function efl_text_annotation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextAnnotate)wrapper).GetAnnotation(annotation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_annotation_del_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation annotation); - public static Efl.Eo.FunctionWrapper efl_text_annotation_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_annotation_del"); - private static bool annotation_del(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation) - { - Eina.Log.Debug("function efl_text_annotation_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextAnnotate)wrapper).DelAnnotation( annotation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_annotation_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), annotation); + else + { + return efl_text_annotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), annotation); + } } - } - private static efl_text_annotation_del_delegate efl_text_annotation_del_static_delegate; + private static efl_text_annotation_get_delegate efl_text_annotation_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_annotation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_annotation_set_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation annotation, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); + + public static Efl.Eo.FunctionWrapper efl_text_annotation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_annotation_set"); + + private static bool annotation_set(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation, System.String format) + { + Eina.Log.Debug("function efl_text_annotation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextAnnotate)wrapper).SetAnnotation(annotation, format); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_annotation_positions_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + return _ret_var; + } + else + { + return efl_text_annotation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), annotation, format); + } + } - public delegate void efl_text_annotation_positions_get_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation annotation, Efl.TextCursorCursor start, Efl.TextCursorCursor end); - public static Efl.Eo.FunctionWrapper efl_text_annotation_positions_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_annotation_positions_get"); - private static void annotation_positions_get(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation, Efl.TextCursorCursor start, Efl.TextCursorCursor end) - { - Eina.Log.Debug("function efl_text_annotation_positions_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextAnnotate)wrapper).GetAnnotationPositions( annotation, start, end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_annotation_positions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), annotation, start, end); + private static efl_text_annotation_set_delegate efl_text_annotation_set_static_delegate; + + + private delegate Efl.TextAnnotateAnnotation efl_text_cursor_item_annotation_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate Efl.TextAnnotateAnnotation efl_text_cursor_item_annotation_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_item_annotation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_item_annotation_get"); + + private static Efl.TextAnnotateAnnotation cursor_item_annotation_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_item_annotation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextAnnotateAnnotation _ret_var = default(Efl.TextAnnotateAnnotation); + try + { + _ret_var = ((ITextAnnotate)wrapper).GetCursorItemAnnotation(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_cursor_item_annotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_annotation_positions_get_delegate efl_text_annotation_positions_get_static_delegate; + private static efl_text_cursor_item_annotation_get_delegate efl_text_cursor_item_annotation_get_static_delegate; + + + private delegate System.IntPtr efl_text_range_annotations_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + + + public delegate System.IntPtr efl_text_range_annotations_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + + public static Efl.Eo.FunctionWrapper efl_text_range_annotations_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_range_annotations_get"); + + private static System.IntPtr range_annotations_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end) + { + Eina.Log.Debug("function efl_text_range_annotations_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((ITextAnnotate)wrapper).GetRangeAnnotations(start, end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_annotation_is_item_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation); + } + else + { + return efl_text_range_annotations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); + } + } + private static efl_text_range_annotations_get_delegate efl_text_range_annotations_get_static_delegate; + + + private delegate Efl.TextAnnotateAnnotation efl_text_annotation_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); + + + public delegate Efl.TextAnnotateAnnotation efl_text_annotation_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); + + public static Efl.Eo.FunctionWrapper efl_text_annotation_insert_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_annotation_insert"); + + private static Efl.TextAnnotateAnnotation annotation_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String format) + { + Eina.Log.Debug("function efl_text_annotation_insert was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextAnnotateAnnotation _ret_var = default(Efl.TextAnnotateAnnotation); + try + { + _ret_var = ((ITextAnnotate)wrapper).AnnotationInsert(start, end, format); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_annotation_is_item_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation annotation); - public static Efl.Eo.FunctionWrapper efl_text_annotation_is_item_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_annotation_is_item"); - private static bool annotation_is_item(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation) - { - Eina.Log.Debug("function efl_text_annotation_is_item was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextAnnotate)wrapper).AnnotationIsItem( annotation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_annotation_is_item_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), annotation); + else + { + return efl_text_annotation_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end, format); + } } - } - private static efl_text_annotation_is_item_delegate efl_text_annotation_is_item_static_delegate; + private static efl_text_annotation_insert_delegate efl_text_annotation_insert_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_annotation_del_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_annotation_del_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation annotation); + + public static Efl.Eo.FunctionWrapper efl_text_annotation_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_annotation_del"); + + private static bool annotation_del(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation) + { + Eina.Log.Debug("function efl_text_annotation_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextAnnotate)wrapper).DelAnnotation(annotation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_item_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation an, out int x, out int y, out int w, out int h); + return _ret_var; + } + else + { + return efl_text_annotation_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), annotation); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_item_geometry_get_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation an, out int x, out int y, out int w, out int h); - public static Efl.Eo.FunctionWrapper efl_text_item_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_item_geometry_get"); - private static bool item_geometry_get(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation an, out int x, out int y, out int w, out int h) - { - Eina.Log.Debug("function efl_text_item_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); w = default(int); h = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((ITextAnnotate)wrapper).GetItemGeometry( an, out x, out y, out w, out h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_annotation_del_delegate efl_text_annotation_del_static_delegate; + + + private delegate void efl_text_annotation_positions_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + + + public delegate void efl_text_annotation_positions_get_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation annotation, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + + public static Efl.Eo.FunctionWrapper efl_text_annotation_positions_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_annotation_positions_get"); + + private static void annotation_positions_get(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation, Efl.TextCursorCursor start, Efl.TextCursorCursor end) + { + Eina.Log.Debug("function efl_text_annotation_positions_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextAnnotate)wrapper).GetAnnotationPositions(annotation, start, end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_annotation_positions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), annotation, start, end); } - return _ret_var; - } else { - return efl_text_item_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), an, out x, out y, out w, out h); } - } - private static efl_text_item_geometry_get_delegate efl_text_item_geometry_get_static_delegate; + private static efl_text_annotation_positions_get_delegate efl_text_annotation_positions_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_annotation_is_item_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_annotation_is_item_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation annotation); + + public static Efl.Eo.FunctionWrapper efl_text_annotation_is_item_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_annotation_is_item"); + + private static bool annotation_is_item(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation annotation) + { + Eina.Log.Debug("function efl_text_annotation_is_item was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextAnnotate)wrapper).AnnotationIsItem(annotation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.TextAnnotateAnnotation efl_text_cursor_item_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); + return _ret_var; + } + else + { + return efl_text_annotation_is_item_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), annotation); + } + } + + private static efl_text_annotation_is_item_delegate efl_text_annotation_is_item_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_item_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation an, out int x, out int y, out int w, out int h); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_item_geometry_get_api_delegate(System.IntPtr obj, Efl.TextAnnotateAnnotation an, out int x, out int y, out int w, out int h); + + public static Efl.Eo.FunctionWrapper efl_text_item_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_item_geometry_get"); + + private static bool item_geometry_get(System.IntPtr obj, System.IntPtr pd, Efl.TextAnnotateAnnotation an, out int x, out int y, out int w, out int h) + { + Eina.Log.Debug("function efl_text_item_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); w = default(int); h = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((ITextAnnotate)wrapper).GetItemGeometry(an, out x, out y, out w, out h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Efl.TextAnnotateAnnotation efl_text_cursor_item_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); - public static Efl.Eo.FunctionWrapper efl_text_cursor_item_insert_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_item_insert"); - private static Efl.TextAnnotateAnnotation cursor_item_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String item, System.String format) - { - Eina.Log.Debug("function efl_text_cursor_item_insert was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextAnnotateAnnotation _ret_var = default(Efl.TextAnnotateAnnotation); - try { - _ret_var = ((ITextAnnotate)wrapper).CursorItemInsert( cur, item, format); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_text_item_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), an, out x, out y, out w, out h); + } + } + + private static efl_text_item_geometry_get_delegate efl_text_item_geometry_get_static_delegate; + + + private delegate Efl.TextAnnotateAnnotation efl_text_cursor_item_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); + + + public delegate Efl.TextAnnotateAnnotation efl_text_cursor_item_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String format); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_item_insert_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_item_insert"); + + private static Efl.TextAnnotateAnnotation cursor_item_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String item, System.String format) + { + Eina.Log.Debug("function efl_text_cursor_item_insert was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextAnnotateAnnotation _ret_var = default(Efl.TextAnnotateAnnotation); + try + { + _ret_var = ((ITextAnnotate)wrapper).CursorItemInsert(cur, item, format); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_cursor_item_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, item, format); + + } + else + { + return efl_text_cursor_item_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, item, format); + } } - } - private static efl_text_cursor_item_insert_delegate efl_text_cursor_item_insert_static_delegate; + + private static efl_text_cursor_item_insert_delegate efl_text_cursor_item_insert_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_cursor.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_cursor.eo.cs index 765d0b6..9830237 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_cursor.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_cursor.eo.cs @@ -3,30 +3,31 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Cursor API -[ITextCursorNativeInherit] +[Efl.ITextCursorConcrete.NativeMethods] public interface ITextCursor : Efl.Eo.IWrapper, IDisposable { /// The object's main cursor. /// Cursor type /// Text cursor object -Efl.TextCursorCursor GetTextCursor( Efl.TextCursorGetType get_type); +Efl.TextCursorCursor GetTextCursor(Efl.TextCursorGetType get_type); /// Cursor position /// Cursor object /// Cursor position -int GetCursorPosition( Efl.TextCursorCursor cur); +int GetCursorPosition(Efl.TextCursorCursor cur); /// Cursor position /// Cursor object /// Cursor position -/// -void SetCursorPosition( Efl.TextCursorCursor cur, int position); +void SetCursorPosition(Efl.TextCursorCursor cur, int position); /// The content of the cursor (the character under the cursor) /// Cursor object /// The unicode codepoint of the character -Eina.Unicode GetCursorContent( Efl.TextCursorCursor cur); +Eina.Unicode GetCursorContent(Efl.TextCursorCursor cur); /// Returns the geometry of two cursors ("split cursor"), if logical cursor is between LTR/RTL text, also considering paragraph direction. Upper cursor is shown for the text of the same direction as paragraph, lower cursor - for opposite. /// Split cursor geometry is valid only in '|' cursor mode. In this case true is returned and cx2, cy2, cw2, ch2 are set. /// Cursor object @@ -40,111 +41,91 @@ Eina.Unicode GetCursorContent( Efl.TextCursorCursor cur); /// The width of the lower cursor /// The height of the lower cursor /// true if split cursor, false otherwise. -bool GetCursorGeometry( Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); +bool GetCursorGeometry(Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); /// Create new cursor /// Cursor object Efl.TextCursorCursor NewCursor(); /// Free existing cursor /// Cursor object -/// -void CursorFree( Efl.TextCursorCursor cur); +void CursorFree(Efl.TextCursorCursor cur); /// Check if two cursors are equal /// Cursor 1 object /// Cursor 2 object /// true if cursors are equal, false otherwise -bool CursorEqual( Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); +bool CursorEqual(Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); /// Compare two cursors /// Cursor 1 object /// Cursor 2 object /// Difference between cursors -int CursorCompare( Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); +int CursorCompare(Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); /// Copy existing cursor /// Destination cursor /// Source cursor -/// -void CursorCopy( Efl.TextCursorCursor dst, Efl.TextCursorCursor src); +void CursorCopy(Efl.TextCursorCursor dst, Efl.TextCursorCursor src); /// Advances to the next character /// Cursor object -/// -void CursorCharNext( Efl.TextCursorCursor cur); +void CursorCharNext(Efl.TextCursorCursor cur); /// Advances to the previous character /// Cursor object -/// -void CursorCharPrev( Efl.TextCursorCursor cur); +void CursorCharPrev(Efl.TextCursorCursor cur); /// Advances to the next grapheme cluster /// Cursor object -/// -void CursorClusterNext( Efl.TextCursorCursor cur); +void CursorClusterNext(Efl.TextCursorCursor cur); /// Advances to the previous grapheme cluster /// Cursor object -/// -void CursorClusterPrev( Efl.TextCursorCursor cur); +void CursorClusterPrev(Efl.TextCursorCursor cur); /// Advances to the first character in this paragraph /// Cursor object -/// -void CursorParagraphCharFirst( Efl.TextCursorCursor cur); +void CursorParagraphCharFirst(Efl.TextCursorCursor cur); /// Advances to the last character in this paragraph /// Cursor object -/// -void CursorParagraphCharLast( Efl.TextCursorCursor cur); +void CursorParagraphCharLast(Efl.TextCursorCursor cur); /// Advance to current word start /// Cursor object -/// -void CursorWordStart( Efl.TextCursorCursor cur); +void CursorWordStart(Efl.TextCursorCursor cur); /// Advance to current word end /// Cursor object -/// -void CursorWordEnd( Efl.TextCursorCursor cur); +void CursorWordEnd(Efl.TextCursorCursor cur); /// Advance to current line first character /// Cursor object -/// -void CursorLineCharFirst( Efl.TextCursorCursor cur); +void CursorLineCharFirst(Efl.TextCursorCursor cur); /// Advance to current line last character /// Cursor object -/// -void CursorLineCharLast( Efl.TextCursorCursor cur); +void CursorLineCharLast(Efl.TextCursorCursor cur); /// Advance to current paragraph first character /// Cursor object -/// -void CursorParagraphFirst( Efl.TextCursorCursor cur); +void CursorParagraphFirst(Efl.TextCursorCursor cur); /// Advance to current paragraph last character /// Cursor object -/// -void CursorParagraphLast( Efl.TextCursorCursor cur); +void CursorParagraphLast(Efl.TextCursorCursor cur); /// Advances to the start of the next text node /// Cursor object -/// -void CursorParagraphNext( Efl.TextCursorCursor cur); +void CursorParagraphNext(Efl.TextCursorCursor cur); /// Advances to the end of the previous text node /// Cursor object -/// -void CursorParagraphPrev( Efl.TextCursorCursor cur); +void CursorParagraphPrev(Efl.TextCursorCursor cur); /// Jump the cursor by the given number of lines /// Cursor object /// Number of lines -/// -void CursorLineJumpBy( Efl.TextCursorCursor cur, int by); +void CursorLineJumpBy(Efl.TextCursorCursor cur, int by); /// Set cursor coordinates /// Cursor object /// X coord to set by. /// Y coord to set by. -/// -void SetCursorCoord( Efl.TextCursorCursor cur, int x, int y); +void SetCursorCoord(Efl.TextCursorCursor cur, int x, int y); /// Set cursor coordinates according to grapheme clusters. It does not allow to put a cursor to the middle of a grapheme cluster. /// Cursor object /// X coord to set by. /// Y coord to set by. -/// -void SetCursorClusterCoord( Efl.TextCursorCursor cur, int x, int y); +void SetCursorClusterCoord(Efl.TextCursorCursor cur, int x, int y); /// Adds text to the current cursor position and set the cursor to *after* the start of the text just added. /// Cursor object /// Text to append (UTF-8 format). /// Length of the appended text. -int CursorTextInsert( Efl.TextCursorCursor cur, System.String text); +int CursorTextInsert(Efl.TextCursorCursor cur, System.String text); /// Deletes a single character from position pointed by given cursor. /// Cursor object -/// -void CursorCharDelete( Efl.TextCursorCursor cur); +void CursorCharDelete(Efl.TextCursorCursor cur); } /// Cursor API sealed public class ITextCursorConcrete : @@ -153,97 +134,131 @@ ITextCursor { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextCursorConcrete)) - return Efl.ITextCursorNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextCursorConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_text_cursor_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextCursorConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextCursorConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// The object's main cursor. /// Cursor type /// Text cursor object - public Efl.TextCursorCursor GetTextCursor( Efl.TextCursorGetType get_type) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_get_ptr.Value.Delegate(this.NativeHandle, get_type); + public Efl.TextCursorCursor GetTextCursor(Efl.TextCursorGetType get_type) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_get_ptr.Value.Delegate(this.NativeHandle,get_type); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Cursor position /// Cursor object /// Cursor position - public int GetCursorPosition( Efl.TextCursorCursor cur) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_position_get_ptr.Value.Delegate(this.NativeHandle, cur); + public int GetCursorPosition(Efl.TextCursorCursor cur) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_position_get_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Cursor position /// Cursor object /// Cursor position - /// - public void SetCursorPosition( Efl.TextCursorCursor cur, int position) { - Efl.ITextCursorNativeInherit.efl_text_cursor_position_set_ptr.Value.Delegate(this.NativeHandle, cur, position); + public void SetCursorPosition(Efl.TextCursorCursor cur, int position) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_position_set_ptr.Value.Delegate(this.NativeHandle,cur, position); Eina.Error.RaiseIfUnhandledException(); } /// The content of the cursor (the character under the cursor) /// Cursor object /// The unicode codepoint of the character - public Eina.Unicode GetCursorContent( Efl.TextCursorCursor cur) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_content_get_ptr.Value.Delegate(this.NativeHandle, cur); + public Eina.Unicode GetCursorContent(Efl.TextCursorCursor cur) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_content_get_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -260,31 +275,30 @@ ITextCursor /// The width of the lower cursor /// The height of the lower cursor /// true if split cursor, false otherwise. - public bool GetCursorGeometry( Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_geometry_get_ptr.Value.Delegate(this.NativeHandle, cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); + public bool GetCursorGeometry(Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_geometry_get_ptr.Value.Delegate(this.NativeHandle,cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Create new cursor /// Cursor object public Efl.TextCursorCursor NewCursor() { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_new_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_new_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Free existing cursor /// Cursor object - /// - public void CursorFree( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_free_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorFree(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_free_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Check if two cursors are equal /// Cursor 1 object /// Cursor 2 object /// true if cursors are equal, false otherwise - public bool CursorEqual( Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_equal_ptr.Value.Delegate(this.NativeHandle, cur1, cur2); + public bool CursorEqual(Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_equal_ptr.Value.Delegate(this.NativeHandle,cur1, cur2); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -292,1003 +306,1488 @@ ITextCursor /// Cursor 1 object /// Cursor 2 object /// Difference between cursors - public int CursorCompare( Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_compare_ptr.Value.Delegate(this.NativeHandle, cur1, cur2); + public int CursorCompare(Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_compare_ptr.Value.Delegate(this.NativeHandle,cur1, cur2); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Copy existing cursor /// Destination cursor /// Source cursor - /// - public void CursorCopy( Efl.TextCursorCursor dst, Efl.TextCursorCursor src) { - Efl.ITextCursorNativeInherit.efl_text_cursor_copy_ptr.Value.Delegate(this.NativeHandle, dst, src); + public void CursorCopy(Efl.TextCursorCursor dst, Efl.TextCursorCursor src) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_copy_ptr.Value.Delegate(this.NativeHandle,dst, src); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the next character /// Cursor object - /// - public void CursorCharNext( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_char_next_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorCharNext(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_char_next_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the previous character /// Cursor object - /// - public void CursorCharPrev( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_char_prev_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorCharPrev(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_char_prev_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the next grapheme cluster /// Cursor object - /// - public void CursorClusterNext( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_cluster_next_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorClusterNext(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_cluster_next_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the previous grapheme cluster /// Cursor object - /// - public void CursorClusterPrev( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_cluster_prev_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorClusterPrev(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_cluster_prev_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the first character in this paragraph /// Cursor object - /// - public void CursorParagraphCharFirst( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_char_first_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphCharFirst(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_char_first_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the last character in this paragraph /// Cursor object - /// - public void CursorParagraphCharLast( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_char_last_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphCharLast(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_char_last_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current word start /// Cursor object - /// - public void CursorWordStart( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_word_start_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorWordStart(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_word_start_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current word end /// Cursor object - /// - public void CursorWordEnd( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_word_end_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorWordEnd(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_word_end_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current line first character /// Cursor object - /// - public void CursorLineCharFirst( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_line_char_first_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorLineCharFirst(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_line_char_first_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current line last character /// Cursor object - /// - public void CursorLineCharLast( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_line_char_last_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorLineCharLast(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_line_char_last_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current paragraph first character /// Cursor object - /// - public void CursorParagraphFirst( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_first_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphFirst(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_first_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current paragraph last character /// Cursor object - /// - public void CursorParagraphLast( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_last_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphLast(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_last_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the start of the next text node /// Cursor object - /// - public void CursorParagraphNext( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_next_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphNext(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_next_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the end of the previous text node /// Cursor object - /// - public void CursorParagraphPrev( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_prev_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphPrev(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_prev_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Jump the cursor by the given number of lines /// Cursor object /// Number of lines - /// - public void CursorLineJumpBy( Efl.TextCursorCursor cur, int by) { - Efl.ITextCursorNativeInherit.efl_text_cursor_line_jump_by_ptr.Value.Delegate(this.NativeHandle, cur, by); + public void CursorLineJumpBy(Efl.TextCursorCursor cur, int by) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_line_jump_by_ptr.Value.Delegate(this.NativeHandle,cur, by); Eina.Error.RaiseIfUnhandledException(); } /// Set cursor coordinates /// Cursor object /// X coord to set by. /// Y coord to set by. - /// - public void SetCursorCoord( Efl.TextCursorCursor cur, int x, int y) { - Efl.ITextCursorNativeInherit.efl_text_cursor_coord_set_ptr.Value.Delegate(this.NativeHandle, cur, x, y); + public void SetCursorCoord(Efl.TextCursorCursor cur, int x, int y) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_coord_set_ptr.Value.Delegate(this.NativeHandle,cur, x, y); Eina.Error.RaiseIfUnhandledException(); } /// Set cursor coordinates according to grapheme clusters. It does not allow to put a cursor to the middle of a grapheme cluster. /// Cursor object /// X coord to set by. /// Y coord to set by. - /// - public void SetCursorClusterCoord( Efl.TextCursorCursor cur, int x, int y) { - Efl.ITextCursorNativeInherit.efl_text_cursor_cluster_coord_set_ptr.Value.Delegate(this.NativeHandle, cur, x, y); + public void SetCursorClusterCoord(Efl.TextCursorCursor cur, int x, int y) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_cluster_coord_set_ptr.Value.Delegate(this.NativeHandle,cur, x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds text to the current cursor position and set the cursor to *after* the start of the text just added. /// Cursor object /// Text to append (UTF-8 format). /// Length of the appended text. - public int CursorTextInsert( Efl.TextCursorCursor cur, System.String text) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_text_insert_ptr.Value.Delegate(this.NativeHandle, cur, text); + public int CursorTextInsert(Efl.TextCursorCursor cur, System.String text) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_text_insert_ptr.Value.Delegate(this.NativeHandle,cur, text); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Deletes a single character from position pointed by given cursor. /// Cursor object - /// - public void CursorCharDelete( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_char_delete_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorCharDelete(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_char_delete_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.ITextCursorConcrete.efl_text_cursor_interface_get(); } -} -public class ITextCursorNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_text_cursor_get_static_delegate == null) - efl_text_cursor_get_static_delegate = new efl_text_cursor_get_delegate(text_cursor_get); - if (methods.FirstOrDefault(m => m.Name == "GetTextCursor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_get_static_delegate)}); - if (efl_text_cursor_position_get_static_delegate == null) - efl_text_cursor_position_get_static_delegate = new efl_text_cursor_position_get_delegate(cursor_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_get_static_delegate)}); - if (efl_text_cursor_position_set_static_delegate == null) - efl_text_cursor_position_set_static_delegate = new efl_text_cursor_position_set_delegate(cursor_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursorPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_set_static_delegate)}); - if (efl_text_cursor_content_get_static_delegate == null) - efl_text_cursor_content_get_static_delegate = new efl_text_cursor_content_get_delegate(cursor_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_content_get_static_delegate)}); - if (efl_text_cursor_geometry_get_static_delegate == null) - efl_text_cursor_geometry_get_static_delegate = new efl_text_cursor_geometry_get_delegate(cursor_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_geometry_get_static_delegate)}); - if (efl_text_cursor_new_static_delegate == null) - efl_text_cursor_new_static_delegate = new efl_text_cursor_new_delegate(cursor_new); - if (methods.FirstOrDefault(m => m.Name == "NewCursor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_new"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_new_static_delegate)}); - if (efl_text_cursor_free_static_delegate == null) - efl_text_cursor_free_static_delegate = new efl_text_cursor_free_delegate(cursor_free); - if (methods.FirstOrDefault(m => m.Name == "CursorFree") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_free"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_free_static_delegate)}); - if (efl_text_cursor_equal_static_delegate == null) - efl_text_cursor_equal_static_delegate = new efl_text_cursor_equal_delegate(cursor_equal); - if (methods.FirstOrDefault(m => m.Name == "CursorEqual") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_equal"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_equal_static_delegate)}); - if (efl_text_cursor_compare_static_delegate == null) - efl_text_cursor_compare_static_delegate = new efl_text_cursor_compare_delegate(cursor_compare); - if (methods.FirstOrDefault(m => m.Name == "CursorCompare") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_compare"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_compare_static_delegate)}); - if (efl_text_cursor_copy_static_delegate == null) - efl_text_cursor_copy_static_delegate = new efl_text_cursor_copy_delegate(cursor_copy); - if (methods.FirstOrDefault(m => m.Name == "CursorCopy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_copy_static_delegate)}); - if (efl_text_cursor_char_next_static_delegate == null) - efl_text_cursor_char_next_static_delegate = new efl_text_cursor_char_next_delegate(cursor_char_next); - if (methods.FirstOrDefault(m => m.Name == "CursorCharNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_char_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_next_static_delegate)}); - if (efl_text_cursor_char_prev_static_delegate == null) - efl_text_cursor_char_prev_static_delegate = new efl_text_cursor_char_prev_delegate(cursor_char_prev); - if (methods.FirstOrDefault(m => m.Name == "CursorCharPrev") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_char_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_prev_static_delegate)}); - if (efl_text_cursor_cluster_next_static_delegate == null) - efl_text_cursor_cluster_next_static_delegate = new efl_text_cursor_cluster_next_delegate(cursor_cluster_next); - if (methods.FirstOrDefault(m => m.Name == "CursorClusterNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_cluster_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_next_static_delegate)}); - if (efl_text_cursor_cluster_prev_static_delegate == null) - efl_text_cursor_cluster_prev_static_delegate = new efl_text_cursor_cluster_prev_delegate(cursor_cluster_prev); - if (methods.FirstOrDefault(m => m.Name == "CursorClusterPrev") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_cluster_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_prev_static_delegate)}); - if (efl_text_cursor_paragraph_char_first_static_delegate == null) - efl_text_cursor_paragraph_char_first_static_delegate = new efl_text_cursor_paragraph_char_first_delegate(cursor_paragraph_char_first); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharFirst") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_first_static_delegate)}); - if (efl_text_cursor_paragraph_char_last_static_delegate == null) - efl_text_cursor_paragraph_char_last_static_delegate = new efl_text_cursor_paragraph_char_last_delegate(cursor_paragraph_char_last); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharLast") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_last_static_delegate)}); - if (efl_text_cursor_word_start_static_delegate == null) - efl_text_cursor_word_start_static_delegate = new efl_text_cursor_word_start_delegate(cursor_word_start); - if (methods.FirstOrDefault(m => m.Name == "CursorWordStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_word_start"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_start_static_delegate)}); - if (efl_text_cursor_word_end_static_delegate == null) - efl_text_cursor_word_end_static_delegate = new efl_text_cursor_word_end_delegate(cursor_word_end); - if (methods.FirstOrDefault(m => m.Name == "CursorWordEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_word_end"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_end_static_delegate)}); - if (efl_text_cursor_line_char_first_static_delegate == null) - efl_text_cursor_line_char_first_static_delegate = new efl_text_cursor_line_char_first_delegate(cursor_line_char_first); - if (methods.FirstOrDefault(m => m.Name == "CursorLineCharFirst") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_line_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_first_static_delegate)}); - if (efl_text_cursor_line_char_last_static_delegate == null) - efl_text_cursor_line_char_last_static_delegate = new efl_text_cursor_line_char_last_delegate(cursor_line_char_last); - if (methods.FirstOrDefault(m => m.Name == "CursorLineCharLast") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_line_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_last_static_delegate)}); - if (efl_text_cursor_paragraph_first_static_delegate == null) - efl_text_cursor_paragraph_first_static_delegate = new efl_text_cursor_paragraph_first_delegate(cursor_paragraph_first); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphFirst") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_first_static_delegate)}); - if (efl_text_cursor_paragraph_last_static_delegate == null) - efl_text_cursor_paragraph_last_static_delegate = new efl_text_cursor_paragraph_last_delegate(cursor_paragraph_last); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphLast") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_last_static_delegate)}); - if (efl_text_cursor_paragraph_next_static_delegate == null) - efl_text_cursor_paragraph_next_static_delegate = new efl_text_cursor_paragraph_next_delegate(cursor_paragraph_next); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_next_static_delegate)}); - if (efl_text_cursor_paragraph_prev_static_delegate == null) - efl_text_cursor_paragraph_prev_static_delegate = new efl_text_cursor_paragraph_prev_delegate(cursor_paragraph_prev); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphPrev") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_prev_static_delegate)}); - if (efl_text_cursor_line_jump_by_static_delegate == null) - efl_text_cursor_line_jump_by_static_delegate = new efl_text_cursor_line_jump_by_delegate(cursor_line_jump_by); - if (methods.FirstOrDefault(m => m.Name == "CursorLineJumpBy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_line_jump_by"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_jump_by_static_delegate)}); - if (efl_text_cursor_coord_set_static_delegate == null) - efl_text_cursor_coord_set_static_delegate = new efl_text_cursor_coord_set_delegate(cursor_coord_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursorCoord") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_coord_set_static_delegate)}); - if (efl_text_cursor_cluster_coord_set_static_delegate == null) - efl_text_cursor_cluster_coord_set_static_delegate = new efl_text_cursor_cluster_coord_set_delegate(cursor_cluster_coord_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursorClusterCoord") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_cluster_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_coord_set_static_delegate)}); - if (efl_text_cursor_text_insert_static_delegate == null) - efl_text_cursor_text_insert_static_delegate = new efl_text_cursor_text_insert_delegate(cursor_text_insert); - if (methods.FirstOrDefault(m => m.Name == "CursorTextInsert") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_text_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_text_insert_static_delegate)}); - if (efl_text_cursor_char_delete_static_delegate == null) - efl_text_cursor_char_delete_static_delegate = new efl_text_cursor_char_delete_delegate(cursor_char_delete); - if (methods.FirstOrDefault(m => m.Name == "CursorCharDelete") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_char_delete"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_delete_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.ITextCursorConcrete.efl_text_cursor_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.ITextCursorConcrete.efl_text_cursor_interface_get(); - } - - - private delegate Efl.TextCursorCursor efl_text_cursor_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type); + 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_text_cursor_get_static_delegate == null) + { + efl_text_cursor_get_static_delegate = new efl_text_cursor_get_delegate(text_cursor_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTextCursor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_get_static_delegate) }); + } - public delegate Efl.TextCursorCursor efl_text_cursor_get_api_delegate(System.IntPtr obj, Efl.TextCursorGetType get_type); - public static Efl.Eo.FunctionWrapper efl_text_cursor_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_get"); - private static Efl.TextCursorCursor text_cursor_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type) - { - Eina.Log.Debug("function efl_text_cursor_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); - try { - _ret_var = ((ITextCursor)wrapper).GetTextCursor( get_type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_position_get_static_delegate == null) + { + efl_text_cursor_position_get_static_delegate = new efl_text_cursor_position_get_delegate(cursor_position_get); } - return _ret_var; - } else { - return efl_text_cursor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), get_type); - } - } - private static efl_text_cursor_get_delegate efl_text_cursor_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetCursorPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_get_static_delegate) }); + } - private delegate int efl_text_cursor_position_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_position_set_static_delegate == null) + { + efl_text_cursor_position_set_static_delegate = new efl_text_cursor_position_set_delegate(cursor_position_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCursorPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_set_static_delegate) }); + } - public delegate int efl_text_cursor_position_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_position_get"); - private static int cursor_position_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextCursor)wrapper).GetCursorPosition( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_content_get_static_delegate == null) + { + efl_text_cursor_content_get_static_delegate = new efl_text_cursor_content_get_delegate(cursor_content_get); } - return _ret_var; - } else { - return efl_text_cursor_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_position_get_delegate efl_text_cursor_position_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetCursorContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_content_get_static_delegate) }); + } - private delegate void efl_text_cursor_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position); + if (efl_text_cursor_geometry_get_static_delegate == null) + { + efl_text_cursor_geometry_get_static_delegate = new efl_text_cursor_geometry_get_delegate(cursor_geometry_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCursorGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_geometry_get_static_delegate) }); + } - public delegate void efl_text_cursor_position_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int position); - public static Efl.Eo.FunctionWrapper efl_text_cursor_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_position_set"); - private static void cursor_position_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position) - { - Eina.Log.Debug("function efl_text_cursor_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).SetCursorPosition( cur, position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, position); - } - } - private static efl_text_cursor_position_set_delegate efl_text_cursor_position_set_static_delegate; + if (efl_text_cursor_new_static_delegate == null) + { + efl_text_cursor_new_static_delegate = new efl_text_cursor_new_delegate(cursor_new); + } + if (methods.FirstOrDefault(m => m.Name == "NewCursor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_new"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_new_static_delegate) }); + } - private delegate Eina.Unicode efl_text_cursor_content_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_free_static_delegate == null) + { + efl_text_cursor_free_static_delegate = new efl_text_cursor_free_delegate(cursor_free); + } + if (methods.FirstOrDefault(m => m.Name == "CursorFree") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_free"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_free_static_delegate) }); + } - public delegate Eina.Unicode efl_text_cursor_content_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_content_get"); - private static Eina.Unicode cursor_content_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Unicode _ret_var = default(Eina.Unicode); - try { - _ret_var = ((ITextCursor)wrapper).GetCursorContent( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_equal_static_delegate == null) + { + efl_text_cursor_equal_static_delegate = new efl_text_cursor_equal_delegate(cursor_equal); } - return _ret_var; - } else { - return efl_text_cursor_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_content_get_delegate efl_text_cursor_content_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorEqual") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_equal"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_equal_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_cursor_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); + if (efl_text_cursor_compare_static_delegate == null) + { + efl_text_cursor_compare_static_delegate = new efl_text_cursor_compare_delegate(cursor_compare); + } + if (methods.FirstOrDefault(m => m.Name == "CursorCompare") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_compare"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_compare_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_cursor_geometry_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); - public static Efl.Eo.FunctionWrapper efl_text_cursor_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_geometry_get"); - private static bool cursor_geometry_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) - { - Eina.Log.Debug("function efl_text_cursor_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - cx = default(int); cy = default(int); cw = default(int); ch = default(int); cx2 = default(int); cy2 = default(int); cw2 = default(int); ch2 = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((ITextCursor)wrapper).GetCursorGeometry( cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_copy_static_delegate == null) + { + efl_text_cursor_copy_static_delegate = new efl_text_cursor_copy_delegate(cursor_copy); } - return _ret_var; - } else { - return efl_text_cursor_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); - } - } - private static efl_text_cursor_geometry_get_delegate efl_text_cursor_geometry_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorCopy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_copy_static_delegate) }); + } - private delegate Efl.TextCursorCursor efl_text_cursor_new_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_cursor_char_next_static_delegate == null) + { + efl_text_cursor_char_next_static_delegate = new efl_text_cursor_char_next_delegate(cursor_char_next); + } + if (methods.FirstOrDefault(m => m.Name == "CursorCharNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_char_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_next_static_delegate) }); + } - public delegate Efl.TextCursorCursor efl_text_cursor_new_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_cursor_new_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_new"); - private static Efl.TextCursorCursor cursor_new(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_cursor_new was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); - try { - _ret_var = ((ITextCursor)wrapper).NewCursor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_char_prev_static_delegate == null) + { + efl_text_cursor_char_prev_static_delegate = new efl_text_cursor_char_prev_delegate(cursor_char_prev); } - return _ret_var; - } else { - return efl_text_cursor_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_cursor_new_delegate efl_text_cursor_new_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorCharPrev") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_char_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_prev_static_delegate) }); + } - private delegate void efl_text_cursor_free_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_cluster_next_static_delegate == null) + { + efl_text_cursor_cluster_next_static_delegate = new efl_text_cursor_cluster_next_delegate(cursor_cluster_next); + } + if (methods.FirstOrDefault(m => m.Name == "CursorClusterNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_cluster_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_next_static_delegate) }); + } - public delegate void efl_text_cursor_free_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_free_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_free"); - private static void cursor_free(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_free was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorFree( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_free_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_free_delegate efl_text_cursor_free_static_delegate; + if (efl_text_cursor_cluster_prev_static_delegate == null) + { + efl_text_cursor_cluster_prev_static_delegate = new efl_text_cursor_cluster_prev_delegate(cursor_cluster_prev); + } + if (methods.FirstOrDefault(m => m.Name == "CursorClusterPrev") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_cluster_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_prev_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_cursor_equal_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + if (efl_text_cursor_paragraph_char_first_static_delegate == null) + { + efl_text_cursor_paragraph_char_first_static_delegate = new efl_text_cursor_paragraph_char_first_delegate(cursor_paragraph_char_first); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharFirst") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_first_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_cursor_equal_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); - public static Efl.Eo.FunctionWrapper efl_text_cursor_equal_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_equal"); - private static bool cursor_equal(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) - { - Eina.Log.Debug("function efl_text_cursor_equal was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextCursor)wrapper).CursorEqual( cur1, cur2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_paragraph_char_last_static_delegate == null) + { + efl_text_cursor_paragraph_char_last_static_delegate = new efl_text_cursor_paragraph_char_last_delegate(cursor_paragraph_char_last); } - return _ret_var; - } else { - return efl_text_cursor_equal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); - } - } - private static efl_text_cursor_equal_delegate efl_text_cursor_equal_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharLast") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_last_static_delegate) }); + } - private delegate int efl_text_cursor_compare_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + if (efl_text_cursor_word_start_static_delegate == null) + { + efl_text_cursor_word_start_static_delegate = new efl_text_cursor_word_start_delegate(cursor_word_start); + } + if (methods.FirstOrDefault(m => m.Name == "CursorWordStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_word_start"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_start_static_delegate) }); + } - public delegate int efl_text_cursor_compare_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); - public static Efl.Eo.FunctionWrapper efl_text_cursor_compare_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_compare"); - private static int cursor_compare(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) - { - Eina.Log.Debug("function efl_text_cursor_compare was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextCursor)wrapper).CursorCompare( cur1, cur2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_word_end_static_delegate == null) + { + efl_text_cursor_word_end_static_delegate = new efl_text_cursor_word_end_delegate(cursor_word_end); } - return _ret_var; - } else { - return efl_text_cursor_compare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); - } - } - private static efl_text_cursor_compare_delegate efl_text_cursor_compare_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorWordEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_word_end"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_end_static_delegate) }); + } - private delegate void efl_text_cursor_copy_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); + if (efl_text_cursor_line_char_first_static_delegate == null) + { + efl_text_cursor_line_char_first_static_delegate = new efl_text_cursor_line_char_first_delegate(cursor_line_char_first); + } + if (methods.FirstOrDefault(m => m.Name == "CursorLineCharFirst") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_line_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_first_static_delegate) }); + } - public delegate void efl_text_cursor_copy_api_delegate(System.IntPtr obj, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); - public static Efl.Eo.FunctionWrapper efl_text_cursor_copy_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_copy"); - private static void cursor_copy(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src) - { - Eina.Log.Debug("function efl_text_cursor_copy was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorCopy( dst, src); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dst, src); - } - } - private static efl_text_cursor_copy_delegate efl_text_cursor_copy_static_delegate; + if (efl_text_cursor_line_char_last_static_delegate == null) + { + efl_text_cursor_line_char_last_static_delegate = new efl_text_cursor_line_char_last_delegate(cursor_line_char_last); + } + if (methods.FirstOrDefault(m => m.Name == "CursorLineCharLast") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_line_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_last_static_delegate) }); + } - private delegate void efl_text_cursor_char_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_paragraph_first_static_delegate == null) + { + efl_text_cursor_paragraph_first_static_delegate = new efl_text_cursor_paragraph_first_delegate(cursor_paragraph_first); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphFirst") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_first_static_delegate) }); + } - public delegate void efl_text_cursor_char_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_char_next_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_char_next"); - private static void cursor_char_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_char_next was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorCharNext( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_char_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_char_next_delegate efl_text_cursor_char_next_static_delegate; + if (efl_text_cursor_paragraph_last_static_delegate == null) + { + efl_text_cursor_paragraph_last_static_delegate = new efl_text_cursor_paragraph_last_delegate(cursor_paragraph_last); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphLast") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_last_static_delegate) }); + } - private delegate void efl_text_cursor_char_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_paragraph_next_static_delegate == null) + { + efl_text_cursor_paragraph_next_static_delegate = new efl_text_cursor_paragraph_next_delegate(cursor_paragraph_next); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_next_static_delegate) }); + } - public delegate void efl_text_cursor_char_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_char_prev_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_char_prev"); - private static void cursor_char_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_char_prev was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorCharPrev( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_char_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_char_prev_delegate efl_text_cursor_char_prev_static_delegate; + if (efl_text_cursor_paragraph_prev_static_delegate == null) + { + efl_text_cursor_paragraph_prev_static_delegate = new efl_text_cursor_paragraph_prev_delegate(cursor_paragraph_prev); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphPrev") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_prev_static_delegate) }); + } - private delegate void efl_text_cursor_cluster_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_line_jump_by_static_delegate == null) + { + efl_text_cursor_line_jump_by_static_delegate = new efl_text_cursor_line_jump_by_delegate(cursor_line_jump_by); + } + if (methods.FirstOrDefault(m => m.Name == "CursorLineJumpBy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_line_jump_by"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_jump_by_static_delegate) }); + } - public delegate void efl_text_cursor_cluster_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_next_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_cluster_next"); - private static void cursor_cluster_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_cluster_next was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorClusterNext( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_cluster_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_cluster_next_delegate efl_text_cursor_cluster_next_static_delegate; + if (efl_text_cursor_coord_set_static_delegate == null) + { + efl_text_cursor_coord_set_static_delegate = new efl_text_cursor_coord_set_delegate(cursor_coord_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCursorCoord") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_coord_set_static_delegate) }); + } - private delegate void efl_text_cursor_cluster_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_cluster_coord_set_static_delegate == null) + { + efl_text_cursor_cluster_coord_set_static_delegate = new efl_text_cursor_cluster_coord_set_delegate(cursor_cluster_coord_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCursorClusterCoord") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_cluster_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_coord_set_static_delegate) }); + } - public delegate void efl_text_cursor_cluster_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_prev_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_cluster_prev"); - private static void cursor_cluster_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_cluster_prev was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorClusterPrev( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_cluster_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_cluster_prev_delegate efl_text_cursor_cluster_prev_static_delegate; + if (efl_text_cursor_text_insert_static_delegate == null) + { + efl_text_cursor_text_insert_static_delegate = new efl_text_cursor_text_insert_delegate(cursor_text_insert); + } + if (methods.FirstOrDefault(m => m.Name == "CursorTextInsert") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_text_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_text_insert_static_delegate) }); + } - private delegate void efl_text_cursor_paragraph_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_char_delete_static_delegate == null) + { + efl_text_cursor_char_delete_static_delegate = new efl_text_cursor_char_delete_delegate(cursor_char_delete); + } + if (methods.FirstOrDefault(m => m.Name == "CursorCharDelete") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_char_delete"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_delete_static_delegate) }); + } - public delegate void efl_text_cursor_paragraph_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_first_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_char_first"); - private static void cursor_paragraph_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_char_first was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorParagraphCharFirst( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + return descs; } - } - private static efl_text_cursor_paragraph_char_first_delegate efl_text_cursor_paragraph_char_first_static_delegate; - - - private delegate void efl_text_cursor_paragraph_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); - - - public delegate void efl_text_cursor_paragraph_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_last_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_char_last"); - private static void cursor_paragraph_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_char_last was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorParagraphCharLast( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.ITextCursorConcrete.efl_text_cursor_interface_get(); } - } - private static efl_text_cursor_paragraph_char_last_delegate efl_text_cursor_paragraph_char_last_static_delegate; - - private delegate void efl_text_cursor_word_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.TextCursorCursor efl_text_cursor_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type); + + + public delegate Efl.TextCursorCursor efl_text_cursor_get_api_delegate(System.IntPtr obj, Efl.TextCursorGetType get_type); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_get"); + + private static Efl.TextCursorCursor text_cursor_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type) + { + Eina.Log.Debug("function efl_text_cursor_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); + try + { + _ret_var = ((ITextCursor)wrapper).GetTextCursor(get_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_cursor_word_start_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_word_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_word_start"); - private static void cursor_word_start(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_word_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorWordStart( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_word_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), get_type); + } } - } - private static efl_text_cursor_word_start_delegate efl_text_cursor_word_start_static_delegate; - - private delegate void efl_text_cursor_word_end_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_get_delegate efl_text_cursor_get_static_delegate; + + + private delegate int efl_text_cursor_position_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate int efl_text_cursor_position_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_position_get"); + + private static int cursor_position_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextCursor)wrapper).GetCursorPosition(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_cursor_word_end_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_word_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_word_end"); - private static void cursor_word_end(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_word_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorWordEnd( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_word_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_cursor_word_end_delegate efl_text_cursor_word_end_static_delegate; + private static efl_text_cursor_position_get_delegate efl_text_cursor_position_get_static_delegate; + + + private delegate void efl_text_cursor_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position); + + + public delegate void efl_text_cursor_position_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int position); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_position_set"); + + private static void cursor_position_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position) + { + Eina.Log.Debug("function efl_text_cursor_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).SetCursorPosition(cur, position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, position); + } + } - private delegate void efl_text_cursor_line_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_position_set_delegate efl_text_cursor_position_set_static_delegate; + + + private delegate Eina.Unicode efl_text_cursor_content_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate Eina.Unicode efl_text_cursor_content_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_content_get"); + + private static Eina.Unicode cursor_content_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Unicode _ret_var = default(Eina.Unicode); + try + { + _ret_var = ((ITextCursor)wrapper).GetCursorContent(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_cursor_line_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_first_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_line_char_first"); - private static void cursor_line_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_line_char_first was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorLineCharFirst( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_line_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_cursor_line_char_first_delegate efl_text_cursor_line_char_first_static_delegate; - - private delegate void efl_text_cursor_line_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_content_get_delegate efl_text_cursor_content_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_cursor_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_cursor_geometry_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_geometry_get"); + + private static bool cursor_geometry_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) + { + Eina.Log.Debug("function efl_text_cursor_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + cx = default(int); cy = default(int); cw = default(int); ch = default(int); cx2 = default(int); cy2 = default(int); cw2 = default(int); ch2 = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((ITextCursor)wrapper).GetCursorGeometry(cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_cursor_line_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_last_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_line_char_last"); - private static void cursor_line_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_line_char_last was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorLineCharLast( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_line_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); + } } - } - private static efl_text_cursor_line_char_last_delegate efl_text_cursor_line_char_last_static_delegate; - - private delegate void efl_text_cursor_paragraph_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_geometry_get_delegate efl_text_cursor_geometry_get_static_delegate; + + + private delegate Efl.TextCursorCursor efl_text_cursor_new_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextCursorCursor efl_text_cursor_new_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_new_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_new"); + + private static Efl.TextCursorCursor cursor_new(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_cursor_new was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); + try + { + _ret_var = ((ITextCursor)wrapper).NewCursor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_cursor_paragraph_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_first_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_first"); - private static void cursor_paragraph_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_first was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorParagraphFirst( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_cursor_paragraph_first_delegate efl_text_cursor_paragraph_first_static_delegate; + private static efl_text_cursor_new_delegate efl_text_cursor_new_static_delegate; + + + private delegate void efl_text_cursor_free_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_free_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_free_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_free"); + + private static void cursor_free(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_free was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorFree(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_free_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_paragraph_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_free_delegate efl_text_cursor_free_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_cursor_equal_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_cursor_equal_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_equal_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_equal"); + + private static bool cursor_equal(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) + { + Eina.Log.Debug("function efl_text_cursor_equal was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextCursor)wrapper).CursorEqual(cur1, cur2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_cursor_paragraph_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_last_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_last"); - private static void cursor_paragraph_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_last was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorParagraphLast( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_equal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); + } } - } - private static efl_text_cursor_paragraph_last_delegate efl_text_cursor_paragraph_last_static_delegate; + private static efl_text_cursor_equal_delegate efl_text_cursor_equal_static_delegate; + + + private delegate int efl_text_cursor_compare_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + + public delegate int efl_text_cursor_compare_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_compare_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_compare"); + + private static int cursor_compare(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) + { + Eina.Log.Debug("function efl_text_cursor_compare was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextCursor)wrapper).CursorCompare(cur1, cur2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_cursor_paragraph_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + return _ret_var; + } + else + { + return efl_text_cursor_compare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); + } + } - public delegate void efl_text_cursor_paragraph_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_next_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_next"); - private static void cursor_paragraph_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_next was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorParagraphNext( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + private static efl_text_cursor_compare_delegate efl_text_cursor_compare_static_delegate; + + + private delegate void efl_text_cursor_copy_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); + + + public delegate void efl_text_cursor_copy_api_delegate(System.IntPtr obj, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_copy_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_copy"); + + private static void cursor_copy(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src) + { + Eina.Log.Debug("function efl_text_cursor_copy was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorCopy(dst, src); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dst, src); + } } - } - private static efl_text_cursor_paragraph_next_delegate efl_text_cursor_paragraph_next_static_delegate; + private static efl_text_cursor_copy_delegate efl_text_cursor_copy_static_delegate; + + + private delegate void efl_text_cursor_char_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_char_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_char_next_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_char_next"); + + private static void cursor_char_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_char_next was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorCharNext(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_char_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_paragraph_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_char_next_delegate efl_text_cursor_char_next_static_delegate; + + + private delegate void efl_text_cursor_char_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_char_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_char_prev_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_char_prev"); + + private static void cursor_char_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_char_prev was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorCharPrev(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_char_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_char_prev_delegate efl_text_cursor_char_prev_static_delegate; + + + private delegate void efl_text_cursor_cluster_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_cluster_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_next_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_cluster_next"); + + private static void cursor_cluster_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_cluster_next was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorClusterNext(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_cluster_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - public delegate void efl_text_cursor_paragraph_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_prev_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_prev"); - private static void cursor_paragraph_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_prev was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorParagraphPrev( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + private static efl_text_cursor_cluster_next_delegate efl_text_cursor_cluster_next_static_delegate; + + + private delegate void efl_text_cursor_cluster_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_cluster_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_prev_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_cluster_prev"); + + private static void cursor_cluster_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_cluster_prev was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorClusterPrev(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_cluster_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_cursor_paragraph_prev_delegate efl_text_cursor_paragraph_prev_static_delegate; + private static efl_text_cursor_cluster_prev_delegate efl_text_cursor_cluster_prev_static_delegate; + + + private delegate void efl_text_cursor_paragraph_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_first_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_char_first"); + + private static void cursor_paragraph_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_char_first was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorParagraphCharFirst(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_line_jump_by_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by); + private static efl_text_cursor_paragraph_char_first_delegate efl_text_cursor_paragraph_char_first_static_delegate; + + + private delegate void efl_text_cursor_paragraph_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_last_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_char_last"); + + private static void cursor_paragraph_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_char_last was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorParagraphCharLast(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_paragraph_char_last_delegate efl_text_cursor_paragraph_char_last_static_delegate; + + + private delegate void efl_text_cursor_word_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_word_start_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_word_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_word_start"); + + private static void cursor_word_start(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_word_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorWordStart(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_word_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - public delegate void efl_text_cursor_line_jump_by_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int by); - public static Efl.Eo.FunctionWrapper efl_text_cursor_line_jump_by_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_line_jump_by"); - private static void cursor_line_jump_by(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by) - { - Eina.Log.Debug("function efl_text_cursor_line_jump_by was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorLineJumpBy( cur, by); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_line_jump_by_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, by); + private static efl_text_cursor_word_start_delegate efl_text_cursor_word_start_static_delegate; + + + private delegate void efl_text_cursor_word_end_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_word_end_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_word_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_word_end"); + + private static void cursor_word_end(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_word_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorWordEnd(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_word_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_cursor_line_jump_by_delegate efl_text_cursor_line_jump_by_static_delegate; + private static efl_text_cursor_word_end_delegate efl_text_cursor_word_end_static_delegate; + + + private delegate void efl_text_cursor_line_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_line_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_first_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_line_char_first"); + + private static void cursor_line_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_line_char_first was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorLineCharFirst(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_line_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + private static efl_text_cursor_line_char_first_delegate efl_text_cursor_line_char_first_static_delegate; + + + private delegate void efl_text_cursor_line_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_line_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_last_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_line_char_last"); + + private static void cursor_line_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_line_char_last was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorLineCharLast(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_line_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_line_char_last_delegate efl_text_cursor_line_char_last_static_delegate; + + + private delegate void efl_text_cursor_paragraph_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_first_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_first"); + + private static void cursor_paragraph_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_first was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorParagraphFirst(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - public delegate void efl_text_cursor_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); - public static Efl.Eo.FunctionWrapper efl_text_cursor_coord_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_coord_set"); - private static void cursor_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) - { - Eina.Log.Debug("function efl_text_cursor_coord_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).SetCursorCoord( cur, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); + private static efl_text_cursor_paragraph_first_delegate efl_text_cursor_paragraph_first_static_delegate; + + + private delegate void efl_text_cursor_paragraph_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_last_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_last"); + + private static void cursor_paragraph_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_last was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorParagraphLast(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_cursor_coord_set_delegate efl_text_cursor_coord_set_static_delegate; + private static efl_text_cursor_paragraph_last_delegate efl_text_cursor_paragraph_last_static_delegate; + + + private delegate void efl_text_cursor_paragraph_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_next_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_next"); + + private static void cursor_paragraph_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_next was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorParagraphNext(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_cluster_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + private static efl_text_cursor_paragraph_next_delegate efl_text_cursor_paragraph_next_static_delegate; + + + private delegate void efl_text_cursor_paragraph_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_prev_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_prev"); + + private static void cursor_paragraph_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_prev was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorParagraphPrev(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_paragraph_prev_delegate efl_text_cursor_paragraph_prev_static_delegate; + + + private delegate void efl_text_cursor_line_jump_by_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by); + + + public delegate void efl_text_cursor_line_jump_by_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int by); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_line_jump_by_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_line_jump_by"); + + private static void cursor_line_jump_by(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by) + { + Eina.Log.Debug("function efl_text_cursor_line_jump_by was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorLineJumpBy(cur, by); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_line_jump_by_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, by); + } + } - public delegate void efl_text_cursor_cluster_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); - public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_coord_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_cluster_coord_set"); - private static void cursor_cluster_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) - { - Eina.Log.Debug("function efl_text_cursor_cluster_coord_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).SetCursorClusterCoord( cur, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_cluster_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); + private static efl_text_cursor_line_jump_by_delegate efl_text_cursor_line_jump_by_static_delegate; + + + private delegate void efl_text_cursor_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + + + public delegate void efl_text_cursor_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_coord_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_coord_set"); + + private static void cursor_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) + { + Eina.Log.Debug("function efl_text_cursor_coord_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).SetCursorCoord(cur, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); + } } - } - private static efl_text_cursor_cluster_coord_set_delegate efl_text_cursor_cluster_coord_set_static_delegate; + private static efl_text_cursor_coord_set_delegate efl_text_cursor_coord_set_static_delegate; + + + private delegate void efl_text_cursor_cluster_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + + + public delegate void efl_text_cursor_cluster_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_coord_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_cluster_coord_set"); + + private static void cursor_cluster_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) + { + Eina.Log.Debug("function efl_text_cursor_cluster_coord_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).SetCursorClusterCoord(cur, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_cluster_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); + } + } - private delegate int efl_text_cursor_text_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + private static efl_text_cursor_cluster_coord_set_delegate efl_text_cursor_cluster_coord_set_static_delegate; + + + private delegate int efl_text_cursor_text_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + + public delegate int efl_text_cursor_text_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_text_insert_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_text_insert"); + + private static int cursor_text_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String text) + { + Eina.Log.Debug("function efl_text_cursor_text_insert was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextCursor)wrapper).CursorTextInsert(cur, text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_text_cursor_text_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_cursor_text_insert_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_text_insert"); - private static int cursor_text_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String text) - { - Eina.Log.Debug("function efl_text_cursor_text_insert was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextCursor)wrapper).CursorTextInsert( cur, text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_cursor_text_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, text); + else + { + return efl_text_cursor_text_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, text); + } } - } - private static efl_text_cursor_text_insert_delegate efl_text_cursor_text_insert_static_delegate; + private static efl_text_cursor_text_insert_delegate efl_text_cursor_text_insert_static_delegate; + + + private delegate void efl_text_cursor_char_delete_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_char_delete_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_char_delete_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_char_delete"); + + private static void cursor_char_delete(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_char_delete was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextCursor)wrapper).CursorCharDelete(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_char_delete_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_char_delete_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_char_delete_delegate efl_text_cursor_char_delete_static_delegate; + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_text_cursor_char_delete_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_char_delete_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_char_delete"); - private static void cursor_char_delete(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_char_delete was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextCursor)wrapper).CursorCharDelete( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_char_delete_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_char_delete_delegate efl_text_cursor_char_delete_static_delegate; } -} -namespace Efl { +} +} + +namespace Efl { + /// All available cursor states public enum TextCursorGetType { @@ -1309,8 +1808,11 @@ User = 6, /// User extra cursor state UserExtra = 7, } -} -namespace Efl { + +} + +namespace Efl { + /// Text cursor types public enum TextCursorType { @@ -1319,4 +1821,6 @@ Before = 0, /// Cursor type under Under = 1, } -} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_font.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_font.eo.cs index a83d59b..37b7a9b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_font.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_font.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Font settings of the text -[ITextFontNativeInherit] +[Efl.ITextFontConcrete.NativeMethods] public interface ITextFont : Efl.Eo.IWrapper, IDisposable { @@ -16,16 +18,14 @@ public interface ITextFont : /// See also . /// The font family name or filename. /// The font size, in points. -/// -void GetFont( out System.String font, out Efl.Font.Size size); +void GetFont(out System.String font, out Efl.Font.Size size); /// Set the font family, filename and size for a given text object. /// This function allows the font name and size of a text object to be set. The font string has to follow fontconfig's convention for naming fonts, as it's the underlying library used to query system fonts by Evas (see the fc-list command's output, on your system, to get an idea). Alternatively, youe can use the full path to a font file. /// /// See also , . /// The font family name or filename. /// The font size, in points. -/// -void SetFont( System.String font, Efl.Font.Size size); +void SetFont(System.String font, Efl.Font.Size size); /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. @@ -35,8 +35,7 @@ System.String GetFontSource(); /// /// See also . /// The font file's path. -/// -void SetFontSource( System.String font_source); +void SetFontSource(System.String font_source); /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks @@ -44,8 +43,7 @@ System.String GetFontFallbacks(); /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks -/// -void SetFontFallbacks( System.String font_fallbacks); +void SetFontFallbacks(System.String font_fallbacks); /// Type of weight of the displayed font /// Default is . /// Font weight @@ -53,8 +51,7 @@ Efl.TextFontWeight GetFontWeight(); /// Type of weight of the displayed font /// Default is . /// Font weight -/// -void SetFontWeight( Efl.TextFontWeight font_weight); +void SetFontWeight(Efl.TextFontWeight font_weight); /// Type of slant of the displayed font /// Default is . /// Font slant @@ -62,8 +59,7 @@ Efl.TextFontSlant GetFontSlant(); /// Type of slant of the displayed font /// Default is . /// Font slant -/// -void SetFontSlant( Efl.TextFontSlant style); +void SetFontSlant(Efl.TextFontSlant style); /// Type of width of the displayed font /// Default is . /// Font width @@ -71,8 +67,7 @@ Efl.TextFontWidth GetFontWidth(); /// Type of width of the displayed font /// Default is . /// Font width -/// -void SetFontWidth( Efl.TextFontWidth width); +void SetFontWidth(Efl.TextFontWidth width); /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language @@ -80,8 +75,7 @@ System.String GetFontLang(); /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language -/// -void SetFontLang( System.String lang); +void SetFontLang(System.String lang); /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable @@ -89,8 +83,7 @@ Efl.TextFontBitmapScalable GetFontBitmapScalable(); /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable -/// -void SetFontBitmapScalable( Efl.TextFontBitmapScalable scalable); +void SetFontBitmapScalable(Efl.TextFontBitmapScalable scalable); /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. @@ -148,77 +141,111 @@ ITextFont { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextFontConcrete)) - return Efl.ITextFontNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextFontConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_text_font_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextFontConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextFontConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Retrieve the font family and size in use on a given text object. /// This function allows the font name and size of a text object to be queried. Remember that the font name string is still owned by Evas and should not have free() called on it by the caller of the function. /// /// See also . /// The font family name or filename. /// The font size, in points. - /// - public void GetFont( out System.String font, out Efl.Font.Size size) { - Efl.ITextFontNativeInherit.efl_text_font_get_ptr.Value.Delegate(this.NativeHandle, out font, out size); + public void GetFont(out System.String font, out Efl.Font.Size size) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_get_ptr.Value.Delegate(this.NativeHandle,out font, out size); Eina.Error.RaiseIfUnhandledException(); } /// Set the font family, filename and size for a given text object. @@ -227,16 +254,15 @@ ITextFont /// See also , . /// The font family name or filename. /// The font size, in points. - /// - public void SetFont( System.String font, Efl.Font.Size size) { - Efl.ITextFontNativeInherit.efl_text_font_set_ptr.Value.Delegate(this.NativeHandle, font, size); + public void SetFont(System.String font, Efl.Font.Size size) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_set_ptr.Value.Delegate(this.NativeHandle,font, size); Eina.Error.RaiseIfUnhandledException(); } /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. public System.String GetFontSource() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_source_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -245,105 +271,98 @@ ITextFont /// /// See also . /// The font file's path. - /// - public void SetFontSource( System.String font_source) { - Efl.ITextFontNativeInherit.efl_text_font_source_set_ptr.Value.Delegate(this.NativeHandle, font_source); + public void SetFontSource(System.String font_source) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_set_ptr.Value.Delegate(this.NativeHandle,font_source); Eina.Error.RaiseIfUnhandledException(); } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks public System.String GetFontFallbacks() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_fallbacks_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks - /// - public void SetFontFallbacks( System.String font_fallbacks) { - Efl.ITextFontNativeInherit.efl_text_font_fallbacks_set_ptr.Value.Delegate(this.NativeHandle, font_fallbacks); + public void SetFontFallbacks(System.String font_fallbacks) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_set_ptr.Value.Delegate(this.NativeHandle,font_fallbacks); Eina.Error.RaiseIfUnhandledException(); } /// Type of weight of the displayed font /// Default is . /// Font weight public Efl.TextFontWeight GetFontWeight() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_weight_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of weight of the displayed font /// Default is . /// Font weight - /// - public void SetFontWeight( Efl.TextFontWeight font_weight) { - Efl.ITextFontNativeInherit.efl_text_font_weight_set_ptr.Value.Delegate(this.NativeHandle, font_weight); + public void SetFontWeight(Efl.TextFontWeight font_weight) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_set_ptr.Value.Delegate(this.NativeHandle,font_weight); Eina.Error.RaiseIfUnhandledException(); } /// Type of slant of the displayed font /// Default is . /// Font slant public Efl.TextFontSlant GetFontSlant() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_slant_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of slant of the displayed font /// Default is . /// Font slant - /// - public void SetFontSlant( Efl.TextFontSlant style) { - Efl.ITextFontNativeInherit.efl_text_font_slant_set_ptr.Value.Delegate(this.NativeHandle, style); + public void SetFontSlant(Efl.TextFontSlant style) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_set_ptr.Value.Delegate(this.NativeHandle,style); Eina.Error.RaiseIfUnhandledException(); } /// Type of width of the displayed font /// Default is . /// Font width public Efl.TextFontWidth GetFontWidth() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_width_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of width of the displayed font /// Default is . /// Font width - /// - public void SetFontWidth( Efl.TextFontWidth width) { - Efl.ITextFontNativeInherit.efl_text_font_width_set_ptr.Value.Delegate(this.NativeHandle, width); + public void SetFontWidth(Efl.TextFontWidth width) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_set_ptr.Value.Delegate(this.NativeHandle,width); Eina.Error.RaiseIfUnhandledException(); } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language public System.String GetFontLang() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_lang_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language - /// - public void SetFontLang( System.String lang) { - Efl.ITextFontNativeInherit.efl_text_font_lang_set_ptr.Value.Delegate(this.NativeHandle, lang); + public void SetFontLang(System.String lang) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_set_ptr.Value.Delegate(this.NativeHandle,lang); Eina.Error.RaiseIfUnhandledException(); } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable public Efl.TextFontBitmapScalable GetFontBitmapScalable() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable - /// - public void SetFontBitmapScalable( Efl.TextFontBitmapScalable scalable) { - Efl.ITextFontNativeInherit.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(this.NativeHandle, scalable); + public void SetFontBitmapScalable(Efl.TextFontBitmapScalable scalable) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(this.NativeHandle,scalable); Eina.Error.RaiseIfUnhandledException(); } /// Get the font file's path which is being used on a given text object. @@ -351,531 +370,814 @@ ITextFont /// The font file's path. public System.String FontSource { get { return GetFontSource(); } - set { SetFontSource( value); } + set { SetFontSource(value); } } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks public System.String FontFallbacks { get { return GetFontFallbacks(); } - set { SetFontFallbacks( value); } + set { SetFontFallbacks(value); } } /// Type of weight of the displayed font /// Default is . /// Font weight public Efl.TextFontWeight FontWeight { get { return GetFontWeight(); } - set { SetFontWeight( value); } + set { SetFontWeight(value); } } /// Type of slant of the displayed font /// Default is . /// Font slant public Efl.TextFontSlant FontSlant { get { return GetFontSlant(); } - set { SetFontSlant( value); } + set { SetFontSlant(value); } } /// Type of width of the displayed font /// Default is . /// Font width public Efl.TextFontWidth FontWidth { get { return GetFontWidth(); } - set { SetFontWidth( value); } + set { SetFontWidth(value); } } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language public System.String FontLang { get { return GetFontLang(); } - set { SetFontLang( value); } + set { SetFontLang(value); } } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable public Efl.TextFontBitmapScalable FontBitmapScalable { get { return GetFontBitmapScalable(); } - set { SetFontBitmapScalable( value); } + set { SetFontBitmapScalable(value); } } private static IntPtr GetEflClassStatic() { return Efl.ITextFontConcrete.efl_text_font_interface_get(); } -} -public class ITextFontNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_text_font_get_static_delegate == null) - efl_text_font_get_static_delegate = new efl_text_font_get_delegate(font_get); - if (methods.FirstOrDefault(m => m.Name == "GetFont") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_get_static_delegate)}); - if (efl_text_font_set_static_delegate == null) - efl_text_font_set_static_delegate = new efl_text_font_set_delegate(font_set); - if (methods.FirstOrDefault(m => m.Name == "SetFont") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_set_static_delegate)}); - if (efl_text_font_source_get_static_delegate == null) - efl_text_font_source_get_static_delegate = new efl_text_font_source_get_delegate(font_source_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_get_static_delegate)}); - if (efl_text_font_source_set_static_delegate == null) - efl_text_font_source_set_static_delegate = new efl_text_font_source_set_delegate(font_source_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_set_static_delegate)}); - if (efl_text_font_fallbacks_get_static_delegate == null) - efl_text_font_fallbacks_get_static_delegate = new efl_text_font_fallbacks_get_delegate(font_fallbacks_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontFallbacks") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_fallbacks_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_get_static_delegate)}); - if (efl_text_font_fallbacks_set_static_delegate == null) - efl_text_font_fallbacks_set_static_delegate = new efl_text_font_fallbacks_set_delegate(font_fallbacks_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontFallbacks") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_fallbacks_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_set_static_delegate)}); - if (efl_text_font_weight_get_static_delegate == null) - efl_text_font_weight_get_static_delegate = new efl_text_font_weight_get_delegate(font_weight_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_get_static_delegate)}); - if (efl_text_font_weight_set_static_delegate == null) - efl_text_font_weight_set_static_delegate = new efl_text_font_weight_set_delegate(font_weight_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_set_static_delegate)}); - if (efl_text_font_slant_get_static_delegate == null) - efl_text_font_slant_get_static_delegate = new efl_text_font_slant_get_delegate(font_slant_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontSlant") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_slant_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_get_static_delegate)}); - if (efl_text_font_slant_set_static_delegate == null) - efl_text_font_slant_set_static_delegate = new efl_text_font_slant_set_delegate(font_slant_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontSlant") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_slant_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_set_static_delegate)}); - if (efl_text_font_width_get_static_delegate == null) - efl_text_font_width_get_static_delegate = new efl_text_font_width_get_delegate(font_width_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_get_static_delegate)}); - if (efl_text_font_width_set_static_delegate == null) - efl_text_font_width_set_static_delegate = new efl_text_font_width_set_delegate(font_width_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_set_static_delegate)}); - if (efl_text_font_lang_get_static_delegate == null) - efl_text_font_lang_get_static_delegate = new efl_text_font_lang_get_delegate(font_lang_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontLang") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_lang_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_get_static_delegate)}); - if (efl_text_font_lang_set_static_delegate == null) - efl_text_font_lang_set_static_delegate = new efl_text_font_lang_set_delegate(font_lang_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontLang") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_lang_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_set_static_delegate)}); - if (efl_text_font_bitmap_scalable_get_static_delegate == null) - efl_text_font_bitmap_scalable_get_static_delegate = new efl_text_font_bitmap_scalable_get_delegate(font_bitmap_scalable_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontBitmapScalable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_bitmap_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_get_static_delegate)}); - if (efl_text_font_bitmap_scalable_set_static_delegate == null) - efl_text_font_bitmap_scalable_set_static_delegate = new efl_text_font_bitmap_scalable_set_delegate(font_bitmap_scalable_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontBitmapScalable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_bitmap_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.ITextFontConcrete.efl_text_font_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.ITextFontConcrete.efl_text_font_interface_get(); - } + 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_text_font_get_static_delegate == null) + { + efl_text_font_get_static_delegate = new efl_text_font_get_delegate(font_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFont") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_get_static_delegate) }); + } - private delegate void efl_text_font_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + if (efl_text_font_set_static_delegate == null) + { + efl_text_font_set_static_delegate = new efl_text_font_set_delegate(font_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFont") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_set_static_delegate) }); + } - public delegate void efl_text_font_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_text_font_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_get"); - private static void font_get(System.IntPtr obj, System.IntPtr pd, out System.String font, out Efl.Font.Size size) - { - Eina.Log.Debug("function efl_text_font_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_font = default(System.String); - size = default(Efl.Font.Size); - try { - ((ITextFont)wrapper).GetFont( out _out_font, out size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_font_source_get_static_delegate == null) + { + efl_text_font_source_get_static_delegate = new efl_text_font_source_get_delegate(font_source_get); } - font = _out_font; - } else { - efl_text_font_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out font, out size); - } - } - private static efl_text_font_get_delegate efl_text_font_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFontSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_get_static_delegate) }); + } - private delegate void efl_text_font_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + if (efl_text_font_source_set_static_delegate == null) + { + efl_text_font_source_set_static_delegate = new efl_text_font_source_set_delegate(font_source_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_set_static_delegate) }); + } - public delegate void efl_text_font_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_text_font_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_set"); - private static void font_set(System.IntPtr obj, System.IntPtr pd, System.String font, Efl.Font.Size size) - { - Eina.Log.Debug("function efl_text_font_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFont)wrapper).SetFont( font, size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font, size); - } - } - private static efl_text_font_set_delegate efl_text_font_set_static_delegate; + if (efl_text_font_fallbacks_get_static_delegate == null) + { + efl_text_font_fallbacks_get_static_delegate = new efl_text_font_fallbacks_get_delegate(font_fallbacks_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontFallbacks") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_fallbacks_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_font_fallbacks_set_static_delegate == null) + { + efl_text_font_fallbacks_set_static_delegate = new efl_text_font_fallbacks_set_delegate(font_fallbacks_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontFallbacks") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_fallbacks_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_source_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_source_get"); - private static System.String font_source_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_source_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextFont)wrapper).GetFontSource(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_font_weight_get_static_delegate == null) + { + efl_text_font_weight_get_static_delegate = new efl_text_font_weight_get_delegate(font_weight_get); } - return _ret_var; - } else { - return efl_text_font_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_source_get_delegate efl_text_font_source_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFontWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_get_static_delegate) }); + } - private delegate void efl_text_font_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + if (efl_text_font_weight_set_static_delegate == null) + { + efl_text_font_weight_set_static_delegate = new efl_text_font_weight_set_delegate(font_weight_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_set_static_delegate) }); + } - public delegate void efl_text_font_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); - public static Efl.Eo.FunctionWrapper efl_text_font_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_source_set"); - private static void font_source_set(System.IntPtr obj, System.IntPtr pd, System.String font_source) - { - Eina.Log.Debug("function efl_text_font_source_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFont)wrapper).SetFontSource( font_source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_source); - } - } - private static efl_text_font_source_set_delegate efl_text_font_source_set_static_delegate; + if (efl_text_font_slant_get_static_delegate == null) + { + efl_text_font_slant_get_static_delegate = new efl_text_font_slant_get_delegate(font_slant_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontSlant") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_slant_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_fallbacks_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_font_slant_set_static_delegate == null) + { + efl_text_font_slant_set_static_delegate = new efl_text_font_slant_set_delegate(font_slant_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontSlant") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_slant_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_fallbacks_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_fallbacks_get"); - private static System.String font_fallbacks_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_fallbacks_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextFont)wrapper).GetFontFallbacks(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_font_width_get_static_delegate == null) + { + efl_text_font_width_get_static_delegate = new efl_text_font_width_get_delegate(font_width_get); } - return _ret_var; - } else { - return efl_text_font_fallbacks_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_fallbacks_get_delegate efl_text_font_fallbacks_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFontWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_get_static_delegate) }); + } - private delegate void efl_text_font_fallbacks_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + if (efl_text_font_width_set_static_delegate == null) + { + efl_text_font_width_set_static_delegate = new efl_text_font_width_set_delegate(font_width_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_set_static_delegate) }); + } - public delegate void efl_text_font_fallbacks_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); - public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_fallbacks_set"); - private static void font_fallbacks_set(System.IntPtr obj, System.IntPtr pd, System.String font_fallbacks) - { - Eina.Log.Debug("function efl_text_font_fallbacks_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFont)wrapper).SetFontFallbacks( font_fallbacks); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_fallbacks_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_fallbacks); - } - } - private static efl_text_font_fallbacks_set_delegate efl_text_font_fallbacks_set_static_delegate; + if (efl_text_font_lang_get_static_delegate == null) + { + efl_text_font_lang_get_static_delegate = new efl_text_font_lang_get_delegate(font_lang_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontLang") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_lang_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_get_static_delegate) }); + } - private delegate Efl.TextFontWeight efl_text_font_weight_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_font_lang_set_static_delegate == null) + { + efl_text_font_lang_set_static_delegate = new efl_text_font_lang_set_delegate(font_lang_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontLang") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_lang_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_set_static_delegate) }); + } - public delegate Efl.TextFontWeight efl_text_font_weight_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_weight_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_weight_get"); - private static Efl.TextFontWeight font_weight_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_weight_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontWeight _ret_var = default(Efl.TextFontWeight); - try { - _ret_var = ((ITextFont)wrapper).GetFontWeight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_font_bitmap_scalable_get_static_delegate == null) + { + efl_text_font_bitmap_scalable_get_static_delegate = new efl_text_font_bitmap_scalable_get_delegate(font_bitmap_scalable_get); } - return _ret_var; - } else { - return efl_text_font_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_weight_get_delegate efl_text_font_weight_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFontBitmapScalable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_bitmap_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_get_static_delegate) }); + } - private delegate void efl_text_font_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight); + if (efl_text_font_bitmap_scalable_set_static_delegate == null) + { + efl_text_font_bitmap_scalable_set_static_delegate = new efl_text_font_bitmap_scalable_set_delegate(font_bitmap_scalable_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontBitmapScalable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_bitmap_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_set_static_delegate) }); + } - public delegate void efl_text_font_weight_set_api_delegate(System.IntPtr obj, Efl.TextFontWeight font_weight); - public static Efl.Eo.FunctionWrapper efl_text_font_weight_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_weight_set"); - private static void font_weight_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight) - { - Eina.Log.Debug("function efl_text_font_weight_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFont)wrapper).SetFontWeight( font_weight); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_weight); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.ITextFontConcrete.efl_text_font_interface_get(); } - } - private static efl_text_font_weight_set_delegate efl_text_font_weight_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate Efl.TextFontSlant efl_text_font_slant_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_text_font_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + + public delegate void efl_text_font_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); - public delegate Efl.TextFontSlant efl_text_font_slant_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_slant_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_slant_get"); - private static Efl.TextFontSlant font_slant_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_slant_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontSlant _ret_var = default(Efl.TextFontSlant); - try { - _ret_var = ((ITextFont)wrapper).GetFontSlant(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_font_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_get"); + + private static void font_get(System.IntPtr obj, System.IntPtr pd, out System.String font, out Efl.Font.Size size) + { + Eina.Log.Debug("function efl_text_font_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_font = default(System.String); + size = default(Efl.Font.Size); + try + { + ((ITextFont)wrapper).GetFont(out _out_font, out size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + font = _out_font; + + } + else + { + efl_text_font_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out font, out size); } - return _ret_var; - } else { - return efl_text_font_slant_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_font_slant_get_delegate efl_text_font_slant_get_static_delegate; + private static efl_text_font_get_delegate efl_text_font_get_static_delegate; + + + private delegate void efl_text_font_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + + + public delegate void efl_text_font_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + + public static Efl.Eo.FunctionWrapper efl_text_font_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_set"); + + private static void font_set(System.IntPtr obj, System.IntPtr pd, System.String font, Efl.Font.Size size) + { + Eina.Log.Debug("function efl_text_font_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFont)wrapper).SetFont(font, size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font, size); + } + } - private delegate void efl_text_font_slant_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style); + private static efl_text_font_set_delegate efl_text_font_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_source_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_source_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_source_get"); + + private static System.String font_source_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_source_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextFont)wrapper).GetFontSource(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_font_slant_set_api_delegate(System.IntPtr obj, Efl.TextFontSlant style); - public static Efl.Eo.FunctionWrapper efl_text_font_slant_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_slant_set"); - private static void font_slant_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style) - { - Eina.Log.Debug("function efl_text_font_slant_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFont)wrapper).SetFontSlant( style); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_slant_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); + } + else + { + return efl_text_font_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_font_slant_set_delegate efl_text_font_slant_set_static_delegate; + private static efl_text_font_source_get_delegate efl_text_font_source_get_static_delegate; + + + private delegate void efl_text_font_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + + + public delegate void efl_text_font_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + + public static Efl.Eo.FunctionWrapper efl_text_font_source_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_source_set"); + + private static void font_source_set(System.IntPtr obj, System.IntPtr pd, System.String font_source) + { + Eina.Log.Debug("function efl_text_font_source_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFont)wrapper).SetFontSource(font_source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_source); + } + } - private delegate Efl.TextFontWidth efl_text_font_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_font_source_set_delegate efl_text_font_source_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_fallbacks_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_fallbacks_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_fallbacks_get"); + + private static System.String font_fallbacks_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_fallbacks_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextFont)wrapper).GetFontFallbacks(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.TextFontWidth efl_text_font_width_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_width_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_width_get"); - private static Efl.TextFontWidth font_width_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_width_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontWidth _ret_var = default(Efl.TextFontWidth); - try { - _ret_var = ((ITextFont)wrapper).GetFontWidth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_font_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_font_fallbacks_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_font_width_get_delegate efl_text_font_width_get_static_delegate; + private static efl_text_font_fallbacks_get_delegate efl_text_font_fallbacks_get_static_delegate; + + + private delegate void efl_text_font_fallbacks_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + + + public delegate void efl_text_font_fallbacks_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + + public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_fallbacks_set"); + + private static void font_fallbacks_set(System.IntPtr obj, System.IntPtr pd, System.String font_fallbacks) + { + Eina.Log.Debug("function efl_text_font_fallbacks_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFont)wrapper).SetFontFallbacks(font_fallbacks); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_fallbacks_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_fallbacks); + } + } - private delegate void efl_text_font_width_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width); + private static efl_text_font_fallbacks_set_delegate efl_text_font_fallbacks_set_static_delegate; + + + private delegate Efl.TextFontWeight efl_text_font_weight_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontWeight efl_text_font_weight_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_weight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_weight_get"); + + private static Efl.TextFontWeight font_weight_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_weight_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontWeight _ret_var = default(Efl.TextFontWeight); + try + { + _ret_var = ((ITextFont)wrapper).GetFontWeight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_font_width_set_api_delegate(System.IntPtr obj, Efl.TextFontWidth width); - public static Efl.Eo.FunctionWrapper efl_text_font_width_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_width_set"); - private static void font_width_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width) - { - Eina.Log.Debug("function efl_text_font_width_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFont)wrapper).SetFontWidth( width); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); + } + else + { + return efl_text_font_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_font_width_set_delegate efl_text_font_width_set_static_delegate; + private static efl_text_font_weight_get_delegate efl_text_font_weight_get_static_delegate; + + + private delegate void efl_text_font_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight); + + + public delegate void efl_text_font_weight_set_api_delegate(System.IntPtr obj, Efl.TextFontWeight font_weight); + + public static Efl.Eo.FunctionWrapper efl_text_font_weight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_weight_set"); + + private static void font_weight_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight) + { + Eina.Log.Debug("function efl_text_font_weight_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFont)wrapper).SetFontWeight(font_weight); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_weight); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_lang_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_font_weight_set_delegate efl_text_font_weight_set_static_delegate; + + + private delegate Efl.TextFontSlant efl_text_font_slant_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontSlant efl_text_font_slant_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_slant_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_slant_get"); + + private static Efl.TextFontSlant font_slant_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_slant_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontSlant _ret_var = default(Efl.TextFontSlant); + try + { + _ret_var = ((ITextFont)wrapper).GetFontSlant(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_lang_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_lang_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_lang_get"); - private static System.String font_lang_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_lang_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextFont)wrapper).GetFontLang(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_font_lang_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_font_slant_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_font_lang_get_delegate efl_text_font_lang_get_static_delegate; + private static efl_text_font_slant_get_delegate efl_text_font_slant_get_static_delegate; + + + private delegate void efl_text_font_slant_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style); + + + public delegate void efl_text_font_slant_set_api_delegate(System.IntPtr obj, Efl.TextFontSlant style); + + public static Efl.Eo.FunctionWrapper efl_text_font_slant_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_slant_set"); + + private static void font_slant_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style) + { + Eina.Log.Debug("function efl_text_font_slant_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFont)wrapper).SetFontSlant(style); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_slant_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); + } + } - private delegate void efl_text_font_lang_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + private static efl_text_font_slant_set_delegate efl_text_font_slant_set_static_delegate; + + + private delegate Efl.TextFontWidth efl_text_font_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontWidth efl_text_font_width_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_width_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_width_get"); + + private static Efl.TextFontWidth font_width_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_width_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontWidth _ret_var = default(Efl.TextFontWidth); + try + { + _ret_var = ((ITextFont)wrapper).GetFontWidth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_font_lang_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); - public static Efl.Eo.FunctionWrapper efl_text_font_lang_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_lang_set"); - private static void font_lang_set(System.IntPtr obj, System.IntPtr pd, System.String lang) - { - Eina.Log.Debug("function efl_text_font_lang_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFont)wrapper).SetFontLang( lang); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_lang_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang); + } + else + { + return efl_text_font_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_font_lang_set_delegate efl_text_font_lang_set_static_delegate; + private static efl_text_font_width_get_delegate efl_text_font_width_get_static_delegate; + + + private delegate void efl_text_font_width_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width); + + + public delegate void efl_text_font_width_set_api_delegate(System.IntPtr obj, Efl.TextFontWidth width); + + public static Efl.Eo.FunctionWrapper efl_text_font_width_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_width_set"); + + private static void font_width_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width) + { + Eina.Log.Debug("function efl_text_font_width_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFont)wrapper).SetFontWidth(width); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); + } + } - private delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_font_width_set_delegate efl_text_font_width_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_lang_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_lang_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_lang_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_lang_get"); + + private static System.String font_lang_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_lang_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextFont)wrapper).GetFontLang(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_bitmap_scalable_get"); - private static Efl.TextFontBitmapScalable font_bitmap_scalable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_bitmap_scalable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontBitmapScalable _ret_var = default(Efl.TextFontBitmapScalable); - try { - _ret_var = ((ITextFont)wrapper).GetFontBitmapScalable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_font_lang_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_font_bitmap_scalable_get_delegate efl_text_font_bitmap_scalable_get_static_delegate; + private static efl_text_font_lang_get_delegate efl_text_font_lang_get_static_delegate; + + + private delegate void efl_text_font_lang_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + + + public delegate void efl_text_font_lang_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + + public static Efl.Eo.FunctionWrapper efl_text_font_lang_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_lang_set"); + + private static void font_lang_set(System.IntPtr obj, System.IntPtr pd, System.String lang) + { + Eina.Log.Debug("function efl_text_font_lang_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFont)wrapper).SetFontLang(lang); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_lang_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang); + } + } - private delegate void efl_text_font_bitmap_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable); + private static efl_text_font_lang_set_delegate efl_text_font_lang_set_static_delegate; + + + private delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_bitmap_scalable_get"); + + private static Efl.TextFontBitmapScalable font_bitmap_scalable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_bitmap_scalable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontBitmapScalable _ret_var = default(Efl.TextFontBitmapScalable); + try + { + _ret_var = ((ITextFont)wrapper).GetFontBitmapScalable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_font_bitmap_scalable_set_api_delegate(System.IntPtr obj, Efl.TextFontBitmapScalable scalable); - public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_bitmap_scalable_set"); - private static void font_bitmap_scalable_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable) - { - Eina.Log.Debug("function efl_text_font_bitmap_scalable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFont)wrapper).SetFontBitmapScalable( scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scalable); + } + else + { + return efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_font_bitmap_scalable_set_delegate efl_text_font_bitmap_scalable_set_static_delegate; + + private static efl_text_font_bitmap_scalable_get_delegate efl_text_font_bitmap_scalable_get_static_delegate; + + + private delegate void efl_text_font_bitmap_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable); + + + public delegate void efl_text_font_bitmap_scalable_set_api_delegate(System.IntPtr obj, Efl.TextFontBitmapScalable scalable); + + public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_bitmap_scalable_set"); + + private static void font_bitmap_scalable_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable) + { + Eina.Log.Debug("function efl_text_font_bitmap_scalable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFont)wrapper).SetFontBitmapScalable(scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scalable); + } + } + + private static efl_text_font_bitmap_scalable_set_delegate efl_text_font_bitmap_scalable_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} -namespace Efl { + +namespace Efl { + /// Type of font weight public enum TextFontWeight { @@ -906,8 +1208,11 @@ Black = 11, /// Extrablack font weight Extrablack = 12, } -} -namespace Efl { + +} + +namespace Efl { + /// Type of font width public enum TextFontWidth { @@ -930,8 +1235,11 @@ Extraexpanded = 7, /// Ultraexpanded font width Ultraexpanded = 8, } -} -namespace Efl { + +} + +namespace Efl { + /// Type of font slant public enum TextFontSlant { @@ -942,8 +1250,11 @@ Oblique = 1, /// Italic font slant Italic = 2, } -} -namespace Efl { + +} + +namespace Efl { + /// Scalable of bitmap fonts public enum TextFontBitmapScalable { @@ -952,4 +1263,6 @@ None = 0, /// Enable scalable feature for color bitmap fonts. Color = 1, } -} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_format.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_format.eo.cs index 4f5eb5d..a97fd01 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_format.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_format.eo.cs @@ -3,11 +3,13 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// The look and layout of the text /// The text format can affect the geometry of the text object, as well as how characters are presented. -[ITextFormatNativeInherit] +[Efl.ITextFormatConcrete.NativeMethods] public interface ITextFormat : Efl.Eo.IWrapper, IDisposable { @@ -16,43 +18,37 @@ public interface ITextFormat : double GetEllipsis(); /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value -/// -void SetEllipsis( double value); +void SetEllipsis(double value); /// Wrap mode for use in the text /// Wrap mode Efl.TextFormatWrap GetWrap(); /// Wrap mode for use in the text /// Wrap mode -/// -void SetWrap( Efl.TextFormatWrap wrap); +void SetWrap(Efl.TextFormatWrap wrap); /// Multiline is enabled or not /// true if multiline is enabled, false otherwise bool GetMultiline(); /// Multiline is enabled or not /// true if multiline is enabled, false otherwise -/// -void SetMultiline( bool enabled); +void SetMultiline(bool enabled); /// Horizontal alignment of text /// Alignment type Efl.TextFormatHorizontalAlignmentAutoType GetHalignAutoType(); /// Horizontal alignment of text /// Alignment type -/// -void SetHalignAutoType( Efl.TextFormatHorizontalAlignmentAutoType value); +void SetHalignAutoType(Efl.TextFormatHorizontalAlignmentAutoType value); /// Horizontal alignment of text /// Horizontal alignment value double GetHalign(); /// Horizontal alignment of text /// Horizontal alignment value -/// -void SetHalign( double value); +void SetHalign(double value); /// Vertical alignment of text /// Vertical alignment value double GetValign(); /// Vertical alignment of text /// Vertical alignment value -/// -void SetValign( double value); +void SetValign(double value); /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value @@ -60,8 +56,7 @@ double GetLinegap(); /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value -/// -void SetLinegap( double value); +void SetLinegap(double value); /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value @@ -69,22 +64,19 @@ double GetLinerelgap(); /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value -/// -void SetLinerelgap( double value); +void SetLinerelgap(double value); /// Tabstops value /// Tapstops value int GetTabstops(); /// Tabstops value /// Tapstops value -/// -void SetTabstops( int value); +void SetTabstops(int value); /// Whether text is a password /// true if the text is a password, false otherwise bool GetPassword(); /// Whether text is a password /// true if the text is a password, false otherwise -/// -void SetPassword( bool enabled); +void SetPassword(bool enabled); /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character @@ -92,8 +84,7 @@ System.String GetReplacementChar(); /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character -/// -void SetReplacementChar( System.String repch); +void SetReplacementChar(System.String repch); /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value double Ellipsis { @@ -172,948 +163,1357 @@ ITextFormat { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextFormatConcrete)) - return Efl.ITextFormatNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextFormatConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_text_format_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextFormatConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextFormatConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value public double GetEllipsis() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_ellipsis_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_ellipsis_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value - /// - public void SetEllipsis( double value) { - Efl.ITextFormatNativeInherit.efl_text_ellipsis_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetEllipsis(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_ellipsis_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Wrap mode for use in the text /// Wrap mode public Efl.TextFormatWrap GetWrap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_wrap_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_wrap_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Wrap mode for use in the text /// Wrap mode - /// - public void SetWrap( Efl.TextFormatWrap wrap) { - Efl.ITextFormatNativeInherit.efl_text_wrap_set_ptr.Value.Delegate(this.NativeHandle, wrap); + public void SetWrap(Efl.TextFormatWrap wrap) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_wrap_set_ptr.Value.Delegate(this.NativeHandle,wrap); Eina.Error.RaiseIfUnhandledException(); } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise public bool GetMultiline() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_multiline_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_multiline_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise - /// - public void SetMultiline( bool enabled) { - Efl.ITextFormatNativeInherit.efl_text_multiline_set_ptr.Value.Delegate(this.NativeHandle, enabled); + public void SetMultiline(bool enabled) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_multiline_set_ptr.Value.Delegate(this.NativeHandle,enabled); Eina.Error.RaiseIfUnhandledException(); } /// Horizontal alignment of text /// Alignment type public Efl.TextFormatHorizontalAlignmentAutoType GetHalignAutoType() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_halign_auto_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_auto_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Horizontal alignment of text /// Alignment type - /// - public void SetHalignAutoType( Efl.TextFormatHorizontalAlignmentAutoType value) { - Efl.ITextFormatNativeInherit.efl_text_halign_auto_type_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetHalignAutoType(Efl.TextFormatHorizontalAlignmentAutoType value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_auto_type_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Horizontal alignment of text /// Horizontal alignment value public double GetHalign() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_halign_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Horizontal alignment of text /// Horizontal alignment value - /// - public void SetHalign( double value) { - Efl.ITextFormatNativeInherit.efl_text_halign_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetHalign(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Vertical alignment of text /// Vertical alignment value public double GetValign() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_valign_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_valign_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Vertical alignment of text /// Vertical alignment value - /// - public void SetValign( double value) { - Efl.ITextFormatNativeInherit.efl_text_valign_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetValign(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_valign_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value public double GetLinegap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_linegap_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_linegap_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value - /// - public void SetLinegap( double value) { - Efl.ITextFormatNativeInherit.efl_text_linegap_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetLinegap(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_linegap_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value public double GetLinerelgap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_linerelgap_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_linerelgap_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value - /// - public void SetLinerelgap( double value) { - Efl.ITextFormatNativeInherit.efl_text_linerelgap_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetLinerelgap(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_linerelgap_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Tabstops value /// Tapstops value public int GetTabstops() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_tabstops_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_tabstops_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Tabstops value /// Tapstops value - /// - public void SetTabstops( int value) { - Efl.ITextFormatNativeInherit.efl_text_tabstops_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetTabstops(int value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_tabstops_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Whether text is a password /// true if the text is a password, false otherwise public bool GetPassword() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_password_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_password_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether text is a password /// true if the text is a password, false otherwise - /// - public void SetPassword( bool enabled) { - Efl.ITextFormatNativeInherit.efl_text_password_set_ptr.Value.Delegate(this.NativeHandle, enabled); + public void SetPassword(bool enabled) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_password_set_ptr.Value.Delegate(this.NativeHandle,enabled); Eina.Error.RaiseIfUnhandledException(); } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character public System.String GetReplacementChar() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_replacement_char_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_replacement_char_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character - /// - public void SetReplacementChar( System.String repch) { - Efl.ITextFormatNativeInherit.efl_text_replacement_char_set_ptr.Value.Delegate(this.NativeHandle, repch); + public void SetReplacementChar(System.String repch) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_replacement_char_set_ptr.Value.Delegate(this.NativeHandle,repch); Eina.Error.RaiseIfUnhandledException(); } /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value public double Ellipsis { get { return GetEllipsis(); } - set { SetEllipsis( value); } + set { SetEllipsis(value); } } /// Wrap mode for use in the text /// Wrap mode public Efl.TextFormatWrap Wrap { get { return GetWrap(); } - set { SetWrap( value); } + set { SetWrap(value); } } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise public bool Multiline { get { return GetMultiline(); } - set { SetMultiline( value); } + set { SetMultiline(value); } } /// Horizontal alignment of text /// Alignment type public Efl.TextFormatHorizontalAlignmentAutoType HalignAutoType { get { return GetHalignAutoType(); } - set { SetHalignAutoType( value); } + set { SetHalignAutoType(value); } } /// Horizontal alignment of text /// Horizontal alignment value public double Halign { get { return GetHalign(); } - set { SetHalign( value); } + set { SetHalign(value); } } /// Vertical alignment of text /// Vertical alignment value public double Valign { get { return GetValign(); } - set { SetValign( value); } + set { SetValign(value); } } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value public double Linegap { get { return GetLinegap(); } - set { SetLinegap( value); } + set { SetLinegap(value); } } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value public double Linerelgap { get { return GetLinerelgap(); } - set { SetLinerelgap( value); } + set { SetLinerelgap(value); } } /// Tabstops value /// Tapstops value public int Tabstops { get { return GetTabstops(); } - set { SetTabstops( value); } + set { SetTabstops(value); } } /// Whether text is a password /// true if the text is a password, false otherwise public bool Password { get { return GetPassword(); } - set { SetPassword( value); } + set { SetPassword(value); } } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character public System.String ReplacementChar { get { return GetReplacementChar(); } - set { SetReplacementChar( value); } + set { SetReplacementChar(value); } } private static IntPtr GetEflClassStatic() { return Efl.ITextFormatConcrete.efl_text_format_interface_get(); } -} -public class ITextFormatNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_text_ellipsis_get_static_delegate == null) - efl_text_ellipsis_get_static_delegate = new efl_text_ellipsis_get_delegate(ellipsis_get); - if (methods.FirstOrDefault(m => m.Name == "GetEllipsis") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_ellipsis_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_get_static_delegate)}); - if (efl_text_ellipsis_set_static_delegate == null) - efl_text_ellipsis_set_static_delegate = new efl_text_ellipsis_set_delegate(ellipsis_set); - if (methods.FirstOrDefault(m => m.Name == "SetEllipsis") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_ellipsis_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_set_static_delegate)}); - if (efl_text_wrap_get_static_delegate == null) - efl_text_wrap_get_static_delegate = new efl_text_wrap_get_delegate(wrap_get); - if (methods.FirstOrDefault(m => m.Name == "GetWrap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_wrap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_get_static_delegate)}); - if (efl_text_wrap_set_static_delegate == null) - efl_text_wrap_set_static_delegate = new efl_text_wrap_set_delegate(wrap_set); - if (methods.FirstOrDefault(m => m.Name == "SetWrap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_wrap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_set_static_delegate)}); - if (efl_text_multiline_get_static_delegate == null) - efl_text_multiline_get_static_delegate = new efl_text_multiline_get_delegate(multiline_get); - if (methods.FirstOrDefault(m => m.Name == "GetMultiline") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_multiline_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_get_static_delegate)}); - if (efl_text_multiline_set_static_delegate == null) - efl_text_multiline_set_static_delegate = new efl_text_multiline_set_delegate(multiline_set); - if (methods.FirstOrDefault(m => m.Name == "SetMultiline") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_multiline_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_set_static_delegate)}); - if (efl_text_halign_auto_type_get_static_delegate == null) - efl_text_halign_auto_type_get_static_delegate = new efl_text_halign_auto_type_get_delegate(halign_auto_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetHalignAutoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_auto_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_get_static_delegate)}); - if (efl_text_halign_auto_type_set_static_delegate == null) - efl_text_halign_auto_type_set_static_delegate = new efl_text_halign_auto_type_set_delegate(halign_auto_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetHalignAutoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_auto_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_set_static_delegate)}); - if (efl_text_halign_get_static_delegate == null) - efl_text_halign_get_static_delegate = new efl_text_halign_get_delegate(halign_get); - if (methods.FirstOrDefault(m => m.Name == "GetHalign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_get_static_delegate)}); - if (efl_text_halign_set_static_delegate == null) - efl_text_halign_set_static_delegate = new efl_text_halign_set_delegate(halign_set); - if (methods.FirstOrDefault(m => m.Name == "SetHalign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_set_static_delegate)}); - if (efl_text_valign_get_static_delegate == null) - efl_text_valign_get_static_delegate = new efl_text_valign_get_delegate(valign_get); - if (methods.FirstOrDefault(m => m.Name == "GetValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_get_static_delegate)}); - if (efl_text_valign_set_static_delegate == null) - efl_text_valign_set_static_delegate = new efl_text_valign_set_delegate(valign_set); - if (methods.FirstOrDefault(m => m.Name == "SetValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_set_static_delegate)}); - if (efl_text_linegap_get_static_delegate == null) - efl_text_linegap_get_static_delegate = new efl_text_linegap_get_delegate(linegap_get); - if (methods.FirstOrDefault(m => m.Name == "GetLinegap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linegap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_get_static_delegate)}); - if (efl_text_linegap_set_static_delegate == null) - efl_text_linegap_set_static_delegate = new efl_text_linegap_set_delegate(linegap_set); - if (methods.FirstOrDefault(m => m.Name == "SetLinegap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linegap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_set_static_delegate)}); - if (efl_text_linerelgap_get_static_delegate == null) - efl_text_linerelgap_get_static_delegate = new efl_text_linerelgap_get_delegate(linerelgap_get); - if (methods.FirstOrDefault(m => m.Name == "GetLinerelgap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linerelgap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_get_static_delegate)}); - if (efl_text_linerelgap_set_static_delegate == null) - efl_text_linerelgap_set_static_delegate = new efl_text_linerelgap_set_delegate(linerelgap_set); - if (methods.FirstOrDefault(m => m.Name == "SetLinerelgap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linerelgap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_set_static_delegate)}); - if (efl_text_tabstops_get_static_delegate == null) - efl_text_tabstops_get_static_delegate = new efl_text_tabstops_get_delegate(tabstops_get); - if (methods.FirstOrDefault(m => m.Name == "GetTabstops") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_tabstops_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_get_static_delegate)}); - if (efl_text_tabstops_set_static_delegate == null) - efl_text_tabstops_set_static_delegate = new efl_text_tabstops_set_delegate(tabstops_set); - if (methods.FirstOrDefault(m => m.Name == "SetTabstops") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_tabstops_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_set_static_delegate)}); - if (efl_text_password_get_static_delegate == null) - efl_text_password_get_static_delegate = new efl_text_password_get_delegate(password_get); - if (methods.FirstOrDefault(m => m.Name == "GetPassword") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_password_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_get_static_delegate)}); - if (efl_text_password_set_static_delegate == null) - efl_text_password_set_static_delegate = new efl_text_password_set_delegate(password_set); - if (methods.FirstOrDefault(m => m.Name == "SetPassword") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_password_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_set_static_delegate)}); - if (efl_text_replacement_char_get_static_delegate == null) - efl_text_replacement_char_get_static_delegate = new efl_text_replacement_char_get_delegate(replacement_char_get); - if (methods.FirstOrDefault(m => m.Name == "GetReplacementChar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_replacement_char_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_get_static_delegate)}); - if (efl_text_replacement_char_set_static_delegate == null) - efl_text_replacement_char_set_static_delegate = new efl_text_replacement_char_set_delegate(replacement_char_set); - if (methods.FirstOrDefault(m => m.Name == "SetReplacementChar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_replacement_char_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.ITextFormatConcrete.efl_text_format_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.ITextFormatConcrete.efl_text_format_interface_get(); - } - + 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_text_ellipsis_get_static_delegate == null) + { + efl_text_ellipsis_get_static_delegate = new efl_text_ellipsis_get_delegate(ellipsis_get); + } - private delegate double efl_text_ellipsis_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetEllipsis") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_ellipsis_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_get_static_delegate) }); + } + if (efl_text_ellipsis_set_static_delegate == null) + { + efl_text_ellipsis_set_static_delegate = new efl_text_ellipsis_set_delegate(ellipsis_set); + } - public delegate double efl_text_ellipsis_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_ellipsis_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_ellipsis_get"); - private static double ellipsis_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_ellipsis_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextFormat)wrapper).GetEllipsis(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetEllipsis") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_ellipsis_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_set_static_delegate) }); } - return _ret_var; - } else { - return efl_text_ellipsis_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_ellipsis_get_delegate efl_text_ellipsis_get_static_delegate; + if (efl_text_wrap_get_static_delegate == null) + { + efl_text_wrap_get_static_delegate = new efl_text_wrap_get_delegate(wrap_get); + } - private delegate void efl_text_ellipsis_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + if (methods.FirstOrDefault(m => m.Name == "GetWrap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_wrap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_get_static_delegate) }); + } + if (efl_text_wrap_set_static_delegate == null) + { + efl_text_wrap_set_static_delegate = new efl_text_wrap_set_delegate(wrap_set); + } - public delegate void efl_text_ellipsis_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_ellipsis_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_ellipsis_set"); - private static void ellipsis_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_ellipsis_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFormat)wrapper).SetEllipsis( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_ellipsis_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_ellipsis_set_delegate efl_text_ellipsis_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetWrap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_wrap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_set_static_delegate) }); + } + if (efl_text_multiline_get_static_delegate == null) + { + efl_text_multiline_get_static_delegate = new efl_text_multiline_get_delegate(multiline_get); + } - private delegate Efl.TextFormatWrap efl_text_wrap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetMultiline") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_multiline_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_get_static_delegate) }); + } + if (efl_text_multiline_set_static_delegate == null) + { + efl_text_multiline_set_static_delegate = new efl_text_multiline_set_delegate(multiline_set); + } - public delegate Efl.TextFormatWrap efl_text_wrap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_wrap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_wrap_get"); - private static Efl.TextFormatWrap wrap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_wrap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFormatWrap _ret_var = default(Efl.TextFormatWrap); - try { - _ret_var = ((ITextFormat)wrapper).GetWrap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMultiline") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_multiline_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_set_static_delegate) }); } - return _ret_var; - } else { - return efl_text_wrap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_wrap_get_delegate efl_text_wrap_get_static_delegate; + if (efl_text_halign_auto_type_get_static_delegate == null) + { + efl_text_halign_auto_type_get_static_delegate = new efl_text_halign_auto_type_get_delegate(halign_auto_type_get); + } - private delegate void efl_text_wrap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap); + if (methods.FirstOrDefault(m => m.Name == "GetHalignAutoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_auto_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_get_static_delegate) }); + } + if (efl_text_halign_auto_type_set_static_delegate == null) + { + efl_text_halign_auto_type_set_static_delegate = new efl_text_halign_auto_type_set_delegate(halign_auto_type_set); + } - public delegate void efl_text_wrap_set_api_delegate(System.IntPtr obj, Efl.TextFormatWrap wrap); - public static Efl.Eo.FunctionWrapper efl_text_wrap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_wrap_set"); - private static void wrap_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap) - { - Eina.Log.Debug("function efl_text_wrap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFormat)wrapper).SetWrap( wrap); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_wrap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), wrap); - } - } - private static efl_text_wrap_set_delegate efl_text_wrap_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetHalignAutoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_auto_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_set_static_delegate) }); + } + if (efl_text_halign_get_static_delegate == null) + { + efl_text_halign_get_static_delegate = new efl_text_halign_get_delegate(halign_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_multiline_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetHalign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_get_static_delegate) }); + } + if (efl_text_halign_set_static_delegate == null) + { + efl_text_halign_set_static_delegate = new efl_text_halign_set_delegate(halign_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_multiline_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_multiline_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_multiline_get"); - private static bool multiline_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_multiline_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextFormat)wrapper).GetMultiline(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetHalign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_set_static_delegate) }); } - return _ret_var; - } else { - return efl_text_multiline_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_multiline_get_delegate efl_text_multiline_get_static_delegate; + if (efl_text_valign_get_static_delegate == null) + { + efl_text_valign_get_static_delegate = new efl_text_valign_get_delegate(valign_get); + } - private delegate void efl_text_multiline_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + if (methods.FirstOrDefault(m => m.Name == "GetValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_get_static_delegate) }); + } + if (efl_text_valign_set_static_delegate == null) + { + efl_text_valign_set_static_delegate = new efl_text_valign_set_delegate(valign_set); + } - public delegate void efl_text_multiline_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_text_multiline_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_multiline_set"); - private static void multiline_set(System.IntPtr obj, System.IntPtr pd, bool enabled) - { - Eina.Log.Debug("function efl_text_multiline_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFormat)wrapper).SetMultiline( enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_multiline_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); - } - } - private static efl_text_multiline_set_delegate efl_text_multiline_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_set_static_delegate) }); + } + if (efl_text_linegap_get_static_delegate == null) + { + efl_text_linegap_get_static_delegate = new efl_text_linegap_get_delegate(linegap_get); + } - private delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLinegap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linegap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_get_static_delegate) }); + } + if (efl_text_linegap_set_static_delegate == null) + { + efl_text_linegap_set_static_delegate = new efl_text_linegap_set_delegate(linegap_set); + } - public delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_auto_type_get"); - private static Efl.TextFormatHorizontalAlignmentAutoType halign_auto_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_halign_auto_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFormatHorizontalAlignmentAutoType _ret_var = default(Efl.TextFormatHorizontalAlignmentAutoType); - try { - _ret_var = ((ITextFormat)wrapper).GetHalignAutoType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLinegap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linegap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_set_static_delegate) }); } - return _ret_var; - } else { - return efl_text_halign_auto_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_halign_auto_type_get_delegate efl_text_halign_auto_type_get_static_delegate; + if (efl_text_linerelgap_get_static_delegate == null) + { + efl_text_linerelgap_get_static_delegate = new efl_text_linerelgap_get_delegate(linerelgap_get); + } - private delegate void efl_text_halign_auto_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value); + if (methods.FirstOrDefault(m => m.Name == "GetLinerelgap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linerelgap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_get_static_delegate) }); + } + if (efl_text_linerelgap_set_static_delegate == null) + { + efl_text_linerelgap_set_static_delegate = new efl_text_linerelgap_set_delegate(linerelgap_set); + } - public delegate void efl_text_halign_auto_type_set_api_delegate(System.IntPtr obj, Efl.TextFormatHorizontalAlignmentAutoType value); - public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_auto_type_set"); - private static void halign_auto_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value) - { - Eina.Log.Debug("function efl_text_halign_auto_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFormat)wrapper).SetHalignAutoType( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_halign_auto_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_halign_auto_type_set_delegate efl_text_halign_auto_type_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetLinerelgap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linerelgap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_set_static_delegate) }); + } + if (efl_text_tabstops_get_static_delegate == null) + { + efl_text_tabstops_get_static_delegate = new efl_text_tabstops_get_delegate(tabstops_get); + } - private delegate double efl_text_halign_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetTabstops") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_tabstops_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_get_static_delegate) }); + } + if (efl_text_tabstops_set_static_delegate == null) + { + efl_text_tabstops_set_static_delegate = new efl_text_tabstops_set_delegate(tabstops_set); + } - public delegate double efl_text_halign_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_halign_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_get"); - private static double halign_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_halign_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextFormat)wrapper).GetHalign(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetTabstops") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_tabstops_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_set_static_delegate) }); } - return _ret_var; - } else { - return efl_text_halign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_halign_get_delegate efl_text_halign_get_static_delegate; + if (efl_text_password_get_static_delegate == null) + { + efl_text_password_get_static_delegate = new efl_text_password_get_delegate(password_get); + } - private delegate void efl_text_halign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + if (methods.FirstOrDefault(m => m.Name == "GetPassword") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_password_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_get_static_delegate) }); + } + if (efl_text_password_set_static_delegate == null) + { + efl_text_password_set_static_delegate = new efl_text_password_set_delegate(password_set); + } - public delegate void efl_text_halign_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_halign_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_set"); - private static void halign_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_halign_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFormat)wrapper).SetHalign( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_halign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_halign_set_delegate efl_text_halign_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPassword") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_password_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_set_static_delegate) }); + } + if (efl_text_replacement_char_get_static_delegate == null) + { + efl_text_replacement_char_get_static_delegate = new efl_text_replacement_char_get_delegate(replacement_char_get); + } - private delegate double efl_text_valign_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetReplacementChar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_replacement_char_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_get_static_delegate) }); + } + if (efl_text_replacement_char_set_static_delegate == null) + { + efl_text_replacement_char_set_static_delegate = new efl_text_replacement_char_set_delegate(replacement_char_set); + } - public delegate double efl_text_valign_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_valign_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_valign_get"); - private static double valign_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_valign_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextFormat)wrapper).GetValign(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetReplacementChar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_replacement_char_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_set_static_delegate) }); } - return _ret_var; - } else { - return efl_text_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.ITextFormatConcrete.efl_text_format_interface_get(); } - } - private static efl_text_valign_get_delegate efl_text_valign_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate double efl_text_ellipsis_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_ellipsis_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_ellipsis_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_ellipsis_get"); + + private static double ellipsis_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_ellipsis_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextFormat)wrapper).GetEllipsis(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + return _ret_var; + } + else + { + return efl_text_ellipsis_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_valign_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_valign_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_valign_set"); - private static void valign_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_valign_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFormat)wrapper).SetValign( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + private static efl_text_ellipsis_get_delegate efl_text_ellipsis_get_static_delegate; + + + private delegate void efl_text_ellipsis_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_ellipsis_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_ellipsis_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_ellipsis_set"); + + private static void ellipsis_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_ellipsis_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFormat)wrapper).SetEllipsis(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_ellipsis_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } } - } - private static efl_text_valign_set_delegate efl_text_valign_set_static_delegate; + private static efl_text_ellipsis_set_delegate efl_text_ellipsis_set_static_delegate; + + + private delegate Efl.TextFormatWrap efl_text_wrap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFormatWrap efl_text_wrap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_wrap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_wrap_get"); + + private static Efl.TextFormatWrap wrap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_wrap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFormatWrap _ret_var = default(Efl.TextFormatWrap); + try + { + _ret_var = ((ITextFormat)wrapper).GetWrap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_text_linegap_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_text_wrap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate double efl_text_linegap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_linegap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linegap_get"); - private static double linegap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_linegap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextFormat)wrapper).GetLinegap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_wrap_get_delegate efl_text_wrap_get_static_delegate; + + + private delegate void efl_text_wrap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap); + + + public delegate void efl_text_wrap_set_api_delegate(System.IntPtr obj, Efl.TextFormatWrap wrap); + + public static Efl.Eo.FunctionWrapper efl_text_wrap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_wrap_set"); + + private static void wrap_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap) + { + Eina.Log.Debug("function efl_text_wrap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFormat)wrapper).SetWrap(wrap); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_wrap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), wrap); } - return _ret_var; - } else { - return efl_text_linegap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_linegap_get_delegate efl_text_linegap_get_static_delegate; + private static efl_text_wrap_set_delegate efl_text_wrap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_multiline_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_multiline_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_multiline_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_multiline_get"); + + private static bool multiline_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_multiline_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextFormat)wrapper).GetMultiline(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_linegap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + return _ret_var; + } + else + { + return efl_text_multiline_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_linegap_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_linegap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linegap_set"); - private static void linegap_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_linegap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFormat)wrapper).SetLinegap( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_linegap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + private static efl_text_multiline_get_delegate efl_text_multiline_get_static_delegate; + + + private delegate void efl_text_multiline_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + + public delegate void efl_text_multiline_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public static Efl.Eo.FunctionWrapper efl_text_multiline_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_multiline_set"); + + private static void multiline_set(System.IntPtr obj, System.IntPtr pd, bool enabled) + { + Eina.Log.Debug("function efl_text_multiline_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFormat)wrapper).SetMultiline(enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_multiline_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); + } } - } - private static efl_text_linegap_set_delegate efl_text_linegap_set_static_delegate; + private static efl_text_multiline_set_delegate efl_text_multiline_set_static_delegate; + + + private delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_auto_type_get"); + + private static Efl.TextFormatHorizontalAlignmentAutoType halign_auto_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_halign_auto_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFormatHorizontalAlignmentAutoType _ret_var = default(Efl.TextFormatHorizontalAlignmentAutoType); + try + { + _ret_var = ((ITextFormat)wrapper).GetHalignAutoType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_text_linerelgap_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_text_halign_auto_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate double efl_text_linerelgap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_linerelgap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linerelgap_get"); - private static double linerelgap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_linerelgap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextFormat)wrapper).GetLinerelgap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_halign_auto_type_get_delegate efl_text_halign_auto_type_get_static_delegate; + + + private delegate void efl_text_halign_auto_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value); + + + public delegate void efl_text_halign_auto_type_set_api_delegate(System.IntPtr obj, Efl.TextFormatHorizontalAlignmentAutoType value); + + public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_auto_type_set"); + + private static void halign_auto_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value) + { + Eina.Log.Debug("function efl_text_halign_auto_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFormat)wrapper).SetHalignAutoType(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_halign_auto_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } - return _ret_var; - } else { - return efl_text_linerelgap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_linerelgap_get_delegate efl_text_linerelgap_get_static_delegate; + private static efl_text_halign_auto_type_set_delegate efl_text_halign_auto_type_set_static_delegate; + + + private delegate double efl_text_halign_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_halign_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_halign_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_get"); + + private static double halign_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_halign_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextFormat)wrapper).GetHalign(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_linerelgap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + return _ret_var; + } + else + { + return efl_text_halign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_linerelgap_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_linerelgap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linerelgap_set"); - private static void linerelgap_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_linerelgap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFormat)wrapper).SetLinerelgap( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_linerelgap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + private static efl_text_halign_get_delegate efl_text_halign_get_static_delegate; + + + private delegate void efl_text_halign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_halign_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_halign_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_set"); + + private static void halign_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_halign_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFormat)wrapper).SetHalign(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_halign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } } - } - private static efl_text_linerelgap_set_delegate efl_text_linerelgap_set_static_delegate; + private static efl_text_halign_set_delegate efl_text_halign_set_static_delegate; + + + private delegate double efl_text_valign_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_valign_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_valign_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_valign_get"); + + private static double valign_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_valign_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextFormat)wrapper).GetValign(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate int efl_text_tabstops_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_text_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate int efl_text_tabstops_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_tabstops_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_tabstops_get"); - private static int tabstops_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_tabstops_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextFormat)wrapper).GetTabstops(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_valign_get_delegate efl_text_valign_get_static_delegate; + + + private delegate void efl_text_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_valign_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_valign_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_valign_set"); + + private static void valign_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_valign_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFormat)wrapper).SetValign(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } - return _ret_var; - } else { - return efl_text_tabstops_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_tabstops_get_delegate efl_text_tabstops_get_static_delegate; + private static efl_text_valign_set_delegate efl_text_valign_set_static_delegate; + + + private delegate double efl_text_linegap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_linegap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_linegap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linegap_get"); + + private static double linegap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_linegap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextFormat)wrapper).GetLinegap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_tabstops_set_delegate(System.IntPtr obj, System.IntPtr pd, int value); + return _ret_var; + } + else + { + return efl_text_linegap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_tabstops_set_api_delegate(System.IntPtr obj, int value); - public static Efl.Eo.FunctionWrapper efl_text_tabstops_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_tabstops_set"); - private static void tabstops_set(System.IntPtr obj, System.IntPtr pd, int value) - { - Eina.Log.Debug("function efl_text_tabstops_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFormat)wrapper).SetTabstops( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_tabstops_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + private static efl_text_linegap_get_delegate efl_text_linegap_get_static_delegate; + + + private delegate void efl_text_linegap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_linegap_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_linegap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linegap_set"); + + private static void linegap_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_linegap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFormat)wrapper).SetLinegap(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_linegap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } } - } - private static efl_text_tabstops_set_delegate efl_text_tabstops_set_static_delegate; + private static efl_text_linegap_set_delegate efl_text_linegap_set_static_delegate; + + + private delegate double efl_text_linerelgap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_linerelgap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_linerelgap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linerelgap_get"); + + private static double linerelgap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_linerelgap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextFormat)wrapper).GetLinerelgap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_password_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_text_linerelgap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_password_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_password_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_password_get"); - private static bool password_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_password_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextFormat)wrapper).GetPassword(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_linerelgap_get_delegate efl_text_linerelgap_get_static_delegate; + + + private delegate void efl_text_linerelgap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_linerelgap_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_linerelgap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linerelgap_set"); + + private static void linerelgap_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_linerelgap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFormat)wrapper).SetLinerelgap(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_linerelgap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } - return _ret_var; - } else { - return efl_text_password_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_password_get_delegate efl_text_password_get_static_delegate; + private static efl_text_linerelgap_set_delegate efl_text_linerelgap_set_static_delegate; + + + private delegate int efl_text_tabstops_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_tabstops_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_tabstops_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_tabstops_get"); + + private static int tabstops_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_tabstops_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextFormat)wrapper).GetTabstops(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_password_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + return _ret_var; + } + else + { + return efl_text_tabstops_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_password_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_text_password_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_password_set"); - private static void password_set(System.IntPtr obj, System.IntPtr pd, bool enabled) - { - Eina.Log.Debug("function efl_text_password_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFormat)wrapper).SetPassword( enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_password_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); + private static efl_text_tabstops_get_delegate efl_text_tabstops_get_static_delegate; + + + private delegate void efl_text_tabstops_set_delegate(System.IntPtr obj, System.IntPtr pd, int value); + + + public delegate void efl_text_tabstops_set_api_delegate(System.IntPtr obj, int value); + + public static Efl.Eo.FunctionWrapper efl_text_tabstops_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_tabstops_set"); + + private static void tabstops_set(System.IntPtr obj, System.IntPtr pd, int value) + { + Eina.Log.Debug("function efl_text_tabstops_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFormat)wrapper).SetTabstops(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_tabstops_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } } - } - private static efl_text_password_set_delegate efl_text_password_set_static_delegate; + private static efl_text_tabstops_set_delegate efl_text_tabstops_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_password_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_password_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_password_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_password_get"); + + private static bool password_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_password_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextFormat)wrapper).GetPassword(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_replacement_char_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_text_password_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_replacement_char_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_replacement_char_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_replacement_char_get"); - private static System.String replacement_char_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_replacement_char_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextFormat)wrapper).GetReplacementChar(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_password_get_delegate efl_text_password_get_static_delegate; + + + private delegate void efl_text_password_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + + public delegate void efl_text_password_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public static Efl.Eo.FunctionWrapper efl_text_password_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_password_set"); + + private static void password_set(System.IntPtr obj, System.IntPtr pd, bool enabled) + { + Eina.Log.Debug("function efl_text_password_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFormat)wrapper).SetPassword(enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_password_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); } - return _ret_var; - } else { - return efl_text_replacement_char_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_replacement_char_get_delegate efl_text_replacement_char_get_static_delegate; + private static efl_text_password_set_delegate efl_text_password_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_replacement_char_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_replacement_char_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_replacement_char_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_replacement_char_get"); + + private static System.String replacement_char_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_replacement_char_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextFormat)wrapper).GetReplacementChar(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_replacement_char_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + return _ret_var; + } + else + { + return efl_text_replacement_char_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_replacement_char_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); - public static Efl.Eo.FunctionWrapper efl_text_replacement_char_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_replacement_char_set"); - private static void replacement_char_set(System.IntPtr obj, System.IntPtr pd, System.String repch) - { - Eina.Log.Debug("function efl_text_replacement_char_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextFormat)wrapper).SetReplacementChar( repch); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_replacement_char_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repch); + private static efl_text_replacement_char_get_delegate efl_text_replacement_char_get_static_delegate; + + + private delegate void efl_text_replacement_char_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + + + public delegate void efl_text_replacement_char_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + + public static Efl.Eo.FunctionWrapper efl_text_replacement_char_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_replacement_char_set"); + + private static void replacement_char_set(System.IntPtr obj, System.IntPtr pd, System.String repch) + { + Eina.Log.Debug("function efl_text_replacement_char_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextFormat)wrapper).SetReplacementChar(repch); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_replacement_char_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repch); + } } - } - private static efl_text_replacement_char_set_delegate efl_text_replacement_char_set_static_delegate; + + private static efl_text_replacement_char_set_delegate efl_text_replacement_char_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} -namespace Efl { +} + +namespace Efl { + /// Wrap mode of the text (not in effect if not multiline) public enum TextFormatWrap { @@ -1128,8 +1528,11 @@ Mixed = 3, /// Wrap mode hyphenation Hyphenation = 4, } -} -namespace Efl { + +} + +namespace Efl { + /// Auto-horizontal alignment of the text public enum TextFormatHorizontalAlignmentAutoType { @@ -1142,4 +1545,6 @@ Locale = 2, /// Text is places at opposite side of LTR/RTL (bidirectional) settings End = 3, } -} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_interactive.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_interactive.eo.cs index e482143..65c33c7 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_interactive.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_interactive.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// This is an interface interactive text inputs should implement -[ITextInteractiveNativeInherit] +[Efl.ITextInteractiveConcrete.NativeMethods] public interface ITextInteractive : Efl.IText , Efl.ITextFont , @@ -19,16 +21,14 @@ public interface ITextInteractive : bool GetSelectionAllowed(); /// Whether or not selection is allowed on this object /// true if enabled, false otherwise -/// -void SetSelectionAllowed( bool allowed); +void SetSelectionAllowed(bool allowed); /// The cursors used for selection handling. /// If the cursors are equal there's no selection. /// /// You are allowed to retain and modify them. Modifying them modifies the selection of the object. /// The start of the selection /// The end of the selection -/// -void GetSelectionCursors( out Efl.TextCursorCursor start, out Efl.TextCursorCursor end); +void GetSelectionCursors(out Efl.TextCursorCursor start, out Efl.TextCursorCursor end); /// Whether the entry is editable. /// By default text interactives are editable. However setting this property to false will make it so that key input will be disregarded. /// If true, user input will be inserted in the entry, if not, the entry is read-only and no user input is allowed. @@ -36,10 +36,8 @@ bool GetEditable(); /// Whether the entry is editable. /// By default text interactives are editable. However setting this property to false will make it so that key input will be disregarded. /// If true, user input will be inserted in the entry, if not, the entry is read-only and no user input is allowed. -/// -void SetEditable( bool editable); +void SetEditable(bool editable); /// Clears the selection. -/// void SelectNone(); /// The selection on the object has changed. Query using event EventHandler TextSelectionChangedEvt; @@ -64,180 +62,236 @@ ITextInteractive , Efl.IText, Efl.ITextFont, Efl.ITextFormat, Efl.ITextStyle { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextInteractiveConcrete)) - return Efl.ITextInteractiveNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextInteractiveConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_text_interactive_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextInteractiveConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextInteractiveConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object TextSelectionChangedEvtKey = new object(); + /// The selection on the object has changed. Query using public event EventHandler TextSelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_TEXT_INTERACTIVE_EVENT_TEXT_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_TextSelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(TextSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_TEXT_INTERACTIVE_EVENT_TEXT_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_TextSelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(TextSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event TextSelectionChangedEvt. - public void On_TextSelectionChangedEvt(EventArgs e) + public void OnTextSelectionChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[TextSelectionChangedEvtKey]; + var key = "_EFL_TEXT_INTERACTIVE_EVENT_TEXT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_TextSelectionChangedEvt_delegate; - private void on_TextSelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_TextSelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_TextSelectionChangedEvt_delegate = new Efl.EventCb(on_TextSelectionChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Whether or not selection is allowed on this object /// true if enabled, false otherwise public bool GetSelectionAllowed() { - var _ret_var = Efl.ITextInteractiveNativeInherit.efl_text_interactive_selection_allowed_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_selection_allowed_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether or not selection is allowed on this object /// true if enabled, false otherwise - /// - public void SetSelectionAllowed( bool allowed) { - Efl.ITextInteractiveNativeInherit.efl_text_interactive_selection_allowed_set_ptr.Value.Delegate(this.NativeHandle, allowed); + public void SetSelectionAllowed(bool allowed) { + Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_selection_allowed_set_ptr.Value.Delegate(this.NativeHandle,allowed); Eina.Error.RaiseIfUnhandledException(); } /// The cursors used for selection handling. @@ -246,31 +300,28 @@ private static object TextSelectionChangedEvtKey = new object(); /// You are allowed to retain and modify them. Modifying them modifies the selection of the object. /// The start of the selection /// The end of the selection - /// - public void GetSelectionCursors( out Efl.TextCursorCursor start, out Efl.TextCursorCursor end) { - Efl.ITextInteractiveNativeInherit.efl_text_interactive_selection_cursors_get_ptr.Value.Delegate(this.NativeHandle, out start, out end); + public void GetSelectionCursors(out Efl.TextCursorCursor start, out Efl.TextCursorCursor end) { + Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_selection_cursors_get_ptr.Value.Delegate(this.NativeHandle,out start, out end); Eina.Error.RaiseIfUnhandledException(); } /// Whether the entry is editable. /// By default text interactives are editable. However setting this property to false will make it so that key input will be disregarded. /// If true, user input will be inserted in the entry, if not, the entry is read-only and no user input is allowed. public bool GetEditable() { - var _ret_var = Efl.ITextInteractiveNativeInherit.efl_text_interactive_editable_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_editable_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether the entry is editable. /// By default text interactives are editable. However setting this property to false will make it so that key input will be disregarded. /// If true, user input will be inserted in the entry, if not, the entry is read-only and no user input is allowed. - /// - public void SetEditable( bool editable) { - Efl.ITextInteractiveNativeInherit.efl_text_interactive_editable_set_ptr.Value.Delegate(this.NativeHandle, editable); + public void SetEditable(bool editable) { + Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_editable_set_ptr.Value.Delegate(this.NativeHandle,editable); Eina.Error.RaiseIfUnhandledException(); } /// Clears the selection. - /// public void SelectNone() { - Efl.ITextInteractiveNativeInherit.efl_text_interactive_select_none_ptr.Value.Delegate(this.NativeHandle); + Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_select_none_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the text string currently being displayed by the given text object. @@ -280,7 +331,7 @@ private static object TextSelectionChangedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -288,9 +339,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate(this.NativeHandle, text); + public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate(this.NativeHandle,text); Eina.Error.RaiseIfUnhandledException(); } /// Retrieve the font family and size in use on a given text object. @@ -299,9 +349,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// See also . /// The font family name or filename. /// The font size, in points. - /// - public void GetFont( out System.String font, out Efl.Font.Size size) { - Efl.ITextFontNativeInherit.efl_text_font_get_ptr.Value.Delegate(this.NativeHandle, out font, out size); + public void GetFont(out System.String font, out Efl.Font.Size size) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_get_ptr.Value.Delegate(this.NativeHandle,out font, out size); Eina.Error.RaiseIfUnhandledException(); } /// Set the font family, filename and size for a given text object. @@ -310,16 +359,15 @@ private static object TextSelectionChangedEvtKey = new object(); /// See also , . /// The font family name or filename. /// The font size, in points. - /// - public void SetFont( System.String font, Efl.Font.Size size) { - Efl.ITextFontNativeInherit.efl_text_font_set_ptr.Value.Delegate(this.NativeHandle, font, size); + public void SetFont(System.String font, Efl.Font.Size size) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_set_ptr.Value.Delegate(this.NativeHandle,font, size); Eina.Error.RaiseIfUnhandledException(); } /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. public System.String GetFontSource() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_source_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -328,265 +376,247 @@ private static object TextSelectionChangedEvtKey = new object(); /// /// See also . /// The font file's path. - /// - public void SetFontSource( System.String font_source) { - Efl.ITextFontNativeInherit.efl_text_font_source_set_ptr.Value.Delegate(this.NativeHandle, font_source); + public void SetFontSource(System.String font_source) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_set_ptr.Value.Delegate(this.NativeHandle,font_source); Eina.Error.RaiseIfUnhandledException(); } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks public System.String GetFontFallbacks() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_fallbacks_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks - /// - public void SetFontFallbacks( System.String font_fallbacks) { - Efl.ITextFontNativeInherit.efl_text_font_fallbacks_set_ptr.Value.Delegate(this.NativeHandle, font_fallbacks); + public void SetFontFallbacks(System.String font_fallbacks) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_set_ptr.Value.Delegate(this.NativeHandle,font_fallbacks); Eina.Error.RaiseIfUnhandledException(); } /// Type of weight of the displayed font /// Default is . /// Font weight public Efl.TextFontWeight GetFontWeight() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_weight_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of weight of the displayed font /// Default is . /// Font weight - /// - public void SetFontWeight( Efl.TextFontWeight font_weight) { - Efl.ITextFontNativeInherit.efl_text_font_weight_set_ptr.Value.Delegate(this.NativeHandle, font_weight); + public void SetFontWeight(Efl.TextFontWeight font_weight) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_set_ptr.Value.Delegate(this.NativeHandle,font_weight); Eina.Error.RaiseIfUnhandledException(); } /// Type of slant of the displayed font /// Default is . /// Font slant public Efl.TextFontSlant GetFontSlant() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_slant_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of slant of the displayed font /// Default is . /// Font slant - /// - public void SetFontSlant( Efl.TextFontSlant style) { - Efl.ITextFontNativeInherit.efl_text_font_slant_set_ptr.Value.Delegate(this.NativeHandle, style); + public void SetFontSlant(Efl.TextFontSlant style) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_set_ptr.Value.Delegate(this.NativeHandle,style); Eina.Error.RaiseIfUnhandledException(); } /// Type of width of the displayed font /// Default is . /// Font width public Efl.TextFontWidth GetFontWidth() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_width_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of width of the displayed font /// Default is . /// Font width - /// - public void SetFontWidth( Efl.TextFontWidth width) { - Efl.ITextFontNativeInherit.efl_text_font_width_set_ptr.Value.Delegate(this.NativeHandle, width); + public void SetFontWidth(Efl.TextFontWidth width) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_set_ptr.Value.Delegate(this.NativeHandle,width); Eina.Error.RaiseIfUnhandledException(); } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language public System.String GetFontLang() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_lang_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language - /// - public void SetFontLang( System.String lang) { - Efl.ITextFontNativeInherit.efl_text_font_lang_set_ptr.Value.Delegate(this.NativeHandle, lang); + public void SetFontLang(System.String lang) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_set_ptr.Value.Delegate(this.NativeHandle,lang); Eina.Error.RaiseIfUnhandledException(); } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable public Efl.TextFontBitmapScalable GetFontBitmapScalable() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable - /// - public void SetFontBitmapScalable( Efl.TextFontBitmapScalable scalable) { - Efl.ITextFontNativeInherit.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(this.NativeHandle, scalable); + public void SetFontBitmapScalable(Efl.TextFontBitmapScalable scalable) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(this.NativeHandle,scalable); Eina.Error.RaiseIfUnhandledException(); } /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value public double GetEllipsis() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_ellipsis_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_ellipsis_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value - /// - public void SetEllipsis( double value) { - Efl.ITextFormatNativeInherit.efl_text_ellipsis_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetEllipsis(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_ellipsis_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Wrap mode for use in the text /// Wrap mode public Efl.TextFormatWrap GetWrap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_wrap_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_wrap_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Wrap mode for use in the text /// Wrap mode - /// - public void SetWrap( Efl.TextFormatWrap wrap) { - Efl.ITextFormatNativeInherit.efl_text_wrap_set_ptr.Value.Delegate(this.NativeHandle, wrap); + public void SetWrap(Efl.TextFormatWrap wrap) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_wrap_set_ptr.Value.Delegate(this.NativeHandle,wrap); Eina.Error.RaiseIfUnhandledException(); } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise public bool GetMultiline() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_multiline_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_multiline_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise - /// - public void SetMultiline( bool enabled) { - Efl.ITextFormatNativeInherit.efl_text_multiline_set_ptr.Value.Delegate(this.NativeHandle, enabled); + public void SetMultiline(bool enabled) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_multiline_set_ptr.Value.Delegate(this.NativeHandle,enabled); Eina.Error.RaiseIfUnhandledException(); } /// Horizontal alignment of text /// Alignment type public Efl.TextFormatHorizontalAlignmentAutoType GetHalignAutoType() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_halign_auto_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_auto_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Horizontal alignment of text /// Alignment type - /// - public void SetHalignAutoType( Efl.TextFormatHorizontalAlignmentAutoType value) { - Efl.ITextFormatNativeInherit.efl_text_halign_auto_type_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetHalignAutoType(Efl.TextFormatHorizontalAlignmentAutoType value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_auto_type_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Horizontal alignment of text /// Horizontal alignment value public double GetHalign() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_halign_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Horizontal alignment of text /// Horizontal alignment value - /// - public void SetHalign( double value) { - Efl.ITextFormatNativeInherit.efl_text_halign_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetHalign(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Vertical alignment of text /// Vertical alignment value public double GetValign() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_valign_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_valign_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Vertical alignment of text /// Vertical alignment value - /// - public void SetValign( double value) { - Efl.ITextFormatNativeInherit.efl_text_valign_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetValign(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_valign_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value public double GetLinegap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_linegap_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_linegap_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value - /// - public void SetLinegap( double value) { - Efl.ITextFormatNativeInherit.efl_text_linegap_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetLinegap(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_linegap_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value public double GetLinerelgap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_linerelgap_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_linerelgap_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value - /// - public void SetLinerelgap( double value) { - Efl.ITextFormatNativeInherit.efl_text_linerelgap_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetLinerelgap(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_linerelgap_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Tabstops value /// Tapstops value public int GetTabstops() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_tabstops_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_tabstops_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Tabstops value /// Tapstops value - /// - public void SetTabstops( int value) { - Efl.ITextFormatNativeInherit.efl_text_tabstops_set_ptr.Value.Delegate(this.NativeHandle, value); + public void SetTabstops(int value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_tabstops_set_ptr.Value.Delegate(this.NativeHandle,value); Eina.Error.RaiseIfUnhandledException(); } /// Whether text is a password /// true if the text is a password, false otherwise public bool GetPassword() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_password_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_password_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether text is a password /// true if the text is a password, false otherwise - /// - public void SetPassword( bool enabled) { - Efl.ITextFormatNativeInherit.efl_text_password_set_ptr.Value.Delegate(this.NativeHandle, enabled); + public void SetPassword(bool enabled) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_password_set_ptr.Value.Delegate(this.NativeHandle,enabled); Eina.Error.RaiseIfUnhandledException(); } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character public System.String GetReplacementChar() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_replacement_char_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_replacement_char_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character - /// - public void SetReplacementChar( System.String repch) { - Efl.ITextFormatNativeInherit.efl_text_replacement_char_set_ptr.Value.Delegate(this.NativeHandle, repch); + public void SetReplacementChar(System.String repch) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_replacement_char_set_ptr.Value.Delegate(this.NativeHandle,repch); Eina.Error.RaiseIfUnhandledException(); } /// Color of text, excluding style @@ -594,9 +624,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void GetNormalColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_normal_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetNormalColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_normal_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of text, excluding style @@ -604,23 +633,21 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void SetNormalColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_normal_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetNormalColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_normal_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Enable or disable backing type /// Backing type public Efl.TextStyleBackingType GetBackingType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_backing_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable or disable backing type /// Backing type - /// - public void SetBackingType( Efl.TextStyleBackingType type) { - Efl.ITextStyleNativeInherit.efl_text_backing_type_set_ptr.Value.Delegate(this.NativeHandle, type); + public void SetBackingType(Efl.TextStyleBackingType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_type_set_ptr.Value.Delegate(this.NativeHandle,type); Eina.Error.RaiseIfUnhandledException(); } /// Backing color @@ -628,9 +655,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void GetBackingColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_backing_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetBackingColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Backing color @@ -638,23 +664,21 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void SetBackingColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_backing_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetBackingColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Sets an underline style on the text /// Underline type public Efl.TextStyleUnderlineType GetUnderlineType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets an underline style on the text /// Underline type - /// - public void SetUnderlineType( Efl.TextStyleUnderlineType type) { - Efl.ITextStyleNativeInherit.efl_text_underline_type_set_ptr.Value.Delegate(this.NativeHandle, type); + public void SetUnderlineType(Efl.TextStyleUnderlineType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_type_set_ptr.Value.Delegate(this.NativeHandle,type); Eina.Error.RaiseIfUnhandledException(); } /// Color of normal underline style @@ -662,9 +686,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void GetUnderlineColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetUnderlineColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of normal underline style @@ -672,23 +695,21 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void SetUnderlineColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetUnderlineColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Height of underline style /// Height public double GetUnderlineHeight() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_height_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_height_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Height of underline style /// Height - /// - public void SetUnderlineHeight( double height) { - Efl.ITextStyleNativeInherit.efl_text_underline_height_set_ptr.Value.Delegate(this.NativeHandle, height); + public void SetUnderlineHeight(double height) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_height_set_ptr.Value.Delegate(this.NativeHandle,height); Eina.Error.RaiseIfUnhandledException(); } /// Color of dashed underline style @@ -696,9 +717,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void GetUnderlineDashedColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetUnderlineDashedColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of dashed underline style @@ -706,37 +726,34 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void SetUnderlineDashedColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetUnderlineDashedColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Width of dashed underline style /// Width public int GetUnderlineDashedWidth() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_dashed_width_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_width_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Width of dashed underline style /// Width - /// - public void SetUnderlineDashedWidth( int width) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_width_set_ptr.Value.Delegate(this.NativeHandle, width); + public void SetUnderlineDashedWidth(int width) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_width_set_ptr.Value.Delegate(this.NativeHandle,width); Eina.Error.RaiseIfUnhandledException(); } /// Gap of dashed underline style /// Gap public int GetUnderlineDashedGap() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_dashed_gap_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_gap_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gap of dashed underline style /// Gap - /// - public void SetUnderlineDashedGap( int gap) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_gap_set_ptr.Value.Delegate(this.NativeHandle, gap); + public void SetUnderlineDashedGap(int gap) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_gap_set_ptr.Value.Delegate(this.NativeHandle,gap); Eina.Error.RaiseIfUnhandledException(); } /// Color of underline2 style @@ -744,9 +761,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void GetUnderline2Color( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline2_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetUnderline2Color(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline2_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of underline2 style @@ -754,23 +770,21 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void SetUnderline2Color( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline2_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetUnderline2Color(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline2_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Type of strikethrough style /// Strikethrough type public Efl.TextStyleStrikethroughType GetStrikethroughType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_strikethrough_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of strikethrough style /// Strikethrough type - /// - public void SetStrikethroughType( Efl.TextStyleStrikethroughType type) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_type_set_ptr.Value.Delegate(this.NativeHandle, type); + public void SetStrikethroughType(Efl.TextStyleStrikethroughType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_type_set_ptr.Value.Delegate(this.NativeHandle,type); Eina.Error.RaiseIfUnhandledException(); } /// Color of strikethrough_style @@ -778,9 +792,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void GetStrikethroughColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetStrikethroughColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of strikethrough_style @@ -788,23 +801,21 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void SetStrikethroughColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetStrikethroughColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Type of effect used for the displayed text /// Effect type public Efl.TextStyleEffectType GetEffectType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_effect_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_effect_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of effect used for the displayed text /// Effect type - /// - public void SetEffectType( Efl.TextStyleEffectType type) { - Efl.ITextStyleNativeInherit.efl_text_effect_type_set_ptr.Value.Delegate(this.NativeHandle, type); + public void SetEffectType(Efl.TextStyleEffectType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_effect_type_set_ptr.Value.Delegate(this.NativeHandle,type); Eina.Error.RaiseIfUnhandledException(); } /// Color of outline effect @@ -812,9 +823,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void GetOutlineColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_outline_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetOutlineColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_outline_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of outline effect @@ -822,23 +832,21 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void SetOutlineColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_outline_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetOutlineColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_outline_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Direction of shadow effect /// Shadow direction public Efl.TextStyleShadowDirection GetShadowDirection() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_shadow_direction_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_direction_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Direction of shadow effect /// Shadow direction - /// - public void SetShadowDirection( Efl.TextStyleShadowDirection type) { - Efl.ITextStyleNativeInherit.efl_text_shadow_direction_set_ptr.Value.Delegate(this.NativeHandle, type); + public void SetShadowDirection(Efl.TextStyleShadowDirection type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_direction_set_ptr.Value.Delegate(this.NativeHandle,type); Eina.Error.RaiseIfUnhandledException(); } /// Color of shadow effect @@ -846,9 +854,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void GetShadowColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_shadow_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetShadowColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of shadow effect @@ -856,9 +863,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void SetShadowColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_shadow_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetShadowColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Color of glow effect @@ -866,9 +872,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void GetGlowColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetGlowColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of glow effect @@ -876,9 +881,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void SetGlowColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetGlowColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Second color of the glow effect @@ -886,9 +890,8 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void GetGlow2Color( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow2_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetGlow2Color(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow2_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Second color of the glow effect @@ -896,2617 +899,4053 @@ private static object TextSelectionChangedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - public void SetGlow2Color( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow2_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetGlow2Color(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow2_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Program that applies a special filter /// See . /// Filter code public System.String GetGfxFilter() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_gfx_filter_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_gfx_filter_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Program that applies a special filter /// See . /// Filter code - /// - public void SetGfxFilter( System.String code) { - Efl.ITextStyleNativeInherit.efl_text_gfx_filter_set_ptr.Value.Delegate(this.NativeHandle, code); + public void SetGfxFilter(System.String code) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_gfx_filter_set_ptr.Value.Delegate(this.NativeHandle,code); Eina.Error.RaiseIfUnhandledException(); } /// Whether or not selection is allowed on this object /// true if enabled, false otherwise public bool SelectionAllowed { get { return GetSelectionAllowed(); } - set { SetSelectionAllowed( value); } + set { SetSelectionAllowed(value); } } /// Whether the entry is editable. /// By default text interactives are editable. However setting this property to false will make it so that key input will be disregarded. /// If true, user input will be inserted in the entry, if not, the entry is read-only and no user input is allowed. public bool Editable { get { return GetEditable(); } - set { SetEditable( value); } + set { SetEditable(value); } } /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. public System.String FontSource { get { return GetFontSource(); } - set { SetFontSource( value); } + set { SetFontSource(value); } } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks public System.String FontFallbacks { get { return GetFontFallbacks(); } - set { SetFontFallbacks( value); } + set { SetFontFallbacks(value); } } /// Type of weight of the displayed font /// Default is . /// Font weight public Efl.TextFontWeight FontWeight { get { return GetFontWeight(); } - set { SetFontWeight( value); } + set { SetFontWeight(value); } } /// Type of slant of the displayed font /// Default is . /// Font slant public Efl.TextFontSlant FontSlant { get { return GetFontSlant(); } - set { SetFontSlant( value); } + set { SetFontSlant(value); } } /// Type of width of the displayed font /// Default is . /// Font width public Efl.TextFontWidth FontWidth { get { return GetFontWidth(); } - set { SetFontWidth( value); } + set { SetFontWidth(value); } } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language public System.String FontLang { get { return GetFontLang(); } - set { SetFontLang( value); } + set { SetFontLang(value); } } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable public Efl.TextFontBitmapScalable FontBitmapScalable { get { return GetFontBitmapScalable(); } - set { SetFontBitmapScalable( value); } + set { SetFontBitmapScalable(value); } } /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value public double Ellipsis { get { return GetEllipsis(); } - set { SetEllipsis( value); } + set { SetEllipsis(value); } } /// Wrap mode for use in the text /// Wrap mode public Efl.TextFormatWrap Wrap { get { return GetWrap(); } - set { SetWrap( value); } + set { SetWrap(value); } } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise public bool Multiline { get { return GetMultiline(); } - set { SetMultiline( value); } + set { SetMultiline(value); } } /// Horizontal alignment of text /// Alignment type public Efl.TextFormatHorizontalAlignmentAutoType HalignAutoType { get { return GetHalignAutoType(); } - set { SetHalignAutoType( value); } + set { SetHalignAutoType(value); } } /// Horizontal alignment of text /// Horizontal alignment value public double Halign { get { return GetHalign(); } - set { SetHalign( value); } + set { SetHalign(value); } } /// Vertical alignment of text /// Vertical alignment value public double Valign { get { return GetValign(); } - set { SetValign( value); } + set { SetValign(value); } } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value public double Linegap { get { return GetLinegap(); } - set { SetLinegap( value); } + set { SetLinegap(value); } } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value public double Linerelgap { get { return GetLinerelgap(); } - set { SetLinerelgap( value); } + set { SetLinerelgap(value); } } /// Tabstops value /// Tapstops value public int Tabstops { get { return GetTabstops(); } - set { SetTabstops( value); } + set { SetTabstops(value); } } /// Whether text is a password /// true if the text is a password, false otherwise public bool Password { get { return GetPassword(); } - set { SetPassword( value); } + set { SetPassword(value); } } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character public System.String ReplacementChar { get { return GetReplacementChar(); } - set { SetReplacementChar( value); } + set { SetReplacementChar(value); } } /// Enable or disable backing type /// Backing type public Efl.TextStyleBackingType BackingType { get { return GetBackingType(); } - set { SetBackingType( value); } + set { SetBackingType(value); } } /// Sets an underline style on the text /// Underline type public Efl.TextStyleUnderlineType UnderlineType { get { return GetUnderlineType(); } - set { SetUnderlineType( value); } + set { SetUnderlineType(value); } } /// Height of underline style /// Height public double UnderlineHeight { get { return GetUnderlineHeight(); } - set { SetUnderlineHeight( value); } + set { SetUnderlineHeight(value); } } /// Width of dashed underline style /// Width public int UnderlineDashedWidth { get { return GetUnderlineDashedWidth(); } - set { SetUnderlineDashedWidth( value); } + set { SetUnderlineDashedWidth(value); } } /// Gap of dashed underline style /// Gap public int UnderlineDashedGap { get { return GetUnderlineDashedGap(); } - set { SetUnderlineDashedGap( value); } + set { SetUnderlineDashedGap(value); } } /// Type of strikethrough style /// Strikethrough type public Efl.TextStyleStrikethroughType StrikethroughType { get { return GetStrikethroughType(); } - set { SetStrikethroughType( value); } + set { SetStrikethroughType(value); } } /// Type of effect used for the displayed text /// Effect type public Efl.TextStyleEffectType EffectType { get { return GetEffectType(); } - set { SetEffectType( value); } + set { SetEffectType(value); } } /// Direction of shadow effect /// Shadow direction public Efl.TextStyleShadowDirection ShadowDirection { get { return GetShadowDirection(); } - set { SetShadowDirection( value); } + set { SetShadowDirection(value); } } /// Program that applies a special filter /// See . /// Filter code public System.String GfxFilter { get { return GetGfxFilter(); } - set { SetGfxFilter( value); } + set { SetGfxFilter(value); } } private static IntPtr GetEflClassStatic() { return Efl.ITextInteractiveConcrete.efl_text_interactive_interface_get(); } -} -public class ITextInteractiveNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_text_interactive_selection_allowed_get_static_delegate == null) - efl_text_interactive_selection_allowed_get_static_delegate = new efl_text_interactive_selection_allowed_get_delegate(selection_allowed_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectionAllowed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_selection_allowed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_allowed_get_static_delegate)}); - if (efl_text_interactive_selection_allowed_set_static_delegate == null) - efl_text_interactive_selection_allowed_set_static_delegate = new efl_text_interactive_selection_allowed_set_delegate(selection_allowed_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelectionAllowed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_selection_allowed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_allowed_set_static_delegate)}); - if (efl_text_interactive_selection_cursors_get_static_delegate == null) - efl_text_interactive_selection_cursors_get_static_delegate = new efl_text_interactive_selection_cursors_get_delegate(selection_cursors_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectionCursors") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_selection_cursors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_cursors_get_static_delegate)}); - if (efl_text_interactive_editable_get_static_delegate == null) - efl_text_interactive_editable_get_static_delegate = new efl_text_interactive_editable_get_delegate(editable_get); - if (methods.FirstOrDefault(m => m.Name == "GetEditable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_editable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_editable_get_static_delegate)}); - if (efl_text_interactive_editable_set_static_delegate == null) - efl_text_interactive_editable_set_static_delegate = new efl_text_interactive_editable_set_delegate(editable_set); - if (methods.FirstOrDefault(m => m.Name == "SetEditable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_editable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_editable_set_static_delegate)}); - if (efl_text_interactive_select_none_static_delegate == null) - efl_text_interactive_select_none_static_delegate = new efl_text_interactive_select_none_delegate(select_none); - if (methods.FirstOrDefault(m => m.Name == "SelectNone") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_select_none"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_select_none_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_text_font_get_static_delegate == null) - efl_text_font_get_static_delegate = new efl_text_font_get_delegate(font_get); - if (methods.FirstOrDefault(m => m.Name == "GetFont") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_get_static_delegate)}); - if (efl_text_font_set_static_delegate == null) - efl_text_font_set_static_delegate = new efl_text_font_set_delegate(font_set); - if (methods.FirstOrDefault(m => m.Name == "SetFont") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_set_static_delegate)}); - if (efl_text_font_source_get_static_delegate == null) - efl_text_font_source_get_static_delegate = new efl_text_font_source_get_delegate(font_source_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_get_static_delegate)}); - if (efl_text_font_source_set_static_delegate == null) - efl_text_font_source_set_static_delegate = new efl_text_font_source_set_delegate(font_source_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_set_static_delegate)}); - if (efl_text_font_fallbacks_get_static_delegate == null) - efl_text_font_fallbacks_get_static_delegate = new efl_text_font_fallbacks_get_delegate(font_fallbacks_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontFallbacks") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_fallbacks_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_get_static_delegate)}); - if (efl_text_font_fallbacks_set_static_delegate == null) - efl_text_font_fallbacks_set_static_delegate = new efl_text_font_fallbacks_set_delegate(font_fallbacks_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontFallbacks") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_fallbacks_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_set_static_delegate)}); - if (efl_text_font_weight_get_static_delegate == null) - efl_text_font_weight_get_static_delegate = new efl_text_font_weight_get_delegate(font_weight_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_get_static_delegate)}); - if (efl_text_font_weight_set_static_delegate == null) - efl_text_font_weight_set_static_delegate = new efl_text_font_weight_set_delegate(font_weight_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_set_static_delegate)}); - if (efl_text_font_slant_get_static_delegate == null) - efl_text_font_slant_get_static_delegate = new efl_text_font_slant_get_delegate(font_slant_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontSlant") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_slant_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_get_static_delegate)}); - if (efl_text_font_slant_set_static_delegate == null) - efl_text_font_slant_set_static_delegate = new efl_text_font_slant_set_delegate(font_slant_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontSlant") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_slant_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_set_static_delegate)}); - if (efl_text_font_width_get_static_delegate == null) - efl_text_font_width_get_static_delegate = new efl_text_font_width_get_delegate(font_width_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_get_static_delegate)}); - if (efl_text_font_width_set_static_delegate == null) - efl_text_font_width_set_static_delegate = new efl_text_font_width_set_delegate(font_width_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_set_static_delegate)}); - if (efl_text_font_lang_get_static_delegate == null) - efl_text_font_lang_get_static_delegate = new efl_text_font_lang_get_delegate(font_lang_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontLang") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_lang_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_get_static_delegate)}); - if (efl_text_font_lang_set_static_delegate == null) - efl_text_font_lang_set_static_delegate = new efl_text_font_lang_set_delegate(font_lang_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontLang") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_lang_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_set_static_delegate)}); - if (efl_text_font_bitmap_scalable_get_static_delegate == null) - efl_text_font_bitmap_scalable_get_static_delegate = new efl_text_font_bitmap_scalable_get_delegate(font_bitmap_scalable_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontBitmapScalable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_bitmap_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_get_static_delegate)}); - if (efl_text_font_bitmap_scalable_set_static_delegate == null) - efl_text_font_bitmap_scalable_set_static_delegate = new efl_text_font_bitmap_scalable_set_delegate(font_bitmap_scalable_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontBitmapScalable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_bitmap_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_set_static_delegate)}); - if (efl_text_ellipsis_get_static_delegate == null) - efl_text_ellipsis_get_static_delegate = new efl_text_ellipsis_get_delegate(ellipsis_get); - if (methods.FirstOrDefault(m => m.Name == "GetEllipsis") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_ellipsis_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_get_static_delegate)}); - if (efl_text_ellipsis_set_static_delegate == null) - efl_text_ellipsis_set_static_delegate = new efl_text_ellipsis_set_delegate(ellipsis_set); - if (methods.FirstOrDefault(m => m.Name == "SetEllipsis") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_ellipsis_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_set_static_delegate)}); - if (efl_text_wrap_get_static_delegate == null) - efl_text_wrap_get_static_delegate = new efl_text_wrap_get_delegate(wrap_get); - if (methods.FirstOrDefault(m => m.Name == "GetWrap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_wrap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_get_static_delegate)}); - if (efl_text_wrap_set_static_delegate == null) - efl_text_wrap_set_static_delegate = new efl_text_wrap_set_delegate(wrap_set); - if (methods.FirstOrDefault(m => m.Name == "SetWrap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_wrap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_set_static_delegate)}); - if (efl_text_multiline_get_static_delegate == null) - efl_text_multiline_get_static_delegate = new efl_text_multiline_get_delegate(multiline_get); - if (methods.FirstOrDefault(m => m.Name == "GetMultiline") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_multiline_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_get_static_delegate)}); - if (efl_text_multiline_set_static_delegate == null) - efl_text_multiline_set_static_delegate = new efl_text_multiline_set_delegate(multiline_set); - if (methods.FirstOrDefault(m => m.Name == "SetMultiline") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_multiline_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_set_static_delegate)}); - if (efl_text_halign_auto_type_get_static_delegate == null) - efl_text_halign_auto_type_get_static_delegate = new efl_text_halign_auto_type_get_delegate(halign_auto_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetHalignAutoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_auto_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_get_static_delegate)}); - if (efl_text_halign_auto_type_set_static_delegate == null) - efl_text_halign_auto_type_set_static_delegate = new efl_text_halign_auto_type_set_delegate(halign_auto_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetHalignAutoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_auto_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_set_static_delegate)}); - if (efl_text_halign_get_static_delegate == null) - efl_text_halign_get_static_delegate = new efl_text_halign_get_delegate(halign_get); - if (methods.FirstOrDefault(m => m.Name == "GetHalign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_get_static_delegate)}); - if (efl_text_halign_set_static_delegate == null) - efl_text_halign_set_static_delegate = new efl_text_halign_set_delegate(halign_set); - if (methods.FirstOrDefault(m => m.Name == "SetHalign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_set_static_delegate)}); - if (efl_text_valign_get_static_delegate == null) - efl_text_valign_get_static_delegate = new efl_text_valign_get_delegate(valign_get); - if (methods.FirstOrDefault(m => m.Name == "GetValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_get_static_delegate)}); - if (efl_text_valign_set_static_delegate == null) - efl_text_valign_set_static_delegate = new efl_text_valign_set_delegate(valign_set); - if (methods.FirstOrDefault(m => m.Name == "SetValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_set_static_delegate)}); - if (efl_text_linegap_get_static_delegate == null) - efl_text_linegap_get_static_delegate = new efl_text_linegap_get_delegate(linegap_get); - if (methods.FirstOrDefault(m => m.Name == "GetLinegap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linegap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_get_static_delegate)}); - if (efl_text_linegap_set_static_delegate == null) - efl_text_linegap_set_static_delegate = new efl_text_linegap_set_delegate(linegap_set); - if (methods.FirstOrDefault(m => m.Name == "SetLinegap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linegap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_set_static_delegate)}); - if (efl_text_linerelgap_get_static_delegate == null) - efl_text_linerelgap_get_static_delegate = new efl_text_linerelgap_get_delegate(linerelgap_get); - if (methods.FirstOrDefault(m => m.Name == "GetLinerelgap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linerelgap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_get_static_delegate)}); - if (efl_text_linerelgap_set_static_delegate == null) - efl_text_linerelgap_set_static_delegate = new efl_text_linerelgap_set_delegate(linerelgap_set); - if (methods.FirstOrDefault(m => m.Name == "SetLinerelgap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linerelgap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_set_static_delegate)}); - if (efl_text_tabstops_get_static_delegate == null) - efl_text_tabstops_get_static_delegate = new efl_text_tabstops_get_delegate(tabstops_get); - if (methods.FirstOrDefault(m => m.Name == "GetTabstops") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_tabstops_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_get_static_delegate)}); - if (efl_text_tabstops_set_static_delegate == null) - efl_text_tabstops_set_static_delegate = new efl_text_tabstops_set_delegate(tabstops_set); - if (methods.FirstOrDefault(m => m.Name == "SetTabstops") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_tabstops_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_set_static_delegate)}); - if (efl_text_password_get_static_delegate == null) - efl_text_password_get_static_delegate = new efl_text_password_get_delegate(password_get); - if (methods.FirstOrDefault(m => m.Name == "GetPassword") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_password_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_get_static_delegate)}); - if (efl_text_password_set_static_delegate == null) - efl_text_password_set_static_delegate = new efl_text_password_set_delegate(password_set); - if (methods.FirstOrDefault(m => m.Name == "SetPassword") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_password_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_set_static_delegate)}); - if (efl_text_replacement_char_get_static_delegate == null) - efl_text_replacement_char_get_static_delegate = new efl_text_replacement_char_get_delegate(replacement_char_get); - if (methods.FirstOrDefault(m => m.Name == "GetReplacementChar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_replacement_char_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_get_static_delegate)}); - if (efl_text_replacement_char_set_static_delegate == null) - efl_text_replacement_char_set_static_delegate = new efl_text_replacement_char_set_delegate(replacement_char_set); - if (methods.FirstOrDefault(m => m.Name == "SetReplacementChar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_replacement_char_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_set_static_delegate)}); - if (efl_text_normal_color_get_static_delegate == null) - efl_text_normal_color_get_static_delegate = new efl_text_normal_color_get_delegate(normal_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetNormalColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_normal_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_get_static_delegate)}); - if (efl_text_normal_color_set_static_delegate == null) - efl_text_normal_color_set_static_delegate = new efl_text_normal_color_set_delegate(normal_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetNormalColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_normal_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_set_static_delegate)}); - if (efl_text_backing_type_get_static_delegate == null) - efl_text_backing_type_get_static_delegate = new efl_text_backing_type_get_delegate(backing_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetBackingType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_get_static_delegate)}); - if (efl_text_backing_type_set_static_delegate == null) - efl_text_backing_type_set_static_delegate = new efl_text_backing_type_set_delegate(backing_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetBackingType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_set_static_delegate)}); - if (efl_text_backing_color_get_static_delegate == null) - efl_text_backing_color_get_static_delegate = new efl_text_backing_color_get_delegate(backing_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetBackingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_get_static_delegate)}); - if (efl_text_backing_color_set_static_delegate == null) - efl_text_backing_color_set_static_delegate = new efl_text_backing_color_set_delegate(backing_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetBackingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_set_static_delegate)}); - if (efl_text_underline_type_get_static_delegate == null) - efl_text_underline_type_get_static_delegate = new efl_text_underline_type_get_delegate(underline_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_get_static_delegate)}); - if (efl_text_underline_type_set_static_delegate == null) - efl_text_underline_type_set_static_delegate = new efl_text_underline_type_set_delegate(underline_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_set_static_delegate)}); - if (efl_text_underline_color_get_static_delegate == null) - efl_text_underline_color_get_static_delegate = new efl_text_underline_color_get_delegate(underline_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_get_static_delegate)}); - if (efl_text_underline_color_set_static_delegate == null) - efl_text_underline_color_set_static_delegate = new efl_text_underline_color_set_delegate(underline_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_set_static_delegate)}); - if (efl_text_underline_height_get_static_delegate == null) - efl_text_underline_height_get_static_delegate = new efl_text_underline_height_get_delegate(underline_height_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineHeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_height_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_get_static_delegate)}); - if (efl_text_underline_height_set_static_delegate == null) - efl_text_underline_height_set_static_delegate = new efl_text_underline_height_set_delegate(underline_height_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineHeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_height_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_set_static_delegate)}); - if (efl_text_underline_dashed_color_get_static_delegate == null) - efl_text_underline_dashed_color_get_static_delegate = new efl_text_underline_dashed_color_get_delegate(underline_dashed_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_get_static_delegate)}); - if (efl_text_underline_dashed_color_set_static_delegate == null) - efl_text_underline_dashed_color_set_static_delegate = new efl_text_underline_dashed_color_set_delegate(underline_dashed_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_set_static_delegate)}); - if (efl_text_underline_dashed_width_get_static_delegate == null) - efl_text_underline_dashed_width_get_static_delegate = new efl_text_underline_dashed_width_get_delegate(underline_dashed_width_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_get_static_delegate)}); - if (efl_text_underline_dashed_width_set_static_delegate == null) - efl_text_underline_dashed_width_set_static_delegate = new efl_text_underline_dashed_width_set_delegate(underline_dashed_width_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_set_static_delegate)}); - if (efl_text_underline_dashed_gap_get_static_delegate == null) - efl_text_underline_dashed_gap_get_static_delegate = new efl_text_underline_dashed_gap_get_delegate(underline_dashed_gap_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedGap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_gap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_get_static_delegate)}); - if (efl_text_underline_dashed_gap_set_static_delegate == null) - efl_text_underline_dashed_gap_set_static_delegate = new efl_text_underline_dashed_gap_set_delegate(underline_dashed_gap_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedGap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_gap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_set_static_delegate)}); - if (efl_text_underline2_color_get_static_delegate == null) - efl_text_underline2_color_get_static_delegate = new efl_text_underline2_color_get_delegate(underline2_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderline2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_get_static_delegate)}); - if (efl_text_underline2_color_set_static_delegate == null) - efl_text_underline2_color_set_static_delegate = new efl_text_underline2_color_set_delegate(underline2_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderline2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_set_static_delegate)}); - if (efl_text_strikethrough_type_get_static_delegate == null) - efl_text_strikethrough_type_get_static_delegate = new efl_text_strikethrough_type_get_delegate(strikethrough_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_get_static_delegate)}); - if (efl_text_strikethrough_type_set_static_delegate == null) - efl_text_strikethrough_type_set_static_delegate = new efl_text_strikethrough_type_set_delegate(strikethrough_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_set_static_delegate)}); - if (efl_text_strikethrough_color_get_static_delegate == null) - efl_text_strikethrough_color_get_static_delegate = new efl_text_strikethrough_color_get_delegate(strikethrough_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_get_static_delegate)}); - if (efl_text_strikethrough_color_set_static_delegate == null) - efl_text_strikethrough_color_set_static_delegate = new efl_text_strikethrough_color_set_delegate(strikethrough_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_set_static_delegate)}); - if (efl_text_effect_type_get_static_delegate == null) - efl_text_effect_type_get_static_delegate = new efl_text_effect_type_get_delegate(effect_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetEffectType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_effect_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_get_static_delegate)}); - if (efl_text_effect_type_set_static_delegate == null) - efl_text_effect_type_set_static_delegate = new efl_text_effect_type_set_delegate(effect_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetEffectType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_effect_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_set_static_delegate)}); - if (efl_text_outline_color_get_static_delegate == null) - efl_text_outline_color_get_static_delegate = new efl_text_outline_color_get_delegate(outline_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetOutlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_outline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_get_static_delegate)}); - if (efl_text_outline_color_set_static_delegate == null) - efl_text_outline_color_set_static_delegate = new efl_text_outline_color_set_delegate(outline_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetOutlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_outline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_set_static_delegate)}); - if (efl_text_shadow_direction_get_static_delegate == null) - efl_text_shadow_direction_get_static_delegate = new efl_text_shadow_direction_get_delegate(shadow_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetShadowDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_get_static_delegate)}); - if (efl_text_shadow_direction_set_static_delegate == null) - efl_text_shadow_direction_set_static_delegate = new efl_text_shadow_direction_set_delegate(shadow_direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetShadowDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_set_static_delegate)}); - if (efl_text_shadow_color_get_static_delegate == null) - efl_text_shadow_color_get_static_delegate = new efl_text_shadow_color_get_delegate(shadow_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetShadowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_get_static_delegate)}); - if (efl_text_shadow_color_set_static_delegate == null) - efl_text_shadow_color_set_static_delegate = new efl_text_shadow_color_set_delegate(shadow_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetShadowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_set_static_delegate)}); - if (efl_text_glow_color_get_static_delegate == null) - efl_text_glow_color_get_static_delegate = new efl_text_glow_color_get_delegate(glow_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetGlowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_get_static_delegate)}); - if (efl_text_glow_color_set_static_delegate == null) - efl_text_glow_color_set_static_delegate = new efl_text_glow_color_set_delegate(glow_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetGlowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_set_static_delegate)}); - if (efl_text_glow2_color_get_static_delegate == null) - efl_text_glow2_color_get_static_delegate = new efl_text_glow2_color_get_delegate(glow2_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetGlow2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_get_static_delegate)}); - if (efl_text_glow2_color_set_static_delegate == null) - efl_text_glow2_color_set_static_delegate = new efl_text_glow2_color_set_delegate(glow2_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetGlow2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_set_static_delegate)}); - if (efl_text_gfx_filter_get_static_delegate == null) - efl_text_gfx_filter_get_static_delegate = new efl_text_gfx_filter_get_delegate(gfx_filter_get); - if (methods.FirstOrDefault(m => m.Name == "GetGfxFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_gfx_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_get_static_delegate)}); - if (efl_text_gfx_filter_set_static_delegate == null) - efl_text_gfx_filter_set_static_delegate = new efl_text_gfx_filter_set_delegate(gfx_filter_set); - if (methods.FirstOrDefault(m => m.Name == "SetGfxFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_gfx_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.ITextInteractiveConcrete.efl_text_interactive_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.ITextInteractiveConcrete.efl_text_interactive_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_text_interactive_selection_allowed_get_static_delegate == null) + { + efl_text_interactive_selection_allowed_get_static_delegate = new efl_text_interactive_selection_allowed_get_delegate(selection_allowed_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetSelectionAllowed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_selection_allowed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_allowed_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_interactive_selection_allowed_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_interactive_selection_allowed_set_static_delegate == null) + { + efl_text_interactive_selection_allowed_set_static_delegate = new efl_text_interactive_selection_allowed_set_delegate(selection_allowed_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetSelectionAllowed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_selection_allowed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_allowed_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_interactive_selection_allowed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_allowed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_selection_allowed_get"); - private static bool selection_allowed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_interactive_selection_allowed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextInteractive)wrapper).GetSelectionAllowed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_interactive_selection_cursors_get_static_delegate == null) + { + efl_text_interactive_selection_cursors_get_static_delegate = new efl_text_interactive_selection_cursors_get_delegate(selection_cursors_get); } - return _ret_var; - } else { - return efl_text_interactive_selection_allowed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_interactive_selection_allowed_get_delegate efl_text_interactive_selection_allowed_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetSelectionCursors") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_selection_cursors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_cursors_get_static_delegate) }); + } - private delegate void efl_text_interactive_selection_allowed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allowed); + if (efl_text_interactive_editable_get_static_delegate == null) + { + efl_text_interactive_editable_get_static_delegate = new efl_text_interactive_editable_get_delegate(editable_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetEditable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_editable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_editable_get_static_delegate) }); + } - public delegate void efl_text_interactive_selection_allowed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allowed); - public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_allowed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_selection_allowed_set"); - private static void selection_allowed_set(System.IntPtr obj, System.IntPtr pd, bool allowed) - { - Eina.Log.Debug("function efl_text_interactive_selection_allowed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetSelectionAllowed( allowed); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_interactive_selection_allowed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allowed); - } - } - private static efl_text_interactive_selection_allowed_set_delegate efl_text_interactive_selection_allowed_set_static_delegate; + if (efl_text_interactive_editable_set_static_delegate == null) + { + efl_text_interactive_editable_set_static_delegate = new efl_text_interactive_editable_set_delegate(editable_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEditable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_editable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_editable_set_static_delegate) }); + } - private delegate void efl_text_interactive_selection_cursors_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end); + if (efl_text_interactive_select_none_static_delegate == null) + { + efl_text_interactive_select_none_static_delegate = new efl_text_interactive_select_none_delegate(select_none); + } + if (methods.FirstOrDefault(m => m.Name == "SelectNone") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_select_none"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_select_none_static_delegate) }); + } - public delegate void efl_text_interactive_selection_cursors_get_api_delegate(System.IntPtr obj, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end); - public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_cursors_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_selection_cursors_get"); - private static void selection_cursors_get(System.IntPtr obj, System.IntPtr pd, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end) - { - Eina.Log.Debug("function efl_text_interactive_selection_cursors_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - start = default(Efl.TextCursorCursor); end = default(Efl.TextCursorCursor); - try { - ((ITextInteractive)wrapper).GetSelectionCursors( out start, out end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_interactive_selection_cursors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out start, out end); - } - } - private static efl_text_interactive_selection_cursors_get_delegate efl_text_interactive_selection_cursors_get_static_delegate; + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_interactive_editable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_interactive_editable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_interactive_editable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_editable_get"); - private static bool editable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_interactive_editable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextInteractive)wrapper).GetEditable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_font_get_static_delegate == null) + { + efl_text_font_get_static_delegate = new efl_text_font_get_delegate(font_get); } - return _ret_var; - } else { - return efl_text_interactive_editable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_interactive_editable_get_delegate efl_text_interactive_editable_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFont") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_get_static_delegate) }); + } - private delegate void efl_text_interactive_editable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool editable); + if (efl_text_font_set_static_delegate == null) + { + efl_text_font_set_static_delegate = new efl_text_font_set_delegate(font_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFont") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_set_static_delegate) }); + } - public delegate void efl_text_interactive_editable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool editable); - public static Efl.Eo.FunctionWrapper efl_text_interactive_editable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_editable_set"); - private static void editable_set(System.IntPtr obj, System.IntPtr pd, bool editable) - { - Eina.Log.Debug("function efl_text_interactive_editable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetEditable( editable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_interactive_editable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), editable); - } - } - private static efl_text_interactive_editable_set_delegate efl_text_interactive_editable_set_static_delegate; + if (efl_text_font_source_get_static_delegate == null) + { + efl_text_font_source_get_static_delegate = new efl_text_font_source_get_delegate(font_source_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_get_static_delegate) }); + } - private delegate void efl_text_interactive_select_none_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_font_source_set_static_delegate == null) + { + efl_text_font_source_set_static_delegate = new efl_text_font_source_set_delegate(font_source_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_set_static_delegate) }); + } - public delegate void efl_text_interactive_select_none_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_interactive_select_none_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_select_none"); - private static void select_none(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_interactive_select_none was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SelectNone(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_font_fallbacks_get_static_delegate == null) + { + efl_text_font_fallbacks_get_static_delegate = new efl_text_font_fallbacks_get_delegate(font_fallbacks_get); } - } else { - efl_text_interactive_select_none_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_interactive_select_none_delegate efl_text_interactive_select_none_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFontFallbacks") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_fallbacks_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_font_fallbacks_set_static_delegate == null) + { + efl_text_font_fallbacks_set_static_delegate = new efl_text_font_fallbacks_set_delegate(font_fallbacks_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontFallbacks") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_fallbacks_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextInteractive)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_font_weight_get_static_delegate == null) + { + efl_text_font_weight_get_static_delegate = new efl_text_font_weight_get_delegate(font_weight_get); } - return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFontWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_get_static_delegate) }); + } - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + if (efl_text_font_weight_set_static_delegate == null) + { + efl_text_font_weight_set_static_delegate = new efl_text_font_weight_set_delegate(font_weight_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_set_static_delegate) }); + } - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); - } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + if (efl_text_font_slant_get_static_delegate == null) + { + efl_text_font_slant_get_static_delegate = new efl_text_font_slant_get_delegate(font_slant_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFontSlant") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_slant_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_get_static_delegate) }); + } - private delegate void efl_text_font_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + if (efl_text_font_slant_set_static_delegate == null) + { + efl_text_font_slant_set_static_delegate = new efl_text_font_slant_set_delegate(font_slant_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontSlant") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_slant_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_set_static_delegate) }); + } - public delegate void efl_text_font_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_text_font_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_get"); - private static void font_get(System.IntPtr obj, System.IntPtr pd, out System.String font, out Efl.Font.Size size) - { - Eina.Log.Debug("function efl_text_font_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_font = default(System.String); - size = default(Efl.Font.Size); - try { - ((ITextInteractive)wrapper).GetFont( out _out_font, out size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_font_width_get_static_delegate == null) + { + efl_text_font_width_get_static_delegate = new efl_text_font_width_get_delegate(font_width_get); } - font = _out_font; - } else { - efl_text_font_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out font, out size); - } - } - private static efl_text_font_get_delegate efl_text_font_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFontWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_get_static_delegate) }); + } - private delegate void efl_text_font_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + if (efl_text_font_width_set_static_delegate == null) + { + efl_text_font_width_set_static_delegate = new efl_text_font_width_set_delegate(font_width_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_set_static_delegate) }); + } - public delegate void efl_text_font_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_text_font_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_set"); - private static void font_set(System.IntPtr obj, System.IntPtr pd, System.String font, Efl.Font.Size size) - { - Eina.Log.Debug("function efl_text_font_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetFont( font, size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_font_lang_get_static_delegate == null) + { + efl_text_font_lang_get_static_delegate = new efl_text_font_lang_get_delegate(font_lang_get); } - } else { - efl_text_font_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font, size); - } - } - private static efl_text_font_set_delegate efl_text_font_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFontLang") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_lang_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_font_lang_set_static_delegate == null) + { + efl_text_font_lang_set_static_delegate = new efl_text_font_lang_set_delegate(font_lang_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontLang") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_lang_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_source_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_source_get"); - private static System.String font_source_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_source_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextInteractive)wrapper).GetFontSource(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_font_bitmap_scalable_get_static_delegate == null) + { + efl_text_font_bitmap_scalable_get_static_delegate = new efl_text_font_bitmap_scalable_get_delegate(font_bitmap_scalable_get); } - return _ret_var; - } else { - return efl_text_font_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_source_get_delegate efl_text_font_source_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFontBitmapScalable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_bitmap_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_get_static_delegate) }); + } - private delegate void efl_text_font_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + if (efl_text_font_bitmap_scalable_set_static_delegate == null) + { + efl_text_font_bitmap_scalable_set_static_delegate = new efl_text_font_bitmap_scalable_set_delegate(font_bitmap_scalable_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFontBitmapScalable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_bitmap_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_set_static_delegate) }); + } - public delegate void efl_text_font_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); - public static Efl.Eo.FunctionWrapper efl_text_font_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_source_set"); - private static void font_source_set(System.IntPtr obj, System.IntPtr pd, System.String font_source) - { - Eina.Log.Debug("function efl_text_font_source_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetFontSource( font_source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_source); - } - } - private static efl_text_font_source_set_delegate efl_text_font_source_set_static_delegate; + if (efl_text_ellipsis_get_static_delegate == null) + { + efl_text_ellipsis_get_static_delegate = new efl_text_ellipsis_get_delegate(ellipsis_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetEllipsis") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_ellipsis_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_fallbacks_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_ellipsis_set_static_delegate == null) + { + efl_text_ellipsis_set_static_delegate = new efl_text_ellipsis_set_delegate(ellipsis_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEllipsis") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_ellipsis_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_fallbacks_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_fallbacks_get"); - private static System.String font_fallbacks_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_fallbacks_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextInteractive)wrapper).GetFontFallbacks(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_wrap_get_static_delegate == null) + { + efl_text_wrap_get_static_delegate = new efl_text_wrap_get_delegate(wrap_get); } - return _ret_var; - } else { - return efl_text_font_fallbacks_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_fallbacks_get_delegate efl_text_font_fallbacks_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetWrap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_wrap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_get_static_delegate) }); + } - private delegate void efl_text_font_fallbacks_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + if (efl_text_wrap_set_static_delegate == null) + { + efl_text_wrap_set_static_delegate = new efl_text_wrap_set_delegate(wrap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetWrap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_wrap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_set_static_delegate) }); + } - public delegate void efl_text_font_fallbacks_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); - public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_fallbacks_set"); - private static void font_fallbacks_set(System.IntPtr obj, System.IntPtr pd, System.String font_fallbacks) - { - Eina.Log.Debug("function efl_text_font_fallbacks_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetFontFallbacks( font_fallbacks); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_fallbacks_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_fallbacks); - } - } - private static efl_text_font_fallbacks_set_delegate efl_text_font_fallbacks_set_static_delegate; + if (efl_text_multiline_get_static_delegate == null) + { + efl_text_multiline_get_static_delegate = new efl_text_multiline_get_delegate(multiline_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMultiline") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_multiline_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_get_static_delegate) }); + } - private delegate Efl.TextFontWeight efl_text_font_weight_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_multiline_set_static_delegate == null) + { + efl_text_multiline_set_static_delegate = new efl_text_multiline_set_delegate(multiline_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMultiline") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_multiline_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_set_static_delegate) }); + } - public delegate Efl.TextFontWeight efl_text_font_weight_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_weight_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_weight_get"); - private static Efl.TextFontWeight font_weight_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_weight_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontWeight _ret_var = default(Efl.TextFontWeight); - try { - _ret_var = ((ITextInteractive)wrapper).GetFontWeight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_halign_auto_type_get_static_delegate == null) + { + efl_text_halign_auto_type_get_static_delegate = new efl_text_halign_auto_type_get_delegate(halign_auto_type_get); } - return _ret_var; - } else { - return efl_text_font_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_weight_get_delegate efl_text_font_weight_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetHalignAutoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_auto_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_get_static_delegate) }); + } - private delegate void efl_text_font_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight); + if (efl_text_halign_auto_type_set_static_delegate == null) + { + efl_text_halign_auto_type_set_static_delegate = new efl_text_halign_auto_type_set_delegate(halign_auto_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetHalignAutoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_auto_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_set_static_delegate) }); + } - public delegate void efl_text_font_weight_set_api_delegate(System.IntPtr obj, Efl.TextFontWeight font_weight); - public static Efl.Eo.FunctionWrapper efl_text_font_weight_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_weight_set"); - private static void font_weight_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight) - { - Eina.Log.Debug("function efl_text_font_weight_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetFontWeight( font_weight); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_weight); - } - } - private static efl_text_font_weight_set_delegate efl_text_font_weight_set_static_delegate; + if (efl_text_halign_get_static_delegate == null) + { + efl_text_halign_get_static_delegate = new efl_text_halign_get_delegate(halign_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetHalign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_get_static_delegate) }); + } - private delegate Efl.TextFontSlant efl_text_font_slant_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_halign_set_static_delegate == null) + { + efl_text_halign_set_static_delegate = new efl_text_halign_set_delegate(halign_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetHalign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_set_static_delegate) }); + } - public delegate Efl.TextFontSlant efl_text_font_slant_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_slant_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_slant_get"); - private static Efl.TextFontSlant font_slant_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_slant_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontSlant _ret_var = default(Efl.TextFontSlant); - try { - _ret_var = ((ITextInteractive)wrapper).GetFontSlant(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_valign_get_static_delegate == null) + { + efl_text_valign_get_static_delegate = new efl_text_valign_get_delegate(valign_get); } - return _ret_var; - } else { - return efl_text_font_slant_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_slant_get_delegate efl_text_font_slant_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_get_static_delegate) }); + } - private delegate void efl_text_font_slant_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style); + if (efl_text_valign_set_static_delegate == null) + { + efl_text_valign_set_static_delegate = new efl_text_valign_set_delegate(valign_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_set_static_delegate) }); + } - public delegate void efl_text_font_slant_set_api_delegate(System.IntPtr obj, Efl.TextFontSlant style); - public static Efl.Eo.FunctionWrapper efl_text_font_slant_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_slant_set"); - private static void font_slant_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style) - { - Eina.Log.Debug("function efl_text_font_slant_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetFontSlant( style); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_slant_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); - } - } - private static efl_text_font_slant_set_delegate efl_text_font_slant_set_static_delegate; + if (efl_text_linegap_get_static_delegate == null) + { + efl_text_linegap_get_static_delegate = new efl_text_linegap_get_delegate(linegap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLinegap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linegap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_get_static_delegate) }); + } - private delegate Efl.TextFontWidth efl_text_font_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_linegap_set_static_delegate == null) + { + efl_text_linegap_set_static_delegate = new efl_text_linegap_set_delegate(linegap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetLinegap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linegap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_set_static_delegate) }); + } - public delegate Efl.TextFontWidth efl_text_font_width_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_width_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_width_get"); - private static Efl.TextFontWidth font_width_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_width_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontWidth _ret_var = default(Efl.TextFontWidth); - try { - _ret_var = ((ITextInteractive)wrapper).GetFontWidth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_linerelgap_get_static_delegate == null) + { + efl_text_linerelgap_get_static_delegate = new efl_text_linerelgap_get_delegate(linerelgap_get); } - return _ret_var; - } else { - return efl_text_font_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_width_get_delegate efl_text_font_width_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLinerelgap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linerelgap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_get_static_delegate) }); + } - private delegate void efl_text_font_width_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width); + if (efl_text_linerelgap_set_static_delegate == null) + { + efl_text_linerelgap_set_static_delegate = new efl_text_linerelgap_set_delegate(linerelgap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetLinerelgap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linerelgap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_set_static_delegate) }); + } - public delegate void efl_text_font_width_set_api_delegate(System.IntPtr obj, Efl.TextFontWidth width); - public static Efl.Eo.FunctionWrapper efl_text_font_width_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_width_set"); - private static void font_width_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width) - { - Eina.Log.Debug("function efl_text_font_width_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetFontWidth( width); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); - } - } - private static efl_text_font_width_set_delegate efl_text_font_width_set_static_delegate; + if (efl_text_tabstops_get_static_delegate == null) + { + efl_text_tabstops_get_static_delegate = new efl_text_tabstops_get_delegate(tabstops_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTabstops") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_tabstops_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_lang_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_tabstops_set_static_delegate == null) + { + efl_text_tabstops_set_static_delegate = new efl_text_tabstops_set_delegate(tabstops_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTabstops") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_tabstops_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_lang_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_lang_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_lang_get"); - private static System.String font_lang_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_lang_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextInteractive)wrapper).GetFontLang(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_password_get_static_delegate == null) + { + efl_text_password_get_static_delegate = new efl_text_password_get_delegate(password_get); } - return _ret_var; - } else { - return efl_text_font_lang_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_lang_get_delegate efl_text_font_lang_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPassword") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_password_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_get_static_delegate) }); + } - private delegate void efl_text_font_lang_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + if (efl_text_password_set_static_delegate == null) + { + efl_text_password_set_static_delegate = new efl_text_password_set_delegate(password_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPassword") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_password_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_set_static_delegate) }); + } - public delegate void efl_text_font_lang_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); - public static Efl.Eo.FunctionWrapper efl_text_font_lang_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_lang_set"); - private static void font_lang_set(System.IntPtr obj, System.IntPtr pd, System.String lang) - { - Eina.Log.Debug("function efl_text_font_lang_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetFontLang( lang); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_lang_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang); - } - } - private static efl_text_font_lang_set_delegate efl_text_font_lang_set_static_delegate; + if (efl_text_replacement_char_get_static_delegate == null) + { + efl_text_replacement_char_get_static_delegate = new efl_text_replacement_char_get_delegate(replacement_char_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetReplacementChar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_replacement_char_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_get_static_delegate) }); + } - private delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_replacement_char_set_static_delegate == null) + { + efl_text_replacement_char_set_static_delegate = new efl_text_replacement_char_set_delegate(replacement_char_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetReplacementChar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_replacement_char_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_set_static_delegate) }); + } - public delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_bitmap_scalable_get"); - private static Efl.TextFontBitmapScalable font_bitmap_scalable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_bitmap_scalable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontBitmapScalable _ret_var = default(Efl.TextFontBitmapScalable); - try { - _ret_var = ((ITextInteractive)wrapper).GetFontBitmapScalable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_normal_color_get_static_delegate == null) + { + efl_text_normal_color_get_static_delegate = new efl_text_normal_color_get_delegate(normal_color_get); } - return _ret_var; - } else { - return efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_bitmap_scalable_get_delegate efl_text_font_bitmap_scalable_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetNormalColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_normal_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_get_static_delegate) }); + } - private delegate void efl_text_font_bitmap_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable); + if (efl_text_normal_color_set_static_delegate == null) + { + efl_text_normal_color_set_static_delegate = new efl_text_normal_color_set_delegate(normal_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetNormalColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_normal_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_set_static_delegate) }); + } - public delegate void efl_text_font_bitmap_scalable_set_api_delegate(System.IntPtr obj, Efl.TextFontBitmapScalable scalable); - public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_bitmap_scalable_set"); - private static void font_bitmap_scalable_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable) - { - Eina.Log.Debug("function efl_text_font_bitmap_scalable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetFontBitmapScalable( scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scalable); - } - } - private static efl_text_font_bitmap_scalable_set_delegate efl_text_font_bitmap_scalable_set_static_delegate; + if (efl_text_backing_type_get_static_delegate == null) + { + efl_text_backing_type_get_static_delegate = new efl_text_backing_type_get_delegate(backing_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBackingType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_get_static_delegate) }); + } - private delegate double efl_text_ellipsis_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_backing_type_set_static_delegate == null) + { + efl_text_backing_type_set_static_delegate = new efl_text_backing_type_set_delegate(backing_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBackingType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_set_static_delegate) }); + } - public delegate double efl_text_ellipsis_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_ellipsis_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_ellipsis_get"); - private static double ellipsis_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_ellipsis_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextInteractive)wrapper).GetEllipsis(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_backing_color_get_static_delegate == null) + { + efl_text_backing_color_get_static_delegate = new efl_text_backing_color_get_delegate(backing_color_get); } - return _ret_var; - } else { - return efl_text_ellipsis_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_ellipsis_get_delegate efl_text_ellipsis_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetBackingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_get_static_delegate) }); + } - private delegate void efl_text_ellipsis_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + if (efl_text_backing_color_set_static_delegate == null) + { + efl_text_backing_color_set_static_delegate = new efl_text_backing_color_set_delegate(backing_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBackingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_set_static_delegate) }); + } - public delegate void efl_text_ellipsis_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_ellipsis_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_ellipsis_set"); - private static void ellipsis_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_ellipsis_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetEllipsis( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_ellipsis_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_ellipsis_set_delegate efl_text_ellipsis_set_static_delegate; + if (efl_text_underline_type_get_static_delegate == null) + { + efl_text_underline_type_get_static_delegate = new efl_text_underline_type_get_delegate(underline_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_get_static_delegate) }); + } - private delegate Efl.TextFormatWrap efl_text_wrap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_underline_type_set_static_delegate == null) + { + efl_text_underline_type_set_static_delegate = new efl_text_underline_type_set_delegate(underline_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_set_static_delegate) }); + } - public delegate Efl.TextFormatWrap efl_text_wrap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_wrap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_wrap_get"); - private static Efl.TextFormatWrap wrap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_wrap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFormatWrap _ret_var = default(Efl.TextFormatWrap); - try { - _ret_var = ((ITextInteractive)wrapper).GetWrap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_underline_color_get_static_delegate == null) + { + efl_text_underline_color_get_static_delegate = new efl_text_underline_color_get_delegate(underline_color_get); } - return _ret_var; - } else { - return efl_text_wrap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_wrap_get_delegate efl_text_wrap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_get_static_delegate) }); + } - private delegate void efl_text_wrap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap); + if (efl_text_underline_color_set_static_delegate == null) + { + efl_text_underline_color_set_static_delegate = new efl_text_underline_color_set_delegate(underline_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_set_static_delegate) }); + } - public delegate void efl_text_wrap_set_api_delegate(System.IntPtr obj, Efl.TextFormatWrap wrap); - public static Efl.Eo.FunctionWrapper efl_text_wrap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_wrap_set"); - private static void wrap_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap) - { - Eina.Log.Debug("function efl_text_wrap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetWrap( wrap); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_wrap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), wrap); - } - } - private static efl_text_wrap_set_delegate efl_text_wrap_set_static_delegate; + if (efl_text_underline_height_get_static_delegate == null) + { + efl_text_underline_height_get_static_delegate = new efl_text_underline_height_get_delegate(underline_height_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineHeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_height_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_multiline_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_underline_height_set_static_delegate == null) + { + efl_text_underline_height_set_static_delegate = new efl_text_underline_height_set_delegate(underline_height_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineHeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_height_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_multiline_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_multiline_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_multiline_get"); - private static bool multiline_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_multiline_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextInteractive)wrapper).GetMultiline(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_underline_dashed_color_get_static_delegate == null) + { + efl_text_underline_dashed_color_get_static_delegate = new efl_text_underline_dashed_color_get_delegate(underline_dashed_color_get); } - return _ret_var; - } else { - return efl_text_multiline_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_multiline_get_delegate efl_text_multiline_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_get_static_delegate) }); + } - private delegate void efl_text_multiline_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + if (efl_text_underline_dashed_color_set_static_delegate == null) + { + efl_text_underline_dashed_color_set_static_delegate = new efl_text_underline_dashed_color_set_delegate(underline_dashed_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_set_static_delegate) }); + } - public delegate void efl_text_multiline_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_text_multiline_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_multiline_set"); - private static void multiline_set(System.IntPtr obj, System.IntPtr pd, bool enabled) - { - Eina.Log.Debug("function efl_text_multiline_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetMultiline( enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_multiline_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); - } - } - private static efl_text_multiline_set_delegate efl_text_multiline_set_static_delegate; + if (efl_text_underline_dashed_width_get_static_delegate == null) + { + efl_text_underline_dashed_width_get_static_delegate = new efl_text_underline_dashed_width_get_delegate(underline_dashed_width_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_get_static_delegate) }); + } - private delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_underline_dashed_width_set_static_delegate == null) + { + efl_text_underline_dashed_width_set_static_delegate = new efl_text_underline_dashed_width_set_delegate(underline_dashed_width_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_set_static_delegate) }); + } - public delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_auto_type_get"); - private static Efl.TextFormatHorizontalAlignmentAutoType halign_auto_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_halign_auto_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFormatHorizontalAlignmentAutoType _ret_var = default(Efl.TextFormatHorizontalAlignmentAutoType); - try { - _ret_var = ((ITextInteractive)wrapper).GetHalignAutoType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_underline_dashed_gap_get_static_delegate == null) + { + efl_text_underline_dashed_gap_get_static_delegate = new efl_text_underline_dashed_gap_get_delegate(underline_dashed_gap_get); } - return _ret_var; - } else { - return efl_text_halign_auto_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_halign_auto_type_get_delegate efl_text_halign_auto_type_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedGap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_gap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_get_static_delegate) }); + } - private delegate void efl_text_halign_auto_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value); + if (efl_text_underline_dashed_gap_set_static_delegate == null) + { + efl_text_underline_dashed_gap_set_static_delegate = new efl_text_underline_dashed_gap_set_delegate(underline_dashed_gap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedGap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_gap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_set_static_delegate) }); + } - public delegate void efl_text_halign_auto_type_set_api_delegate(System.IntPtr obj, Efl.TextFormatHorizontalAlignmentAutoType value); - public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_auto_type_set"); - private static void halign_auto_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value) - { - Eina.Log.Debug("function efl_text_halign_auto_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetHalignAutoType( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_halign_auto_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_halign_auto_type_set_delegate efl_text_halign_auto_type_set_static_delegate; + if (efl_text_underline2_color_get_static_delegate == null) + { + efl_text_underline2_color_get_static_delegate = new efl_text_underline2_color_get_delegate(underline2_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderline2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_get_static_delegate) }); + } - private delegate double efl_text_halign_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_underline2_color_set_static_delegate == null) + { + efl_text_underline2_color_set_static_delegate = new efl_text_underline2_color_set_delegate(underline2_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderline2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_set_static_delegate) }); + } - public delegate double efl_text_halign_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_halign_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_get"); - private static double halign_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_halign_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextInteractive)wrapper).GetHalign(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_strikethrough_type_get_static_delegate == null) + { + efl_text_strikethrough_type_get_static_delegate = new efl_text_strikethrough_type_get_delegate(strikethrough_type_get); } - return _ret_var; - } else { - return efl_text_halign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_halign_get_delegate efl_text_halign_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_get_static_delegate) }); + } - private delegate void efl_text_halign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + if (efl_text_strikethrough_type_set_static_delegate == null) + { + efl_text_strikethrough_type_set_static_delegate = new efl_text_strikethrough_type_set_delegate(strikethrough_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_set_static_delegate) }); + } - public delegate void efl_text_halign_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_halign_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_set"); - private static void halign_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_halign_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetHalign( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_halign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_halign_set_delegate efl_text_halign_set_static_delegate; + if (efl_text_strikethrough_color_get_static_delegate == null) + { + efl_text_strikethrough_color_get_static_delegate = new efl_text_strikethrough_color_get_delegate(strikethrough_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_get_static_delegate) }); + } - private delegate double efl_text_valign_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_strikethrough_color_set_static_delegate == null) + { + efl_text_strikethrough_color_set_static_delegate = new efl_text_strikethrough_color_set_delegate(strikethrough_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_set_static_delegate) }); + } - public delegate double efl_text_valign_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_valign_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_valign_get"); - private static double valign_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_valign_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextInteractive)wrapper).GetValign(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_effect_type_get_static_delegate == null) + { + efl_text_effect_type_get_static_delegate = new efl_text_effect_type_get_delegate(effect_type_get); } - return _ret_var; - } else { - return efl_text_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_valign_get_delegate efl_text_valign_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetEffectType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_effect_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_get_static_delegate) }); + } - private delegate void efl_text_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + if (efl_text_effect_type_set_static_delegate == null) + { + efl_text_effect_type_set_static_delegate = new efl_text_effect_type_set_delegate(effect_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEffectType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_effect_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_set_static_delegate) }); + } - public delegate void efl_text_valign_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_valign_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_valign_set"); - private static void valign_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_valign_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetValign( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_valign_set_delegate efl_text_valign_set_static_delegate; + if (efl_text_outline_color_get_static_delegate == null) + { + efl_text_outline_color_get_static_delegate = new efl_text_outline_color_get_delegate(outline_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetOutlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_outline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_get_static_delegate) }); + } - private delegate double efl_text_linegap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_outline_color_set_static_delegate == null) + { + efl_text_outline_color_set_static_delegate = new efl_text_outline_color_set_delegate(outline_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetOutlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_outline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_set_static_delegate) }); + } - public delegate double efl_text_linegap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_linegap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linegap_get"); - private static double linegap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_linegap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextInteractive)wrapper).GetLinegap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_shadow_direction_get_static_delegate == null) + { + efl_text_shadow_direction_get_static_delegate = new efl_text_shadow_direction_get_delegate(shadow_direction_get); } - return _ret_var; - } else { - return efl_text_linegap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_linegap_get_delegate efl_text_linegap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetShadowDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_get_static_delegate) }); + } - private delegate void efl_text_linegap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + if (efl_text_shadow_direction_set_static_delegate == null) + { + efl_text_shadow_direction_set_static_delegate = new efl_text_shadow_direction_set_delegate(shadow_direction_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetShadowDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_set_static_delegate) }); + } - public delegate void efl_text_linegap_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_linegap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linegap_set"); - private static void linegap_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_linegap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetLinegap( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_linegap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_linegap_set_delegate efl_text_linegap_set_static_delegate; + if (efl_text_shadow_color_get_static_delegate == null) + { + efl_text_shadow_color_get_static_delegate = new efl_text_shadow_color_get_delegate(shadow_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetShadowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_get_static_delegate) }); + } - private delegate double efl_text_linerelgap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_shadow_color_set_static_delegate == null) + { + efl_text_shadow_color_set_static_delegate = new efl_text_shadow_color_set_delegate(shadow_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetShadowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_set_static_delegate) }); + } - public delegate double efl_text_linerelgap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_linerelgap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linerelgap_get"); - private static double linerelgap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_linerelgap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextInteractive)wrapper).GetLinerelgap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_glow_color_get_static_delegate == null) + { + efl_text_glow_color_get_static_delegate = new efl_text_glow_color_get_delegate(glow_color_get); } - return _ret_var; - } else { - return efl_text_linerelgap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_linerelgap_get_delegate efl_text_linerelgap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetGlowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_get_static_delegate) }); + } - private delegate void efl_text_linerelgap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + if (efl_text_glow_color_set_static_delegate == null) + { + efl_text_glow_color_set_static_delegate = new efl_text_glow_color_set_delegate(glow_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGlowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_set_static_delegate) }); + } - public delegate void efl_text_linerelgap_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_linerelgap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linerelgap_set"); - private static void linerelgap_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_linerelgap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetLinerelgap( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_linerelgap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_linerelgap_set_delegate efl_text_linerelgap_set_static_delegate; + if (efl_text_glow2_color_get_static_delegate == null) + { + efl_text_glow2_color_get_static_delegate = new efl_text_glow2_color_get_delegate(glow2_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetGlow2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_get_static_delegate) }); + } - private delegate int efl_text_tabstops_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_glow2_color_set_static_delegate == null) + { + efl_text_glow2_color_set_static_delegate = new efl_text_glow2_color_set_delegate(glow2_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGlow2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_set_static_delegate) }); + } - public delegate int efl_text_tabstops_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_tabstops_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_tabstops_get"); - private static int tabstops_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_tabstops_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextInteractive)wrapper).GetTabstops(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_gfx_filter_get_static_delegate == null) + { + efl_text_gfx_filter_get_static_delegate = new efl_text_gfx_filter_get_delegate(gfx_filter_get); } - return _ret_var; - } else { - return efl_text_tabstops_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_tabstops_get_delegate efl_text_tabstops_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetGfxFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_gfx_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_get_static_delegate) }); + } - private delegate void efl_text_tabstops_set_delegate(System.IntPtr obj, System.IntPtr pd, int value); + if (efl_text_gfx_filter_set_static_delegate == null) + { + efl_text_gfx_filter_set_static_delegate = new efl_text_gfx_filter_set_delegate(gfx_filter_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGfxFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_gfx_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_set_static_delegate) }); + } - public delegate void efl_text_tabstops_set_api_delegate(System.IntPtr obj, int value); - public static Efl.Eo.FunctionWrapper efl_text_tabstops_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_tabstops_set"); - private static void tabstops_set(System.IntPtr obj, System.IntPtr pd, int value) - { - Eina.Log.Debug("function efl_text_tabstops_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetTabstops( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_tabstops_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.ITextInteractiveConcrete.efl_text_interactive_interface_get(); } - } - private static efl_text_tabstops_set_delegate efl_text_tabstops_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_password_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_interactive_selection_allowed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_interactive_selection_allowed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_allowed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_selection_allowed_get"); + + private static bool selection_allowed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_interactive_selection_allowed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextInteractive)wrapper).GetSelectionAllowed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_password_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_password_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_password_get"); - private static bool password_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_password_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextInteractive)wrapper).GetPassword(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_password_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_interactive_selection_allowed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_password_get_delegate efl_text_password_get_static_delegate; - - private delegate void efl_text_password_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + private static efl_text_interactive_selection_allowed_get_delegate efl_text_interactive_selection_allowed_get_static_delegate; + + + private delegate void efl_text_interactive_selection_allowed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allowed); + + + public delegate void efl_text_interactive_selection_allowed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allowed); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_allowed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_selection_allowed_set"); + + private static void selection_allowed_set(System.IntPtr obj, System.IntPtr pd, bool allowed) + { + Eina.Log.Debug("function efl_text_interactive_selection_allowed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetSelectionAllowed(allowed); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - - public delegate void efl_text_password_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_text_password_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_password_set"); - private static void password_set(System.IntPtr obj, System.IntPtr pd, bool enabled) - { - Eina.Log.Debug("function efl_text_password_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetPassword( enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_password_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); + + } + else + { + efl_text_interactive_selection_allowed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allowed); + } } - } - private static efl_text_password_set_delegate efl_text_password_set_static_delegate; + private static efl_text_interactive_selection_allowed_set_delegate efl_text_interactive_selection_allowed_set_static_delegate; + + + private delegate void efl_text_interactive_selection_cursors_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end); + + + public delegate void efl_text_interactive_selection_cursors_get_api_delegate(System.IntPtr obj, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_cursors_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_selection_cursors_get"); + + private static void selection_cursors_get(System.IntPtr obj, System.IntPtr pd, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end) + { + Eina.Log.Debug("function efl_text_interactive_selection_cursors_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + start = default(Efl.TextCursorCursor); end = default(Efl.TextCursorCursor); + try + { + ((ITextInteractive)wrapper).GetSelectionCursors(out start, out end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_interactive_selection_cursors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out start, out end); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_replacement_char_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_interactive_selection_cursors_get_delegate efl_text_interactive_selection_cursors_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_interactive_editable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_interactive_editable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_editable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_editable_get"); + + private static bool editable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_interactive_editable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextInteractive)wrapper).GetEditable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_replacement_char_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_replacement_char_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_replacement_char_get"); - private static System.String replacement_char_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_replacement_char_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextInteractive)wrapper).GetReplacementChar(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_replacement_char_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_interactive_editable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_replacement_char_get_delegate efl_text_replacement_char_get_static_delegate; - - private delegate void efl_text_replacement_char_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + private static efl_text_interactive_editable_get_delegate efl_text_interactive_editable_get_static_delegate; + + + private delegate void efl_text_interactive_editable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool editable); + + + public delegate void efl_text_interactive_editable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool editable); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_editable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_editable_set"); + + private static void editable_set(System.IntPtr obj, System.IntPtr pd, bool editable) + { + Eina.Log.Debug("function efl_text_interactive_editable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetEditable(editable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - - public delegate void efl_text_replacement_char_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); - public static Efl.Eo.FunctionWrapper efl_text_replacement_char_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_replacement_char_set"); - private static void replacement_char_set(System.IntPtr obj, System.IntPtr pd, System.String repch) - { - Eina.Log.Debug("function efl_text_replacement_char_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetReplacementChar( repch); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_replacement_char_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repch); + + } + else + { + efl_text_interactive_editable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), editable); + } } - } - private static efl_text_replacement_char_set_delegate efl_text_replacement_char_set_static_delegate; + private static efl_text_interactive_editable_set_delegate efl_text_interactive_editable_set_static_delegate; + + + private delegate void efl_text_interactive_select_none_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_text_interactive_select_none_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_select_none_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_select_none"); + + private static void select_none(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_interactive_select_none was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SelectNone(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_interactive_select_none_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_text_normal_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static efl_text_interactive_select_none_delegate efl_text_interactive_select_none_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextInteractive)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_normal_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_normal_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_normal_color_get"); - private static void normal_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_normal_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextInteractive)wrapper).GetNormalColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_normal_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_normal_color_get_delegate efl_text_normal_color_get_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; + + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_normal_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + } + } + private static efl_text_set_delegate efl_text_set_static_delegate; - public delegate void efl_text_normal_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_normal_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_normal_color_set"); - private static void normal_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_normal_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetNormalColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_normal_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_text_normal_color_set_delegate efl_text_normal_color_set_static_delegate; + + private delegate void efl_text_font_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + + public delegate void efl_text_font_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); - private delegate Efl.TextStyleBackingType efl_text_backing_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_text_font_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_get"); + private static void font_get(System.IntPtr obj, System.IntPtr pd, out System.String font, out Efl.Font.Size size) + { + Eina.Log.Debug("function efl_text_font_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_font = default(System.String); + size = default(Efl.Font.Size); + try + { + ((ITextInteractive)wrapper).GetFont(out _out_font, out size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.TextStyleBackingType efl_text_backing_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_backing_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_type_get"); - private static Efl.TextStyleBackingType backing_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_backing_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleBackingType _ret_var = default(Efl.TextStyleBackingType); - try { - _ret_var = ((ITextInteractive)wrapper).GetBackingType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + font = _out_font; + + } + else + { + efl_text_font_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out font, out size); } - return _ret_var; - } else { - return efl_text_backing_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_backing_type_get_delegate efl_text_backing_type_get_static_delegate; + private static efl_text_font_get_delegate efl_text_font_get_static_delegate; + + + private delegate void efl_text_font_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + + + public delegate void efl_text_font_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + + public static Efl.Eo.FunctionWrapper efl_text_font_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_set"); + + private static void font_set(System.IntPtr obj, System.IntPtr pd, System.String font, Efl.Font.Size size) + { + Eina.Log.Debug("function efl_text_font_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetFont(font, size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font, size); + } + } - private delegate void efl_text_backing_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type); + private static efl_text_font_set_delegate efl_text_font_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_source_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_source_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_source_get"); + + private static System.String font_source_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_source_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextInteractive)wrapper).GetFontSource(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_backing_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleBackingType type); - public static Efl.Eo.FunctionWrapper efl_text_backing_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_type_set"); - private static void backing_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type) - { - Eina.Log.Debug("function efl_text_backing_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetBackingType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_backing_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + else + { + return efl_text_font_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_backing_type_set_delegate efl_text_backing_type_set_static_delegate; + private static efl_text_font_source_get_delegate efl_text_font_source_get_static_delegate; + + + private delegate void efl_text_font_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + + + public delegate void efl_text_font_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + + public static Efl.Eo.FunctionWrapper efl_text_font_source_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_source_set"); + + private static void font_source_set(System.IntPtr obj, System.IntPtr pd, System.String font_source) + { + Eina.Log.Debug("function efl_text_font_source_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetFontSource(font_source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_backing_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); - - - public delegate void efl_text_backing_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_backing_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_color_get"); - private static void backing_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_backing_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextInteractive)wrapper).GetBackingColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_backing_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + + } + else + { + efl_text_font_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_source); + } } - } - private static efl_text_backing_color_get_delegate efl_text_backing_color_get_static_delegate; + private static efl_text_font_source_set_delegate efl_text_font_source_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_fallbacks_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_fallbacks_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_fallbacks_get"); + + private static System.String font_fallbacks_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_fallbacks_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextInteractive)wrapper).GetFontFallbacks(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_backing_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); - + return _ret_var; - public delegate void efl_text_backing_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_backing_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_color_set"); - private static void backing_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_backing_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetBackingColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_backing_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + else + { + return efl_text_font_fallbacks_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_backing_color_set_delegate efl_text_backing_color_set_static_delegate; - - private delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_font_fallbacks_get_delegate efl_text_font_fallbacks_get_static_delegate; + + + private delegate void efl_text_font_fallbacks_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + + + public delegate void efl_text_font_fallbacks_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + + public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_fallbacks_set"); + + private static void font_fallbacks_set(System.IntPtr obj, System.IntPtr pd, System.String font_fallbacks) + { + Eina.Log.Debug("function efl_text_font_fallbacks_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetFontFallbacks(font_fallbacks); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - - public delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_type_get"); - private static Efl.TextStyleUnderlineType underline_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleUnderlineType _ret_var = default(Efl.TextStyleUnderlineType); - try { - _ret_var = ((ITextInteractive)wrapper).GetUnderlineType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_text_font_fallbacks_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_fallbacks); } - return _ret_var; - } else { - return efl_text_underline_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_underline_type_get_delegate efl_text_underline_type_get_static_delegate; - - private delegate void efl_text_underline_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type); + private static efl_text_font_fallbacks_set_delegate efl_text_font_fallbacks_set_static_delegate; + + + private delegate Efl.TextFontWeight efl_text_font_weight_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontWeight efl_text_font_weight_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_weight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_weight_get"); + + private static Efl.TextFontWeight font_weight_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_weight_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontWeight _ret_var = default(Efl.TextFontWeight); + try + { + _ret_var = ((ITextInteractive)wrapper).GetFontWeight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_underline_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleUnderlineType type); - public static Efl.Eo.FunctionWrapper efl_text_underline_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_type_set"); - private static void underline_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type) - { - Eina.Log.Debug("function efl_text_underline_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetUnderlineType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + else + { + return efl_text_font_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_type_set_delegate efl_text_underline_type_set_static_delegate; - - - private delegate void efl_text_underline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static efl_text_font_weight_get_delegate efl_text_font_weight_get_static_delegate; + + + private delegate void efl_text_font_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight); + + + public delegate void efl_text_font_weight_set_api_delegate(System.IntPtr obj, Efl.TextFontWeight font_weight); + + public static Efl.Eo.FunctionWrapper efl_text_font_weight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_weight_set"); + + private static void font_weight_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight) + { + Eina.Log.Debug("function efl_text_font_weight_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetFontWeight(font_weight); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_underline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_color_get"); - private static void underline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextInteractive)wrapper).GetUnderlineColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + + } + else + { + efl_text_font_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_weight); + } } - } - private static efl_text_underline_color_get_delegate efl_text_underline_color_get_static_delegate; + private static efl_text_font_weight_set_delegate efl_text_font_weight_set_static_delegate; + + + private delegate Efl.TextFontSlant efl_text_font_slant_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontSlant efl_text_font_slant_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_slant_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_slant_get"); + + private static Efl.TextFontSlant font_slant_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_slant_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontSlant _ret_var = default(Efl.TextFontSlant); + try + { + _ret_var = ((ITextInteractive)wrapper).GetFontSlant(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); - + return _ret_var; - public delegate void efl_text_underline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_color_set"); - private static void underline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetUnderlineColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + else + { + return efl_text_font_slant_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_color_set_delegate efl_text_underline_color_set_static_delegate; - - private delegate double efl_text_underline_height_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_font_slant_get_delegate efl_text_font_slant_get_static_delegate; + + + private delegate void efl_text_font_slant_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style); + + + public delegate void efl_text_font_slant_set_api_delegate(System.IntPtr obj, Efl.TextFontSlant style); + + public static Efl.Eo.FunctionWrapper efl_text_font_slant_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_slant_set"); + + private static void font_slant_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style) + { + Eina.Log.Debug("function efl_text_font_slant_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetFontSlant(style); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - - public delegate double efl_text_underline_height_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_height_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_height_get"); - private static double underline_height_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_height_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextInteractive)wrapper).GetUnderlineHeight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_text_font_slant_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); } - return _ret_var; - } else { - return efl_text_underline_height_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_underline_height_get_delegate efl_text_underline_height_get_static_delegate; - - private delegate void efl_text_underline_height_set_delegate(System.IntPtr obj, System.IntPtr pd, double height); + private static efl_text_font_slant_set_delegate efl_text_font_slant_set_static_delegate; + + + private delegate Efl.TextFontWidth efl_text_font_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontWidth efl_text_font_width_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_width_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_width_get"); + + private static Efl.TextFontWidth font_width_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_width_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontWidth _ret_var = default(Efl.TextFontWidth); + try + { + _ret_var = ((ITextInteractive)wrapper).GetFontWidth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_underline_height_set_api_delegate(System.IntPtr obj, double height); - public static Efl.Eo.FunctionWrapper efl_text_underline_height_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_height_set"); - private static void underline_height_set(System.IntPtr obj, System.IntPtr pd, double height) - { - Eina.Log.Debug("function efl_text_underline_height_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetUnderlineHeight( height); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_height_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), height); + } + else + { + return efl_text_font_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_height_set_delegate efl_text_underline_height_set_static_delegate; + private static efl_text_font_width_get_delegate efl_text_font_width_get_static_delegate; + + + private delegate void efl_text_font_width_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width); + + + public delegate void efl_text_font_width_set_api_delegate(System.IntPtr obj, Efl.TextFontWidth width); + + public static Efl.Eo.FunctionWrapper efl_text_font_width_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_width_set"); + + private static void font_width_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width) + { + Eina.Log.Debug("function efl_text_font_width_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetFontWidth(width); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline_dashed_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); - - - public delegate void efl_text_underline_dashed_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_color_get"); - private static void underline_dashed_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline_dashed_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextInteractive)wrapper).GetUnderlineDashedColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + + } + else + { + efl_text_font_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); + } } - } - private static efl_text_underline_dashed_color_get_delegate efl_text_underline_dashed_color_get_static_delegate; + private static efl_text_font_width_set_delegate efl_text_font_width_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_lang_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_lang_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_lang_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_lang_get"); + + private static System.String font_lang_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_lang_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextInteractive)wrapper).GetFontLang(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline_dashed_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); - + return _ret_var; - public delegate void efl_text_underline_dashed_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_color_set"); - private static void underline_dashed_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline_dashed_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetUnderlineDashedColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + else + { + return efl_text_font_lang_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_dashed_color_set_delegate efl_text_underline_dashed_color_set_static_delegate; - - private delegate int efl_text_underline_dashed_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_font_lang_get_delegate efl_text_font_lang_get_static_delegate; + + + private delegate void efl_text_font_lang_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + + + public delegate void efl_text_font_lang_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + + public static Efl.Eo.FunctionWrapper efl_text_font_lang_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_lang_set"); + + private static void font_lang_set(System.IntPtr obj, System.IntPtr pd, System.String lang) + { + Eina.Log.Debug("function efl_text_font_lang_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetFontLang(lang); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - - public delegate int efl_text_underline_dashed_width_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_width_get"); - private static int underline_dashed_width_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_dashed_width_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextInteractive)wrapper).GetUnderlineDashedWidth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_text_font_lang_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang); } - return _ret_var; - } else { - return efl_text_underline_dashed_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_underline_dashed_width_get_delegate efl_text_underline_dashed_width_get_static_delegate; - - private delegate void efl_text_underline_dashed_width_set_delegate(System.IntPtr obj, System.IntPtr pd, int width); + private static efl_text_font_lang_set_delegate efl_text_font_lang_set_static_delegate; + + + private delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_bitmap_scalable_get"); + + private static Efl.TextFontBitmapScalable font_bitmap_scalable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_bitmap_scalable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontBitmapScalable _ret_var = default(Efl.TextFontBitmapScalable); + try + { + _ret_var = ((ITextInteractive)wrapper).GetFontBitmapScalable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_underline_dashed_width_set_api_delegate(System.IntPtr obj, int width); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_width_set"); - private static void underline_dashed_width_set(System.IntPtr obj, System.IntPtr pd, int width) - { - Eina.Log.Debug("function efl_text_underline_dashed_width_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetUnderlineDashedWidth( width); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); + } + else + { + return efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_dashed_width_set_delegate efl_text_underline_dashed_width_set_static_delegate; - - - private delegate int efl_text_underline_dashed_gap_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_font_bitmap_scalable_get_delegate efl_text_font_bitmap_scalable_get_static_delegate; + + + private delegate void efl_text_font_bitmap_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable); + + + public delegate void efl_text_font_bitmap_scalable_set_api_delegate(System.IntPtr obj, Efl.TextFontBitmapScalable scalable); + + public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_bitmap_scalable_set"); + + private static void font_bitmap_scalable_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable) + { + Eina.Log.Debug("function efl_text_font_bitmap_scalable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetFontBitmapScalable(scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_text_underline_dashed_gap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_gap_get"); - private static int underline_dashed_gap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_dashed_gap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextInteractive)wrapper).GetUnderlineDashedGap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scalable); } + } + + private static efl_text_font_bitmap_scalable_set_delegate efl_text_font_bitmap_scalable_set_static_delegate; + + + private delegate double efl_text_ellipsis_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_ellipsis_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_ellipsis_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_ellipsis_get"); + + private static double ellipsis_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_ellipsis_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextInteractive)wrapper).GetEllipsis(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_underline_dashed_gap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_ellipsis_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_dashed_gap_get_delegate efl_text_underline_dashed_gap_get_static_delegate; + private static efl_text_ellipsis_get_delegate efl_text_ellipsis_get_static_delegate; + + + private delegate void efl_text_ellipsis_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_ellipsis_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_ellipsis_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_ellipsis_set"); + + private static void ellipsis_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_ellipsis_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetEllipsis(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline_dashed_gap_set_delegate(System.IntPtr obj, System.IntPtr pd, int gap); + + } + else + { + efl_text_ellipsis_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } + private static efl_text_ellipsis_set_delegate efl_text_ellipsis_set_static_delegate; + + + private delegate Efl.TextFormatWrap efl_text_wrap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFormatWrap efl_text_wrap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_wrap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_wrap_get"); + + private static Efl.TextFormatWrap wrap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_wrap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFormatWrap _ret_var = default(Efl.TextFormatWrap); + try + { + _ret_var = ((ITextInteractive)wrapper).GetWrap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_underline_dashed_gap_set_api_delegate(System.IntPtr obj, int gap); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_gap_set"); - private static void underline_dashed_gap_set(System.IntPtr obj, System.IntPtr pd, int gap) - { - Eina.Log.Debug("function efl_text_underline_dashed_gap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetUnderlineDashedGap( gap); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_gap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gap); + return _ret_var; + + } + else + { + return efl_text_wrap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_dashed_gap_set_delegate efl_text_underline_dashed_gap_set_static_delegate; + private static efl_text_wrap_get_delegate efl_text_wrap_get_static_delegate; + + + private delegate void efl_text_wrap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap); + + + public delegate void efl_text_wrap_set_api_delegate(System.IntPtr obj, Efl.TextFormatWrap wrap); + + public static Efl.Eo.FunctionWrapper efl_text_wrap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_wrap_set"); + + private static void wrap_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap) + { + Eina.Log.Debug("function efl_text_wrap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetWrap(wrap); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + } + else + { + efl_text_wrap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), wrap); + } + } + private static efl_text_wrap_set_delegate efl_text_wrap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_multiline_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_multiline_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_multiline_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_multiline_get"); + + private static bool multiline_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_multiline_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextInteractive)wrapper).GetMultiline(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_underline2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline2_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline2_color_get"); - private static void underline2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline2_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextInteractive)wrapper).GetUnderline2Color( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + return _ret_var; + + } + else + { + return efl_text_multiline_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline2_color_get_delegate efl_text_underline2_color_get_static_delegate; + private static efl_text_multiline_get_delegate efl_text_multiline_get_static_delegate; + + + private delegate void efl_text_multiline_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + + public delegate void efl_text_multiline_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public static Efl.Eo.FunctionWrapper efl_text_multiline_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_multiline_set"); + + private static void multiline_set(System.IntPtr obj, System.IntPtr pd, bool enabled) + { + Eina.Log.Debug("function efl_text_multiline_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetMultiline(enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + } + else + { + efl_text_multiline_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); + } + } + private static efl_text_multiline_set_delegate efl_text_multiline_set_static_delegate; + + + private delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_auto_type_get"); + + private static Efl.TextFormatHorizontalAlignmentAutoType halign_auto_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_halign_auto_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFormatHorizontalAlignmentAutoType _ret_var = default(Efl.TextFormatHorizontalAlignmentAutoType); + try + { + _ret_var = ((ITextInteractive)wrapper).GetHalignAutoType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_underline2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline2_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline2_color_set"); - private static void underline2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline2_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetUnderline2Color( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + return _ret_var; + + } + else + { + return efl_text_halign_auto_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline2_color_set_delegate efl_text_underline2_color_set_static_delegate; + private static efl_text_halign_auto_type_get_delegate efl_text_halign_auto_type_get_static_delegate; + + + private delegate void efl_text_halign_auto_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value); + + + public delegate void efl_text_halign_auto_type_set_api_delegate(System.IntPtr obj, Efl.TextFormatHorizontalAlignmentAutoType value); + + public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_auto_type_set"); + + private static void halign_auto_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value) + { + Eina.Log.Debug("function efl_text_halign_auto_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetHalignAutoType(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_text_halign_auto_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } + private static efl_text_halign_auto_type_set_delegate efl_text_halign_auto_type_set_static_delegate; + + + private delegate double efl_text_halign_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_halign_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_halign_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_get"); + + private static double halign_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_halign_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextInteractive)wrapper).GetHalign(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_type_get"); - private static Efl.TextStyleStrikethroughType strikethrough_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_strikethrough_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleStrikethroughType _ret_var = default(Efl.TextStyleStrikethroughType); - try { - _ret_var = ((ITextInteractive)wrapper).GetStrikethroughType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + return _ret_var; + + } + else + { + return efl_text_halign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_halign_get_delegate efl_text_halign_get_static_delegate; + + + private delegate void efl_text_halign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_halign_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_halign_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_set"); + + private static void halign_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_halign_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetHalign(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_text_halign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } + + private static efl_text_halign_set_delegate efl_text_halign_set_static_delegate; + + + private delegate double efl_text_valign_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_valign_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_valign_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_valign_get"); + + private static double valign_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_valign_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextInteractive)wrapper).GetValign(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_strikethrough_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_strikethrough_type_get_delegate efl_text_strikethrough_type_get_static_delegate; + private static efl_text_valign_get_delegate efl_text_valign_get_static_delegate; + + + private delegate void efl_text_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_valign_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_valign_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_valign_set"); + + private static void valign_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_valign_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetValign(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } - private delegate void efl_text_strikethrough_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type); + private static efl_text_valign_set_delegate efl_text_valign_set_static_delegate; + + + private delegate double efl_text_linegap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_linegap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_linegap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linegap_get"); + + private static double linegap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_linegap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextInteractive)wrapper).GetLinegap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_strikethrough_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleStrikethroughType type); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_type_set"); - private static void strikethrough_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type) - { - Eina.Log.Debug("function efl_text_strikethrough_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetStrikethroughType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_strikethrough_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + else + { + return efl_text_linegap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_strikethrough_type_set_delegate efl_text_strikethrough_type_set_static_delegate; + private static efl_text_linegap_get_delegate efl_text_linegap_get_static_delegate; + + + private delegate void efl_text_linegap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_linegap_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_linegap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linegap_set"); + + private static void linegap_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_linegap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetLinegap(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_strikethrough_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + } + else + { + efl_text_linegap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } + private static efl_text_linegap_set_delegate efl_text_linegap_set_static_delegate; + + + private delegate double efl_text_linerelgap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_linerelgap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_linerelgap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linerelgap_get"); + + private static double linerelgap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_linerelgap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextInteractive)wrapper).GetLinerelgap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_strikethrough_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_color_get"); - private static void strikethrough_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_strikethrough_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextInteractive)wrapper).GetStrikethroughColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_strikethrough_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + return _ret_var; + + } + else + { + return efl_text_linerelgap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_strikethrough_color_get_delegate efl_text_strikethrough_color_get_static_delegate; + private static efl_text_linerelgap_get_delegate efl_text_linerelgap_get_static_delegate; + + + private delegate void efl_text_linerelgap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_linerelgap_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_linerelgap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linerelgap_set"); + + private static void linerelgap_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_linerelgap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetLinerelgap(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_linerelgap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } - private delegate void efl_text_strikethrough_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + private static efl_text_linerelgap_set_delegate efl_text_linerelgap_set_static_delegate; + + + private delegate int efl_text_tabstops_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_tabstops_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_tabstops_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_tabstops_get"); + + private static int tabstops_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_tabstops_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextInteractive)wrapper).GetTabstops(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_strikethrough_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_color_set"); - private static void strikethrough_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_strikethrough_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetStrikethroughColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_strikethrough_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + else + { + return efl_text_tabstops_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_strikethrough_color_set_delegate efl_text_strikethrough_color_set_static_delegate; + private static efl_text_tabstops_get_delegate efl_text_tabstops_get_static_delegate; + + + private delegate void efl_text_tabstops_set_delegate(System.IntPtr obj, System.IntPtr pd, int value); + + + public delegate void efl_text_tabstops_set_api_delegate(System.IntPtr obj, int value); + + public static Efl.Eo.FunctionWrapper efl_text_tabstops_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_tabstops_set"); + + private static void tabstops_set(System.IntPtr obj, System.IntPtr pd, int value) + { + Eina.Log.Debug("function efl_text_tabstops_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetTabstops(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_tabstops_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } - private delegate Efl.TextStyleEffectType efl_text_effect_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_tabstops_set_delegate efl_text_tabstops_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_password_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_password_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_password_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_password_get"); + + private static bool password_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_password_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextInteractive)wrapper).GetPassword(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.TextStyleEffectType efl_text_effect_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_effect_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_effect_type_get"); - private static Efl.TextStyleEffectType effect_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_effect_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleEffectType _ret_var = default(Efl.TextStyleEffectType); - try { - _ret_var = ((ITextInteractive)wrapper).GetEffectType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_text_password_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_password_get_delegate efl_text_password_get_static_delegate; + + + private delegate void efl_text_password_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + + public delegate void efl_text_password_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public static Efl.Eo.FunctionWrapper efl_text_password_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_password_set"); + + private static void password_set(System.IntPtr obj, System.IntPtr pd, bool enabled) + { + Eina.Log.Debug("function efl_text_password_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetPassword(enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_password_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); + } + } + + private static efl_text_password_set_delegate efl_text_password_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_replacement_char_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_replacement_char_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_replacement_char_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_replacement_char_get"); + + private static System.String replacement_char_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_replacement_char_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextInteractive)wrapper).GetReplacementChar(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_effect_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_replacement_char_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_effect_type_get_delegate efl_text_effect_type_get_static_delegate; + private static efl_text_replacement_char_get_delegate efl_text_replacement_char_get_static_delegate; + + + private delegate void efl_text_replacement_char_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + + + public delegate void efl_text_replacement_char_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + + public static Efl.Eo.FunctionWrapper efl_text_replacement_char_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_replacement_char_set"); + + private static void replacement_char_set(System.IntPtr obj, System.IntPtr pd, System.String repch) + { + Eina.Log.Debug("function efl_text_replacement_char_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetReplacementChar(repch); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_effect_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type); + + } + else + { + efl_text_replacement_char_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repch); + } + } + private static efl_text_replacement_char_set_delegate efl_text_replacement_char_set_static_delegate; + + + private delegate void efl_text_normal_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_normal_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_normal_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_normal_color_get"); + + private static void normal_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_normal_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextInteractive)wrapper).GetNormalColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_effect_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleEffectType type); - public static Efl.Eo.FunctionWrapper efl_text_effect_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_effect_type_set"); - private static void effect_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type) - { - Eina.Log.Debug("function efl_text_effect_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetEffectType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_effect_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + + } + else + { + efl_text_normal_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_effect_type_set_delegate efl_text_effect_type_set_static_delegate; + private static efl_text_normal_color_get_delegate efl_text_normal_color_get_static_delegate; + + + private delegate void efl_text_normal_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_normal_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_normal_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_normal_color_set"); + + private static void normal_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_normal_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetNormalColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_normal_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate void efl_text_outline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static efl_text_normal_color_set_delegate efl_text_normal_color_set_static_delegate; + + + private delegate Efl.TextStyleBackingType efl_text_backing_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleBackingType efl_text_backing_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_backing_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_type_get"); + + private static Efl.TextStyleBackingType backing_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_backing_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleBackingType _ret_var = default(Efl.TextStyleBackingType); + try + { + _ret_var = ((ITextInteractive)wrapper).GetBackingType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_outline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_outline_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_outline_color_get"); - private static void outline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_outline_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextInteractive)wrapper).GetOutlineColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_outline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + else + { + return efl_text_backing_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_outline_color_get_delegate efl_text_outline_color_get_static_delegate; + private static efl_text_backing_type_get_delegate efl_text_backing_type_get_static_delegate; + + + private delegate void efl_text_backing_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type); + + + public delegate void efl_text_backing_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleBackingType type); + + public static Efl.Eo.FunctionWrapper efl_text_backing_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_type_set"); + + private static void backing_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type) + { + Eina.Log.Debug("function efl_text_backing_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetBackingType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_outline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + } + else + { + efl_text_backing_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + private static efl_text_backing_type_set_delegate efl_text_backing_type_set_static_delegate; + + + private delegate void efl_text_backing_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_backing_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_backing_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_color_get"); + + private static void backing_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_backing_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextInteractive)wrapper).GetBackingColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_outline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_outline_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_outline_color_set"); - private static void outline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_outline_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetOutlineColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_outline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + + } + else + { + efl_text_backing_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_outline_color_set_delegate efl_text_outline_color_set_static_delegate; + private static efl_text_backing_color_get_delegate efl_text_backing_color_get_static_delegate; + + + private delegate void efl_text_backing_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_backing_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_backing_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_color_set"); + + private static void backing_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_backing_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetBackingColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_backing_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_backing_color_set_delegate efl_text_backing_color_set_static_delegate; + + + private delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_type_get"); + + private static Efl.TextStyleUnderlineType underline_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleUnderlineType _ret_var = default(Efl.TextStyleUnderlineType); + try + { + _ret_var = ((ITextInteractive)wrapper).GetUnderlineType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_direction_get"); - private static Efl.TextStyleShadowDirection shadow_direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_shadow_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleShadowDirection _ret_var = default(Efl.TextStyleShadowDirection); - try { - _ret_var = ((ITextInteractive)wrapper).GetShadowDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_text_underline_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_underline_type_get_delegate efl_text_underline_type_get_static_delegate; + + + private delegate void efl_text_underline_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type); + + + public delegate void efl_text_underline_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleUnderlineType type); + + public static Efl.Eo.FunctionWrapper efl_text_underline_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_type_set"); + + private static void underline_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type) + { + Eina.Log.Debug("function efl_text_underline_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetUnderlineType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + + private static efl_text_underline_type_set_delegate efl_text_underline_type_set_static_delegate; + + + private delegate void efl_text_underline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_color_get"); + + private static void underline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextInteractive)wrapper).GetUnderlineColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_underline_color_get_delegate efl_text_underline_color_get_static_delegate; + + + private delegate void efl_text_underline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_color_set"); + + private static void underline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetUnderlineColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_underline_color_set_delegate efl_text_underline_color_set_static_delegate; + + + private delegate double efl_text_underline_height_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_underline_height_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_height_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_height_get"); + + private static double underline_height_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_height_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextInteractive)wrapper).GetUnderlineHeight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_shadow_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_underline_height_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_shadow_direction_get_delegate efl_text_shadow_direction_get_static_delegate; + private static efl_text_underline_height_get_delegate efl_text_underline_height_get_static_delegate; + + + private delegate void efl_text_underline_height_set_delegate(System.IntPtr obj, System.IntPtr pd, double height); + + + public delegate void efl_text_underline_height_set_api_delegate(System.IntPtr obj, double height); + + public static Efl.Eo.FunctionWrapper efl_text_underline_height_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_height_set"); + + private static void underline_height_set(System.IntPtr obj, System.IntPtr pd, double height) + { + Eina.Log.Debug("function efl_text_underline_height_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetUnderlineHeight(height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_shadow_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type); + + } + else + { + efl_text_underline_height_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), height); + } + } + private static efl_text_underline_height_set_delegate efl_text_underline_height_set_static_delegate; + + + private delegate void efl_text_underline_dashed_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline_dashed_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_color_get"); + + private static void underline_dashed_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline_dashed_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextInteractive)wrapper).GetUnderlineDashedColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_shadow_direction_set_api_delegate(System.IntPtr obj, Efl.TextStyleShadowDirection type); - public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_direction_set"); - private static void shadow_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type) - { - Eina.Log.Debug("function efl_text_shadow_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetShadowDirection( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_shadow_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + + } + else + { + efl_text_underline_dashed_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_shadow_direction_set_delegate efl_text_shadow_direction_set_static_delegate; + private static efl_text_underline_dashed_color_get_delegate efl_text_underline_dashed_color_get_static_delegate; + + + private delegate void efl_text_underline_dashed_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline_dashed_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_color_set"); + + private static void underline_dashed_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline_dashed_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetUnderlineDashedColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate void efl_text_shadow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static efl_text_underline_dashed_color_set_delegate efl_text_underline_dashed_color_set_static_delegate; + + + private delegate int efl_text_underline_dashed_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_underline_dashed_width_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_width_get"); + + private static int underline_dashed_width_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_dashed_width_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextInteractive)wrapper).GetUnderlineDashedWidth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_shadow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_shadow_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_color_get"); - private static void shadow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_shadow_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextInteractive)wrapper).GetShadowColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_shadow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + else + { + return efl_text_underline_dashed_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_shadow_color_get_delegate efl_text_shadow_color_get_static_delegate; + private static efl_text_underline_dashed_width_get_delegate efl_text_underline_dashed_width_get_static_delegate; + + + private delegate void efl_text_underline_dashed_width_set_delegate(System.IntPtr obj, System.IntPtr pd, int width); + + + public delegate void efl_text_underline_dashed_width_set_api_delegate(System.IntPtr obj, int width); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_width_set"); + + private static void underline_dashed_width_set(System.IntPtr obj, System.IntPtr pd, int width) + { + Eina.Log.Debug("function efl_text_underline_dashed_width_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetUnderlineDashedWidth(width); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); + } + } - private delegate void efl_text_shadow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + private static efl_text_underline_dashed_width_set_delegate efl_text_underline_dashed_width_set_static_delegate; + + + private delegate int efl_text_underline_dashed_gap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_underline_dashed_gap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_gap_get"); + + private static int underline_dashed_gap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_dashed_gap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextInteractive)wrapper).GetUnderlineDashedGap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_shadow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_shadow_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_color_set"); - private static void shadow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_shadow_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetShadowColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_shadow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + else + { + return efl_text_underline_dashed_gap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_shadow_color_set_delegate efl_text_shadow_color_set_static_delegate; + private static efl_text_underline_dashed_gap_get_delegate efl_text_underline_dashed_gap_get_static_delegate; + + + private delegate void efl_text_underline_dashed_gap_set_delegate(System.IntPtr obj, System.IntPtr pd, int gap); + + + public delegate void efl_text_underline_dashed_gap_set_api_delegate(System.IntPtr obj, int gap); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_gap_set"); + + private static void underline_dashed_gap_set(System.IntPtr obj, System.IntPtr pd, int gap) + { + Eina.Log.Debug("function efl_text_underline_dashed_gap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetUnderlineDashedGap(gap); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_glow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + } + else + { + efl_text_underline_dashed_gap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gap); + } + } + private static efl_text_underline_dashed_gap_set_delegate efl_text_underline_dashed_gap_set_static_delegate; + + + private delegate void efl_text_underline2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline2_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline2_color_get"); + + private static void underline2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline2_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextInteractive)wrapper).GetUnderline2Color(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_glow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow_color_get"); - private static void glow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_glow_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextInteractive)wrapper).GetGlowColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + + } + else + { + efl_text_underline2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_glow_color_get_delegate efl_text_glow_color_get_static_delegate; + private static efl_text_underline2_color_get_delegate efl_text_underline2_color_get_static_delegate; + + + private delegate void efl_text_underline2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline2_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline2_color_set"); + + private static void underline2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline2_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetUnderline2Color(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate void efl_text_glow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + private static efl_text_underline2_color_set_delegate efl_text_underline2_color_set_static_delegate; + + + private delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_type_get"); + + private static Efl.TextStyleStrikethroughType strikethrough_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_strikethrough_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleStrikethroughType _ret_var = default(Efl.TextStyleStrikethroughType); + try + { + _ret_var = ((ITextInteractive)wrapper).GetStrikethroughType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_glow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow_color_set"); - private static void glow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_glow_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetGlowColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + else + { + return efl_text_strikethrough_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_glow_color_set_delegate efl_text_glow_color_set_static_delegate; + private static efl_text_strikethrough_type_get_delegate efl_text_strikethrough_type_get_static_delegate; + + + private delegate void efl_text_strikethrough_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type); + + + public delegate void efl_text_strikethrough_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleStrikethroughType type); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_type_set"); + + private static void strikethrough_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type) + { + Eina.Log.Debug("function efl_text_strikethrough_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetStrikethroughType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_glow2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + } + else + { + efl_text_strikethrough_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + private static efl_text_strikethrough_type_set_delegate efl_text_strikethrough_type_set_static_delegate; + + + private delegate void efl_text_strikethrough_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_strikethrough_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_color_get"); + + private static void strikethrough_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_strikethrough_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextInteractive)wrapper).GetStrikethroughColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_glow2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow2_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow2_color_get"); - private static void glow2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_glow2_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextInteractive)wrapper).GetGlow2Color( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + + } + else + { + efl_text_strikethrough_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_glow2_color_get_delegate efl_text_glow2_color_get_static_delegate; + private static efl_text_strikethrough_color_get_delegate efl_text_strikethrough_color_get_static_delegate; + + + private delegate void efl_text_strikethrough_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_strikethrough_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_color_set"); + + private static void strikethrough_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_strikethrough_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetStrikethroughColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_glow2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + } + else + { + efl_text_strikethrough_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + private static efl_text_strikethrough_color_set_delegate efl_text_strikethrough_color_set_static_delegate; + + + private delegate Efl.TextStyleEffectType efl_text_effect_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleEffectType efl_text_effect_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_effect_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_effect_type_get"); + + private static Efl.TextStyleEffectType effect_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_effect_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleEffectType _ret_var = default(Efl.TextStyleEffectType); + try + { + _ret_var = ((ITextInteractive)wrapper).GetEffectType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_glow2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow2_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow2_color_set"); - private static void glow2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_glow2_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetGlow2Color( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + return _ret_var; + + } + else + { + return efl_text_effect_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_glow2_color_set_delegate efl_text_glow2_color_set_static_delegate; + private static efl_text_effect_type_get_delegate efl_text_effect_type_get_static_delegate; + + + private delegate void efl_text_effect_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type); + + + public delegate void efl_text_effect_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleEffectType type); + + public static Efl.Eo.FunctionWrapper efl_text_effect_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_effect_type_set"); + + private static void effect_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type) + { + Eina.Log.Debug("function efl_text_effect_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetEffectType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_gfx_filter_get_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_text_effect_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + private static efl_text_effect_type_set_delegate efl_text_effect_type_set_static_delegate; + + + private delegate void efl_text_outline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_outline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_outline_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_outline_color_get"); + + private static void outline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_outline_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextInteractive)wrapper).GetOutlineColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_gfx_filter_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_gfx_filter_get"); - private static System.String gfx_filter_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_gfx_filter_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextInteractive)wrapper).GetGfxFilter(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_text_outline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); } + } + + private static efl_text_outline_color_get_delegate efl_text_outline_color_get_static_delegate; + + + private delegate void efl_text_outline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_outline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_outline_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_outline_color_set"); + + private static void outline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_outline_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetOutlineColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_outline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_outline_color_set_delegate efl_text_outline_color_set_static_delegate; + + + private delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_direction_get"); + + private static Efl.TextStyleShadowDirection shadow_direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_shadow_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleShadowDirection _ret_var = default(Efl.TextStyleShadowDirection); + try + { + _ret_var = ((ITextInteractive)wrapper).GetShadowDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_gfx_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_shadow_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_gfx_filter_get_delegate efl_text_gfx_filter_get_static_delegate; + private static efl_text_shadow_direction_get_delegate efl_text_shadow_direction_get_static_delegate; + + + private delegate void efl_text_shadow_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type); + + + public delegate void efl_text_shadow_direction_set_api_delegate(System.IntPtr obj, Efl.TextStyleShadowDirection type); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_direction_set"); + + private static void shadow_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type) + { + Eina.Log.Debug("function efl_text_shadow_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetShadowDirection(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_gfx_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + + } + else + { + efl_text_shadow_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + private static efl_text_shadow_direction_set_delegate efl_text_shadow_direction_set_static_delegate; + + + private delegate void efl_text_shadow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_shadow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_color_get"); + + private static void shadow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_shadow_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextInteractive)wrapper).GetShadowColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_gfx_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); - public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_gfx_filter_set"); - private static void gfx_filter_set(System.IntPtr obj, System.IntPtr pd, System.String code) - { - Eina.Log.Debug("function efl_text_gfx_filter_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextInteractive)wrapper).SetGfxFilter( code); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_gfx_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code); + + } + else + { + efl_text_shadow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_gfx_filter_set_delegate efl_text_gfx_filter_set_static_delegate; + + private static efl_text_shadow_color_get_delegate efl_text_shadow_color_get_static_delegate; + + + private delegate void efl_text_shadow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_shadow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_color_set"); + + private static void shadow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_shadow_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetShadowColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_shadow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_shadow_color_set_delegate efl_text_shadow_color_set_static_delegate; + + + private delegate void efl_text_glow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_glow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow_color_get"); + + private static void glow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_glow_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextInteractive)wrapper).GetGlowColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_glow_color_get_delegate efl_text_glow_color_get_static_delegate; + + + private delegate void efl_text_glow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_glow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow_color_set"); + + private static void glow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_glow_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetGlowColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_glow_color_set_delegate efl_text_glow_color_set_static_delegate; + + + private delegate void efl_text_glow2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_glow2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow2_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow2_color_get"); + + private static void glow2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_glow2_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextInteractive)wrapper).GetGlow2Color(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_glow2_color_get_delegate efl_text_glow2_color_get_static_delegate; + + + private delegate void efl_text_glow2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_glow2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow2_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow2_color_set"); + + private static void glow2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_glow2_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetGlow2Color(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_glow2_color_set_delegate efl_text_glow2_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_gfx_filter_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_gfx_filter_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_gfx_filter_get"); + + private static System.String gfx_filter_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_gfx_filter_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextInteractive)wrapper).GetGfxFilter(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_gfx_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_gfx_filter_get_delegate efl_text_gfx_filter_get_static_delegate; + + + private delegate void efl_text_gfx_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + + + public delegate void efl_text_gfx_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + + public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_gfx_filter_set"); + + private static void gfx_filter_set(System.IntPtr obj, System.IntPtr pd, System.String code) + { + Eina.Log.Debug("function efl_text_gfx_filter_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextInteractive)wrapper).SetGfxFilter(code); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_gfx_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code); + } + } + + private static efl_text_gfx_filter_set_delegate efl_text_gfx_filter_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_markup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_markup.eo.cs index 66943e2..fadc598 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_markup.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_markup.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Markup data that populates the text object's style and format -[ITextMarkupNativeInherit] +[Efl.ITextMarkupConcrete.NativeMethods] public interface ITextMarkup : Efl.Eo.IWrapper, IDisposable { @@ -15,8 +17,7 @@ public interface ITextMarkup : System.String GetMarkup(); /// Markup property /// The markup-text representation set to this text. -/// -void SetMarkup( System.String markup); +void SetMarkup(System.String markup); /// Markup property /// The markup-text representation set to this text. System.String Markup { @@ -31,165 +32,243 @@ ITextMarkup { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextMarkupConcrete)) - return Efl.ITextMarkupNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextMarkupConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_text_markup_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextMarkupConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextMarkupConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Markup property /// The markup-text representation set to this text. public System.String GetMarkup() { - var _ret_var = Efl.ITextMarkupNativeInherit.efl_text_markup_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Markup property /// The markup-text representation set to this text. - /// - public void SetMarkup( System.String markup) { - Efl.ITextMarkupNativeInherit.efl_text_markup_set_ptr.Value.Delegate(this.NativeHandle, markup); + public void SetMarkup(System.String markup) { + Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate(this.NativeHandle,markup); Eina.Error.RaiseIfUnhandledException(); } /// Markup property /// The markup-text representation set to this text. public System.String Markup { get { return GetMarkup(); } - set { SetMarkup( value); } + set { SetMarkup(value); } } private static IntPtr GetEflClassStatic() { return Efl.ITextMarkupConcrete.efl_text_markup_interface_get(); } -} -public class ITextMarkupNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_text_markup_get_static_delegate == null) - efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); - if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate)}); - if (efl_text_markup_set_static_delegate == null) - efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); - if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.ITextMarkupConcrete.efl_text_markup_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.ITextMarkupConcrete.efl_text_markup_interface_get(); - } + 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_text_markup_get_static_delegate == null) + { + efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); + } + if (efl_text_markup_set_static_delegate == null) + { + efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_get"); - private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_markup_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextMarkup)wrapper).GetMarkup(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_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.ITextMarkupConcrete.efl_text_markup_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); + + private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_markup_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextMarkup)wrapper).GetMarkup(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; + private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; - private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_set"); - private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkup)wrapper).SetMarkup( markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); + + private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkup)wrapper).SetMarkup(markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); } - } else { - efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); } - } - private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + + private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_markup_interactive.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_markup_interactive.eo.cs index 85b0d4a..96070e3 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_markup_interactive.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_markup_interactive.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Markup data that populates the text object's style and format -[ITextMarkupInteractiveNativeInherit] +[Efl.ITextMarkupInteractiveConcrete.NativeMethods] public interface ITextMarkupInteractive : Efl.ITextCursor , Efl.Eo.IWrapper, IDisposable @@ -15,18 +17,16 @@ public interface ITextMarkupInteractive : /// Start of the markup region /// End of markup region /// The markup-text representation set to this text of a given range -System.String GetMarkupRange( Efl.TextCursorCursor start, Efl.TextCursorCursor end); +System.String GetMarkupRange(Efl.TextCursorCursor start, Efl.TextCursorCursor end); /// Markup of a given range in the text /// Start of the markup region /// End of markup region /// The markup-text representation set to this text of a given range -/// -void SetMarkupRange( Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String markup); +void SetMarkupRange(Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String markup); /// Inserts a markup text to the text object in a given cursor position /// Cursor position to insert markup /// The markup text to insert -/// -void CursorMarkupInsert( Efl.TextCursorCursor cur, System.String markup); +void CursorMarkupInsert(Efl.TextCursorCursor cur, System.String markup); } /// Markup data that populates the text object's style and format sealed public class ITextMarkupInteractiveConcrete : @@ -35,74 +35,109 @@ ITextMarkupInteractive , Efl.ITextCursor { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextMarkupInteractiveConcrete)) - return Efl.ITextMarkupInteractiveNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextMarkupInteractiveConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_text_markup_interactive_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextMarkupInteractiveConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextMarkupInteractiveConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Markup of a given range in the text /// Start of the markup region /// End of markup region /// The markup-text representation set to this text of a given range - public System.String GetMarkupRange( Efl.TextCursorCursor start, Efl.TextCursorCursor end) { - var _ret_var = Efl.ITextMarkupInteractiveNativeInherit.efl_text_markup_interactive_markup_range_get_ptr.Value.Delegate(this.NativeHandle, start, end); + public System.String GetMarkupRange(Efl.TextCursorCursor start, Efl.TextCursorCursor end) { + var _ret_var = Efl.ITextMarkupInteractiveConcrete.NativeMethods.efl_text_markup_interactive_markup_range_get_ptr.Value.Delegate(this.NativeHandle,start, end); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -110,48 +145,45 @@ ITextMarkupInteractive /// Start of the markup region /// End of markup region /// The markup-text representation set to this text of a given range - /// - public void SetMarkupRange( Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String markup) { - Efl.ITextMarkupInteractiveNativeInherit.efl_text_markup_interactive_markup_range_set_ptr.Value.Delegate(this.NativeHandle, start, end, markup); + public void SetMarkupRange(Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String markup) { + Efl.ITextMarkupInteractiveConcrete.NativeMethods.efl_text_markup_interactive_markup_range_set_ptr.Value.Delegate(this.NativeHandle,start, end, markup); Eina.Error.RaiseIfUnhandledException(); } /// Inserts a markup text to the text object in a given cursor position /// Cursor position to insert markup /// The markup text to insert - /// - public void CursorMarkupInsert( Efl.TextCursorCursor cur, System.String markup) { - Efl.ITextMarkupInteractiveNativeInherit.efl_text_markup_interactive_cursor_markup_insert_ptr.Value.Delegate(this.NativeHandle, cur, markup); + public void CursorMarkupInsert(Efl.TextCursorCursor cur, System.String markup) { + Efl.ITextMarkupInteractiveConcrete.NativeMethods.efl_text_markup_interactive_cursor_markup_insert_ptr.Value.Delegate(this.NativeHandle,cur, markup); Eina.Error.RaiseIfUnhandledException(); } /// The object's main cursor. /// Cursor type /// Text cursor object - public Efl.TextCursorCursor GetTextCursor( Efl.TextCursorGetType get_type) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_get_ptr.Value.Delegate(this.NativeHandle, get_type); + public Efl.TextCursorCursor GetTextCursor(Efl.TextCursorGetType get_type) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_get_ptr.Value.Delegate(this.NativeHandle,get_type); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Cursor position /// Cursor object /// Cursor position - public int GetCursorPosition( Efl.TextCursorCursor cur) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_position_get_ptr.Value.Delegate(this.NativeHandle, cur); + public int GetCursorPosition(Efl.TextCursorCursor cur) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_position_get_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Cursor position /// Cursor object /// Cursor position - /// - public void SetCursorPosition( Efl.TextCursorCursor cur, int position) { - Efl.ITextCursorNativeInherit.efl_text_cursor_position_set_ptr.Value.Delegate(this.NativeHandle, cur, position); + public void SetCursorPosition(Efl.TextCursorCursor cur, int position) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_position_set_ptr.Value.Delegate(this.NativeHandle,cur, position); Eina.Error.RaiseIfUnhandledException(); } /// The content of the cursor (the character under the cursor) /// Cursor object /// The unicode codepoint of the character - public Eina.Unicode GetCursorContent( Efl.TextCursorCursor cur) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_content_get_ptr.Value.Delegate(this.NativeHandle, cur); + public Eina.Unicode GetCursorContent(Efl.TextCursorCursor cur) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_content_get_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -168,31 +200,30 @@ ITextMarkupInteractive /// The width of the lower cursor /// The height of the lower cursor /// true if split cursor, false otherwise. - public bool GetCursorGeometry( Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_geometry_get_ptr.Value.Delegate(this.NativeHandle, cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); + public bool GetCursorGeometry(Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_geometry_get_ptr.Value.Delegate(this.NativeHandle,cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Create new cursor /// Cursor object public Efl.TextCursorCursor NewCursor() { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_new_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_new_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Free existing cursor /// Cursor object - /// - public void CursorFree( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_free_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorFree(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_free_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Check if two cursors are equal /// Cursor 1 object /// Cursor 2 object /// true if cursors are equal, false otherwise - public bool CursorEqual( Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_equal_ptr.Value.Delegate(this.NativeHandle, cur1, cur2); + public bool CursorEqual(Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_equal_ptr.Value.Delegate(this.NativeHandle,cur1, cur2); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -200,1084 +231,1619 @@ ITextMarkupInteractive /// Cursor 1 object /// Cursor 2 object /// Difference between cursors - public int CursorCompare( Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_compare_ptr.Value.Delegate(this.NativeHandle, cur1, cur2); + public int CursorCompare(Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_compare_ptr.Value.Delegate(this.NativeHandle,cur1, cur2); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Copy existing cursor /// Destination cursor /// Source cursor - /// - public void CursorCopy( Efl.TextCursorCursor dst, Efl.TextCursorCursor src) { - Efl.ITextCursorNativeInherit.efl_text_cursor_copy_ptr.Value.Delegate(this.NativeHandle, dst, src); + public void CursorCopy(Efl.TextCursorCursor dst, Efl.TextCursorCursor src) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_copy_ptr.Value.Delegate(this.NativeHandle,dst, src); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the next character /// Cursor object - /// - public void CursorCharNext( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_char_next_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorCharNext(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_char_next_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the previous character /// Cursor object - /// - public void CursorCharPrev( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_char_prev_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorCharPrev(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_char_prev_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the next grapheme cluster /// Cursor object - /// - public void CursorClusterNext( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_cluster_next_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorClusterNext(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_cluster_next_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the previous grapheme cluster /// Cursor object - /// - public void CursorClusterPrev( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_cluster_prev_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorClusterPrev(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_cluster_prev_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the first character in this paragraph /// Cursor object - /// - public void CursorParagraphCharFirst( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_char_first_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphCharFirst(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_char_first_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the last character in this paragraph /// Cursor object - /// - public void CursorParagraphCharLast( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_char_last_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphCharLast(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_char_last_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current word start /// Cursor object - /// - public void CursorWordStart( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_word_start_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorWordStart(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_word_start_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current word end /// Cursor object - /// - public void CursorWordEnd( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_word_end_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorWordEnd(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_word_end_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current line first character /// Cursor object - /// - public void CursorLineCharFirst( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_line_char_first_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorLineCharFirst(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_line_char_first_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current line last character /// Cursor object - /// - public void CursorLineCharLast( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_line_char_last_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorLineCharLast(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_line_char_last_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current paragraph first character /// Cursor object - /// - public void CursorParagraphFirst( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_first_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphFirst(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_first_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advance to current paragraph last character /// Cursor object - /// - public void CursorParagraphLast( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_last_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphLast(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_last_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the start of the next text node /// Cursor object - /// - public void CursorParagraphNext( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_next_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphNext(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_next_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Advances to the end of the previous text node /// Cursor object - /// - public void CursorParagraphPrev( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_paragraph_prev_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorParagraphPrev(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_paragraph_prev_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } /// Jump the cursor by the given number of lines /// Cursor object /// Number of lines - /// - public void CursorLineJumpBy( Efl.TextCursorCursor cur, int by) { - Efl.ITextCursorNativeInherit.efl_text_cursor_line_jump_by_ptr.Value.Delegate(this.NativeHandle, cur, by); + public void CursorLineJumpBy(Efl.TextCursorCursor cur, int by) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_line_jump_by_ptr.Value.Delegate(this.NativeHandle,cur, by); Eina.Error.RaiseIfUnhandledException(); } /// Set cursor coordinates /// Cursor object /// X coord to set by. /// Y coord to set by. - /// - public void SetCursorCoord( Efl.TextCursorCursor cur, int x, int y) { - Efl.ITextCursorNativeInherit.efl_text_cursor_coord_set_ptr.Value.Delegate(this.NativeHandle, cur, x, y); + public void SetCursorCoord(Efl.TextCursorCursor cur, int x, int y) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_coord_set_ptr.Value.Delegate(this.NativeHandle,cur, x, y); Eina.Error.RaiseIfUnhandledException(); } /// Set cursor coordinates according to grapheme clusters. It does not allow to put a cursor to the middle of a grapheme cluster. /// Cursor object /// X coord to set by. /// Y coord to set by. - /// - public void SetCursorClusterCoord( Efl.TextCursorCursor cur, int x, int y) { - Efl.ITextCursorNativeInherit.efl_text_cursor_cluster_coord_set_ptr.Value.Delegate(this.NativeHandle, cur, x, y); + public void SetCursorClusterCoord(Efl.TextCursorCursor cur, int x, int y) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_cluster_coord_set_ptr.Value.Delegate(this.NativeHandle,cur, x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds text to the current cursor position and set the cursor to *after* the start of the text just added. /// Cursor object /// Text to append (UTF-8 format). /// Length of the appended text. - public int CursorTextInsert( Efl.TextCursorCursor cur, System.String text) { - var _ret_var = Efl.ITextCursorNativeInherit.efl_text_cursor_text_insert_ptr.Value.Delegate(this.NativeHandle, cur, text); + public int CursorTextInsert(Efl.TextCursorCursor cur, System.String text) { + var _ret_var = Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_text_insert_ptr.Value.Delegate(this.NativeHandle,cur, text); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Deletes a single character from position pointed by given cursor. /// Cursor object - /// - public void CursorCharDelete( Efl.TextCursorCursor cur) { - Efl.ITextCursorNativeInherit.efl_text_cursor_char_delete_ptr.Value.Delegate(this.NativeHandle, cur); + public void CursorCharDelete(Efl.TextCursorCursor cur) { + Efl.ITextCursorConcrete.NativeMethods.efl_text_cursor_char_delete_ptr.Value.Delegate(this.NativeHandle,cur); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.ITextMarkupInteractiveConcrete.efl_text_markup_interactive_interface_get(); } -} -public class ITextMarkupInteractiveNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_text_markup_interactive_markup_range_get_static_delegate == null) - efl_text_markup_interactive_markup_range_get_static_delegate = new efl_text_markup_interactive_markup_range_get_delegate(markup_range_get); - if (methods.FirstOrDefault(m => m.Name == "GetMarkupRange") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_interactive_markup_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_markup_range_get_static_delegate)}); - if (efl_text_markup_interactive_markup_range_set_static_delegate == null) - efl_text_markup_interactive_markup_range_set_static_delegate = new efl_text_markup_interactive_markup_range_set_delegate(markup_range_set); - if (methods.FirstOrDefault(m => m.Name == "SetMarkupRange") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_interactive_markup_range_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_markup_range_set_static_delegate)}); - if (efl_text_markup_interactive_cursor_markup_insert_static_delegate == null) - efl_text_markup_interactive_cursor_markup_insert_static_delegate = new efl_text_markup_interactive_cursor_markup_insert_delegate(cursor_markup_insert); - if (methods.FirstOrDefault(m => m.Name == "CursorMarkupInsert") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_interactive_cursor_markup_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_cursor_markup_insert_static_delegate)}); - if (efl_text_cursor_get_static_delegate == null) - efl_text_cursor_get_static_delegate = new efl_text_cursor_get_delegate(text_cursor_get); - if (methods.FirstOrDefault(m => m.Name == "GetTextCursor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_get_static_delegate)}); - if (efl_text_cursor_position_get_static_delegate == null) - efl_text_cursor_position_get_static_delegate = new efl_text_cursor_position_get_delegate(cursor_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_get_static_delegate)}); - if (efl_text_cursor_position_set_static_delegate == null) - efl_text_cursor_position_set_static_delegate = new efl_text_cursor_position_set_delegate(cursor_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursorPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_set_static_delegate)}); - if (efl_text_cursor_content_get_static_delegate == null) - efl_text_cursor_content_get_static_delegate = new efl_text_cursor_content_get_delegate(cursor_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_content_get_static_delegate)}); - if (efl_text_cursor_geometry_get_static_delegate == null) - efl_text_cursor_geometry_get_static_delegate = new efl_text_cursor_geometry_get_delegate(cursor_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_geometry_get_static_delegate)}); - if (efl_text_cursor_new_static_delegate == null) - efl_text_cursor_new_static_delegate = new efl_text_cursor_new_delegate(cursor_new); - if (methods.FirstOrDefault(m => m.Name == "NewCursor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_new"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_new_static_delegate)}); - if (efl_text_cursor_free_static_delegate == null) - efl_text_cursor_free_static_delegate = new efl_text_cursor_free_delegate(cursor_free); - if (methods.FirstOrDefault(m => m.Name == "CursorFree") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_free"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_free_static_delegate)}); - if (efl_text_cursor_equal_static_delegate == null) - efl_text_cursor_equal_static_delegate = new efl_text_cursor_equal_delegate(cursor_equal); - if (methods.FirstOrDefault(m => m.Name == "CursorEqual") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_equal"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_equal_static_delegate)}); - if (efl_text_cursor_compare_static_delegate == null) - efl_text_cursor_compare_static_delegate = new efl_text_cursor_compare_delegate(cursor_compare); - if (methods.FirstOrDefault(m => m.Name == "CursorCompare") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_compare"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_compare_static_delegate)}); - if (efl_text_cursor_copy_static_delegate == null) - efl_text_cursor_copy_static_delegate = new efl_text_cursor_copy_delegate(cursor_copy); - if (methods.FirstOrDefault(m => m.Name == "CursorCopy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_copy_static_delegate)}); - if (efl_text_cursor_char_next_static_delegate == null) - efl_text_cursor_char_next_static_delegate = new efl_text_cursor_char_next_delegate(cursor_char_next); - if (methods.FirstOrDefault(m => m.Name == "CursorCharNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_char_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_next_static_delegate)}); - if (efl_text_cursor_char_prev_static_delegate == null) - efl_text_cursor_char_prev_static_delegate = new efl_text_cursor_char_prev_delegate(cursor_char_prev); - if (methods.FirstOrDefault(m => m.Name == "CursorCharPrev") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_char_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_prev_static_delegate)}); - if (efl_text_cursor_cluster_next_static_delegate == null) - efl_text_cursor_cluster_next_static_delegate = new efl_text_cursor_cluster_next_delegate(cursor_cluster_next); - if (methods.FirstOrDefault(m => m.Name == "CursorClusterNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_cluster_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_next_static_delegate)}); - if (efl_text_cursor_cluster_prev_static_delegate == null) - efl_text_cursor_cluster_prev_static_delegate = new efl_text_cursor_cluster_prev_delegate(cursor_cluster_prev); - if (methods.FirstOrDefault(m => m.Name == "CursorClusterPrev") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_cluster_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_prev_static_delegate)}); - if (efl_text_cursor_paragraph_char_first_static_delegate == null) - efl_text_cursor_paragraph_char_first_static_delegate = new efl_text_cursor_paragraph_char_first_delegate(cursor_paragraph_char_first); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharFirst") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_first_static_delegate)}); - if (efl_text_cursor_paragraph_char_last_static_delegate == null) - efl_text_cursor_paragraph_char_last_static_delegate = new efl_text_cursor_paragraph_char_last_delegate(cursor_paragraph_char_last); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharLast") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_last_static_delegate)}); - if (efl_text_cursor_word_start_static_delegate == null) - efl_text_cursor_word_start_static_delegate = new efl_text_cursor_word_start_delegate(cursor_word_start); - if (methods.FirstOrDefault(m => m.Name == "CursorWordStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_word_start"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_start_static_delegate)}); - if (efl_text_cursor_word_end_static_delegate == null) - efl_text_cursor_word_end_static_delegate = new efl_text_cursor_word_end_delegate(cursor_word_end); - if (methods.FirstOrDefault(m => m.Name == "CursorWordEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_word_end"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_end_static_delegate)}); - if (efl_text_cursor_line_char_first_static_delegate == null) - efl_text_cursor_line_char_first_static_delegate = new efl_text_cursor_line_char_first_delegate(cursor_line_char_first); - if (methods.FirstOrDefault(m => m.Name == "CursorLineCharFirst") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_line_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_first_static_delegate)}); - if (efl_text_cursor_line_char_last_static_delegate == null) - efl_text_cursor_line_char_last_static_delegate = new efl_text_cursor_line_char_last_delegate(cursor_line_char_last); - if (methods.FirstOrDefault(m => m.Name == "CursorLineCharLast") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_line_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_last_static_delegate)}); - if (efl_text_cursor_paragraph_first_static_delegate == null) - efl_text_cursor_paragraph_first_static_delegate = new efl_text_cursor_paragraph_first_delegate(cursor_paragraph_first); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphFirst") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_first_static_delegate)}); - if (efl_text_cursor_paragraph_last_static_delegate == null) - efl_text_cursor_paragraph_last_static_delegate = new efl_text_cursor_paragraph_last_delegate(cursor_paragraph_last); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphLast") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_last_static_delegate)}); - if (efl_text_cursor_paragraph_next_static_delegate == null) - efl_text_cursor_paragraph_next_static_delegate = new efl_text_cursor_paragraph_next_delegate(cursor_paragraph_next); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_next_static_delegate)}); - if (efl_text_cursor_paragraph_prev_static_delegate == null) - efl_text_cursor_paragraph_prev_static_delegate = new efl_text_cursor_paragraph_prev_delegate(cursor_paragraph_prev); - if (methods.FirstOrDefault(m => m.Name == "CursorParagraphPrev") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_paragraph_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_prev_static_delegate)}); - if (efl_text_cursor_line_jump_by_static_delegate == null) - efl_text_cursor_line_jump_by_static_delegate = new efl_text_cursor_line_jump_by_delegate(cursor_line_jump_by); - if (methods.FirstOrDefault(m => m.Name == "CursorLineJumpBy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_line_jump_by"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_jump_by_static_delegate)}); - if (efl_text_cursor_coord_set_static_delegate == null) - efl_text_cursor_coord_set_static_delegate = new efl_text_cursor_coord_set_delegate(cursor_coord_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursorCoord") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_coord_set_static_delegate)}); - if (efl_text_cursor_cluster_coord_set_static_delegate == null) - efl_text_cursor_cluster_coord_set_static_delegate = new efl_text_cursor_cluster_coord_set_delegate(cursor_cluster_coord_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursorClusterCoord") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_cluster_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_coord_set_static_delegate)}); - if (efl_text_cursor_text_insert_static_delegate == null) - efl_text_cursor_text_insert_static_delegate = new efl_text_cursor_text_insert_delegate(cursor_text_insert); - if (methods.FirstOrDefault(m => m.Name == "CursorTextInsert") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_text_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_text_insert_static_delegate)}); - if (efl_text_cursor_char_delete_static_delegate == null) - efl_text_cursor_char_delete_static_delegate = new efl_text_cursor_char_delete_delegate(cursor_char_delete); - if (methods.FirstOrDefault(m => m.Name == "CursorCharDelete") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_cursor_char_delete"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_delete_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.ITextMarkupInteractiveConcrete.efl_text_markup_interactive_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.ITextMarkupInteractiveConcrete.efl_text_markup_interactive_interface_get(); - } + 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_text_markup_interactive_markup_range_get_static_delegate == null) + { + efl_text_markup_interactive_markup_range_get_static_delegate = new efl_text_markup_interactive_markup_range_get_delegate(markup_range_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMarkupRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_interactive_markup_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_markup_range_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] private delegate System.String efl_text_markup_interactive_markup_range_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + if (efl_text_markup_interactive_markup_range_set_static_delegate == null) + { + efl_text_markup_interactive_markup_range_set_static_delegate = new efl_text_markup_interactive_markup_range_set_delegate(markup_range_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMarkupRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_interactive_markup_range_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_markup_range_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] public delegate System.String efl_text_markup_interactive_markup_range_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end); - public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_markup_range_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_interactive_markup_range_get"); - private static System.String markup_range_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end) - { - Eina.Log.Debug("function efl_text_markup_interactive_markup_range_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextMarkupInteractive)wrapper).GetMarkupRange( start, end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_markup_interactive_cursor_markup_insert_static_delegate == null) + { + efl_text_markup_interactive_cursor_markup_insert_static_delegate = new efl_text_markup_interactive_cursor_markup_insert_delegate(cursor_markup_insert); } - return _ret_var; - } else { - return efl_text_markup_interactive_markup_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); - } - } - private static efl_text_markup_interactive_markup_range_get_delegate efl_text_markup_interactive_markup_range_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorMarkupInsert") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_interactive_cursor_markup_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_interactive_cursor_markup_insert_static_delegate) }); + } - private delegate void efl_text_markup_interactive_markup_range_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] System.String markup); + if (efl_text_cursor_get_static_delegate == null) + { + efl_text_cursor_get_static_delegate = new efl_text_cursor_get_delegate(text_cursor_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTextCursor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_get_static_delegate) }); + } - public delegate void efl_text_markup_interactive_markup_range_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_markup_range_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_interactive_markup_range_set"); - private static void markup_range_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_interactive_markup_range_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).SetMarkupRange( start, end, markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_markup_interactive_markup_range_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end, markup); - } - } - private static efl_text_markup_interactive_markup_range_set_delegate efl_text_markup_interactive_markup_range_set_static_delegate; + if (efl_text_cursor_position_get_static_delegate == null) + { + efl_text_cursor_position_get_static_delegate = new efl_text_cursor_position_get_delegate(cursor_position_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCursorPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_get_static_delegate) }); + } - private delegate void efl_text_markup_interactive_cursor_markup_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + if (efl_text_cursor_position_set_static_delegate == null) + { + efl_text_cursor_position_set_static_delegate = new efl_text_cursor_position_set_delegate(cursor_position_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCursorPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_position_set_static_delegate) }); + } - public delegate void efl_text_markup_interactive_cursor_markup_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_cursor_markup_insert_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_interactive_cursor_markup_insert"); - private static void cursor_markup_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_interactive_cursor_markup_insert was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorMarkupInsert( cur, markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_markup_interactive_cursor_markup_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, markup); - } - } - private static efl_text_markup_interactive_cursor_markup_insert_delegate efl_text_markup_interactive_cursor_markup_insert_static_delegate; + if (efl_text_cursor_content_get_static_delegate == null) + { + efl_text_cursor_content_get_static_delegate = new efl_text_cursor_content_get_delegate(cursor_content_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCursorContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_content_get_static_delegate) }); + } - private delegate Efl.TextCursorCursor efl_text_cursor_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type); + if (efl_text_cursor_geometry_get_static_delegate == null) + { + efl_text_cursor_geometry_get_static_delegate = new efl_text_cursor_geometry_get_delegate(cursor_geometry_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCursorGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_geometry_get_static_delegate) }); + } - public delegate Efl.TextCursorCursor efl_text_cursor_get_api_delegate(System.IntPtr obj, Efl.TextCursorGetType get_type); - public static Efl.Eo.FunctionWrapper efl_text_cursor_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_get"); - private static Efl.TextCursorCursor text_cursor_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type) - { - Eina.Log.Debug("function efl_text_cursor_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); - try { - _ret_var = ((ITextMarkupInteractive)wrapper).GetTextCursor( get_type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_new_static_delegate == null) + { + efl_text_cursor_new_static_delegate = new efl_text_cursor_new_delegate(cursor_new); } - return _ret_var; - } else { - return efl_text_cursor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), get_type); - } - } - private static efl_text_cursor_get_delegate efl_text_cursor_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "NewCursor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_new"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_new_static_delegate) }); + } - private delegate int efl_text_cursor_position_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_free_static_delegate == null) + { + efl_text_cursor_free_static_delegate = new efl_text_cursor_free_delegate(cursor_free); + } + if (methods.FirstOrDefault(m => m.Name == "CursorFree") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_free"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_free_static_delegate) }); + } - public delegate int efl_text_cursor_position_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_position_get"); - private static int cursor_position_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextMarkupInteractive)wrapper).GetCursorPosition( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_equal_static_delegate == null) + { + efl_text_cursor_equal_static_delegate = new efl_text_cursor_equal_delegate(cursor_equal); } - return _ret_var; - } else { - return efl_text_cursor_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_position_get_delegate efl_text_cursor_position_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorEqual") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_equal"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_equal_static_delegate) }); + } - private delegate void efl_text_cursor_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position); + if (efl_text_cursor_compare_static_delegate == null) + { + efl_text_cursor_compare_static_delegate = new efl_text_cursor_compare_delegate(cursor_compare); + } + if (methods.FirstOrDefault(m => m.Name == "CursorCompare") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_compare"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_compare_static_delegate) }); + } - public delegate void efl_text_cursor_position_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int position); - public static Efl.Eo.FunctionWrapper efl_text_cursor_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_position_set"); - private static void cursor_position_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position) - { - Eina.Log.Debug("function efl_text_cursor_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).SetCursorPosition( cur, position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, position); - } - } - private static efl_text_cursor_position_set_delegate efl_text_cursor_position_set_static_delegate; + if (efl_text_cursor_copy_static_delegate == null) + { + efl_text_cursor_copy_static_delegate = new efl_text_cursor_copy_delegate(cursor_copy); + } + if (methods.FirstOrDefault(m => m.Name == "CursorCopy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_copy_static_delegate) }); + } - private delegate Eina.Unicode efl_text_cursor_content_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_char_next_static_delegate == null) + { + efl_text_cursor_char_next_static_delegate = new efl_text_cursor_char_next_delegate(cursor_char_next); + } + if (methods.FirstOrDefault(m => m.Name == "CursorCharNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_char_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_next_static_delegate) }); + } - public delegate Eina.Unicode efl_text_cursor_content_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_content_get"); - private static Eina.Unicode cursor_content_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Unicode _ret_var = default(Eina.Unicode); - try { - _ret_var = ((ITextMarkupInteractive)wrapper).GetCursorContent( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_char_prev_static_delegate == null) + { + efl_text_cursor_char_prev_static_delegate = new efl_text_cursor_char_prev_delegate(cursor_char_prev); } - return _ret_var; - } else { - return efl_text_cursor_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_content_get_delegate efl_text_cursor_content_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorCharPrev") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_char_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_prev_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_cursor_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); + if (efl_text_cursor_cluster_next_static_delegate == null) + { + efl_text_cursor_cluster_next_static_delegate = new efl_text_cursor_cluster_next_delegate(cursor_cluster_next); + } + if (methods.FirstOrDefault(m => m.Name == "CursorClusterNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_cluster_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_next_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_cursor_geometry_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); - public static Efl.Eo.FunctionWrapper efl_text_cursor_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_geometry_get"); - private static bool cursor_geometry_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) - { - Eina.Log.Debug("function efl_text_cursor_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - cx = default(int); cy = default(int); cw = default(int); ch = default(int); cx2 = default(int); cy2 = default(int); cw2 = default(int); ch2 = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((ITextMarkupInteractive)wrapper).GetCursorGeometry( cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_cluster_prev_static_delegate == null) + { + efl_text_cursor_cluster_prev_static_delegate = new efl_text_cursor_cluster_prev_delegate(cursor_cluster_prev); } - return _ret_var; - } else { - return efl_text_cursor_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); - } - } - private static efl_text_cursor_geometry_get_delegate efl_text_cursor_geometry_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorClusterPrev") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_cluster_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_prev_static_delegate) }); + } - private delegate Efl.TextCursorCursor efl_text_cursor_new_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_cursor_paragraph_char_first_static_delegate == null) + { + efl_text_cursor_paragraph_char_first_static_delegate = new efl_text_cursor_paragraph_char_first_delegate(cursor_paragraph_char_first); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharFirst") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_first_static_delegate) }); + } - public delegate Efl.TextCursorCursor efl_text_cursor_new_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_cursor_new_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_new"); - private static Efl.TextCursorCursor cursor_new(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_cursor_new was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); - try { - _ret_var = ((ITextMarkupInteractive)wrapper).NewCursor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_paragraph_char_last_static_delegate == null) + { + efl_text_cursor_paragraph_char_last_static_delegate = new efl_text_cursor_paragraph_char_last_delegate(cursor_paragraph_char_last); } - return _ret_var; - } else { - return efl_text_cursor_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_cursor_new_delegate efl_text_cursor_new_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphCharLast") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_char_last_static_delegate) }); + } - private delegate void efl_text_cursor_free_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_word_start_static_delegate == null) + { + efl_text_cursor_word_start_static_delegate = new efl_text_cursor_word_start_delegate(cursor_word_start); + } + if (methods.FirstOrDefault(m => m.Name == "CursorWordStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_word_start"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_start_static_delegate) }); + } - public delegate void efl_text_cursor_free_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_free_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_free"); - private static void cursor_free(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_free was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorFree( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_free_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_free_delegate efl_text_cursor_free_static_delegate; + if (efl_text_cursor_word_end_static_delegate == null) + { + efl_text_cursor_word_end_static_delegate = new efl_text_cursor_word_end_delegate(cursor_word_end); + } + if (methods.FirstOrDefault(m => m.Name == "CursorWordEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_word_end"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_word_end_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_cursor_equal_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + if (efl_text_cursor_line_char_first_static_delegate == null) + { + efl_text_cursor_line_char_first_static_delegate = new efl_text_cursor_line_char_first_delegate(cursor_line_char_first); + } + if (methods.FirstOrDefault(m => m.Name == "CursorLineCharFirst") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_line_char_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_first_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_cursor_equal_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); - public static Efl.Eo.FunctionWrapper efl_text_cursor_equal_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_equal"); - private static bool cursor_equal(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) - { - Eina.Log.Debug("function efl_text_cursor_equal was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ITextMarkupInteractive)wrapper).CursorEqual( cur1, cur2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_line_char_last_static_delegate == null) + { + efl_text_cursor_line_char_last_static_delegate = new efl_text_cursor_line_char_last_delegate(cursor_line_char_last); } - return _ret_var; - } else { - return efl_text_cursor_equal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); - } - } - private static efl_text_cursor_equal_delegate efl_text_cursor_equal_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorLineCharLast") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_line_char_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_char_last_static_delegate) }); + } - private delegate int efl_text_cursor_compare_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + if (efl_text_cursor_paragraph_first_static_delegate == null) + { + efl_text_cursor_paragraph_first_static_delegate = new efl_text_cursor_paragraph_first_delegate(cursor_paragraph_first); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphFirst") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_first"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_first_static_delegate) }); + } - public delegate int efl_text_cursor_compare_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); - public static Efl.Eo.FunctionWrapper efl_text_cursor_compare_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_compare"); - private static int cursor_compare(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) - { - Eina.Log.Debug("function efl_text_cursor_compare was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextMarkupInteractive)wrapper).CursorCompare( cur1, cur2); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_cursor_paragraph_last_static_delegate == null) + { + efl_text_cursor_paragraph_last_static_delegate = new efl_text_cursor_paragraph_last_delegate(cursor_paragraph_last); } - return _ret_var; - } else { - return efl_text_cursor_compare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); - } - } - private static efl_text_cursor_compare_delegate efl_text_cursor_compare_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphLast") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_last"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_last_static_delegate) }); + } - private delegate void efl_text_cursor_copy_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); + if (efl_text_cursor_paragraph_next_static_delegate == null) + { + efl_text_cursor_paragraph_next_static_delegate = new efl_text_cursor_paragraph_next_delegate(cursor_paragraph_next); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_next"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_next_static_delegate) }); + } - public delegate void efl_text_cursor_copy_api_delegate(System.IntPtr obj, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); - public static Efl.Eo.FunctionWrapper efl_text_cursor_copy_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_copy"); - private static void cursor_copy(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src) - { - Eina.Log.Debug("function efl_text_cursor_copy was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorCopy( dst, src); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dst, src); - } - } - private static efl_text_cursor_copy_delegate efl_text_cursor_copy_static_delegate; + if (efl_text_cursor_paragraph_prev_static_delegate == null) + { + efl_text_cursor_paragraph_prev_static_delegate = new efl_text_cursor_paragraph_prev_delegate(cursor_paragraph_prev); + } + if (methods.FirstOrDefault(m => m.Name == "CursorParagraphPrev") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_paragraph_prev"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_paragraph_prev_static_delegate) }); + } - private delegate void efl_text_cursor_char_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_line_jump_by_static_delegate == null) + { + efl_text_cursor_line_jump_by_static_delegate = new efl_text_cursor_line_jump_by_delegate(cursor_line_jump_by); + } + if (methods.FirstOrDefault(m => m.Name == "CursorLineJumpBy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_line_jump_by"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_line_jump_by_static_delegate) }); + } - public delegate void efl_text_cursor_char_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_char_next_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_char_next"); - private static void cursor_char_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_char_next was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorCharNext( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_char_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_char_next_delegate efl_text_cursor_char_next_static_delegate; + if (efl_text_cursor_coord_set_static_delegate == null) + { + efl_text_cursor_coord_set_static_delegate = new efl_text_cursor_coord_set_delegate(cursor_coord_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCursorCoord") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_coord_set_static_delegate) }); + } - private delegate void efl_text_cursor_char_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_cluster_coord_set_static_delegate == null) + { + efl_text_cursor_cluster_coord_set_static_delegate = new efl_text_cursor_cluster_coord_set_delegate(cursor_cluster_coord_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCursorClusterCoord") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_cluster_coord_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_cluster_coord_set_static_delegate) }); + } - public delegate void efl_text_cursor_char_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_char_prev_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_char_prev"); - private static void cursor_char_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_char_prev was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorCharPrev( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_char_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_char_prev_delegate efl_text_cursor_char_prev_static_delegate; + if (efl_text_cursor_text_insert_static_delegate == null) + { + efl_text_cursor_text_insert_static_delegate = new efl_text_cursor_text_insert_delegate(cursor_text_insert); + } + if (methods.FirstOrDefault(m => m.Name == "CursorTextInsert") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_text_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_text_insert_static_delegate) }); + } - private delegate void efl_text_cursor_cluster_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + if (efl_text_cursor_char_delete_static_delegate == null) + { + efl_text_cursor_char_delete_static_delegate = new efl_text_cursor_char_delete_delegate(cursor_char_delete); + } + if (methods.FirstOrDefault(m => m.Name == "CursorCharDelete") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_cursor_char_delete"), func = Marshal.GetFunctionPointerForDelegate(efl_text_cursor_char_delete_static_delegate) }); + } - public delegate void efl_text_cursor_cluster_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_next_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_cluster_next"); - private static void cursor_cluster_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_cluster_next was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorClusterNext( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_cluster_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + return descs; } - } - private static efl_text_cursor_cluster_next_delegate efl_text_cursor_cluster_next_static_delegate; - - - private delegate void efl_text_cursor_cluster_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); - - - public delegate void efl_text_cursor_cluster_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_prev_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_cluster_prev"); - private static void cursor_cluster_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_cluster_prev was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorClusterPrev( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_cluster_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.ITextMarkupInteractiveConcrete.efl_text_markup_interactive_interface_get(); } - } - private static efl_text_cursor_cluster_prev_delegate efl_text_cursor_cluster_prev_static_delegate; - - private delegate void efl_text_cursor_paragraph_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + private delegate System.String efl_text_markup_interactive_markup_range_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + public delegate System.String efl_text_markup_interactive_markup_range_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end); + + public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_markup_range_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_interactive_markup_range_get"); + + private static System.String markup_range_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end) + { + Eina.Log.Debug("function efl_text_markup_interactive_markup_range_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextMarkupInteractive)wrapper).GetMarkupRange(start, end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_cursor_paragraph_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_first_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_char_first"); - private static void cursor_paragraph_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_char_first was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorParagraphCharFirst( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_markup_interactive_markup_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); + } } - } - private static efl_text_cursor_paragraph_char_first_delegate efl_text_cursor_paragraph_char_first_static_delegate; - - - private delegate void efl_text_cursor_paragraph_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); - - public delegate void efl_text_cursor_paragraph_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_last_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_char_last"); - private static void cursor_paragraph_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_char_last was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorParagraphCharLast( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + private static efl_text_markup_interactive_markup_range_get_delegate efl_text_markup_interactive_markup_range_get_static_delegate; + + + private delegate void efl_text_markup_interactive_markup_range_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] System.String markup); + + + public delegate void efl_text_markup_interactive_markup_range_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor start, Efl.TextCursorCursor end, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] System.String markup); + + public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_markup_range_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_interactive_markup_range_set"); + + private static void markup_range_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor start, Efl.TextCursorCursor end, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_interactive_markup_range_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).SetMarkupRange(start, end, markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_interactive_markup_range_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end, markup); + } } - } - private static efl_text_cursor_paragraph_char_last_delegate efl_text_cursor_paragraph_char_last_static_delegate; + private static efl_text_markup_interactive_markup_range_set_delegate efl_text_markup_interactive_markup_range_set_static_delegate; + + + private delegate void efl_text_markup_interactive_cursor_markup_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + + public delegate void efl_text_markup_interactive_cursor_markup_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + public static Efl.Eo.FunctionWrapper efl_text_markup_interactive_cursor_markup_insert_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_interactive_cursor_markup_insert"); + + private static void cursor_markup_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_interactive_cursor_markup_insert was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorMarkupInsert(cur, markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_interactive_cursor_markup_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, markup); + } + } - private delegate void efl_text_cursor_word_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_markup_interactive_cursor_markup_insert_delegate efl_text_markup_interactive_cursor_markup_insert_static_delegate; + + + private delegate Efl.TextCursorCursor efl_text_cursor_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type); + + + public delegate Efl.TextCursorCursor efl_text_cursor_get_api_delegate(System.IntPtr obj, Efl.TextCursorGetType get_type); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_get"); + + private static Efl.TextCursorCursor text_cursor_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorGetType get_type) + { + Eina.Log.Debug("function efl_text_cursor_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); + try + { + _ret_var = ((ITextMarkupInteractive)wrapper).GetTextCursor(get_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_cursor_word_start_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_word_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_word_start"); - private static void cursor_word_start(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_word_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorWordStart( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_word_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), get_type); + } } - } - private static efl_text_cursor_word_start_delegate efl_text_cursor_word_start_static_delegate; + private static efl_text_cursor_get_delegate efl_text_cursor_get_static_delegate; + + + private delegate int efl_text_cursor_position_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate int efl_text_cursor_position_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_position_get"); + + private static int cursor_position_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextMarkupInteractive)wrapper).GetCursorPosition(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_cursor_word_end_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); - + return _ret_var; - public delegate void efl_text_cursor_word_end_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_word_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_word_end"); - private static void cursor_word_end(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_word_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorWordEnd( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_word_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_cursor_word_end_delegate efl_text_cursor_word_end_static_delegate; + private static efl_text_cursor_position_get_delegate efl_text_cursor_position_get_static_delegate; + + + private delegate void efl_text_cursor_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position); + + + public delegate void efl_text_cursor_position_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int position); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_position_set"); + + private static void cursor_position_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int position) + { + Eina.Log.Debug("function efl_text_cursor_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).SetCursorPosition(cur, position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, position); + } + } - private delegate void efl_text_cursor_line_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_position_set_delegate efl_text_cursor_position_set_static_delegate; + + + private delegate Eina.Unicode efl_text_cursor_content_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate Eina.Unicode efl_text_cursor_content_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_content_get"); + + private static Eina.Unicode cursor_content_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Unicode _ret_var = default(Eina.Unicode); + try + { + _ret_var = ((ITextMarkupInteractive)wrapper).GetCursorContent(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_cursor_line_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_first_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_line_char_first"); - private static void cursor_line_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_line_char_first was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorLineCharFirst( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_line_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_cursor_line_char_first_delegate efl_text_cursor_line_char_first_static_delegate; - - private delegate void efl_text_cursor_line_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_content_get_delegate efl_text_cursor_content_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_cursor_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_cursor_geometry_get_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_geometry_get"); + + private static bool cursor_geometry_get(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, Efl.TextCursorType ctype, out int cx, out int cy, out int cw, out int ch, out int cx2, out int cy2, out int cw2, out int ch2) + { + Eina.Log.Debug("function efl_text_cursor_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + cx = default(int); cy = default(int); cw = default(int); ch = default(int); cx2 = default(int); cy2 = default(int); cw2 = default(int); ch2 = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((ITextMarkupInteractive)wrapper).GetCursorGeometry(cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_cursor_line_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_last_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_line_char_last"); - private static void cursor_line_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_line_char_last was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorLineCharLast( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_line_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, ctype, out cx, out cy, out cw, out ch, out cx2, out cy2, out cw2, out ch2); + } } - } - private static efl_text_cursor_line_char_last_delegate efl_text_cursor_line_char_last_static_delegate; + private static efl_text_cursor_geometry_get_delegate efl_text_cursor_geometry_get_static_delegate; + + + private delegate Efl.TextCursorCursor efl_text_cursor_new_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextCursorCursor efl_text_cursor_new_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_new_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_new"); + + private static Efl.TextCursorCursor cursor_new(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_cursor_new was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); + try + { + _ret_var = ((ITextMarkupInteractive)wrapper).NewCursor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_cursor_paragraph_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); - + return _ret_var; - public delegate void efl_text_cursor_paragraph_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_first_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_first"); - private static void cursor_paragraph_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_first was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorParagraphFirst( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_cursor_paragraph_first_delegate efl_text_cursor_paragraph_first_static_delegate; + private static efl_text_cursor_new_delegate efl_text_cursor_new_static_delegate; + + + private delegate void efl_text_cursor_free_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_free_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_free_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_free"); + + private static void cursor_free(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_free was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorFree(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_free_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_paragraph_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_free_delegate efl_text_cursor_free_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_cursor_equal_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_cursor_equal_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_equal_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_equal"); + + private static bool cursor_equal(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) + { + Eina.Log.Debug("function efl_text_cursor_equal was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ITextMarkupInteractive)wrapper).CursorEqual(cur1, cur2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_cursor_paragraph_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_last_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_last"); - private static void cursor_paragraph_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_last was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorParagraphLast( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + else + { + return efl_text_cursor_equal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); + } } - } - private static efl_text_cursor_paragraph_last_delegate efl_text_cursor_paragraph_last_static_delegate; + private static efl_text_cursor_equal_delegate efl_text_cursor_equal_static_delegate; + + + private delegate int efl_text_cursor_compare_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + + public delegate int efl_text_cursor_compare_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_compare_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_compare"); + + private static int cursor_compare(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur1, Efl.TextCursorCursor cur2) + { + Eina.Log.Debug("function efl_text_cursor_compare was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextMarkupInteractive)wrapper).CursorCompare(cur1, cur2); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_cursor_paragraph_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + return _ret_var; + } + else + { + return efl_text_cursor_compare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur1, cur2); + } + } - public delegate void efl_text_cursor_paragraph_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_next_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_next"); - private static void cursor_paragraph_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_next was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorParagraphNext( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + private static efl_text_cursor_compare_delegate efl_text_cursor_compare_static_delegate; + + + private delegate void efl_text_cursor_copy_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); + + + public delegate void efl_text_cursor_copy_api_delegate(System.IntPtr obj, Efl.TextCursorCursor dst, Efl.TextCursorCursor src); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_copy_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_copy"); + + private static void cursor_copy(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor dst, Efl.TextCursorCursor src) + { + Eina.Log.Debug("function efl_text_cursor_copy was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorCopy(dst, src); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dst, src); + } } - } - private static efl_text_cursor_paragraph_next_delegate efl_text_cursor_paragraph_next_static_delegate; + private static efl_text_cursor_copy_delegate efl_text_cursor_copy_static_delegate; + + + private delegate void efl_text_cursor_char_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_char_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_char_next_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_char_next"); + + private static void cursor_char_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_char_next was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorCharNext(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_char_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_paragraph_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_char_next_delegate efl_text_cursor_char_next_static_delegate; + + + private delegate void efl_text_cursor_char_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_char_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_char_prev_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_char_prev"); + + private static void cursor_char_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_char_prev was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorCharPrev(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_char_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_char_prev_delegate efl_text_cursor_char_prev_static_delegate; + + + private delegate void efl_text_cursor_cluster_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_cluster_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_next_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_cluster_next"); + + private static void cursor_cluster_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_cluster_next was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorClusterNext(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_cluster_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - public delegate void efl_text_cursor_paragraph_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_prev_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_paragraph_prev"); - private static void cursor_paragraph_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_paragraph_prev was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorParagraphPrev( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_paragraph_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + private static efl_text_cursor_cluster_next_delegate efl_text_cursor_cluster_next_static_delegate; + + + private delegate void efl_text_cursor_cluster_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_cluster_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_prev_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_cluster_prev"); + + private static void cursor_cluster_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_cluster_prev was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorClusterPrev(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_cluster_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_cursor_paragraph_prev_delegate efl_text_cursor_paragraph_prev_static_delegate; + private static efl_text_cursor_cluster_prev_delegate efl_text_cursor_cluster_prev_static_delegate; + + + private delegate void efl_text_cursor_paragraph_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_first_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_char_first"); + + private static void cursor_paragraph_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_char_first was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorParagraphCharFirst(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_line_jump_by_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by); + private static efl_text_cursor_paragraph_char_first_delegate efl_text_cursor_paragraph_char_first_static_delegate; + + + private delegate void efl_text_cursor_paragraph_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_char_last_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_char_last"); + + private static void cursor_paragraph_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_char_last was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorParagraphCharLast(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_paragraph_char_last_delegate efl_text_cursor_paragraph_char_last_static_delegate; + + + private delegate void efl_text_cursor_word_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_word_start_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_word_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_word_start"); + + private static void cursor_word_start(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_word_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorWordStart(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_word_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - public delegate void efl_text_cursor_line_jump_by_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int by); - public static Efl.Eo.FunctionWrapper efl_text_cursor_line_jump_by_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_line_jump_by"); - private static void cursor_line_jump_by(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by) - { - Eina.Log.Debug("function efl_text_cursor_line_jump_by was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorLineJumpBy( cur, by); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_line_jump_by_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, by); + private static efl_text_cursor_word_start_delegate efl_text_cursor_word_start_static_delegate; + + + private delegate void efl_text_cursor_word_end_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_word_end_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_word_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_word_end"); + + private static void cursor_word_end(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_word_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorWordEnd(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_word_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_cursor_line_jump_by_delegate efl_text_cursor_line_jump_by_static_delegate; + private static efl_text_cursor_word_end_delegate efl_text_cursor_word_end_static_delegate; + + + private delegate void efl_text_cursor_line_char_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_line_char_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_first_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_line_char_first"); + + private static void cursor_line_char_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_line_char_first was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorLineCharFirst(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_line_char_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + private static efl_text_cursor_line_char_first_delegate efl_text_cursor_line_char_first_static_delegate; + + + private delegate void efl_text_cursor_line_char_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_line_char_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_line_char_last_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_line_char_last"); + + private static void cursor_line_char_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_line_char_last was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorLineCharLast(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_line_char_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_line_char_last_delegate efl_text_cursor_line_char_last_static_delegate; + + + private delegate void efl_text_cursor_paragraph_first_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_first_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_first_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_first"); + + private static void cursor_paragraph_first(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_first was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorParagraphFirst(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_first_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - public delegate void efl_text_cursor_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); - public static Efl.Eo.FunctionWrapper efl_text_cursor_coord_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_coord_set"); - private static void cursor_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) - { - Eina.Log.Debug("function efl_text_cursor_coord_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).SetCursorCoord( cur, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); + private static efl_text_cursor_paragraph_first_delegate efl_text_cursor_paragraph_first_static_delegate; + + + private delegate void efl_text_cursor_paragraph_last_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_last_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_last_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_last"); + + private static void cursor_paragraph_last(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_last was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorParagraphLast(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_last_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } } - } - private static efl_text_cursor_coord_set_delegate efl_text_cursor_coord_set_static_delegate; + private static efl_text_cursor_paragraph_last_delegate efl_text_cursor_paragraph_last_static_delegate; + + + private delegate void efl_text_cursor_paragraph_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_next_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_next_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_next"); + + private static void cursor_paragraph_next(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_next was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorParagraphNext(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_cluster_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + private static efl_text_cursor_paragraph_next_delegate efl_text_cursor_paragraph_next_static_delegate; + + + private delegate void efl_text_cursor_paragraph_prev_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_paragraph_prev_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_paragraph_prev_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_paragraph_prev"); + + private static void cursor_paragraph_prev(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_paragraph_prev was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorParagraphPrev(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_paragraph_prev_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } + private static efl_text_cursor_paragraph_prev_delegate efl_text_cursor_paragraph_prev_static_delegate; + + + private delegate void efl_text_cursor_line_jump_by_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by); + + + public delegate void efl_text_cursor_line_jump_by_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int by); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_line_jump_by_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_line_jump_by"); + + private static void cursor_line_jump_by(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int by) + { + Eina.Log.Debug("function efl_text_cursor_line_jump_by was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorLineJumpBy(cur, by); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_line_jump_by_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, by); + } + } - public delegate void efl_text_cursor_cluster_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); - public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_coord_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_cluster_coord_set"); - private static void cursor_cluster_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) - { - Eina.Log.Debug("function efl_text_cursor_cluster_coord_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).SetCursorClusterCoord( cur, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_cluster_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); + private static efl_text_cursor_line_jump_by_delegate efl_text_cursor_line_jump_by_static_delegate; + + + private delegate void efl_text_cursor_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + + + public delegate void efl_text_cursor_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_coord_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_coord_set"); + + private static void cursor_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) + { + Eina.Log.Debug("function efl_text_cursor_coord_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).SetCursorCoord(cur, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); + } } - } - private static efl_text_cursor_cluster_coord_set_delegate efl_text_cursor_cluster_coord_set_static_delegate; + private static efl_text_cursor_coord_set_delegate efl_text_cursor_coord_set_static_delegate; + + + private delegate void efl_text_cursor_cluster_coord_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y); + + + public delegate void efl_text_cursor_cluster_coord_set_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_cluster_coord_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_cluster_coord_set"); + + private static void cursor_cluster_coord_set(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, int x, int y) + { + Eina.Log.Debug("function efl_text_cursor_cluster_coord_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).SetCursorClusterCoord(cur, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_cluster_coord_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, x, y); + } + } - private delegate int efl_text_cursor_text_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + private static efl_text_cursor_cluster_coord_set_delegate efl_text_cursor_cluster_coord_set_static_delegate; + + + private delegate int efl_text_cursor_text_insert_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + + public delegate int efl_text_cursor_text_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_text_insert_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_text_insert"); + + private static int cursor_text_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String text) + { + Eina.Log.Debug("function efl_text_cursor_text_insert was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextMarkupInteractive)wrapper).CursorTextInsert(cur, text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_text_cursor_text_insert_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_cursor_text_insert_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_text_insert"); - private static int cursor_text_insert(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur, System.String text) - { - Eina.Log.Debug("function efl_text_cursor_text_insert was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextMarkupInteractive)wrapper).CursorTextInsert( cur, text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_cursor_text_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, text); + else + { + return efl_text_cursor_text_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur, text); + } } - } - private static efl_text_cursor_text_insert_delegate efl_text_cursor_text_insert_static_delegate; + private static efl_text_cursor_text_insert_delegate efl_text_cursor_text_insert_static_delegate; + + + private delegate void efl_text_cursor_char_delete_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + + + public delegate void efl_text_cursor_char_delete_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); + + public static Efl.Eo.FunctionWrapper efl_text_cursor_char_delete_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_cursor_char_delete"); + + private static void cursor_char_delete(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) + { + Eina.Log.Debug("function efl_text_cursor_char_delete was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextMarkupInteractive)wrapper).CursorCharDelete(cur); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_cursor_char_delete_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); + } + } - private delegate void efl_text_cursor_char_delete_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur); + private static efl_text_cursor_char_delete_delegate efl_text_cursor_char_delete_static_delegate; + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_text_cursor_char_delete_api_delegate(System.IntPtr obj, Efl.TextCursorCursor cur); - public static Efl.Eo.FunctionWrapper efl_text_cursor_char_delete_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_cursor_char_delete"); - private static void cursor_char_delete(System.IntPtr obj, System.IntPtr pd, Efl.TextCursorCursor cur) - { - Eina.Log.Debug("function efl_text_cursor_char_delete was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextMarkupInteractive)wrapper).CursorCharDelete( cur); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_cursor_char_delete_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur); - } - } - private static efl_text_cursor_char_delete_delegate efl_text_cursor_char_delete_static_delegate; } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_markup_util.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_markup_util.eo.cs index 75e1e2d..0603e2c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_markup_util.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_markup_util.eo.cs @@ -3,116 +3,166 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Utility class for markup, such as conversions -[TextMarkupUtilNativeInherit] +[Efl.TextMarkupUtil.NativeMethods] public class TextMarkupUtil : Efl.Eo.IWrapper, IDisposable { ///Pointer to the native class description. - public virtual System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TextMarkupUtil)) - return Efl.TextMarkupUtilNativeInherit.GetEflClassStatic(); + public virtual System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TextMarkupUtil)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + protected bool inherited; protected System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_text_markup_util_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public TextMarkupUtil(Efl.Object parent= null - ) : - this(efl_text_markup_util_class_get(), typeof(TextMarkupUtil), parent) + ) : this(efl_text_markup_util_class_get(), typeof(TextMarkupUtil), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TextMarkupUtil(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } - protected TextMarkupUtil(IntPtr base_klass, System.Type managed_type, Efl.Object parent) + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to actually call the native library constructors. C# subclasses + /// must use the public constructor only. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TextMarkupUtil(IntPtr baseKlass, System.Type managedType, Efl.Object parent) { - inherited = ((object)this).GetType() != managed_type; - IntPtr actual_klass = base_klass; - if (inherited) { - actual_klass = Efl.Eo.ClassRegister.GetInheritKlassOrRegister(base_klass, ((object)this).GetType()); + inherited = ((object)this).GetType() != managedType; + IntPtr actual_klass = baseKlass; + if (inherited) + { + actual_klass = Efl.Eo.ClassRegister.GetInheritKlassOrRegister(baseKlass, ((object)this).GetType()); } + handle = Efl.Eo.Globals.instantiate_start(actual_klass, parent); - RegisterEventProxies(); if (inherited) { Efl.Eo.Globals.PrivateDataSet(this); } } + + /// Finishes instantiating this object. + /// Internal usage by generated code. protected void FinishInstantiation() { handle = Efl.Eo.Globals.instantiate_end(handle); Eina.Error.RaiseIfUnhandledException(); } + ///Destructor. ~TextMarkupUtil() { Dispose(false); } + ///Releases the underlying native instance. protected virtual void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected virtual void RegisterEventProxies() - { - } + /// Converts a given (UTF-8) text to a markup-compatible string. This is used mainly to set a plain text with the $.markup_set property. /// The text (UTF-8) to convert to markup /// The markup representation of given text - public static System.String TextToMarkup( System.String text) { - var _ret_var = Efl.TextMarkupUtilNativeInherit.efl_text_markup_util_text_to_markup_ptr.Value.Delegate( text); + public static System.String TextToMarkup(System.String text) { + var _ret_var = Efl.TextMarkupUtil.NativeMethods.efl_text_markup_util_text_to_markup_ptr.Value.Delegate(text); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Converts a given (UTF-8) text to a markup-compatible string. This is used mainly to set a plain text with the $.markup_set property. /// The markup-text to convert to text (UTF-8) /// The text representation of given format - public static System.String MarkupToText( System.String text) { - var _ret_var = Efl.TextMarkupUtilNativeInherit.efl_text_markup_util_markup_to_text_ptr.Value.Delegate( text); + public static System.String MarkupToText(System.String text) { + var _ret_var = Efl.TextMarkupUtil.NativeMethods.efl_text_markup_util_markup_to_text_ptr.Value.Delegate(text); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -120,70 +170,98 @@ public class TextMarkupUtil : Efl.Eo.IWrapper, IDisposable { return Efl.TextMarkupUtil.efl_text_markup_util_class_get(); } -} -public class TextMarkupUtilNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.TextMarkupUtil.efl_text_markup_util_class_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.TextMarkupUtil.efl_text_markup_util_class_get(); - } + 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(); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.TextMarkupUtil.efl_text_markup_util_class_get(); + } + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] private delegate System.String efl_text_markup_util_text_to_markup_delegate( [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + private delegate System.String efl_text_markup_util_text_to_markup_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + public delegate System.String efl_text_markup_util_text_to_markup_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_text_markup_util_text_to_markup_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_util_text_to_markup"); + + private static System.String text_to_markup(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_markup_util_text_to_markup was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = TextMarkupUtil.TextToMarkup(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] public delegate System.String efl_text_markup_util_text_to_markup_api_delegate( [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_markup_util_text_to_markup_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_util_text_to_markup"); - private static System.String text_to_markup(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_markup_util_text_to_markup was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = TextMarkupUtil.TextToMarkup( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_text_markup_util_text_to_markup_ptr.Value.Delegate( text); + + } + else + { + return efl_text_markup_util_text_to_markup_ptr.Value.Delegate(text); + } } - } + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + private delegate System.String efl_text_markup_util_markup_to_text_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] private delegate System.String efl_text_markup_util_markup_to_text_delegate( [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + public delegate System.String efl_text_markup_util_markup_to_text_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + public static Efl.Eo.FunctionWrapper efl_text_markup_util_markup_to_text_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_util_markup_to_text"); + + private static System.String markup_to_text(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_markup_util_markup_to_text was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = TextMarkupUtil.MarkupToText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] public delegate System.String efl_text_markup_util_markup_to_text_api_delegate( [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_markup_util_markup_to_text_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_util_markup_to_text"); - private static System.String markup_to_text(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_markup_util_markup_to_text was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = TextMarkupUtil.MarkupToText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_text_markup_util_markup_to_text_ptr.Value.Delegate( text); + + } + else + { + return efl_text_markup_util_markup_to_text_ptr.Value.Delegate(text); + } } - } + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_style.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_style.eo.cs index d839b88..edec0cc 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_style.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_style.eo.cs @@ -3,11 +3,13 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Style to apply to the text /// A style can be coloring, effects, underline, strikethrough etc. -[ITextStyleNativeInherit] +[Efl.ITextStyleConcrete.NativeMethods] public interface ITextStyle : Efl.Eo.IWrapper, IDisposable { @@ -16,197 +18,169 @@ public interface ITextStyle : /// Green component /// Blue component /// Alpha component -/// -void GetNormalColor( out byte r, out byte g, out byte b, out byte a); +void GetNormalColor(out byte r, out byte g, out byte b, out byte a); /// Color of text, excluding style /// Red component /// Green component /// Blue component /// Alpha component -/// -void SetNormalColor( byte r, byte g, byte b, byte a); +void SetNormalColor(byte r, byte g, byte b, byte a); /// Enable or disable backing type /// Backing type Efl.TextStyleBackingType GetBackingType(); /// Enable or disable backing type /// Backing type -/// -void SetBackingType( Efl.TextStyleBackingType type); +void SetBackingType(Efl.TextStyleBackingType type); /// Backing color /// Red component /// Green component /// Blue component /// Alpha component -/// -void GetBackingColor( out byte r, out byte g, out byte b, out byte a); +void GetBackingColor(out byte r, out byte g, out byte b, out byte a); /// Backing color /// Red component /// Green component /// Blue component /// Alpha component -/// -void SetBackingColor( byte r, byte g, byte b, byte a); +void SetBackingColor(byte r, byte g, byte b, byte a); /// Sets an underline style on the text /// Underline type Efl.TextStyleUnderlineType GetUnderlineType(); /// Sets an underline style on the text /// Underline type -/// -void SetUnderlineType( Efl.TextStyleUnderlineType type); +void SetUnderlineType(Efl.TextStyleUnderlineType type); /// Color of normal underline style /// Red component /// Green component /// Blue component /// Alpha component -/// -void GetUnderlineColor( out byte r, out byte g, out byte b, out byte a); +void GetUnderlineColor(out byte r, out byte g, out byte b, out byte a); /// Color of normal underline style /// Red component /// Green component /// Blue component /// Alpha component -/// -void SetUnderlineColor( byte r, byte g, byte b, byte a); +void SetUnderlineColor(byte r, byte g, byte b, byte a); /// Height of underline style /// Height double GetUnderlineHeight(); /// Height of underline style /// Height -/// -void SetUnderlineHeight( double height); +void SetUnderlineHeight(double height); /// Color of dashed underline style /// Red component /// Green component /// Blue component /// Alpha component -/// -void GetUnderlineDashedColor( out byte r, out byte g, out byte b, out byte a); +void GetUnderlineDashedColor(out byte r, out byte g, out byte b, out byte a); /// Color of dashed underline style /// Red component /// Green component /// Blue component /// Alpha component -/// -void SetUnderlineDashedColor( byte r, byte g, byte b, byte a); +void SetUnderlineDashedColor(byte r, byte g, byte b, byte a); /// Width of dashed underline style /// Width int GetUnderlineDashedWidth(); /// Width of dashed underline style /// Width -/// -void SetUnderlineDashedWidth( int width); +void SetUnderlineDashedWidth(int width); /// Gap of dashed underline style /// Gap int GetUnderlineDashedGap(); /// Gap of dashed underline style /// Gap -/// -void SetUnderlineDashedGap( int gap); +void SetUnderlineDashedGap(int gap); /// Color of underline2 style /// Red component /// Green component /// Blue component /// Alpha component -/// -void GetUnderline2Color( out byte r, out byte g, out byte b, out byte a); +void GetUnderline2Color(out byte r, out byte g, out byte b, out byte a); /// Color of underline2 style /// Red component /// Green component /// Blue component /// Alpha component -/// -void SetUnderline2Color( byte r, byte g, byte b, byte a); +void SetUnderline2Color(byte r, byte g, byte b, byte a); /// Type of strikethrough style /// Strikethrough type Efl.TextStyleStrikethroughType GetStrikethroughType(); /// Type of strikethrough style /// Strikethrough type -/// -void SetStrikethroughType( Efl.TextStyleStrikethroughType type); +void SetStrikethroughType(Efl.TextStyleStrikethroughType type); /// Color of strikethrough_style /// Red component /// Green component /// Blue component /// Alpha component -/// -void GetStrikethroughColor( out byte r, out byte g, out byte b, out byte a); +void GetStrikethroughColor(out byte r, out byte g, out byte b, out byte a); /// Color of strikethrough_style /// Red component /// Green component /// Blue component /// Alpha component -/// -void SetStrikethroughColor( byte r, byte g, byte b, byte a); +void SetStrikethroughColor(byte r, byte g, byte b, byte a); /// Type of effect used for the displayed text /// Effect type Efl.TextStyleEffectType GetEffectType(); /// Type of effect used for the displayed text /// Effect type -/// -void SetEffectType( Efl.TextStyleEffectType type); +void SetEffectType(Efl.TextStyleEffectType type); /// Color of outline effect /// Red component /// Green component /// Blue component /// Alpha component -/// -void GetOutlineColor( out byte r, out byte g, out byte b, out byte a); +void GetOutlineColor(out byte r, out byte g, out byte b, out byte a); /// Color of outline effect /// Red component /// Green component /// Blue component /// Alpha component -/// -void SetOutlineColor( byte r, byte g, byte b, byte a); +void SetOutlineColor(byte r, byte g, byte b, byte a); /// Direction of shadow effect /// Shadow direction Efl.TextStyleShadowDirection GetShadowDirection(); /// Direction of shadow effect /// Shadow direction -/// -void SetShadowDirection( Efl.TextStyleShadowDirection type); +void SetShadowDirection(Efl.TextStyleShadowDirection type); /// Color of shadow effect /// Red component /// Green component /// Blue component /// Alpha component -/// -void GetShadowColor( out byte r, out byte g, out byte b, out byte a); +void GetShadowColor(out byte r, out byte g, out byte b, out byte a); /// Color of shadow effect /// Red component /// Green component /// Blue component /// Alpha component -/// -void SetShadowColor( byte r, byte g, byte b, byte a); +void SetShadowColor(byte r, byte g, byte b, byte a); /// Color of glow effect /// Red component /// Green component /// Blue component /// Alpha component -/// -void GetGlowColor( out byte r, out byte g, out byte b, out byte a); +void GetGlowColor(out byte r, out byte g, out byte b, out byte a); /// Color of glow effect /// Red component /// Green component /// Blue component /// Alpha component -/// -void SetGlowColor( byte r, byte g, byte b, byte a); +void SetGlowColor(byte r, byte g, byte b, byte a); /// Second color of the glow effect /// Red component /// Green component /// Blue component /// Alpha component -/// -void GetGlow2Color( out byte r, out byte g, out byte b, out byte a); +void GetGlow2Color(out byte r, out byte g, out byte b, out byte a); /// Second color of the glow effect /// Red component /// Green component /// Blue component /// Alpha component -/// -void SetGlow2Color( byte r, byte g, byte b, byte a); +void SetGlow2Color(byte r, byte g, byte b, byte a); /// Program that applies a special filter /// See . /// Filter code @@ -214,8 +188,7 @@ System.String GetGfxFilter(); /// Program that applies a special filter /// See . /// Filter code -/// -void SetGfxFilter( System.String code); +void SetGfxFilter(System.String code); /// Enable or disable backing type /// Backing type Efl.TextStyleBackingType BackingType { @@ -280,76 +253,110 @@ ITextStyle { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ITextStyleConcrete)) - return Efl.ITextStyleNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextStyleConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_text_style_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ITextStyleConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ITextStyleConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Color of text, excluding style /// Red component /// Green component /// Blue component /// Alpha component - /// - public void GetNormalColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_normal_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetNormalColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_normal_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of text, excluding style @@ -357,23 +364,21 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void SetNormalColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_normal_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetNormalColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_normal_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Enable or disable backing type /// Backing type public Efl.TextStyleBackingType GetBackingType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_backing_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable or disable backing type /// Backing type - /// - public void SetBackingType( Efl.TextStyleBackingType type) { - Efl.ITextStyleNativeInherit.efl_text_backing_type_set_ptr.Value.Delegate(this.NativeHandle, type); + public void SetBackingType(Efl.TextStyleBackingType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_type_set_ptr.Value.Delegate(this.NativeHandle,type); Eina.Error.RaiseIfUnhandledException(); } /// Backing color @@ -381,9 +386,8 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void GetBackingColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_backing_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetBackingColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Backing color @@ -391,23 +395,21 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void SetBackingColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_backing_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetBackingColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Sets an underline style on the text /// Underline type public Efl.TextStyleUnderlineType GetUnderlineType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets an underline style on the text /// Underline type - /// - public void SetUnderlineType( Efl.TextStyleUnderlineType type) { - Efl.ITextStyleNativeInherit.efl_text_underline_type_set_ptr.Value.Delegate(this.NativeHandle, type); + public void SetUnderlineType(Efl.TextStyleUnderlineType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_type_set_ptr.Value.Delegate(this.NativeHandle,type); Eina.Error.RaiseIfUnhandledException(); } /// Color of normal underline style @@ -415,9 +417,8 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void GetUnderlineColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetUnderlineColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of normal underline style @@ -425,23 +426,21 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void SetUnderlineColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetUnderlineColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Height of underline style /// Height public double GetUnderlineHeight() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_height_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_height_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Height of underline style /// Height - /// - public void SetUnderlineHeight( double height) { - Efl.ITextStyleNativeInherit.efl_text_underline_height_set_ptr.Value.Delegate(this.NativeHandle, height); + public void SetUnderlineHeight(double height) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_height_set_ptr.Value.Delegate(this.NativeHandle,height); Eina.Error.RaiseIfUnhandledException(); } /// Color of dashed underline style @@ -449,9 +448,8 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void GetUnderlineDashedColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetUnderlineDashedColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of dashed underline style @@ -459,37 +457,34 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void SetUnderlineDashedColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetUnderlineDashedColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Width of dashed underline style /// Width public int GetUnderlineDashedWidth() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_dashed_width_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_width_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Width of dashed underline style /// Width - /// - public void SetUnderlineDashedWidth( int width) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_width_set_ptr.Value.Delegate(this.NativeHandle, width); + public void SetUnderlineDashedWidth(int width) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_width_set_ptr.Value.Delegate(this.NativeHandle,width); Eina.Error.RaiseIfUnhandledException(); } /// Gap of dashed underline style /// Gap public int GetUnderlineDashedGap() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_dashed_gap_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_gap_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gap of dashed underline style /// Gap - /// - public void SetUnderlineDashedGap( int gap) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_gap_set_ptr.Value.Delegate(this.NativeHandle, gap); + public void SetUnderlineDashedGap(int gap) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_gap_set_ptr.Value.Delegate(this.NativeHandle,gap); Eina.Error.RaiseIfUnhandledException(); } /// Color of underline2 style @@ -497,9 +492,8 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void GetUnderline2Color( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline2_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetUnderline2Color(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline2_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of underline2 style @@ -507,23 +501,21 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void SetUnderline2Color( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline2_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetUnderline2Color(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline2_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Type of strikethrough style /// Strikethrough type public Efl.TextStyleStrikethroughType GetStrikethroughType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_strikethrough_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of strikethrough style /// Strikethrough type - /// - public void SetStrikethroughType( Efl.TextStyleStrikethroughType type) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_type_set_ptr.Value.Delegate(this.NativeHandle, type); + public void SetStrikethroughType(Efl.TextStyleStrikethroughType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_type_set_ptr.Value.Delegate(this.NativeHandle,type); Eina.Error.RaiseIfUnhandledException(); } /// Color of strikethrough_style @@ -531,9 +523,8 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void GetStrikethroughColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetStrikethroughColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of strikethrough_style @@ -541,23 +532,21 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void SetStrikethroughColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetStrikethroughColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Type of effect used for the displayed text /// Effect type public Efl.TextStyleEffectType GetEffectType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_effect_type_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_effect_type_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of effect used for the displayed text /// Effect type - /// - public void SetEffectType( Efl.TextStyleEffectType type) { - Efl.ITextStyleNativeInherit.efl_text_effect_type_set_ptr.Value.Delegate(this.NativeHandle, type); + public void SetEffectType(Efl.TextStyleEffectType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_effect_type_set_ptr.Value.Delegate(this.NativeHandle,type); Eina.Error.RaiseIfUnhandledException(); } /// Color of outline effect @@ -565,9 +554,8 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void GetOutlineColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_outline_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetOutlineColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_outline_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of outline effect @@ -575,23 +563,21 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void SetOutlineColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_outline_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetOutlineColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_outline_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Direction of shadow effect /// Shadow direction public Efl.TextStyleShadowDirection GetShadowDirection() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_shadow_direction_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_direction_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Direction of shadow effect /// Shadow direction - /// - public void SetShadowDirection( Efl.TextStyleShadowDirection type) { - Efl.ITextStyleNativeInherit.efl_text_shadow_direction_set_ptr.Value.Delegate(this.NativeHandle, type); + public void SetShadowDirection(Efl.TextStyleShadowDirection type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_direction_set_ptr.Value.Delegate(this.NativeHandle,type); Eina.Error.RaiseIfUnhandledException(); } /// Color of shadow effect @@ -599,9 +585,8 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void GetShadowColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_shadow_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetShadowColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of shadow effect @@ -609,9 +594,8 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void SetShadowColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_shadow_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetShadowColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Color of glow effect @@ -619,9 +603,8 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void GetGlowColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetGlowColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of glow effect @@ -629,9 +612,8 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void SetGlowColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetGlowColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Second color of the glow effect @@ -639,9 +621,8 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void GetGlow2Color( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow2_color_get_ptr.Value.Delegate(this.NativeHandle, out r, out g, out b, out a); + public void GetGlow2Color(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow2_color_get_ptr.Value.Delegate(this.NativeHandle,out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Second color of the glow effect @@ -649,1179 +630,1834 @@ ITextStyle /// Green component /// Blue component /// Alpha component - /// - public void SetGlow2Color( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow2_color_set_ptr.Value.Delegate(this.NativeHandle, r, g, b, a); + public void SetGlow2Color(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow2_color_set_ptr.Value.Delegate(this.NativeHandle,r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Program that applies a special filter /// See . /// Filter code public System.String GetGfxFilter() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_gfx_filter_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_gfx_filter_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Program that applies a special filter /// See . /// Filter code - /// - public void SetGfxFilter( System.String code) { - Efl.ITextStyleNativeInherit.efl_text_gfx_filter_set_ptr.Value.Delegate(this.NativeHandle, code); + public void SetGfxFilter(System.String code) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_gfx_filter_set_ptr.Value.Delegate(this.NativeHandle,code); Eina.Error.RaiseIfUnhandledException(); } /// Enable or disable backing type /// Backing type public Efl.TextStyleBackingType BackingType { get { return GetBackingType(); } - set { SetBackingType( value); } + set { SetBackingType(value); } } /// Sets an underline style on the text /// Underline type public Efl.TextStyleUnderlineType UnderlineType { get { return GetUnderlineType(); } - set { SetUnderlineType( value); } + set { SetUnderlineType(value); } } /// Height of underline style /// Height public double UnderlineHeight { get { return GetUnderlineHeight(); } - set { SetUnderlineHeight( value); } + set { SetUnderlineHeight(value); } } /// Width of dashed underline style /// Width public int UnderlineDashedWidth { get { return GetUnderlineDashedWidth(); } - set { SetUnderlineDashedWidth( value); } + set { SetUnderlineDashedWidth(value); } } /// Gap of dashed underline style /// Gap public int UnderlineDashedGap { get { return GetUnderlineDashedGap(); } - set { SetUnderlineDashedGap( value); } + set { SetUnderlineDashedGap(value); } } /// Type of strikethrough style /// Strikethrough type public Efl.TextStyleStrikethroughType StrikethroughType { get { return GetStrikethroughType(); } - set { SetStrikethroughType( value); } + set { SetStrikethroughType(value); } } /// Type of effect used for the displayed text /// Effect type public Efl.TextStyleEffectType EffectType { get { return GetEffectType(); } - set { SetEffectType( value); } + set { SetEffectType(value); } } /// Direction of shadow effect /// Shadow direction public Efl.TextStyleShadowDirection ShadowDirection { get { return GetShadowDirection(); } - set { SetShadowDirection( value); } + set { SetShadowDirection(value); } } /// Program that applies a special filter /// See . /// Filter code public System.String GfxFilter { get { return GetGfxFilter(); } - set { SetGfxFilter( value); } + set { SetGfxFilter(value); } } private static IntPtr GetEflClassStatic() { return Efl.ITextStyleConcrete.efl_text_style_interface_get(); } -} -public class ITextStyleNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_text_normal_color_get_static_delegate == null) - efl_text_normal_color_get_static_delegate = new efl_text_normal_color_get_delegate(normal_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetNormalColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_normal_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_get_static_delegate)}); - if (efl_text_normal_color_set_static_delegate == null) - efl_text_normal_color_set_static_delegate = new efl_text_normal_color_set_delegate(normal_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetNormalColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_normal_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_set_static_delegate)}); - if (efl_text_backing_type_get_static_delegate == null) - efl_text_backing_type_get_static_delegate = new efl_text_backing_type_get_delegate(backing_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetBackingType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_get_static_delegate)}); - if (efl_text_backing_type_set_static_delegate == null) - efl_text_backing_type_set_static_delegate = new efl_text_backing_type_set_delegate(backing_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetBackingType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_set_static_delegate)}); - if (efl_text_backing_color_get_static_delegate == null) - efl_text_backing_color_get_static_delegate = new efl_text_backing_color_get_delegate(backing_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetBackingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_get_static_delegate)}); - if (efl_text_backing_color_set_static_delegate == null) - efl_text_backing_color_set_static_delegate = new efl_text_backing_color_set_delegate(backing_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetBackingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_set_static_delegate)}); - if (efl_text_underline_type_get_static_delegate == null) - efl_text_underline_type_get_static_delegate = new efl_text_underline_type_get_delegate(underline_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_get_static_delegate)}); - if (efl_text_underline_type_set_static_delegate == null) - efl_text_underline_type_set_static_delegate = new efl_text_underline_type_set_delegate(underline_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_set_static_delegate)}); - if (efl_text_underline_color_get_static_delegate == null) - efl_text_underline_color_get_static_delegate = new efl_text_underline_color_get_delegate(underline_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_get_static_delegate)}); - if (efl_text_underline_color_set_static_delegate == null) - efl_text_underline_color_set_static_delegate = new efl_text_underline_color_set_delegate(underline_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_set_static_delegate)}); - if (efl_text_underline_height_get_static_delegate == null) - efl_text_underline_height_get_static_delegate = new efl_text_underline_height_get_delegate(underline_height_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineHeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_height_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_get_static_delegate)}); - if (efl_text_underline_height_set_static_delegate == null) - efl_text_underline_height_set_static_delegate = new efl_text_underline_height_set_delegate(underline_height_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineHeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_height_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_set_static_delegate)}); - if (efl_text_underline_dashed_color_get_static_delegate == null) - efl_text_underline_dashed_color_get_static_delegate = new efl_text_underline_dashed_color_get_delegate(underline_dashed_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_get_static_delegate)}); - if (efl_text_underline_dashed_color_set_static_delegate == null) - efl_text_underline_dashed_color_set_static_delegate = new efl_text_underline_dashed_color_set_delegate(underline_dashed_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_set_static_delegate)}); - if (efl_text_underline_dashed_width_get_static_delegate == null) - efl_text_underline_dashed_width_get_static_delegate = new efl_text_underline_dashed_width_get_delegate(underline_dashed_width_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_get_static_delegate)}); - if (efl_text_underline_dashed_width_set_static_delegate == null) - efl_text_underline_dashed_width_set_static_delegate = new efl_text_underline_dashed_width_set_delegate(underline_dashed_width_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_set_static_delegate)}); - if (efl_text_underline_dashed_gap_get_static_delegate == null) - efl_text_underline_dashed_gap_get_static_delegate = new efl_text_underline_dashed_gap_get_delegate(underline_dashed_gap_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedGap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_gap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_get_static_delegate)}); - if (efl_text_underline_dashed_gap_set_static_delegate == null) - efl_text_underline_dashed_gap_set_static_delegate = new efl_text_underline_dashed_gap_set_delegate(underline_dashed_gap_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedGap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_gap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_set_static_delegate)}); - if (efl_text_underline2_color_get_static_delegate == null) - efl_text_underline2_color_get_static_delegate = new efl_text_underline2_color_get_delegate(underline2_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderline2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_get_static_delegate)}); - if (efl_text_underline2_color_set_static_delegate == null) - efl_text_underline2_color_set_static_delegate = new efl_text_underline2_color_set_delegate(underline2_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderline2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_set_static_delegate)}); - if (efl_text_strikethrough_type_get_static_delegate == null) - efl_text_strikethrough_type_get_static_delegate = new efl_text_strikethrough_type_get_delegate(strikethrough_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_get_static_delegate)}); - if (efl_text_strikethrough_type_set_static_delegate == null) - efl_text_strikethrough_type_set_static_delegate = new efl_text_strikethrough_type_set_delegate(strikethrough_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_set_static_delegate)}); - if (efl_text_strikethrough_color_get_static_delegate == null) - efl_text_strikethrough_color_get_static_delegate = new efl_text_strikethrough_color_get_delegate(strikethrough_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_get_static_delegate)}); - if (efl_text_strikethrough_color_set_static_delegate == null) - efl_text_strikethrough_color_set_static_delegate = new efl_text_strikethrough_color_set_delegate(strikethrough_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_set_static_delegate)}); - if (efl_text_effect_type_get_static_delegate == null) - efl_text_effect_type_get_static_delegate = new efl_text_effect_type_get_delegate(effect_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetEffectType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_effect_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_get_static_delegate)}); - if (efl_text_effect_type_set_static_delegate == null) - efl_text_effect_type_set_static_delegate = new efl_text_effect_type_set_delegate(effect_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetEffectType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_effect_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_set_static_delegate)}); - if (efl_text_outline_color_get_static_delegate == null) - efl_text_outline_color_get_static_delegate = new efl_text_outline_color_get_delegate(outline_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetOutlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_outline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_get_static_delegate)}); - if (efl_text_outline_color_set_static_delegate == null) - efl_text_outline_color_set_static_delegate = new efl_text_outline_color_set_delegate(outline_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetOutlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_outline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_set_static_delegate)}); - if (efl_text_shadow_direction_get_static_delegate == null) - efl_text_shadow_direction_get_static_delegate = new efl_text_shadow_direction_get_delegate(shadow_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetShadowDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_get_static_delegate)}); - if (efl_text_shadow_direction_set_static_delegate == null) - efl_text_shadow_direction_set_static_delegate = new efl_text_shadow_direction_set_delegate(shadow_direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetShadowDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_set_static_delegate)}); - if (efl_text_shadow_color_get_static_delegate == null) - efl_text_shadow_color_get_static_delegate = new efl_text_shadow_color_get_delegate(shadow_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetShadowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_get_static_delegate)}); - if (efl_text_shadow_color_set_static_delegate == null) - efl_text_shadow_color_set_static_delegate = new efl_text_shadow_color_set_delegate(shadow_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetShadowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_set_static_delegate)}); - if (efl_text_glow_color_get_static_delegate == null) - efl_text_glow_color_get_static_delegate = new efl_text_glow_color_get_delegate(glow_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetGlowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_get_static_delegate)}); - if (efl_text_glow_color_set_static_delegate == null) - efl_text_glow_color_set_static_delegate = new efl_text_glow_color_set_delegate(glow_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetGlowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_set_static_delegate)}); - if (efl_text_glow2_color_get_static_delegate == null) - efl_text_glow2_color_get_static_delegate = new efl_text_glow2_color_get_delegate(glow2_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetGlow2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_get_static_delegate)}); - if (efl_text_glow2_color_set_static_delegate == null) - efl_text_glow2_color_set_static_delegate = new efl_text_glow2_color_set_delegate(glow2_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetGlow2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_set_static_delegate)}); - if (efl_text_gfx_filter_get_static_delegate == null) - efl_text_gfx_filter_get_static_delegate = new efl_text_gfx_filter_get_delegate(gfx_filter_get); - if (methods.FirstOrDefault(m => m.Name == "GetGfxFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_gfx_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_get_static_delegate)}); - if (efl_text_gfx_filter_set_static_delegate == null) - efl_text_gfx_filter_set_static_delegate = new efl_text_gfx_filter_set_delegate(gfx_filter_set); - if (methods.FirstOrDefault(m => m.Name == "SetGfxFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_gfx_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.ITextStyleConcrete.efl_text_style_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.ITextStyleConcrete.efl_text_style_interface_get(); - } + 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_text_normal_color_get_static_delegate == null) + { + efl_text_normal_color_get_static_delegate = new efl_text_normal_color_get_delegate(normal_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetNormalColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_normal_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_get_static_delegate) }); + } - private delegate void efl_text_normal_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + if (efl_text_normal_color_set_static_delegate == null) + { + efl_text_normal_color_set_static_delegate = new efl_text_normal_color_set_delegate(normal_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetNormalColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_normal_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_set_static_delegate) }); + } - public delegate void efl_text_normal_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_normal_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_normal_color_get"); - private static void normal_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_normal_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextStyle)wrapper).GetNormalColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_normal_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_text_normal_color_get_delegate efl_text_normal_color_get_static_delegate; + if (efl_text_backing_type_get_static_delegate == null) + { + efl_text_backing_type_get_static_delegate = new efl_text_backing_type_get_delegate(backing_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBackingType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_get_static_delegate) }); + } - private delegate void efl_text_normal_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + if (efl_text_backing_type_set_static_delegate == null) + { + efl_text_backing_type_set_static_delegate = new efl_text_backing_type_set_delegate(backing_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBackingType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_set_static_delegate) }); + } - public delegate void efl_text_normal_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_normal_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_normal_color_set"); - private static void normal_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_normal_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetNormalColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_normal_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_text_normal_color_set_delegate efl_text_normal_color_set_static_delegate; + if (efl_text_backing_color_get_static_delegate == null) + { + efl_text_backing_color_get_static_delegate = new efl_text_backing_color_get_delegate(backing_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBackingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_get_static_delegate) }); + } - private delegate Efl.TextStyleBackingType efl_text_backing_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_backing_color_set_static_delegate == null) + { + efl_text_backing_color_set_static_delegate = new efl_text_backing_color_set_delegate(backing_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBackingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_set_static_delegate) }); + } - public delegate Efl.TextStyleBackingType efl_text_backing_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_backing_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_type_get"); - private static Efl.TextStyleBackingType backing_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_backing_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleBackingType _ret_var = default(Efl.TextStyleBackingType); - try { - _ret_var = ((ITextStyle)wrapper).GetBackingType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_underline_type_get_static_delegate == null) + { + efl_text_underline_type_get_static_delegate = new efl_text_underline_type_get_delegate(underline_type_get); } - return _ret_var; - } else { - return efl_text_backing_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_backing_type_get_delegate efl_text_backing_type_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_get_static_delegate) }); + } - private delegate void efl_text_backing_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type); + if (efl_text_underline_type_set_static_delegate == null) + { + efl_text_underline_type_set_static_delegate = new efl_text_underline_type_set_delegate(underline_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_set_static_delegate) }); + } - public delegate void efl_text_backing_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleBackingType type); - public static Efl.Eo.FunctionWrapper efl_text_backing_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_type_set"); - private static void backing_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type) - { - Eina.Log.Debug("function efl_text_backing_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetBackingType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_backing_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); - } - } - private static efl_text_backing_type_set_delegate efl_text_backing_type_set_static_delegate; + if (efl_text_underline_color_get_static_delegate == null) + { + efl_text_underline_color_get_static_delegate = new efl_text_underline_color_get_delegate(underline_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_get_static_delegate) }); + } - private delegate void efl_text_backing_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + if (efl_text_underline_color_set_static_delegate == null) + { + efl_text_underline_color_set_static_delegate = new efl_text_underline_color_set_delegate(underline_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_set_static_delegate) }); + } - public delegate void efl_text_backing_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_backing_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_color_get"); - private static void backing_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_backing_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextStyle)wrapper).GetBackingColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_backing_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_text_backing_color_get_delegate efl_text_backing_color_get_static_delegate; + if (efl_text_underline_height_get_static_delegate == null) + { + efl_text_underline_height_get_static_delegate = new efl_text_underline_height_get_delegate(underline_height_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineHeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_height_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_get_static_delegate) }); + } - private delegate void efl_text_backing_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + if (efl_text_underline_height_set_static_delegate == null) + { + efl_text_underline_height_set_static_delegate = new efl_text_underline_height_set_delegate(underline_height_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineHeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_height_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_set_static_delegate) }); + } - public delegate void efl_text_backing_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_backing_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_color_set"); - private static void backing_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_backing_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetBackingColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_backing_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_text_backing_color_set_delegate efl_text_backing_color_set_static_delegate; + if (efl_text_underline_dashed_color_get_static_delegate == null) + { + efl_text_underline_dashed_color_get_static_delegate = new efl_text_underline_dashed_color_get_delegate(underline_dashed_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_get_static_delegate) }); + } - private delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_underline_dashed_color_set_static_delegate == null) + { + efl_text_underline_dashed_color_set_static_delegate = new efl_text_underline_dashed_color_set_delegate(underline_dashed_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_set_static_delegate) }); + } - public delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_type_get"); - private static Efl.TextStyleUnderlineType underline_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleUnderlineType _ret_var = default(Efl.TextStyleUnderlineType); - try { - _ret_var = ((ITextStyle)wrapper).GetUnderlineType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_underline_dashed_width_get_static_delegate == null) + { + efl_text_underline_dashed_width_get_static_delegate = new efl_text_underline_dashed_width_get_delegate(underline_dashed_width_get); } - return _ret_var; - } else { - return efl_text_underline_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_underline_type_get_delegate efl_text_underline_type_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_get_static_delegate) }); + } - private delegate void efl_text_underline_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type); + if (efl_text_underline_dashed_width_set_static_delegate == null) + { + efl_text_underline_dashed_width_set_static_delegate = new efl_text_underline_dashed_width_set_delegate(underline_dashed_width_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_set_static_delegate) }); + } - public delegate void efl_text_underline_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleUnderlineType type); - public static Efl.Eo.FunctionWrapper efl_text_underline_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_type_set"); - private static void underline_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type) - { - Eina.Log.Debug("function efl_text_underline_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetUnderlineType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); - } - } - private static efl_text_underline_type_set_delegate efl_text_underline_type_set_static_delegate; + if (efl_text_underline_dashed_gap_get_static_delegate == null) + { + efl_text_underline_dashed_gap_get_static_delegate = new efl_text_underline_dashed_gap_get_delegate(underline_dashed_gap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedGap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_gap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_get_static_delegate) }); + } - private delegate void efl_text_underline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + if (efl_text_underline_dashed_gap_set_static_delegate == null) + { + efl_text_underline_dashed_gap_set_static_delegate = new efl_text_underline_dashed_gap_set_delegate(underline_dashed_gap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedGap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_gap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_set_static_delegate) }); + } - public delegate void efl_text_underline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_color_get"); - private static void underline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextStyle)wrapper).GetUnderlineColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_text_underline_color_get_delegate efl_text_underline_color_get_static_delegate; + if (efl_text_underline2_color_get_static_delegate == null) + { + efl_text_underline2_color_get_static_delegate = new efl_text_underline2_color_get_delegate(underline2_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetUnderline2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_get_static_delegate) }); + } - private delegate void efl_text_underline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + if (efl_text_underline2_color_set_static_delegate == null) + { + efl_text_underline2_color_set_static_delegate = new efl_text_underline2_color_set_delegate(underline2_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetUnderline2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_set_static_delegate) }); + } - public delegate void efl_text_underline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_color_set"); - private static void underline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetUnderlineColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_text_underline_color_set_delegate efl_text_underline_color_set_static_delegate; + if (efl_text_strikethrough_type_get_static_delegate == null) + { + efl_text_strikethrough_type_get_static_delegate = new efl_text_strikethrough_type_get_delegate(strikethrough_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_get_static_delegate) }); + } - private delegate double efl_text_underline_height_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_strikethrough_type_set_static_delegate == null) + { + efl_text_strikethrough_type_set_static_delegate = new efl_text_strikethrough_type_set_delegate(strikethrough_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_set_static_delegate) }); + } - public delegate double efl_text_underline_height_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_height_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_height_get"); - private static double underline_height_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_height_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ITextStyle)wrapper).GetUnderlineHeight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_strikethrough_color_get_static_delegate == null) + { + efl_text_strikethrough_color_get_static_delegate = new efl_text_strikethrough_color_get_delegate(strikethrough_color_get); } - return _ret_var; - } else { - return efl_text_underline_height_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_underline_height_get_delegate efl_text_underline_height_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_get_static_delegate) }); + } - private delegate void efl_text_underline_height_set_delegate(System.IntPtr obj, System.IntPtr pd, double height); + if (efl_text_strikethrough_color_set_static_delegate == null) + { + efl_text_strikethrough_color_set_static_delegate = new efl_text_strikethrough_color_set_delegate(strikethrough_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_set_static_delegate) }); + } - public delegate void efl_text_underline_height_set_api_delegate(System.IntPtr obj, double height); - public static Efl.Eo.FunctionWrapper efl_text_underline_height_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_height_set"); - private static void underline_height_set(System.IntPtr obj, System.IntPtr pd, double height) - { - Eina.Log.Debug("function efl_text_underline_height_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetUnderlineHeight( height); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_height_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), height); - } - } - private static efl_text_underline_height_set_delegate efl_text_underline_height_set_static_delegate; + if (efl_text_effect_type_get_static_delegate == null) + { + efl_text_effect_type_get_static_delegate = new efl_text_effect_type_get_delegate(effect_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetEffectType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_effect_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_get_static_delegate) }); + } - private delegate void efl_text_underline_dashed_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + if (efl_text_effect_type_set_static_delegate == null) + { + efl_text_effect_type_set_static_delegate = new efl_text_effect_type_set_delegate(effect_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEffectType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_effect_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_set_static_delegate) }); + } - public delegate void efl_text_underline_dashed_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_color_get"); - private static void underline_dashed_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline_dashed_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextStyle)wrapper).GetUnderlineDashedColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_text_underline_dashed_color_get_delegate efl_text_underline_dashed_color_get_static_delegate; + if (efl_text_outline_color_get_static_delegate == null) + { + efl_text_outline_color_get_static_delegate = new efl_text_outline_color_get_delegate(outline_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetOutlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_outline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_get_static_delegate) }); + } - private delegate void efl_text_underline_dashed_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + if (efl_text_outline_color_set_static_delegate == null) + { + efl_text_outline_color_set_static_delegate = new efl_text_outline_color_set_delegate(outline_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetOutlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_outline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_set_static_delegate) }); + } - public delegate void efl_text_underline_dashed_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_color_set"); - private static void underline_dashed_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline_dashed_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetUnderlineDashedColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_text_underline_dashed_color_set_delegate efl_text_underline_dashed_color_set_static_delegate; + if (efl_text_shadow_direction_get_static_delegate == null) + { + efl_text_shadow_direction_get_static_delegate = new efl_text_shadow_direction_get_delegate(shadow_direction_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetShadowDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_get_static_delegate) }); + } - private delegate int efl_text_underline_dashed_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_shadow_direction_set_static_delegate == null) + { + efl_text_shadow_direction_set_static_delegate = new efl_text_shadow_direction_set_delegate(shadow_direction_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetShadowDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_set_static_delegate) }); + } - public delegate int efl_text_underline_dashed_width_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_width_get"); - private static int underline_dashed_width_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_dashed_width_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextStyle)wrapper).GetUnderlineDashedWidth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_shadow_color_get_static_delegate == null) + { + efl_text_shadow_color_get_static_delegate = new efl_text_shadow_color_get_delegate(shadow_color_get); } - return _ret_var; - } else { - return efl_text_underline_dashed_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_underline_dashed_width_get_delegate efl_text_underline_dashed_width_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetShadowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_get_static_delegate) }); + } - private delegate void efl_text_underline_dashed_width_set_delegate(System.IntPtr obj, System.IntPtr pd, int width); + if (efl_text_shadow_color_set_static_delegate == null) + { + efl_text_shadow_color_set_static_delegate = new efl_text_shadow_color_set_delegate(shadow_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetShadowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_set_static_delegate) }); + } - public delegate void efl_text_underline_dashed_width_set_api_delegate(System.IntPtr obj, int width); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_width_set"); - private static void underline_dashed_width_set(System.IntPtr obj, System.IntPtr pd, int width) - { - Eina.Log.Debug("function efl_text_underline_dashed_width_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetUnderlineDashedWidth( width); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); - } - } - private static efl_text_underline_dashed_width_set_delegate efl_text_underline_dashed_width_set_static_delegate; + if (efl_text_glow_color_get_static_delegate == null) + { + efl_text_glow_color_get_static_delegate = new efl_text_glow_color_get_delegate(glow_color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetGlowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_get_static_delegate) }); + } - private delegate int efl_text_underline_dashed_gap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_glow_color_set_static_delegate == null) + { + efl_text_glow_color_set_static_delegate = new efl_text_glow_color_set_delegate(glow_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGlowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_set_static_delegate) }); + } - public delegate int efl_text_underline_dashed_gap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_gap_get"); - private static int underline_dashed_gap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_dashed_gap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ITextStyle)wrapper).GetUnderlineDashedGap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_glow2_color_get_static_delegate == null) + { + efl_text_glow2_color_get_static_delegate = new efl_text_glow2_color_get_delegate(glow2_color_get); } - return _ret_var; - } else { - return efl_text_underline_dashed_gap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_underline_dashed_gap_get_delegate efl_text_underline_dashed_gap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetGlow2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_get_static_delegate) }); + } - private delegate void efl_text_underline_dashed_gap_set_delegate(System.IntPtr obj, System.IntPtr pd, int gap); + if (efl_text_glow2_color_set_static_delegate == null) + { + efl_text_glow2_color_set_static_delegate = new efl_text_glow2_color_set_delegate(glow2_color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGlow2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_set_static_delegate) }); + } - public delegate void efl_text_underline_dashed_gap_set_api_delegate(System.IntPtr obj, int gap); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_gap_set"); - private static void underline_dashed_gap_set(System.IntPtr obj, System.IntPtr pd, int gap) - { - Eina.Log.Debug("function efl_text_underline_dashed_gap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetUnderlineDashedGap( gap); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_gap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gap); - } - } - private static efl_text_underline_dashed_gap_set_delegate efl_text_underline_dashed_gap_set_static_delegate; + if (efl_text_gfx_filter_get_static_delegate == null) + { + efl_text_gfx_filter_get_static_delegate = new efl_text_gfx_filter_get_delegate(gfx_filter_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetGfxFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_gfx_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_get_static_delegate) }); + } - private delegate void efl_text_underline2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + if (efl_text_gfx_filter_set_static_delegate == null) + { + efl_text_gfx_filter_set_static_delegate = new efl_text_gfx_filter_set_delegate(gfx_filter_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGfxFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_gfx_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_set_static_delegate) }); + } - public delegate void efl_text_underline2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline2_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline2_color_get"); - private static void underline2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline2_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextStyle)wrapper).GetUnderline2Color( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.ITextStyleConcrete.efl_text_style_interface_get(); } - } - private static efl_text_underline2_color_get_delegate efl_text_underline2_color_get_static_delegate; - - - private delegate void efl_text_underline2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); - - public delegate void efl_text_underline2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline2_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline2_color_set"); - private static void underline2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline2_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetUnderline2Color( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_text_normal_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_normal_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_normal_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_normal_color_get"); + + private static void normal_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_normal_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextStyle)wrapper).GetNormalColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_normal_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_underline2_color_set_delegate efl_text_underline2_color_set_static_delegate; + private static efl_text_normal_color_get_delegate efl_text_normal_color_get_static_delegate; + + + private delegate void efl_text_normal_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_normal_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_normal_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_normal_color_set"); + + private static void normal_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_normal_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetNormalColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_normal_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_normal_color_set_delegate efl_text_normal_color_set_static_delegate; + + + private delegate Efl.TextStyleBackingType efl_text_backing_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleBackingType efl_text_backing_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_backing_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_type_get"); + + private static Efl.TextStyleBackingType backing_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_backing_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleBackingType _ret_var = default(Efl.TextStyleBackingType); + try + { + _ret_var = ((ITextStyle)wrapper).GetBackingType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_type_get"); - private static Efl.TextStyleStrikethroughType strikethrough_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_strikethrough_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleStrikethroughType _ret_var = default(Efl.TextStyleStrikethroughType); - try { - _ret_var = ((ITextStyle)wrapper).GetStrikethroughType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_strikethrough_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_backing_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_strikethrough_type_get_delegate efl_text_strikethrough_type_get_static_delegate; - - - private delegate void efl_text_strikethrough_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type); + private static efl_text_backing_type_get_delegate efl_text_backing_type_get_static_delegate; + + + private delegate void efl_text_backing_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type); + + + public delegate void efl_text_backing_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleBackingType type); + + public static Efl.Eo.FunctionWrapper efl_text_backing_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_type_set"); + + private static void backing_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type) + { + Eina.Log.Debug("function efl_text_backing_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetBackingType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_backing_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } - public delegate void efl_text_strikethrough_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleStrikethroughType type); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_type_set"); - private static void strikethrough_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type) - { - Eina.Log.Debug("function efl_text_strikethrough_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetStrikethroughType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_strikethrough_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + private static efl_text_backing_type_set_delegate efl_text_backing_type_set_static_delegate; + + + private delegate void efl_text_backing_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_backing_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_backing_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_color_get"); + + private static void backing_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_backing_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextStyle)wrapper).GetBackingColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_backing_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_strikethrough_type_set_delegate efl_text_strikethrough_type_set_static_delegate; + private static efl_text_backing_color_get_delegate efl_text_backing_color_get_static_delegate; + + + private delegate void efl_text_backing_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_backing_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_backing_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_color_set"); + + private static void backing_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_backing_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetBackingColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_backing_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate void efl_text_strikethrough_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static efl_text_backing_color_set_delegate efl_text_backing_color_set_static_delegate; + + + private delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_type_get"); + + private static Efl.TextStyleUnderlineType underline_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleUnderlineType _ret_var = default(Efl.TextStyleUnderlineType); + try + { + _ret_var = ((ITextStyle)wrapper).GetUnderlineType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_strikethrough_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_color_get"); - private static void strikethrough_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_strikethrough_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextStyle)wrapper).GetStrikethroughColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_strikethrough_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + else + { + return efl_text_underline_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_strikethrough_color_get_delegate efl_text_strikethrough_color_get_static_delegate; - - - private delegate void efl_text_strikethrough_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + private static efl_text_underline_type_get_delegate efl_text_underline_type_get_static_delegate; + + + private delegate void efl_text_underline_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type); + + + public delegate void efl_text_underline_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleUnderlineType type); + + public static Efl.Eo.FunctionWrapper efl_text_underline_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_type_set"); + + private static void underline_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type) + { + Eina.Log.Debug("function efl_text_underline_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetUnderlineType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } - public delegate void efl_text_strikethrough_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_color_set"); - private static void strikethrough_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_strikethrough_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetStrikethroughColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_strikethrough_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + private static efl_text_underline_type_set_delegate efl_text_underline_type_set_static_delegate; + + + private delegate void efl_text_underline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_color_get"); + + private static void underline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextStyle)wrapper).GetUnderlineColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_strikethrough_color_set_delegate efl_text_strikethrough_color_set_static_delegate; + private static efl_text_underline_color_get_delegate efl_text_underline_color_get_static_delegate; + + + private delegate void efl_text_underline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_color_set"); + + private static void underline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetUnderlineColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate Efl.TextStyleEffectType efl_text_effect_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_underline_color_set_delegate efl_text_underline_color_set_static_delegate; + + + private delegate double efl_text_underline_height_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_underline_height_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_height_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_height_get"); + + private static double underline_height_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_height_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ITextStyle)wrapper).GetUnderlineHeight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.TextStyleEffectType efl_text_effect_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_effect_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_effect_type_get"); - private static Efl.TextStyleEffectType effect_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_effect_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleEffectType _ret_var = default(Efl.TextStyleEffectType); - try { - _ret_var = ((ITextStyle)wrapper).GetEffectType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_effect_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_underline_height_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_effect_type_get_delegate efl_text_effect_type_get_static_delegate; - - - private delegate void efl_text_effect_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type); + private static efl_text_underline_height_get_delegate efl_text_underline_height_get_static_delegate; + + + private delegate void efl_text_underline_height_set_delegate(System.IntPtr obj, System.IntPtr pd, double height); + + + public delegate void efl_text_underline_height_set_api_delegate(System.IntPtr obj, double height); + + public static Efl.Eo.FunctionWrapper efl_text_underline_height_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_height_set"); + + private static void underline_height_set(System.IntPtr obj, System.IntPtr pd, double height) + { + Eina.Log.Debug("function efl_text_underline_height_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetUnderlineHeight(height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_height_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), height); + } + } - public delegate void efl_text_effect_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleEffectType type); - public static Efl.Eo.FunctionWrapper efl_text_effect_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_effect_type_set"); - private static void effect_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type) - { - Eina.Log.Debug("function efl_text_effect_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetEffectType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_effect_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + private static efl_text_underline_height_set_delegate efl_text_underline_height_set_static_delegate; + + + private delegate void efl_text_underline_dashed_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline_dashed_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_color_get"); + + private static void underline_dashed_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline_dashed_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextStyle)wrapper).GetUnderlineDashedColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_effect_type_set_delegate efl_text_effect_type_set_static_delegate; + private static efl_text_underline_dashed_color_get_delegate efl_text_underline_dashed_color_get_static_delegate; + + + private delegate void efl_text_underline_dashed_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline_dashed_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_color_set"); + + private static void underline_dashed_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline_dashed_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetUnderlineDashedColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate void efl_text_outline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static efl_text_underline_dashed_color_set_delegate efl_text_underline_dashed_color_set_static_delegate; + + + private delegate int efl_text_underline_dashed_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_underline_dashed_width_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_width_get"); + + private static int underline_dashed_width_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_dashed_width_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextStyle)wrapper).GetUnderlineDashedWidth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_outline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_outline_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_outline_color_get"); - private static void outline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_outline_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextStyle)wrapper).GetOutlineColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_outline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + else + { + return efl_text_underline_dashed_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_outline_color_get_delegate efl_text_outline_color_get_static_delegate; + private static efl_text_underline_dashed_width_get_delegate efl_text_underline_dashed_width_get_static_delegate; + + + private delegate void efl_text_underline_dashed_width_set_delegate(System.IntPtr obj, System.IntPtr pd, int width); + + + public delegate void efl_text_underline_dashed_width_set_api_delegate(System.IntPtr obj, int width); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_width_set"); + + private static void underline_dashed_width_set(System.IntPtr obj, System.IntPtr pd, int width) + { + Eina.Log.Debug("function efl_text_underline_dashed_width_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetUnderlineDashedWidth(width); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); + } + } - private delegate void efl_text_outline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + private static efl_text_underline_dashed_width_set_delegate efl_text_underline_dashed_width_set_static_delegate; + + + private delegate int efl_text_underline_dashed_gap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_underline_dashed_gap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_gap_get"); + + private static int underline_dashed_gap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_dashed_gap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ITextStyle)wrapper).GetUnderlineDashedGap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_outline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_outline_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_outline_color_set"); - private static void outline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_outline_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetOutlineColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_outline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + else + { + return efl_text_underline_dashed_gap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_outline_color_set_delegate efl_text_outline_color_set_static_delegate; - - - private delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_underline_dashed_gap_get_delegate efl_text_underline_dashed_gap_get_static_delegate; + + + private delegate void efl_text_underline_dashed_gap_set_delegate(System.IntPtr obj, System.IntPtr pd, int gap); + + + public delegate void efl_text_underline_dashed_gap_set_api_delegate(System.IntPtr obj, int gap); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_gap_set"); + + private static void underline_dashed_gap_set(System.IntPtr obj, System.IntPtr pd, int gap) + { + Eina.Log.Debug("function efl_text_underline_dashed_gap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetUnderlineDashedGap(gap); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_gap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gap); + } + } - public delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_direction_get"); - private static Efl.TextStyleShadowDirection shadow_direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_shadow_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleShadowDirection _ret_var = default(Efl.TextStyleShadowDirection); - try { - _ret_var = ((ITextStyle)wrapper).GetShadowDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_text_underline_dashed_gap_set_delegate efl_text_underline_dashed_gap_set_static_delegate; + + + private delegate void efl_text_underline2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline2_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline2_color_get"); + + private static void underline2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline2_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextStyle)wrapper).GetUnderline2Color(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); } - return _ret_var; - } else { - return efl_text_shadow_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_shadow_direction_get_delegate efl_text_shadow_direction_get_static_delegate; + private static efl_text_underline2_color_get_delegate efl_text_underline2_color_get_static_delegate; + + + private delegate void efl_text_underline2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline2_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline2_color_set"); + + private static void underline2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline2_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetUnderline2Color(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate void efl_text_shadow_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type); + private static efl_text_underline2_color_set_delegate efl_text_underline2_color_set_static_delegate; + + + private delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_type_get"); + + private static Efl.TextStyleStrikethroughType strikethrough_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_strikethrough_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleStrikethroughType _ret_var = default(Efl.TextStyleStrikethroughType); + try + { + _ret_var = ((ITextStyle)wrapper).GetStrikethroughType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_shadow_direction_set_api_delegate(System.IntPtr obj, Efl.TextStyleShadowDirection type); - public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_direction_set"); - private static void shadow_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type) - { - Eina.Log.Debug("function efl_text_shadow_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetShadowDirection( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_shadow_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + else + { + return efl_text_strikethrough_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_shadow_direction_set_delegate efl_text_shadow_direction_set_static_delegate; - - - private delegate void efl_text_shadow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static efl_text_strikethrough_type_get_delegate efl_text_strikethrough_type_get_static_delegate; + + + private delegate void efl_text_strikethrough_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type); + + + public delegate void efl_text_strikethrough_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleStrikethroughType type); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_type_set"); + + private static void strikethrough_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type) + { + Eina.Log.Debug("function efl_text_strikethrough_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetStrikethroughType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_strikethrough_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } - public delegate void efl_text_shadow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_shadow_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_color_get"); - private static void shadow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_shadow_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextStyle)wrapper).GetShadowColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_shadow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + private static efl_text_strikethrough_type_set_delegate efl_text_strikethrough_type_set_static_delegate; + + + private delegate void efl_text_strikethrough_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_strikethrough_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_color_get"); + + private static void strikethrough_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_strikethrough_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextStyle)wrapper).GetStrikethroughColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_strikethrough_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_shadow_color_get_delegate efl_text_shadow_color_get_static_delegate; + private static efl_text_strikethrough_color_get_delegate efl_text_strikethrough_color_get_static_delegate; + + + private delegate void efl_text_strikethrough_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_strikethrough_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_color_set"); + + private static void strikethrough_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_strikethrough_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetStrikethroughColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_strikethrough_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate void efl_text_shadow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + private static efl_text_strikethrough_color_set_delegate efl_text_strikethrough_color_set_static_delegate; + + + private delegate Efl.TextStyleEffectType efl_text_effect_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleEffectType efl_text_effect_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_effect_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_effect_type_get"); + + private static Efl.TextStyleEffectType effect_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_effect_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleEffectType _ret_var = default(Efl.TextStyleEffectType); + try + { + _ret_var = ((ITextStyle)wrapper).GetEffectType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_shadow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_shadow_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_color_set"); - private static void shadow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_shadow_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetShadowColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_shadow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + else + { + return efl_text_effect_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_shadow_color_set_delegate efl_text_shadow_color_set_static_delegate; - - - private delegate void efl_text_glow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static efl_text_effect_type_get_delegate efl_text_effect_type_get_static_delegate; + + + private delegate void efl_text_effect_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type); + + + public delegate void efl_text_effect_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleEffectType type); + + public static Efl.Eo.FunctionWrapper efl_text_effect_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_effect_type_set"); + + private static void effect_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type) + { + Eina.Log.Debug("function efl_text_effect_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetEffectType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_effect_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } - public delegate void efl_text_glow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow_color_get"); - private static void glow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_glow_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextStyle)wrapper).GetGlowColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + private static efl_text_effect_type_set_delegate efl_text_effect_type_set_static_delegate; + + + private delegate void efl_text_outline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_outline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_outline_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_outline_color_get"); + + private static void outline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_outline_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextStyle)wrapper).GetOutlineColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_outline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_glow_color_get_delegate efl_text_glow_color_get_static_delegate; + private static efl_text_outline_color_get_delegate efl_text_outline_color_get_static_delegate; + + + private delegate void efl_text_outline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_outline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_outline_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_outline_color_set"); + + private static void outline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_outline_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetOutlineColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_outline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate void efl_text_glow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + private static efl_text_outline_color_set_delegate efl_text_outline_color_set_static_delegate; + + + private delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_direction_get"); + + private static Efl.TextStyleShadowDirection shadow_direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_shadow_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleShadowDirection _ret_var = default(Efl.TextStyleShadowDirection); + try + { + _ret_var = ((ITextStyle)wrapper).GetShadowDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_glow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow_color_set"); - private static void glow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_glow_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetGlowColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + else + { + return efl_text_shadow_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_glow_color_set_delegate efl_text_glow_color_set_static_delegate; - - - private delegate void efl_text_glow2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static efl_text_shadow_direction_get_delegate efl_text_shadow_direction_get_static_delegate; + + + private delegate void efl_text_shadow_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type); + + + public delegate void efl_text_shadow_direction_set_api_delegate(System.IntPtr obj, Efl.TextStyleShadowDirection type); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_direction_set"); + + private static void shadow_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type) + { + Eina.Log.Debug("function efl_text_shadow_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetShadowDirection(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_shadow_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } - public delegate void efl_text_glow2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow2_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow2_color_get"); - private static void glow2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_glow2_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((ITextStyle)wrapper).GetGlow2Color( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + private static efl_text_shadow_direction_set_delegate efl_text_shadow_direction_set_static_delegate; + + + private delegate void efl_text_shadow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_shadow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_color_get"); + + private static void shadow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_shadow_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextStyle)wrapper).GetShadowColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_shadow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_glow2_color_get_delegate efl_text_glow2_color_get_static_delegate; + private static efl_text_shadow_color_get_delegate efl_text_shadow_color_get_static_delegate; + + + private delegate void efl_text_shadow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_shadow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_color_set"); + + private static void shadow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_shadow_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetShadowColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_shadow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate void efl_text_glow2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + private static efl_text_shadow_color_set_delegate efl_text_shadow_color_set_static_delegate; + + + private delegate void efl_text_glow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_glow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow_color_get"); + + private static void glow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_glow_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextStyle)wrapper).GetGlowColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_text_glow_color_get_delegate efl_text_glow_color_get_static_delegate; + + + private delegate void efl_text_glow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_glow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow_color_set"); + + private static void glow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_glow_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetGlowColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - public delegate void efl_text_glow2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow2_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow2_color_set"); - private static void glow2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_glow2_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetGlow2Color( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_glow2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + private static efl_text_glow_color_set_delegate efl_text_glow_color_set_static_delegate; + + + private delegate void efl_text_glow2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_glow2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow2_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow2_color_get"); + + private static void glow2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_glow2_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((ITextStyle)wrapper).GetGlow2Color(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } } - } - private static efl_text_glow2_color_set_delegate efl_text_glow2_color_set_static_delegate; + private static efl_text_glow2_color_get_delegate efl_text_glow2_color_get_static_delegate; + + + private delegate void efl_text_glow2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_glow2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow2_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow2_color_set"); + + private static void glow2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_glow2_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetGlow2Color(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_gfx_filter_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_text_glow2_color_set_delegate efl_text_glow2_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_gfx_filter_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_gfx_filter_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_gfx_filter_get"); + + private static System.String gfx_filter_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_gfx_filter_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ITextStyle)wrapper).GetGfxFilter(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_gfx_filter_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_gfx_filter_get"); - private static System.String gfx_filter_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_gfx_filter_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ITextStyle)wrapper).GetGfxFilter(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_gfx_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_text_gfx_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_gfx_filter_get_delegate efl_text_gfx_filter_get_static_delegate; + private static efl_text_gfx_filter_get_delegate efl_text_gfx_filter_get_static_delegate; + + + private delegate void efl_text_gfx_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + + + public delegate void efl_text_gfx_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + + public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_gfx_filter_set"); + + private static void gfx_filter_set(System.IntPtr obj, System.IntPtr pd, System.String code) + { + Eina.Log.Debug("function efl_text_gfx_filter_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ITextStyle)wrapper).SetGfxFilter(code); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_gfx_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code); + } + } - private delegate void efl_text_gfx_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + private static efl_text_gfx_filter_set_delegate efl_text_gfx_filter_set_static_delegate; + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_text_gfx_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); - public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_gfx_filter_set"); - private static void gfx_filter_set(System.IntPtr obj, System.IntPtr pd, System.String code) - { - Eina.Log.Debug("function efl_text_gfx_filter_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ITextStyle)wrapper).SetGfxFilter( code); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_gfx_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code); - } - } - private static efl_text_gfx_filter_set_delegate efl_text_gfx_filter_set_static_delegate; } -} -namespace Efl { +} +} + +namespace Efl { + /// Whether to apply backing style to the displayed text or not public enum TextStyleBackingType { @@ -1830,8 +2466,11 @@ Disabled = 0, /// Use backing style Enabled = 1, } -} -namespace Efl { + +} + +namespace Efl { + /// Whether to apply strikethrough style to the displayed text or not public enum TextStyleStrikethroughType { @@ -1840,8 +2479,11 @@ Disabled = 0, /// Use strikethrough style Enabled = 1, } -} -namespace Efl { + +} + +namespace Efl { + /// Effect to apply to the displayed text public enum TextStyleEffectType { @@ -1866,8 +2508,11 @@ OutlineShadow = 8, /// Outline soft shadow effect OutlineSoftShadow = 9, } -} -namespace Efl { + +} + +namespace Efl { + /// Direction of the shadow style, if used public enum TextStyleShadowDirection { @@ -1888,8 +2533,11 @@ TopRight = 6, /// Shadow towards right Right = 7, } -} -namespace Efl { + +} + +namespace Efl { + /// Underline type of the displayed text public enum TextStyleUnderlineType { @@ -1904,4 +2552,6 @@ Double = 3, /// Underlined with a dashed line Dashed = 4, } -} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_types.eot.cs index 4501020..33d5804 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_types.eot.cs @@ -3,8 +3,10 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// Bidirectionaltext type public enum TextBidirectionalType { @@ -21,8 +23,13 @@ Inherit = 3, /// @internal EVAS_BIDI_DIRECTION_ANY_RTL is not made for public. It should be opened to public when it is accepted to EFL upstream. AnyRtl = 4, } -} -namespace Efl { namespace Ui { + +} + +namespace Efl { + +namespace Ui { + /// This structure includes all the information about content changes. /// It's meant to be used to implement undo/redo. [StructLayout(LayoutKind.Sequential)] @@ -40,11 +47,11 @@ public struct TextChangeInfo public bool Merge; ///Constructor for TextChangeInfo. public TextChangeInfo( - System.String Content=default(System.String), - uint Position=default(uint), - uint Length=default(uint), - bool Insert=default(bool), - bool Merge=default(bool) ) + System.String Content = default(System.String), + uint Position = default(uint), + uint Length = default(uint), + bool Insert = default(bool), + bool Merge = default(bool) ) { this.Content = Content; this.Position = Position; @@ -101,4 +108,7 @@ public struct TextChangeInfo } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_thread.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_thread.eo.cs index 0d517fe..ad77f0e 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_thread.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_thread.eo.cs @@ -3,102 +3,136 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { -/// -[ThreadNativeInherit] +namespace Efl { + +[Efl.Thread.NativeMethods] public class Thread : Efl.Task, Efl.Eo.IWrapper,Efl.IThreadIO,Efl.Core.ICommandLine,Efl.Io.ICloser,Efl.Io.IReader,Efl.Io.IWriter { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Thread)) - return Efl.ThreadNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Thread)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_thread_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Thread(Efl.Object parent= null - ) : - base(efl_thread_class_get(), typeof(Thread), parent) + ) : base(efl_thread_class_get(), typeof(Thread), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Thread(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Thread(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Thread(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ClosedEvtKey = new object(); + /// Notifies closed, when property is marked as true /// (Since EFL 1.22) public event EventHandler ClosedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClosedEvt_delegate)) { - eventHandlers.AddHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_CLOSER_EVENT_CLOSED"; - if (RemoveNativeEventHandler(key, this.evt_ClosedEvt_delegate)) { - eventHandlers.RemoveHandler(ClosedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClosedEvt. - public void On_ClosedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClosedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClosedEvt_delegate; - private void on_ClosedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClosedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClosedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_CLOSER_EVENT_CLOSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CanReadChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies can_read property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -106,48 +140,65 @@ private static object CanReadChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanReadChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.AddHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanReadChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanReadChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanReadChangedEvt. - public void On_CanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) + public void OnCanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanReadChangedEvtKey]; + var key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanReadChangedEvt_delegate; - private void on_CanReadChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanReadChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object EosEvtKey = new object(); /// Notifies end of stream, when property is marked as true. /// If this is used alongside with an , then it should be emitted before that call. /// @@ -157,47 +208,56 @@ private static object EosEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler EosEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_READER_EVENT_EOS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EosEvt_delegate)) { - eventHandlers.AddHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_READER_EVENT_EOS"; - if (RemoveNativeEventHandler(key, this.evt_EosEvt_delegate)) { - eventHandlers.RemoveHandler(EosEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EosEvt. - public void On_EosEvt(EventArgs e) + public void OnEosEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EosEvtKey]; + var key = "_EFL_IO_READER_EVENT_EOS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EosEvt_delegate; - private void on_EosEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EosEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object CanWriteChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Notifies can_write property changed. /// If is true there is data to without blocking/error. If is false, would either block or fail. /// @@ -205,98 +265,98 @@ private static object CanWriteChangedEvtKey = new object(); /// (Since EFL 1.22) public event EventHandler CanWriteChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.AddHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_CanWriteChangedEvt_delegate)) { - eventHandlers.RemoveHandler(CanWriteChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CanWriteChangedEvt. - public void On_CanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CanWriteChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CanWriteChangedEvt_delegate; - private void on_CanWriteChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) { - Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_CanWriteChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ClosedEvt_delegate = new Efl.EventCb(on_ClosedEvt_NativeCallback); - evt_CanReadChangedEvt_delegate = new Efl.EventCb(on_CanReadChangedEvt_NativeCallback); - evt_EosEvt_delegate = new Efl.EventCb(on_EosEvt_NativeCallback); - evt_CanWriteChangedEvt_delegate = new Efl.EventCb(on_CanWriteChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } - /// /// No description supplied. virtual public System.IntPtr GetIndata() { - var _ret_var = Efl.IThreadIONativeInherit.efl_threadio_indata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_indata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// /// No description supplied. - /// - virtual public void SetIndata( System.IntPtr data) { - Efl.IThreadIONativeInherit.efl_threadio_indata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), data); + virtual public void SetIndata(System.IntPtr data) { + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_indata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),data); Eina.Error.RaiseIfUnhandledException(); } - /// /// No description supplied. virtual public System.IntPtr GetOutdata() { - var _ret_var = Efl.IThreadIONativeInherit.efl_threadio_outdata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_outdata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// /// No description supplied. - /// - virtual public void SetOutdata( System.IntPtr data) { - Efl.IThreadIONativeInherit.efl_threadio_outdata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), data); + virtual public void SetOutdata(System.IntPtr data) { + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_outdata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),data); Eina.Error.RaiseIfUnhandledException(); } - /// /// No description supplied. - /// - virtual public void Call( EFlThreadIOCall func) { + virtual public void Call(EFlThreadIOCall func) { GCHandle func_handle = GCHandle.Alloc(func); - Efl.IThreadIONativeInherit.efl_threadio_call_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); } - /// /// No description supplied. /// No description supplied. - virtual public System.IntPtr CallSync( EFlThreadIOCallSync func) { + virtual public System.IntPtr CallSync(EFlThreadIOCallSync func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.IThreadIONativeInherit.efl_threadio_call_sync_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_sync_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -308,9 +368,8 @@ private static object CanWriteChangedEvtKey = new object(); /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. - /// virtual public System.String GetCommand() { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -318,11 +377,11 @@ private static object CanWriteChangedEvtKey = new object(); /// Every element of a string is a argument. /// An array where every array field is an argument /// On success true, false otherwise - virtual public bool SetCommandArray( Eina.Array array) { + virtual public bool SetCommandArray(Eina.Array array) { var _in_array = array.Handle; array.Own = false; array.OwnContent = false; - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_array_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_array); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_array_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_array); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -330,15 +389,14 @@ array.OwnContent = false; /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string /// On success true, false otherwise - virtual public bool SetCommandString( System.String str) { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), str); + virtual public bool SetCommandString(System.String str) { + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),str); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the accessor which enables access to each argument that got passed to this object. - /// virtual public Eina.Accessor CommandAccess() { - var _ret_var = Efl.Core.ICommandLineNativeInherit.efl_core_command_line_command_access_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_access_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Accessor(_ret_var, false, false); } @@ -346,7 +404,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if closed, false otherwise virtual public bool GetClosed() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_closed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_closed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -355,7 +413,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if close on exec(), false otherwise virtual public bool GetCloseOnExec() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -363,8 +421,8 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if close on exec(), false otherwise /// true if could set, false if not supported or failed. - virtual public bool SetCloseOnExec( bool close_on_exec) { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_exec); + virtual public bool SetCloseOnExec(bool close_on_exec) { + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),close_on_exec); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -373,7 +431,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if close on invalidate, false otherwise virtual public bool GetCloseOnInvalidate() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -381,9 +439,8 @@ array.OwnContent = false; /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. /// (Since EFL 1.22) /// true if close on invalidate, false otherwise - /// - virtual public void SetCloseOnInvalidate( bool close_on_invalidate) { - Efl.Io.ICloserNativeInherit.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_invalidate); + virtual public void SetCloseOnInvalidate(bool close_on_invalidate) { + Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),close_on_invalidate); Eina.Error.RaiseIfUnhandledException(); } /// Closes the Input/Output object. @@ -393,7 +450,7 @@ array.OwnContent = false; /// (Since EFL 1.22) /// 0 on succeed, a mapping of errno otherwise virtual public Eina.Error Close() { - var _ret_var = Efl.Io.ICloserNativeInherit.efl_io_closer_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -401,32 +458,30 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise virtual public bool GetCanRead() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise - /// - virtual public void SetCanRead( bool can_read) { - Efl.Io.IReaderNativeInherit.efl_io_reader_can_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_read); + virtual public void SetCanRead(bool can_read) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_read); Eina.Error.RaiseIfUnhandledException(); } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise virtual public bool GetEos() { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_eos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise - /// - virtual public void SetEos( bool is_eos) { - Efl.Io.IReaderNativeInherit.efl_io_reader_eos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), is_eos); + virtual public void SetEos(bool is_eos) { + Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),is_eos); Eina.Error.RaiseIfUnhandledException(); } /// Reads data into a pre-allocated buffer. @@ -436,8 +491,8 @@ array.OwnContent = false; /// (Since EFL 1.22) /// Provides a pre-allocated memory to be filled up to rw_slice.len. It will be populated and the length will be set to the actually used amount of bytes, which can be smaller than the request. /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Read( ref Eina.RwSlice rw_slice) { - var _ret_var = Efl.Io.IReaderNativeInherit.efl_io_reader_read_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref rw_slice); + virtual public Eina.Error Read(ref Eina.RwSlice rw_slice) { + var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_read_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref rw_slice); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -445,16 +500,15 @@ array.OwnContent = false; /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise virtual public bool GetCanWrite() { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise - /// - virtual public void SetCanWrite( bool can_write) { - Efl.Io.IWriterNativeInherit.efl_io_writer_can_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_write); + virtual public void SetCanWrite(bool can_write) { + Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_write); Eina.Error.RaiseIfUnhandledException(); } /// Writes data from a pre-populated buffer. @@ -465,22 +519,20 @@ array.OwnContent = false; /// Provides a pre-populated memory to be used up to slice.len. The returned slice will be adapted as length will be set to the actually used amount of bytes, which can be smaller than the request. /// Convenience to output the remaining parts of slice that was not written. If the full slice was written, this will be a slice of zero-length. /// 0 on succeed, a mapping of errno otherwise - virtual public Eina.Error Write( ref Eina.Slice slice, ref Eina.Slice remaining) { - var _ret_var = Efl.Io.IWriterNativeInherit.efl_io_writer_write_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref slice, ref remaining); + virtual public Eina.Error Write(ref Eina.Slice slice, ref Eina.Slice remaining) { + var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_write_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref slice, ref remaining); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// -/// No description supplied. + /// No description supplied. public System.IntPtr Indata { get { return GetIndata(); } - set { SetIndata( value); } + set { SetIndata(value); } } - /// -/// No description supplied. + /// No description supplied. public System.IntPtr Outdata { get { return GetOutdata(); } - set { SetOutdata( value); } + set { SetOutdata(value); } } /// A commandline that encodes arguments in a command string. This command is unix shell-style, thus whitespace separates arguments unless escaped. Also a semi-colon ';', ampersand '&', pipe/bar '|', hash '#', bracket, square brace, brace character ('(', ')', '[', ']', '{', '}'), exclamation mark '!', backquote '`', greator or less than ('>' '<') character unless escaped or in quotes would cause args_count/value to not be generated properly, because it would force complex shell interpretation which will not be supported in evaluating the arg_count/value information, but the final shell may interpret this if this is executed via a command-line shell. To not be a complex shell command, it should be simple with paths, options and variable expansions, but nothing more complex involving the above unescaped characters. /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument VARIABLE" etc. @@ -490,7 +542,6 @@ array.OwnContent = false; /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc. /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. -/// public System.String Command { get { return GetCommand(); } } @@ -498,13 +549,13 @@ array.OwnContent = false; /// Every element of a string is a argument. /// An array where every array field is an argument public Eina.Array CommandArray { - set { SetCommandArray( value); } + set { SetCommandArray(value); } } /// Use a string to fill this object /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string public System.String CommandString { - set { SetCommandString( value); } + set { SetCommandString(value); } } /// If true will notify object was closed. /// (Since EFL 1.22) @@ -518,7 +569,7 @@ array.OwnContent = false; /// true if close on exec(), false otherwise public bool CloseOnExec { get { return GetCloseOnExec(); } - set { SetCloseOnExec( value); } + set { SetCloseOnExec(value); } } /// If true will automatically close() on object invalidate. /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. @@ -526,742 +577,1160 @@ array.OwnContent = false; /// true if close on invalidate, false otherwise public bool CloseOnInvalidate { get { return GetCloseOnInvalidate(); } - set { SetCloseOnInvalidate( value); } + set { SetCloseOnInvalidate(value); } } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise public bool CanRead { get { return GetCanRead(); } - set { SetCanRead( value); } + set { SetCanRead(value); } } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise public bool Eos { get { return GetEos(); } - set { SetEos( value); } + set { SetEos(value); } } /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise public bool CanWrite { get { return GetCanWrite(); } - set { SetCanWrite( value); } + set { SetCanWrite(value); } } private static IntPtr GetEflClassStatic() { return Efl.Thread.efl_thread_class_get(); } -} -public class ThreadNativeInherit : Efl.TaskNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Task.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_threadio_indata_get_static_delegate == null) - efl_threadio_indata_get_static_delegate = new efl_threadio_indata_get_delegate(indata_get); - if (methods.FirstOrDefault(m => m.Name == "GetIndata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_indata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_get_static_delegate)}); - if (efl_threadio_indata_set_static_delegate == null) - efl_threadio_indata_set_static_delegate = new efl_threadio_indata_set_delegate(indata_set); - if (methods.FirstOrDefault(m => m.Name == "SetIndata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_indata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_set_static_delegate)}); - if (efl_threadio_outdata_get_static_delegate == null) - efl_threadio_outdata_get_static_delegate = new efl_threadio_outdata_get_delegate(outdata_get); - if (methods.FirstOrDefault(m => m.Name == "GetOutdata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_outdata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_get_static_delegate)}); - if (efl_threadio_outdata_set_static_delegate == null) - efl_threadio_outdata_set_static_delegate = new efl_threadio_outdata_set_delegate(outdata_set); - if (methods.FirstOrDefault(m => m.Name == "SetOutdata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_outdata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_set_static_delegate)}); - if (efl_threadio_call_static_delegate == null) - efl_threadio_call_static_delegate = new efl_threadio_call_delegate(call); - if (methods.FirstOrDefault(m => m.Name == "Call") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_call"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_static_delegate)}); - if (efl_threadio_call_sync_static_delegate == null) - efl_threadio_call_sync_static_delegate = new efl_threadio_call_sync_delegate(call_sync); - if (methods.FirstOrDefault(m => m.Name == "CallSync") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_call_sync"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_sync_static_delegate)}); - if (efl_core_command_line_command_get_static_delegate == null) - efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get); - if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate)}); - if (efl_core_command_line_command_array_set_static_delegate == null) - efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set); - if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate)}); - if (efl_core_command_line_command_string_set_static_delegate == null) - efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set); - if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate)}); - if (efl_core_command_line_command_access_static_delegate == null) - efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access); - if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_static_delegate)}); - if (efl_io_closer_closed_get_static_delegate == null) - efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); - if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate)}); - if (efl_io_closer_close_on_exec_get_static_delegate == null) - efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate)}); - if (efl_io_closer_close_on_exec_set_static_delegate == null) - efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate)}); - if (efl_io_closer_close_on_invalidate_get_static_delegate == null) - efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); - if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate)}); - if (efl_io_closer_close_on_invalidate_set_static_delegate == null) - efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); - if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate)}); - if (efl_io_closer_close_static_delegate == null) - efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); - if (methods.FirstOrDefault(m => m.Name == "Close") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate)}); - if (efl_io_reader_can_read_get_static_delegate == null) - efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate)}); - if (efl_io_reader_can_read_set_static_delegate == null) - efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate)}); - if (efl_io_reader_eos_get_static_delegate == null) - efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); - if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate)}); - if (efl_io_reader_eos_set_static_delegate == null) - efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); - if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate)}); - if (efl_io_reader_read_static_delegate == null) - efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); - if (methods.FirstOrDefault(m => m.Name == "Read") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate)}); - if (efl_io_writer_can_write_get_static_delegate == null) - efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate)}); - if (efl_io_writer_can_write_set_static_delegate == null) - efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate)}); - if (efl_io_writer_write_static_delegate == null) - efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); - if (methods.FirstOrDefault(m => m.Name == "Write") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Thread.efl_thread_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Thread.efl_thread_class_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_threadio_indata_get_static_delegate == null) + { + efl_threadio_indata_get_static_delegate = new efl_threadio_indata_get_delegate(indata_get); + } - private delegate System.IntPtr efl_threadio_indata_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetIndata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_indata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_get_static_delegate) }); + } + if (efl_threadio_indata_set_static_delegate == null) + { + efl_threadio_indata_set_static_delegate = new efl_threadio_indata_set_delegate(indata_set); + } - public delegate System.IntPtr efl_threadio_indata_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_threadio_indata_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_indata_get"); - private static System.IntPtr indata_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_threadio_indata_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((Thread)wrapper).GetIndata(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetIndata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_indata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_set_static_delegate) }); } - return _ret_var; - } else { - return efl_threadio_indata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_threadio_indata_get_delegate efl_threadio_indata_get_static_delegate; + if (efl_threadio_outdata_get_static_delegate == null) + { + efl_threadio_outdata_get_static_delegate = new efl_threadio_outdata_get_delegate(outdata_get); + } - private delegate void efl_threadio_indata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + if (methods.FirstOrDefault(m => m.Name == "GetOutdata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_outdata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_get_static_delegate) }); + } + if (efl_threadio_outdata_set_static_delegate == null) + { + efl_threadio_outdata_set_static_delegate = new efl_threadio_outdata_set_delegate(outdata_set); + } - public delegate void efl_threadio_indata_set_api_delegate(System.IntPtr obj, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_threadio_indata_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_indata_set"); - private static void indata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) - { - Eina.Log.Debug("function efl_threadio_indata_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Thread)wrapper).SetIndata( data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_threadio_indata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); - } - } - private static efl_threadio_indata_set_delegate efl_threadio_indata_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetOutdata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_outdata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_set_static_delegate) }); + } + if (efl_threadio_call_static_delegate == null) + { + efl_threadio_call_static_delegate = new efl_threadio_call_delegate(call); + } - private delegate System.IntPtr efl_threadio_outdata_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Call") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_call"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_static_delegate) }); + } + if (efl_threadio_call_sync_static_delegate == null) + { + efl_threadio_call_sync_static_delegate = new efl_threadio_call_sync_delegate(call_sync); + } - public delegate System.IntPtr efl_threadio_outdata_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_threadio_outdata_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_outdata_get"); - private static System.IntPtr outdata_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_threadio_outdata_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((Thread)wrapper).GetOutdata(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "CallSync") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_call_sync"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_sync_static_delegate) }); } - return _ret_var; - } else { - return efl_threadio_outdata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_threadio_outdata_get_delegate efl_threadio_outdata_get_static_delegate; + if (efl_core_command_line_command_get_static_delegate == null) + { + efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get); + } - private delegate void efl_threadio_outdata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate) }); + } + if (efl_core_command_line_command_array_set_static_delegate == null) + { + efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set); + } - public delegate void efl_threadio_outdata_set_api_delegate(System.IntPtr obj, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_threadio_outdata_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_outdata_set"); - private static void outdata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) - { - Eina.Log.Debug("function efl_threadio_outdata_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Thread)wrapper).SetOutdata( data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_threadio_outdata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); - } - } - private static efl_threadio_outdata_set_delegate efl_threadio_outdata_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate) }); + } + if (efl_core_command_line_command_string_set_static_delegate == null) + { + efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set); + } - private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate) }); + } + if (efl_core_command_line_command_access_static_delegate == null) + { + efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access); + } - public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_threadio_call_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_call"); - private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_threadio_call was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EFlThreadIOCallWrapper func_wrapper = new EFlThreadIOCallWrapper(func, func_data, func_free_cb); - - try { - ((Thread)wrapper).Call( func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_threadio_call_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); - } - } - private static efl_threadio_call_delegate efl_threadio_call_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_static_delegate) }); + } + if (efl_io_closer_closed_get_static_delegate == null) + { + efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get); + } - private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate) }); + } + if (efl_io_closer_close_on_exec_get_static_delegate == null) + { + efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get); + } - public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_threadio_call_sync_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_call_sync"); - private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_threadio_call_sync was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EFlThreadIOCallSyncWrapper func_wrapper = new EFlThreadIOCallSyncWrapper(func, func_data, func_free_cb); - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((Thread)wrapper).CallSync( func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate) }); } - return _ret_var; - } else { - return efl_threadio_call_sync_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); - } - } - private static efl_threadio_call_sync_delegate efl_threadio_call_sync_static_delegate; + if (efl_io_closer_close_on_exec_set_static_delegate == null) + { + efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate) }); + } + if (efl_io_closer_close_on_invalidate_get_static_delegate == null) + { + efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_get"); - private static System.String command_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_command_line_command_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Thread)wrapper).GetCommand(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate) }); } - return _ret_var; - } else { - return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate; + if (efl_io_closer_close_on_invalidate_set_static_delegate == null) + { + efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array); + if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate) }); + } + if (efl_io_closer_close_static_delegate == null) + { + efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_array_set"); - private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array) - { - Eina.Log.Debug("function efl_core_command_line_command_array_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_array = new Eina.Array(array, true, true); - bool _ret_var = default(bool); - try { - _ret_var = ((Thread)wrapper).SetCommandArray( _in_array); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Close") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate) }); } - return _ret_var; - } else { - return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array); - } - } - private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate; + if (efl_io_reader_can_read_get_static_delegate == null) + { + efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate) }); + } + if (efl_io_reader_can_read_set_static_delegate == null) + { + efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_string_set"); - private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str) - { - Eina.Log.Debug("function efl_core_command_line_command_string_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Thread)wrapper).SetCommandString( str); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate) }); } - return _ret_var; - } else { - return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str); - } - } - private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate; + if (efl_io_reader_eos_get_static_delegate == null) + { + efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get); + } - private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate) }); + } + if (efl_io_reader_eos_set_static_delegate == null) + { + efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set); + } - public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_core_command_line_command_access"); - private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_core_command_line_command_access was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Accessor _ret_var = default(Eina.Accessor); - try { - _ret_var = ((Thread)wrapper).CommandAccess(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetEos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate) }); } - return _ret_var.Handle; - } else { - return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate; + if (efl_io_reader_read_static_delegate == null) + { + efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Read") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate) }); + } + if (efl_io_writer_can_write_get_static_delegate == null) + { + efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_closed_get"); - private static bool closed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_closed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Thread)wrapper).GetClosed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate) }); } - return _ret_var; - } else { - return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; + if (efl_io_writer_can_write_set_static_delegate == null) + { + efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate) }); + } + if (efl_io_writer_write_static_delegate == null) + { + efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_get"); - private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Thread)wrapper).GetCloseOnExec(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Write") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate) }); } - return _ret_var; - } else { - return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Thread.efl_thread_class_get(); } - } - private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + private delegate System.IntPtr efl_threadio_indata_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_threadio_indata_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_threadio_indata_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_indata_get"); + + private static System.IntPtr indata_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_threadio_indata_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((Thread)wrapper).GetIndata(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_exec_set"); - private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) - { - Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Thread)wrapper).SetCloseOnExec( close_on_exec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); + else + { + return efl_threadio_indata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; + private static efl_threadio_indata_get_delegate efl_threadio_indata_get_static_delegate; + + + private delegate void efl_threadio_indata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + + + public delegate void efl_threadio_indata_set_api_delegate(System.IntPtr obj, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper efl_threadio_indata_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_indata_set"); + + private static void indata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) + { + Eina.Log.Debug("function efl_threadio_indata_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Thread)wrapper).SetIndata(data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_threadio_indata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_threadio_indata_set_delegate efl_threadio_indata_set_static_delegate; + + private delegate System.IntPtr efl_threadio_outdata_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_threadio_outdata_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_threadio_outdata_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_outdata_get"); + + private static System.IntPtr outdata_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_threadio_outdata_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((Thread)wrapper).GetOutdata(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_get"); - private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Thread)wrapper).GetCloseOnInvalidate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_threadio_outdata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_threadio_outdata_get_delegate efl_threadio_outdata_get_static_delegate; + + + private delegate void efl_threadio_outdata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + + + public delegate void efl_threadio_outdata_set_api_delegate(System.IntPtr obj, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper efl_threadio_outdata_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_outdata_set"); + + private static void outdata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) + { + Eina.Log.Debug("function efl_threadio_outdata_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Thread)wrapper).SetOutdata(data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_threadio_outdata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); + } } - } - private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; + private static efl_threadio_outdata_set_delegate efl_threadio_outdata_set_static_delegate; - private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + + public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); - public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close_on_invalidate_set"); - private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) - { - Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Thread)wrapper).SetCloseOnInvalidate( close_on_invalidate); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); + public static Efl.Eo.FunctionWrapper efl_threadio_call_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call"); + + private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_threadio_call was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EFlThreadIOCallWrapper func_wrapper = new EFlThreadIOCallWrapper(func, func_data, func_free_cb); + + try + { + ((Thread)wrapper).Call(func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_threadio_call_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + } } - } - private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + private static efl_threadio_call_delegate efl_threadio_call_static_delegate; - private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + + public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + + public static Efl.Eo.FunctionWrapper efl_threadio_call_sync_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call_sync"); + + private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_threadio_call_sync was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EFlThreadIOCallSyncWrapper func_wrapper = new EFlThreadIOCallSyncWrapper(func, func_data, func_free_cb); + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((Thread)wrapper).CallSync(func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_closer_close"); - private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_closer_close was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Thread)wrapper).Close(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_threadio_call_sync_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + } + } + + private static efl_threadio_call_sync_delegate efl_threadio_call_sync_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_get"); + + private static System.String command_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_command_line_command_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Thread)wrapper).GetCommand(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; + private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_array_set"); + + private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array) + { + Eina.Log.Debug("function efl_core_command_line_command_array_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_array = new Eina.Array(array, true, true); + bool _ret_var = default(bool); + try + { + _ret_var = ((Thread)wrapper).SetCommandArray(_in_array); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_get"); - private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_can_read_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Thread)wrapper).GetCanRead(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array); + } } - } - private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; + private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_string_set"); + + private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str) + { + Eina.Log.Debug("function efl_core_command_line_command_string_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Thread)wrapper).SetCommandString(str); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); - + return _ret_var; - public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); - public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_can_read_set"); - private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) - { - Eina.Log.Debug("function efl_io_reader_can_read_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Thread)wrapper).SetCanRead( can_read); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); + } + else + { + return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str); + } } - } - private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; + private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate; + + + private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_command_line_command_access"); + + private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_core_command_line_command_access was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Accessor _ret_var = default(Eina.Accessor); + try + { + _ret_var = ((Thread)wrapper).CommandAccess(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var.Handle; + } + else + { + return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_get"); - private static bool eos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_reader_eos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Thread)wrapper).GetEos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_closed_get"); + + private static bool closed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_closed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Thread)wrapper).GetClosed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_get"); + + private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Thread)wrapper).GetCloseOnExec(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; + private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_exec_set"); + + private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec) + { + Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Thread)wrapper).SetCloseOnExec(close_on_exec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + return _ret_var; + } + else + { + return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec); + } + } - public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); - public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_eos_set"); - private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) - { - Eina.Log.Debug("function efl_io_reader_eos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Thread)wrapper).SetEos( is_eos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); + private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_get"); + + private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Thread)wrapper).GetCloseOnInvalidate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate; + + + private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + + public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close_on_invalidate_set"); + + private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate) + { + Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Thread)wrapper).SetCloseOnInvalidate(close_on_invalidate); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate); + } + } - private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate; + + + private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_closer_close"); + + private static Eina.Error close(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_closer_close was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Thread)wrapper).Close(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); - public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_reader_read"); - private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) - { - Eina.Log.Debug("function efl_io_reader_read was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Thread)wrapper).Read( ref rw_slice); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + else + { + return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; + private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_get"); + + private static bool can_read_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_can_read_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Thread)wrapper).GetCanRead(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_get"); - private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_io_writer_can_write_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Thread)wrapper).GetCanWrite(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate; + + + private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read); + + + public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read); + + public static Efl.Eo.FunctionWrapper efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_can_read_set"); + + private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read) + { + Eina.Log.Debug("function efl_io_reader_can_read_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Thread)wrapper).SetCanRead(can_read); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read); + } + } + + private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_get"); + + private static bool eos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_reader_eos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Thread)wrapper).GetEos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; + private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate; + + + private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos); + + + public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos); + + public static Efl.Eo.FunctionWrapper efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_eos_set"); + + private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos) + { + Eina.Log.Debug("function efl_io_reader_eos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Thread)wrapper).SetEos(is_eos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos); + } + } - private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate; + + + private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice); + + + public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice); + + public static Efl.Eo.FunctionWrapper efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_reader_read"); + + private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice) + { + Eina.Log.Debug("function efl_io_reader_read was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Thread)wrapper).Read(ref rw_slice); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); - public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_can_write_set"); - private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) - { - Eina.Log.Debug("function efl_io_writer_can_write_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Thread)wrapper).SetCanWrite( can_write); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); + } + else + { + return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice); + } } - } - private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_get"); + + private static bool can_write_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_io_writer_can_write_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Thread)wrapper).GetCanWrite(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + return _ret_var; + } + else + { + return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); - public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_io_writer_write"); - private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) - { - Eina.Log.Debug("function efl_io_writer_write was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Thread)wrapper).Write( ref slice, ref remaining); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate; + + + private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write); + + + public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write); + + public static Efl.Eo.FunctionWrapper efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_can_write_set"); + + private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write) + { + Eina.Log.Debug("function efl_io_writer_can_write_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Thread)wrapper).SetCanWrite(can_write); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write); + } + } + + private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate; + + + private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining); + + + public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining); + + public static Efl.Eo.FunctionWrapper efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_io_writer_write"); + + private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining) + { + Eina.Log.Debug("function efl_io_writer_write was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + remaining = default(Eina.Slice); Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Thread)wrapper).Write(ref slice, ref remaining); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + + } + else + { + return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining); + } } - } - private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_threadio.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_threadio.eo.cs index 367c592..cea7f34 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_threadio.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_threadio.eo.cs @@ -3,14 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; - -/// /// No description supplied. -/// -public delegate void EFlThreadIOCall( ref Efl.Event kw_event); -public delegate void EFlThreadIOCallInternal(IntPtr data, ref Efl.Event.NativeStruct kw_event); -internal class EFlThreadIOCallWrapper +public delegate void EFlThreadIOCall(ref Efl.Event kw_event); +public delegate void EFlThreadIOCallInternal(IntPtr data, ref Efl.Event.NativeStruct kw_event); +internal class EFlThreadIOCallWrapper : IDisposable { private EFlThreadIOCallInternal _cb; @@ -26,26 +24,49 @@ internal class EFlThreadIOCallWrapper ~EFlThreadIOCallWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } } - internal void ManagedCb( ref Efl.Event kw_event) + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + internal void ManagedCb(ref Efl.Event kw_event) { Efl.Event.NativeStruct _in_kw_event = kw_event; - _cb(_cb_data, ref _in_kw_event); + _cb(_cb_data, ref _in_kw_event); Eina.Error.RaiseIfUnhandledException(); kw_event = _in_kw_event; } - internal static void Cb(IntPtr cb_data, ref Efl.Event.NativeStruct kw_event) + internal static void Cb(IntPtr cb_data, ref Efl.Event.NativeStruct kw_event) { GCHandle handle = GCHandle.FromIntPtr(cb_data); EFlThreadIOCall cb = (EFlThreadIOCall)handle.Target; Efl.Event _in_kw_event = kw_event; try { - cb( ref _in_kw_event); + cb(ref _in_kw_event); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); @@ -55,12 +76,10 @@ internal class EFlThreadIOCallWrapper } -/// /// No description supplied. -/// -public delegate System.IntPtr EFlThreadIOCallSync( ref Efl.Event kw_event); -public delegate System.IntPtr EFlThreadIOCallSyncInternal(IntPtr data, ref Efl.Event.NativeStruct kw_event); -internal class EFlThreadIOCallSyncWrapper +public delegate System.IntPtr EFlThreadIOCallSync(ref Efl.Event kw_event); +public delegate System.IntPtr EFlThreadIOCallSyncInternal(IntPtr data, ref Efl.Event.NativeStruct kw_event); +internal class EFlThreadIOCallSyncWrapper : IDisposable { private EFlThreadIOCallSyncInternal _cb; @@ -76,27 +95,50 @@ internal class EFlThreadIOCallSyncWrapper ~EFlThreadIOCallSyncWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } } - internal System.IntPtr ManagedCb( ref Efl.Event kw_event) + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + internal System.IntPtr ManagedCb(ref Efl.Event kw_event) { Efl.Event.NativeStruct _in_kw_event = kw_event; - var _ret_var = _cb(_cb_data, ref _in_kw_event); + var _ret_var = _cb(_cb_data, ref _in_kw_event); Eina.Error.RaiseIfUnhandledException(); kw_event = _in_kw_event; return _ret_var; } - internal static System.IntPtr Cb(IntPtr cb_data, ref Efl.Event.NativeStruct kw_event) + internal static System.IntPtr Cb(IntPtr cb_data, ref Efl.Event.NativeStruct kw_event) { GCHandle handle = GCHandle.FromIntPtr(cb_data); EFlThreadIOCallSync cb = (EFlThreadIOCallSync)handle.Target; Efl.Event _in_kw_event = kw_event; System.IntPtr _ret_var = default(System.IntPtr); try { - _ret_var = cb( ref _in_kw_event); + _ret_var = cb(ref _in_kw_event); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); @@ -106,42 +148,33 @@ internal class EFlThreadIOCallSyncWrapper } } -namespace Efl { + +namespace Efl { + /// No description supplied. -[IThreadIONativeInherit] +[Efl.IThreadIOConcrete.NativeMethods] public interface IThreadIO : Efl.Eo.IWrapper, IDisposable { - /// -/// No description supplied. + /// No description supplied. System.IntPtr GetIndata(); - /// -/// No description supplied. -/// -void SetIndata( System.IntPtr data); - /// -/// No description supplied. + /// No description supplied. +void SetIndata(System.IntPtr data); + /// No description supplied. System.IntPtr GetOutdata(); - /// -/// No description supplied. -/// -void SetOutdata( System.IntPtr data); - /// -/// No description supplied. -/// -void Call( EFlThreadIOCall func); - /// -/// No description supplied. + /// No description supplied. +void SetOutdata(System.IntPtr data); + /// No description supplied. +void Call(EFlThreadIOCall func); + /// No description supplied. /// No description supplied. -System.IntPtr CallSync( EFlThreadIOCallSync func); - /// -/// No description supplied. +System.IntPtr CallSync(EFlThreadIOCallSync func); + /// No description supplied. System.IntPtr Indata { get ; set ; } - /// -/// No description supplied. + /// No description supplied. System.IntPtr Outdata { get ; set ; @@ -154,318 +187,454 @@ IThreadIO { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IThreadIOConcrete)) - return Efl.IThreadIONativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IThreadIOConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_threadio_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IThreadIOConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IThreadIOConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } - /// + /// No description supplied. public System.IntPtr GetIndata() { - var _ret_var = Efl.IThreadIONativeInherit.efl_threadio_indata_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_indata_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// /// No description supplied. - /// - public void SetIndata( System.IntPtr data) { - Efl.IThreadIONativeInherit.efl_threadio_indata_set_ptr.Value.Delegate(this.NativeHandle, data); + public void SetIndata(System.IntPtr data) { + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_indata_set_ptr.Value.Delegate(this.NativeHandle,data); Eina.Error.RaiseIfUnhandledException(); } - /// /// No description supplied. public System.IntPtr GetOutdata() { - var _ret_var = Efl.IThreadIONativeInherit.efl_threadio_outdata_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_outdata_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// /// No description supplied. - /// - public void SetOutdata( System.IntPtr data) { - Efl.IThreadIONativeInherit.efl_threadio_outdata_set_ptr.Value.Delegate(this.NativeHandle, data); + public void SetOutdata(System.IntPtr data) { + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_outdata_set_ptr.Value.Delegate(this.NativeHandle,data); Eina.Error.RaiseIfUnhandledException(); } - /// /// No description supplied. - /// - public void Call( EFlThreadIOCall func) { + public void Call(EFlThreadIOCall func) { GCHandle func_handle = GCHandle.Alloc(func); - Efl.IThreadIONativeInherit.efl_threadio_call_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(func_handle), EFlThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(func_handle), EFlThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); } - /// /// No description supplied. /// No description supplied. - public System.IntPtr CallSync( EFlThreadIOCallSync func) { + public System.IntPtr CallSync(EFlThreadIOCallSync func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.IThreadIONativeInherit.efl_threadio_call_sync_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(func_handle), EFlThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_sync_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(func_handle), EFlThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// -/// No description supplied. + /// No description supplied. public System.IntPtr Indata { get { return GetIndata(); } - set { SetIndata( value); } + set { SetIndata(value); } } - /// -/// No description supplied. + /// No description supplied. public System.IntPtr Outdata { get { return GetOutdata(); } - set { SetOutdata( value); } + set { SetOutdata(value); } } private static IntPtr GetEflClassStatic() { return Efl.IThreadIOConcrete.efl_threadio_mixin_get(); } -} -public class IThreadIONativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - 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_threadio_indata_get_static_delegate == null) - efl_threadio_indata_get_static_delegate = new efl_threadio_indata_get_delegate(indata_get); - if (methods.FirstOrDefault(m => m.Name == "GetIndata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_indata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_get_static_delegate)}); - if (efl_threadio_indata_set_static_delegate == null) - efl_threadio_indata_set_static_delegate = new efl_threadio_indata_set_delegate(indata_set); - if (methods.FirstOrDefault(m => m.Name == "SetIndata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_indata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_set_static_delegate)}); - if (efl_threadio_outdata_get_static_delegate == null) - efl_threadio_outdata_get_static_delegate = new efl_threadio_outdata_get_delegate(outdata_get); - if (methods.FirstOrDefault(m => m.Name == "GetOutdata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_outdata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_get_static_delegate)}); - if (efl_threadio_outdata_set_static_delegate == null) - efl_threadio_outdata_set_static_delegate = new efl_threadio_outdata_set_delegate(outdata_set); - if (methods.FirstOrDefault(m => m.Name == "SetOutdata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_outdata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_set_static_delegate)}); - if (efl_threadio_call_static_delegate == null) - efl_threadio_call_static_delegate = new efl_threadio_call_delegate(call); - if (methods.FirstOrDefault(m => m.Name == "Call") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_call"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_static_delegate)}); - if (efl_threadio_call_sync_static_delegate == null) - efl_threadio_call_sync_static_delegate = new efl_threadio_call_sync_delegate(call_sync); - if (methods.FirstOrDefault(m => m.Name == "CallSync") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_call_sync"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_sync_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.IThreadIOConcrete.efl_threadio_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.IThreadIOConcrete.efl_threadio_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_threadio_indata_get_static_delegate == null) + { + efl_threadio_indata_get_static_delegate = new efl_threadio_indata_get_delegate(indata_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetIndata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_indata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_get_static_delegate) }); + } - private delegate System.IntPtr efl_threadio_indata_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_threadio_indata_set_static_delegate == null) + { + efl_threadio_indata_set_static_delegate = new efl_threadio_indata_set_delegate(indata_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetIndata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_indata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_set_static_delegate) }); + } - public delegate System.IntPtr efl_threadio_indata_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_threadio_indata_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_indata_get"); - private static System.IntPtr indata_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_threadio_indata_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((IThreadIOConcrete)wrapper).GetIndata(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_threadio_outdata_get_static_delegate == null) + { + efl_threadio_outdata_get_static_delegate = new efl_threadio_outdata_get_delegate(outdata_get); } - return _ret_var; - } else { - return efl_threadio_indata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_threadio_indata_get_delegate efl_threadio_indata_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetOutdata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_outdata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_get_static_delegate) }); + } - private delegate void efl_threadio_indata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + if (efl_threadio_outdata_set_static_delegate == null) + { + efl_threadio_outdata_set_static_delegate = new efl_threadio_outdata_set_delegate(outdata_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetOutdata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_outdata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_set_static_delegate) }); + } - public delegate void efl_threadio_indata_set_api_delegate(System.IntPtr obj, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_threadio_indata_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_indata_set"); - private static void indata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) - { - Eina.Log.Debug("function efl_threadio_indata_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IThreadIOConcrete)wrapper).SetIndata( data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_threadio_indata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); + if (efl_threadio_call_static_delegate == null) + { + efl_threadio_call_static_delegate = new efl_threadio_call_delegate(call); + } + + if (methods.FirstOrDefault(m => m.Name == "Call") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_call"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_static_delegate) }); + } + + if (efl_threadio_call_sync_static_delegate == null) + { + efl_threadio_call_sync_static_delegate = new efl_threadio_call_sync_delegate(call_sync); + } + + if (methods.FirstOrDefault(m => m.Name == "CallSync") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_threadio_call_sync"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_sync_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.IThreadIOConcrete.efl_threadio_mixin_get(); } - } - private static efl_threadio_indata_set_delegate efl_threadio_indata_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate System.IntPtr efl_threadio_outdata_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_threadio_indata_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_threadio_indata_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_threadio_indata_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_indata_get"); + + private static System.IntPtr indata_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_threadio_indata_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((IThreadIOConcrete)wrapper).GetIndata(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate System.IntPtr efl_threadio_outdata_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_threadio_outdata_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_outdata_get"); - private static System.IntPtr outdata_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_threadio_outdata_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((IThreadIOConcrete)wrapper).GetOutdata(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_threadio_outdata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_threadio_indata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_threadio_indata_get_delegate efl_threadio_indata_get_static_delegate; + + + private delegate void efl_threadio_indata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + + + public delegate void efl_threadio_indata_set_api_delegate(System.IntPtr obj, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper efl_threadio_indata_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_indata_set"); + + private static void indata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) + { + Eina.Log.Debug("function efl_threadio_indata_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IThreadIOConcrete)wrapper).SetIndata(data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_threadio_indata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); + } } - } - private static efl_threadio_outdata_get_delegate efl_threadio_outdata_get_static_delegate; + private static efl_threadio_indata_set_delegate efl_threadio_indata_set_static_delegate; - private delegate void efl_threadio_outdata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + + private delegate System.IntPtr efl_threadio_outdata_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_threadio_outdata_get_api_delegate(System.IntPtr obj); - public delegate void efl_threadio_outdata_set_api_delegate(System.IntPtr obj, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_threadio_outdata_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_outdata_set"); - private static void outdata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) - { - Eina.Log.Debug("function efl_threadio_outdata_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IThreadIOConcrete)wrapper).SetOutdata( data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_threadio_outdata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); + public static Efl.Eo.FunctionWrapper efl_threadio_outdata_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_outdata_get"); + + private static System.IntPtr outdata_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_threadio_outdata_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.IntPtr _ret_var = default(System.IntPtr); + try + { + _ret_var = ((IThreadIOConcrete)wrapper).GetOutdata(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_threadio_outdata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_threadio_outdata_set_delegate efl_threadio_outdata_set_static_delegate; + private static efl_threadio_outdata_get_delegate efl_threadio_outdata_get_static_delegate; + + + private delegate void efl_threadio_outdata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data); + + + public delegate void efl_threadio_outdata_set_api_delegate(System.IntPtr obj, System.IntPtr data); + + public static Efl.Eo.FunctionWrapper efl_threadio_outdata_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_outdata_set"); + + private static void outdata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data) + { + Eina.Log.Debug("function efl_threadio_outdata_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IThreadIOConcrete)wrapper).SetOutdata(data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_threadio_outdata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data); + } + } - private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + private static efl_threadio_outdata_set_delegate efl_threadio_outdata_set_static_delegate; + + private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); - public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_threadio_call_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_call"); - private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_threadio_call was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EFlThreadIOCallWrapper func_wrapper = new EFlThreadIOCallWrapper(func, func_data, func_free_cb); + + public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + + public static Efl.Eo.FunctionWrapper efl_threadio_call_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call"); + + private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_threadio_call was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EFlThreadIOCallWrapper func_wrapper = new EFlThreadIOCallWrapper(func, func_data, func_free_cb); - try { - ((IThreadIOConcrete)wrapper).Call( func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_threadio_call_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + try + { + ((IThreadIOConcrete)wrapper).Call(func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_threadio_call_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + } } - } - private static efl_threadio_call_delegate efl_threadio_call_static_delegate; + private static efl_threadio_call_delegate efl_threadio_call_static_delegate; - private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + + private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + + public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); - public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_threadio_call_sync_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_threadio_call_sync"); - private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_threadio_call_sync was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EFlThreadIOCallSyncWrapper func_wrapper = new EFlThreadIOCallSyncWrapper(func, func_data, func_free_cb); + public static Efl.Eo.FunctionWrapper efl_threadio_call_sync_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call_sync"); + + private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_threadio_call_sync was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EFlThreadIOCallSyncWrapper func_wrapper = new EFlThreadIOCallSyncWrapper(func, func_data, func_free_cb); System.IntPtr _ret_var = default(System.IntPtr); - try { - _ret_var = ((IThreadIOConcrete)wrapper).CallSync( func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IThreadIOConcrete)wrapper).CallSync(func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_threadio_call_sync_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + + } + else + { + return efl_threadio_call_sync_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + } } - } - private static efl_threadio_call_sync_delegate efl_threadio_call_sync_static_delegate; + + private static efl_threadio_call_sync_delegate efl_threadio_call_sync_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_types.eot.cs index b3918ba..07a22ee 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_types.eot.cs @@ -3,8 +3,10 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { +namespace Efl { + /// This type is a alias for struct tm. It is intended to be a standard way to reference it in .eo files. /// (Since EFL 1.18) [StructLayout(LayoutKind.Sequential)] @@ -30,15 +32,15 @@ public struct Time public int Tm_isdst; ///Constructor for Time. public Time( - int Tm_sec=default(int), - int Tm_min=default(int), - int Tm_hour=default(int), - int Tm_mday=default(int), - int Tm_mon=default(int), - int Tm_year=default(int), - int Tm_wday=default(int), - int Tm_yday=default(int), - int Tm_isdst=default(int) ) + int Tm_sec = default(int), + int Tm_min = default(int), + int Tm_hour = default(int), + int Tm_mday = default(int), + int Tm_mon = default(int), + int Tm_year = default(int), + int Tm_wday = default(int), + int Tm_yday = default(int), + int Tm_isdst = default(int) ) { this.Tm_sec = Tm_sec; this.Tm_min = Tm_min; @@ -115,8 +117,10 @@ public struct Time } -} -namespace Efl { +} + +namespace Efl { + /// This type describes the version of EFL with an optional variant. /// This may be used to query the current running version of EFL. Or it can be passed by applications at startup time to inform EFL of the version a certain application was built for. /// (Since EFL 1.18) @@ -137,12 +141,12 @@ public struct Version public System.String Build_id; ///Constructor for Version. public Version( - int Major=default(int), - int Minor=default(int), - int Micro=default(int), - int Revision=default(int), - System.String Flavor=default(System.String), - System.String Build_id=default(System.String) ) + int Major = default(int), + int Minor = default(int), + int Micro = default(int), + int Revision = default(int), + System.String Flavor = default(System.String), + System.String Build_id = default(System.String) ) { this.Major = Major; this.Minor = Minor; @@ -204,4 +208,5 @@ public struct Version } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui.eot.cs index 51b4c87..442fec7 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui.eot.cs @@ -3,8 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { +namespace Efl { + +namespace Ui { + +namespace Focus { + /// Focus directions. public enum Direction { @@ -23,8 +29,19 @@ Left = 5, /// last direction Last = 6, } -} } } -namespace Efl { namespace Ui { namespace Focus { + +} + +} + +} + +namespace Efl { + +namespace Ui { + +namespace Focus { + /// Focus Movement Policy. /// (Since EFL 1.10) public enum MovePolicy @@ -36,8 +53,17 @@ MoveIn = 1, /// Move focus by key. Elementary focus is set on key input like Left, Right, Up, Down, Tab, or Shift+Tab. KeyOnly = 2, } -} } } -namespace Efl { namespace Ui { + +} + +} + +} + +namespace Efl { + +namespace Ui { + /// Slider's indicator visibility mode. /// (Since EFL 1.13) public enum SliderIndicatorVisibleMode @@ -51,8 +77,17 @@ OnFocus = 2, /// Never show the indicator None = 3, } -} } -namespace Efl { namespace Ui { namespace Focus { + +} + +} + +namespace Efl { + +namespace Ui { + +namespace Focus { + /// Focus Autoscroll Mode /// (Since EFL 1.10) public enum AutoscrollMode @@ -64,8 +99,17 @@ None = 1, /// Bring in the focused region or item automatically which might invole the scrolling. BringIn = 2, } -} } } -namespace Efl { namespace Ui { + +} + +} + +} + +namespace Efl { + +namespace Ui { + /// Software cursor mode. /// (Since EFL 1.7) public enum SoftcursorMode @@ -77,8 +121,15 @@ On = 1, /// Never use a softcursor. Off = 2, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Accessibility public enum Activate { @@ -95,8 +146,15 @@ Left = 4, /// Activate back Back = 5, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Widget orientation mode, or how the theme handles screen orientation. /// Note: Support for this feature is highly dependent on the theme in use. At the time of writing, the default theme for EFL does not implement support for orientation modes. public enum WidgetOrientationMode @@ -106,4 +164,8 @@ Default = 0, /// No signal is sent to the widget's theme. Widget's theme will not change according to the window or screen orientation. Disabled = 1, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup.eo.cs index ff40a28..a2db689 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup.eo.cs @@ -3,177 +3,252 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + ///Event argument wrapper for event . public class AlertPopupButtonClickedEvt_Args : EventArgs { ///Actual event payload. public Efl.Ui.AlertPopupButtonClickedEvent arg { get; set; } } /// EFL UI Alert Popup class -[AlertPopupNativeInherit] +[Efl.Ui.AlertPopup.NativeMethods] public class AlertPopup : Efl.Ui.Popup, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AlertPopup)) - return Efl.Ui.AlertPopupNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AlertPopup)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_alert_popup_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public AlertPopup(Efl.Object parent - , System.String style = null) : - base(efl_ui_alert_popup_class_get(), typeof(AlertPopup), parent) + , System.String style = null) : base(efl_ui_alert_popup_class_get(), typeof(AlertPopup), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AlertPopup(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AlertPopup(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AlertPopup(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ButtonClickedEvtKey = new object(); + /// Called when alert popup was clicked public event EventHandler ButtonClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.AlertPopupButtonClickedEvt_Args args = new Efl.Ui.AlertPopupButtonClickedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_ALERT_POPUP_EVENT_BUTTON_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ButtonClickedEvt_delegate)) { - eventHandlers.AddHandler(ButtonClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_ALERT_POPUP_EVENT_BUTTON_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ButtonClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ButtonClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ButtonClickedEvt. - public void On_ButtonClickedEvt(Efl.Ui.AlertPopupButtonClickedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ButtonClickedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ButtonClickedEvt_delegate; - private void on_ButtonClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnButtonClickedEvt(Efl.Ui.AlertPopupButtonClickedEvt_Args e) { - Efl.Ui.AlertPopupButtonClickedEvt_Args args = new Efl.Ui.AlertPopupButtonClickedEvt_Args(); - args.arg = evt.Info;; - try { - On_ButtonClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_ALERT_POPUP_EVENT_BUTTON_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ButtonClickedEvt_delegate = new Efl.EventCb(on_ButtonClickedEvt_NativeCallback); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Set popup buttons. /// Alert popup button type /// Alert string on button /// Alert icon on button - /// - virtual public void SetButton( Efl.Ui.AlertPopupButton type, System.String text, Efl.Object icon) { - Efl.Ui.AlertPopupNativeInherit.efl_ui_alert_popup_button_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type, text, icon); + virtual public void SetButton(Efl.Ui.AlertPopupButton type, System.String text, Efl.Object icon) { + Efl.Ui.AlertPopup.NativeMethods.efl_ui_alert_popup_button_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type, text, icon); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Ui.AlertPopup.efl_ui_alert_popup_class_get(); } -} -public class AlertPopupNativeInherit : Efl.Ui.PopupNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_alert_popup_button_set_static_delegate == null) - efl_ui_alert_popup_button_set_static_delegate = new efl_ui_alert_popup_button_set_delegate(button_set); - if (methods.FirstOrDefault(m => m.Name == "SetButton") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_alert_popup_button_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_alert_popup_button_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.AlertPopup.efl_ui_alert_popup_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Popup.NativeMethods { - return Efl.Ui.AlertPopup.efl_ui_alert_popup_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_alert_popup_button_set_static_delegate == null) + { + efl_ui_alert_popup_button_set_static_delegate = new efl_ui_alert_popup_button_set_delegate(button_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetButton") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_alert_popup_button_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_alert_popup_button_set_static_delegate) }); + } - private delegate void efl_ui_alert_popup_button_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.AlertPopupButton type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object icon); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.AlertPopup.efl_ui_alert_popup_class_get(); + } + #pragma warning disable CA1707, SA1300, SA1600 - public delegate void efl_ui_alert_popup_button_set_api_delegate(System.IntPtr obj, Efl.Ui.AlertPopupButton type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object icon); - public static Efl.Eo.FunctionWrapper efl_ui_alert_popup_button_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_alert_popup_button_set"); - private static void button_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.AlertPopupButton type, System.String text, Efl.Object icon) - { - Eina.Log.Debug("function efl_ui_alert_popup_button_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AlertPopup)wrapper).SetButton( type, text, icon); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + private delegate void efl_ui_alert_popup_button_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.AlertPopupButton type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object icon); + + + public delegate void efl_ui_alert_popup_button_set_api_delegate(System.IntPtr obj, Efl.Ui.AlertPopupButton type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object icon); + + public static Efl.Eo.FunctionWrapper efl_ui_alert_popup_button_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_alert_popup_button_set"); + + private static void button_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.AlertPopupButton type, System.String text, Efl.Object icon) + { + Eina.Log.Debug("function efl_ui_alert_popup_button_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AlertPopup)wrapper).SetButton(type, text, icon); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_alert_popup_button_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, text, icon); } - } else { - efl_ui_alert_popup_button_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, text, icon); } - } - private static efl_ui_alert_popup_button_set_delegate efl_ui_alert_popup_button_set_static_delegate; + + private static efl_ui_alert_popup_button_set_delegate efl_ui_alert_popup_button_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } -namespace Efl { namespace Ui { + +namespace Efl { + +namespace Ui { + /// Defines the type of the alert button. public enum AlertPopupButton { @@ -184,8 +259,15 @@ Negative = 1, /// Button having user-defined meaning. e.g. "Cancel" User = 2, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Information of clicked event [StructLayout(LayoutKind.Sequential)] public struct AlertPopupButtonClickedEvent @@ -194,7 +276,7 @@ public struct AlertPopupButtonClickedEvent public Efl.Ui.AlertPopupButton Button_type; ///Constructor for AlertPopupButtonClickedEvent. public AlertPopupButtonClickedEvent( - Efl.Ui.AlertPopupButton Button_type=default(Efl.Ui.AlertPopupButton) ) + Efl.Ui.AlertPopupButton Button_type = default(Efl.Ui.AlertPopupButton) ) { this.Button_type = Button_type; } @@ -231,4 +313,7 @@ public struct AlertPopupButtonClickedEvent } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup_part.eo.cs index db77598..ad556d4 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup_part.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI Alert Popup internal part class -[AlertPopupPartNativeInherit] +[Efl.Ui.AlertPopupPart.NativeMethods] public class AlertPopupPart : Efl.Ui.LayoutPartText, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AlertPopupPart)) - return Efl.Ui.AlertPopupPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AlertPopupPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_alert_popup_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public AlertPopupPart(Efl.Object parent= null - ) : - base(efl_ui_alert_popup_part_class_get(), typeof(AlertPopupPart), parent) + ) : base(efl_ui_alert_popup_part_class_get(), typeof(AlertPopupPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AlertPopupPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AlertPopupPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AlertPopupPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.AlertPopupPart.efl_ui_alert_popup_part_class_get(); } -} -public class AlertPopupPartNativeInherit : Efl.Ui.LayoutPartTextNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.AlertPopupPart.efl_ui_alert_popup_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPartText.NativeMethods { - return Efl.Ui.AlertPopupPart.efl_ui_alert_popup_part_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.AlertPopupPart.efl_ui_alert_popup_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_anchor_popup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_anchor_popup.eo.cs index 5096d93..8a7b777 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_anchor_popup.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_anchor_popup.eo.cs @@ -3,76 +3,102 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// EFL UI Anchor Popup class -[AnchorPopupNativeInherit] +[Efl.Ui.AnchorPopup.NativeMethods] public class AnchorPopup : Efl.Ui.Popup, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AnchorPopup)) - return Efl.Ui.AnchorPopupNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(AnchorPopup)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_anchor_popup_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public AnchorPopup(Efl.Object parent - , System.String style = null) : - base(efl_ui_anchor_popup_class_get(), typeof(AnchorPopup), parent) + , System.String style = null) : base(efl_ui_anchor_popup_class_get(), typeof(AnchorPopup), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected AnchorPopup(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected AnchorPopup(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AnchorPopup(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Returns the anchor object which the popup is following. /// The object which popup is following. virtual public Efl.Canvas.Object GetAnchor() { - var _ret_var = Efl.Ui.AnchorPopupNativeInherit.efl_ui_anchor_popup_anchor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.AnchorPopup.NativeMethods.efl_ui_anchor_popup_anchor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set anchor popup to follow an anchor object. If anchor object is moved or parent window is resized, the anchor popup moves to the new position. If anchor object is set to NULL, the anchor popup stops following the anchor object. When the popup is moved by using gfx_position_set, anchor is set NULL. /// The object which popup is following. - /// - virtual public void SetAnchor( Efl.Canvas.Object anchor) { - Efl.Ui.AnchorPopupNativeInherit.efl_ui_anchor_popup_anchor_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), anchor); + virtual public void SetAnchor(Efl.Canvas.Object anchor) { + Efl.Ui.AnchorPopup.NativeMethods.efl_ui_anchor_popup_anchor_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),anchor); Eina.Error.RaiseIfUnhandledException(); } /// Get the align priority of a popup. @@ -81,9 +107,8 @@ public class AnchorPopup : Efl.Ui.Popup, Efl.Eo.IWrapper /// Third align priority /// Fourth align priority /// Fifth align priority - /// - virtual public void GetAlignPriority( out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth) { - Efl.Ui.AnchorPopupNativeInherit.efl_ui_anchor_popup_align_priority_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out first, out second, out third, out fourth, out fifth); + virtual public void GetAlignPriority(out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth) { + Efl.Ui.AnchorPopup.NativeMethods.efl_ui_anchor_popup_align_priority_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out first, out second, out third, out fourth, out fifth); Eina.Error.RaiseIfUnhandledException(); } /// Set the align priority of a popup. @@ -92,151 +117,230 @@ public class AnchorPopup : Efl.Ui.Popup, Efl.Eo.IWrapper /// Third align priority /// Fourth align priority /// Fifth align priority - /// - virtual public void SetAlignPriority( Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth) { - Efl.Ui.AnchorPopupNativeInherit.efl_ui_anchor_popup_align_priority_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), first, second, third, fourth, fifth); + virtual public void SetAlignPriority(Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth) { + Efl.Ui.AnchorPopup.NativeMethods.efl_ui_anchor_popup_align_priority_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),first, second, third, fourth, fifth); Eina.Error.RaiseIfUnhandledException(); } /// Returns the anchor object which the popup is following. /// The object which popup is following. public Efl.Canvas.Object Anchor { get { return GetAnchor(); } - set { SetAnchor( value); } + set { SetAnchor(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get(); } -} -public class AnchorPopupNativeInherit : Efl.Ui.PopupNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Popup.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_anchor_popup_anchor_get_static_delegate == null) - efl_ui_anchor_popup_anchor_get_static_delegate = new efl_ui_anchor_popup_anchor_get_delegate(anchor_get); - if (methods.FirstOrDefault(m => m.Name == "GetAnchor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_anchor_popup_anchor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_anchor_get_static_delegate)}); - if (efl_ui_anchor_popup_anchor_set_static_delegate == null) - efl_ui_anchor_popup_anchor_set_static_delegate = new efl_ui_anchor_popup_anchor_set_delegate(anchor_set); - if (methods.FirstOrDefault(m => m.Name == "SetAnchor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_anchor_popup_anchor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_anchor_set_static_delegate)}); - if (efl_ui_anchor_popup_align_priority_get_static_delegate == null) - efl_ui_anchor_popup_align_priority_get_static_delegate = new efl_ui_anchor_popup_align_priority_get_delegate(align_priority_get); - if (methods.FirstOrDefault(m => m.Name == "GetAlignPriority") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_anchor_popup_align_priority_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_align_priority_get_static_delegate)}); - if (efl_ui_anchor_popup_align_priority_set_static_delegate == null) - efl_ui_anchor_popup_align_priority_set_static_delegate = new efl_ui_anchor_popup_align_priority_set_delegate(align_priority_set); - if (methods.FirstOrDefault(m => m.Name == "SetAlignPriority") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_anchor_popup_align_priority_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_align_priority_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_anchor_popup_anchor_get_static_delegate == null) + { + efl_ui_anchor_popup_anchor_get_static_delegate = new efl_ui_anchor_popup_anchor_get_delegate(anchor_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_anchor_popup_anchor_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetAnchor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_anchor_popup_anchor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_anchor_get_static_delegate) }); + } + if (efl_ui_anchor_popup_anchor_set_static_delegate == null) + { + efl_ui_anchor_popup_anchor_set_static_delegate = new efl_ui_anchor_popup_anchor_set_delegate(anchor_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_anchor_popup_anchor_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_anchor_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_anchor_popup_anchor_get"); - private static Efl.Canvas.Object anchor_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_anchor_popup_anchor_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((AnchorPopup)wrapper).GetAnchor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetAnchor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_anchor_popup_anchor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_anchor_set_static_delegate) }); } + + if (efl_ui_anchor_popup_align_priority_get_static_delegate == null) + { + efl_ui_anchor_popup_align_priority_get_static_delegate = new efl_ui_anchor_popup_align_priority_get_delegate(align_priority_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAlignPriority") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_anchor_popup_align_priority_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_align_priority_get_static_delegate) }); + } + + if (efl_ui_anchor_popup_align_priority_set_static_delegate == null) + { + efl_ui_anchor_popup_align_priority_set_static_delegate = new efl_ui_anchor_popup_align_priority_set_delegate(align_priority_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAlignPriority") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_anchor_popup_align_priority_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_align_priority_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_anchor_popup_anchor_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_anchor_popup_anchor_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_anchor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_anchor_popup_anchor_get"); + + private static Efl.Canvas.Object anchor_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_anchor_popup_anchor_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((AnchorPopup)wrapper).GetAnchor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_anchor_popup_anchor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_anchor_popup_anchor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_anchor_popup_anchor_get_delegate efl_ui_anchor_popup_anchor_get_static_delegate; + private static efl_ui_anchor_popup_anchor_get_delegate efl_ui_anchor_popup_anchor_get_static_delegate; - private delegate void efl_ui_anchor_popup_anchor_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object anchor); + + private delegate void efl_ui_anchor_popup_anchor_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object anchor); + + public delegate void efl_ui_anchor_popup_anchor_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object anchor); - public delegate void efl_ui_anchor_popup_anchor_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object anchor); - public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_anchor_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_anchor_popup_anchor_set"); - private static void anchor_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object anchor) - { - Eina.Log.Debug("function efl_ui_anchor_popup_anchor_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnchorPopup)wrapper).SetAnchor( anchor); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_anchor_popup_anchor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), anchor); + public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_anchor_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_anchor_popup_anchor_set"); + + private static void anchor_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object anchor) + { + Eina.Log.Debug("function efl_ui_anchor_popup_anchor_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnchorPopup)wrapper).SetAnchor(anchor); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_anchor_popup_anchor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), anchor); + } } - } - private static efl_ui_anchor_popup_anchor_set_delegate efl_ui_anchor_popup_anchor_set_static_delegate; + private static efl_ui_anchor_popup_anchor_set_delegate efl_ui_anchor_popup_anchor_set_static_delegate; - private delegate void efl_ui_anchor_popup_align_priority_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth); + + private delegate void efl_ui_anchor_popup_align_priority_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth); + + public delegate void efl_ui_anchor_popup_align_priority_get_api_delegate(System.IntPtr obj, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth); - public delegate void efl_ui_anchor_popup_align_priority_get_api_delegate(System.IntPtr obj, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth); - public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_align_priority_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_anchor_popup_align_priority_get"); - private static void align_priority_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth) - { - Eina.Log.Debug("function efl_ui_anchor_popup_align_priority_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - first = default(Efl.Ui.PopupAlign); second = default(Efl.Ui.PopupAlign); third = default(Efl.Ui.PopupAlign); fourth = default(Efl.Ui.PopupAlign); fifth = default(Efl.Ui.PopupAlign); - try { - ((AnchorPopup)wrapper).GetAlignPriority( out first, out second, out third, out fourth, out fifth); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_anchor_popup_align_priority_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out first, out second, out third, out fourth, out fifth); + public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_align_priority_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_anchor_popup_align_priority_get"); + + private static void align_priority_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth) + { + Eina.Log.Debug("function efl_ui_anchor_popup_align_priority_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + first = default(Efl.Ui.PopupAlign); second = default(Efl.Ui.PopupAlign); third = default(Efl.Ui.PopupAlign); fourth = default(Efl.Ui.PopupAlign); fifth = default(Efl.Ui.PopupAlign); + try + { + ((AnchorPopup)wrapper).GetAlignPriority(out first, out second, out third, out fourth, out fifth); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_anchor_popup_align_priority_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out first, out second, out third, out fourth, out fifth); + } } - } - private static efl_ui_anchor_popup_align_priority_get_delegate efl_ui_anchor_popup_align_priority_get_static_delegate; + private static efl_ui_anchor_popup_align_priority_get_delegate efl_ui_anchor_popup_align_priority_get_static_delegate; - private delegate void efl_ui_anchor_popup_align_priority_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth); + + private delegate void efl_ui_anchor_popup_align_priority_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth); + + public delegate void efl_ui_anchor_popup_align_priority_set_api_delegate(System.IntPtr obj, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth); - public delegate void efl_ui_anchor_popup_align_priority_set_api_delegate(System.IntPtr obj, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth); - public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_align_priority_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_anchor_popup_align_priority_set"); - private static void align_priority_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth) - { - Eina.Log.Debug("function efl_ui_anchor_popup_align_priority_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((AnchorPopup)wrapper).SetAlignPriority( first, second, third, fourth, fifth); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_anchor_popup_align_priority_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), first, second, third, fourth, fifth); + public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_align_priority_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_anchor_popup_align_priority_set"); + + private static void align_priority_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth) + { + Eina.Log.Debug("function efl_ui_anchor_popup_align_priority_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((AnchorPopup)wrapper).SetAlignPriority(first, second, third, fourth, fifth); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_anchor_popup_align_priority_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), first, second, third, fourth, fifth); + } } - } - private static efl_ui_anchor_popup_align_priority_set_delegate efl_ui_anchor_popup_align_priority_set_static_delegate; + + private static efl_ui_anchor_popup_align_priority_set_delegate efl_ui_anchor_popup_align_priority_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_autorepeat.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_autorepeat.eo.cs index e0009fb..da1c53b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_autorepeat.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_autorepeat.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI autorepeat interface -[IAutorepeatNativeInherit] +[Efl.Ui.IAutorepeatConcrete.NativeMethods] public interface IAutorepeat : Efl.Eo.IWrapper, IDisposable { @@ -21,8 +25,7 @@ double GetAutorepeatInitialTimeout(); /// /// See also , . /// Timeout in seconds -/// -void SetAutorepeatInitialTimeout( double t); +void SetAutorepeatInitialTimeout(double t); /// The interval between each generated autorepeat event /// After the first repeated event is fired, all subsequent ones will follow after a delay of t seconds for each. /// @@ -34,8 +37,7 @@ double GetAutorepeatGapTimeout(); /// /// See also . /// Interval in seconds -/// -void SetAutorepeatGapTimeout( double t); +void SetAutorepeatGapTimeout(double t); /// Turn on/off the autorepeat event generated when the button is kept pressed /// When off, no autorepeat is performed and buttons emit a normal clicked signal when they are clicked. /// @@ -47,8 +49,7 @@ bool GetAutorepeatEnabled(); /// /// When on, keeping a button pressed will continuously emit a repeated signal until the button is released. The time it takes until it starts emitting the signal is given by , and the time between each new emission by . /// A bool to turn on/off the event -/// -void SetAutorepeatEnabled( bool on); +void SetAutorepeatEnabled(bool on); /// Whether the button supports autorepeat. /// true if autorepeat is supported, false otherwise bool GetAutorepeatSupported(); @@ -92,75 +93,110 @@ IAutorepeat { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IAutorepeatConcrete)) - return Efl.Ui.IAutorepeatNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IAutorepeatConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_autorepeat_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IAutorepeatConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IAutorepeatConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// The initial timeout before the autorepeat event is generated /// Sets the timeout, in seconds, since the button is pressed until the first repeated signal is emitted. If t is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed. /// /// See also , . /// Timeout in seconds public double GetAutorepeatInitialTimeout() { - var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -169,9 +205,8 @@ IAutorepeat /// /// See also , . /// Timeout in seconds - /// - public void SetAutorepeatInitialTimeout( double t) { - Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(this.NativeHandle, t); + public void SetAutorepeatInitialTimeout(double t) { + Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(this.NativeHandle,t); Eina.Error.RaiseIfUnhandledException(); } /// The interval between each generated autorepeat event @@ -180,7 +215,7 @@ IAutorepeat /// See also . /// Interval in seconds public double GetAutorepeatGapTimeout() { - var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -189,9 +224,8 @@ IAutorepeat /// /// See also . /// Interval in seconds - /// - public void SetAutorepeatGapTimeout( double t) { - Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(this.NativeHandle, t); + public void SetAutorepeatGapTimeout(double t) { + Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(this.NativeHandle,t); Eina.Error.RaiseIfUnhandledException(); } /// Turn on/off the autorepeat event generated when the button is kept pressed @@ -200,7 +234,7 @@ IAutorepeat /// When on, keeping a button pressed will continuously emit a repeated signal until the button is released. The time it takes until it starts emitting the signal is given by , and the time between each new emission by . /// A bool to turn on/off the event public bool GetAutorepeatEnabled() { - var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -209,15 +243,14 @@ IAutorepeat /// /// When on, keeping a button pressed will continuously emit a repeated signal until the button is released. The time it takes until it starts emitting the signal is given by , and the time between each new emission by . /// A bool to turn on/off the event - /// - public void SetAutorepeatEnabled( bool on) { - Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(this.NativeHandle, on); + public void SetAutorepeatEnabled(bool on) { + Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(this.NativeHandle,on); Eina.Error.RaiseIfUnhandledException(); } /// Whether the button supports autorepeat. /// true if autorepeat is supported, false otherwise public bool GetAutorepeatSupported() { - var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_supported_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_supported_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -228,7 +261,7 @@ IAutorepeat /// Timeout in seconds public double AutorepeatInitialTimeout { get { return GetAutorepeatInitialTimeout(); } - set { SetAutorepeatInitialTimeout( value); } + set { SetAutorepeatInitialTimeout(value); } } /// The interval between each generated autorepeat event /// After the first repeated event is fired, all subsequent ones will follow after a delay of t seconds for each. @@ -237,7 +270,7 @@ IAutorepeat /// Interval in seconds public double AutorepeatGapTimeout { get { return GetAutorepeatGapTimeout(); } - set { SetAutorepeatGapTimeout( value); } + set { SetAutorepeatGapTimeout(value); } } /// Turn on/off the autorepeat event generated when the button is kept pressed /// When off, no autorepeat is performed and buttons emit a normal clicked signal when they are clicked. @@ -246,7 +279,7 @@ IAutorepeat /// A bool to turn on/off the event public bool AutorepeatEnabled { get { return GetAutorepeatEnabled(); } - set { SetAutorepeatEnabled( value); } + set { SetAutorepeatEnabled(value); } } /// Whether the button supports autorepeat. /// true if autorepeat is supported, false otherwise @@ -257,222 +290,353 @@ IAutorepeat { return Efl.Ui.IAutorepeatConcrete.efl_ui_autorepeat_interface_get(); } -} -public class IAutorepeatNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_autorepeat_initial_timeout_get_static_delegate == null) - efl_ui_autorepeat_initial_timeout_get_static_delegate = new efl_ui_autorepeat_initial_timeout_get_delegate(autorepeat_initial_timeout_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatInitialTimeout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_initial_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_get_static_delegate)}); - if (efl_ui_autorepeat_initial_timeout_set_static_delegate == null) - efl_ui_autorepeat_initial_timeout_set_static_delegate = new efl_ui_autorepeat_initial_timeout_set_delegate(autorepeat_initial_timeout_set); - if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatInitialTimeout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_initial_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_set_static_delegate)}); - if (efl_ui_autorepeat_gap_timeout_get_static_delegate == null) - efl_ui_autorepeat_gap_timeout_get_static_delegate = new efl_ui_autorepeat_gap_timeout_get_delegate(autorepeat_gap_timeout_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatGapTimeout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_gap_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_get_static_delegate)}); - if (efl_ui_autorepeat_gap_timeout_set_static_delegate == null) - efl_ui_autorepeat_gap_timeout_set_static_delegate = new efl_ui_autorepeat_gap_timeout_set_delegate(autorepeat_gap_timeout_set); - if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatGapTimeout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_gap_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_set_static_delegate)}); - if (efl_ui_autorepeat_enabled_get_static_delegate == null) - efl_ui_autorepeat_enabled_get_static_delegate = new efl_ui_autorepeat_enabled_get_delegate(autorepeat_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_get_static_delegate)}); - if (efl_ui_autorepeat_enabled_set_static_delegate == null) - efl_ui_autorepeat_enabled_set_static_delegate = new efl_ui_autorepeat_enabled_set_delegate(autorepeat_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_set_static_delegate)}); - if (efl_ui_autorepeat_supported_get_static_delegate == null) - efl_ui_autorepeat_supported_get_static_delegate = new efl_ui_autorepeat_supported_get_delegate(autorepeat_supported_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatSupported") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_supported_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_supported_get_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IAutorepeatConcrete.efl_ui_autorepeat_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IAutorepeatConcrete.efl_ui_autorepeat_interface_get(); - } + 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_autorepeat_initial_timeout_get_static_delegate == null) + { + efl_ui_autorepeat_initial_timeout_get_static_delegate = new efl_ui_autorepeat_initial_timeout_get_delegate(autorepeat_initial_timeout_get); + } - private delegate double efl_ui_autorepeat_initial_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatInitialTimeout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_initial_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_get_static_delegate) }); + } + if (efl_ui_autorepeat_initial_timeout_set_static_delegate == null) + { + efl_ui_autorepeat_initial_timeout_set_static_delegate = new efl_ui_autorepeat_initial_timeout_set_delegate(autorepeat_initial_timeout_set); + } - public delegate double efl_ui_autorepeat_initial_timeout_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_initial_timeout_get"); - private static double autorepeat_initial_timeout_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IAutorepeat)wrapper).GetAutorepeatInitialTimeout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatInitialTimeout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_initial_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_autorepeat_gap_timeout_get_static_delegate == null) + { + efl_ui_autorepeat_gap_timeout_get_static_delegate = new efl_ui_autorepeat_gap_timeout_get_delegate(autorepeat_gap_timeout_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatGapTimeout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_gap_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_get_static_delegate) }); + } + + if (efl_ui_autorepeat_gap_timeout_set_static_delegate == null) + { + efl_ui_autorepeat_gap_timeout_set_static_delegate = new efl_ui_autorepeat_gap_timeout_set_delegate(autorepeat_gap_timeout_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatGapTimeout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_gap_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_set_static_delegate) }); + } + + if (efl_ui_autorepeat_enabled_get_static_delegate == null) + { + efl_ui_autorepeat_enabled_get_static_delegate = new efl_ui_autorepeat_enabled_get_delegate(autorepeat_enabled_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_get_static_delegate) }); + } + + if (efl_ui_autorepeat_enabled_set_static_delegate == null) + { + efl_ui_autorepeat_enabled_set_static_delegate = new efl_ui_autorepeat_enabled_set_delegate(autorepeat_enabled_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_set_static_delegate) }); + } + + if (efl_ui_autorepeat_supported_get_static_delegate == null) + { + efl_ui_autorepeat_supported_get_static_delegate = new efl_ui_autorepeat_supported_get_delegate(autorepeat_supported_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatSupported") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_supported_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_supported_get_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.IAutorepeatConcrete.efl_ui_autorepeat_interface_get(); } - } - private static efl_ui_autorepeat_initial_timeout_get_delegate efl_ui_autorepeat_initial_timeout_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_autorepeat_initial_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); + + private delegate double efl_ui_autorepeat_initial_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_autorepeat_initial_timeout_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_autorepeat_initial_timeout_set_api_delegate(System.IntPtr obj, double t); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_initial_timeout_set"); - private static void autorepeat_initial_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) - { - Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IAutorepeat)wrapper).SetAutorepeatInitialTimeout( t); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_initial_timeout_get"); + + private static double autorepeat_initial_timeout_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IAutorepeat)wrapper).GetAutorepeatInitialTimeout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_autorepeat_initial_timeout_set_delegate efl_ui_autorepeat_initial_timeout_set_static_delegate; + private static efl_ui_autorepeat_initial_timeout_get_delegate efl_ui_autorepeat_initial_timeout_get_static_delegate; - private delegate double efl_ui_autorepeat_gap_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_autorepeat_initial_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); + + public delegate void efl_ui_autorepeat_initial_timeout_set_api_delegate(System.IntPtr obj, double t); - public delegate double efl_ui_autorepeat_gap_timeout_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_gap_timeout_get"); - private static double autorepeat_gap_timeout_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IAutorepeat)wrapper).GetAutorepeatGapTimeout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_initial_timeout_set"); + + private static void autorepeat_initial_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) + { + Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IAutorepeat)wrapper).SetAutorepeatInitialTimeout(t); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); } - return _ret_var; - } else { - return efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_autorepeat_gap_timeout_get_delegate efl_ui_autorepeat_gap_timeout_get_static_delegate; + private static efl_ui_autorepeat_initial_timeout_set_delegate efl_ui_autorepeat_initial_timeout_set_static_delegate; - private delegate void efl_ui_autorepeat_gap_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); + + private delegate double efl_ui_autorepeat_gap_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_autorepeat_gap_timeout_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_autorepeat_gap_timeout_set_api_delegate(System.IntPtr obj, double t); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_gap_timeout_set"); - private static void autorepeat_gap_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) - { - Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IAutorepeat)wrapper).SetAutorepeatGapTimeout( t); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_gap_timeout_get"); + + private static double autorepeat_gap_timeout_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IAutorepeat)wrapper).GetAutorepeatGapTimeout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_autorepeat_gap_timeout_set_delegate efl_ui_autorepeat_gap_timeout_set_static_delegate; + private static efl_ui_autorepeat_gap_timeout_get_delegate efl_ui_autorepeat_gap_timeout_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_autorepeat_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_autorepeat_gap_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); + + public delegate void efl_ui_autorepeat_gap_timeout_set_api_delegate(System.IntPtr obj, double t); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_autorepeat_enabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_enabled_get"); - private static bool autorepeat_enabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_autorepeat_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IAutorepeat)wrapper).GetAutorepeatEnabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_gap_timeout_set"); + + private static void autorepeat_gap_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) + { + Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IAutorepeat)wrapper).SetAutorepeatGapTimeout(t); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); } - return _ret_var; - } else { - return efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_autorepeat_enabled_get_delegate efl_ui_autorepeat_enabled_get_static_delegate; + private static efl_ui_autorepeat_gap_timeout_set_delegate efl_ui_autorepeat_gap_timeout_set_static_delegate; - private delegate void efl_ui_autorepeat_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool on); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_autorepeat_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_autorepeat_enabled_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_autorepeat_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool on); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_enabled_set"); - private static void autorepeat_enabled_set(System.IntPtr obj, System.IntPtr pd, bool on) - { - Eina.Log.Debug("function efl_ui_autorepeat_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IAutorepeat)wrapper).SetAutorepeatEnabled( on); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), on); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_enabled_get"); + + private static bool autorepeat_enabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_autorepeat_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IAutorepeat)wrapper).GetAutorepeatEnabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_autorepeat_enabled_set_delegate efl_ui_autorepeat_enabled_set_static_delegate; + private static efl_ui_autorepeat_enabled_get_delegate efl_ui_autorepeat_enabled_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_autorepeat_supported_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_autorepeat_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool on); + + public delegate void efl_ui_autorepeat_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool on); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_autorepeat_supported_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_supported_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_supported_get"); - private static bool autorepeat_supported_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_autorepeat_supported_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IAutorepeat)wrapper).GetAutorepeatSupported(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_enabled_set"); + + private static void autorepeat_enabled_set(System.IntPtr obj, System.IntPtr pd, bool on) + { + Eina.Log.Debug("function efl_ui_autorepeat_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IAutorepeat)wrapper).SetAutorepeatEnabled(on); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), on); } + } + + private static efl_ui_autorepeat_enabled_set_delegate efl_ui_autorepeat_enabled_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_autorepeat_supported_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_autorepeat_supported_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_supported_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_supported_get"); + + private static bool autorepeat_supported_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_autorepeat_supported_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IAutorepeat)wrapper).GetAutorepeatSupported(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_autorepeat_supported_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_autorepeat_supported_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_autorepeat_supported_get_delegate efl_ui_autorepeat_supported_get_static_delegate; + + private static efl_ui_autorepeat_supported_get_delegate efl_ui_autorepeat_supported_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_average_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_average_model.eo.cs deleted file mode 100644 index 4e04a8c..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_average_model.eo.cs +++ /dev/null @@ -1,93 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Ui { -/// Class to be used to store object item size for List/Grid View. -/// This model provide the same feature as except for the "total.width" and "total.height" which reflect an estimated value of the total size by using the currently know size from its children as an average size for all its children. As more children fill "self.width" and "self.height", this model will figure out a more precise answer. Once all children size is known, the result will be exact and the same as . -/// -/// This model only supporting vertical list at this point. -[AverageModelNativeInherit] -public class AverageModel : Efl.Ui.ExactModel, Efl.Eo.IWrapper -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (AverageModel)) - return Efl.Ui.AverageModelNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_average_model_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Model that is/will be See - ///Position of this object in the parent model. See - public AverageModel(Efl.Object parent - , Efl.IModel model, uint? index = null) : - base(efl_ui_average_model_class_get(), typeof(AverageModel), parent) - { - if (Efl.Eo.Globals.ParamHelperCheck(model)) - SetModel(Efl.Eo.Globals.GetParamHelper(model)); - if (Efl.Eo.Globals.ParamHelperCheck(index)) - SetIndex(Efl.Eo.Globals.GetParamHelper(index)); - FinishInstantiation(); - } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - protected AverageModel(System.IntPtr raw) : base(raw) - { - RegisterEventProxies(); - } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected AverageModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.AverageModel.efl_ui_average_model_class_get(); - } -} -public class AverageModelNativeInherit : Efl.Ui.ExactModelNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.AverageModel.efl_ui_average_model_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.AverageModel.efl_ui_average_model_class_get(); - } -} -} } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_bg.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_bg.eo.cs index b119dd4..71eafa2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_bg.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_bg.eo.cs @@ -3,295 +3,370 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// The bg (background) widget is used for setting (solid) background decorations for a window (unless it has transparency enabled) or for any container object. It works just like an image, but has some properties useful for backgrounds, such as setting it to tiled, centered, scaled or stretched. -[BgNativeInherit] +[Efl.Ui.Bg.NativeMethods] public class Bg : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.Gfx.IImage,Efl.Gfx.IImageLoadController { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Bg)) - return Efl.Ui.BgNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Bg)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_bg_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Bg(Efl.Object parent - , System.String style = null) : - base(efl_ui_bg_class_get(), typeof(Bg), parent) + , System.String style = null) : base(efl_ui_bg_class_get(), typeof(Bg), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Bg(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Bg(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Bg(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ImagePreloadEvtKey = new object(); + /// Image data has been preloaded. public event EventHandler ImagePreloadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImagePreloadEvt_delegate)) { - eventHandlers.AddHandler(ImagePreloadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; - if (RemoveNativeEventHandler(key, this.evt_ImagePreloadEvt_delegate)) { - eventHandlers.RemoveHandler(ImagePreloadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImagePreloadEvt. - public void On_ImagePreloadEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImagePreloadEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImagePreloadEvt_delegate; - private void on_ImagePreloadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ImagePreloadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public void OnImagePreloadEvt(EventArgs e) + { + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ImageResizeEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Image was resized (its pixel data). public event EventHandler ImageResizeEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImageResizeEvt_delegate)) { - eventHandlers.AddHandler(ImageResizeEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; - if (RemoveNativeEventHandler(key, this.evt_ImageResizeEvt_delegate)) { - eventHandlers.RemoveHandler(ImageResizeEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImageResizeEvt. - public void On_ImageResizeEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImageResizeEvtKey]; + public void OnImageResizeEvt(EventArgs e) + { + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImageResizeEvt_delegate; - private void on_ImageResizeEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ImageResizeEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ImageUnloadEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Image data has been unloaded (by some mechanism in EFL that threw out the original image data). public event EventHandler ImageUnloadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImageUnloadEvt_delegate)) { - eventHandlers.AddHandler(ImageUnloadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; - if (RemoveNativeEventHandler(key, this.evt_ImageUnloadEvt_delegate)) { - eventHandlers.RemoveHandler(ImageUnloadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImageUnloadEvt. - public void On_ImageUnloadEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImageUnloadEvtKey]; + public void OnImageUnloadEvt(EventArgs e) + { + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImageUnloadEvt_delegate; - private void on_ImageUnloadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ImageUnloadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object LoadDoneEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when he image was loaded public event EventHandler LoadDoneEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LoadDoneEvt_delegate)) { - eventHandlers.AddHandler(LoadDoneEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; - if (RemoveNativeEventHandler(key, this.evt_LoadDoneEvt_delegate)) { - eventHandlers.RemoveHandler(LoadDoneEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LoadDoneEvt. - public void On_LoadDoneEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadDoneEvtKey]; + public void OnLoadDoneEvt(EventArgs e) + { + var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadDoneEvt_delegate; - private void on_LoadDoneEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_LoadDoneEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object LoadErrorEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when an error happened during image loading public event EventHandler LoadErrorEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args args = new Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args(); + args.arg = (Eina.Error)Marshal.PtrToStructure(evt.Info, typeof(Eina.Error)); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LoadErrorEvt_delegate)) { - eventHandlers.AddHandler(LoadErrorEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; - if (RemoveNativeEventHandler(key, this.evt_LoadErrorEvt_delegate)) { - eventHandlers.RemoveHandler(LoadErrorEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LoadErrorEvt. - public void On_LoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadErrorEvtKey]; + public void OnLoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) + { + var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadErrorEvt_delegate; - private void on_LoadErrorEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args args = new Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args(); - args.arg = (Eina.Error)Marshal.PtrToStructure(evt.Info, typeof(Eina.Error)); - try { - On_LoadErrorEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ImagePreloadEvt_delegate = new Efl.EventCb(on_ImagePreloadEvt_NativeCallback); - evt_ImageResizeEvt_delegate = new Efl.EventCb(on_ImageResizeEvt_NativeCallback); - evt_ImageUnloadEvt_delegate = new Efl.EventCb(on_ImageUnloadEvt_NativeCallback); - evt_LoadDoneEvt_delegate = new Efl.EventCb(on_LoadDoneEvt_NativeCallback); - evt_LoadErrorEvt_delegate = new Efl.EventCb(on_LoadErrorEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc((int)e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Get the mmaped file from where an object will fetch the real data (it must be an ). /// (Since EFL 1.22) /// The handle to the that will be used virtual public Eina.File GetMmap() { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -300,8 +375,8 @@ private static object LoadErrorEvtKey = new object(); /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise - virtual public Eina.Error SetMmap( Eina.File f) { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public Eina.Error SetMmap(Eina.File f) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -310,7 +385,7 @@ private static object LoadErrorEvtKey = new object(); /// (Since EFL 1.22) /// The file path. virtual public System.String GetFile() { - var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -319,8 +394,8 @@ private static object LoadErrorEvtKey = new object(); /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise - virtual public Eina.Error SetFile( System.String file) { - var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file); + virtual public Eina.Error SetFile(System.String file) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -331,7 +406,7 @@ private static object LoadErrorEvtKey = new object(); /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. virtual public System.String GetKey() { - var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -339,16 +414,15 @@ private static object LoadErrorEvtKey = new object(); /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. - /// - virtual public void SetKey( System.String key) { - Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public void SetKey(System.String key) { + Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. virtual public bool GetLoaded() { - var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -359,7 +433,7 @@ private static object LoadErrorEvtKey = new object(); /// (Since EFL 1.22) /// 0 on success, error code otherwise virtual public Eina.Error Load() { - var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -368,9 +442,8 @@ private static object LoadErrorEvtKey = new object(); /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) - /// virtual public void Unload() { - Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Whether to use high-quality image scaling algorithm for this image. @@ -379,7 +452,7 @@ private static object LoadErrorEvtKey = new object(); /// true by default /// Whether to use smooth scale or not. virtual public bool GetSmoothScale() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_smooth_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -388,29 +461,27 @@ private static object LoadErrorEvtKey = new object(); /// /// true by default /// Whether to use smooth scale or not. - /// - virtual public void SetSmoothScale( bool smooth_scale) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_smooth_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), smooth_scale); + virtual public void SetSmoothScale(bool smooth_scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),smooth_scale); Eina.Error.RaiseIfUnhandledException(); } /// Control how the image is scaled. /// Image scale type virtual public Efl.Gfx.ImageScaleType GetScaleType() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control how the image is scaled. /// Image scale type - /// - virtual public void SetScaleType( Efl.Gfx.ImageScaleType scale_type) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale_type); + virtual public void SetScaleType(Efl.Gfx.ImageScaleType scale_type) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale_type); Eina.Error.RaiseIfUnhandledException(); } /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. virtual public double GetRatio() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_ratio_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_ratio_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -428,9 +499,8 @@ private static object LoadErrorEvtKey = new object(); /// The border's right width. /// The border's top height. /// The border's bottom height. - /// - virtual public void GetBorder( out int l, out int r, out int t, out int b) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out l, out r, out t, out b); + virtual public void GetBorder(out int l, out int r, out int t, out int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Dimensions of this image's border, a region that does not scale with the center area. @@ -447,9 +517,8 @@ private static object LoadErrorEvtKey = new object(); /// The border's right width. /// The border's top height. /// The border's bottom height. - /// - virtual public void SetBorder( int l, int r, int t, int b) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), l, r, t, b); + virtual public void SetBorder(int l, int r, int t, int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),l, r, t, b); Eina.Error.RaiseIfUnhandledException(); } /// Scaling factor applied to the image borders. @@ -458,7 +527,7 @@ private static object LoadErrorEvtKey = new object(); /// Default value is 1.0 (no scaling). /// The scale factor. virtual public double GetBorderScale() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -467,9 +536,8 @@ private static object LoadErrorEvtKey = new object(); /// /// Default value is 1.0 (no scaling). /// The scale factor. - /// - virtual public void SetBorderScale( double scale) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale); + virtual public void SetBorderScale(double scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale); Eina.Error.RaiseIfUnhandledException(); } /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. @@ -478,7 +546,7 @@ private static object LoadErrorEvtKey = new object(); /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. virtual public Efl.Gfx.BorderFillMode GetBorderCenterFill() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_center_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -487,9 +555,8 @@ private static object LoadErrorEvtKey = new object(); /// /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. - /// - virtual public void SetBorderCenterFill( Efl.Gfx.BorderFillMode fill) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_center_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fill); + virtual public void SetBorderCenterFill(Efl.Gfx.BorderFillMode fill) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fill); Eina.Error.RaiseIfUnhandledException(); } /// This represents the size of the original image in pixels. @@ -498,7 +565,7 @@ private static object LoadErrorEvtKey = new object(); /// This is a read-only property, and may return 0x0. /// The size in pixels. virtual public Eina.Size2D GetImageSize() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -506,84 +573,80 @@ private static object LoadErrorEvtKey = new object(); /// This returns #EVAS_IMAGE_CONTENT_HINT_NONE on error. /// Dynamic or static content hint, see virtual public Efl.Gfx.ImageContentHint GetContentHint() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_content_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the content hint setting of a given image object of the canvas. /// This function sets the content hint value of the given image of the canvas. For example, if you're on the GL engine and your driver implementation supports it, setting this hint to #EVAS_IMAGE_CONTENT_HINT_DYNAMIC will make it need zero copies at texture upload time, which is an "expensive" operation. /// Dynamic or static content hint, see - /// - virtual public void SetContentHint( Efl.Gfx.ImageContentHint hint) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_content_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hint); + virtual public void SetContentHint(Efl.Gfx.ImageContentHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hint); Eina.Error.RaiseIfUnhandledException(); } /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see virtual public Efl.Gfx.ImageScaleHint GetScaleHint() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the scale hint of a given image of the canvas. /// This function sets the scale hint value of the given image object in the canvas, which will affect how Evas is to cache scaled versions of its original source image. /// Scalable or static size hint, see - /// - virtual public void SetScaleHint( Efl.Gfx.ImageScaleHint hint) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hint); + virtual public void SetScaleHint(Efl.Gfx.ImageScaleHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hint); Eina.Error.RaiseIfUnhandledException(); } /// Gets the (last) file loading error for a given object. /// The load error code. virtual public Eina.Error GetImageLoadError() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_load_error_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_load_error_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Returns the requested load size. /// The image load size. virtual public Eina.Size2D GetLoadSize() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests the canvas to load the image at the given size. /// EFL will try to load an image of the requested size but does not guarantee an exact match between the request and the loaded image dimensions. /// The image load size. - /// - virtual public void SetLoadSize( Eina.Size2D size) { + virtual public void SetLoadSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Get the DPI resolution of a loaded image object in the canvas. /// This function returns the DPI resolution of the given canvas image. /// The DPI resolution. virtual public double GetLoadDpi() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the DPI resolution of an image object's source image. /// This function sets the DPI resolution of a given loaded canvas image. Most useful for the SVG image loader. /// The DPI resolution. - /// - virtual public void SetLoadDpi( double dpi) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dpi); + virtual public void SetLoadDpi(double dpi) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dpi); Eina.Error.RaiseIfUnhandledException(); } /// Indicates whether the property is supported for the current file. /// true if region load of the image is supported, false otherwise virtual public bool GetLoadRegionSupport() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Retrieve the coordinates of a given image object's selective (source image) load region. /// A region of the image. virtual public Eina.Rect GetLoadRegion() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -592,26 +655,24 @@ private static object LoadErrorEvtKey = new object(); /// /// Note: The image loader for the image format in question has to support selective region loading in order for this function to work. /// A region of the image. - /// - virtual public void SetLoadRegion( Eina.Rect region) { + virtual public void SetLoadRegion(Eina.Rect region) { Eina.Rect.NativeStruct _in_region = region; - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_region); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_region); Eina.Error.RaiseIfUnhandledException(); } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. virtual public bool GetLoadOrientation() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. - /// - virtual public void SetLoadOrientation( bool enable) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enable); + virtual public void SetLoadOrientation(bool enable) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enable); Eina.Error.RaiseIfUnhandledException(); } /// The scale down factor is a divider on the original image size. @@ -622,44 +683,40 @@ private static object LoadErrorEvtKey = new object(); /// Powers of two (2, 4, 8) are best supported (especially with JPEG) /// The scale down dividing factor. virtual public int GetLoadScaleDown() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests the image loader to scale down by div times. Call this before starting the actual image load. /// The scale down dividing factor. - /// - virtual public void SetLoadScaleDown( int div) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), div); + virtual public void SetLoadScaleDown(int div) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),div); Eina.Error.RaiseIfUnhandledException(); } /// Initial load should skip header check and leave it all to data load /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set). /// Will be true if header is to be skipped. virtual public bool GetLoadSkipHeader() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the skip header state for susbsequent loads of a file. /// Will be true if header is to be skipped. - /// - virtual public void SetLoadSkipHeader( bool skip) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), skip); + virtual public void SetLoadSkipHeader(bool skip) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),skip); Eina.Error.RaiseIfUnhandledException(); } /// Begin preloading an image object's image data in the background. /// Once the background task is complete the event load,done will be emitted. - /// virtual public void LoadAsyncStart() { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Cancel preloading an image object's image data in the background. /// The object should be left in a state where it has no image data. If cancel is called too late, the image will be kept in memory. - /// virtual public void LoadAsyncCancel() { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Get the mmaped file from where an object will fetch the real data (it must be an ). @@ -667,7 +724,7 @@ private static object LoadErrorEvtKey = new object(); /// The handle to the that will be used public Eina.File Mmap { get { return GetMmap(); } - set { SetMmap( value); } + set { SetMmap(value); } } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. @@ -675,7 +732,7 @@ private static object LoadErrorEvtKey = new object(); /// The file path. public System.String File { get { return GetFile(); } - set { SetFile( value); } + set { SetFile(value); } } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -685,7 +742,7 @@ private static object LoadErrorEvtKey = new object(); /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String Key { get { return GetKey(); } - set { SetKey( value); } + set { SetKey(value); } } /// Get the load state of the object. /// (Since EFL 1.22) @@ -700,13 +757,13 @@ private static object LoadErrorEvtKey = new object(); /// Whether to use smooth scale or not. public bool SmoothScale { get { return GetSmoothScale(); } - set { SetSmoothScale( value); } + set { SetSmoothScale(value); } } /// Control how the image is scaled. /// Image scale type public Efl.Gfx.ImageScaleType ScaleType { get { return GetScaleType(); } - set { SetScaleType( value); } + set { SetScaleType(value); } } /// The native width/height ratio of the image. /// The image's ratio. @@ -720,7 +777,7 @@ private static object LoadErrorEvtKey = new object(); /// The scale factor. public double BorderScale { get { return GetBorderScale(); } - set { SetBorderScale( value); } + set { SetBorderScale(value); } } /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. /// This function sets how the center part of the image object's source image is to be drawn, which must be one of the values in . By center we mean the complementary part of that defined by . This is very useful for making frames and decorations. You would most probably also be using a filled image (as in ) to use as a frame. @@ -729,7 +786,7 @@ private static object LoadErrorEvtKey = new object(); /// Fill mode of the center region. public Efl.Gfx.BorderFillMode BorderCenterFill { get { return GetBorderCenterFill(); } - set { SetBorderCenterFill( value); } + set { SetBorderCenterFill(value); } } /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. @@ -744,14 +801,14 @@ private static object LoadErrorEvtKey = new object(); /// Dynamic or static content hint, see public Efl.Gfx.ImageContentHint ContentHint { get { return GetContentHint(); } - set { SetContentHint( value); } + set { SetContentHint(value); } } /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see public Efl.Gfx.ImageScaleHint ScaleHint { get { return GetScaleHint(); } - set { SetScaleHint( value); } + set { SetScaleHint(value); } } /// Gets the (last) file loading error for a given object. /// The load error code. @@ -765,14 +822,14 @@ private static object LoadErrorEvtKey = new object(); /// The image load size. public Eina.Size2D LoadSize { get { return GetLoadSize(); } - set { SetLoadSize( value); } + set { SetLoadSize(value); } } /// Get the DPI resolution of a loaded image object in the canvas. /// This function returns the DPI resolution of the given canvas image. /// The DPI resolution. public double LoadDpi { get { return GetLoadDpi(); } - set { SetLoadDpi( value); } + set { SetLoadDpi(value); } } /// Indicates whether the property is supported for the current file. /// true if region load of the image is supported, false otherwise @@ -783,14 +840,14 @@ private static object LoadErrorEvtKey = new object(); /// A region of the image. public Eina.Rect LoadRegion { get { return GetLoadRegion(); } - set { SetLoadRegion( value); } + set { SetLoadRegion(value); } } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. public bool LoadOrientation { get { return GetLoadOrientation(); } - set { SetLoadOrientation( value); } + set { SetLoadOrientation(value); } } /// The scale down factor is a divider on the original image size. /// Setting the scale down factor can reduce load time and memory usage at the cost of having a scaled down image in memory. @@ -801,1209 +858,1918 @@ private static object LoadErrorEvtKey = new object(); /// The scale down dividing factor. public int LoadScaleDown { get { return GetLoadScaleDown(); } - set { SetLoadScaleDown( value); } + set { SetLoadScaleDown(value); } } /// Initial load should skip header check and leave it all to data load /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set). /// Will be true if header is to be skipped. public bool LoadSkipHeader { get { return GetLoadSkipHeader(); } - set { SetLoadSkipHeader( value); } + set { SetLoadSkipHeader(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Bg.efl_ui_bg_class_get(); } -} -public class BgNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_file_mmap_get_static_delegate == null) - efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate)}); - if (efl_file_mmap_set_static_delegate == null) - efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate)}); - if (efl_file_get_static_delegate == null) - efl_file_get_static_delegate = new efl_file_get_delegate(file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate)}); - if (efl_file_set_static_delegate == null) - efl_file_set_static_delegate = new efl_file_set_delegate(file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate)}); - if (efl_file_key_get_static_delegate == null) - efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate)}); - if (efl_file_key_set_static_delegate == null) - efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate)}); - if (efl_file_loaded_get_static_delegate == null) - efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate)}); - if (efl_file_load_static_delegate == null) - efl_file_load_static_delegate = new efl_file_load_delegate(load); - if (methods.FirstOrDefault(m => m.Name == "Load") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate)}); - if (efl_file_unload_static_delegate == null) - efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); - if (methods.FirstOrDefault(m => m.Name == "Unload") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate)}); - if (efl_gfx_image_smooth_scale_get_static_delegate == null) - efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetSmoothScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_smooth_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_get_static_delegate)}); - if (efl_gfx_image_smooth_scale_set_static_delegate == null) - efl_gfx_image_smooth_scale_set_static_delegate = new efl_gfx_image_smooth_scale_set_delegate(smooth_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetSmoothScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_smooth_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_set_static_delegate)}); - if (efl_gfx_image_scale_type_get_static_delegate == null) - efl_gfx_image_scale_type_get_static_delegate = new efl_gfx_image_scale_type_get_delegate(scale_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetScaleType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_get_static_delegate)}); - if (efl_gfx_image_scale_type_set_static_delegate == null) - efl_gfx_image_scale_type_set_static_delegate = new efl_gfx_image_scale_type_set_delegate(scale_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetScaleType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate)}); - if (efl_gfx_image_ratio_get_static_delegate == null) - efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); - if (methods.FirstOrDefault(m => m.Name == "GetRatio") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_ratio_get_static_delegate)}); - if (efl_gfx_image_border_get_static_delegate == null) - efl_gfx_image_border_get_static_delegate = new efl_gfx_image_border_get_delegate(border_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_get_static_delegate)}); - if (efl_gfx_image_border_set_static_delegate == null) - efl_gfx_image_border_set_static_delegate = new efl_gfx_image_border_set_delegate(border_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_set_static_delegate)}); - if (efl_gfx_image_border_scale_get_static_delegate == null) - efl_gfx_image_border_scale_get_static_delegate = new efl_gfx_image_border_scale_get_delegate(border_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_get_static_delegate)}); - if (efl_gfx_image_border_scale_set_static_delegate == null) - efl_gfx_image_border_scale_set_static_delegate = new efl_gfx_image_border_scale_set_delegate(border_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorderScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_set_static_delegate)}); - if (efl_gfx_image_border_center_fill_get_static_delegate == null) - efl_gfx_image_border_center_fill_get_static_delegate = new efl_gfx_image_border_center_fill_get_delegate(border_center_fill_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderCenterFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_center_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_get_static_delegate)}); - if (efl_gfx_image_border_center_fill_set_static_delegate == null) - efl_gfx_image_border_center_fill_set_static_delegate = new efl_gfx_image_border_center_fill_set_delegate(border_center_fill_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorderCenterFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_center_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_set_static_delegate)}); - if (efl_gfx_image_size_get_static_delegate == null) - efl_gfx_image_size_get_static_delegate = new efl_gfx_image_size_get_delegate(image_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_size_get_static_delegate)}); - if (efl_gfx_image_content_hint_get_static_delegate == null) - efl_gfx_image_content_hint_get_static_delegate = new efl_gfx_image_content_hint_get_delegate(content_hint_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_content_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_get_static_delegate)}); - if (efl_gfx_image_content_hint_set_static_delegate == null) - efl_gfx_image_content_hint_set_static_delegate = new efl_gfx_image_content_hint_set_delegate(content_hint_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_content_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_set_static_delegate)}); - if (efl_gfx_image_scale_hint_get_static_delegate == null) - efl_gfx_image_scale_hint_get_static_delegate = new efl_gfx_image_scale_hint_get_delegate(scale_hint_get); - if (methods.FirstOrDefault(m => m.Name == "GetScaleHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_get_static_delegate)}); - if (efl_gfx_image_scale_hint_set_static_delegate == null) - efl_gfx_image_scale_hint_set_static_delegate = new efl_gfx_image_scale_hint_set_delegate(scale_hint_set); - if (methods.FirstOrDefault(m => m.Name == "SetScaleHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_set_static_delegate)}); - if (efl_gfx_image_load_error_get_static_delegate == null) - efl_gfx_image_load_error_get_static_delegate = new efl_gfx_image_load_error_get_delegate(image_load_error_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageLoadError") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_error_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_size_get_static_delegate == null) - efl_gfx_image_load_controller_load_size_get_static_delegate = new efl_gfx_image_load_controller_load_size_get_delegate(load_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_size_set_static_delegate == null) - efl_gfx_image_load_controller_load_size_set_static_delegate = new efl_gfx_image_load_controller_load_size_set_delegate(load_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_dpi_get_static_delegate == null) - efl_gfx_image_load_controller_load_dpi_get_static_delegate = new efl_gfx_image_load_controller_load_dpi_get_delegate(load_dpi_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadDpi") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_dpi_set_static_delegate == null) - efl_gfx_image_load_controller_load_dpi_set_static_delegate = new efl_gfx_image_load_controller_load_dpi_set_delegate(load_dpi_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadDpi") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_dpi_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_support_get_static_delegate == null) - efl_gfx_image_load_controller_load_region_support_get_static_delegate = new efl_gfx_image_load_controller_load_region_support_get_delegate(load_region_support_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadRegionSupport") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_support_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_support_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_get_static_delegate == null) - efl_gfx_image_load_controller_load_region_get_static_delegate = new efl_gfx_image_load_controller_load_region_get_delegate(load_region_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_set_static_delegate == null) - efl_gfx_image_load_controller_load_region_set_static_delegate = new efl_gfx_image_load_controller_load_region_set_delegate(load_region_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_orientation_get_static_delegate == null) - efl_gfx_image_load_controller_load_orientation_get_static_delegate = new efl_gfx_image_load_controller_load_orientation_get_delegate(load_orientation_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_orientation_set_static_delegate == null) - efl_gfx_image_load_controller_load_orientation_set_static_delegate = new efl_gfx_image_load_controller_load_orientation_set_delegate(load_orientation_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_scale_down_get_static_delegate == null) - efl_gfx_image_load_controller_load_scale_down_get_static_delegate = new efl_gfx_image_load_controller_load_scale_down_get_delegate(load_scale_down_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadScaleDown") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_scale_down_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_scale_down_set_static_delegate == null) - efl_gfx_image_load_controller_load_scale_down_set_static_delegate = new efl_gfx_image_load_controller_load_scale_down_set_delegate(load_scale_down_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadScaleDown") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_scale_down_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_skip_header_get_static_delegate == null) - efl_gfx_image_load_controller_load_skip_header_get_static_delegate = new efl_gfx_image_load_controller_load_skip_header_get_delegate(load_skip_header_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadSkipHeader") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_skip_header_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_skip_header_set_static_delegate == null) - efl_gfx_image_load_controller_load_skip_header_set_static_delegate = new efl_gfx_image_load_controller_load_skip_header_set_delegate(load_skip_header_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadSkipHeader") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_skip_header_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_async_start_static_delegate == null) - efl_gfx_image_load_controller_load_async_start_static_delegate = new efl_gfx_image_load_controller_load_async_start_delegate(load_async_start); - if (methods.FirstOrDefault(m => m.Name == "LoadAsyncStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_async_start"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_start_static_delegate)}); - if (efl_gfx_image_load_controller_load_async_cancel_static_delegate == null) - efl_gfx_image_load_controller_load_async_cancel_static_delegate = new efl_gfx_image_load_controller_load_async_cancel_delegate(load_async_cancel); - if (methods.FirstOrDefault(m => m.Name == "LoadAsyncCancel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_async_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_cancel_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Bg.efl_ui_bg_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Bg.efl_ui_bg_class_get(); - } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_file_mmap_get_static_delegate == null) + { + efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) }); + } - private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_mmap_set_static_delegate == null) + { + efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) }); + } - public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_get"); - private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_mmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.File _ret_var = default(Eina.File); - try { - _ret_var = ((Bg)wrapper).GetMmap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_get_static_delegate == null) + { + efl_file_get_static_delegate = new efl_file_get_delegate(file_get); } - return _ret_var; - } else { - return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) }); + } - private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + if (efl_file_set_static_delegate == null) + { + efl_file_set_static_delegate = new efl_file_set_delegate(file_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) }); + } - public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); - public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_set"); - private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) - { - Eina.Log.Debug("function efl_file_mmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Bg)wrapper).SetMmap( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_key_get_static_delegate == null) + { + efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); } - return _ret_var; - } else { - return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_key_set_static_delegate == null) + { + efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_get"); - private static System.String file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Bg)wrapper).GetFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_loaded_get_static_delegate == null) + { + efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); } - return _ret_var; - } else { - return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_get_delegate efl_file_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) }); + } - private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + if (efl_file_load_static_delegate == null) + { + efl_file_load_static_delegate = new efl_file_load_delegate(load); + } + if (methods.FirstOrDefault(m => m.Name == "Load") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) }); + } - public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_set"); - private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) - { - Eina.Log.Debug("function efl_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Bg)wrapper).SetFile( file); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_unload_static_delegate == null) + { + efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); } - return _ret_var; - } else { - return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); - } - } - private static efl_file_set_delegate efl_file_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Unload") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_smooth_scale_get_static_delegate == null) + { + efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Bg)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_smooth_scale_set_static_delegate == null) + { + efl_gfx_image_smooth_scale_set_static_delegate = new efl_gfx_image_smooth_scale_set_delegate(smooth_scale_set); } - return _ret_var; - } else { - return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_set_static_delegate) }); + } - private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + if (efl_gfx_image_scale_type_get_static_delegate == null) + { + efl_gfx_image_scale_type_get_static_delegate = new efl_gfx_image_scale_type_get_delegate(scale_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_get_static_delegate) }); + } - public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_file_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetKey( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); - } - } - private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + if (efl_gfx_image_scale_type_set_static_delegate == null) + { + efl_gfx_image_scale_type_set_static_delegate = new efl_gfx_image_scale_type_set_delegate(scale_type_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_ratio_get_static_delegate == null) + { + efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRatio") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_ratio_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_loaded_get"); - private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_loaded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Bg)wrapper).GetLoaded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_border_get_static_delegate == null) + { + efl_gfx_image_border_get_static_delegate = new efl_gfx_image_border_get_delegate(border_get); } - return _ret_var; - } else { - return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_get_static_delegate) }); + } - private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_border_set_static_delegate == null) + { + efl_gfx_image_border_set_static_delegate = new efl_gfx_image_border_set_delegate(border_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_set_static_delegate) }); + } - public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_load"); - private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_load was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Bg)wrapper).Load(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_border_scale_get_static_delegate == null) + { + efl_gfx_image_border_scale_get_static_delegate = new efl_gfx_image_border_scale_get_delegate(border_scale_get); } - return _ret_var; - } else { - return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_load_delegate efl_file_load_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_get_static_delegate) }); + } - private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_border_scale_set_static_delegate == null) + { + efl_gfx_image_border_scale_set_static_delegate = new efl_gfx_image_border_scale_set_delegate(border_scale_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_set_static_delegate) }); + } - public delegate void efl_file_unload_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_unload"); - private static void unload(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_unload was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).Unload(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_unload_delegate efl_file_unload_static_delegate; + if (efl_gfx_image_border_center_fill_get_static_delegate == null) + { + efl_gfx_image_border_center_fill_get_static_delegate = new efl_gfx_image_border_center_fill_get_delegate(border_center_fill_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_border_center_fill_set_static_delegate == null) + { + efl_gfx_image_border_center_fill_set_static_delegate = new efl_gfx_image_border_center_fill_set_delegate(border_center_fill_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_smooth_scale_get"); - private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Bg)wrapper).GetSmoothScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_size_get_static_delegate == null) + { + efl_gfx_image_size_get_static_delegate = new efl_gfx_image_size_get_delegate(image_size_get); } - return _ret_var; - } else { - return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetImageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_size_get_static_delegate) }); + } - private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + if (efl_gfx_image_content_hint_get_static_delegate == null) + { + efl_gfx_image_content_hint_get_static_delegate = new efl_gfx_image_content_hint_get_delegate(content_hint_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_get_static_delegate) }); + } - public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_smooth_scale_set"); - private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) - { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetSmoothScale( smooth_scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); - } - } - private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; + if (efl_gfx_image_content_hint_set_static_delegate == null) + { + efl_gfx_image_content_hint_set_static_delegate = new efl_gfx_image_content_hint_set_delegate(content_hint_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_set_static_delegate) }); + } - private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_scale_hint_get_static_delegate == null) + { + efl_gfx_image_scale_hint_get_static_delegate = new efl_gfx_image_scale_hint_get_delegate(scale_hint_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_get_static_delegate) }); + } - public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_type_get"); - private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); - try { - _ret_var = ((Bg)wrapper).GetScaleType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_scale_hint_set_static_delegate == null) + { + efl_gfx_image_scale_hint_set_static_delegate = new efl_gfx_image_scale_hint_set_delegate(scale_hint_set); } - return _ret_var; - } else { - return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_set_static_delegate) }); + } - private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + if (efl_gfx_image_load_error_get_static_delegate == null) + { + efl_gfx_image_load_error_get_static_delegate = new efl_gfx_image_load_error_get_delegate(image_load_error_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetImageLoadError") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_error_get_static_delegate) }); + } - public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_type_set"); - private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) - { - Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetScaleType( scale_type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); - } - } - private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + if (efl_gfx_image_load_controller_load_size_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_size_get_static_delegate = new efl_gfx_image_load_controller_load_size_get_delegate(load_size_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoadSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_get_static_delegate) }); + } - private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_load_controller_load_size_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_size_set_static_delegate = new efl_gfx_image_load_controller_load_size_set_delegate(load_size_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetLoadSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_set_static_delegate) }); + } - public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_ratio_get"); - private static double ratio_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Bg)wrapper).GetRatio(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_load_controller_load_dpi_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_dpi_get_static_delegate = new efl_gfx_image_load_controller_load_dpi_get_delegate(load_dpi_get); } - return _ret_var; - } else { - return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoadDpi") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_get_static_delegate) }); + } - private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + if (efl_gfx_image_load_controller_load_dpi_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_dpi_set_static_delegate = new efl_gfx_image_load_controller_load_dpi_set_delegate(load_dpi_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetLoadDpi") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_dpi_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_set_static_delegate) }); + } - public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_get"); - private static void border_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) - { - Eina.Log.Debug("function efl_gfx_image_border_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(int); r = default(int); t = default(int); b = default(int); - try { - ((Bg)wrapper).GetBorder( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); - } - } - private static efl_gfx_image_border_get_delegate efl_gfx_image_border_get_static_delegate; + if (efl_gfx_image_load_controller_load_region_support_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_support_get_static_delegate = new efl_gfx_image_load_controller_load_region_support_get_delegate(load_region_support_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoadRegionSupport") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_support_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_support_get_static_delegate) }); + } - private delegate void efl_gfx_image_border_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + if (efl_gfx_image_load_controller_load_region_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_get_static_delegate = new efl_gfx_image_load_controller_load_region_get_delegate(load_region_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoadRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_get_static_delegate) }); + } - public delegate void efl_gfx_image_border_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_set"); - private static void border_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) - { - Eina.Log.Debug("function efl_gfx_image_border_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetBorder( l, r, t, b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); - } - } - private static efl_gfx_image_border_set_delegate efl_gfx_image_border_set_static_delegate; + if (efl_gfx_image_load_controller_load_region_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_set_static_delegate = new efl_gfx_image_load_controller_load_region_set_delegate(load_region_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetLoadRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_set_static_delegate) }); + } - private delegate double efl_gfx_image_border_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_load_controller_load_orientation_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_orientation_get_static_delegate = new efl_gfx_image_load_controller_load_orientation_get_delegate(load_orientation_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoadOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_get_static_delegate) }); + } - public delegate double efl_gfx_image_border_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_scale_get"); - private static double border_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_border_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Bg)wrapper).GetBorderScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_load_controller_load_orientation_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_orientation_set_static_delegate = new efl_gfx_image_load_controller_load_orientation_set_delegate(load_orientation_set); } - return _ret_var; - } else { - return efl_gfx_image_border_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_border_scale_get_delegate efl_gfx_image_border_scale_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetLoadOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_set_static_delegate) }); + } - private delegate void efl_gfx_image_border_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + if (efl_gfx_image_load_controller_load_scale_down_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_scale_down_get_static_delegate = new efl_gfx_image_load_controller_load_scale_down_get_delegate(load_scale_down_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLoadScaleDown") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_scale_down_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_get_static_delegate) }); + } - public delegate void efl_gfx_image_border_scale_set_api_delegate(System.IntPtr obj, double scale); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_scale_set"); - private static void border_scale_set(System.IntPtr obj, System.IntPtr pd, double scale) - { - Eina.Log.Debug("function efl_gfx_image_border_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetBorderScale( scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); - } - } - private static efl_gfx_image_border_scale_set_delegate efl_gfx_image_border_scale_set_static_delegate; + if (efl_gfx_image_load_controller_load_scale_down_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_scale_down_set_static_delegate = new efl_gfx_image_load_controller_load_scale_down_set_delegate(load_scale_down_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLoadScaleDown") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_scale_down_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_set_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_skip_header_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_skip_header_get_static_delegate = new efl_gfx_image_load_controller_load_skip_header_get_delegate(load_skip_header_get); + } - private delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLoadSkipHeader") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_skip_header_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_get_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_skip_header_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_skip_header_set_static_delegate = new efl_gfx_image_load_controller_load_skip_header_set_delegate(load_skip_header_set); + } - public delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_center_fill_get"); - private static Efl.Gfx.BorderFillMode border_center_fill_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_border_center_fill_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.BorderFillMode _ret_var = default(Efl.Gfx.BorderFillMode); - try { - _ret_var = ((Bg)wrapper).GetBorderCenterFill(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLoadSkipHeader") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_skip_header_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_set_static_delegate) }); } - return _ret_var; - } else { - return efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_border_center_fill_get_delegate efl_gfx_image_border_center_fill_get_static_delegate; + if (efl_gfx_image_load_controller_load_async_start_static_delegate == null) + { + efl_gfx_image_load_controller_load_async_start_static_delegate = new efl_gfx_image_load_controller_load_async_start_delegate(load_async_start); + } - private delegate void efl_gfx_image_border_center_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill); + if (methods.FirstOrDefault(m => m.Name == "LoadAsyncStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_async_start"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_start_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_async_cancel_static_delegate == null) + { + efl_gfx_image_load_controller_load_async_cancel_static_delegate = new efl_gfx_image_load_controller_load_async_cancel_delegate(load_async_cancel); + } - public delegate void efl_gfx_image_border_center_fill_set_api_delegate(System.IntPtr obj, Efl.Gfx.BorderFillMode fill); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_center_fill_set"); - private static void border_center_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill) - { - Eina.Log.Debug("function efl_gfx_image_border_center_fill_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetBorderCenterFill( fill); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); + if (methods.FirstOrDefault(m => m.Name == "LoadAsyncCancel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_async_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_cancel_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Bg.efl_ui_bg_class_get(); } - } - private static efl_gfx_image_border_center_fill_set_delegate efl_gfx_image_border_center_fill_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_get"); + + private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_mmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.File _ret_var = default(Eina.File); + try + { + _ret_var = ((Bg)wrapper).GetMmap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + + + private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + + + public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_set"); + + private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) + { + Eina.Log.Debug("function efl_file_mmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Bg)wrapper).SetMmap(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_size_get"); - private static Eina.Size2D.NativeStruct image_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Bg)wrapper).GetImageSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } } - } - private static efl_gfx_image_size_get_delegate efl_gfx_image_size_get_static_delegate; + private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_get"); + + private static System.String file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Bg)wrapper).GetFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_file_get_delegate efl_file_get_static_delegate; + + + private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + + public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_set"); + + private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) + { + Eina.Log.Debug("function efl_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Bg)wrapper).SetFile(file); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_content_hint_get"); - private static Efl.Gfx.ImageContentHint content_hint_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_content_hint_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageContentHint _ret_var = default(Efl.Gfx.ImageContentHint); - try { - _ret_var = ((Bg)wrapper).GetContentHint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + return _ret_var; + + } + else + { + return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); } + } + + private static efl_file_set_delegate efl_file_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_get"); + + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Bg)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_image_content_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_content_hint_get_delegate efl_gfx_image_content_hint_get_static_delegate; + private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + + + private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_file_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetKey(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } + } - private delegate void efl_gfx_image_content_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint); + private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_loaded_get"); + + private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_loaded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Bg)wrapper).GetLoaded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_image_content_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageContentHint hint); - public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_content_hint_set"); - private static void content_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint) - { - Eina.Log.Debug("function efl_gfx_image_content_hint_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetContentHint( hint); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_content_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } + else + { + return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_content_hint_set_delegate efl_gfx_image_content_hint_set_static_delegate; + private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + + + private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_load"); + + private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_load was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Bg)wrapper).Load(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_hint_get"); - private static Efl.Gfx.ImageScaleHint scale_hint_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_scale_hint_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageScaleHint _ret_var = default(Efl.Gfx.ImageScaleHint); - try { - _ret_var = ((Bg)wrapper).GetScaleHint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_file_load_delegate efl_file_load_static_delegate; + + + private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_file_unload_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_unload"); + + private static void unload(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_unload was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).Unload(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_gfx_image_scale_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_scale_hint_get_delegate efl_gfx_image_scale_hint_get_static_delegate; + private static efl_file_unload_delegate efl_file_unload_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_get"); + + private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Bg)wrapper).GetSmoothScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_scale_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint); + return _ret_var; + } + else + { + return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_image_scale_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleHint hint); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_hint_set"); - private static void scale_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint) - { - Eina.Log.Debug("function efl_gfx_image_scale_hint_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetScaleHint( hint); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_scale_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; + + + private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + + public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_set"); + + private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetSmoothScale(smooth_scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); + } } - } - private static efl_gfx_image_scale_hint_set_delegate efl_gfx_image_scale_hint_set_static_delegate; + private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; + + + private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_get"); + + private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); + try + { + _ret_var = ((Bg)wrapper).GetScaleType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Error efl_gfx_image_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Error efl_gfx_image_load_error_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_error_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_error_get"); - private static Eina.Error image_load_error_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_error_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Bg)wrapper).GetImageLoadError(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; + + + private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + + + public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_set"); + + private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetScaleType(scale_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); } - return _ret_var; - } else { - return efl_gfx_image_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_load_error_get_delegate efl_gfx_image_load_error_get_static_delegate; + private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + + + private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_ratio_get"); + + private static double ratio_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Bg)wrapper).GetRatio(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_size_get"); - private static Eina.Size2D.NativeStruct load_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Bg)wrapper).GetLoadSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + + + private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + + public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_get"); + + private static void border_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_image_border_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((Bg)wrapper).GetBorder(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_load_controller_load_size_get_delegate efl_gfx_image_load_controller_load_size_get_static_delegate; + private static efl_gfx_image_border_get_delegate efl_gfx_image_border_get_static_delegate; + + + private delegate void efl_gfx_image_border_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + + + public delegate void efl_gfx_image_border_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_set"); + + private static void border_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) + { + Eina.Log.Debug("function efl_gfx_image_border_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetBorder(l, r, t, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); + } + } - private delegate void efl_gfx_image_load_controller_load_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + private static efl_gfx_image_border_set_delegate efl_gfx_image_border_set_static_delegate; + + + private delegate double efl_gfx_image_border_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_border_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_get"); + + private static double border_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Bg)wrapper).GetBorderScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_image_load_controller_load_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_size_set"); - private static void load_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; - - try { - ((Bg)wrapper).SetLoadSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } + else + { + return efl_gfx_image_border_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_size_set_delegate efl_gfx_image_load_controller_load_size_set_static_delegate; + private static efl_gfx_image_border_scale_get_delegate efl_gfx_image_border_scale_get_static_delegate; + + + private delegate void efl_gfx_image_border_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + + public delegate void efl_gfx_image_border_scale_set_api_delegate(System.IntPtr obj, double scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_set"); + + private static void border_scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetBorderScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + } + } - private delegate double efl_gfx_image_load_controller_load_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_border_scale_set_delegate efl_gfx_image_border_scale_set_static_delegate; + + + private delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_get"); + + private static Efl.Gfx.BorderFillMode border_center_fill_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.BorderFillMode _ret_var = default(Efl.Gfx.BorderFillMode); + try + { + _ret_var = ((Bg)wrapper).GetBorderCenterFill(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_gfx_image_load_controller_load_dpi_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_dpi_get"); - private static double load_dpi_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Bg)wrapper).GetLoadDpi(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_dpi_get_delegate efl_gfx_image_load_controller_load_dpi_get_static_delegate; + private static efl_gfx_image_border_center_fill_get_delegate efl_gfx_image_border_center_fill_get_static_delegate; + + + private delegate void efl_gfx_image_border_center_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill); + + + public delegate void efl_gfx_image_border_center_fill_set_api_delegate(System.IntPtr obj, Efl.Gfx.BorderFillMode fill); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_set"); + + private static void border_center_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetBorderCenterFill(fill); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_load_controller_load_dpi_set_delegate(System.IntPtr obj, System.IntPtr pd, double dpi); + + } + else + { + efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); + } + } + private static efl_gfx_image_border_center_fill_set_delegate efl_gfx_image_border_center_fill_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_size_get"); + + private static Eina.Size2D.NativeStruct image_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Bg)wrapper).GetImageSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_image_load_controller_load_dpi_set_api_delegate(System.IntPtr obj, double dpi); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_dpi_set"); - private static void load_dpi_set(System.IntPtr obj, System.IntPtr pd, double dpi) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetLoadDpi( dpi); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dpi); + return _ret_var; + + } + else + { + return efl_gfx_image_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_dpi_set_delegate efl_gfx_image_load_controller_load_dpi_set_static_delegate; + private static efl_gfx_image_size_get_delegate efl_gfx_image_size_get_static_delegate; + + + private delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_get"); + + private static Efl.Gfx.ImageContentHint content_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageContentHint _ret_var = default(Efl.Gfx.ImageContentHint); + try + { + _ret_var = ((Bg)wrapper).GetContentHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_region_support_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_image_content_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_region_support_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_support_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_support_get"); - private static bool load_region_support_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_support_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Bg)wrapper).GetLoadRegionSupport(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_image_content_hint_get_delegate efl_gfx_image_content_hint_get_static_delegate; + + + private delegate void efl_gfx_image_content_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint); + + + public delegate void efl_gfx_image_content_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageContentHint hint); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_set"); + + private static void content_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetContentHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_image_content_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } + } + + private static efl_gfx_image_content_hint_set_delegate efl_gfx_image_content_hint_set_static_delegate; + + + private delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_get"); + + private static Efl.Gfx.ImageScaleHint scale_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageScaleHint _ret_var = default(Efl.Gfx.ImageScaleHint); + try + { + _ret_var = ((Bg)wrapper).GetScaleHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_scale_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_region_support_get_delegate efl_gfx_image_load_controller_load_region_support_get_static_delegate; + private static efl_gfx_image_scale_hint_get_delegate efl_gfx_image_scale_hint_get_static_delegate; + + + private delegate void efl_gfx_image_scale_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint); + + + public delegate void efl_gfx_image_scale_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleHint hint); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_set"); + + private static void scale_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetScaleHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_gfx_image_scale_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } + } + private static efl_gfx_image_scale_hint_set_delegate efl_gfx_image_scale_hint_set_static_delegate; + + + private delegate Eina.Error efl_gfx_image_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_gfx_image_load_error_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_error_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_error_get"); + + private static Eina.Error image_load_error_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_error_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Bg)wrapper).GetImageLoadError(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_get"); - private static Eina.Rect.NativeStruct load_region_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Bg)wrapper).GetLoadRegion(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_gfx_image_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_load_error_get_delegate efl_gfx_image_load_error_get_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_size_get"); + + private static Eina.Size2D.NativeStruct load_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Bg)wrapper).GetLoadSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_region_get_delegate efl_gfx_image_load_controller_load_region_get_static_delegate; + private static efl_gfx_image_load_controller_load_size_get_delegate efl_gfx_image_load_controller_load_size_get_static_delegate; - private delegate void efl_gfx_image_load_controller_load_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region); + + private delegate void efl_gfx_image_load_controller_load_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_gfx_image_load_controller_load_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public delegate void efl_gfx_image_load_controller_load_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_set"); - private static void load_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_region = region; + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_size_set"); + + private static void load_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; - try { - ((Bg)wrapper).SetLoadRegion( _in_region); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region); - } - } - private static efl_gfx_image_load_controller_load_region_set_delegate efl_gfx_image_load_controller_load_region_set_static_delegate; + try + { + ((Bg)wrapper).SetLoadSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_load_controller_load_size_set_delegate efl_gfx_image_load_controller_load_size_set_static_delegate; + + + private delegate double efl_gfx_image_load_controller_load_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_load_controller_load_dpi_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_dpi_get"); + + private static double load_dpi_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Bg)wrapper).GetLoadDpi(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_orientation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_orientation_get"); - private static bool load_orientation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Bg)wrapper).GetLoadOrientation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_orientation_get_delegate efl_gfx_image_load_controller_load_orientation_get_static_delegate; + private static efl_gfx_image_load_controller_load_dpi_get_delegate efl_gfx_image_load_controller_load_dpi_get_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_dpi_set_delegate(System.IntPtr obj, System.IntPtr pd, double dpi); + + + public delegate void efl_gfx_image_load_controller_load_dpi_set_api_delegate(System.IntPtr obj, double dpi); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_dpi_set"); + + private static void load_dpi_set(System.IntPtr obj, System.IntPtr pd, double dpi) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetLoadDpi(dpi); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_load_controller_load_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + + } + else + { + efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dpi); + } + } + private static efl_gfx_image_load_controller_load_dpi_set_delegate efl_gfx_image_load_controller_load_dpi_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_region_support_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_region_support_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_support_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_support_get"); + + private static bool load_region_support_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_support_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Bg)wrapper).GetLoadRegionSupport(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_image_load_controller_load_orientation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_orientation_set"); - private static void load_orientation_set(System.IntPtr obj, System.IntPtr pd, bool enable) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetLoadOrientation( enable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); - } - } - private static efl_gfx_image_load_controller_load_orientation_set_delegate efl_gfx_image_load_controller_load_orientation_set_static_delegate; + return _ret_var; + } + else + { + return efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate int efl_gfx_image_load_controller_load_scale_down_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_load_controller_load_region_support_get_delegate efl_gfx_image_load_controller_load_region_support_get_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_get"); + + private static Eina.Rect.NativeStruct load_region_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Bg)wrapper).GetLoadRegion(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_gfx_image_load_controller_load_scale_down_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_scale_down_get"); - private static int load_scale_down_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Bg)wrapper).GetLoadScaleDown(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_scale_down_get_delegate efl_gfx_image_load_controller_load_scale_down_get_static_delegate; + private static efl_gfx_image_load_controller_load_region_get_delegate efl_gfx_image_load_controller_load_region_get_static_delegate; - private delegate void efl_gfx_image_load_controller_load_scale_down_set_delegate(System.IntPtr obj, System.IntPtr pd, int div); + + private delegate void efl_gfx_image_load_controller_load_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region); + + public delegate void efl_gfx_image_load_controller_load_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region); - public delegate void efl_gfx_image_load_controller_load_scale_down_set_api_delegate(System.IntPtr obj, int div); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_scale_down_set"); - private static void load_scale_down_set(System.IntPtr obj, System.IntPtr pd, int div) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetLoadScaleDown( div); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), div); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_set"); + + private static void load_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_region = region; + + try + { + ((Bg)wrapper).SetLoadRegion(_in_region); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region); + } } - } - private static efl_gfx_image_load_controller_load_scale_down_set_delegate efl_gfx_image_load_controller_load_scale_down_set_static_delegate; + private static efl_gfx_image_load_controller_load_region_set_delegate efl_gfx_image_load_controller_load_region_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_orientation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_orientation_get"); + + private static bool load_orientation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Bg)wrapper).GetLoadOrientation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_skip_header_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_skip_header_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_skip_header_get"); - private static bool load_skip_header_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Bg)wrapper).GetLoadSkipHeader(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_image_load_controller_load_orientation_get_delegate efl_gfx_image_load_controller_load_orientation_get_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + + + public delegate void efl_gfx_image_load_controller_load_orientation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_orientation_set"); + + private static void load_orientation_set(System.IntPtr obj, System.IntPtr pd, bool enable) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetLoadOrientation(enable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_load_controller_load_skip_header_get_delegate efl_gfx_image_load_controller_load_skip_header_get_static_delegate; + private static efl_gfx_image_load_controller_load_orientation_set_delegate efl_gfx_image_load_controller_load_orientation_set_static_delegate; + + + private delegate int efl_gfx_image_load_controller_load_scale_down_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_gfx_image_load_controller_load_scale_down_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_scale_down_get"); + + private static int load_scale_down_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Bg)wrapper).GetLoadScaleDown(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_gfx_image_load_controller_load_skip_header_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool skip); + } + else + { + return efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_gfx_image_load_controller_load_scale_down_get_delegate efl_gfx_image_load_controller_load_scale_down_get_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_scale_down_set_delegate(System.IntPtr obj, System.IntPtr pd, int div); + + + public delegate void efl_gfx_image_load_controller_load_scale_down_set_api_delegate(System.IntPtr obj, int div); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_scale_down_set"); + + private static void load_scale_down_set(System.IntPtr obj, System.IntPtr pd, int div) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetLoadScaleDown(div); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_image_load_controller_load_skip_header_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool skip); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_skip_header_set"); - private static void load_skip_header_set(System.IntPtr obj, System.IntPtr pd, bool skip) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).SetLoadSkipHeader( skip); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), skip); + + } + else + { + efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), div); + } } - } - private static efl_gfx_image_load_controller_load_skip_header_set_delegate efl_gfx_image_load_controller_load_skip_header_set_static_delegate; + private static efl_gfx_image_load_controller_load_scale_down_set_delegate efl_gfx_image_load_controller_load_scale_down_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_skip_header_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_skip_header_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_skip_header_get"); + + private static bool load_skip_header_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Bg)wrapper).GetLoadSkipHeader(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_load_controller_load_async_start_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + + } + else + { + return efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_gfx_image_load_controller_load_skip_header_get_delegate efl_gfx_image_load_controller_load_skip_header_get_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_skip_header_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool skip); + + + public delegate void efl_gfx_image_load_controller_load_skip_header_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool skip); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_skip_header_set"); + + private static void load_skip_header_set(System.IntPtr obj, System.IntPtr pd, bool skip) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).SetLoadSkipHeader(skip); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_image_load_controller_load_async_start_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_async_start"); - private static void load_async_start(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Bg)wrapper).LoadAsyncStart(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), skip); + } } - } - private static efl_gfx_image_load_controller_load_async_start_delegate efl_gfx_image_load_controller_load_async_start_static_delegate; + private static efl_gfx_image_load_controller_load_skip_header_set_delegate efl_gfx_image_load_controller_load_skip_header_set_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_async_start_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_image_load_controller_load_async_start_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_async_start"); + + private static void load_async_start(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).LoadAsyncStart(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_image_load_controller_load_async_cancel_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_load_controller_load_async_start_delegate efl_gfx_image_load_controller_load_async_start_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_async_cancel_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_image_load_controller_load_async_cancel_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_cancel_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_async_cancel"); + + private static void load_async_cancel(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_cancel was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Bg)wrapper).LoadAsyncCancel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_gfx_image_load_controller_load_async_cancel_delegate efl_gfx_image_load_controller_load_async_cancel_static_delegate; - public delegate void efl_gfx_image_load_controller_load_async_cancel_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_cancel_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_async_cancel"); - private static void load_async_cancel(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_cancel was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Bg)wrapper).LoadAsyncCancel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_load_controller_load_async_cancel_delegate efl_gfx_image_load_controller_load_async_cancel_static_delegate; + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_box.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_box.eo.cs index 0a153f9..88209c8 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_box.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_box.eo.cs @@ -3,229 +3,281 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// The box widget. /// A box arranges objects in a linear fashion, governed by a layout function that defines the details of this arrangement. /// /// By default, the box will use an internal function to set the layout to a single row, either vertical or horizontal. This layout is affected by a number of parameters. The values given by and and the hints set to each object in the box. /// /// FIXME: THIS CLASS NEEDS GOOD UP TO DATE DOCUMENTATION. LEGACY BOX AND UI BOX BEHAVE SLIGHTLY DIFFERENTLY AND USE VASTLY DIFFERENT APIS. -[BoxNativeInherit] +[Efl.Ui.Box.NativeMethods] public class Box : Efl.Ui.Widget, Efl.Eo.IWrapper,Efl.IContainer,Efl.IPack,Efl.IPackLayout,Efl.IPackLinear,Efl.Ui.IDirection { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Box)) - return Efl.Ui.BoxNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Box)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_box_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Box(Efl.Object parent - , System.String style = null) : - base(efl_ui_box_class_get(), typeof(Box), parent) + , System.String style = null) : base(efl_ui_box_class_get(), typeof(Box), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Box(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Box(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Box(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentAddedEvtKey = new object(); + /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LayoutUpdatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after the layout was updated. public event EventHandler LayoutUpdatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.AddHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (RemoveNativeEventHandler(key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.RemoveHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LayoutUpdatedEvt. - public void On_LayoutUpdatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LayoutUpdatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LayoutUpdatedEvt_delegate; - private void on_LayoutUpdatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLayoutUpdatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_LayoutUpdatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); - evt_LayoutUpdatedEvt_delegate = new Efl.EventCb(on_LayoutUpdatedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Control homogeneous mode. /// This will enable the homogeneous mode where children are of the same weight and of the same min size which is determined by maximum min size of children. /// true if the box is homogeneous, false otherwise virtual public bool GetHomogeneous() { - var _ret_var = Efl.Ui.BoxNativeInherit.efl_ui_box_homogeneous_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Box.NativeMethods.efl_ui_box_homogeneous_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control homogeneous mode. /// This will enable the homogeneous mode where children are of the same weight and of the same min size which is determined by maximum min size of children. /// true if the box is homogeneous, false otherwise - /// - virtual public void SetHomogeneous( bool homogeneous) { - Efl.Ui.BoxNativeInherit.efl_ui_box_homogeneous_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), homogeneous); + virtual public void SetHomogeneous(bool homogeneous) { + Efl.Ui.Box.NativeMethods.efl_ui_box_homogeneous_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),homogeneous); Eina.Error.RaiseIfUnhandledException(); } /// Begin iterating over this object's contents. /// (Since EFL 1.22) /// Iterator to object content virtual public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -233,48 +285,44 @@ private static object LayoutUpdatedEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements virtual public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_horiz, out align_vert); + virtual public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert); + virtual public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pad_horiz, out pad_vert, out scalable); + virtual public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable); + virtual public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise virtual public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -282,15 +330,15 @@ private static object LayoutUpdatedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise virtual public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - virtual public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -300,46 +348,44 @@ private static object LayoutUpdatedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - virtual public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests EFL to call the method on this object. /// This may be called asynchronously. - /// virtual public void LayoutRequest() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Implementation of this container's layout algorithm. /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas. /// /// This can be overriden to implement custom layout behaviors. - /// virtual public void UpdateLayout() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Prepend an object at the beginning of this container. /// This is the same as (subobj, 0). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack. - /// false if subobj could not be packed - virtual public bool PackBegin( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// Item to pack at the beginning. + /// false if subobj could not be packed. + virtual public bool PackBegin(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Append object at the end of this container. + /// Append item at the end of this container. /// This is the same as (subobj, -1). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Item to pack at the end. - /// false if subobj could not be packed - virtual public bool PackEnd( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// false if subobj could not be packed. + virtual public bool PackEnd(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -348,8 +394,8 @@ private static object LayoutUpdatedEvtKey = new object(); /// Item to pack before existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -358,46 +404,54 @@ private static object LayoutUpdatedEvtKey = new object(); /// Item to pack after existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Inserts subobj at the specified index. - /// Valid range: -count to +count. -1 refers to the last element. Out of range indices will trigger an append. + /// Inserts subobj BEFORE the item at position index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack at given index. - /// A position. + /// Item to pack. + /// Index of item to insert BEFORE. Valid range is -count to (count-1). /// false if subobj could not be packed. - virtual public bool PackAt( Efl.Gfx.IEntity subobj, int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, index); + virtual public bool PackAt(Efl.Gfx.IEntity subobj, int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Content at a given index in this container. - /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1). - /// Index number + /// Content at a given index in this container. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will return the first item whereas index greater than count-1 will return the last item. + /// Index of the item to retrieve. Valid range is -count to (count-1). /// The object contained at the given index. - virtual public Efl.Gfx.IEntity GetPackContent( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity GetPackContent(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the index of a child in this container. /// An object contained in this pack. - /// -1 in case of failure, or the index of this item. - virtual public int GetPackIndex( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// -1 in case subobj is not a child of this object, or the index of this item in the range 0 to (count-1). + virtual public int GetPackIndex(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Pop out item at specified index. - /// Equivalent to unpack(content_at(index)). - /// Index number + /// Pop out (remove) the item at the specified index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will remove the first item whereas index greater than count-1 will remove the last item. + /// + /// Equivalent to ((index)). + /// Index of item to remove. Valid range is -count to (count-1). /// The child item if it could be removed. - virtual public Efl.Gfx.IEntity PackUnpackAt( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -407,7 +461,7 @@ private static object LayoutUpdatedEvtKey = new object(); /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. virtual public Efl.Ui.Dir GetDirection() { - var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -416,9 +470,8 @@ private static object LayoutUpdatedEvtKey = new object(); /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. - /// - virtual public void SetDirection( Efl.Ui.Dir dir) { - Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetDirection(Efl.Ui.Dir dir) { + Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// Control homogeneous mode. @@ -426,7 +479,7 @@ private static object LayoutUpdatedEvtKey = new object(); /// true if the box is homogeneous, false otherwise public bool Homogeneous { get { return GetHomogeneous(); } - set { SetHomogeneous( value); } + set { SetHomogeneous(value); } } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. @@ -435,717 +488,1137 @@ private static object LayoutUpdatedEvtKey = new object(); /// Direction of the widget. public Efl.Ui.Dir Direction { get { return GetDirection(); } - set { SetDirection( value); } + set { SetDirection(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Box.efl_ui_box_class_get(); } -} -public class BoxNativeInherit : Efl.Ui.WidgetNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Widget.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_box_homogeneous_get_static_delegate == null) - efl_ui_box_homogeneous_get_static_delegate = new efl_ui_box_homogeneous_get_delegate(homogeneous_get); - if (methods.FirstOrDefault(m => m.Name == "GetHomogeneous") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_box_homogeneous_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_box_homogeneous_get_static_delegate)}); - if (efl_ui_box_homogeneous_set_static_delegate == null) - efl_ui_box_homogeneous_set_static_delegate = new efl_ui_box_homogeneous_set_delegate(homogeneous_set); - if (methods.FirstOrDefault(m => m.Name == "SetHomogeneous") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_box_homogeneous_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_box_homogeneous_set_static_delegate)}); - if (efl_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - if (efl_pack_layout_request_static_delegate == null) - efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); - if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate)}); - if (efl_pack_layout_update_static_delegate == null) - efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate)}); - if (efl_pack_begin_static_delegate == null) - efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); - if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate)}); - if (efl_pack_end_static_delegate == null) - efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); - if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate)}); - if (efl_pack_before_static_delegate == null) - efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); - if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate)}); - if (efl_pack_after_static_delegate == null) - efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); - if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate)}); - if (efl_pack_at_static_delegate == null) - efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); - if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate)}); - if (efl_pack_content_get_static_delegate == null) - efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate)}); - if (efl_pack_index_get_static_delegate == null) - efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate)}); - if (efl_pack_unpack_at_static_delegate == null) - efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); - if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate)}); - if (efl_ui_direction_get_static_delegate == null) - efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)}); - if (efl_ui_direction_set_static_delegate == null) - efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Box.efl_ui_box_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Box.efl_ui_box_class_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_box_homogeneous_get_static_delegate == null) + { + efl_ui_box_homogeneous_get_static_delegate = new efl_ui_box_homogeneous_get_delegate(homogeneous_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_box_homogeneous_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetHomogeneous") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_box_homogeneous_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_box_homogeneous_get_static_delegate) }); + } + if (efl_ui_box_homogeneous_set_static_delegate == null) + { + efl_ui_box_homogeneous_set_static_delegate = new efl_ui_box_homogeneous_set_delegate(homogeneous_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_box_homogeneous_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_box_homogeneous_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_box_homogeneous_get"); - private static bool homogeneous_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_box_homogeneous_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Box)wrapper).GetHomogeneous(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetHomogeneous") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_box_homogeneous_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_box_homogeneous_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_box_homogeneous_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_box_homogeneous_get_delegate efl_ui_box_homogeneous_get_static_delegate; + if (efl_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } - private delegate void efl_ui_box_homogeneous_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool homogeneous); + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } - public delegate void efl_ui_box_homogeneous_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool homogeneous); - public static Efl.Eo.FunctionWrapper efl_ui_box_homogeneous_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_box_homogeneous_set"); - private static void homogeneous_set(System.IntPtr obj, System.IntPtr pd, bool homogeneous) - { - Eina.Log.Debug("function efl_ui_box_homogeneous_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Box)wrapper).SetHomogeneous( homogeneous); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_box_homogeneous_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), homogeneous); - } - } - private static efl_ui_box_homogeneous_set_delegate efl_ui_box_homogeneous_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); + } + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Box)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); + } - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); + } - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Box)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_count_delegate efl_content_count_static_delegate; + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((Box)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); + } + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Box)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); - } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); + } + if (efl_pack_layout_request_static_delegate == null) + { + efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); + } - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate) }); + } + if (efl_pack_layout_update_static_delegate == null) + { + efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); + } - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((Box)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); - } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate) }); + } + if (efl_pack_begin_static_delegate == null) + { + efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); + } + if (efl_pack_end_static_delegate == null) + { + efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Box)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); - } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); + } + if (efl_pack_before_static_delegate == null) + { + efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); + } + if (efl_pack_after_static_delegate == null) + { + efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Box)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + if (efl_pack_at_static_delegate == null) + { + efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); + } + if (efl_pack_content_get_static_delegate == null) + { + efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Box)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + if (efl_pack_index_get_static_delegate == null) + { + efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); + } + if (efl_pack_unpack_at_static_delegate == null) + { + efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Box)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + if (efl_ui_direction_get_static_delegate == null) + { + efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate) }); + } + if (efl_ui_direction_set_static_delegate == null) + { + efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Box)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + + descs.AddRange(base.GetEoOps(type)); + return descs; } - } - private static efl_pack_delegate efl_pack_static_delegate; + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Box.efl_ui_box_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_box_homogeneous_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_box_homogeneous_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_box_homogeneous_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_box_homogeneous_get"); + + private static bool homogeneous_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_box_homogeneous_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Box)wrapper).GetHomogeneous(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_ui_box_homogeneous_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_ui_box_homogeneous_get_delegate efl_ui_box_homogeneous_get_static_delegate; + + + private delegate void efl_ui_box_homogeneous_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool homogeneous); + + + public delegate void efl_ui_box_homogeneous_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool homogeneous); + + public static Efl.Eo.FunctionWrapper efl_ui_box_homogeneous_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_box_homogeneous_set"); + + private static void homogeneous_set(System.IntPtr obj, System.IntPtr pd, bool homogeneous) + { + Eina.Log.Debug("function efl_ui_box_homogeneous_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Box)wrapper).SetHomogeneous(homogeneous); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_request"); - private static void layout_request(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_request was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Box)wrapper).LayoutRequest(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_ui_box_homogeneous_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), homogeneous); + } } - } - private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; - - private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_box_homogeneous_set_delegate efl_ui_box_homogeneous_set_static_delegate; + + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Box)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_update"); - private static void layout_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Box)wrapper).UpdateLayout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Box)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_content_count_delegate efl_content_count_static_delegate; + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((Box)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); + } + } + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Box)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_begin"); - private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_begin was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Box)wrapper).PackBegin( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((Box)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); } - return _ret_var; - } else { - return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } - } - private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Box)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Box)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_end"); - private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Box)wrapper).PackEnd( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_end_delegate efl_pack_end_static_delegate; + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Box)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + return _ret_var; + } + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Box)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_before"); - private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_before was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Box)wrapper).PackBefore( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_before_delegate efl_pack_before_static_delegate; + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Box)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + return _ret_var; + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_after"); - private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_after was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Box)wrapper).PackAfter( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_delegate efl_pack_static_delegate; + + + private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_request"); + + private static void layout_request(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_request was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Box)wrapper).LayoutRequest(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); } - } - private static efl_pack_after_delegate efl_pack_after_static_delegate; + private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + + + private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_update"); + + private static void layout_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Box)wrapper).UpdateLayout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); + private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); + + private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_begin was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Box)wrapper).PackBegin(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_at"); - private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) - { - Eina.Log.Debug("function efl_pack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Box)wrapper).PackAt( subobj, index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + else + { + return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_at_delegate efl_pack_at_static_delegate; + private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); + + private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Box)wrapper).PackEnd(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + private static efl_pack_end_delegate efl_pack_end_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); + + private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_before was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Box)wrapper).PackBefore(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_content_get"); - private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Box)wrapper).GetPackContent( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + else + { + return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } } - } - private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + private static efl_pack_before_delegate efl_pack_before_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); + + private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_after was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Box)wrapper).PackAfter(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + return _ret_var; + } + else + { + return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } + + private static efl_pack_after_delegate efl_pack_after_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); + + private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) + { + Eina.Log.Debug("function efl_pack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Box)wrapper).PackAt(subobj, index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_index_get"); - private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_index_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Box)wrapper).GetPackIndex( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + } } - } - private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + private static efl_pack_at_delegate efl_pack_at_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); + + private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Box)wrapper).GetPackContent(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + return _ret_var; + } + else + { + return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_at"); - private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_unpack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Box)wrapper).PackUnpackAt( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + + + private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); + + private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_index_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Box)wrapper).GetPackIndex(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } + } + + private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); + + private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_unpack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Box)wrapper).PackUnpackAt(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + + } + else + { + return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } } - } - private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + + private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_get"); + + private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); + try + { + _ret_var = ((Box)wrapper).GetDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_get"); - private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); - try { - _ret_var = ((Box)wrapper).GetDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + + + private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + + public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_set"); + + private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Box)wrapper).SetDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - return _ret_var; - } else { - return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; - private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_set"); - private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Box)wrapper).SetDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_box_flow.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_box_flow.eo.cs index 0bd2413..fcfcb93 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_box_flow.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_box_flow.eo.cs @@ -3,85 +3,121 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// A custom layout engine for . -[BoxFlowNativeInherit] +[Efl.Ui.BoxFlow.NativeMethods] public class BoxFlow : Efl.Ui.Box, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (BoxFlow)) - return Efl.Ui.BoxFlowNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(BoxFlow)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_box_flow_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public BoxFlow(Efl.Object parent - , System.String style = null) : - base(efl_ui_box_flow_class_get(), typeof(BoxFlow), parent) + , System.String style = null) : base(efl_ui_box_flow_class_get(), typeof(BoxFlow), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected BoxFlow(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected BoxFlow(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected BoxFlow(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.BoxFlow.efl_ui_box_flow_class_get(); } -} -public class BoxFlowNativeInherit : Efl.Ui.BoxNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Box.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.BoxFlow.efl_ui_box_flow_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.BoxFlow.efl_ui_box_flow_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.BoxFlow.efl_ui_box_flow_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_box_stack.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_box_stack.eo.cs index b36b194..fe68ac7 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_box_stack.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_box_stack.eo.cs @@ -3,86 +3,122 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// A custom layout engine for that stacks items. /// Items will be stacked on top of each other (in the Z direction). -[BoxStackNativeInherit] +[Efl.Ui.BoxStack.NativeMethods] public class BoxStack : Efl.Ui.Box, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (BoxStack)) - return Efl.Ui.BoxStackNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(BoxStack)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_box_stack_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public BoxStack(Efl.Object parent - , System.String style = null) : - base(efl_ui_box_stack_class_get(), typeof(BoxStack), parent) + , System.String style = null) : base(efl_ui_box_stack_class_get(), typeof(BoxStack), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected BoxStack(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected BoxStack(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected BoxStack(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.BoxStack.efl_ui_box_stack_class_get(); } -} -public class BoxStackNativeInherit : Efl.Ui.BoxNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Box.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.BoxStack.efl_ui_box_stack_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.BoxStack.efl_ui_box_stack_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.BoxStack.efl_ui_box_stack_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_button.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_button.eo.cs index 2ffe604..e7fff36 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_button.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_button.eo.cs @@ -3,498 +3,604 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Push-button widget /// Press it and run some function. It can contain a simple label and icon object and it also has an autorepeat feature. -[ButtonNativeInherit] +[Efl.Ui.Button.NativeMethods] public class Button : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IContent,Efl.IText,Efl.Ui.IAutorepeat,Efl.Ui.IClickable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Button)) - return Efl.Ui.ButtonNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Button)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_button_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Button(Efl.Object parent - , System.String style = null) : - base(efl_ui_button_class_get(), typeof(Button), parent) + , System.String style = null) : base(efl_ui_button_class_get(), typeof(Button), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Button(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Button(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Button(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) + public void OnClickedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedDoubleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedTripleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRepeatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -505,7 +611,7 @@ private static object RepeatedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -513,9 +619,8 @@ private static object RepeatedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// The initial timeout before the autorepeat event is generated @@ -524,7 +629,7 @@ private static object RepeatedEvtKey = new object(); /// See also , . /// Timeout in seconds virtual public double GetAutorepeatInitialTimeout() { - var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -533,9 +638,8 @@ private static object RepeatedEvtKey = new object(); /// /// See also , . /// Timeout in seconds - /// - virtual public void SetAutorepeatInitialTimeout( double t) { - Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), t); + virtual public void SetAutorepeatInitialTimeout(double t) { + Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),t); Eina.Error.RaiseIfUnhandledException(); } /// The interval between each generated autorepeat event @@ -544,7 +648,7 @@ private static object RepeatedEvtKey = new object(); /// See also . /// Interval in seconds virtual public double GetAutorepeatGapTimeout() { - var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -553,9 +657,8 @@ private static object RepeatedEvtKey = new object(); /// /// See also . /// Interval in seconds - /// - virtual public void SetAutorepeatGapTimeout( double t) { - Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), t); + virtual public void SetAutorepeatGapTimeout(double t) { + Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),t); Eina.Error.RaiseIfUnhandledException(); } /// Turn on/off the autorepeat event generated when the button is kept pressed @@ -564,7 +667,7 @@ private static object RepeatedEvtKey = new object(); /// When on, keeping a button pressed will continuously emit a repeated signal until the button is released. The time it takes until it starts emitting the signal is given by , and the time between each new emission by . /// A bool to turn on/off the event virtual public bool GetAutorepeatEnabled() { - var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -573,24 +676,24 @@ private static object RepeatedEvtKey = new object(); /// /// When on, keeping a button pressed will continuously emit a repeated signal until the button is released. The time it takes until it starts emitting the signal is given by , and the time between each new emission by . /// A bool to turn on/off the event - /// - virtual public void SetAutorepeatEnabled( bool on) { - Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), on); + virtual public void SetAutorepeatEnabled(bool on) { + Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),on); Eina.Error.RaiseIfUnhandledException(); } /// Whether the button supports autorepeat. /// true if autorepeat is supported, false otherwise virtual public bool GetAutorepeatSupported() { - var _ret_var = Efl.Ui.IAutorepeatNativeInherit.efl_ui_autorepeat_supported_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_supported_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// The initial timeout before the autorepeat event is generated /// Sets the timeout, in seconds, since the button is pressed until the first repeated signal is emitted. If t is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed. @@ -599,7 +702,7 @@ private static object RepeatedEvtKey = new object(); /// Timeout in seconds public double AutorepeatInitialTimeout { get { return GetAutorepeatInitialTimeout(); } - set { SetAutorepeatInitialTimeout( value); } + set { SetAutorepeatInitialTimeout(value); } } /// The interval between each generated autorepeat event /// After the first repeated event is fired, all subsequent ones will follow after a delay of t seconds for each. @@ -608,7 +711,7 @@ private static object RepeatedEvtKey = new object(); /// Interval in seconds public double AutorepeatGapTimeout { get { return GetAutorepeatGapTimeout(); } - set { SetAutorepeatGapTimeout( value); } + set { SetAutorepeatGapTimeout(value); } } /// Turn on/off the autorepeat event generated when the button is kept pressed /// When off, no autorepeat is performed and buttons emit a normal clicked signal when they are clicked. @@ -617,7 +720,7 @@ private static object RepeatedEvtKey = new object(); /// A bool to turn on/off the event public bool AutorepeatEnabled { get { return GetAutorepeatEnabled(); } - set { SetAutorepeatEnabled( value); } + set { SetAutorepeatEnabled(value); } } /// Whether the button supports autorepeat. /// true if autorepeat is supported, false otherwise @@ -628,367 +731,583 @@ private static object RepeatedEvtKey = new object(); { return Efl.Ui.Button.efl_ui_button_class_get(); } -} -public class ButtonNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_ui_autorepeat_initial_timeout_get_static_delegate == null) - efl_ui_autorepeat_initial_timeout_get_static_delegate = new efl_ui_autorepeat_initial_timeout_get_delegate(autorepeat_initial_timeout_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatInitialTimeout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_initial_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_get_static_delegate)}); - if (efl_ui_autorepeat_initial_timeout_set_static_delegate == null) - efl_ui_autorepeat_initial_timeout_set_static_delegate = new efl_ui_autorepeat_initial_timeout_set_delegate(autorepeat_initial_timeout_set); - if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatInitialTimeout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_initial_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_set_static_delegate)}); - if (efl_ui_autorepeat_gap_timeout_get_static_delegate == null) - efl_ui_autorepeat_gap_timeout_get_static_delegate = new efl_ui_autorepeat_gap_timeout_get_delegate(autorepeat_gap_timeout_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatGapTimeout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_gap_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_get_static_delegate)}); - if (efl_ui_autorepeat_gap_timeout_set_static_delegate == null) - efl_ui_autorepeat_gap_timeout_set_static_delegate = new efl_ui_autorepeat_gap_timeout_set_delegate(autorepeat_gap_timeout_set); - if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatGapTimeout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_gap_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_set_static_delegate)}); - if (efl_ui_autorepeat_enabled_get_static_delegate == null) - efl_ui_autorepeat_enabled_get_static_delegate = new efl_ui_autorepeat_enabled_get_delegate(autorepeat_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_get_static_delegate)}); - if (efl_ui_autorepeat_enabled_set_static_delegate == null) - efl_ui_autorepeat_enabled_set_static_delegate = new efl_ui_autorepeat_enabled_set_delegate(autorepeat_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_set_static_delegate)}); - if (efl_ui_autorepeat_supported_get_static_delegate == null) - efl_ui_autorepeat_supported_get_static_delegate = new efl_ui_autorepeat_supported_get_delegate(autorepeat_supported_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatSupported") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_autorepeat_supported_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_supported_get_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Button.efl_ui_button_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Button.efl_ui_button_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Button)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Button)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } + if (efl_ui_autorepeat_initial_timeout_get_static_delegate == null) + { + efl_ui_autorepeat_initial_timeout_get_static_delegate = new efl_ui_autorepeat_initial_timeout_get_delegate(autorepeat_initial_timeout_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Button)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatInitialTimeout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_initial_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_get_static_delegate) }); + } + + if (efl_ui_autorepeat_initial_timeout_set_static_delegate == null) + { + efl_ui_autorepeat_initial_timeout_set_static_delegate = new efl_ui_autorepeat_initial_timeout_set_delegate(autorepeat_initial_timeout_set); } + + if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatInitialTimeout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_initial_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_set_static_delegate) }); + } + + if (efl_ui_autorepeat_gap_timeout_get_static_delegate == null) + { + efl_ui_autorepeat_gap_timeout_get_static_delegate = new efl_ui_autorepeat_gap_timeout_get_delegate(autorepeat_gap_timeout_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatGapTimeout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_gap_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_get_static_delegate) }); + } + + if (efl_ui_autorepeat_gap_timeout_set_static_delegate == null) + { + efl_ui_autorepeat_gap_timeout_set_static_delegate = new efl_ui_autorepeat_gap_timeout_set_delegate(autorepeat_gap_timeout_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatGapTimeout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_gap_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_set_static_delegate) }); + } + + if (efl_ui_autorepeat_enabled_get_static_delegate == null) + { + efl_ui_autorepeat_enabled_get_static_delegate = new efl_ui_autorepeat_enabled_get_delegate(autorepeat_enabled_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_get_static_delegate) }); + } + + if (efl_ui_autorepeat_enabled_set_static_delegate == null) + { + efl_ui_autorepeat_enabled_set_static_delegate = new efl_ui_autorepeat_enabled_set_delegate(autorepeat_enabled_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_set_static_delegate) }); + } + + if (efl_ui_autorepeat_supported_get_static_delegate == null) + { + efl_ui_autorepeat_supported_get_static_delegate = new efl_ui_autorepeat_supported_get_delegate(autorepeat_supported_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatSupported") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_supported_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_supported_get_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Button.efl_ui_button_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Button)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Button)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Button)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Button)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_content_unset_delegate efl_content_unset_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Button)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Button)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - private delegate double efl_ui_autorepeat_initial_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public delegate double efl_ui_autorepeat_initial_timeout_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_initial_timeout_get"); - private static double autorepeat_initial_timeout_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Button)wrapper).GetAutorepeatInitialTimeout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Button)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - return _ret_var; - } else { - return efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_autorepeat_initial_timeout_get_delegate efl_ui_autorepeat_initial_timeout_get_static_delegate; + private static efl_text_set_delegate efl_text_set_static_delegate; - private delegate void efl_ui_autorepeat_initial_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); + + private delegate double efl_ui_autorepeat_initial_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_autorepeat_initial_timeout_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_autorepeat_initial_timeout_set_api_delegate(System.IntPtr obj, double t); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_initial_timeout_set"); - private static void autorepeat_initial_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) - { - Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Button)wrapper).SetAutorepeatInitialTimeout( t); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_initial_timeout_get"); + + private static double autorepeat_initial_timeout_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Button)wrapper).GetAutorepeatInitialTimeout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_autorepeat_initial_timeout_set_delegate efl_ui_autorepeat_initial_timeout_set_static_delegate; + private static efl_ui_autorepeat_initial_timeout_get_delegate efl_ui_autorepeat_initial_timeout_get_static_delegate; - private delegate double efl_ui_autorepeat_gap_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_autorepeat_initial_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); + + public delegate void efl_ui_autorepeat_initial_timeout_set_api_delegate(System.IntPtr obj, double t); - public delegate double efl_ui_autorepeat_gap_timeout_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_gap_timeout_get"); - private static double autorepeat_gap_timeout_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Button)wrapper).GetAutorepeatGapTimeout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_initial_timeout_set"); + + private static void autorepeat_initial_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) + { + Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Button)wrapper).SetAutorepeatInitialTimeout(t); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); } - return _ret_var; - } else { - return efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_autorepeat_gap_timeout_get_delegate efl_ui_autorepeat_gap_timeout_get_static_delegate; + private static efl_ui_autorepeat_initial_timeout_set_delegate efl_ui_autorepeat_initial_timeout_set_static_delegate; - private delegate void efl_ui_autorepeat_gap_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); + + private delegate double efl_ui_autorepeat_gap_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_autorepeat_gap_timeout_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_autorepeat_gap_timeout_set_api_delegate(System.IntPtr obj, double t); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_gap_timeout_set"); - private static void autorepeat_gap_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) - { - Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Button)wrapper).SetAutorepeatGapTimeout( t); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_gap_timeout_get"); + + private static double autorepeat_gap_timeout_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Button)wrapper).GetAutorepeatGapTimeout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_autorepeat_gap_timeout_set_delegate efl_ui_autorepeat_gap_timeout_set_static_delegate; + private static efl_ui_autorepeat_gap_timeout_get_delegate efl_ui_autorepeat_gap_timeout_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_autorepeat_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_autorepeat_gap_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); + + public delegate void efl_ui_autorepeat_gap_timeout_set_api_delegate(System.IntPtr obj, double t); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_autorepeat_enabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_enabled_get"); - private static bool autorepeat_enabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_autorepeat_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Button)wrapper).GetAutorepeatEnabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_gap_timeout_set"); + + private static void autorepeat_gap_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) + { + Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Button)wrapper).SetAutorepeatGapTimeout(t); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); } - return _ret_var; - } else { - return efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_autorepeat_enabled_get_delegate efl_ui_autorepeat_enabled_get_static_delegate; + private static efl_ui_autorepeat_gap_timeout_set_delegate efl_ui_autorepeat_gap_timeout_set_static_delegate; - private delegate void efl_ui_autorepeat_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool on); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_autorepeat_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_autorepeat_enabled_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_autorepeat_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool on); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_enabled_set"); - private static void autorepeat_enabled_set(System.IntPtr obj, System.IntPtr pd, bool on) - { - Eina.Log.Debug("function efl_ui_autorepeat_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Button)wrapper).SetAutorepeatEnabled( on); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), on); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_enabled_get"); + + private static bool autorepeat_enabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_autorepeat_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Button)wrapper).GetAutorepeatEnabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_autorepeat_enabled_set_delegate efl_ui_autorepeat_enabled_set_static_delegate; + private static efl_ui_autorepeat_enabled_get_delegate efl_ui_autorepeat_enabled_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_autorepeat_supported_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_autorepeat_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool on); + + public delegate void efl_ui_autorepeat_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool on); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_autorepeat_supported_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_supported_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_autorepeat_supported_get"); - private static bool autorepeat_supported_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_autorepeat_supported_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Button)wrapper).GetAutorepeatSupported(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_enabled_set"); + + private static void autorepeat_enabled_set(System.IntPtr obj, System.IntPtr pd, bool on) + { + Eina.Log.Debug("function efl_ui_autorepeat_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Button)wrapper).SetAutorepeatEnabled(on); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), on); + } + } + + private static efl_ui_autorepeat_enabled_set_delegate efl_ui_autorepeat_enabled_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_autorepeat_supported_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_autorepeat_supported_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_supported_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_supported_get"); + + private static bool autorepeat_supported_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_autorepeat_supported_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Button)wrapper).GetAutorepeatSupported(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_autorepeat_supported_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_autorepeat_supported_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_autorepeat_supported_get_delegate efl_ui_autorepeat_supported_get_static_delegate; + + private static efl_ui_autorepeat_supported_get_delegate efl_ui_autorepeat_supported_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_button_legacy_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_button_legacy_part.eo.cs index 9ec8f2e..2a989ad 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_button_legacy_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_button_legacy_part.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary button internal part class -[ButtonLegacyPartNativeInherit] +[Efl.Ui.ButtonLegacyPart.NativeMethods] public class ButtonLegacyPart : Efl.Ui.LayoutPartContent, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ButtonLegacyPart)) - return Efl.Ui.ButtonLegacyPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ButtonLegacyPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_button_legacy_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ButtonLegacyPart(Efl.Object parent= null - ) : - base(efl_ui_button_legacy_part_class_get(), typeof(ButtonLegacyPart), parent) + ) : base(efl_ui_button_legacy_part_class_get(), typeof(ButtonLegacyPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ButtonLegacyPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ButtonLegacyPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ButtonLegacyPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.ButtonLegacyPart.efl_ui_button_legacy_part_class_get(); } -} -public class ButtonLegacyPartNativeInherit : Efl.Ui.LayoutPartContentNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ButtonLegacyPart.efl_ui_button_legacy_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPartContent.NativeMethods { - return Efl.Ui.ButtonLegacyPart.efl_ui_button_legacy_part_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ButtonLegacyPart.efl_ui_button_legacy_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_caching_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_caching_factory.eo.cs index b4280c1..bd667f2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_caching_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_caching_factory.eo.cs @@ -3,244 +3,349 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl Ui Factory that provides object caching. /// This factory handles caching of one type of object that must be an with an interface defined. This factory will rely on its parent class for creating the subset of class that match interface. The factory will automatically empties the cache when the application goes into pause. /// /// Creating objects is costly and time consuming, keeping a few on hand for when you next will need them helps a lot. This is what this factory caching infrastructure provides. It will create the object from the class defined on it and set the parent and the model as needed for all created items. The View has to release the Item using the release function of the Factory interface for all of this to work properly. /// /// The cache might decide to flush itself when the application event pause is triggered. -[CachingFactoryNativeInherit] +[Efl.Ui.CachingFactory.NativeMethods] public class CachingFactory : Efl.Ui.WidgetFactory, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (CachingFactory)) - return Efl.Ui.CachingFactoryNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(CachingFactory)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_caching_factory_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Define the class of the item returned by this factory. See + /// Initializes a new instance of the class. + /// Parent instance. + /// Define the class of the item returned by this factory. See public CachingFactory(Efl.Object parent - , Type itemClass = null) : - base(efl_ui_caching_factory_class_get(), typeof(CachingFactory), parent) + , Type itemClass = null) : base(efl_ui_caching_factory_class_get(), typeof(CachingFactory), parent) { if (Efl.Eo.Globals.ParamHelperCheck(itemClass)) + { SetItemClass(Efl.Eo.Globals.GetParamHelper(itemClass)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected CachingFactory(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected CachingFactory(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected CachingFactory(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Define the maxium size in Bytes that all the object waiting on standby in the cache take. They must provide the interface for an accurate accounting. /// When set to zero, there is no limit on the amount of memory the cache will use. virtual public uint GetMemoryLimit() { - var _ret_var = Efl.Ui.CachingFactoryNativeInherit.efl_ui_caching_factory_memory_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.CachingFactory.NativeMethods.efl_ui_caching_factory_memory_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Define the maxium size in Bytes that all the object waiting on standby in the cache take. They must provide the interface for an accurate accounting. /// When set to zero, there is no limit on the amount of memory the cache will use. - /// - virtual public void SetMemoryLimit( uint limit) { - Efl.Ui.CachingFactoryNativeInherit.efl_ui_caching_factory_memory_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), limit); + virtual public void SetMemoryLimit(uint limit) { + Efl.Ui.CachingFactory.NativeMethods.efl_ui_caching_factory_memory_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),limit); Eina.Error.RaiseIfUnhandledException(); } /// Define how many maximum number of items are waiting on standby in the cache. /// When set to zero, there is no limit to the amount of items stored in the cache. virtual public uint GetItemsLimit() { - var _ret_var = Efl.Ui.CachingFactoryNativeInherit.efl_ui_caching_factory_items_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.CachingFactory.NativeMethods.efl_ui_caching_factory_items_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Define how many maximum number of items are waiting on standby in the cache. /// When set to zero, there is no limit to the amount of items stored in the cache. - /// - virtual public void SetItemsLimit( uint limit) { - Efl.Ui.CachingFactoryNativeInherit.efl_ui_caching_factory_items_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), limit); + virtual public void SetItemsLimit(uint limit) { + Efl.Ui.CachingFactory.NativeMethods.efl_ui_caching_factory_items_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),limit); Eina.Error.RaiseIfUnhandledException(); } /// Define the maxium size in Bytes that all the object waiting on standby in the cache take. They must provide the interface for an accurate accounting. /// When set to zero, there is no limit on the amount of memory the cache will use. public uint MemoryLimit { get { return GetMemoryLimit(); } - set { SetMemoryLimit( value); } + set { SetMemoryLimit(value); } } /// Define how many maximum number of items are waiting on standby in the cache. /// When set to zero, there is no limit to the amount of items stored in the cache. public uint ItemsLimit { get { return GetItemsLimit(); } - set { SetItemsLimit( value); } + set { SetItemsLimit(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.CachingFactory.efl_ui_caching_factory_class_get(); } -} -public class CachingFactoryNativeInherit : Efl.Ui.WidgetFactoryNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_caching_factory_memory_limit_get_static_delegate == null) - efl_ui_caching_factory_memory_limit_get_static_delegate = new efl_ui_caching_factory_memory_limit_get_delegate(memory_limit_get); - if (methods.FirstOrDefault(m => m.Name == "GetMemoryLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_caching_factory_memory_limit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_caching_factory_memory_limit_get_static_delegate)}); - if (efl_ui_caching_factory_memory_limit_set_static_delegate == null) - efl_ui_caching_factory_memory_limit_set_static_delegate = new efl_ui_caching_factory_memory_limit_set_delegate(memory_limit_set); - if (methods.FirstOrDefault(m => m.Name == "SetMemoryLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_caching_factory_memory_limit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_caching_factory_memory_limit_set_static_delegate)}); - if (efl_ui_caching_factory_items_limit_get_static_delegate == null) - efl_ui_caching_factory_items_limit_get_static_delegate = new efl_ui_caching_factory_items_limit_get_delegate(items_limit_get); - if (methods.FirstOrDefault(m => m.Name == "GetItemsLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_caching_factory_items_limit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_caching_factory_items_limit_get_static_delegate)}); - if (efl_ui_caching_factory_items_limit_set_static_delegate == null) - efl_ui_caching_factory_items_limit_set_static_delegate = new efl_ui_caching_factory_items_limit_set_delegate(items_limit_set); - if (methods.FirstOrDefault(m => m.Name == "SetItemsLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_caching_factory_items_limit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_caching_factory_items_limit_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.CachingFactory.efl_ui_caching_factory_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.WidgetFactory.NativeMethods { - return Efl.Ui.CachingFactory.efl_ui_caching_factory_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_caching_factory_memory_limit_get_static_delegate == null) + { + efl_ui_caching_factory_memory_limit_get_static_delegate = new efl_ui_caching_factory_memory_limit_get_delegate(memory_limit_get); + } - private delegate uint efl_ui_caching_factory_memory_limit_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetMemoryLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_caching_factory_memory_limit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_caching_factory_memory_limit_get_static_delegate) }); + } + if (efl_ui_caching_factory_memory_limit_set_static_delegate == null) + { + efl_ui_caching_factory_memory_limit_set_static_delegate = new efl_ui_caching_factory_memory_limit_set_delegate(memory_limit_set); + } - public delegate uint efl_ui_caching_factory_memory_limit_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_caching_factory_memory_limit_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_caching_factory_memory_limit_get"); - private static uint memory_limit_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_caching_factory_memory_limit_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((CachingFactory)wrapper).GetMemoryLimit(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMemoryLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_caching_factory_memory_limit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_caching_factory_memory_limit_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_caching_factory_memory_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_caching_factory_items_limit_get_static_delegate == null) + { + efl_ui_caching_factory_items_limit_get_static_delegate = new efl_ui_caching_factory_items_limit_get_delegate(items_limit_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetItemsLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_caching_factory_items_limit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_caching_factory_items_limit_get_static_delegate) }); + } + + if (efl_ui_caching_factory_items_limit_set_static_delegate == null) + { + efl_ui_caching_factory_items_limit_set_static_delegate = new efl_ui_caching_factory_items_limit_set_delegate(items_limit_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetItemsLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_caching_factory_items_limit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_caching_factory_items_limit_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.CachingFactory.efl_ui_caching_factory_class_get(); } - } - private static efl_ui_caching_factory_memory_limit_get_delegate efl_ui_caching_factory_memory_limit_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_caching_factory_memory_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, uint limit); + + private delegate uint efl_ui_caching_factory_memory_limit_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate uint efl_ui_caching_factory_memory_limit_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_caching_factory_memory_limit_set_api_delegate(System.IntPtr obj, uint limit); - public static Efl.Eo.FunctionWrapper efl_ui_caching_factory_memory_limit_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_caching_factory_memory_limit_set"); - private static void memory_limit_set(System.IntPtr obj, System.IntPtr pd, uint limit) - { - Eina.Log.Debug("function efl_ui_caching_factory_memory_limit_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CachingFactory)wrapper).SetMemoryLimit( limit); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_caching_factory_memory_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), limit); + public static Efl.Eo.FunctionWrapper efl_ui_caching_factory_memory_limit_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_caching_factory_memory_limit_get"); + + private static uint memory_limit_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_caching_factory_memory_limit_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((CachingFactory)wrapper).GetMemoryLimit(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_caching_factory_memory_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_caching_factory_memory_limit_set_delegate efl_ui_caching_factory_memory_limit_set_static_delegate; + private static efl_ui_caching_factory_memory_limit_get_delegate efl_ui_caching_factory_memory_limit_get_static_delegate; - private delegate uint efl_ui_caching_factory_items_limit_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_caching_factory_memory_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, uint limit); + + public delegate void efl_ui_caching_factory_memory_limit_set_api_delegate(System.IntPtr obj, uint limit); - public delegate uint efl_ui_caching_factory_items_limit_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_caching_factory_items_limit_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_caching_factory_items_limit_get"); - private static uint items_limit_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_caching_factory_items_limit_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((CachingFactory)wrapper).GetItemsLimit(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_caching_factory_memory_limit_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_caching_factory_memory_limit_set"); + + private static void memory_limit_set(System.IntPtr obj, System.IntPtr pd, uint limit) + { + Eina.Log.Debug("function efl_ui_caching_factory_memory_limit_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((CachingFactory)wrapper).SetMemoryLimit(limit); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_caching_factory_memory_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), limit); + } + } + + private static efl_ui_caching_factory_memory_limit_set_delegate efl_ui_caching_factory_memory_limit_set_static_delegate; + + + private delegate uint efl_ui_caching_factory_items_limit_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate uint efl_ui_caching_factory_items_limit_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_caching_factory_items_limit_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_caching_factory_items_limit_get"); + + private static uint items_limit_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_caching_factory_items_limit_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((CachingFactory)wrapper).GetItemsLimit(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_caching_factory_items_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_caching_factory_items_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_caching_factory_items_limit_get_delegate efl_ui_caching_factory_items_limit_get_static_delegate; + private static efl_ui_caching_factory_items_limit_get_delegate efl_ui_caching_factory_items_limit_get_static_delegate; - private delegate void efl_ui_caching_factory_items_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, uint limit); + + private delegate void efl_ui_caching_factory_items_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, uint limit); + + public delegate void efl_ui_caching_factory_items_limit_set_api_delegate(System.IntPtr obj, uint limit); - public delegate void efl_ui_caching_factory_items_limit_set_api_delegate(System.IntPtr obj, uint limit); - public static Efl.Eo.FunctionWrapper efl_ui_caching_factory_items_limit_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_caching_factory_items_limit_set"); - private static void items_limit_set(System.IntPtr obj, System.IntPtr pd, uint limit) - { - Eina.Log.Debug("function efl_ui_caching_factory_items_limit_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CachingFactory)wrapper).SetItemsLimit( limit); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_caching_factory_items_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), limit); + public static Efl.Eo.FunctionWrapper efl_ui_caching_factory_items_limit_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_caching_factory_items_limit_set"); + + private static void items_limit_set(System.IntPtr obj, System.IntPtr pd, uint limit) + { + Eina.Log.Debug("function efl_ui_caching_factory_items_limit_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((CachingFactory)wrapper).SetItemsLimit(limit); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_caching_factory_items_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), limit); + } } - } - private static efl_ui_caching_factory_items_limit_set_delegate efl_ui_caching_factory_items_limit_set_static_delegate; + + private static efl_ui_caching_factory_items_limit_set_delegate efl_ui_caching_factory_items_limit_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar.eo.cs index e124d2a..a9fbea3 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar.eo.cs @@ -3,131 +3,165 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Calendar widget /// It helps applications to flexibly display a calendar with day of the week, date, year and month. Applications are able to set specific dates to be reported back, when selected, in the smart callbacks of the calendar widget. -[CalendarNativeInherit] +[Efl.Ui.Calendar.NativeMethods] public class Calendar : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.Ui.IFormat,Efl.Ui.Focus.IComposition { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Calendar)) - return Efl.Ui.CalendarNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Calendar)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_calendar_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Calendar(Efl.Object parent - , System.String style = null) : - base(efl_ui_calendar_class_get(), typeof(Calendar), parent) + , System.String style = null) : base(efl_ui_calendar_class_get(), typeof(Calendar), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Calendar(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Calendar(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Calendar(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ChangedEvtKey = new object(); + /// Emitted when the selected date in the calendar is changed public event EventHandler ChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_CALENDAR_EVENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) { - eventHandlers.AddHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_CALENDAR_EVENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedEvt. - public void On_ChangedEvt(EventArgs e) + public void OnChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedEvtKey]; + var key = "_EFL_UI_CALENDAR_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedEvt_delegate; - private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// The first day of week to use on calendar widgets. /// This is the day that will appear in the left-most column (eg. Monday in France or Sunday in the US). /// The first day of the week. virtual public Efl.Ui.CalendarWeekday GetFirstDayOfWeek() { - var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_first_day_of_week_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Calendar.NativeMethods.efl_ui_calendar_first_day_of_week_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The first day of week to use on calendar widgets. /// This is the day that will appear in the left-most column (eg. Monday in France or Sunday in the US). /// The first day of the week. - /// - virtual public void SetFirstDayOfWeek( Efl.Ui.CalendarWeekday day) { - Efl.Ui.CalendarNativeInherit.efl_ui_calendar_first_day_of_week_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), day); + virtual public void SetFirstDayOfWeek(Efl.Ui.CalendarWeekday day) { + Efl.Ui.Calendar.NativeMethods.efl_ui_calendar_first_day_of_week_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),day); Eina.Error.RaiseIfUnhandledException(); } /// Get the minimum date. /// Default value is 1 JAN,1902. /// Time structure containing the minimum date. virtual public Efl.Time GetDateMin() { - var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Calendar.NativeMethods.efl_ui_calendar_date_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -135,9 +169,9 @@ private static object ChangedEvtKey = new object(); /// Set the minimum date, changing the displayed month or year if needed. Displayed day also to be disabled if it is smaller than minimum date. If the minimum date is greater than current maximum date, the minimum date would be changed to the maximum date with returning false. /// Time structure containing the minimum date. /// true, on success, false otherwise - virtual public bool SetDateMin( Efl.Time min) { + virtual public bool SetDateMin(Efl.Time min) { Efl.Time.NativeStruct _in_min = min; - var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_min); + var _ret_var = Efl.Ui.Calendar.NativeMethods.efl_ui_calendar_date_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_min); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -147,7 +181,7 @@ private static object ChangedEvtKey = new object(); /// If the maximum year is a negative value, it will be limited depending on the platform architecture (year 2037 for 32 bits); /// Time structure containing the maximum date. virtual public Efl.Time GetDateMax() { - var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Calendar.NativeMethods.efl_ui_calendar_date_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -155,34 +189,33 @@ private static object ChangedEvtKey = new object(); /// Set the maximum date, changing the displayed month or year if needed. Displayed day also to be disabled if it is bigger than maximum date. If the maximum date is less than current minimum date, the maximum date would be changed to the minimum date with returning false. /// Time structure containing the maximum date. /// true, on success, false otherwise - virtual public bool SetDateMax( Efl.Time max) { + virtual public bool SetDateMax(Efl.Time max) { Efl.Time.NativeStruct _in_max = max; - var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_max); + var _ret_var = Efl.Ui.Calendar.NativeMethods.efl_ui_calendar_date_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_max); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The selected date on calendar. /// Time structure containing the selected date. virtual public Efl.Time GetDate() { - var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Calendar.NativeMethods.efl_ui_calendar_date_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the selected date. If the date is greater than the maximum date, the date would be changed to the maximum date with returning false. In the opposite case with the minimum date, this would give the same result. /// Time structure containing the selected date. /// true, on success, false otherwise - virtual public bool SetDate( Efl.Time date) { + virtual public bool SetDate(Efl.Time date) { Efl.Time.NativeStruct _in_date = date; - var _ret_var = Efl.Ui.CalendarNativeInherit.efl_ui_calendar_date_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_date); + var _ret_var = Efl.Ui.Calendar.NativeMethods.efl_ui_calendar_date_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_date); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the format function pointer to format the string. /// The format function callback - /// - virtual public void SetFormatCb( Efl.Ui.FormatFuncCb func) { + virtual public void SetFormatCb(Efl.Ui.FormatFuncCb func) { GCHandle func_handle = GCHandle.Alloc(func); - Efl.Ui.IFormatNativeInherit.efl_ui_format_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), Efl.Ui.FormatFuncCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), Efl.Ui.FormatFuncCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); } /// Control the format string for a given units label @@ -191,7 +224,7 @@ private static object ChangedEvtKey = new object(); /// Note: The default format string is an integer percentage, as in $"%.0f %%". /// The format string for obj's units label. virtual public System.String GetFormatString() { - var _ret_var = Efl.Ui.IFormatNativeInherit.efl_ui_format_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -200,9 +233,8 @@ private static object ChangedEvtKey = new object(); /// /// Note: The default format string is an integer percentage, as in $"%.0f %%". /// The format string for obj's units label. - /// - virtual public void SetFormatString( System.String units) { - Efl.Ui.IFormatNativeInherit.efl_ui_format_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), units); + virtual public void SetFormatString(System.String units) { + Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),units); Eina.Error.RaiseIfUnhandledException(); } /// Set the order of elements that will be used for composition @@ -215,7 +247,7 @@ private static object ChangedEvtKey = new object(); /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order. /// The order to use virtual public Eina.List GetCompositionElements() { - var _ret_var = Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, false); } @@ -228,38 +260,34 @@ private static object ChangedEvtKey = new object(); /// /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order. /// The order to use - /// - virtual public void SetCompositionElements( Eina.List logical_order) { + virtual public void SetCompositionElements(Eina.List logical_order) { var _in_logical_order = logical_order.Handle; logical_order.Own = false; - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_elements_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_logical_order); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_elements_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_logical_order); Eina.Error.RaiseIfUnhandledException(); } /// Set to true if all children should be registered as logicals /// true or false virtual public bool GetLogicalMode() { - var _ret_var = Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set to true if all children should be registered as logicals /// true or false - /// - virtual public void SetLogicalMode( bool logical_mode) { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), logical_mode); + virtual public void SetLogicalMode(bool logical_mode) { + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),logical_mode); Eina.Error.RaiseIfUnhandledException(); } /// Mark this widget as dirty, the children can be considered to be changed after that call - /// virtual public void Dirty() { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_dirty_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_dirty_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// A call to prepare the children of this element, called if marked as dirty /// You can use this function to call composition_elements. - /// virtual public void Prepare() { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_prepare_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_prepare_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// The first day of week to use on calendar widgets. @@ -267,30 +295,30 @@ logical_order.Own = false; /// The first day of the week. public Efl.Ui.CalendarWeekday FirstDayOfWeek { get { return GetFirstDayOfWeek(); } - set { SetFirstDayOfWeek( value); } + set { SetFirstDayOfWeek(value); } } /// Minimum date on calendar. /// Time structure containing the minimum date. public Efl.Time DateMin { get { return GetDateMin(); } - set { SetDateMin( value); } + set { SetDateMin(value); } } /// Maximum date on calendar. /// Time structure containing the maximum date. public Efl.Time DateMax { get { return GetDateMax(); } - set { SetDateMax( value); } + set { SetDateMax(value); } } /// The selected date on calendar. /// Time structure containing the selected date. public Efl.Time Date { get { return GetDate(); } - set { SetDate( value); } + set { SetDate(value); } } /// Set the format function pointer to format the string. /// The format function callback public Efl.Ui.FormatFuncCb FormatCb { - set { SetFormatCb( value); } + set { SetFormatCb(value); } } /// Control the format string for a given units label /// If NULL is passed to format, it will hide obj's units area completely. If not, it'll set the <b>format string</b> for the units label text. The units label is provided as a floating point value, so the units text can display at most one floating point value. Note that the units label is optional. Use a format string such as "%1.2f meters" for example. @@ -299,7 +327,7 @@ logical_order.Own = false; /// The format string for obj's units label. public System.String FormatString { get { return GetFormatString(); } - set { SetFormatString( value); } + set { SetFormatString(value); } } /// Set the order of elements that will be used for composition /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx. @@ -312,530 +340,834 @@ logical_order.Own = false; /// The order to use public Eina.List CompositionElements { get { return GetCompositionElements(); } - set { SetCompositionElements( value); } + set { SetCompositionElements(value); } } /// Set to true if all children should be registered as logicals /// true or false public bool LogicalMode { get { return GetLogicalMode(); } - set { SetLogicalMode( value); } + set { SetLogicalMode(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Calendar.efl_ui_calendar_class_get(); } -} -public class CalendarNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_calendar_first_day_of_week_get_static_delegate == null) - efl_ui_calendar_first_day_of_week_get_static_delegate = new efl_ui_calendar_first_day_of_week_get_delegate(first_day_of_week_get); - if (methods.FirstOrDefault(m => m.Name == "GetFirstDayOfWeek") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_first_day_of_week_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_first_day_of_week_get_static_delegate)}); - if (efl_ui_calendar_first_day_of_week_set_static_delegate == null) - efl_ui_calendar_first_day_of_week_set_static_delegate = new efl_ui_calendar_first_day_of_week_set_delegate(first_day_of_week_set); - if (methods.FirstOrDefault(m => m.Name == "SetFirstDayOfWeek") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_first_day_of_week_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_first_day_of_week_set_static_delegate)}); - if (efl_ui_calendar_date_min_get_static_delegate == null) - efl_ui_calendar_date_min_get_static_delegate = new efl_ui_calendar_date_min_get_delegate(date_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetDateMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_min_get_static_delegate)}); - if (efl_ui_calendar_date_min_set_static_delegate == null) - efl_ui_calendar_date_min_set_static_delegate = new efl_ui_calendar_date_min_set_delegate(date_min_set); - if (methods.FirstOrDefault(m => m.Name == "SetDateMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_min_set_static_delegate)}); - if (efl_ui_calendar_date_max_get_static_delegate == null) - efl_ui_calendar_date_max_get_static_delegate = new efl_ui_calendar_date_max_get_delegate(date_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetDateMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_max_get_static_delegate)}); - if (efl_ui_calendar_date_max_set_static_delegate == null) - efl_ui_calendar_date_max_set_static_delegate = new efl_ui_calendar_date_max_set_delegate(date_max_set); - if (methods.FirstOrDefault(m => m.Name == "SetDateMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_max_set_static_delegate)}); - if (efl_ui_calendar_date_get_static_delegate == null) - efl_ui_calendar_date_get_static_delegate = new efl_ui_calendar_date_get_delegate(date_get); - if (methods.FirstOrDefault(m => m.Name == "GetDate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_get_static_delegate)}); - if (efl_ui_calendar_date_set_static_delegate == null) - efl_ui_calendar_date_set_static_delegate = new efl_ui_calendar_date_set_delegate(date_set); - if (methods.FirstOrDefault(m => m.Name == "SetDate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_date_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_set_static_delegate)}); - if (efl_ui_format_cb_set_static_delegate == null) - efl_ui_format_cb_set_static_delegate = new efl_ui_format_cb_set_delegate(format_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormatCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_cb_set_static_delegate)}); - if (efl_ui_format_string_get_static_delegate == null) - efl_ui_format_string_get_static_delegate = new efl_ui_format_string_get_delegate(format_string_get); - if (methods.FirstOrDefault(m => m.Name == "GetFormatString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_get_static_delegate)}); - if (efl_ui_format_string_set_static_delegate == null) - efl_ui_format_string_set_static_delegate = new efl_ui_format_string_set_delegate(format_string_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormatString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_set_static_delegate)}); - if (efl_ui_focus_composition_elements_get_static_delegate == null) - efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetCompositionElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_get_static_delegate)}); - if (efl_ui_focus_composition_elements_set_static_delegate == null) - efl_ui_focus_composition_elements_set_static_delegate = new efl_ui_focus_composition_elements_set_delegate(composition_elements_set); - if (methods.FirstOrDefault(m => m.Name == "SetCompositionElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_elements_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_set_static_delegate)}); - if (efl_ui_focus_composition_logical_mode_get_static_delegate == null) - efl_ui_focus_composition_logical_mode_get_static_delegate = new efl_ui_focus_composition_logical_mode_get_delegate(logical_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetLogicalMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_logical_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_get_static_delegate)}); - if (efl_ui_focus_composition_logical_mode_set_static_delegate == null) - efl_ui_focus_composition_logical_mode_set_static_delegate = new efl_ui_focus_composition_logical_mode_set_delegate(logical_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetLogicalMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_logical_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_set_static_delegate)}); - if (efl_ui_focus_composition_dirty_static_delegate == null) - efl_ui_focus_composition_dirty_static_delegate = new efl_ui_focus_composition_dirty_delegate(dirty); - if (methods.FirstOrDefault(m => m.Name == "Dirty") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_dirty"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_dirty_static_delegate)}); - if (efl_ui_focus_composition_prepare_static_delegate == null) - efl_ui_focus_composition_prepare_static_delegate = new efl_ui_focus_composition_prepare_delegate(prepare); - if (methods.FirstOrDefault(m => m.Name == "Prepare") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_prepare"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_prepare_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Calendar.efl_ui_calendar_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Calendar.efl_ui_calendar_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_calendar_first_day_of_week_get_static_delegate == null) + { + efl_ui_calendar_first_day_of_week_get_static_delegate = new efl_ui_calendar_first_day_of_week_get_delegate(first_day_of_week_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFirstDayOfWeek") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_first_day_of_week_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_first_day_of_week_get_static_delegate) }); + } - private delegate Efl.Ui.CalendarWeekday efl_ui_calendar_first_day_of_week_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_calendar_first_day_of_week_set_static_delegate == null) + { + efl_ui_calendar_first_day_of_week_set_static_delegate = new efl_ui_calendar_first_day_of_week_set_delegate(first_day_of_week_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFirstDayOfWeek") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_first_day_of_week_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_first_day_of_week_set_static_delegate) }); + } - public delegate Efl.Ui.CalendarWeekday efl_ui_calendar_first_day_of_week_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_calendar_first_day_of_week_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_calendar_first_day_of_week_get"); - private static Efl.Ui.CalendarWeekday first_day_of_week_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_calendar_first_day_of_week_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.CalendarWeekday _ret_var = default(Efl.Ui.CalendarWeekday); - try { - _ret_var = ((Calendar)wrapper).GetFirstDayOfWeek(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_calendar_date_min_get_static_delegate == null) + { + efl_ui_calendar_date_min_get_static_delegate = new efl_ui_calendar_date_min_get_delegate(date_min_get); } - return _ret_var; - } else { - return efl_ui_calendar_first_day_of_week_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_calendar_first_day_of_week_get_delegate efl_ui_calendar_first_day_of_week_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetDateMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_date_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_min_get_static_delegate) }); + } - private delegate void efl_ui_calendar_first_day_of_week_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.CalendarWeekday day); + if (efl_ui_calendar_date_min_set_static_delegate == null) + { + efl_ui_calendar_date_min_set_static_delegate = new efl_ui_calendar_date_min_set_delegate(date_min_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetDateMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_date_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_min_set_static_delegate) }); + } - public delegate void efl_ui_calendar_first_day_of_week_set_api_delegate(System.IntPtr obj, Efl.Ui.CalendarWeekday day); - public static Efl.Eo.FunctionWrapper efl_ui_calendar_first_day_of_week_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_calendar_first_day_of_week_set"); - private static void first_day_of_week_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.CalendarWeekday day) - { - Eina.Log.Debug("function efl_ui_calendar_first_day_of_week_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Calendar)wrapper).SetFirstDayOfWeek( day); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_calendar_first_day_of_week_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), day); - } - } - private static efl_ui_calendar_first_day_of_week_set_delegate efl_ui_calendar_first_day_of_week_set_static_delegate; + if (efl_ui_calendar_date_max_get_static_delegate == null) + { + efl_ui_calendar_date_max_get_static_delegate = new efl_ui_calendar_date_max_get_delegate(date_max_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetDateMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_date_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_max_get_static_delegate) }); + } - private delegate Efl.Time.NativeStruct efl_ui_calendar_date_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_calendar_date_max_set_static_delegate == null) + { + efl_ui_calendar_date_max_set_static_delegate = new efl_ui_calendar_date_max_set_delegate(date_max_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetDateMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_date_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_max_set_static_delegate) }); + } - public delegate Efl.Time.NativeStruct efl_ui_calendar_date_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_calendar_date_min_get"); - private static Efl.Time.NativeStruct date_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_calendar_date_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _ret_var = default(Efl.Time); - try { - _ret_var = ((Calendar)wrapper).GetDateMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_calendar_date_get_static_delegate == null) + { + efl_ui_calendar_date_get_static_delegate = new efl_ui_calendar_date_get_delegate(date_get); } - return _ret_var; - } else { - return efl_ui_calendar_date_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_calendar_date_min_get_delegate efl_ui_calendar_date_min_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetDate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_date_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_calendar_date_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct min); + if (efl_ui_calendar_date_set_static_delegate == null) + { + efl_ui_calendar_date_set_static_delegate = new efl_ui_calendar_date_set_delegate(date_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetDate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_date_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_date_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_calendar_date_min_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct min); - public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_min_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_calendar_date_min_set"); - private static bool date_min_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct min) - { - Eina.Log.Debug("function efl_ui_calendar_date_min_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _in_min = min; - bool _ret_var = default(bool); - try { - _ret_var = ((Calendar)wrapper).SetDateMin( _in_min); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_format_cb_set_static_delegate == null) + { + efl_ui_format_cb_set_static_delegate = new efl_ui_format_cb_set_delegate(format_cb_set); } - return _ret_var; - } else { - return efl_ui_calendar_date_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min); - } - } - private static efl_ui_calendar_date_min_set_delegate efl_ui_calendar_date_min_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetFormatCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_cb_set_static_delegate) }); + } - private delegate Efl.Time.NativeStruct efl_ui_calendar_date_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_format_string_get_static_delegate == null) + { + efl_ui_format_string_get_static_delegate = new efl_ui_format_string_get_delegate(format_string_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFormatString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_get_static_delegate) }); + } - public delegate Efl.Time.NativeStruct efl_ui_calendar_date_max_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_calendar_date_max_get"); - private static Efl.Time.NativeStruct date_max_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_calendar_date_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _ret_var = default(Efl.Time); - try { - _ret_var = ((Calendar)wrapper).GetDateMax(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_format_string_set_static_delegate == null) + { + efl_ui_format_string_set_static_delegate = new efl_ui_format_string_set_delegate(format_string_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFormatString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_set_static_delegate) }); + } + + if (efl_ui_focus_composition_elements_get_static_delegate == null) + { + efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCompositionElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_get_static_delegate) }); + } + + if (efl_ui_focus_composition_elements_set_static_delegate == null) + { + efl_ui_focus_composition_elements_set_static_delegate = new efl_ui_focus_composition_elements_set_delegate(composition_elements_set); } + + if (methods.FirstOrDefault(m => m.Name == "SetCompositionElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_elements_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_set_static_delegate) }); + } + + if (efl_ui_focus_composition_logical_mode_get_static_delegate == null) + { + efl_ui_focus_composition_logical_mode_get_static_delegate = new efl_ui_focus_composition_logical_mode_get_delegate(logical_mode_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLogicalMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_logical_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_get_static_delegate) }); + } + + if (efl_ui_focus_composition_logical_mode_set_static_delegate == null) + { + efl_ui_focus_composition_logical_mode_set_static_delegate = new efl_ui_focus_composition_logical_mode_set_delegate(logical_mode_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLogicalMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_logical_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_set_static_delegate) }); + } + + if (efl_ui_focus_composition_dirty_static_delegate == null) + { + efl_ui_focus_composition_dirty_static_delegate = new efl_ui_focus_composition_dirty_delegate(dirty); + } + + if (methods.FirstOrDefault(m => m.Name == "Dirty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_dirty"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_dirty_static_delegate) }); + } + + if (efl_ui_focus_composition_prepare_static_delegate == null) + { + efl_ui_focus_composition_prepare_static_delegate = new efl_ui_focus_composition_prepare_delegate(prepare); + } + + if (methods.FirstOrDefault(m => m.Name == "Prepare") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_prepare"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_prepare_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Calendar.efl_ui_calendar_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.Ui.CalendarWeekday efl_ui_calendar_first_day_of_week_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.CalendarWeekday efl_ui_calendar_first_day_of_week_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_calendar_first_day_of_week_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_calendar_first_day_of_week_get"); + + private static Efl.Ui.CalendarWeekday first_day_of_week_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_calendar_first_day_of_week_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.CalendarWeekday _ret_var = default(Efl.Ui.CalendarWeekday); + try + { + _ret_var = ((Calendar)wrapper).GetFirstDayOfWeek(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_calendar_date_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_calendar_first_day_of_week_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_calendar_date_max_get_delegate efl_ui_calendar_date_max_get_static_delegate; + private static efl_ui_calendar_first_day_of_week_get_delegate efl_ui_calendar_first_day_of_week_get_static_delegate; + + + private delegate void efl_ui_calendar_first_day_of_week_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.CalendarWeekday day); + + + public delegate void efl_ui_calendar_first_day_of_week_set_api_delegate(System.IntPtr obj, Efl.Ui.CalendarWeekday day); + + public static Efl.Eo.FunctionWrapper efl_ui_calendar_first_day_of_week_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_calendar_first_day_of_week_set"); + + private static void first_day_of_week_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.CalendarWeekday day) + { + Eina.Log.Debug("function efl_ui_calendar_first_day_of_week_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Calendar)wrapper).SetFirstDayOfWeek(day); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_calendar_date_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct max); + + } + else + { + efl_ui_calendar_first_day_of_week_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), day); + } + } + private static efl_ui_calendar_first_day_of_week_set_delegate efl_ui_calendar_first_day_of_week_set_static_delegate; + + + private delegate Efl.Time.NativeStruct efl_ui_calendar_date_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Time.NativeStruct efl_ui_calendar_date_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_calendar_date_min_get"); + + private static Efl.Time.NativeStruct date_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_calendar_date_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _ret_var = default(Efl.Time); + try + { + _ret_var = ((Calendar)wrapper).GetDateMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_calendar_date_max_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct max); - public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_max_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_calendar_date_max_set"); - private static bool date_max_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct max) - { - Eina.Log.Debug("function efl_ui_calendar_date_max_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _in_max = max; - bool _ret_var = default(bool); - try { - _ret_var = ((Calendar)wrapper).SetDateMax( _in_max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_calendar_date_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max); + else + { + return efl_ui_calendar_date_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_calendar_date_max_set_delegate efl_ui_calendar_date_max_set_static_delegate; + private static efl_ui_calendar_date_min_get_delegate efl_ui_calendar_date_min_get_static_delegate; - private delegate Efl.Time.NativeStruct efl_ui_calendar_date_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_calendar_date_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct min); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_calendar_date_min_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct min); - public delegate Efl.Time.NativeStruct efl_ui_calendar_date_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_calendar_date_get"); - private static Efl.Time.NativeStruct date_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_calendar_date_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _ret_var = default(Efl.Time); - try { - _ret_var = ((Calendar)wrapper).GetDate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_min_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_calendar_date_min_set"); + + private static bool date_min_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct min) + { + Eina.Log.Debug("function efl_ui_calendar_date_min_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _in_min = min; + bool _ret_var = default(bool); + try + { + _ret_var = ((Calendar)wrapper).SetDateMin(_in_min); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_calendar_date_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min); } + } + + private static efl_ui_calendar_date_min_set_delegate efl_ui_calendar_date_min_set_static_delegate; + + + private delegate Efl.Time.NativeStruct efl_ui_calendar_date_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Time.NativeStruct efl_ui_calendar_date_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_calendar_date_max_get"); + + private static Efl.Time.NativeStruct date_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_calendar_date_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _ret_var = default(Efl.Time); + try + { + _ret_var = ((Calendar)wrapper).GetDateMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_calendar_date_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_calendar_date_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_calendar_date_get_delegate efl_ui_calendar_date_get_static_delegate; + private static efl_ui_calendar_date_max_get_delegate efl_ui_calendar_date_max_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_calendar_date_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct date); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_calendar_date_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct max); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_calendar_date_max_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct max); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_calendar_date_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct date); - public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_calendar_date_set"); - private static bool date_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct date) - { - Eina.Log.Debug("function efl_ui_calendar_date_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _in_date = date; + public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_calendar_date_max_set"); + + private static bool date_max_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct max) + { + Eina.Log.Debug("function efl_ui_calendar_date_max_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _in_max = max; bool _ret_var = default(bool); - try { - _ret_var = ((Calendar)wrapper).SetDate( _in_date); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((Calendar)wrapper).SetDateMax(_in_max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_calendar_date_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), date); - } - } - private static efl_ui_calendar_date_set_delegate efl_ui_calendar_date_set_static_delegate; + } + else + { + return efl_ui_calendar_date_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max); + } + } - private delegate void efl_ui_format_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); + private static efl_ui_calendar_date_max_set_delegate efl_ui_calendar_date_max_set_static_delegate; + + + private delegate Efl.Time.NativeStruct efl_ui_calendar_date_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Time.NativeStruct efl_ui_calendar_date_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_calendar_date_get"); + + private static Efl.Time.NativeStruct date_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_calendar_date_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _ret_var = default(Efl.Time); + try + { + _ret_var = ((Calendar)wrapper).GetDate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_format_cb_set_api_delegate(System.IntPtr obj, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_ui_format_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_cb_set"); - private static void format_cb_set(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_ui_format_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.FormatFuncCbWrapper func_wrapper = new Efl.Ui.FormatFuncCbWrapper(func, func_data, func_free_cb); - - try { - ((Calendar)wrapper).SetFormatCb( func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_format_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + } + else + { + return efl_ui_calendar_date_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate; + private static efl_ui_calendar_date_get_delegate efl_ui_calendar_date_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_format_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_calendar_date_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct date); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_calendar_date_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct date); + + public static Efl.Eo.FunctionWrapper efl_ui_calendar_date_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_calendar_date_set"); + + private static bool date_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct date) + { + Eina.Log.Debug("function efl_ui_calendar_date_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _in_date = date; + bool _ret_var = default(bool); + try + { + _ret_var = ((Calendar)wrapper).SetDate(_in_date); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_format_string_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_format_string_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_string_get"); - private static System.String format_string_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_format_string_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Calendar)wrapper).GetFormatString(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_calendar_date_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), date); + } } - } - private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate; + private static efl_ui_calendar_date_set_delegate efl_ui_calendar_date_set_static_delegate; - private delegate void efl_ui_format_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); + + private delegate void efl_ui_format_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); + + public delegate void efl_ui_format_cb_set_api_delegate(System.IntPtr obj, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); - public delegate void efl_ui_format_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); - public static Efl.Eo.FunctionWrapper efl_ui_format_string_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_string_set"); - private static void format_string_set(System.IntPtr obj, System.IntPtr pd, System.String units) - { - Eina.Log.Debug("function efl_ui_format_string_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Calendar)wrapper).SetFormatString( units); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), units); + public static Efl.Eo.FunctionWrapper efl_ui_format_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_cb_set"); + + private static void format_cb_set(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_ui_format_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.FormatFuncCbWrapper func_wrapper = new Efl.Ui.FormatFuncCbWrapper(func, func_data, func_free_cb); + + try + { + ((Calendar)wrapper).SetFormatCb(func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_format_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + } } - } - private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate; + private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_format_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_format_string_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_format_string_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_string_get"); + + private static System.String format_string_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_format_string_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Calendar)wrapper).GetFormatString(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + + } + else + { + return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate; + + + private delegate void efl_ui_format_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); + + + public delegate void efl_ui_format_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); + + public static Efl.Eo.FunctionWrapper efl_ui_format_string_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_string_set"); + + private static void format_string_set(System.IntPtr obj, System.IntPtr pd, System.String units) + { + Eina.Log.Debug("function efl_ui_format_string_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Calendar)wrapper).SetFormatString(units); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate System.IntPtr efl_ui_focus_composition_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_elements_get"); - private static System.IntPtr composition_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((Calendar)wrapper).GetCompositionElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), units); } + } + + private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_focus_composition_elements_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_elements_get"); + + private static System.IntPtr composition_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((Calendar)wrapper).GetCompositionElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_ui_focus_composition_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_composition_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_composition_elements_get_delegate efl_ui_focus_composition_elements_get_static_delegate; + private static efl_ui_focus_composition_elements_get_delegate efl_ui_focus_composition_elements_get_static_delegate; - private delegate void efl_ui_focus_composition_elements_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order); + + private delegate void efl_ui_focus_composition_elements_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order); + + public delegate void efl_ui_focus_composition_elements_set_api_delegate(System.IntPtr obj, System.IntPtr logical_order); - public delegate void efl_ui_focus_composition_elements_set_api_delegate(System.IntPtr obj, System.IntPtr logical_order); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_elements_set"); - private static void composition_elements_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order) - { - Eina.Log.Debug("function efl_ui_focus_composition_elements_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_logical_order = new Eina.List(logical_order, true, false); + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_elements_set"); + + private static void composition_elements_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order) + { + Eina.Log.Debug("function efl_ui_focus_composition_elements_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_logical_order = new Eina.List(logical_order, true, false); - try { - ((Calendar)wrapper).SetCompositionElements( _in_logical_order); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_elements_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_order); + try + { + ((Calendar)wrapper).SetCompositionElements(_in_logical_order); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_elements_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_order); + } } - } - private static efl_ui_focus_composition_elements_set_delegate efl_ui_focus_composition_elements_set_static_delegate; + private static efl_ui_focus_composition_elements_set_delegate efl_ui_focus_composition_elements_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_composition_logical_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_composition_logical_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_logical_mode_get"); + + private static bool logical_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Calendar)wrapper).GetLogicalMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_composition_logical_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_composition_logical_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_logical_mode_get"); - private static bool logical_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Calendar)wrapper).GetLogicalMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_ui_focus_composition_logical_mode_get_delegate efl_ui_focus_composition_logical_mode_get_static_delegate; + + + private delegate void efl_ui_focus_composition_logical_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool logical_mode); + + + public delegate void efl_ui_focus_composition_logical_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool logical_mode); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_logical_mode_set"); + + private static void logical_mode_set(System.IntPtr obj, System.IntPtr pd, bool logical_mode) + { + Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Calendar)wrapper).SetLogicalMode(logical_mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_mode); } - return _ret_var; - } else { - return efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_composition_logical_mode_get_delegate efl_ui_focus_composition_logical_mode_get_static_delegate; + private static efl_ui_focus_composition_logical_mode_set_delegate efl_ui_focus_composition_logical_mode_set_static_delegate; - private delegate void efl_ui_focus_composition_logical_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool logical_mode); + + private delegate void efl_ui_focus_composition_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_composition_dirty_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_composition_logical_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool logical_mode); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_logical_mode_set"); - private static void logical_mode_set(System.IntPtr obj, System.IntPtr pd, bool logical_mode) - { - Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Calendar)wrapper).SetLogicalMode( logical_mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_mode); + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_dirty_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_dirty"); + + private static void dirty(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_dirty was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Calendar)wrapper).Dirty(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_composition_logical_mode_set_delegate efl_ui_focus_composition_logical_mode_set_static_delegate; + private static efl_ui_focus_composition_dirty_delegate efl_ui_focus_composition_dirty_static_delegate; - private delegate void efl_ui_focus_composition_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_composition_prepare_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_composition_prepare_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_composition_dirty_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_dirty_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_dirty"); - private static void dirty(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_dirty was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Calendar)wrapper).Dirty(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_prepare_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_prepare"); + + private static void prepare(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_prepare was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Calendar)wrapper).Prepare(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_composition_dirty_delegate efl_ui_focus_composition_dirty_static_delegate; + private static efl_ui_focus_composition_prepare_delegate efl_ui_focus_composition_prepare_static_delegate; - private delegate void efl_ui_focus_composition_prepare_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_focus_composition_prepare_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_prepare_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_prepare"); - private static void prepare(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_prepare was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Calendar)wrapper).Prepare(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_composition_prepare_delegate efl_ui_focus_composition_prepare_static_delegate; } -} } -namespace Efl { namespace Ui { + +namespace Efl { + +namespace Ui { + /// A weekday /// See also . public enum CalendarWeekday @@ -857,4 +1189,8 @@ Saturday = 6, /// Sentinel value to indicate last enum field during iteration Last = 7, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar_item.eo.cs index 3c93b5f..4e9a184 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar_item.eo.cs @@ -3,315 +3,405 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// EFL UI Calendar Item class -[CalendarItemNativeInherit] +[Efl.Ui.CalendarItem.NativeMethods] public class CalendarItem : Efl.Object, Efl.Eo.IWrapper,Efl.Ui.Focus.IObject { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (CalendarItem)) - return Efl.Ui.CalendarItemNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(CalendarItem)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_calendar_item_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public CalendarItem(Efl.Object parent= null - ) : - base(efl_ui_calendar_item_class_get(), typeof(CalendarItem), parent) + ) : base(efl_ui_calendar_item_class_get(), typeof(CalendarItem), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected CalendarItem(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected CalendarItem(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected CalendarItem(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object FocusChangedEvtKey = new object(); + /// Emitted if the focus state has changed. /// (Since EFL 1.22) public event EventHandler FocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusChangedEvt. - public void On_FocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e) + public void OnFocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusChangedEvtKey]; + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusChangedEvt_delegate; - private void on_FocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_FocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object FocusManagerChangedEvtKey = new object(); /// Emitted when a new manager is the parent for this object. /// (Since EFL 1.22) public event EventHandler FocusManagerChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusManagerChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusManagerChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusManagerChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusManagerChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusManagerChangedEvt. - public void On_FocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusManagerChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusManagerChangedEvt_delegate; - private void on_FocusManagerChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e) { - Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_FocusManagerChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FocusParentChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Emitted when a new logical parent should be used. /// (Since EFL 1.22) public event EventHandler FocusParentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusParentChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusParentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusParentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusParentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusParentChangedEvt. - public void On_FocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusParentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusParentChangedEvt_delegate; - private void on_FocusParentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e) { - Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_FocusParentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ChildFocusChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Emitted if child_focus has changed. /// (Since EFL 1.22) public event EventHandler ChildFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChildFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ChildFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChildFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChildFocusChangedEvt. - public void On_ChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e) + public void OnChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildFocusChangedEvtKey]; + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildFocusChangedEvt_delegate; - private void on_ChildFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_ChildFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object FocusGeometryChangedEvtKey = new object(); /// Emitted if focus geometry of this object has changed. /// (Since EFL 1.22) public event EventHandler FocusGeometryChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusGeometryChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusGeometryChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusGeometryChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusGeometryChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusGeometryChangedEvt. - public void On_FocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusGeometryChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusGeometryChangedEvt_delegate; - private void on_FocusGeometryChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e) { - Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_FocusGeometryChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_FocusChangedEvt_delegate = new Efl.EventCb(on_FocusChangedEvt_NativeCallback); - evt_FocusManagerChangedEvt_delegate = new Efl.EventCb(on_FocusManagerChangedEvt_NativeCallback); - evt_FocusParentChangedEvt_delegate = new Efl.EventCb(on_FocusParentChangedEvt_NativeCallback); - evt_ChildFocusChangedEvt_delegate = new Efl.EventCb(on_ChildFocusChangedEvt_NativeCallback); - evt_FocusGeometryChangedEvt_delegate = new Efl.EventCb(on_FocusGeometryChangedEvt_NativeCallback); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Day number /// Day number virtual public int GetDayNumber() { - var _ret_var = Efl.Ui.CalendarItemNativeInherit.efl_ui_calendar_item_day_number_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.CalendarItem.NativeMethods.efl_ui_calendar_item_day_number_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Day number /// Day number - /// - virtual public void SetDayNumber( int i) { - Efl.Ui.CalendarItemNativeInherit.efl_ui_calendar_item_day_number_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), i); + virtual public void SetDayNumber(int i) { + Efl.Ui.CalendarItem.NativeMethods.efl_ui_calendar_item_day_number_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),i); Eina.Error.RaiseIfUnhandledException(); } /// The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects. /// (Since EFL 1.22) /// The geometry to use. virtual public Eina.Rect GetFocusGeometry() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -319,7 +409,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The focused state of the object. virtual public bool GetFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -327,16 +417,15 @@ private static object FocusGeometryChangedEvtKey = new object(); /// The function emits the focus state events, if focus is different to the previous state. /// (Since EFL 1.22) /// The focused state of the object. - /// - virtual public void SetFocus( bool focus) { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), focus); + virtual public void SetFocus(bool focus) { + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),focus); Eina.Error.RaiseIfUnhandledException(); } /// This is the focus manager where this focus object is registered in. The element which is the root of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in. /// (Since EFL 1.22) /// The manager object virtual public Efl.Ui.Focus.IManager GetFocusManager() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -344,7 +433,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The focus parent. virtual public Efl.Ui.Focus.IObject GetFocusParent() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -352,37 +441,34 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if a child has focus. virtual public bool GetChildFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_child_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_child_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Indicates if a child of this object has focus set to true. /// (Since EFL 1.22) /// true if a child has focus. - /// - virtual public void SetChildFocus( bool child_focus) { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_child_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child_focus); + virtual public void SetChildFocus(bool child_focus) { + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_child_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child_focus); Eina.Error.RaiseIfUnhandledException(); } /// Tells the object that its children will be queried soon by the focus manager. Overwrite this to update the order of the children. Deleting items in this call will result in undefined behaviour and may cause your system to crash. /// (Since EFL 1.22) - /// virtual public void SetupOrder() { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_setup_order_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_setup_order_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This is called when is called, but only on the first call, additional recursive calls to will not call this function again. /// (Since EFL 1.22) - /// virtual public void SetupOrderNonRecursive() { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Virtual function handling focus in/out events on the widget /// (Since EFL 1.22) /// true if this widget can handle focus, false otherwise virtual public bool UpdateOnFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_on_focus_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_on_focus_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -390,7 +476,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Day number public int DayNumber { get { return GetDayNumber(); } - set { SetDayNumber( value); } + set { SetDayNumber(value); } } /// The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects. /// (Since EFL 1.22) @@ -403,7 +489,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// The focused state of the object. public bool Focus { get { return GetFocus(); } - set { SetFocus( value); } + set { SetFocus(value); } } /// This is the focus manager where this focus object is registered in. The element which is the root of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in. /// (Since EFL 1.22) @@ -422,372 +508,588 @@ private static object FocusGeometryChangedEvtKey = new object(); /// true if a child has focus. public bool ChildFocus { get { return GetChildFocus(); } - set { SetChildFocus( value); } + set { SetChildFocus(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.CalendarItem.efl_ui_calendar_item_class_get(); } -} -public class CalendarItemNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_calendar_item_day_number_get_static_delegate == null) - efl_ui_calendar_item_day_number_get_static_delegate = new efl_ui_calendar_item_day_number_get_delegate(day_number_get); - if (methods.FirstOrDefault(m => m.Name == "GetDayNumber") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_item_day_number_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_item_day_number_get_static_delegate)}); - if (efl_ui_calendar_item_day_number_set_static_delegate == null) - efl_ui_calendar_item_day_number_set_static_delegate = new efl_ui_calendar_item_day_number_set_delegate(day_number_set); - if (methods.FirstOrDefault(m => m.Name == "SetDayNumber") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_calendar_item_day_number_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_item_day_number_set_static_delegate)}); - if (efl_ui_focus_object_focus_geometry_get_static_delegate == null) - efl_ui_focus_object_focus_geometry_get_static_delegate = new efl_ui_focus_object_focus_geometry_get_delegate(focus_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_geometry_get_static_delegate)}); - if (efl_ui_focus_object_focus_get_static_delegate == null) - efl_ui_focus_object_focus_get_static_delegate = new efl_ui_focus_object_focus_get_delegate(focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_get_static_delegate)}); - if (efl_ui_focus_object_focus_set_static_delegate == null) - efl_ui_focus_object_focus_set_static_delegate = new efl_ui_focus_object_focus_set_delegate(focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_set_static_delegate)}); - if (efl_ui_focus_object_focus_manager_get_static_delegate == null) - efl_ui_focus_object_focus_manager_get_static_delegate = new efl_ui_focus_object_focus_manager_get_delegate(focus_manager_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusManager") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_manager_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_manager_get_static_delegate)}); - if (efl_ui_focus_object_focus_parent_get_static_delegate == null) - efl_ui_focus_object_focus_parent_get_static_delegate = new efl_ui_focus_object_focus_parent_get_delegate(focus_parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_parent_get_static_delegate)}); - if (efl_ui_focus_object_child_focus_get_static_delegate == null) - efl_ui_focus_object_child_focus_get_static_delegate = new efl_ui_focus_object_child_focus_get_delegate(child_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetChildFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_child_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_get_static_delegate)}); - if (efl_ui_focus_object_child_focus_set_static_delegate == null) - efl_ui_focus_object_child_focus_set_static_delegate = new efl_ui_focus_object_child_focus_set_delegate(child_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetChildFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_child_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_set_static_delegate)}); - if (efl_ui_focus_object_setup_order_static_delegate == null) - efl_ui_focus_object_setup_order_static_delegate = new efl_ui_focus_object_setup_order_delegate(setup_order); - if (methods.FirstOrDefault(m => m.Name == "SetupOrder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_setup_order"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_static_delegate)}); - if (efl_ui_focus_object_setup_order_non_recursive_static_delegate == null) - efl_ui_focus_object_setup_order_non_recursive_static_delegate = new efl_ui_focus_object_setup_order_non_recursive_delegate(setup_order_non_recursive); - if (methods.FirstOrDefault(m => m.Name == "SetupOrderNonRecursive") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_setup_order_non_recursive"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_non_recursive_static_delegate)}); - if (efl_ui_focus_object_on_focus_update_static_delegate == null) - efl_ui_focus_object_on_focus_update_static_delegate = new efl_ui_focus_object_on_focus_update_delegate(on_focus_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateOnFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_on_focus_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_on_focus_update_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.CalendarItem.efl_ui_calendar_item_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Ui.CalendarItem.efl_ui_calendar_item_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_calendar_item_day_number_get_static_delegate == null) + { + efl_ui_calendar_item_day_number_get_static_delegate = new efl_ui_calendar_item_day_number_get_delegate(day_number_get); + } - private delegate int efl_ui_calendar_item_day_number_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetDayNumber") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_item_day_number_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_item_day_number_get_static_delegate) }); + } + if (efl_ui_calendar_item_day_number_set_static_delegate == null) + { + efl_ui_calendar_item_day_number_set_static_delegate = new efl_ui_calendar_item_day_number_set_delegate(day_number_set); + } - public delegate int efl_ui_calendar_item_day_number_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_calendar_item_day_number_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_calendar_item_day_number_get"); - private static int day_number_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_calendar_item_day_number_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((CalendarItem)wrapper).GetDayNumber(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDayNumber") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_calendar_item_day_number_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_calendar_item_day_number_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_calendar_item_day_number_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_calendar_item_day_number_get_delegate efl_ui_calendar_item_day_number_get_static_delegate; + if (efl_ui_focus_object_focus_geometry_get_static_delegate == null) + { + efl_ui_focus_object_focus_geometry_get_static_delegate = new efl_ui_focus_object_focus_geometry_get_delegate(focus_geometry_get); + } - private delegate void efl_ui_calendar_item_day_number_set_delegate(System.IntPtr obj, System.IntPtr pd, int i); + if (methods.FirstOrDefault(m => m.Name == "GetFocusGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_geometry_get_static_delegate) }); + } + if (efl_ui_focus_object_focus_get_static_delegate == null) + { + efl_ui_focus_object_focus_get_static_delegate = new efl_ui_focus_object_focus_get_delegate(focus_get); + } - public delegate void efl_ui_calendar_item_day_number_set_api_delegate(System.IntPtr obj, int i); - public static Efl.Eo.FunctionWrapper efl_ui_calendar_item_day_number_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_calendar_item_day_number_set"); - private static void day_number_set(System.IntPtr obj, System.IntPtr pd, int i) - { - Eina.Log.Debug("function efl_ui_calendar_item_day_number_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CalendarItem)wrapper).SetDayNumber( i); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_calendar_item_day_number_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), i); - } - } - private static efl_ui_calendar_item_day_number_set_delegate efl_ui_calendar_item_day_number_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_get_static_delegate) }); + } + if (efl_ui_focus_object_focus_set_static_delegate == null) + { + efl_ui_focus_object_focus_set_static_delegate = new efl_ui_focus_object_focus_set_delegate(focus_set); + } - private delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_set_static_delegate) }); + } + if (efl_ui_focus_object_focus_manager_get_static_delegate == null) + { + efl_ui_focus_object_focus_manager_get_static_delegate = new efl_ui_focus_object_focus_manager_get_delegate(focus_manager_get); + } - public delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_geometry_get"); - private static Eina.Rect.NativeStruct focus_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((CalendarItem)wrapper).GetFocusGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFocusManager") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_manager_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_manager_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_focus_geometry_get_delegate efl_ui_focus_object_focus_geometry_get_static_delegate; + if (efl_ui_focus_object_focus_parent_get_static_delegate == null) + { + efl_ui_focus_object_focus_parent_get_static_delegate = new efl_ui_focus_object_focus_parent_get_delegate(focus_parent_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFocusParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_parent_get_static_delegate) }); + } + if (efl_ui_focus_object_child_focus_get_static_delegate == null) + { + efl_ui_focus_object_child_focus_get_static_delegate = new efl_ui_focus_object_child_focus_get_delegate(child_focus_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_get"); - private static bool focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((CalendarItem)wrapper).GetFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetChildFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_child_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_get_static_delegate) }); + } + + if (efl_ui_focus_object_child_focus_set_static_delegate == null) + { + efl_ui_focus_object_child_focus_set_static_delegate = new efl_ui_focus_object_child_focus_set_delegate(child_focus_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetChildFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_child_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_set_static_delegate) }); + } + + if (efl_ui_focus_object_setup_order_static_delegate == null) + { + efl_ui_focus_object_setup_order_static_delegate = new efl_ui_focus_object_setup_order_delegate(setup_order); + } + + if (methods.FirstOrDefault(m => m.Name == "SetupOrder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_setup_order"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_static_delegate) }); + } + + if (efl_ui_focus_object_setup_order_non_recursive_static_delegate == null) + { + efl_ui_focus_object_setup_order_non_recursive_static_delegate = new efl_ui_focus_object_setup_order_non_recursive_delegate(setup_order_non_recursive); } + + if (methods.FirstOrDefault(m => m.Name == "SetupOrderNonRecursive") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_setup_order_non_recursive"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_non_recursive_static_delegate) }); + } + + if (efl_ui_focus_object_on_focus_update_static_delegate == null) + { + efl_ui_focus_object_on_focus_update_static_delegate = new efl_ui_focus_object_on_focus_update_delegate(on_focus_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateOnFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_on_focus_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_on_focus_update_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.CalendarItem.efl_ui_calendar_item_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate int efl_ui_calendar_item_day_number_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_ui_calendar_item_day_number_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_calendar_item_day_number_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_calendar_item_day_number_get"); + + private static int day_number_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_calendar_item_day_number_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((CalendarItem)wrapper).GetDayNumber(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_object_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_calendar_item_day_number_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_object_focus_get_delegate efl_ui_focus_object_focus_get_static_delegate; + private static efl_ui_calendar_item_day_number_get_delegate efl_ui_calendar_item_day_number_get_static_delegate; - private delegate void efl_ui_focus_object_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus); + + private delegate void efl_ui_calendar_item_day_number_set_delegate(System.IntPtr obj, System.IntPtr pd, int i); + + public delegate void efl_ui_calendar_item_day_number_set_api_delegate(System.IntPtr obj, int i); - public delegate void efl_ui_focus_object_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_set"); - private static void focus_set(System.IntPtr obj, System.IntPtr pd, bool focus) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CalendarItem)wrapper).SetFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_object_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + public static Efl.Eo.FunctionWrapper efl_ui_calendar_item_day_number_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_calendar_item_day_number_set"); + + private static void day_number_set(System.IntPtr obj, System.IntPtr pd, int i) + { + Eina.Log.Debug("function efl_ui_calendar_item_day_number_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((CalendarItem)wrapper).SetDayNumber(i); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_calendar_item_day_number_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), i); + } } - } - private static efl_ui_focus_object_focus_set_delegate efl_ui_focus_object_focus_set_static_delegate; + private static efl_ui_calendar_item_day_number_set_delegate efl_ui_calendar_item_day_number_set_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_geometry_get"); + + private static Eina.Rect.NativeStruct focus_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((CalendarItem)wrapper).GetFocusGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_manager_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_manager_get"); - private static Efl.Ui.Focus.IManager focus_manager_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_manager_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((CalendarItem)wrapper).GetFocusManager(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_object_focus_geometry_get_delegate efl_ui_focus_object_focus_geometry_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_object_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_object_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_get"); + + private static bool focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((CalendarItem)wrapper).GetFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_object_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_object_focus_manager_get_delegate efl_ui_focus_object_focus_manager_get_static_delegate; + private static efl_ui_focus_object_focus_get_delegate efl_ui_focus_object_focus_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_object_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus); + + public delegate void efl_ui_focus_object_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_parent_get"); - private static Efl.Ui.Focus.IObject focus_parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((CalendarItem)wrapper).GetFocusParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_set"); + + private static void focus_set(System.IntPtr obj, System.IntPtr pd, bool focus) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((CalendarItem)wrapper).SetFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_object_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); } - return _ret_var; - } else { - return efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_object_focus_parent_get_delegate efl_ui_focus_object_focus_parent_get_static_delegate; + private static efl_ui_focus_object_focus_set_delegate efl_ui_focus_object_focus_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_child_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_manager_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_manager_get"); + + private static Efl.Ui.Focus.IManager focus_manager_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_manager_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((CalendarItem)wrapper).GetFocusManager(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_child_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_child_focus_get"); - private static bool child_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_child_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((CalendarItem)wrapper).GetChildFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_object_focus_manager_get_delegate efl_ui_focus_object_focus_manager_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_parent_get"); + + private static Efl.Ui.Focus.IObject focus_parent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_parent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((CalendarItem)wrapper).GetFocusParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_object_child_focus_get_delegate efl_ui_focus_object_child_focus_get_static_delegate; + private static efl_ui_focus_object_focus_parent_get_delegate efl_ui_focus_object_focus_parent_get_static_delegate; - private delegate void efl_ui_focus_object_child_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool child_focus); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_object_child_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_object_child_focus_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_object_child_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool child_focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_child_focus_set"); - private static void child_focus_set(System.IntPtr obj, System.IntPtr pd, bool child_focus) - { - Eina.Log.Debug("function efl_ui_focus_object_child_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CalendarItem)wrapper).SetChildFocus( child_focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_object_child_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_focus); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_child_focus_get"); + + private static bool child_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_child_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((CalendarItem)wrapper).GetChildFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_object_child_focus_set_delegate efl_ui_focus_object_child_focus_set_static_delegate; + private static efl_ui_focus_object_child_focus_get_delegate efl_ui_focus_object_child_focus_get_static_delegate; - private delegate void efl_ui_focus_object_setup_order_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_object_child_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool child_focus); + + public delegate void efl_ui_focus_object_child_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool child_focus); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_child_focus_set"); + + private static void child_focus_set(System.IntPtr obj, System.IntPtr pd, bool child_focus) + { + Eina.Log.Debug("function efl_ui_focus_object_child_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((CalendarItem)wrapper).SetChildFocus(child_focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_focus_object_setup_order_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_setup_order"); - private static void setup_order(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_setup_order was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((CalendarItem)wrapper).SetupOrder(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_focus_object_setup_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_focus_object_child_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_focus); + } } - } - private static efl_ui_focus_object_setup_order_delegate efl_ui_focus_object_setup_order_static_delegate; + private static efl_ui_focus_object_child_focus_set_delegate efl_ui_focus_object_child_focus_set_static_delegate; - private delegate void efl_ui_focus_object_setup_order_non_recursive_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_object_setup_order_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_object_setup_order_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_object_setup_order_non_recursive_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_non_recursive_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_setup_order_non_recursive"); - private static void setup_order_non_recursive(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_setup_order_non_recursive was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CalendarItem)wrapper).SetupOrderNonRecursive(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_setup_order"); + + private static void setup_order(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_setup_order was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((CalendarItem)wrapper).SetupOrder(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_object_setup_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_object_setup_order_non_recursive_delegate efl_ui_focus_object_setup_order_non_recursive_static_delegate; + private static efl_ui_focus_object_setup_order_delegate efl_ui_focus_object_setup_order_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_on_focus_update_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_object_setup_order_non_recursive_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_object_setup_order_non_recursive_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_on_focus_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_on_focus_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_on_focus_update"); - private static bool on_focus_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_on_focus_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((CalendarItem)wrapper).UpdateOnFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_non_recursive_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_setup_order_non_recursive"); + + private static void setup_order_non_recursive(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_setup_order_non_recursive was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((CalendarItem)wrapper).SetupOrderNonRecursive(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_ui_focus_object_setup_order_non_recursive_delegate efl_ui_focus_object_setup_order_non_recursive_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_object_on_focus_update_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_object_on_focus_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_on_focus_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_on_focus_update"); + + private static bool on_focus_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_on_focus_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((CalendarItem)wrapper).UpdateOnFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_object_on_focus_update_delegate efl_ui_focus_object_on_focus_update_static_delegate; + + private static efl_ui_focus_object_on_focus_update_delegate efl_ui_focus_object_on_focus_update_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_check.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_check.eo.cs index 1b5ee4a..565afd2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_check.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_check.eo.cs @@ -3,163 +3,235 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Check widget /// The check widget allows for toggling a value between true and false. Check objects are a lot like radio objects in layout and functionality, except they do not work as a group, but independently, and only toggle the value of a boolean between false and true. -[CheckNativeInherit] +[Efl.Ui.Check.NativeMethods] public class Check : Efl.Ui.Nstate, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Check)) - return Efl.Ui.CheckNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Check)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_check_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Check(Efl.Object parent - , System.String style = null) : - base(efl_ui_check_class_get(), typeof(Check), parent) + , System.String style = null) : base(efl_ui_check_class_get(), typeof(Check), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Check(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Check(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Check(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// The on/off state of the check object. /// true if the check object is selected, false otherwise virtual public bool GetSelected() { - var _ret_var = Efl.Ui.CheckNativeInherit.efl_ui_check_selected_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Check.NativeMethods.efl_ui_check_selected_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The on/off state of the check object. /// true if the check object is selected, false otherwise - /// - virtual public void SetSelected( bool value) { - Efl.Ui.CheckNativeInherit.efl_ui_check_selected_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetSelected(bool value) { + Efl.Ui.Check.NativeMethods.efl_ui_check_selected_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// The on/off state of the check object. /// true if the check object is selected, false otherwise public bool Selected { get { return GetSelected(); } - set { SetSelected( value); } + set { SetSelected(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Check.efl_ui_check_class_get(); } -} -public class CheckNativeInherit : Efl.Ui.NstateNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_check_selected_get_static_delegate == null) - efl_ui_check_selected_get_static_delegate = new efl_ui_check_selected_get_delegate(selected_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelected") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_check_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_check_selected_get_static_delegate)}); - if (efl_ui_check_selected_set_static_delegate == null) - efl_ui_check_selected_set_static_delegate = new efl_ui_check_selected_set_delegate(selected_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelected") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_check_selected_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_check_selected_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Nstate.NativeMethods { - return Efl.Ui.Check.efl_ui_check_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Check.efl_ui_check_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_check_selected_get_static_delegate == null) + { + efl_ui_check_selected_get_static_delegate = new efl_ui_check_selected_get_delegate(selected_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_check_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_check_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_check_selected_get_static_delegate) }); + } + if (efl_ui_check_selected_set_static_delegate == null) + { + efl_ui_check_selected_set_static_delegate = new efl_ui_check_selected_set_delegate(selected_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_check_selected_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_check_selected_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_check_selected_get"); - private static bool selected_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_check_selected_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Check)wrapper).GetSelected(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_check_selected_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_check_selected_set_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Check.efl_ui_check_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_check_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_check_selected_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_check_selected_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_check_selected_get"); + + private static bool selected_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_check_selected_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Check)wrapper).GetSelected(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_check_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_check_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_check_selected_get_delegate efl_ui_check_selected_get_static_delegate; + private static efl_ui_check_selected_get_delegate efl_ui_check_selected_get_static_delegate; - private delegate void efl_ui_check_selected_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool value); + + private delegate void efl_ui_check_selected_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool value); + + public delegate void efl_ui_check_selected_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool value); - public delegate void efl_ui_check_selected_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool value); - public static Efl.Eo.FunctionWrapper efl_ui_check_selected_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_check_selected_set"); - private static void selected_set(System.IntPtr obj, System.IntPtr pd, bool value) - { - Eina.Log.Debug("function efl_ui_check_selected_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Check)wrapper).SetSelected( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_check_selected_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_check_selected_set"); + + private static void selected_set(System.IntPtr obj, System.IntPtr pd, bool value) + { + Eina.Log.Debug("function efl_ui_check_selected_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Check)wrapper).SetSelected(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_check_selected_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } - } else { - efl_ui_check_selected_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } - } - private static efl_ui_check_selected_set_delegate efl_ui_check_selected_set_static_delegate; + + private static efl_ui_check_selected_set_delegate efl_ui_check_selected_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_check_legacy_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_check_legacy_part.eo.cs index 2bc8c48..73eccfd 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_check_legacy_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_check_legacy_part.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary check internal part class -[CheckLegacyPartNativeInherit] +[Efl.Ui.CheckLegacyPart.NativeMethods] public class CheckLegacyPart : Efl.Ui.LayoutPartContent, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (CheckLegacyPart)) - return Efl.Ui.CheckLegacyPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(CheckLegacyPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_check_legacy_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public CheckLegacyPart(Efl.Object parent= null - ) : - base(efl_ui_check_legacy_part_class_get(), typeof(CheckLegacyPart), parent) + ) : base(efl_ui_check_legacy_part_class_get(), typeof(CheckLegacyPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected CheckLegacyPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected CheckLegacyPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected CheckLegacyPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.CheckLegacyPart.efl_ui_check_legacy_part_class_get(); } -} -public class CheckLegacyPartNativeInherit : Efl.Ui.LayoutPartContentNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.CheckLegacyPart.efl_ui_check_legacy_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPartContent.NativeMethods { - return Efl.Ui.CheckLegacyPart.efl_ui_check_legacy_part_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.CheckLegacyPart.efl_ui_check_legacy_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_clickable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_clickable.eo.cs index 837cfe1..1a9cf59 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_clickable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_clickable.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI clickable interface -[IClickableNativeInherit] +[Efl.Ui.IClickableConcrete.NativeMethods] public interface IClickable : Efl.Eo.IWrapper, IDisposable { @@ -54,507 +58,633 @@ IClickable { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IClickableConcrete)) - return Efl.Ui.IClickableNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IClickableConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_clickable_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IClickableConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IClickableConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ClickedEvtKey = new object(); + /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) + public void OnClickedDoubleEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedTripleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) + public void OnRepeatedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } private static IntPtr GetEflClassStatic() { return Efl.Ui.IClickableConcrete.efl_ui_clickable_interface_get(); } -} -public class IClickableNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IClickableConcrete.efl_ui_clickable_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IClickableConcrete.efl_ui_clickable_interface_get(); - } + /// 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(); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.IClickableConcrete.efl_ui_clickable_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_clock.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_clock.eo.cs index 352dfab..74fc4b4 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_clock.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_clock.eo.cs @@ -3,108 +3,143 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI clock class -[ClockNativeInherit] +[Efl.Ui.Clock.NativeMethods] public class Clock : Efl.Ui.LayoutBase, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Clock)) - return Efl.Ui.ClockNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Clock)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_clock_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Clock(Efl.Object parent - , System.String style = null) : - base(efl_ui_clock_class_get(), typeof(Clock), parent) + , System.String style = null) : base(efl_ui_clock_class_get(), typeof(Clock), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Clock(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Clock(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Clock(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ChangedEvtKey = new object(); + /// Called when clock changed public event EventHandler ChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_CLOCK_EVENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) { - eventHandlers.AddHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_CLOCK_EVENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedEvt. - public void On_ChangedEvt(EventArgs e) + public void OnChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedEvtKey]; + var key = "_EFL_UI_CLOCK_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedEvt_delegate; - private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// The current clock format. Format is a combination of allowed Libc date format specifiers like: "%b %d, %Y %I : %M %p". /// Maximum allowed format length is 64 chars. @@ -118,7 +153,7 @@ private static object ChangedEvtKey = new object(); /// Default format is taken as per the system locale settings. /// The clock format. virtual public System.String GetFormat() { - var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_format_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_format_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -133,39 +168,36 @@ private static object ChangedEvtKey = new object(); /// /// Default format is taken as per the system locale settings. /// The clock format. - /// - virtual public void SetFormat( System.String fmt) { - Efl.Ui.ClockNativeInherit.efl_ui_clock_format_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fmt); + virtual public void SetFormat(System.String fmt) { + Efl.Ui.Clock.NativeMethods.efl_ui_clock_format_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fmt); Eina.Error.RaiseIfUnhandledException(); } /// Whether the given clock widget should be paused or not. /// This function pauses or starts the clock widget. /// true to pause clock, false otherwise virtual public bool GetPause() { - var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_pause_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_pause_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether the given clock widget should be paused or not. /// This function pauses or starts the clock widget. /// true to pause clock, false otherwise - /// - virtual public void SetPause( bool paused) { - Efl.Ui.ClockNativeInherit.efl_ui_clock_pause_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), paused); + virtual public void SetPause(bool paused) { + Efl.Ui.Clock.NativeMethods.efl_ui_clock_pause_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),paused); Eina.Error.RaiseIfUnhandledException(); } /// Digits of the given clock widget should be editable when in editing mode. /// true to set edit mode, false otherwise virtual public bool GetEditMode() { - var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_edit_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_edit_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Digits of the given clock widget should be editable when in editing mode. /// true to set edit mode, false otherwise - /// - virtual public void SetEditMode( bool value) { - Efl.Ui.ClockNativeInherit.efl_ui_clock_edit_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetEditMode(bool value) { + Efl.Ui.Clock.NativeMethods.efl_ui_clock_edit_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// The lower boundary of a field. @@ -180,7 +212,7 @@ private static object ChangedEvtKey = new object(); /// Minute: default value range is from 0 to 59. /// Time structure containing the minimum time value. virtual public Efl.Time GetTimeMin() { - var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_time_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -195,10 +227,9 @@ private static object ChangedEvtKey = new object(); /// /// Minute: default value range is from 0 to 59. /// Time structure containing the minimum time value. - /// - virtual public void SetTimeMin( Efl.Time mintime) { + virtual public void SetTimeMin(Efl.Time mintime) { Efl.Time.NativeStruct _in_mintime = mintime; - Efl.Ui.ClockNativeInherit.efl_ui_clock_time_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_mintime); + Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_mintime); Eina.Error.RaiseIfUnhandledException(); } /// The upper boundary of a field. @@ -213,7 +244,7 @@ private static object ChangedEvtKey = new object(); /// Minute: default value range is from 0 to 59. /// Time structure containing the maximum time value. virtual public Efl.Time GetTimeMax() { - var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_time_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -228,10 +259,9 @@ private static object ChangedEvtKey = new object(); /// /// Minute: default value range is from 0 to 59. /// Time structure containing the maximum time value. - /// - virtual public void SetTimeMax( Efl.Time maxtime) { + virtual public void SetTimeMax(Efl.Time maxtime) { Efl.Time.NativeStruct _in_maxtime = maxtime; - Efl.Ui.ClockNativeInherit.efl_ui_clock_time_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_maxtime); + Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_maxtime); Eina.Error.RaiseIfUnhandledException(); } /// The current value of a clock object. @@ -246,7 +276,7 @@ private static object ChangedEvtKey = new object(); /// Minute: default value range is from 0 to 59. /// Time structure containing the time value. virtual public Efl.Time GetTime() { - var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_time_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -261,26 +291,24 @@ private static object ChangedEvtKey = new object(); /// /// Minute: default value range is from 0 to 59. /// Time structure containing the time value. - /// - virtual public void SetTime( Efl.Time curtime) { + virtual public void SetTime(Efl.Time curtime) { Efl.Time.NativeStruct _in_curtime = curtime; - Efl.Ui.ClockNativeInherit.efl_ui_clock_time_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_curtime); + Efl.Ui.Clock.NativeMethods.efl_ui_clock_time_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_curtime); Eina.Error.RaiseIfUnhandledException(); } /// The field to be visible/not. /// Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc. /// true field can be visible, false otherwise. - virtual public bool GetFieldVisible( Efl.Ui.ClockType fieldtype) { - var _ret_var = Efl.Ui.ClockNativeInherit.efl_ui_clock_field_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fieldtype); + virtual public bool GetFieldVisible(Efl.Ui.ClockType fieldtype) { + var _ret_var = Efl.Ui.Clock.NativeMethods.efl_ui_clock_field_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fieldtype); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The field to be visible/not. /// Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc. /// true field can be visible, false otherwise. - /// - virtual public void SetFieldVisible( Efl.Ui.ClockType fieldtype, bool visible) { - Efl.Ui.ClockNativeInherit.efl_ui_clock_field_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fieldtype, visible); + virtual public void SetFieldVisible(Efl.Ui.ClockType fieldtype, bool visible) { + Efl.Ui.Clock.NativeMethods.efl_ui_clock_field_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fieldtype, visible); Eina.Error.RaiseIfUnhandledException(); } /// Get the field limits of a field. @@ -290,9 +318,8 @@ private static object ChangedEvtKey = new object(); /// Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc. /// Reference to field's minimum value. /// Reference to field's maximum value. - /// - virtual public void GetFieldLimit( Efl.Ui.ClockType fieldtype, out int min, out int max) { - Efl.Ui.ClockNativeInherit.efl_ui_clock_field_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fieldtype, out min, out max); + virtual public void GetFieldLimit(Efl.Ui.ClockType fieldtype, out int min, out int max) { + Efl.Ui.Clock.NativeMethods.efl_ui_clock_field_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fieldtype, out min, out max); Eina.Error.RaiseIfUnhandledException(); } /// Set a field to be visible or not. @@ -302,9 +329,8 @@ private static object ChangedEvtKey = new object(); /// Type of the field. #EFL_UI_CLOCK_TYPE_YEAR etc. /// Reference to field's minimum value. /// Reference to field's maximum value. - /// - virtual public void SetFieldLimit( Efl.Ui.ClockType fieldtype, int min, int max) { - Efl.Ui.ClockNativeInherit.efl_ui_clock_field_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fieldtype, min, max); + virtual public void SetFieldLimit(Efl.Ui.ClockType fieldtype, int min, int max) { + Efl.Ui.Clock.NativeMethods.efl_ui_clock_field_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fieldtype, min, max); Eina.Error.RaiseIfUnhandledException(); } /// The current clock format. Format is a combination of allowed Libc date format specifiers like: "%b %d, %Y %I : %M %p". @@ -320,20 +346,20 @@ private static object ChangedEvtKey = new object(); /// The clock format. public System.String Format { get { return GetFormat(); } - set { SetFormat( value); } + set { SetFormat(value); } } /// Whether the given clock widget should be paused or not. /// This function pauses or starts the clock widget. /// true to pause clock, false otherwise public bool Pause { get { return GetPause(); } - set { SetPause( value); } + set { SetPause(value); } } /// Digits of the given clock widget should be editable when in editing mode. /// true to set edit mode, false otherwise public bool EditMode { get { return GetEditMode(); } - set { SetEditMode( value); } + set { SetEditMode(value); } } /// The lower boundary of a field. /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137. @@ -348,7 +374,7 @@ private static object ChangedEvtKey = new object(); /// Time structure containing the minimum time value. public Efl.Time TimeMin { get { return GetTimeMin(); } - set { SetTimeMin( value); } + set { SetTimeMin(value); } } /// The upper boundary of a field. /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137. @@ -363,7 +389,7 @@ private static object ChangedEvtKey = new object(); /// Time structure containing the maximum time value. public Efl.Time TimeMax { get { return GetTimeMax(); } - set { SetTimeMax( value); } + set { SetTimeMax(value); } } /// The current value of a clock object. /// Year: years since 1900. Negative value represents year below 1900 (year value -30 represents 1870). Year default range is from 70 to 137. @@ -378,491 +404,778 @@ private static object ChangedEvtKey = new object(); /// Time structure containing the time value. public Efl.Time Time { get { return GetTime(); } - set { SetTime( value); } + set { SetTime(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Clock.efl_ui_clock_class_get(); } -} -public class ClockNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_clock_format_get_static_delegate == null) - efl_ui_clock_format_get_static_delegate = new efl_ui_clock_format_get_delegate(format_get); - if (methods.FirstOrDefault(m => m.Name == "GetFormat") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_format_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_format_get_static_delegate)}); - if (efl_ui_clock_format_set_static_delegate == null) - efl_ui_clock_format_set_static_delegate = new efl_ui_clock_format_set_delegate(format_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormat") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_format_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_format_set_static_delegate)}); - if (efl_ui_clock_pause_get_static_delegate == null) - efl_ui_clock_pause_get_static_delegate = new efl_ui_clock_pause_get_delegate(pause_get); - if (methods.FirstOrDefault(m => m.Name == "GetPause") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_pause_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_pause_get_static_delegate)}); - if (efl_ui_clock_pause_set_static_delegate == null) - efl_ui_clock_pause_set_static_delegate = new efl_ui_clock_pause_set_delegate(pause_set); - if (methods.FirstOrDefault(m => m.Name == "SetPause") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_pause_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_pause_set_static_delegate)}); - if (efl_ui_clock_edit_mode_get_static_delegate == null) - efl_ui_clock_edit_mode_get_static_delegate = new efl_ui_clock_edit_mode_get_delegate(edit_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetEditMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_edit_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_edit_mode_get_static_delegate)}); - if (efl_ui_clock_edit_mode_set_static_delegate == null) - efl_ui_clock_edit_mode_set_static_delegate = new efl_ui_clock_edit_mode_set_delegate(edit_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetEditMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_edit_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_edit_mode_set_static_delegate)}); - if (efl_ui_clock_time_min_get_static_delegate == null) - efl_ui_clock_time_min_get_static_delegate = new efl_ui_clock_time_min_get_delegate(time_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetTimeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_time_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_min_get_static_delegate)}); - if (efl_ui_clock_time_min_set_static_delegate == null) - efl_ui_clock_time_min_set_static_delegate = new efl_ui_clock_time_min_set_delegate(time_min_set); - if (methods.FirstOrDefault(m => m.Name == "SetTimeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_time_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_min_set_static_delegate)}); - if (efl_ui_clock_time_max_get_static_delegate == null) - efl_ui_clock_time_max_get_static_delegate = new efl_ui_clock_time_max_get_delegate(time_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetTimeMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_time_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_max_get_static_delegate)}); - if (efl_ui_clock_time_max_set_static_delegate == null) - efl_ui_clock_time_max_set_static_delegate = new efl_ui_clock_time_max_set_delegate(time_max_set); - if (methods.FirstOrDefault(m => m.Name == "SetTimeMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_time_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_max_set_static_delegate)}); - if (efl_ui_clock_time_get_static_delegate == null) - efl_ui_clock_time_get_static_delegate = new efl_ui_clock_time_get_delegate(time_get); - if (methods.FirstOrDefault(m => m.Name == "GetTime") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_time_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_get_static_delegate)}); - if (efl_ui_clock_time_set_static_delegate == null) - efl_ui_clock_time_set_static_delegate = new efl_ui_clock_time_set_delegate(time_set); - if (methods.FirstOrDefault(m => m.Name == "SetTime") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_time_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_set_static_delegate)}); - if (efl_ui_clock_field_visible_get_static_delegate == null) - efl_ui_clock_field_visible_get_static_delegate = new efl_ui_clock_field_visible_get_delegate(field_visible_get); - if (methods.FirstOrDefault(m => m.Name == "GetFieldVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_field_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_visible_get_static_delegate)}); - if (efl_ui_clock_field_visible_set_static_delegate == null) - efl_ui_clock_field_visible_set_static_delegate = new efl_ui_clock_field_visible_set_delegate(field_visible_set); - if (methods.FirstOrDefault(m => m.Name == "SetFieldVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_field_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_visible_set_static_delegate)}); - if (efl_ui_clock_field_limit_get_static_delegate == null) - efl_ui_clock_field_limit_get_static_delegate = new efl_ui_clock_field_limit_get_delegate(field_limit_get); - if (methods.FirstOrDefault(m => m.Name == "GetFieldLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_field_limit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_limit_get_static_delegate)}); - if (efl_ui_clock_field_limit_set_static_delegate == null) - efl_ui_clock_field_limit_set_static_delegate = new efl_ui_clock_field_limit_set_delegate(field_limit_set); - if (methods.FirstOrDefault(m => m.Name == "SetFieldLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_clock_field_limit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_limit_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Clock.efl_ui_clock_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Clock.efl_ui_clock_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_clock_format_get_static_delegate == null) + { + efl_ui_clock_format_get_static_delegate = new efl_ui_clock_format_get_delegate(format_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFormat") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_format_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_format_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_clock_format_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_clock_format_set_static_delegate == null) + { + efl_ui_clock_format_set_static_delegate = new efl_ui_clock_format_set_delegate(format_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFormat") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_format_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_format_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_clock_format_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_clock_format_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_format_get"); - private static System.String format_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_clock_format_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Clock)wrapper).GetFormat(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_clock_pause_get_static_delegate == null) + { + efl_ui_clock_pause_get_static_delegate = new efl_ui_clock_pause_get_delegate(pause_get); } - return _ret_var; - } else { - return efl_ui_clock_format_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_clock_format_get_delegate efl_ui_clock_format_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPause") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_pause_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_pause_get_static_delegate) }); + } - private delegate void efl_ui_clock_format_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String fmt); + if (efl_ui_clock_pause_set_static_delegate == null) + { + efl_ui_clock_pause_set_static_delegate = new efl_ui_clock_pause_set_delegate(pause_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPause") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_pause_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_pause_set_static_delegate) }); + } - public delegate void efl_ui_clock_format_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String fmt); - public static Efl.Eo.FunctionWrapper efl_ui_clock_format_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_format_set"); - private static void format_set(System.IntPtr obj, System.IntPtr pd, System.String fmt) - { - Eina.Log.Debug("function efl_ui_clock_format_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Clock)wrapper).SetFormat( fmt); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_clock_format_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fmt); - } - } - private static efl_ui_clock_format_set_delegate efl_ui_clock_format_set_static_delegate; + if (efl_ui_clock_edit_mode_get_static_delegate == null) + { + efl_ui_clock_edit_mode_get_static_delegate = new efl_ui_clock_edit_mode_get_delegate(edit_mode_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetEditMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_edit_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_edit_mode_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_clock_pause_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_clock_edit_mode_set_static_delegate == null) + { + efl_ui_clock_edit_mode_set_static_delegate = new efl_ui_clock_edit_mode_set_delegate(edit_mode_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEditMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_edit_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_edit_mode_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_clock_pause_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_clock_pause_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_pause_get"); - private static bool pause_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_clock_pause_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Clock)wrapper).GetPause(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_clock_time_min_get_static_delegate == null) + { + efl_ui_clock_time_min_get_static_delegate = new efl_ui_clock_time_min_get_delegate(time_min_get); } - return _ret_var; - } else { - return efl_ui_clock_pause_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_clock_pause_get_delegate efl_ui_clock_pause_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetTimeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_min_get_static_delegate) }); + } - private delegate void efl_ui_clock_pause_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool paused); + if (efl_ui_clock_time_min_set_static_delegate == null) + { + efl_ui_clock_time_min_set_static_delegate = new efl_ui_clock_time_min_set_delegate(time_min_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTimeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_min_set_static_delegate) }); + } - public delegate void efl_ui_clock_pause_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool paused); - public static Efl.Eo.FunctionWrapper efl_ui_clock_pause_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_pause_set"); - private static void pause_set(System.IntPtr obj, System.IntPtr pd, bool paused) - { - Eina.Log.Debug("function efl_ui_clock_pause_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Clock)wrapper).SetPause( paused); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_clock_pause_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), paused); - } - } - private static efl_ui_clock_pause_set_delegate efl_ui_clock_pause_set_static_delegate; + if (efl_ui_clock_time_max_get_static_delegate == null) + { + efl_ui_clock_time_max_get_static_delegate = new efl_ui_clock_time_max_get_delegate(time_max_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTimeMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_max_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_clock_edit_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_clock_time_max_set_static_delegate == null) + { + efl_ui_clock_time_max_set_static_delegate = new efl_ui_clock_time_max_set_delegate(time_max_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTimeMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_max_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_clock_edit_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_clock_edit_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_edit_mode_get"); - private static bool edit_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_clock_edit_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Clock)wrapper).GetEditMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_clock_time_get_static_delegate == null) + { + efl_ui_clock_time_get_static_delegate = new efl_ui_clock_time_get_delegate(time_get); } - return _ret_var; - } else { - return efl_ui_clock_edit_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_clock_edit_mode_get_delegate efl_ui_clock_edit_mode_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetTime") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_get_static_delegate) }); + } - private delegate void efl_ui_clock_edit_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool value); + if (efl_ui_clock_time_set_static_delegate == null) + { + efl_ui_clock_time_set_static_delegate = new efl_ui_clock_time_set_delegate(time_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTime") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_time_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_time_set_static_delegate) }); + } - public delegate void efl_ui_clock_edit_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool value); - public static Efl.Eo.FunctionWrapper efl_ui_clock_edit_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_edit_mode_set"); - private static void edit_mode_set(System.IntPtr obj, System.IntPtr pd, bool value) - { - Eina.Log.Debug("function efl_ui_clock_edit_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Clock)wrapper).SetEditMode( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_clock_edit_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_ui_clock_edit_mode_set_delegate efl_ui_clock_edit_mode_set_static_delegate; + if (efl_ui_clock_field_visible_get_static_delegate == null) + { + efl_ui_clock_field_visible_get_static_delegate = new efl_ui_clock_field_visible_get_delegate(field_visible_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFieldVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_field_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_visible_get_static_delegate) }); + } - private delegate Efl.Time.NativeStruct efl_ui_clock_time_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_clock_field_visible_set_static_delegate == null) + { + efl_ui_clock_field_visible_set_static_delegate = new efl_ui_clock_field_visible_set_delegate(field_visible_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFieldVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_field_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_visible_set_static_delegate) }); + } - public delegate Efl.Time.NativeStruct efl_ui_clock_time_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_clock_time_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_time_min_get"); - private static Efl.Time.NativeStruct time_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_clock_time_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _ret_var = default(Efl.Time); - try { - _ret_var = ((Clock)wrapper).GetTimeMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_clock_field_limit_get_static_delegate == null) + { + efl_ui_clock_field_limit_get_static_delegate = new efl_ui_clock_field_limit_get_delegate(field_limit_get); } - return _ret_var; - } else { - return efl_ui_clock_time_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (methods.FirstOrDefault(m => m.Name == "GetFieldLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_field_limit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_limit_get_static_delegate) }); + } + + if (efl_ui_clock_field_limit_set_static_delegate == null) + { + efl_ui_clock_field_limit_set_static_delegate = new efl_ui_clock_field_limit_set_delegate(field_limit_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFieldLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clock_field_limit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clock_field_limit_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Clock.efl_ui_clock_class_get(); } - } - private static efl_ui_clock_time_min_get_delegate efl_ui_clock_time_min_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_clock_format_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_clock_format_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_format_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_format_get"); + + private static System.String format_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_clock_format_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Clock)wrapper).GetFormat(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_clock_time_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct mintime); + return _ret_var; + } + else + { + return efl_ui_clock_format_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_ui_clock_time_min_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct mintime); - public static Efl.Eo.FunctionWrapper efl_ui_clock_time_min_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_time_min_set"); - private static void time_min_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct mintime) - { - Eina.Log.Debug("function efl_ui_clock_time_min_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _in_mintime = mintime; - - try { - ((Clock)wrapper).SetTimeMin( _in_mintime); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_clock_time_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mintime); + private static efl_ui_clock_format_get_delegate efl_ui_clock_format_get_static_delegate; + + + private delegate void efl_ui_clock_format_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String fmt); + + + public delegate void efl_ui_clock_format_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String fmt); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_format_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_format_set"); + + private static void format_set(System.IntPtr obj, System.IntPtr pd, System.String fmt) + { + Eina.Log.Debug("function efl_ui_clock_format_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Clock)wrapper).SetFormat(fmt); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_clock_format_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fmt); + } } - } - private static efl_ui_clock_time_min_set_delegate efl_ui_clock_time_min_set_static_delegate; + private static efl_ui_clock_format_set_delegate efl_ui_clock_format_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_clock_pause_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_clock_pause_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_pause_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_pause_get"); + + private static bool pause_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_clock_pause_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Clock)wrapper).GetPause(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Time.NativeStruct efl_ui_clock_time_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_clock_pause_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.Time.NativeStruct efl_ui_clock_time_max_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_clock_time_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_time_max_get"); - private static Efl.Time.NativeStruct time_max_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_clock_time_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _ret_var = default(Efl.Time); - try { - _ret_var = ((Clock)wrapper).GetTimeMax(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_ui_clock_pause_get_delegate efl_ui_clock_pause_get_static_delegate; + + + private delegate void efl_ui_clock_pause_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool paused); + + + public delegate void efl_ui_clock_pause_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool paused); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_pause_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_pause_set"); + + private static void pause_set(System.IntPtr obj, System.IntPtr pd, bool paused) + { + Eina.Log.Debug("function efl_ui_clock_pause_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Clock)wrapper).SetPause(paused); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_clock_pause_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), paused); } + } + + private static efl_ui_clock_pause_set_delegate efl_ui_clock_pause_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_clock_edit_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_clock_edit_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_edit_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_edit_mode_get"); + + private static bool edit_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_clock_edit_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Clock)wrapper).GetEditMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_clock_time_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_clock_edit_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_clock_time_max_get_delegate efl_ui_clock_time_max_get_static_delegate; + private static efl_ui_clock_edit_mode_get_delegate efl_ui_clock_edit_mode_get_static_delegate; + + + private delegate void efl_ui_clock_edit_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool value); + + + public delegate void efl_ui_clock_edit_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool value); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_edit_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_edit_mode_set"); + + private static void edit_mode_set(System.IntPtr obj, System.IntPtr pd, bool value) + { + Eina.Log.Debug("function efl_ui_clock_edit_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Clock)wrapper).SetEditMode(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_clock_edit_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } - private delegate void efl_ui_clock_time_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct maxtime); + private static efl_ui_clock_edit_mode_set_delegate efl_ui_clock_edit_mode_set_static_delegate; + + + private delegate Efl.Time.NativeStruct efl_ui_clock_time_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Time.NativeStruct efl_ui_clock_time_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_time_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_time_min_get"); + + private static Efl.Time.NativeStruct time_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_clock_time_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _ret_var = default(Efl.Time); + try + { + _ret_var = ((Clock)wrapper).GetTimeMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_clock_time_max_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct maxtime); - public static Efl.Eo.FunctionWrapper efl_ui_clock_time_max_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_time_max_set"); - private static void time_max_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct maxtime) - { - Eina.Log.Debug("function efl_ui_clock_time_max_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _in_maxtime = maxtime; - - try { - ((Clock)wrapper).SetTimeMax( _in_maxtime); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_clock_time_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), maxtime); + } + else + { + return efl_ui_clock_time_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_clock_time_max_set_delegate efl_ui_clock_time_max_set_static_delegate; + private static efl_ui_clock_time_min_get_delegate efl_ui_clock_time_min_get_static_delegate; - private delegate Efl.Time.NativeStruct efl_ui_clock_time_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_clock_time_min_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct mintime); + + public delegate void efl_ui_clock_time_min_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct mintime); - public delegate Efl.Time.NativeStruct efl_ui_clock_time_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_clock_time_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_time_get"); - private static Efl.Time.NativeStruct time_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_clock_time_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _ret_var = default(Efl.Time); - try { - _ret_var = ((Clock)wrapper).GetTime(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_clock_time_min_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_time_min_set"); + + private static void time_min_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct mintime) + { + Eina.Log.Debug("function efl_ui_clock_time_min_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _in_mintime = mintime; + + try + { + ((Clock)wrapper).SetTimeMin(_in_mintime); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_clock_time_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mintime); } + } + + private static efl_ui_clock_time_min_set_delegate efl_ui_clock_time_min_set_static_delegate; + + + private delegate Efl.Time.NativeStruct efl_ui_clock_time_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Time.NativeStruct efl_ui_clock_time_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_time_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_time_max_get"); + + private static Efl.Time.NativeStruct time_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_clock_time_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _ret_var = default(Efl.Time); + try + { + _ret_var = ((Clock)wrapper).GetTimeMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_clock_time_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_clock_time_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_clock_time_get_delegate efl_ui_clock_time_get_static_delegate; + private static efl_ui_clock_time_max_get_delegate efl_ui_clock_time_max_get_static_delegate; - private delegate void efl_ui_clock_time_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct curtime); + + private delegate void efl_ui_clock_time_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct maxtime); + + public delegate void efl_ui_clock_time_max_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct maxtime); - public delegate void efl_ui_clock_time_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct curtime); - public static Efl.Eo.FunctionWrapper efl_ui_clock_time_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_time_set"); - private static void time_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct curtime) - { - Eina.Log.Debug("function efl_ui_clock_time_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Time _in_curtime = curtime; + public static Efl.Eo.FunctionWrapper efl_ui_clock_time_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_time_max_set"); + + private static void time_max_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct maxtime) + { + Eina.Log.Debug("function efl_ui_clock_time_max_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _in_maxtime = maxtime; - try { - ((Clock)wrapper).SetTime( _in_curtime); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_clock_time_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), curtime); + try + { + ((Clock)wrapper).SetTimeMax(_in_maxtime); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_clock_time_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), maxtime); + } } - } - private static efl_ui_clock_time_set_delegate efl_ui_clock_time_set_static_delegate; + private static efl_ui_clock_time_max_set_delegate efl_ui_clock_time_max_set_static_delegate; + + + private delegate Efl.Time.NativeStruct efl_ui_clock_time_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Time.NativeStruct efl_ui_clock_time_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_time_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_time_get"); + + private static Efl.Time.NativeStruct time_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_clock_time_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _ret_var = default(Efl.Time); + try + { + _ret_var = ((Clock)wrapper).GetTime(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_clock_field_visible_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_clock_field_visible_get_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype); - public static Efl.Eo.FunctionWrapper efl_ui_clock_field_visible_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_field_visible_get"); - private static bool field_visible_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype) - { - Eina.Log.Debug("function efl_ui_clock_field_visible_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Clock)wrapper).GetFieldVisible( fieldtype); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_clock_field_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype); + else + { + return efl_ui_clock_time_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_clock_field_visible_get_delegate efl_ui_clock_field_visible_get_static_delegate; + private static efl_ui_clock_time_get_delegate efl_ui_clock_time_get_static_delegate; - private delegate void efl_ui_clock_field_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, [MarshalAs(UnmanagedType.U1)] bool visible); + + private delegate void efl_ui_clock_time_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct curtime); + + public delegate void efl_ui_clock_time_set_api_delegate(System.IntPtr obj, Efl.Time.NativeStruct curtime); - public delegate void efl_ui_clock_field_visible_set_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, [MarshalAs(UnmanagedType.U1)] bool visible); - public static Efl.Eo.FunctionWrapper efl_ui_clock_field_visible_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_field_visible_set"); - private static void field_visible_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, bool visible) - { - Eina.Log.Debug("function efl_ui_clock_field_visible_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Clock)wrapper).SetFieldVisible( fieldtype, visible); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_clock_field_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype, visible); + public static Efl.Eo.FunctionWrapper efl_ui_clock_time_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_time_set"); + + private static void time_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct curtime) + { + Eina.Log.Debug("function efl_ui_clock_time_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Time _in_curtime = curtime; + + try + { + ((Clock)wrapper).SetTime(_in_curtime); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_clock_time_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), curtime); + } } - } - private static efl_ui_clock_field_visible_set_delegate efl_ui_clock_field_visible_set_static_delegate; + private static efl_ui_clock_time_set_delegate efl_ui_clock_time_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_clock_field_visible_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_clock_field_visible_get_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_field_visible_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_field_visible_get"); + + private static bool field_visible_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype) + { + Eina.Log.Debug("function efl_ui_clock_field_visible_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Clock)wrapper).GetFieldVisible(fieldtype); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_clock_field_limit_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, out int min, out int max); + return _ret_var; + } + else + { + return efl_ui_clock_field_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype); + } + } - public delegate void efl_ui_clock_field_limit_get_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, out int min, out int max); - public static Efl.Eo.FunctionWrapper efl_ui_clock_field_limit_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_field_limit_get"); - private static void field_limit_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, out int min, out int max) - { - Eina.Log.Debug("function efl_ui_clock_field_limit_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - min = default(int); max = default(int); - try { - ((Clock)wrapper).GetFieldLimit( fieldtype, out min, out max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_clock_field_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype, out min, out max); + private static efl_ui_clock_field_visible_get_delegate efl_ui_clock_field_visible_get_static_delegate; + + + private delegate void efl_ui_clock_field_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, [MarshalAs(UnmanagedType.U1)] bool visible); + + + public delegate void efl_ui_clock_field_visible_set_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, [MarshalAs(UnmanagedType.U1)] bool visible); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_field_visible_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_field_visible_set"); + + private static void field_visible_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, bool visible) + { + Eina.Log.Debug("function efl_ui_clock_field_visible_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Clock)wrapper).SetFieldVisible(fieldtype, visible); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_clock_field_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype, visible); + } } - } - private static efl_ui_clock_field_limit_get_delegate efl_ui_clock_field_limit_get_static_delegate; + private static efl_ui_clock_field_visible_set_delegate efl_ui_clock_field_visible_set_static_delegate; + + + private delegate void efl_ui_clock_field_limit_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, out int min, out int max); + + + public delegate void efl_ui_clock_field_limit_get_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, out int min, out int max); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_field_limit_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_field_limit_get"); + + private static void field_limit_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, out int min, out int max) + { + Eina.Log.Debug("function efl_ui_clock_field_limit_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + min = default(int); max = default(int); + try + { + ((Clock)wrapper).GetFieldLimit(fieldtype, out min, out max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_clock_field_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype, out min, out max); + } + } + + private static efl_ui_clock_field_limit_get_delegate efl_ui_clock_field_limit_get_static_delegate; + + + private delegate void efl_ui_clock_field_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, int min, int max); + + + public delegate void efl_ui_clock_field_limit_set_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, int min, int max); + + public static Efl.Eo.FunctionWrapper efl_ui_clock_field_limit_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clock_field_limit_set"); + + private static void field_limit_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, int min, int max) + { + Eina.Log.Debug("function efl_ui_clock_field_limit_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Clock)wrapper).SetFieldLimit(fieldtype, min, max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_clock_field_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype, min, max); + } + } - private delegate void efl_ui_clock_field_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, int min, int max); + private static efl_ui_clock_field_limit_set_delegate efl_ui_clock_field_limit_set_static_delegate; + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_ui_clock_field_limit_set_api_delegate(System.IntPtr obj, Efl.Ui.ClockType fieldtype, int min, int max); - public static Efl.Eo.FunctionWrapper efl_ui_clock_field_limit_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_clock_field_limit_set"); - private static void field_limit_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ClockType fieldtype, int min, int max) - { - Eina.Log.Debug("function efl_ui_clock_field_limit_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Clock)wrapper).SetFieldLimit( fieldtype, min, max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_clock_field_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fieldtype, min, max); - } - } - private static efl_ui_clock_field_limit_set_delegate efl_ui_clock_field_limit_set_static_delegate; } -} } -namespace Efl { namespace Ui { +} +} + +} + +namespace Efl { + +namespace Ui { + /// Identifies a clock field, The widget supports 6 fields : Year, month, Date, Hour, Minute, AM/PM public enum ClockType { @@ -883,4 +1196,8 @@ Day = 6, /// Indicates AM/PM field . Ampm = 7, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_datepicker.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_datepicker.eo.cs index 454031b..5c2842c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_datepicker.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_datepicker.eo.cs @@ -3,109 +3,144 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Datepicker widget /// This is a widget which allows the user to pick a date using internal spinner. User can use the internal spinner to select year, month, day or user can input value using internal entry. -[DatepickerNativeInherit] +[Efl.Ui.Datepicker.NativeMethods] public class Datepicker : Efl.Ui.LayoutBase, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Datepicker)) - return Efl.Ui.DatepickerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Datepicker)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_datepicker_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Datepicker(Efl.Object parent - , System.String style = null) : - base(efl_ui_datepicker_class_get(), typeof(Datepicker), parent) + , System.String style = null) : base(efl_ui_datepicker_class_get(), typeof(Datepicker), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Datepicker(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Datepicker(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Datepicker(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ChangedEvtKey = new object(); + /// Called when date value is changed public event EventHandler ChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DATEPICKER_EVENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) { - eventHandlers.AddHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DATEPICKER_EVENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedEvt. - public void On_ChangedEvt(EventArgs e) + public void OnChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedEvtKey]; + var key = "_EFL_UI_DATEPICKER_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedEvt_delegate; - private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// The lower boundary of date. /// year: Year. The year range is from 1900 to 2137. @@ -116,9 +151,8 @@ private static object ChangedEvtKey = new object(); /// The year value. /// The month value from 1 to 12. /// The day value from 1 to 31. - /// - virtual public void GetMin( out int year, out int month, out int day) { - Efl.Ui.DatepickerNativeInherit.efl_ui_datepicker_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out year, out month, out day); + virtual public void GetMin(out int year, out int month, out int day) { + Efl.Ui.Datepicker.NativeMethods.efl_ui_datepicker_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out year, out month, out day); Eina.Error.RaiseIfUnhandledException(); } /// The lower boundary of date. @@ -130,9 +164,8 @@ private static object ChangedEvtKey = new object(); /// The year value. /// The month value from 1 to 12. /// The day value from 1 to 31. - /// - virtual public void SetMin( int year, int month, int day) { - Efl.Ui.DatepickerNativeInherit.efl_ui_datepicker_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), year, month, day); + virtual public void SetMin(int year, int month, int day) { + Efl.Ui.Datepicker.NativeMethods.efl_ui_datepicker_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),year, month, day); Eina.Error.RaiseIfUnhandledException(); } /// The upper boundary of date. @@ -144,9 +177,8 @@ private static object ChangedEvtKey = new object(); /// The year value. /// The month value from 1 to 12. /// The day value from 1 to 31. - /// - virtual public void GetMax( out int year, out int month, out int day) { - Efl.Ui.DatepickerNativeInherit.efl_ui_datepicker_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out year, out month, out day); + virtual public void GetMax(out int year, out int month, out int day) { + Efl.Ui.Datepicker.NativeMethods.efl_ui_datepicker_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out year, out month, out day); Eina.Error.RaiseIfUnhandledException(); } /// The upper boundary of date. @@ -158,9 +190,8 @@ private static object ChangedEvtKey = new object(); /// The year value. /// The month value from 1 to 12. /// The day value from 1 to 31. - /// - virtual public void SetMax( int year, int month, int day) { - Efl.Ui.DatepickerNativeInherit.efl_ui_datepicker_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), year, month, day); + virtual public void SetMax(int year, int month, int day) { + Efl.Ui.Datepicker.NativeMethods.efl_ui_datepicker_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),year, month, day); Eina.Error.RaiseIfUnhandledException(); } /// The current value of date. @@ -172,9 +203,8 @@ private static object ChangedEvtKey = new object(); /// The year value. /// The month value from 1 to 12. /// The day value from 1 to 31. - /// - virtual public void GetDate( out int year, out int month, out int day) { - Efl.Ui.DatepickerNativeInherit.efl_ui_datepicker_date_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out year, out month, out day); + virtual public void GetDate(out int year, out int month, out int day) { + Efl.Ui.Datepicker.NativeMethods.efl_ui_datepicker_date_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out year, out month, out day); Eina.Error.RaiseIfUnhandledException(); } /// The current value of date. @@ -186,200 +216,313 @@ private static object ChangedEvtKey = new object(); /// The year value. /// The month value from 1 to 12. /// The day value from 1 to 31. - /// - virtual public void SetDate( int year, int month, int day) { - Efl.Ui.DatepickerNativeInherit.efl_ui_datepicker_date_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), year, month, day); + virtual public void SetDate(int year, int month, int day) { + Efl.Ui.Datepicker.NativeMethods.efl_ui_datepicker_date_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),year, month, day); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Ui.Datepicker.efl_ui_datepicker_class_get(); } -} -public class DatepickerNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_datepicker_min_get_static_delegate == null) - efl_ui_datepicker_min_get_static_delegate = new efl_ui_datepicker_min_get_delegate(min_get); - if (methods.FirstOrDefault(m => m.Name == "GetMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_datepicker_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_min_get_static_delegate)}); - if (efl_ui_datepicker_min_set_static_delegate == null) - efl_ui_datepicker_min_set_static_delegate = new efl_ui_datepicker_min_set_delegate(min_set); - if (methods.FirstOrDefault(m => m.Name == "SetMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_datepicker_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_min_set_static_delegate)}); - if (efl_ui_datepicker_max_get_static_delegate == null) - efl_ui_datepicker_max_get_static_delegate = new efl_ui_datepicker_max_get_delegate(max_get); - if (methods.FirstOrDefault(m => m.Name == "GetMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_datepicker_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_max_get_static_delegate)}); - if (efl_ui_datepicker_max_set_static_delegate == null) - efl_ui_datepicker_max_set_static_delegate = new efl_ui_datepicker_max_set_delegate(max_set); - if (methods.FirstOrDefault(m => m.Name == "SetMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_datepicker_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_max_set_static_delegate)}); - if (efl_ui_datepicker_date_get_static_delegate == null) - efl_ui_datepicker_date_get_static_delegate = new efl_ui_datepicker_date_get_delegate(date_get); - if (methods.FirstOrDefault(m => m.Name == "GetDate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_datepicker_date_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_date_get_static_delegate)}); - if (efl_ui_datepicker_date_set_static_delegate == null) - efl_ui_datepicker_date_set_static_delegate = new efl_ui_datepicker_date_set_delegate(date_set); - if (methods.FirstOrDefault(m => m.Name == "SetDate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_datepicker_date_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_date_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Datepicker.efl_ui_datepicker_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Datepicker.efl_ui_datepicker_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_datepicker_min_get_static_delegate == null) + { + efl_ui_datepicker_min_get_static_delegate = new efl_ui_datepicker_min_get_delegate(min_get); + } - private delegate void efl_ui_datepicker_min_get_delegate(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day); + if (methods.FirstOrDefault(m => m.Name == "GetMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_datepicker_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_min_get_static_delegate) }); + } + if (efl_ui_datepicker_min_set_static_delegate == null) + { + efl_ui_datepicker_min_set_static_delegate = new efl_ui_datepicker_min_set_delegate(min_set); + } - public delegate void efl_ui_datepicker_min_get_api_delegate(System.IntPtr obj, out int year, out int month, out int day); - public static Efl.Eo.FunctionWrapper efl_ui_datepicker_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_datepicker_min_get"); - private static void min_get(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day) - { - Eina.Log.Debug("function efl_ui_datepicker_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - year = default(int); month = default(int); day = default(int); - try { - ((Datepicker)wrapper).GetMin( out year, out month, out day); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_datepicker_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_min_set_static_delegate) }); + } + + if (efl_ui_datepicker_max_get_static_delegate == null) + { + efl_ui_datepicker_max_get_static_delegate = new efl_ui_datepicker_max_get_delegate(max_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_datepicker_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_max_get_static_delegate) }); + } + + if (efl_ui_datepicker_max_set_static_delegate == null) + { + efl_ui_datepicker_max_set_static_delegate = new efl_ui_datepicker_max_set_delegate(max_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_datepicker_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_max_set_static_delegate) }); + } + + if (efl_ui_datepicker_date_get_static_delegate == null) + { + efl_ui_datepicker_date_get_static_delegate = new efl_ui_datepicker_date_get_delegate(date_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetDate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_datepicker_date_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_date_get_static_delegate) }); + } + + if (efl_ui_datepicker_date_set_static_delegate == null) + { + efl_ui_datepicker_date_set_static_delegate = new efl_ui_datepicker_date_set_delegate(date_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_datepicker_date_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_datepicker_date_set_static_delegate) }); } - } else { - efl_ui_datepicker_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out year, out month, out day); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Datepicker.efl_ui_datepicker_class_get(); } - } - private static efl_ui_datepicker_min_get_delegate efl_ui_datepicker_min_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_datepicker_min_set_delegate(System.IntPtr obj, System.IntPtr pd, int year, int month, int day); + + private delegate void efl_ui_datepicker_min_get_delegate(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day); + + public delegate void efl_ui_datepicker_min_get_api_delegate(System.IntPtr obj, out int year, out int month, out int day); - public delegate void efl_ui_datepicker_min_set_api_delegate(System.IntPtr obj, int year, int month, int day); - public static Efl.Eo.FunctionWrapper efl_ui_datepicker_min_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_datepicker_min_set"); - private static void min_set(System.IntPtr obj, System.IntPtr pd, int year, int month, int day) - { - Eina.Log.Debug("function efl_ui_datepicker_min_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Datepicker)wrapper).SetMin( year, month, day); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_datepicker_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_datepicker_min_get"); + + private static void min_get(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day) + { + Eina.Log.Debug("function efl_ui_datepicker_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + year = default(int); month = default(int); day = default(int); + try + { + ((Datepicker)wrapper).GetMin(out year, out month, out day); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_datepicker_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out year, out month, out day); } - } else { - efl_ui_datepicker_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), year, month, day); } - } - private static efl_ui_datepicker_min_set_delegate efl_ui_datepicker_min_set_static_delegate; + private static efl_ui_datepicker_min_get_delegate efl_ui_datepicker_min_get_static_delegate; - private delegate void efl_ui_datepicker_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day); + + private delegate void efl_ui_datepicker_min_set_delegate(System.IntPtr obj, System.IntPtr pd, int year, int month, int day); + + public delegate void efl_ui_datepicker_min_set_api_delegate(System.IntPtr obj, int year, int month, int day); - public delegate void efl_ui_datepicker_max_get_api_delegate(System.IntPtr obj, out int year, out int month, out int day); - public static Efl.Eo.FunctionWrapper efl_ui_datepicker_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_datepicker_max_get"); - private static void max_get(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day) - { - Eina.Log.Debug("function efl_ui_datepicker_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - year = default(int); month = default(int); day = default(int); - try { - ((Datepicker)wrapper).GetMax( out year, out month, out day); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_datepicker_min_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_datepicker_min_set"); + + private static void min_set(System.IntPtr obj, System.IntPtr pd, int year, int month, int day) + { + Eina.Log.Debug("function efl_ui_datepicker_min_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Datepicker)wrapper).SetMin(year, month, day); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_datepicker_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), year, month, day); } - } else { - efl_ui_datepicker_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out year, out month, out day); } - } - private static efl_ui_datepicker_max_get_delegate efl_ui_datepicker_max_get_static_delegate; + private static efl_ui_datepicker_min_set_delegate efl_ui_datepicker_min_set_static_delegate; - private delegate void efl_ui_datepicker_max_set_delegate(System.IntPtr obj, System.IntPtr pd, int year, int month, int day); + + private delegate void efl_ui_datepicker_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day); + + public delegate void efl_ui_datepicker_max_get_api_delegate(System.IntPtr obj, out int year, out int month, out int day); - public delegate void efl_ui_datepicker_max_set_api_delegate(System.IntPtr obj, int year, int month, int day); - public static Efl.Eo.FunctionWrapper efl_ui_datepicker_max_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_datepicker_max_set"); - private static void max_set(System.IntPtr obj, System.IntPtr pd, int year, int month, int day) - { - Eina.Log.Debug("function efl_ui_datepicker_max_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Datepicker)wrapper).SetMax( year, month, day); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_datepicker_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_datepicker_max_get"); + + private static void max_get(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day) + { + Eina.Log.Debug("function efl_ui_datepicker_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + year = default(int); month = default(int); day = default(int); + try + { + ((Datepicker)wrapper).GetMax(out year, out month, out day); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_datepicker_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out year, out month, out day); } - } else { - efl_ui_datepicker_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), year, month, day); } - } - private static efl_ui_datepicker_max_set_delegate efl_ui_datepicker_max_set_static_delegate; + private static efl_ui_datepicker_max_get_delegate efl_ui_datepicker_max_get_static_delegate; - private delegate void efl_ui_datepicker_date_get_delegate(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day); + + private delegate void efl_ui_datepicker_max_set_delegate(System.IntPtr obj, System.IntPtr pd, int year, int month, int day); + + public delegate void efl_ui_datepicker_max_set_api_delegate(System.IntPtr obj, int year, int month, int day); - public delegate void efl_ui_datepicker_date_get_api_delegate(System.IntPtr obj, out int year, out int month, out int day); - public static Efl.Eo.FunctionWrapper efl_ui_datepicker_date_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_datepicker_date_get"); - private static void date_get(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day) - { - Eina.Log.Debug("function efl_ui_datepicker_date_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - year = default(int); month = default(int); day = default(int); - try { - ((Datepicker)wrapper).GetDate( out year, out month, out day); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_datepicker_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_datepicker_max_set"); + + private static void max_set(System.IntPtr obj, System.IntPtr pd, int year, int month, int day) + { + Eina.Log.Debug("function efl_ui_datepicker_max_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Datepicker)wrapper).SetMax(year, month, day); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_datepicker_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), year, month, day); } - } else { - efl_ui_datepicker_date_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out year, out month, out day); } - } - private static efl_ui_datepicker_date_get_delegate efl_ui_datepicker_date_get_static_delegate; + private static efl_ui_datepicker_max_set_delegate efl_ui_datepicker_max_set_static_delegate; - private delegate void efl_ui_datepicker_date_set_delegate(System.IntPtr obj, System.IntPtr pd, int year, int month, int day); + + private delegate void efl_ui_datepicker_date_get_delegate(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day); + + public delegate void efl_ui_datepicker_date_get_api_delegate(System.IntPtr obj, out int year, out int month, out int day); - public delegate void efl_ui_datepicker_date_set_api_delegate(System.IntPtr obj, int year, int month, int day); - public static Efl.Eo.FunctionWrapper efl_ui_datepicker_date_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_datepicker_date_set"); - private static void date_set(System.IntPtr obj, System.IntPtr pd, int year, int month, int day) - { - Eina.Log.Debug("function efl_ui_datepicker_date_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Datepicker)wrapper).SetDate( year, month, day); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_datepicker_date_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_datepicker_date_get"); + + private static void date_get(System.IntPtr obj, System.IntPtr pd, out int year, out int month, out int day) + { + Eina.Log.Debug("function efl_ui_datepicker_date_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + year = default(int); month = default(int); day = default(int); + try + { + ((Datepicker)wrapper).GetDate(out year, out month, out day); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_datepicker_date_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out year, out month, out day); } - } else { - efl_ui_datepicker_date_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), year, month, day); } - } - private static efl_ui_datepicker_date_set_delegate efl_ui_datepicker_date_set_static_delegate; + + private static efl_ui_datepicker_date_get_delegate efl_ui_datepicker_date_get_static_delegate; + + + private delegate void efl_ui_datepicker_date_set_delegate(System.IntPtr obj, System.IntPtr pd, int year, int month, int day); + + + public delegate void efl_ui_datepicker_date_set_api_delegate(System.IntPtr obj, int year, int month, int day); + + public static Efl.Eo.FunctionWrapper efl_ui_datepicker_date_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_datepicker_date_set"); + + private static void date_set(System.IntPtr obj, System.IntPtr pd, int year, int month, int day) + { + Eina.Log.Debug("function efl_ui_datepicker_date_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Datepicker)wrapper).SetDate(year, month, day); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_datepicker_date_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), year, month, day); + } + } + + private static efl_ui_datepicker_date_set_delegate efl_ui_datepicker_date_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_direction.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_direction.eo.cs index 7df0491..4340822 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_direction.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_direction.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// EFL UI object direction interface -[IDirectionNativeInherit] +[Efl.Ui.IDirectionConcrete.NativeMethods] public interface IDirection : Efl.Eo.IWrapper, IDisposable { @@ -21,8 +25,7 @@ Efl.Ui.Dir GetDirection(); /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. -/// -void SetDirection( Efl.Ui.Dir dir); +void SetDirection(Efl.Ui.Dir dir); /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// @@ -40,75 +43,110 @@ IDirection { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IDirectionConcrete)) - return Efl.Ui.IDirectionNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IDirectionConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_direction_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IDirectionConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IDirectionConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. public Efl.Ui.Dir GetDirection() { - var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -117,9 +155,8 @@ IDirection /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. - /// - public void SetDirection( Efl.Ui.Dir dir) { - Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate(this.NativeHandle, dir); + public void SetDirection(Efl.Ui.Dir dir) { + Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate(this.NativeHandle,dir); Eina.Error.RaiseIfUnhandledException(); } /// Control the direction of a given widget. @@ -129,89 +166,138 @@ IDirection /// Direction of the widget. public Efl.Ui.Dir Direction { get { return GetDirection(); } - set { SetDirection( value); } + set { SetDirection(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IDirectionConcrete.efl_ui_direction_interface_get(); } -} -public class IDirectionNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_direction_get_static_delegate == null) - efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)}); - if (efl_ui_direction_set_static_delegate == null) - efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IDirectionConcrete.efl_ui_direction_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IDirectionConcrete.efl_ui_direction_interface_get(); - } + 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_direction_get_static_delegate == null) + { + efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); + } - private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate) }); + } + if (efl_ui_direction_set_static_delegate == null) + { + efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); + } - public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_get"); - private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); - try { - _ret_var = ((IDirection)wrapper).GetDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_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.IDirectionConcrete.efl_ui_direction_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_get"); + + private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); + try + { + _ret_var = ((IDirection)wrapper).GetDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; - private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_set"); - private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IDirection)wrapper).SetDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_set"); + + private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IDirection)wrapper).SetDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - } else { - efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - } - private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; + + private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } -namespace Efl { namespace Ui { + +namespace Efl { + +namespace Ui { + /// Direction for UI objects and layouts. /// Not to be confused with which is for images and canvases. This enum is used to define how widgets should expand and orient themselves, not to rotate images. /// @@ -237,4 +323,8 @@ Right = 3, /// Left is an alias for RTL. Left = 4, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_direction_readonly.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_direction_readonly.eo.cs index 946ef7f..6447a38 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_direction_readonly.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_direction_readonly.eo.cs @@ -3,91 +3,128 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[IDirectionReadonlyNativeInherit] +namespace Efl { + +namespace Ui { + +[Efl.Ui.IDirectionReadonlyConcrete.NativeMethods] public interface IDirectionReadonly : Efl.Ui.IDirection , Efl.Eo.IWrapper, IDisposable { } -/// sealed public class IDirectionReadonlyConcrete : IDirectionReadonly , Efl.Ui.IDirection { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IDirectionReadonlyConcrete)) - return Efl.Ui.IDirectionReadonlyNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IDirectionReadonlyConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_direction_readonly_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IDirectionReadonlyConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IDirectionReadonlyConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. public Efl.Ui.Dir GetDirection() { - var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -96,9 +133,8 @@ IDirectionReadonly /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. - /// - public void SetDirection( Efl.Ui.Dir dir) { - Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate(this.NativeHandle, dir); + public void SetDirection(Efl.Ui.Dir dir) { + Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate(this.NativeHandle,dir); Eina.Error.RaiseIfUnhandledException(); } /// Control the direction of a given widget. @@ -108,85 +144,131 @@ IDirectionReadonly /// Direction of the widget. public Efl.Ui.Dir Direction { get { return GetDirection(); } - set { SetDirection( value); } + set { SetDirection(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IDirectionReadonlyConcrete.efl_ui_direction_readonly_mixin_get(); } -} -public class IDirectionReadonlyNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_direction_get_static_delegate == null) - efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)}); - if (efl_ui_direction_set_static_delegate == null) - efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IDirectionReadonlyConcrete.efl_ui_direction_readonly_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IDirectionReadonlyConcrete.efl_ui_direction_readonly_mixin_get(); - } + 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_direction_get_static_delegate == null) + { + efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); + } - private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate) }); + } + if (efl_ui_direction_set_static_delegate == null) + { + efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); + } - public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_get"); - private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); - try { - _ret_var = ((IDirectionReadonlyConcrete)wrapper).GetDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_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.IDirectionReadonlyConcrete.efl_ui_direction_readonly_mixin_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_get"); + + private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); + try + { + _ret_var = ((IDirectionReadonlyConcrete)wrapper).GetDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; - private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_set"); - private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IDirectionReadonlyConcrete)wrapper).SetDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_set"); + + private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IDirectionReadonlyConcrete)wrapper).SetDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - } else { - efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - } - private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; + + private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd.eo.cs index f68cbd8..27ae3eb 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd.eo.cs @@ -3,10 +3,13 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[IDndNativeInherit] +namespace Efl { + +namespace Ui { + +[Efl.Ui.IDndConcrete.NativeMethods] public interface IDnd : Efl.Eo.IWrapper, IDisposable { @@ -16,27 +19,22 @@ public interface IDnd : /// Action when data is transferred /// Function pointer to create icon /// Specified seat for multiple seats case. -/// -void DragStart( Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, Efl.Dnd.DragIconCreate icon_func, uint seat); +void DragStart(Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, Efl.Dnd.DragIconCreate icon_func, uint seat); /// Set the action for the drag /// Drag action /// Specified seat for multiple seats case. -/// -void SetDragAction( Efl.Ui.SelectionAction action, uint seat); +void SetDragAction(Efl.Ui.SelectionAction action, uint seat); /// Cancel the on-going drag /// Specified seat for multiple seats case. -/// -void DragCancel( uint seat); +void DragCancel(uint seat); /// Make the current object as drop target. There are four events emitted: - EFL_UI_DND_EVENT_DRAG_ENTER - EFL_UI_DND_EVENT_DRAG_LEAVE - EFL_UI_DND_EVENT_DRAG_POS - EFL_UI_DND_EVENT_DRAG_DROP. /// Accepted data format /// Specified seat for multiple seats case. -/// -void AddDropTarget( Efl.Ui.SelectionFormat format, uint seat); +void AddDropTarget(Efl.Ui.SelectionFormat format, uint seat); /// Delete the dropable status from object /// Accepted data format /// Specified seat for multiple seats case. -/// -void DelDropTarget( Efl.Ui.SelectionFormat format, uint seat); +void DelDropTarget(Efl.Ui.SelectionFormat format, uint seat); /// accept drag data event EventHandler DragAcceptEvt; /// drag is done (mouse up) @@ -65,402 +63,524 @@ public class IDndDragDropEvt_Args : EventArgs { ///Actual event payload. public Efl.Ui.SelectionData arg { get; set; } } -/// sealed public class IDndConcrete : IDnd { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IDndConcrete)) - return Efl.Ui.IDndNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IDndConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_dnd_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IDndConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IDndConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object DragAcceptEvtKey = new object(); + /// accept drag data public event EventHandler DragAcceptEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDndDragAcceptEvt_Args args = new Efl.Ui.IDndDragAcceptEvt_Args(); + args.arg = (bool)Marshal.PtrToStructure(evt.Info, typeof(bool)); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DND_EVENT_DRAG_ACCEPT"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragAcceptEvt_delegate)) { - eventHandlers.AddHandler(DragAcceptEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_ACCEPT"; - if (RemoveNativeEventHandler(key, this.evt_DragAcceptEvt_delegate)) { - eventHandlers.RemoveHandler(DragAcceptEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragAcceptEvt. - public void On_DragAcceptEvt(Efl.Ui.IDndDragAcceptEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragAcceptEvtKey]; + public void OnDragAcceptEvt(Efl.Ui.IDndDragAcceptEvt_Args e) + { + var key = "_EFL_UI_DND_EVENT_DRAG_ACCEPT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragAcceptEvt_delegate; - private void on_DragAcceptEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDndDragAcceptEvt_Args args = new Efl.Ui.IDndDragAcceptEvt_Args(); - args.arg = (bool)Marshal.PtrToStructure(evt.Info, typeof(bool)); - try { - On_DragAcceptEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object DragDoneEvtKey = new object(); /// drag is done (mouse up) public event EventHandler DragDoneEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DND_EVENT_DRAG_DONE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragDoneEvt_delegate)) { - eventHandlers.AddHandler(DragDoneEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_DONE"; - if (RemoveNativeEventHandler(key, this.evt_DragDoneEvt_delegate)) { - eventHandlers.RemoveHandler(DragDoneEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragDoneEvt. - public void On_DragDoneEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragDoneEvtKey]; + public void OnDragDoneEvt(EventArgs e) + { + var key = "_EFL_UI_DND_EVENT_DRAG_DONE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragDoneEvt_delegate; - private void on_DragDoneEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_DragDoneEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DragEnterEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// called when the drag object enters this object public event EventHandler DragEnterEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DND_EVENT_DRAG_ENTER"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragEnterEvt_delegate)) { - eventHandlers.AddHandler(DragEnterEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_ENTER"; - if (RemoveNativeEventHandler(key, this.evt_DragEnterEvt_delegate)) { - eventHandlers.RemoveHandler(DragEnterEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragEnterEvt. - public void On_DragEnterEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragEnterEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragEnterEvt_delegate; - private void on_DragEnterEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_DragEnterEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public void OnDragEnterEvt(EventArgs e) + { + var key = "_EFL_UI_DND_EVENT_DRAG_ENTER"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragLeaveEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// called when the drag object leaves this object public event EventHandler DragLeaveEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DND_EVENT_DRAG_LEAVE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragLeaveEvt_delegate)) { - eventHandlers.AddHandler(DragLeaveEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_LEAVE"; - if (RemoveNativeEventHandler(key, this.evt_DragLeaveEvt_delegate)) { - eventHandlers.RemoveHandler(DragLeaveEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragLeaveEvt. - public void On_DragLeaveEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragLeaveEvtKey]; + public void OnDragLeaveEvt(EventArgs e) + { + var key = "_EFL_UI_DND_EVENT_DRAG_LEAVE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragLeaveEvt_delegate; - private void on_DragLeaveEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_DragLeaveEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DragPosEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// called when the drag object changes drag position public event EventHandler DragPosEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDndDragPosEvt_Args args = new Efl.Ui.IDndDragPosEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DND_EVENT_DRAG_POS"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragPosEvt_delegate)) { - eventHandlers.AddHandler(DragPosEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_POS"; - if (RemoveNativeEventHandler(key, this.evt_DragPosEvt_delegate)) { - eventHandlers.RemoveHandler(DragPosEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragPosEvt. - public void On_DragPosEvt(Efl.Ui.IDndDragPosEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragPosEvtKey]; + public void OnDragPosEvt(Efl.Ui.IDndDragPosEvt_Args e) + { + var key = "_EFL_UI_DND_EVENT_DRAG_POS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragPosEvt_delegate; - private void on_DragPosEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDndDragPosEvt_Args args = new Efl.Ui.IDndDragPosEvt_Args(); - args.arg = evt.Info;; - try { - On_DragPosEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object DragDropEvtKey = new object(); /// called when the drag object dropped on this object public event EventHandler DragDropEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDndDragDropEvt_Args args = new Efl.Ui.IDndDragDropEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DND_EVENT_DRAG_DROP"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragDropEvt_delegate)) { - eventHandlers.AddHandler(DragDropEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_DROP"; - if (RemoveNativeEventHandler(key, this.evt_DragDropEvt_delegate)) { - eventHandlers.RemoveHandler(DragDropEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragDropEvt. - public void On_DragDropEvt(Efl.Ui.IDndDragDropEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragDropEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragDropEvt_delegate; - private void on_DragDropEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDndDragDropEvt_Args args = new Efl.Ui.IDndDragDropEvt_Args(); - args.arg = evt.Info;; - try { - On_DragDropEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public void OnDragDropEvt(Efl.Ui.IDndDragDropEvt_Args e) + { + var key = "_EFL_UI_DND_EVENT_DRAG_DROP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_DragAcceptEvt_delegate = new Efl.EventCb(on_DragAcceptEvt_NativeCallback); - evt_DragDoneEvt_delegate = new Efl.EventCb(on_DragDoneEvt_NativeCallback); - evt_DragEnterEvt_delegate = new Efl.EventCb(on_DragEnterEvt_NativeCallback); - evt_DragLeaveEvt_delegate = new Efl.EventCb(on_DragLeaveEvt_NativeCallback); - evt_DragPosEvt_delegate = new Efl.EventCb(on_DragPosEvt_NativeCallback); - evt_DragDropEvt_delegate = new Efl.EventCb(on_DragDropEvt_NativeCallback); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Start a drag and drop process at the drag side. During dragging, there are three events emitted as belows: - EFL_UI_DND_EVENT_DRAG_POS - EFL_UI_DND_EVENT_DRAG_ACCEPT - EFL_UI_DND_EVENT_DRAG_DONE /// The data format @@ -468,204 +588,296 @@ private static object DragDropEvtKey = new object(); /// Action when data is transferred /// Function pointer to create icon /// Specified seat for multiple seats case. - /// - public void DragStart( Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, Efl.Dnd.DragIconCreate icon_func, uint seat) { + public void DragStart(Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, Efl.Dnd.DragIconCreate icon_func, uint seat) { GCHandle icon_func_handle = GCHandle.Alloc(icon_func); - Efl.Ui.IDndNativeInherit.efl_ui_dnd_drag_start_ptr.Value.Delegate(this.NativeHandle, format, data, action, GCHandle.ToIntPtr(icon_func_handle), Efl.Dnd.DragIconCreateWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); + Efl.Ui.IDndConcrete.NativeMethods.efl_ui_dnd_drag_start_ptr.Value.Delegate(this.NativeHandle,format, data, action, GCHandle.ToIntPtr(icon_func_handle), Efl.Dnd.DragIconCreateWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); Eina.Error.RaiseIfUnhandledException(); } /// Set the action for the drag /// Drag action /// Specified seat for multiple seats case. - /// - public void SetDragAction( Efl.Ui.SelectionAction action, uint seat) { - Efl.Ui.IDndNativeInherit.efl_ui_dnd_drag_action_set_ptr.Value.Delegate(this.NativeHandle, action, seat); + public void SetDragAction(Efl.Ui.SelectionAction action, uint seat) { + Efl.Ui.IDndConcrete.NativeMethods.efl_ui_dnd_drag_action_set_ptr.Value.Delegate(this.NativeHandle,action, seat); Eina.Error.RaiseIfUnhandledException(); } /// Cancel the on-going drag /// Specified seat for multiple seats case. - /// - public void DragCancel( uint seat) { - Efl.Ui.IDndNativeInherit.efl_ui_dnd_drag_cancel_ptr.Value.Delegate(this.NativeHandle, seat); + public void DragCancel(uint seat) { + Efl.Ui.IDndConcrete.NativeMethods.efl_ui_dnd_drag_cancel_ptr.Value.Delegate(this.NativeHandle,seat); Eina.Error.RaiseIfUnhandledException(); } /// Make the current object as drop target. There are four events emitted: - EFL_UI_DND_EVENT_DRAG_ENTER - EFL_UI_DND_EVENT_DRAG_LEAVE - EFL_UI_DND_EVENT_DRAG_POS - EFL_UI_DND_EVENT_DRAG_DROP. /// Accepted data format /// Specified seat for multiple seats case. - /// - public void AddDropTarget( Efl.Ui.SelectionFormat format, uint seat) { - Efl.Ui.IDndNativeInherit.efl_ui_dnd_drop_target_add_ptr.Value.Delegate(this.NativeHandle, format, seat); + public void AddDropTarget(Efl.Ui.SelectionFormat format, uint seat) { + Efl.Ui.IDndConcrete.NativeMethods.efl_ui_dnd_drop_target_add_ptr.Value.Delegate(this.NativeHandle,format, seat); Eina.Error.RaiseIfUnhandledException(); } /// Delete the dropable status from object /// Accepted data format /// Specified seat for multiple seats case. - /// - public void DelDropTarget( Efl.Ui.SelectionFormat format, uint seat) { - Efl.Ui.IDndNativeInherit.efl_ui_dnd_drop_target_del_ptr.Value.Delegate(this.NativeHandle, format, seat); + public void DelDropTarget(Efl.Ui.SelectionFormat format, uint seat) { + Efl.Ui.IDndConcrete.NativeMethods.efl_ui_dnd_drop_target_del_ptr.Value.Delegate(this.NativeHandle,format, seat); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Ui.IDndConcrete.efl_ui_dnd_mixin_get(); } -} -public class IDndNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_dnd_drag_start_static_delegate == null) - efl_ui_dnd_drag_start_static_delegate = new efl_ui_dnd_drag_start_delegate(drag_start); - if (methods.FirstOrDefault(m => m.Name == "DragStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_drag_start"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_start_static_delegate)}); - if (efl_ui_dnd_drag_action_set_static_delegate == null) - efl_ui_dnd_drag_action_set_static_delegate = new efl_ui_dnd_drag_action_set_delegate(drag_action_set); - if (methods.FirstOrDefault(m => m.Name == "SetDragAction") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_drag_action_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_action_set_static_delegate)}); - if (efl_ui_dnd_drag_cancel_static_delegate == null) - efl_ui_dnd_drag_cancel_static_delegate = new efl_ui_dnd_drag_cancel_delegate(drag_cancel); - if (methods.FirstOrDefault(m => m.Name == "DragCancel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_drag_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_cancel_static_delegate)}); - if (efl_ui_dnd_drop_target_add_static_delegate == null) - efl_ui_dnd_drop_target_add_static_delegate = new efl_ui_dnd_drop_target_add_delegate(drop_target_add); - if (methods.FirstOrDefault(m => m.Name == "AddDropTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_drop_target_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drop_target_add_static_delegate)}); - if (efl_ui_dnd_drop_target_del_static_delegate == null) - efl_ui_dnd_drop_target_del_static_delegate = new efl_ui_dnd_drop_target_del_delegate(drop_target_del); - if (methods.FirstOrDefault(m => m.Name == "DelDropTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_drop_target_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drop_target_del_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IDndConcrete.efl_ui_dnd_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IDndConcrete.efl_ui_dnd_mixin_get(); - } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_dnd_drag_start_static_delegate == null) + { + efl_ui_dnd_drag_start_static_delegate = new efl_ui_dnd_drag_start_delegate(drag_start); + } + + if (methods.FirstOrDefault(m => m.Name == "DragStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_drag_start"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_start_static_delegate) }); + } + if (efl_ui_dnd_drag_action_set_static_delegate == null) + { + efl_ui_dnd_drag_action_set_static_delegate = new efl_ui_dnd_drag_action_set_delegate(drag_action_set); + } - private delegate void efl_ui_dnd_drag_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat); + if (methods.FirstOrDefault(m => m.Name == "SetDragAction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_drag_action_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_action_set_static_delegate) }); + } + if (efl_ui_dnd_drag_cancel_static_delegate == null) + { + efl_ui_dnd_drag_cancel_static_delegate = new efl_ui_dnd_drag_cancel_delegate(drag_cancel); + } - public delegate void efl_ui_dnd_drag_start_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_drag_start"); - private static void drag_start(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_drag_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Dnd.DragIconCreateWrapper icon_func_wrapper = new Efl.Dnd.DragIconCreateWrapper(icon_func, icon_func_data, icon_func_free_cb); + if (methods.FirstOrDefault(m => m.Name == "DragCancel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_drag_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_cancel_static_delegate) }); + } + + if (efl_ui_dnd_drop_target_add_static_delegate == null) + { + efl_ui_dnd_drop_target_add_static_delegate = new efl_ui_dnd_drop_target_add_delegate(drop_target_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddDropTarget") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_drop_target_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drop_target_add_static_delegate) }); + } + + if (efl_ui_dnd_drop_target_del_static_delegate == null) + { + efl_ui_dnd_drop_target_del_static_delegate = new efl_ui_dnd_drop_target_del_delegate(drop_target_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelDropTarget") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_drop_target_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drop_target_del_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.IDndConcrete.efl_ui_dnd_mixin_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_ui_dnd_drag_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat); + + + public delegate void efl_ui_dnd_drag_start_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat); + + public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_drag_start"); + + private static void drag_start(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_drag_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Dnd.DragIconCreateWrapper icon_func_wrapper = new Efl.Dnd.DragIconCreateWrapper(icon_func, icon_func_data, icon_func_free_cb); - try { - ((IDndConcrete)wrapper).DragStart( format, data, action, icon_func_wrapper.ManagedCb, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IDndConcrete)wrapper).DragStart(format, data, action, icon_func_wrapper.ManagedCb, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_drag_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, data, action, icon_func_data, icon_func, icon_func_free_cb, seat); } - } else { - efl_ui_dnd_drag_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, data, action, icon_func_data, icon_func, icon_func_free_cb, seat); } - } - private static efl_ui_dnd_drag_start_delegate efl_ui_dnd_drag_start_static_delegate; + private static efl_ui_dnd_drag_start_delegate efl_ui_dnd_drag_start_static_delegate; - private delegate void efl_ui_dnd_drag_action_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionAction action, uint seat); + + private delegate void efl_ui_dnd_drag_action_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionAction action, uint seat); + + public delegate void efl_ui_dnd_drag_action_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectionAction action, uint seat); - public delegate void efl_ui_dnd_drag_action_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectionAction action, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_action_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_drag_action_set"); - private static void drag_action_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionAction action, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_drag_action_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IDndConcrete)wrapper).SetDragAction( action, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_dnd_drag_action_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), action, seat); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_action_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_drag_action_set"); + + private static void drag_action_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionAction action, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_drag_action_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IDndConcrete)wrapper).SetDragAction(action, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_drag_action_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), action, seat); + } } - } - private static efl_ui_dnd_drag_action_set_delegate efl_ui_dnd_drag_action_set_static_delegate; + private static efl_ui_dnd_drag_action_set_delegate efl_ui_dnd_drag_action_set_static_delegate; - private delegate void efl_ui_dnd_drag_cancel_delegate(System.IntPtr obj, System.IntPtr pd, uint seat); + + private delegate void efl_ui_dnd_drag_cancel_delegate(System.IntPtr obj, System.IntPtr pd, uint seat); + + public delegate void efl_ui_dnd_drag_cancel_api_delegate(System.IntPtr obj, uint seat); - public delegate void efl_ui_dnd_drag_cancel_api_delegate(System.IntPtr obj, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_cancel_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_drag_cancel"); - private static void drag_cancel(System.IntPtr obj, System.IntPtr pd, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_drag_cancel was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IDndConcrete)wrapper).DragCancel( seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_dnd_drag_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_cancel_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_drag_cancel"); + + private static void drag_cancel(System.IntPtr obj, System.IntPtr pd, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_drag_cancel was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IDndConcrete)wrapper).DragCancel(seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_drag_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + } } - } - private static efl_ui_dnd_drag_cancel_delegate efl_ui_dnd_drag_cancel_static_delegate; + private static efl_ui_dnd_drag_cancel_delegate efl_ui_dnd_drag_cancel_static_delegate; - private delegate void efl_ui_dnd_drop_target_add_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat); + + private delegate void efl_ui_dnd_drop_target_add_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat); + + public delegate void efl_ui_dnd_drop_target_add_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, uint seat); - public delegate void efl_ui_dnd_drop_target_add_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_drop_target_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_drop_target_add"); - private static void drop_target_add(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_drop_target_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IDndConcrete)wrapper).AddDropTarget( format, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_dnd_drop_target_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, seat); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_drop_target_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_drop_target_add"); + + private static void drop_target_add(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_drop_target_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IDndConcrete)wrapper).AddDropTarget(format, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_drop_target_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, seat); + } } - } - private static efl_ui_dnd_drop_target_add_delegate efl_ui_dnd_drop_target_add_static_delegate; + private static efl_ui_dnd_drop_target_add_delegate efl_ui_dnd_drop_target_add_static_delegate; - private delegate void efl_ui_dnd_drop_target_del_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat); + + private delegate void efl_ui_dnd_drop_target_del_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat); + + public delegate void efl_ui_dnd_drop_target_del_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, uint seat); - public delegate void efl_ui_dnd_drop_target_del_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_drop_target_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_drop_target_del"); - private static void drop_target_del(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_drop_target_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IDndConcrete)wrapper).DelDropTarget( format, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_dnd_drop_target_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, seat); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_drop_target_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_drop_target_del"); + + private static void drop_target_del(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_drop_target_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IDndConcrete)wrapper).DelDropTarget(format, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_drop_target_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, seat); + } } - } - private static efl_ui_dnd_drop_target_del_delegate efl_ui_dnd_drop_target_del_static_delegate; + + private static efl_ui_dnd_drop_target_del_delegate efl_ui_dnd_drop_target_del_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_container.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_container.eo.cs index e9e6529..fdf4f16 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_container.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_container.eo.cs @@ -3,10 +3,13 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[IDndContainerNativeInherit] +namespace Efl { + +namespace Ui { + +[Efl.Ui.IDndContainerConcrete.NativeMethods] public interface IDndContainer : Efl.Eo.IWrapper, IDisposable { @@ -15,30 +18,23 @@ public interface IDndContainer : double GetDragDelayTime(); /// The time since mouse down happens to drag starts. /// The drag delay time -/// -void SetDragDelayTime( double time); +void SetDragDelayTime(double time); /// This registers a drag for items in a container. Many items can be dragged at a time. During dragging, there are three events emitted: EFL_DND_EVENT_DRAG_POS, EFL_DND_EVENT_DRAG_ACCEPT, EFL_DND_EVENT_DRAG_DONE. /// Data and its format /// Item to determine drag start /// Icon used during drag /// Icons used for animations CHECKING /// Specified seat for multiple seats case. -/// -void AddDragItem( Efl.Dnd.DragDataGet data_func, Efl.Dnd.ItemGet item_func, Efl.Dnd.DragIconCreate icon_func, Efl.Dnd.DragIconListCreate icon_list_func, uint seat); +void AddDragItem(Efl.Dnd.DragDataGet data_func, Efl.Dnd.ItemGet item_func, Efl.Dnd.DragIconCreate icon_func, Efl.Dnd.DragIconListCreate icon_list_func, uint seat); /// Remove drag function of items in the container object. /// Specified seat for multiple seats case. -/// -void DelDragItem( uint seat); - /// -/// Accepted data formats +void DelDragItem(uint seat); + /// Accepted data formats /// Get item at specific position /// Specified seat for multiple seats case. -/// -void AddDropItem( Efl.Ui.SelectionFormat format, Efl.Dnd.ItemGet item_func, uint seat); - /// -/// Specified seat for multiple seats case. -/// -void DelDropItem( uint seat); +void AddDropItem(Efl.Ui.SelectionFormat format, Efl.Dnd.ItemGet item_func, uint seat); + /// Specified seat for multiple seats case. +void DelDropItem(uint seat); /// The time since mouse down happens to drag starts. /// The drag delay time double DragDelayTime { @@ -46,87 +42,120 @@ void DelDropItem( uint seat); set ; } } -/// sealed public class IDndContainerConcrete : IDndContainer { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IDndContainerConcrete)) - return Efl.Ui.IDndContainerNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IDndContainerConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_dnd_container_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IDndContainerConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IDndContainerConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// The time since mouse down happens to drag starts. /// The drag delay time public double GetDragDelayTime() { - var _ret_var = Efl.Ui.IDndContainerNativeInherit.efl_ui_dnd_container_drag_delay_time_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IDndContainerConcrete.NativeMethods.efl_ui_dnd_container_drag_delay_time_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The time since mouse down happens to drag starts. /// The drag delay time - /// - public void SetDragDelayTime( double time) { - Efl.Ui.IDndContainerNativeInherit.efl_ui_dnd_container_drag_delay_time_set_ptr.Value.Delegate(this.NativeHandle, time); + public void SetDragDelayTime(double time) { + Efl.Ui.IDndContainerConcrete.NativeMethods.efl_ui_dnd_container_drag_delay_time_set_ptr.Value.Delegate(this.NativeHandle,time); Eina.Error.RaiseIfUnhandledException(); } /// This registers a drag for items in a container. Many items can be dragged at a time. During dragging, there are three events emitted: EFL_DND_EVENT_DRAG_POS, EFL_DND_EVENT_DRAG_ACCEPT, EFL_DND_EVENT_DRAG_DONE. @@ -135,239 +164,347 @@ IDndContainer /// Icon used during drag /// Icons used for animations CHECKING /// Specified seat for multiple seats case. - /// - public void AddDragItem( Efl.Dnd.DragDataGet data_func, Efl.Dnd.ItemGet item_func, Efl.Dnd.DragIconCreate icon_func, Efl.Dnd.DragIconListCreate icon_list_func, uint seat) { + public void AddDragItem(Efl.Dnd.DragDataGet data_func, Efl.Dnd.ItemGet item_func, Efl.Dnd.DragIconCreate icon_func, Efl.Dnd.DragIconListCreate icon_list_func, uint seat) { GCHandle data_func_handle = GCHandle.Alloc(data_func); GCHandle item_func_handle = GCHandle.Alloc(item_func); GCHandle icon_func_handle = GCHandle.Alloc(icon_func); GCHandle icon_list_func_handle = GCHandle.Alloc(icon_list_func); - Efl.Ui.IDndContainerNativeInherit.efl_ui_dnd_container_drag_item_add_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(data_func_handle), Efl.Dnd.DragDataGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(item_func_handle), Efl.Dnd.ItemGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(icon_func_handle), Efl.Dnd.DragIconCreateWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(icon_list_func_handle), Efl.Dnd.DragIconListCreateWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); + Efl.Ui.IDndContainerConcrete.NativeMethods.efl_ui_dnd_container_drag_item_add_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(data_func_handle), Efl.Dnd.DragDataGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(item_func_handle), Efl.Dnd.ItemGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(icon_func_handle), Efl.Dnd.DragIconCreateWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(icon_list_func_handle), Efl.Dnd.DragIconListCreateWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); Eina.Error.RaiseIfUnhandledException(); } /// Remove drag function of items in the container object. /// Specified seat for multiple seats case. - /// - public void DelDragItem( uint seat) { - Efl.Ui.IDndContainerNativeInherit.efl_ui_dnd_container_drag_item_del_ptr.Value.Delegate(this.NativeHandle, seat); + public void DelDragItem(uint seat) { + Efl.Ui.IDndContainerConcrete.NativeMethods.efl_ui_dnd_container_drag_item_del_ptr.Value.Delegate(this.NativeHandle,seat); Eina.Error.RaiseIfUnhandledException(); } - /// /// Accepted data formats /// Get item at specific position /// Specified seat for multiple seats case. - /// - public void AddDropItem( Efl.Ui.SelectionFormat format, Efl.Dnd.ItemGet item_func, uint seat) { + public void AddDropItem(Efl.Ui.SelectionFormat format, Efl.Dnd.ItemGet item_func, uint seat) { GCHandle item_func_handle = GCHandle.Alloc(item_func); - Efl.Ui.IDndContainerNativeInherit.efl_ui_dnd_container_drop_item_add_ptr.Value.Delegate(this.NativeHandle, format, GCHandle.ToIntPtr(item_func_handle), Efl.Dnd.ItemGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); + Efl.Ui.IDndContainerConcrete.NativeMethods.efl_ui_dnd_container_drop_item_add_ptr.Value.Delegate(this.NativeHandle,format, GCHandle.ToIntPtr(item_func_handle), Efl.Dnd.ItemGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); Eina.Error.RaiseIfUnhandledException(); } - /// /// Specified seat for multiple seats case. - /// - public void DelDropItem( uint seat) { - Efl.Ui.IDndContainerNativeInherit.efl_ui_dnd_container_drop_item_del_ptr.Value.Delegate(this.NativeHandle, seat); + public void DelDropItem(uint seat) { + Efl.Ui.IDndContainerConcrete.NativeMethods.efl_ui_dnd_container_drop_item_del_ptr.Value.Delegate(this.NativeHandle,seat); Eina.Error.RaiseIfUnhandledException(); } /// The time since mouse down happens to drag starts. /// The drag delay time public double DragDelayTime { get { return GetDragDelayTime(); } - set { SetDragDelayTime( value); } + set { SetDragDelayTime(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IDndContainerConcrete.efl_ui_dnd_container_mixin_get(); } -} -public class IDndContainerNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_dnd_container_drag_delay_time_get_static_delegate == null) - efl_ui_dnd_container_drag_delay_time_get_static_delegate = new efl_ui_dnd_container_drag_delay_time_get_delegate(drag_delay_time_get); - if (methods.FirstOrDefault(m => m.Name == "GetDragDelayTime") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_container_drag_delay_time_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drag_delay_time_get_static_delegate)}); - if (efl_ui_dnd_container_drag_delay_time_set_static_delegate == null) - efl_ui_dnd_container_drag_delay_time_set_static_delegate = new efl_ui_dnd_container_drag_delay_time_set_delegate(drag_delay_time_set); - if (methods.FirstOrDefault(m => m.Name == "SetDragDelayTime") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_container_drag_delay_time_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drag_delay_time_set_static_delegate)}); - if (efl_ui_dnd_container_drag_item_add_static_delegate == null) - efl_ui_dnd_container_drag_item_add_static_delegate = new efl_ui_dnd_container_drag_item_add_delegate(drag_item_add); - if (methods.FirstOrDefault(m => m.Name == "AddDragItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_container_drag_item_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drag_item_add_static_delegate)}); - if (efl_ui_dnd_container_drag_item_del_static_delegate == null) - efl_ui_dnd_container_drag_item_del_static_delegate = new efl_ui_dnd_container_drag_item_del_delegate(drag_item_del); - if (methods.FirstOrDefault(m => m.Name == "DelDragItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_container_drag_item_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drag_item_del_static_delegate)}); - if (efl_ui_dnd_container_drop_item_add_static_delegate == null) - efl_ui_dnd_container_drop_item_add_static_delegate = new efl_ui_dnd_container_drop_item_add_delegate(drop_item_add); - if (methods.FirstOrDefault(m => m.Name == "AddDropItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_container_drop_item_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drop_item_add_static_delegate)}); - if (efl_ui_dnd_container_drop_item_del_static_delegate == null) - efl_ui_dnd_container_drop_item_del_static_delegate = new efl_ui_dnd_container_drop_item_del_delegate(drop_item_del); - if (methods.FirstOrDefault(m => m.Name == "DelDropItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_container_drop_item_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drop_item_del_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IDndContainerConcrete.efl_ui_dnd_container_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IDndContainerConcrete.efl_ui_dnd_container_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_dnd_container_drag_delay_time_get_static_delegate == null) + { + efl_ui_dnd_container_drag_delay_time_get_static_delegate = new efl_ui_dnd_container_drag_delay_time_get_delegate(drag_delay_time_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetDragDelayTime") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_container_drag_delay_time_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drag_delay_time_get_static_delegate) }); + } - private delegate double efl_ui_dnd_container_drag_delay_time_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_dnd_container_drag_delay_time_set_static_delegate == null) + { + efl_ui_dnd_container_drag_delay_time_set_static_delegate = new efl_ui_dnd_container_drag_delay_time_set_delegate(drag_delay_time_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetDragDelayTime") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_container_drag_delay_time_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drag_delay_time_set_static_delegate) }); + } - public delegate double efl_ui_dnd_container_drag_delay_time_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drag_delay_time_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_container_drag_delay_time_get"); - private static double drag_delay_time_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_dnd_container_drag_delay_time_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IDndContainerConcrete)wrapper).GetDragDelayTime(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_dnd_container_drag_item_add_static_delegate == null) + { + efl_ui_dnd_container_drag_item_add_static_delegate = new efl_ui_dnd_container_drag_item_add_delegate(drag_item_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddDragItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_container_drag_item_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drag_item_add_static_delegate) }); + } + + if (efl_ui_dnd_container_drag_item_del_static_delegate == null) + { + efl_ui_dnd_container_drag_item_del_static_delegate = new efl_ui_dnd_container_drag_item_del_delegate(drag_item_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelDragItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_container_drag_item_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drag_item_del_static_delegate) }); + } + + if (efl_ui_dnd_container_drop_item_add_static_delegate == null) + { + efl_ui_dnd_container_drop_item_add_static_delegate = new efl_ui_dnd_container_drop_item_add_delegate(drop_item_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddDropItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_container_drop_item_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drop_item_add_static_delegate) }); + } + + if (efl_ui_dnd_container_drop_item_del_static_delegate == null) + { + efl_ui_dnd_container_drop_item_del_static_delegate = new efl_ui_dnd_container_drop_item_del_delegate(drop_item_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelDropItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_container_drop_item_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_container_drop_item_del_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.IDndContainerConcrete.efl_ui_dnd_container_mixin_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate double efl_ui_dnd_container_drag_delay_time_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_ui_dnd_container_drag_delay_time_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drag_delay_time_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_container_drag_delay_time_get"); + + private static double drag_delay_time_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_dnd_container_drag_delay_time_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IDndContainerConcrete)wrapper).GetDragDelayTime(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_dnd_container_drag_delay_time_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_dnd_container_drag_delay_time_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_dnd_container_drag_delay_time_get_delegate efl_ui_dnd_container_drag_delay_time_get_static_delegate; + private static efl_ui_dnd_container_drag_delay_time_get_delegate efl_ui_dnd_container_drag_delay_time_get_static_delegate; - private delegate void efl_ui_dnd_container_drag_delay_time_set_delegate(System.IntPtr obj, System.IntPtr pd, double time); + + private delegate void efl_ui_dnd_container_drag_delay_time_set_delegate(System.IntPtr obj, System.IntPtr pd, double time); + + public delegate void efl_ui_dnd_container_drag_delay_time_set_api_delegate(System.IntPtr obj, double time); - public delegate void efl_ui_dnd_container_drag_delay_time_set_api_delegate(System.IntPtr obj, double time); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drag_delay_time_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_container_drag_delay_time_set"); - private static void drag_delay_time_set(System.IntPtr obj, System.IntPtr pd, double time) - { - Eina.Log.Debug("function efl_ui_dnd_container_drag_delay_time_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IDndContainerConcrete)wrapper).SetDragDelayTime( time); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drag_delay_time_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_container_drag_delay_time_set"); + + private static void drag_delay_time_set(System.IntPtr obj, System.IntPtr pd, double time) + { + Eina.Log.Debug("function efl_ui_dnd_container_drag_delay_time_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IDndContainerConcrete)wrapper).SetDragDelayTime(time); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_container_drag_delay_time_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), time); } - } else { - efl_ui_dnd_container_drag_delay_time_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), time); } - } - private static efl_ui_dnd_container_drag_delay_time_set_delegate efl_ui_dnd_container_drag_delay_time_set_static_delegate; + private static efl_ui_dnd_container_drag_delay_time_set_delegate efl_ui_dnd_container_drag_delay_time_set_static_delegate; - private delegate void efl_ui_dnd_container_drag_item_add_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr data_func_data, Efl.Dnd.DragDataGetInternal data_func, EinaFreeCb data_func_free_cb, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, IntPtr icon_list_func_data, Efl.Dnd.DragIconListCreateInternal icon_list_func, EinaFreeCb icon_list_func_free_cb, uint seat); + + private delegate void efl_ui_dnd_container_drag_item_add_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr data_func_data, Efl.Dnd.DragDataGetInternal data_func, EinaFreeCb data_func_free_cb, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, IntPtr icon_list_func_data, Efl.Dnd.DragIconListCreateInternal icon_list_func, EinaFreeCb icon_list_func_free_cb, uint seat); + + public delegate void efl_ui_dnd_container_drag_item_add_api_delegate(System.IntPtr obj, IntPtr data_func_data, Efl.Dnd.DragDataGetInternal data_func, EinaFreeCb data_func_free_cb, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, IntPtr icon_list_func_data, Efl.Dnd.DragIconListCreateInternal icon_list_func, EinaFreeCb icon_list_func_free_cb, uint seat); - public delegate void efl_ui_dnd_container_drag_item_add_api_delegate(System.IntPtr obj, IntPtr data_func_data, Efl.Dnd.DragDataGetInternal data_func, EinaFreeCb data_func_free_cb, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, IntPtr icon_list_func_data, Efl.Dnd.DragIconListCreateInternal icon_list_func, EinaFreeCb icon_list_func_free_cb, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drag_item_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_container_drag_item_add"); - private static void drag_item_add(System.IntPtr obj, System.IntPtr pd, IntPtr data_func_data, Efl.Dnd.DragDataGetInternal data_func, EinaFreeCb data_func_free_cb, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, IntPtr icon_list_func_data, Efl.Dnd.DragIconListCreateInternal icon_list_func, EinaFreeCb icon_list_func_free_cb, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_container_drag_item_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Dnd.DragDataGetWrapper data_func_wrapper = new Efl.Dnd.DragDataGetWrapper(data_func, data_func_data, data_func_free_cb); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drag_item_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_container_drag_item_add"); + + private static void drag_item_add(System.IntPtr obj, System.IntPtr pd, IntPtr data_func_data, Efl.Dnd.DragDataGetInternal data_func, EinaFreeCb data_func_free_cb, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, IntPtr icon_list_func_data, Efl.Dnd.DragIconListCreateInternal icon_list_func, EinaFreeCb icon_list_func_free_cb, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_container_drag_item_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Dnd.DragDataGetWrapper data_func_wrapper = new Efl.Dnd.DragDataGetWrapper(data_func, data_func_data, data_func_free_cb); Efl.Dnd.ItemGetWrapper item_func_wrapper = new Efl.Dnd.ItemGetWrapper(item_func, item_func_data, item_func_free_cb); Efl.Dnd.DragIconCreateWrapper icon_func_wrapper = new Efl.Dnd.DragIconCreateWrapper(icon_func, icon_func_data, icon_func_free_cb); Efl.Dnd.DragIconListCreateWrapper icon_list_func_wrapper = new Efl.Dnd.DragIconListCreateWrapper(icon_list_func, icon_list_func_data, icon_list_func_free_cb); - try { - ((IDndContainerConcrete)wrapper).AddDragItem( data_func_wrapper.ManagedCb, item_func_wrapper.ManagedCb, icon_func_wrapper.ManagedCb, icon_list_func_wrapper.ManagedCb, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IDndContainerConcrete)wrapper).AddDragItem(data_func_wrapper.ManagedCb, item_func_wrapper.ManagedCb, icon_func_wrapper.ManagedCb, icon_list_func_wrapper.ManagedCb, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_container_drag_item_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data_func_data, data_func, data_func_free_cb, item_func_data, item_func, item_func_free_cb, icon_func_data, icon_func, icon_func_free_cb, icon_list_func_data, icon_list_func, icon_list_func_free_cb, seat); } - } else { - efl_ui_dnd_container_drag_item_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data_func_data, data_func, data_func_free_cb, item_func_data, item_func, item_func_free_cb, icon_func_data, icon_func, icon_func_free_cb, icon_list_func_data, icon_list_func, icon_list_func_free_cb, seat); } - } - private static efl_ui_dnd_container_drag_item_add_delegate efl_ui_dnd_container_drag_item_add_static_delegate; + private static efl_ui_dnd_container_drag_item_add_delegate efl_ui_dnd_container_drag_item_add_static_delegate; - private delegate void efl_ui_dnd_container_drag_item_del_delegate(System.IntPtr obj, System.IntPtr pd, uint seat); + + private delegate void efl_ui_dnd_container_drag_item_del_delegate(System.IntPtr obj, System.IntPtr pd, uint seat); + + public delegate void efl_ui_dnd_container_drag_item_del_api_delegate(System.IntPtr obj, uint seat); - public delegate void efl_ui_dnd_container_drag_item_del_api_delegate(System.IntPtr obj, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drag_item_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_container_drag_item_del"); - private static void drag_item_del(System.IntPtr obj, System.IntPtr pd, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_container_drag_item_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IDndContainerConcrete)wrapper).DelDragItem( seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drag_item_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_container_drag_item_del"); + + private static void drag_item_del(System.IntPtr obj, System.IntPtr pd, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_container_drag_item_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IDndContainerConcrete)wrapper).DelDragItem(seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_container_drag_item_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); } - } else { - efl_ui_dnd_container_drag_item_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); } - } - private static efl_ui_dnd_container_drag_item_del_delegate efl_ui_dnd_container_drag_item_del_static_delegate; + private static efl_ui_dnd_container_drag_item_del_delegate efl_ui_dnd_container_drag_item_del_static_delegate; - private delegate void efl_ui_dnd_container_drop_item_add_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, uint seat); + + private delegate void efl_ui_dnd_container_drop_item_add_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, uint seat); + + public delegate void efl_ui_dnd_container_drop_item_add_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, uint seat); - public delegate void efl_ui_dnd_container_drop_item_add_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drop_item_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_container_drop_item_add"); - private static void drop_item_add(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_container_drop_item_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Dnd.ItemGetWrapper item_func_wrapper = new Efl.Dnd.ItemGetWrapper(item_func, item_func_data, item_func_free_cb); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drop_item_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_container_drop_item_add"); + + private static void drop_item_add(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_container_drop_item_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Dnd.ItemGetWrapper item_func_wrapper = new Efl.Dnd.ItemGetWrapper(item_func, item_func_data, item_func_free_cb); - try { - ((IDndContainerConcrete)wrapper).AddDropItem( format, item_func_wrapper.ManagedCb, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IDndContainerConcrete)wrapper).AddDropItem(format, item_func_wrapper.ManagedCb, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_container_drop_item_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, item_func_data, item_func, item_func_free_cb, seat); } - } else { - efl_ui_dnd_container_drop_item_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, item_func_data, item_func, item_func_free_cb, seat); } - } - private static efl_ui_dnd_container_drop_item_add_delegate efl_ui_dnd_container_drop_item_add_static_delegate; + private static efl_ui_dnd_container_drop_item_add_delegate efl_ui_dnd_container_drop_item_add_static_delegate; - private delegate void efl_ui_dnd_container_drop_item_del_delegate(System.IntPtr obj, System.IntPtr pd, uint seat); + + private delegate void efl_ui_dnd_container_drop_item_del_delegate(System.IntPtr obj, System.IntPtr pd, uint seat); + + public delegate void efl_ui_dnd_container_drop_item_del_api_delegate(System.IntPtr obj, uint seat); - public delegate void efl_ui_dnd_container_drop_item_del_api_delegate(System.IntPtr obj, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drop_item_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_container_drop_item_del"); - private static void drop_item_del(System.IntPtr obj, System.IntPtr pd, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_container_drop_item_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IDndContainerConcrete)wrapper).DelDropItem( seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_container_drop_item_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_container_drop_item_del"); + + private static void drop_item_del(System.IntPtr obj, System.IntPtr pd, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_container_drop_item_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IDndContainerConcrete)wrapper).DelDropItem(seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_container_drop_item_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); } - } else { - efl_ui_dnd_container_drop_item_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); } - } - private static efl_ui_dnd_container_drop_item_del_delegate efl_ui_dnd_container_drop_item_del_static_delegate; + + private static efl_ui_dnd_container_drop_item_del_delegate efl_ui_dnd_container_drop_item_del_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_types.eot.cs index a5905de..196073d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_types.eot.cs @@ -3,16 +3,18 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Dnd { -/// +namespace Efl { + +namespace Dnd { + /// The window to create the objects relative to /// The drag object /// Offset from the icon position to the cursor -/// -public delegate Efl.Canvas.Object DragIconCreate( Efl.Canvas.Object win, Efl.Canvas.Object drag_obj, out Eina.Position2D off); -[return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))]public delegate Efl.Canvas.Object DragIconCreateInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object win, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object drag_obj, out Eina.Position2D.NativeStruct off); -internal class DragIconCreateWrapper +public delegate Efl.Canvas.Object DragIconCreate(Efl.Canvas.Object win, Efl.Canvas.Object drag_obj, out Eina.Position2D off); +[return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))]public delegate Efl.Canvas.Object DragIconCreateInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object win, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object drag_obj, out Eina.Position2D.NativeStruct off); +internal class DragIconCreateWrapper : IDisposable { private DragIconCreateInternal _cb; @@ -28,27 +30,50 @@ internal class DragIconCreateWrapper ~DragIconCreateWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); } - internal Efl.Canvas.Object ManagedCb( Efl.Canvas.Object win, Efl.Canvas.Object drag_obj, out Eina.Position2D off) + internal Efl.Canvas.Object ManagedCb(Efl.Canvas.Object win,Efl.Canvas.Object drag_obj,out Eina.Position2D off) { var _out_off = new Eina.Position2D.NativeStruct(); - var _ret_var = _cb(_cb_data, win, drag_obj, out _out_off); + var _ret_var = _cb(_cb_data, win, drag_obj, out _out_off); Eina.Error.RaiseIfUnhandledException(); off = _out_off; return _ret_var; } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] internal static Efl.Canvas.Object Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object win, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object drag_obj, out Eina.Position2D.NativeStruct off) + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] internal static Efl.Canvas.Object Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object win, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object drag_obj, out Eina.Position2D.NativeStruct off) { GCHandle handle = GCHandle.FromIntPtr(cb_data); DragIconCreate cb = (DragIconCreate)handle.Target; Eina.Position2D _out_off = default(Eina.Position2D); Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); try { - _ret_var = cb( win, drag_obj, out _out_off); + _ret_var = cb(win, drag_obj, out _out_off); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); @@ -57,17 +82,21 @@ internal class DragIconCreateWrapper return _ret_var; } } -} } -namespace Efl { namespace Dnd { -/// +} + +} + +namespace Efl { + +namespace Dnd { + /// The container object /// Data format /// Data /// The drag action -/// -public delegate void DragDataGet( Efl.Canvas.Object obj, out Efl.Ui.SelectionFormat format, ref Eina.RwSlice drag_data, out Efl.Ui.SelectionAction action); -public delegate void DragDataGetInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object obj, out Efl.Ui.SelectionFormat format, ref Eina.RwSlice drag_data, out Efl.Ui.SelectionAction action); -internal class DragDataGetWrapper +public delegate void DragDataGet(Efl.Canvas.Object obj, out Efl.Ui.SelectionFormat format, ref Eina.RwSlice drag_data, out Efl.Ui.SelectionAction action); +public delegate void DragDataGetInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object obj, out Efl.Ui.SelectionFormat format, ref Eina.RwSlice drag_data, out Efl.Ui.SelectionAction action); +internal class DragDataGetWrapper : IDisposable { private DragDataGetInternal _cb; @@ -83,39 +112,66 @@ internal class DragDataGetWrapper ~DragDataGetWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); } - internal void ManagedCb( Efl.Canvas.Object obj, out Efl.Ui.SelectionFormat format, ref Eina.RwSlice drag_data, out Efl.Ui.SelectionAction action) + internal void ManagedCb(Efl.Canvas.Object obj,out Efl.Ui.SelectionFormat format,ref Eina.RwSlice drag_data,out Efl.Ui.SelectionAction action) { - _cb(_cb_data, obj, out format, ref drag_data, out action); + _cb(_cb_data, obj, out format, ref drag_data, out action); Eina.Error.RaiseIfUnhandledException(); } - internal static void Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object obj, out Efl.Ui.SelectionFormat format, ref Eina.RwSlice drag_data, out Efl.Ui.SelectionAction action) + internal static void Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object obj, out Efl.Ui.SelectionFormat format, ref Eina.RwSlice drag_data, out Efl.Ui.SelectionAction action) { GCHandle handle = GCHandle.FromIntPtr(cb_data); DragDataGet cb = (DragDataGet)handle.Target; format = default(Efl.Ui.SelectionFormat); drag_data = default(Eina.RwSlice); action = default(Efl.Ui.SelectionAction); try { - cb( obj, out format, ref drag_data, out action); + cb(obj, out format, ref drag_data, out action); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } } -} } -namespace Efl { namespace Dnd { -/// +} + +} + +namespace Efl { + +namespace Dnd { + /// The container object /// The coordinates to get item /// position relative to item (left (-1), middle (0), right (1) -/// -public delegate Efl.Object ItemGet( Efl.Canvas.Object obj, Eina.Position2D pos, out Eina.Position2D posret); -[return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))]public delegate Efl.Object ItemGetInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object obj, Eina.Position2D.NativeStruct pos, out Eina.Position2D.NativeStruct posret); -internal class ItemGetWrapper +public delegate Efl.Object ItemGet(Efl.Canvas.Object obj, Eina.Position2D pos, out Eina.Position2D posret); +[return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))]public delegate Efl.Object ItemGetInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object obj, Eina.Position2D.NativeStruct pos, out Eina.Position2D.NativeStruct posret); +internal class ItemGetWrapper : IDisposable { private ItemGetInternal _cb; @@ -131,21 +187,44 @@ internal class ItemGetWrapper ~ItemGetWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); } - internal Efl.Object ManagedCb( Efl.Canvas.Object obj, Eina.Position2D pos, out Eina.Position2D posret) + internal Efl.Object ManagedCb(Efl.Canvas.Object obj,Eina.Position2D pos,out Eina.Position2D posret) { Eina.Position2D.NativeStruct _in_pos = pos; var _out_posret = new Eina.Position2D.NativeStruct(); - var _ret_var = _cb(_cb_data, obj, _in_pos, out _out_posret); + var _ret_var = _cb(_cb_data, obj, _in_pos, out _out_posret); Eina.Error.RaiseIfUnhandledException(); posret = _out_posret; return _ret_var; } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] internal static Efl.Object Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object obj, Eina.Position2D.NativeStruct pos, out Eina.Position2D.NativeStruct posret) + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] internal static Efl.Object Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object obj, Eina.Position2D.NativeStruct pos, out Eina.Position2D.NativeStruct posret) { GCHandle handle = GCHandle.FromIntPtr(cb_data); ItemGet cb = (ItemGet)handle.Target; @@ -153,7 +232,7 @@ internal class ItemGetWrapper Eina.Position2D _out_posret = default(Eina.Position2D); Efl.Object _ret_var = default(Efl.Object); try { - _ret_var = cb( obj, _in_pos, out _out_posret); + _ret_var = cb(obj, _in_pos, out _out_posret); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); @@ -162,14 +241,18 @@ internal class ItemGetWrapper return _ret_var; } } -} } -namespace Efl { namespace Dnd { -/// +} + +} + +namespace Efl { + +namespace Dnd { + /// The container object -/// -public delegate Eina.List DragIconListCreate( Efl.Canvas.Object obj); -public delegate System.IntPtr DragIconListCreateInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object obj); -internal class DragIconListCreateWrapper +public delegate Eina.List DragIconListCreate(Efl.Canvas.Object obj); +public delegate System.IntPtr DragIconListCreateInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object obj); +internal class DragIconListCreateWrapper : IDisposable { private DragIconListCreateInternal _cb; @@ -185,24 +268,47 @@ internal class DragIconListCreateWrapper ~DragIconListCreateWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); } - internal Eina.List ManagedCb( Efl.Canvas.Object obj) + internal Eina.List ManagedCb(Efl.Canvas.Object obj) { - var _ret_var = _cb(_cb_data, obj); + var _ret_var = _cb(_cb_data, obj); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, false, false); } - internal static System.IntPtr Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object obj) + internal static System.IntPtr Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object obj) { GCHandle handle = GCHandle.FromIntPtr(cb_data); DragIconListCreate cb = (DragIconListCreate)handle.Target; Eina.List _ret_var = default(Eina.List); try { - _ret_var = cb( obj); + _ret_var = cb(obj); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); @@ -210,17 +316,21 @@ internal class DragIconListCreateWrapper return _ret_var.Handle; } } -} } -namespace Efl { namespace Dnd { -/// +} + +} + +namespace Efl { + +namespace Dnd { + [StructLayout(LayoutKind.Sequential)] public struct DragAccept { - /// - public bool Accepted; + public bool Accepted; ///Constructor for DragAccept. public DragAccept( - bool Accepted=default(bool) ) + bool Accepted = default(bool) ) { this.Accepted = Accepted; } @@ -257,9 +367,14 @@ public struct DragAccept } -} } -namespace Efl { namespace Dnd { -/// +} + +} + +namespace Efl { + +namespace Dnd { + [StructLayout(LayoutKind.Sequential)] public struct DragPos { @@ -273,10 +388,10 @@ public struct DragPos public Efl.Canvas.Object Item; ///Constructor for DragPos. public DragPos( - Eina.Position2D Pos=default(Eina.Position2D), - Efl.Ui.SelectionAction Action=default(Efl.Ui.SelectionAction), - Efl.Ui.SelectionFormat Format=default(Efl.Ui.SelectionFormat), - Efl.Canvas.Object Item=default(Efl.Canvas.Object) ) + Eina.Position2D Pos = default(Eina.Position2D), + Efl.Ui.SelectionAction Action = default(Efl.Ui.SelectionAction), + Efl.Ui.SelectionFormat Format = default(Efl.Ui.SelectionFormat), + Efl.Canvas.Object Item = default(Efl.Canvas.Object) ) { this.Pos = Pos; this.Action = Action; @@ -329,9 +444,14 @@ public struct DragPos } -} } -namespace Efl { namespace Dnd { -/// +} + +} + +namespace Efl { + +namespace Dnd { + [StructLayout(LayoutKind.Sequential)] public struct DragItemContainerDrop { @@ -343,9 +463,9 @@ public struct DragItemContainerDrop public Eina.Position2D Pos; ///Constructor for DragItemContainerDrop. public DragItemContainerDrop( - Efl.Canvas.Object Item=default(Efl.Canvas.Object), - Efl.Ui.SelectionData Data=default(Efl.Ui.SelectionData), - Eina.Position2D Pos=default(Eina.Position2D) ) + Efl.Canvas.Object Item = default(Efl.Canvas.Object), + Efl.Ui.SelectionData Data = default(Efl.Ui.SelectionData), + Eina.Position2D Pos = default(Eina.Position2D) ) { this.Item = Item; this.Data = Data; @@ -393,4 +513,7 @@ public struct DragItemContainerDrop } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_drag.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_drag.eo.cs index 6cfce72..65dc459 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_drag.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_drag.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Common interface for draggable objects and parts. -[IDragNativeInherit] +[Efl.Ui.IDragConcrete.NativeMethods] public interface IDrag : Efl.Eo.IWrapper, IDisposable { @@ -14,23 +18,23 @@ public interface IDrag : /// 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); +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); +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); +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); +bool SetDragSize(double dw, double dh); /// Gets the draggable direction. /// The direction(s) premitted for drag. Efl.Ui.DragDir GetDragDir(); @@ -38,22 +42,22 @@ Efl.Ui.DragDir GetDragDir(); /// 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); +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); +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); +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); +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 . /// @@ -61,7 +65,7 @@ bool SetDragPage( double dx, double dy); /// The number of steps horizontally. /// The number of steps vertically. /// true on success, false otherwise -bool MoveDragStep( double dx, double dy); +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 . /// @@ -71,7 +75,7 @@ bool MoveDragStep( double dx, double dy); /// The number of pages horizontally. /// The number of pages vertically. /// true on success, false otherwise -bool MoveDragPage( double dx, double dy); +bool MoveDragPage(double dx, double dy); /// 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. @@ -86,74 +90,109 @@ IDrag { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IDragConcrete)) - return Efl.Ui.IDragNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IDragConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_drag_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IDragConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IDragConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// 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.IDragNativeInherit.efl_ui_drag_value_get_ptr.Value.Delegate(this.NativeHandle, out dx, out dy); + 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; } @@ -162,8 +201,8 @@ IDrag /// 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.IDragNativeInherit.efl_ui_drag_value_set_ptr.Value.Delegate(this.NativeHandle, dx, dy); + 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; } @@ -171,8 +210,8 @@ IDrag /// 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.IDragNativeInherit.efl_ui_drag_size_get_ptr.Value.Delegate(this.NativeHandle, out dw, out dh); + 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; } @@ -180,15 +219,15 @@ IDrag /// 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.IDragNativeInherit.efl_ui_drag_size_set_ptr.Value.Delegate(this.NativeHandle, dw, dh); + 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.IDragNativeInherit.efl_ui_drag_dir_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IDragConcrete.NativeMethods.efl_ui_drag_dir_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -196,8 +235,8 @@ IDrag /// 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.IDragNativeInherit.efl_ui_drag_step_get_ptr.Value.Delegate(this.NativeHandle, out dx, out dy); + 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; } @@ -205,8 +244,8 @@ IDrag /// 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.IDragNativeInherit.efl_ui_drag_step_set_ptr.Value.Delegate(this.NativeHandle, dx, dy); + 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; } @@ -214,8 +253,8 @@ IDrag /// 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.IDragNativeInherit.efl_ui_drag_page_get_ptr.Value.Delegate(this.NativeHandle, out dx, out dy); + 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; } @@ -223,8 +262,8 @@ IDrag /// 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.IDragNativeInherit.efl_ui_drag_page_set_ptr.Value.Delegate(this.NativeHandle, dx, dy); + 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; } @@ -235,8 +274,8 @@ IDrag /// 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.IDragNativeInherit.efl_ui_drag_step_move_ptr.Value.Delegate(this.NativeHandle, dx, dy); + 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; } @@ -249,8 +288,8 @@ IDrag /// 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.IDragNativeInherit.efl_ui_drag_page_move_ptr.Value.Delegate(this.NativeHandle, dx, dy); + 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; } @@ -264,341 +303,540 @@ IDrag { return Efl.Ui.IDragConcrete.efl_ui_drag_interface_get(); } -} -public class IDragNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IDragConcrete.efl_ui_drag_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IDragConcrete.efl_ui_drag_interface_get(); - } + 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) }); + } - [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); + 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) }); + } - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - dx = default(double); dy = default(double); bool _ret_var = default(bool); - try { - _ret_var = ((IDrag)wrapper).GetDragValue( out dx, out dy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + 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); } - 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; + 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) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); + 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) }); + } - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IDrag)wrapper).SetDragValue( dx, dy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + 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); } - 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; + 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) }); + } - [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); + 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) }); + } - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - dw = default(double); dh = default(double); bool _ret_var = default(bool); - try { - _ret_var = ((IDrag)wrapper).GetDragSize( out dw, out dh); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + 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); } - 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; + 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) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_size_set_delegate(System.IntPtr obj, System.IntPtr pd, double dw, double dh); + 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) }); + } - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IDrag)wrapper).SetDragSize( dw, dh); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + 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); } - 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; + 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) }); + } - private delegate Efl.Ui.DragDir efl_ui_drag_dir_get_delegate(System.IntPtr obj, System.IntPtr pd); + 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) }); + } - 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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.DragDir _ret_var = default(Efl.Ui.DragDir); - try { - _ret_var = ((IDrag)wrapper).GetDragDir(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + 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); } - 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; + 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: 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 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, 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + dx = default(double); dy = default(double); bool _ret_var = default(bool); + try + { + _ret_var = ((IDrag)wrapper).GetDragValue(out dx, out dy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - dx = default(double); dy = default(double); bool _ret_var = default(bool); - try { - _ret_var = ((IDrag)wrapper).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; + } + 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); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IDrag)wrapper).SetDragValue(dx, dy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IDrag)wrapper).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); + 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_step_set_delegate efl_ui_drag_step_set_static_delegate; + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + dw = default(double); dh = default(double); bool _ret_var = default(bool); + try + { + _ret_var = ((IDrag)wrapper).GetDragSize(out dw, out dh); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [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 _ret_var; - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - dx = default(double); dy = default(double); bool _ret_var = default(bool); - try { - _ret_var = ((IDrag)wrapper).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); + 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_page_get_delegate efl_ui_drag_page_get_static_delegate; + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IDrag)wrapper).SetDragSize(dw, dh); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_page_set_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.DragDir _ret_var = default(Efl.Ui.DragDir); + try + { + _ret_var = ((IDrag)wrapper).GetDragDir(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IDrag)wrapper).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); + 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_page_set_delegate efl_ui_drag_page_set_static_delegate; + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + dx = default(double); dy = default(double); bool _ret_var = default(bool); + try + { + _ret_var = ((IDrag)wrapper).GetDragStep(out dx, out dy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_step_move_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IDrag)wrapper).SetDragStep(dx, dy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IDrag)wrapper).MoveDragStep( dx, dy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + dx = default(double); dy = default(double); bool _ret_var = default(bool); + try + { + _ret_var = ((IDrag)wrapper).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_step_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dx, dy); + + } + 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_step_move_delegate efl_ui_drag_step_move_static_delegate; + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IDrag)wrapper).SetDragPage(dx, dy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_drag_page_move_delegate(System.IntPtr obj, System.IntPtr pd, double dx, double dy); + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IDrag)wrapper).MoveDragStep(dx, dy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [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"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IDrag)wrapper).MoveDragPage( dx, dy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + 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"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IDrag)wrapper).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); + + } + 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; + + private static efl_ui_drag_page_move_delegate efl_ui_drag_page_move_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_draggable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_draggable.eo.cs index 2c01785..7e27db5 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_draggable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_draggable.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI draggable interface -[IDraggableNativeInherit] +[Efl.Ui.IDraggableConcrete.NativeMethods] public interface IDraggable : Efl.Eo.IWrapper, IDisposable { @@ -17,8 +21,7 @@ bool GetDragTarget(); /// Control whether the object's content is changed by drag and drop. /// If drag_target is true the object can be the target of a dragging object. The content of this object can then be changed into dragging content. For example, if an object deals with image and drag_target is true, the user can drag the new image and drop it into said object. This object's image can then be changed into a new image. /// Turn on or off drop_target. Default is false. -/// -void SetDragTarget( bool set); +void SetDragTarget(bool set); /// Called when drag operation starts event EventHandler DragEvt; /// Called when drag started @@ -80,503 +83,621 @@ IDraggable { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IDraggableConcrete)) - return Efl.Ui.IDraggableNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IDraggableConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_draggable_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IDraggableConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IDraggableConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object DragEvtKey = new object(); + /// Called when drag operation starts public event EventHandler DragEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragEvt_Args args = new Efl.Ui.IDraggableDragEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragEvt_delegate)) { - eventHandlers.AddHandler(DragEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG"; - if (RemoveNativeEventHandler(key, this.evt_DragEvt_delegate)) { - eventHandlers.RemoveHandler(DragEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragEvt. - public void On_DragEvt(Efl.Ui.IDraggableDragEvt_Args e) + public void OnDragEvt(Efl.Ui.IDraggableDragEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragEvtKey]; + var key = "_EFL_UI_EVENT_DRAG"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragEvt_delegate; - private void on_DragEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDraggableDragEvt_Args args = new Efl.Ui.IDraggableDragEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DragStartEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when drag started public event EventHandler DragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStartEvt_delegate)) { - eventHandlers.AddHandler(DragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_DragStartEvt_delegate)) { - eventHandlers.RemoveHandler(DragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStartEvt. - public void On_DragStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStartEvt_delegate; - private void on_DragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDragStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_DragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when drag stopped public event EventHandler DragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragStopEvt_Args args = new Efl.Ui.IDraggableDragStopEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStopEvt_delegate)) { - eventHandlers.AddHandler(DragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_DragStopEvt_delegate)) { - eventHandlers.RemoveHandler(DragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStopEvt. - public void On_DragStopEvt(Efl.Ui.IDraggableDragStopEvt_Args e) + public void OnDragStopEvt(Efl.Ui.IDraggableDragStopEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStopEvtKey]; + var key = "_EFL_UI_EVENT_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStopEvt_delegate; - private void on_DragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDraggableDragStopEvt_Args args = new Efl.Ui.IDraggableDragStopEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DragEndEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when drag operation ends public event EventHandler DragEndEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_END"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragEndEvt_delegate)) { - eventHandlers.AddHandler(DragEndEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_END"; - if (RemoveNativeEventHandler(key, this.evt_DragEndEvt_delegate)) { - eventHandlers.RemoveHandler(DragEndEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragEndEvt. - public void On_DragEndEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragEndEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragEndEvt_delegate; - private void on_DragEndEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDragEndEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_DragEndEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_DRAG_END"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragStartUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when drag starts into up direction public event EventHandler DragStartUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragStartUpEvt_Args args = new Efl.Ui.IDraggableDragStartUpEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_START_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStartUpEvt_delegate)) { - eventHandlers.AddHandler(DragStartUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_START_UP"; - if (RemoveNativeEventHandler(key, this.evt_DragStartUpEvt_delegate)) { - eventHandlers.RemoveHandler(DragStartUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStartUpEvt. - public void On_DragStartUpEvt(Efl.Ui.IDraggableDragStartUpEvt_Args e) + public void OnDragStartUpEvt(Efl.Ui.IDraggableDragStartUpEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStartUpEvtKey]; + var key = "_EFL_UI_EVENT_DRAG_START_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStartUpEvt_delegate; - private void on_DragStartUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDraggableDragStartUpEvt_Args args = new Efl.Ui.IDraggableDragStartUpEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragStartUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DragStartDownEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when drag starts into down direction public event EventHandler DragStartDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragStartDownEvt_Args args = new Efl.Ui.IDraggableDragStartDownEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_START_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStartDownEvt_delegate)) { - eventHandlers.AddHandler(DragStartDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_START_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_DragStartDownEvt_delegate)) { - eventHandlers.RemoveHandler(DragStartDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStartDownEvt. - public void On_DragStartDownEvt(Efl.Ui.IDraggableDragStartDownEvt_Args e) + public void OnDragStartDownEvt(Efl.Ui.IDraggableDragStartDownEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStartDownEvtKey]; + var key = "_EFL_UI_EVENT_DRAG_START_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStartDownEvt_delegate; - private void on_DragStartDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDraggableDragStartDownEvt_Args args = new Efl.Ui.IDraggableDragStartDownEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragStartDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DragStartRightEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when drag starts into right direction public event EventHandler DragStartRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragStartRightEvt_Args args = new Efl.Ui.IDraggableDragStartRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_START_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStartRightEvt_delegate)) { - eventHandlers.AddHandler(DragStartRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_START_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_DragStartRightEvt_delegate)) { - eventHandlers.RemoveHandler(DragStartRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStartRightEvt. - public void On_DragStartRightEvt(Efl.Ui.IDraggableDragStartRightEvt_Args e) + public void OnDragStartRightEvt(Efl.Ui.IDraggableDragStartRightEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStartRightEvtKey]; + var key = "_EFL_UI_EVENT_DRAG_START_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStartRightEvt_delegate; - private void on_DragStartRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDraggableDragStartRightEvt_Args args = new Efl.Ui.IDraggableDragStartRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragStartRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DragStartLeftEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when drag starts into left direction public event EventHandler DragStartLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragStartLeftEvt_Args args = new Efl.Ui.IDraggableDragStartLeftEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_START_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStartLeftEvt_delegate)) { - eventHandlers.AddHandler(DragStartLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_START_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_DragStartLeftEvt_delegate)) { - eventHandlers.RemoveHandler(DragStartLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStartLeftEvt. - public void On_DragStartLeftEvt(Efl.Ui.IDraggableDragStartLeftEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStartLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStartLeftEvt_delegate; - private void on_DragStartLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDragStartLeftEvt(Efl.Ui.IDraggableDragStartLeftEvt_Args e) { - Efl.Ui.IDraggableDragStartLeftEvt_Args args = new Efl.Ui.IDraggableDragStartLeftEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragStartLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_DRAG_START_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_DragEvt_delegate = new Efl.EventCb(on_DragEvt_NativeCallback); - evt_DragStartEvt_delegate = new Efl.EventCb(on_DragStartEvt_NativeCallback); - evt_DragStopEvt_delegate = new Efl.EventCb(on_DragStopEvt_NativeCallback); - evt_DragEndEvt_delegate = new Efl.EventCb(on_DragEndEvt_NativeCallback); - evt_DragStartUpEvt_delegate = new Efl.EventCb(on_DragStartUpEvt_NativeCallback); - evt_DragStartDownEvt_delegate = new Efl.EventCb(on_DragStartDownEvt_NativeCallback); - evt_DragStartRightEvt_delegate = new Efl.EventCb(on_DragStartRightEvt_NativeCallback); - evt_DragStartLeftEvt_delegate = new Efl.EventCb(on_DragStartLeftEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Control whether the object's content is changed by drag and drop. /// If drag_target is true the object can be the target of a dragging object. The content of this object can then be changed into dragging content. For example, if an object deals with image and drag_target is true, the user can drag the new image and drop it into said object. This object's image can then be changed into a new image. /// Turn on or off drop_target. Default is false. public bool GetDragTarget() { - var _ret_var = Efl.Ui.IDraggableNativeInherit.efl_ui_draggable_drag_target_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IDraggableConcrete.NativeMethods.efl_ui_draggable_drag_target_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control whether the object's content is changed by drag and drop. /// If drag_target is true the object can be the target of a dragging object. The content of this object can then be changed into dragging content. For example, if an object deals with image and drag_target is true, the user can drag the new image and drop it into said object. This object's image can then be changed into a new image. /// Turn on or off drop_target. Default is false. - /// - public void SetDragTarget( bool set) { - Efl.Ui.IDraggableNativeInherit.efl_ui_draggable_drag_target_set_ptr.Value.Delegate(this.NativeHandle, set); + public void SetDragTarget(bool set) { + Efl.Ui.IDraggableConcrete.NativeMethods.efl_ui_draggable_drag_target_set_ptr.Value.Delegate(this.NativeHandle,set); Eina.Error.RaiseIfUnhandledException(); } /// Control whether the object's content is changed by drag and drop. @@ -584,85 +705,131 @@ private static object DragStartLeftEvtKey = new object(); /// Turn on or off drop_target. Default is false. public bool DragTarget { get { return GetDragTarget(); } - set { SetDragTarget( value); } + set { SetDragTarget(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IDraggableConcrete.efl_ui_draggable_interface_get(); } -} -public class IDraggableNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_draggable_drag_target_get_static_delegate == null) - efl_ui_draggable_drag_target_get_static_delegate = new efl_ui_draggable_drag_target_get_delegate(drag_target_get); - if (methods.FirstOrDefault(m => m.Name == "GetDragTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_draggable_drag_target_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_draggable_drag_target_get_static_delegate)}); - if (efl_ui_draggable_drag_target_set_static_delegate == null) - efl_ui_draggable_drag_target_set_static_delegate = new efl_ui_draggable_drag_target_set_delegate(drag_target_set); - if (methods.FirstOrDefault(m => m.Name == "SetDragTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_draggable_drag_target_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_draggable_drag_target_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IDraggableConcrete.efl_ui_draggable_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IDraggableConcrete.efl_ui_draggable_interface_get(); - } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass + { + 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_draggable_drag_target_get_static_delegate == null) + { + efl_ui_draggable_drag_target_get_static_delegate = new efl_ui_draggable_drag_target_get_delegate(drag_target_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_draggable_drag_target_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetDragTarget") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_draggable_drag_target_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_draggable_drag_target_get_static_delegate) }); + } + if (efl_ui_draggable_drag_target_set_static_delegate == null) + { + efl_ui_draggable_drag_target_set_static_delegate = new efl_ui_draggable_drag_target_set_delegate(drag_target_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_draggable_drag_target_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_draggable_drag_target_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_draggable_drag_target_get"); - private static bool drag_target_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_draggable_drag_target_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IDraggable)wrapper).GetDragTarget(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDragTarget") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_draggable_drag_target_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_draggable_drag_target_set_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.IDraggableConcrete.efl_ui_draggable_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_draggable_drag_target_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_draggable_drag_target_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_draggable_drag_target_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_draggable_drag_target_get"); + + private static bool drag_target_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_draggable_drag_target_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IDraggable)wrapper).GetDragTarget(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_draggable_drag_target_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_draggable_drag_target_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_draggable_drag_target_get_delegate efl_ui_draggable_drag_target_get_static_delegate; + private static efl_ui_draggable_drag_target_get_delegate efl_ui_draggable_drag_target_get_static_delegate; - private delegate void efl_ui_draggable_drag_target_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool set); + + private delegate void efl_ui_draggable_drag_target_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool set); + + public delegate void efl_ui_draggable_drag_target_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool set); - public delegate void efl_ui_draggable_drag_target_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool set); - public static Efl.Eo.FunctionWrapper efl_ui_draggable_drag_target_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_draggable_drag_target_set"); - private static void drag_target_set(System.IntPtr obj, System.IntPtr pd, bool set) - { - Eina.Log.Debug("function efl_ui_draggable_drag_target_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IDraggable)wrapper).SetDragTarget( set); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_draggable_drag_target_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_draggable_drag_target_set"); + + private static void drag_target_set(System.IntPtr obj, System.IntPtr pd, bool set) + { + Eina.Log.Debug("function efl_ui_draggable_drag_target_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IDraggable)wrapper).SetDragTarget(set); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_draggable_drag_target_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), set); } - } else { - efl_ui_draggable_drag_target_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), set); } - } - private static efl_ui_draggable_drag_target_set_delegate efl_ui_draggable_drag_target_set_static_delegate; + + private static efl_ui_draggable_drag_target_set_delegate efl_ui_draggable_drag_target_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_exact_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_exact_model.eo.cs deleted file mode 100644 index 7550db2..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_exact_model.eo.cs +++ /dev/null @@ -1,93 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Ui { -/// Class to be used to store object item size for List/Grid View. -/// This model provide "total.width" and "total.height" as an accumulated size of all its children "self.width" and "self.height" . This is currently assuming a vertical list only. -/// -/// This model will return an error code EAGAIN for "item.width" and "item.height" all the time and the View that use this Model should continue to get this value even after computing all the "self.width" and "self.height" of this object children. -[ExactModelNativeInherit] -public class ExactModel : Efl.Ui.SizeModel, Efl.Eo.IWrapper -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ExactModel)) - return Efl.Ui.ExactModelNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_exact_model_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Model that is/will be See - ///Position of this object in the parent model. See - public ExactModel(Efl.Object parent - , Efl.IModel model, uint? index = null) : - base(efl_ui_exact_model_class_get(), typeof(ExactModel), parent) - { - if (Efl.Eo.Globals.ParamHelperCheck(model)) - SetModel(Efl.Eo.Globals.GetParamHelper(model)); - if (Efl.Eo.Globals.ParamHelperCheck(index)) - SetIndex(Efl.Eo.Globals.GetParamHelper(index)); - FinishInstantiation(); - } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - protected ExactModel(System.IntPtr raw) : base(raw) - { - RegisterEventProxies(); - } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ExactModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.ExactModel.efl_ui_exact_model_class_get(); - } -} -public class ExactModelNativeInherit : Efl.Ui.SizeModelNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ExactModel.efl_ui_exact_model_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.ExactModel.efl_ui_exact_model_class_get(); - } -} -} } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_factory.eo.cs index c4f1ad6..0765882 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_factory.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI factory interface -[IFactoryNativeInherit] +[Efl.Ui.IFactoryConcrete.NativeMethods] public interface IFactory : Efl.Ui.IFactoryBind , Efl.Ui.IPropertyBind , @@ -16,12 +20,11 @@ public interface IFactory : /// Efl model /// Efl canvas /// Created UI object - Eina.Future Create( Efl.IModel model, Efl.Gfx.IEntity parent); + Eina.Future Create(Efl.IModel model, Efl.Gfx.IEntity parent); /// Release a UI object and disconnect from models. /// Efl canvas -/// -void Release( Efl.Gfx.IEntity ui_view); - System.Threading.Tasks.Task CreateAsync( Efl.IModel model, Efl.Gfx.IEntity parent, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +void Release(Efl.Gfx.IEntity ui_view); + System.Threading.Tasks.Task CreateAsync(Efl.IModel model,Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); /// Event triggered when an item has been successfully created. event EventHandler CreatedEvt; } @@ -37,437 +40,617 @@ IFactory , Efl.Ui.IFactoryBind, Efl.Ui.IPropertyBind { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IFactoryConcrete)) - return Efl.Ui.IFactoryNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IFactoryConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_factory_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IFactoryConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IFactoryConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object CreatedEvtKey = new object(); + /// Event triggered when an item has been successfully created. public event EventHandler CreatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IFactoryCreatedEvt_Args args = new Efl.Ui.IFactoryCreatedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FACTORY_EVENT_CREATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CreatedEvt_delegate)) { - eventHandlers.AddHandler(CreatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FACTORY_EVENT_CREATED"; - if (RemoveNativeEventHandler(key, this.evt_CreatedEvt_delegate)) { - eventHandlers.RemoveHandler(CreatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CreatedEvt. - public void On_CreatedEvt(Efl.Ui.IFactoryCreatedEvt_Args e) + public void OnCreatedEvt(Efl.Ui.IFactoryCreatedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CreatedEvtKey]; + var key = "_EFL_UI_FACTORY_EVENT_CREATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CreatedEvt_delegate; - private void on_CreatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IFactoryCreatedEvt_Args args = new Efl.Ui.IFactoryCreatedEvt_Args(); - args.arg = evt.Info;; - try { - On_CreatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PropertiesChangedEvtKey = new object(); /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. public event EventHandler PropertiesChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertiesChangedEvt_Args args = new Efl.Ui.IPropertyBindPropertiesChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.AddHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PropertiesChangedEvt. - public void On_PropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) + public void OnPropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertiesChangedEvtKey]; + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertiesChangedEvt_delegate; - private void on_PropertiesChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IPropertyBindPropertiesChangedEvt_Args args = new Efl.Ui.IPropertyBindPropertiesChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PropertiesChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PropertyBoundEvtKey = new object(); /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. public event EventHandler PropertyBoundEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertyBoundEvt_Args args = new Efl.Ui.IPropertyBindPropertyBoundEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PropertyBoundEvt_delegate)) { - eventHandlers.AddHandler(PropertyBoundEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; - if (RemoveNativeEventHandler(key, this.evt_PropertyBoundEvt_delegate)) { - eventHandlers.RemoveHandler(PropertyBoundEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PropertyBoundEvt. - public void On_PropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) + public void OnPropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertyBoundEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertyBoundEvt_delegate; - private void on_PropertyBoundEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IPropertyBindPropertyBoundEvt_Args args = new Efl.Ui.IPropertyBindPropertyBoundEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_PropertyBoundEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_CreatedEvt_delegate = new Efl.EventCb(on_CreatedEvt_NativeCallback); - evt_PropertiesChangedEvt_delegate = new Efl.EventCb(on_PropertiesChangedEvt_NativeCallback); - evt_PropertyBoundEvt_delegate = new Efl.EventCb(on_PropertyBoundEvt_NativeCallback); + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); + } } /// Create a UI object from the necessary properties in the specified model. /// Efl model /// Efl canvas /// Created UI object - public Eina.Future Create( Efl.IModel model, Efl.Gfx.IEntity parent) { - var _ret_var = Efl.Ui.IFactoryNativeInherit.efl_ui_factory_create_ptr.Value.Delegate(this.NativeHandle, model, parent); + public Eina.Future Create(Efl.IModel model, Efl.Gfx.IEntity parent) { + var _ret_var = Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_create_ptr.Value.Delegate(this.NativeHandle,model, parent); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Release a UI object and disconnect from models. /// Efl canvas - /// - public void Release( Efl.Gfx.IEntity ui_view) { - Efl.Ui.IFactoryNativeInherit.efl_ui_factory_release_ptr.Value.Delegate(this.NativeHandle, ui_view); + public void Release(Efl.Gfx.IEntity ui_view) { + Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_release_ptr.Value.Delegate(this.NativeHandle,ui_view); Eina.Error.RaiseIfUnhandledException(); } /// bind the factory with the given key string. when the data is ready or changed, factory create the object and bind the data to the key action and process promised work. Note: the input need to be at least once. /// Key string for bind model property data /// for create and bind model property data - /// - public void FactoryBind( System.String key, Efl.Ui.IFactory factory) { - Efl.Ui.IFactoryBindNativeInherit.efl_ui_factory_bind_ptr.Value.Delegate(this.NativeHandle, key, factory); + public void FactoryBind(System.String key, Efl.Ui.IFactory factory) { + Efl.Ui.IFactoryBindConcrete.NativeMethods.efl_ui_factory_bind_ptr.Value.Delegate(this.NativeHandle,key, factory); Eina.Error.RaiseIfUnhandledException(); } /// bind property data with the given key string. when the data is ready or changed, bind the data to the key action and process promised work. /// key string for bind model property data /// Model property name /// 0 when it succeed, an error code otherwise. - public Eina.Error PropertyBind( System.String key, System.String property) { - var _ret_var = Efl.Ui.IPropertyBindNativeInherit.efl_ui_property_bind_ptr.Value.Delegate(this.NativeHandle, key, property); + public Eina.Error PropertyBind(System.String key, System.String property) { + var _ret_var = Efl.Ui.IPropertyBindConcrete.NativeMethods.efl_ui_property_bind_ptr.Value.Delegate(this.NativeHandle,key, property); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - public System.Threading.Tasks.Task CreateAsync( Efl.IModel model, Efl.Gfx.IEntity parent, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task CreateAsync(Efl.IModel model,Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = Create( model, parent); + Eina.Future future = Create( model, parent); return Efl.Eo.Globals.WrapAsync(future, token); } private static IntPtr GetEflClassStatic() { return Efl.Ui.IFactoryConcrete.efl_ui_factory_interface_get(); } -} -public class IFactoryNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_factory_create_static_delegate == null) - efl_ui_factory_create_static_delegate = new efl_ui_factory_create_delegate(create); - if (methods.FirstOrDefault(m => m.Name == "Create") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_create_static_delegate)}); - if (efl_ui_factory_release_static_delegate == null) - efl_ui_factory_release_static_delegate = new efl_ui_factory_release_delegate(release); - if (methods.FirstOrDefault(m => m.Name == "Release") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_factory_release"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_release_static_delegate)}); - if (efl_ui_factory_bind_static_delegate == null) - efl_ui_factory_bind_static_delegate = new efl_ui_factory_bind_delegate(factory_bind); - if (methods.FirstOrDefault(m => m.Name == "FactoryBind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_factory_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_bind_static_delegate)}); - if (efl_ui_property_bind_static_delegate == null) - efl_ui_property_bind_static_delegate = new efl_ui_property_bind_delegate(property_bind); - if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_property_bind_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IFactoryConcrete.efl_ui_factory_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IFactoryConcrete.efl_ui_factory_interface_get(); - } + 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_factory_create_static_delegate == null) + { + efl_ui_factory_create_static_delegate = new efl_ui_factory_create_delegate(create); + } + + if (methods.FirstOrDefault(m => m.Name == "Create") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_create_static_delegate) }); + } + if (efl_ui_factory_release_static_delegate == null) + { + efl_ui_factory_release_static_delegate = new efl_ui_factory_release_delegate(release); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_ui_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity parent); + if (methods.FirstOrDefault(m => m.Name == "Release") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_release"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_release_static_delegate) }); + } + if (efl_ui_factory_bind_static_delegate == null) + { + efl_ui_factory_bind_static_delegate = new efl_ui_factory_bind_delegate(factory_bind); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_ui_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity parent); - public static Efl.Eo.FunctionWrapper efl_ui_factory_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_factory_create"); - private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, Efl.IModel model, Efl.Gfx.IEntity parent) - { - Eina.Log.Debug("function efl_ui_factory_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((IFactory)wrapper).Create( model, parent); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "FactoryBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_bind_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model, parent); + + if (efl_ui_property_bind_static_delegate == null) + { + efl_ui_property_bind_static_delegate = new efl_ui_property_bind_delegate(property_bind); + } + + if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_property_bind_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.IFactoryConcrete.efl_ui_factory_interface_get(); } - } - private static efl_ui_factory_create_delegate efl_ui_factory_create_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_factory_release_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity ui_view); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_ui_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_ui_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); - public delegate void efl_ui_factory_release_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity ui_view); - public static Efl.Eo.FunctionWrapper efl_ui_factory_release_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_factory_release"); - private static void release(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity ui_view) - { - Eina.Log.Debug("function efl_ui_factory_release was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IFactory)wrapper).Release( ui_view); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_factory_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_create"); + + private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, Efl.IModel model, Efl.Gfx.IEntity parent) + { + Eina.Log.Debug("function efl_ui_factory_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((IFactory)wrapper).Create(model, parent); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model, parent); } - } else { - efl_ui_factory_release_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ui_view); } - } - private static efl_ui_factory_release_delegate efl_ui_factory_release_static_delegate; + private static efl_ui_factory_create_delegate efl_ui_factory_create_static_delegate; - private delegate void efl_ui_factory_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IFactory factory); + + private delegate void efl_ui_factory_release_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity ui_view); + + public delegate void efl_ui_factory_release_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity ui_view); - public delegate void efl_ui_factory_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IFactory factory); - public static Efl.Eo.FunctionWrapper efl_ui_factory_bind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_factory_bind"); - private static void factory_bind(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.Ui.IFactory factory) - { - Eina.Log.Debug("function efl_ui_factory_bind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IFactory)wrapper).FactoryBind( key, factory); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_factory_release_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_release"); + + private static void release(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity ui_view) + { + Eina.Log.Debug("function efl_ui_factory_release was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IFactory)wrapper).Release(ui_view); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_factory_release_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ui_view); } - } else { - efl_ui_factory_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, factory); } - } - private static efl_ui_factory_bind_delegate efl_ui_factory_bind_static_delegate; + private static efl_ui_factory_release_delegate efl_ui_factory_release_static_delegate; - private delegate Eina.Error efl_ui_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + private delegate void efl_ui_factory_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); + + public delegate void efl_ui_factory_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); - public delegate Eina.Error efl_ui_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); - public static Efl.Eo.FunctionWrapper efl_ui_property_bind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_property_bind"); - private static Eina.Error property_bind(System.IntPtr obj, System.IntPtr pd, System.String key, System.String property) - { - Eina.Log.Debug("function efl_ui_property_bind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((IFactory)wrapper).PropertyBind( key, property); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_factory_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_bind"); + + private static void factory_bind(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.Ui.IFactory factory) + { + Eina.Log.Debug("function efl_ui_factory_bind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IFactory)wrapper).FactoryBind(key, factory); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_factory_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, factory); + } + } + + private static efl_ui_factory_bind_delegate efl_ui_factory_bind_static_delegate; + + + private delegate Eina.Error efl_ui_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + + public delegate Eina.Error efl_ui_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_ui_property_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_property_bind"); + + private static Eina.Error property_bind(System.IntPtr obj, System.IntPtr pd, System.String key, System.String property) + { + Eina.Log.Debug("function efl_ui_property_bind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((IFactory)wrapper).PropertyBind(key, property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, property); + + } + else + { + return efl_ui_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, property); + } } - } - private static efl_ui_property_bind_delegate efl_ui_property_bind_static_delegate; + + private static efl_ui_property_bind_delegate efl_ui_property_bind_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } -namespace Efl { namespace Ui { +} + +} + +namespace Efl { + +namespace Ui { + /// EFL Ui Factory event structure provided when an item was just created. [StructLayout(LayoutKind.Sequential)] public struct FactoryItemCreatedEvent @@ -478,8 +661,8 @@ public struct FactoryItemCreatedEvent public Efl.Gfx.IEntity Item; ///Constructor for FactoryItemCreatedEvent. public FactoryItemCreatedEvent( - Efl.IModel Model=default(Efl.IModel), - Efl.Gfx.IEntity Item=default(Efl.Gfx.IEntity) ) + Efl.IModel Model = default(Efl.IModel), + Efl.Gfx.IEntity Item = default(Efl.Gfx.IEntity) ) { this.Model = Model; this.Item = Item; @@ -523,4 +706,7 @@ public struct FactoryItemCreatedEvent } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_factory_bind.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_factory_bind.eo.cs index 4141677..19de093 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_factory_bind.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_factory_bind.eo.cs @@ -3,18 +3,21 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI Property interface. view object can have and need to set cotent with those model stored data. the interface can help binding the factory to create object with model property data. see see -[IFactoryBindNativeInherit] +[Efl.Ui.IFactoryBindConcrete.NativeMethods] public interface IFactoryBind : Efl.Eo.IWrapper, IDisposable { /// bind the factory with the given key string. when the data is ready or changed, factory create the object and bind the data to the key action and process promised work. Note: the input need to be at least once. /// Key string for bind model property data /// for create and bind model property data -/// -void FactoryBind( System.String key, Efl.Ui.IFactory factory); +void FactoryBind(System.String key, Efl.Ui.IFactory factory); } /// Efl UI Property interface. view object can have and need to set cotent with those model stored data. the interface can help binding the factory to create object with model property data. see see sealed public class IFactoryBindConcrete : @@ -23,124 +26,187 @@ IFactoryBind { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IFactoryBindConcrete)) - return Efl.Ui.IFactoryBindNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IFactoryBindConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_factory_bind_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IFactoryBindConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IFactoryBindConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// bind the factory with the given key string. when the data is ready or changed, factory create the object and bind the data to the key action and process promised work. Note: the input need to be at least once. /// Key string for bind model property data /// for create and bind model property data - /// - public void FactoryBind( System.String key, Efl.Ui.IFactory factory) { - Efl.Ui.IFactoryBindNativeInherit.efl_ui_factory_bind_ptr.Value.Delegate(this.NativeHandle, key, factory); + public void FactoryBind(System.String key, Efl.Ui.IFactory factory) { + Efl.Ui.IFactoryBindConcrete.NativeMethods.efl_ui_factory_bind_ptr.Value.Delegate(this.NativeHandle,key, factory); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Ui.IFactoryBindConcrete.efl_ui_factory_bind_interface_get(); } -} -public class IFactoryBindNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_factory_bind_static_delegate == null) - efl_ui_factory_bind_static_delegate = new efl_ui_factory_bind_delegate(factory_bind); - if (methods.FirstOrDefault(m => m.Name == "FactoryBind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_factory_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_bind_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IFactoryBindConcrete.efl_ui_factory_bind_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IFactoryBindConcrete.efl_ui_factory_bind_interface_get(); - } + 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_factory_bind_static_delegate == null) + { + efl_ui_factory_bind_static_delegate = new efl_ui_factory_bind_delegate(factory_bind); + } - private delegate void efl_ui_factory_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IFactory factory); + if (methods.FirstOrDefault(m => m.Name == "FactoryBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_bind_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.IFactoryBindConcrete.efl_ui_factory_bind_interface_get(); + } - public delegate void efl_ui_factory_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IFactory factory); - public static Efl.Eo.FunctionWrapper efl_ui_factory_bind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_factory_bind"); - private static void factory_bind(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.Ui.IFactory factory) - { - Eina.Log.Debug("function efl_ui_factory_bind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IFactoryBind)wrapper).FactoryBind( key, factory); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_ui_factory_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); + + + public delegate void efl_ui_factory_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); + + public static Efl.Eo.FunctionWrapper efl_ui_factory_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_bind"); + + private static void factory_bind(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.Ui.IFactory factory) + { + Eina.Log.Debug("function efl_ui_factory_bind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IFactoryBind)wrapper).FactoryBind(key, factory); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_factory_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, factory); } - } else { - efl_ui_factory_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, factory); } - } - private static efl_ui_factory_bind_delegate efl_ui_factory_bind_static_delegate; + + private static efl_ui_factory_bind_delegate efl_ui_factory_bind_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_flip.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_flip.eo.cs index ef46116..ff6f028 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_flip.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_flip.eo.cs @@ -3,252 +3,313 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI flip class -[FlipNativeInherit] +[Efl.Ui.Flip.NativeMethods] public class Flip : Efl.Ui.Widget, Efl.Eo.IWrapper,Efl.IContainer,Efl.IPack,Efl.IPackLinear { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Flip)) - return Efl.Ui.FlipNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Flip)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_flip_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Flip(Efl.Object parent - , System.String style = null) : - base(efl_ui_flip_class_get(), typeof(Flip), parent) + , System.String style = null) : base(efl_ui_flip_class_get(), typeof(Flip), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Flip(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Flip(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Flip(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object AnimateBeginEvtKey = new object(); + /// Called when flip animation begins public event EventHandler AnimateBeginEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FLIP_EVENT_ANIMATE_BEGIN"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AnimateBeginEvt_delegate)) { - eventHandlers.AddHandler(AnimateBeginEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FLIP_EVENT_ANIMATE_BEGIN"; - if (RemoveNativeEventHandler(key, this.evt_AnimateBeginEvt_delegate)) { - eventHandlers.RemoveHandler(AnimateBeginEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AnimateBeginEvt. - public void On_AnimateBeginEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AnimateBeginEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AnimateBeginEvt_delegate; - private void on_AnimateBeginEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnAnimateBeginEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_AnimateBeginEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FLIP_EVENT_ANIMATE_BEGIN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object AnimateDoneEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when flip animation is done public event EventHandler AnimateDoneEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FLIP_EVENT_ANIMATE_DONE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AnimateDoneEvt_delegate)) { - eventHandlers.AddHandler(AnimateDoneEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FLIP_EVENT_ANIMATE_DONE"; - if (RemoveNativeEventHandler(key, this.evt_AnimateDoneEvt_delegate)) { - eventHandlers.RemoveHandler(AnimateDoneEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AnimateDoneEvt. - public void On_AnimateDoneEvt(EventArgs e) + public void OnAnimateDoneEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AnimateDoneEvtKey]; + var key = "_EFL_UI_FLIP_EVENT_ANIMATE_DONE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AnimateDoneEvt_delegate; - private void on_AnimateDoneEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_AnimateDoneEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ContentAddedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_AnimateBeginEvt_delegate = new Efl.EventCb(on_AnimateBeginEvt_NativeCallback); - evt_AnimateDoneEvt_delegate = new Efl.EventCb(on_AnimateDoneEvt_NativeCallback); - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Get the interactive flip mode. /// The interactive flip mode to use. virtual public Efl.Ui.FlipInteraction GetInteraction() { - var _ret_var = Efl.Ui.FlipNativeInherit.efl_ui_flip_interaction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Flip.NativeMethods.efl_ui_flip_interaction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -259,15 +320,14 @@ private static object ContentRemovedEvtKey = new object(); /// /// Note: #ELM_FLIP_INTERACTION_ROTATE won't cause #ELM_FLIP_ROTATE_XZ_CENTER_AXIS or #ELM_FLIP_ROTATE_YZ_CENTER_AXIS to happen, those can only be achieved with . /// The interactive flip mode to use. - /// - virtual public void SetInteraction( Efl.Ui.FlipInteraction mode) { - Efl.Ui.FlipNativeInherit.efl_ui_flip_interaction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mode); + virtual public void SetInteraction(Efl.Ui.FlipInteraction mode) { + Efl.Ui.Flip.NativeMethods.efl_ui_flip_interaction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode); Eina.Error.RaiseIfUnhandledException(); } /// Get flip front visibility state. /// true if front front is showing, false if the back is showing. virtual public bool GetFrontVisible() { - var _ret_var = Efl.Ui.FlipNativeInherit.efl_ui_flip_front_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Flip.NativeMethods.efl_ui_flip_front_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -281,16 +341,15 @@ private static object ContentRemovedEvtKey = new object(); /// See also . /// The hit area to set. /// The amount of that dimension (0.0 to 1.0) to use. - /// - virtual public void SetInteractionDirectionHitsize( Efl.Ui.Dir dir, double hitsize) { - Efl.Ui.FlipNativeInherit.efl_ui_flip_interaction_direction_hitsize_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir, hitsize); + virtual public void SetInteractionDirectionHitsize(Efl.Ui.Dir dir, double hitsize) { + Efl.Ui.Flip.NativeMethods.efl_ui_flip_interaction_direction_hitsize_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir, hitsize); Eina.Error.RaiseIfUnhandledException(); } /// Get the amount of the flip that is sensitive to interactive flip. /// The direction to check. /// The size set for that direction. - virtual public double GetInteractionDirectionHitsize( Efl.Ui.Dir dir) { - var _ret_var = Efl.Ui.FlipNativeInherit.efl_ui_flip_interaction_direction_hitsize_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public double GetInteractionDirectionHitsize(Efl.Ui.Dir dir) { + var _ret_var = Efl.Ui.Flip.NativeMethods.efl_ui_flip_interaction_direction_hitsize_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -300,16 +359,15 @@ private static object ContentRemovedEvtKey = new object(); /// You can also set the appropriate hit area size by calling . By default, a minimum hit area will be created on the opposite edge of the flip. /// The direction to change. /// If that direction is enabled or not. - /// - virtual public void SetInteractionDirectionEnabled( Efl.Ui.Dir dir, bool enabled) { - Efl.Ui.FlipNativeInherit.efl_ui_flip_interaction_direction_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir, enabled); + virtual public void SetInteractionDirectionEnabled(Efl.Ui.Dir dir, bool enabled) { + Efl.Ui.Flip.NativeMethods.efl_ui_flip_interaction_direction_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir, enabled); Eina.Error.RaiseIfUnhandledException(); } /// Get the enabled state of that flip direction. /// The direction to check. /// If that direction is enabled or not. - virtual public bool GetInteractionDirectionEnabled( Efl.Ui.Dir dir) { - var _ret_var = Efl.Ui.FlipNativeInherit.efl_ui_flip_interaction_direction_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public bool GetInteractionDirectionEnabled(Efl.Ui.Dir dir) { + var _ret_var = Efl.Ui.Flip.NativeMethods.efl_ui_flip_interaction_direction_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -318,9 +376,8 @@ private static object ContentRemovedEvtKey = new object(); /// /// There a number of possible animations to use for flipping, namely #ELM_FLIP_ROTATE_X_CENTER_AXIS (rotate the currently visible content around a horizontal axis in the middle of its height, the other content is shown as the other side of the flip), #ELM_FLIP_ROTATE_Y_CENTER_AXIS (rotate the currently visible content around a vertical axis in the middle of its width, the other content is shown as the other side of the flip), #ELM_FLIP_ROTATE_XZ_CENTER_AXIS (rotate the currently visible content around a diagonal axis in the middle of its width, the other content is shown as the other side of the flip), #ELM_FLIP_ROTATE_YZ_CENTER_AXIS (rotate the currently visible content around a diagonal axis in the middle of its height, the other content is shown as the other side of the flip). #ELM_FLIP_CUBE_LEFT (rotate the currently visible content to the left as if the flip was a cube, the other content is shown as the right face of the cube), #ELM_FLIP_CUBE_RIGHT (rotate the currently visible content to the right as if the flip was a cube, the other content is shown as the left face of the cube), #ELM_FLIP_CUBE_UP (rotate the currently visible content up as if the flip was a cube, the other content is shown as the bottom face of the cube), #ELM_FLIP_CUBE_DOWN (rotate the currently visible content down as if the flip was a cube, the other content is shown as the upper face of the cube), #ELM_FLIP_PAGE_LEFT (move the currently visible content to the left as if the flip was a book, the other content is shown as the page below that), #ELM_FLIP_PAGE_RIGHT (move the currently visible content to the right as if the flip was a book, the other content is shown as the page below it), #ELM_FLIP_PAGE_UP (move the currently visible content up as if the flip was a book, the other content is shown as the page below it), #ELM_FLIP_PAGE_DOWN (move the currently visible content down as if the flip was a book, the other content is shown as the page below that) and #ELM_FLIP_CROSS_FADE (fade out the currently visible content, while fading in the invisible content). /// The mode type. - /// - virtual public void Go( Efl.Ui.FlipMode mode) { - Efl.Ui.FlipNativeInherit.efl_ui_flip_go_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mode); + virtual public void Go(Efl.Ui.FlipMode mode) { + Efl.Ui.Flip.NativeMethods.efl_ui_flip_go_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode); Eina.Error.RaiseIfUnhandledException(); } /// Runs the flip animation to front or back. @@ -329,16 +386,15 @@ private static object ContentRemovedEvtKey = new object(); /// There a number of possible animations to use for flipping, namely #ELM_FLIP_ROTATE_X_CENTER_AXIS (rotate the currently visible content around a horizontal axis in the middle of its height, the other content is shown as the other side of the flip), #ELM_FLIP_ROTATE_Y_CENTER_AXIS (rotate the currently visible content around a vertical axis in the middle of its width, the other content is shown as the other side of the flip), #ELM_FLIP_ROTATE_XZ_CENTER_AXIS (rotate the currently visible content around a diagonal axis in the middle of its width, the other content is shown as the other side of the flip), #ELM_FLIP_ROTATE_YZ_CENTER_AXIS (rotate the currently visible content around a diagonal axis in the middle of its height, the other content is shown as the other side of the flip). #ELM_FLIP_CUBE_LEFT (rotate the currently visible content to the left as if the flip was a cube, the other content is show as the right face of the cube), #ELM_FLIP_CUBE_RIGHT (rotate the currently visible content to the right as if the flip was a cube, the other content is show as the left face of the cube), #ELM_FLIP_CUBE_UP (rotate the currently visible content up as if the flip was a cube, the other content is shown as the bottom face of the cube), #ELM_FLIP_CUBE_DOWN (rotate the currently visible content down as if the flip was a cube, the other content is shown as the upper face of the cube), #ELM_FLIP_PAGE_LEFT (move the currently visible content to the left as if the flip was a book, the other content is shown as the page below that), #ELM_FLIP_PAGE_RIGHT (move the currently visible content to the right as if the flip was a book, the other content is shown as the page below it), #ELM_FLIP_PAGE_UP (move the currently visible content up as if the flip was a book, the other content is shown as the page below it) and #ELM_FLIP_PAGE_DOWN (move the currently visible content down as if the flip was a book, the other content is shown as the page below that). /// If true, makes front visible, otherwise makes back. /// The mode type. - /// - virtual public void GoTo( bool front, Efl.Ui.FlipMode mode) { - Efl.Ui.FlipNativeInherit.efl_ui_flip_go_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), front, mode); + virtual public void GoTo(bool front, Efl.Ui.FlipMode mode) { + Efl.Ui.Flip.NativeMethods.efl_ui_flip_go_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),front, mode); Eina.Error.RaiseIfUnhandledException(); } /// Begin iterating over this object's contents. /// (Since EFL 1.22) /// Iterator to object content virtual public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -346,48 +402,44 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements virtual public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_horiz, out align_vert); + virtual public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert); + virtual public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pad_horiz, out pad_vert, out scalable); + virtual public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable); + virtual public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise virtual public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -395,15 +447,15 @@ private static object ContentRemovedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise virtual public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - virtual public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -413,8 +465,8 @@ private static object ContentRemovedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - virtual public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -422,21 +474,21 @@ private static object ContentRemovedEvtKey = new object(); /// This is the same as (subobj, 0). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack. - /// false if subobj could not be packed - virtual public bool PackBegin( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// Item to pack at the beginning. + /// false if subobj could not be packed. + virtual public bool PackBegin(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Append object at the end of this container. + /// Append item at the end of this container. /// This is the same as (subobj, -1). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Item to pack at the end. - /// false if subobj could not be packed - virtual public bool PackEnd( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// false if subobj could not be packed. + virtual public bool PackEnd(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -445,8 +497,8 @@ private static object ContentRemovedEvtKey = new object(); /// Item to pack before existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -455,46 +507,54 @@ private static object ContentRemovedEvtKey = new object(); /// Item to pack after existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Inserts subobj at the specified index. - /// Valid range: -count to +count. -1 refers to the last element. Out of range indices will trigger an append. + /// Inserts subobj BEFORE the item at position index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack at given index. - /// A position. + /// Item to pack. + /// Index of item to insert BEFORE. Valid range is -count to (count-1). /// false if subobj could not be packed. - virtual public bool PackAt( Efl.Gfx.IEntity subobj, int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, index); + virtual public bool PackAt(Efl.Gfx.IEntity subobj, int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Content at a given index in this container. - /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1). - /// Index number + /// Content at a given index in this container. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will return the first item whereas index greater than count-1 will return the last item. + /// Index of the item to retrieve. Valid range is -count to (count-1). /// The object contained at the given index. - virtual public Efl.Gfx.IEntity GetPackContent( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity GetPackContent(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the index of a child in this container. /// An object contained in this pack. - /// -1 in case of failure, or the index of this item. - virtual public int GetPackIndex( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// -1 in case subobj is not a child of this object, or the index of this item in the range 0 to (count-1). + virtual public int GetPackIndex(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Pop out item at specified index. - /// Equivalent to unpack(content_at(index)). - /// Index number + /// Pop out (remove) the item at the specified index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will remove the first item whereas index greater than count-1 will remove the last item. + /// + /// Equivalent to ((index)). + /// Index of item to remove. Valid range is -count to (count-1). /// The child item if it could be removed. - virtual public Efl.Gfx.IEntity PackUnpackAt( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -502,7 +562,7 @@ private static object ContentRemovedEvtKey = new object(); /// The interactive flip mode to use. public Efl.Ui.FlipInteraction Interaction { get { return GetInteraction(); } - set { SetInteraction( value); } + set { SetInteraction(value); } } /// Get flip front visibility state. /// true if front front is showing, false if the back is showing. @@ -513,801 +573,1275 @@ private static object ContentRemovedEvtKey = new object(); { return Efl.Ui.Flip.efl_ui_flip_class_get(); } -} -public class FlipNativeInherit : Efl.Ui.WidgetNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_flip_interaction_get_static_delegate == null) - efl_ui_flip_interaction_get_static_delegate = new efl_ui_flip_interaction_get_delegate(interaction_get); - if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_flip_interaction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_get_static_delegate)}); - if (efl_ui_flip_interaction_set_static_delegate == null) - efl_ui_flip_interaction_set_static_delegate = new efl_ui_flip_interaction_set_delegate(interaction_set); - if (methods.FirstOrDefault(m => m.Name == "SetInteraction") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_flip_interaction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_set_static_delegate)}); - if (efl_ui_flip_front_visible_get_static_delegate == null) - efl_ui_flip_front_visible_get_static_delegate = new efl_ui_flip_front_visible_get_delegate(front_visible_get); - if (methods.FirstOrDefault(m => m.Name == "GetFrontVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_flip_front_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_front_visible_get_static_delegate)}); - if (efl_ui_flip_interaction_direction_hitsize_set_static_delegate == null) - efl_ui_flip_interaction_direction_hitsize_set_static_delegate = new efl_ui_flip_interaction_direction_hitsize_set_delegate(interaction_direction_hitsize_set); - if (methods.FirstOrDefault(m => m.Name == "SetInteractionDirectionHitsize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_flip_interaction_direction_hitsize_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_direction_hitsize_set_static_delegate)}); - if (efl_ui_flip_interaction_direction_hitsize_get_static_delegate == null) - efl_ui_flip_interaction_direction_hitsize_get_static_delegate = new efl_ui_flip_interaction_direction_hitsize_get_delegate(interaction_direction_hitsize_get); - if (methods.FirstOrDefault(m => m.Name == "GetInteractionDirectionHitsize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_flip_interaction_direction_hitsize_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_direction_hitsize_get_static_delegate)}); - if (efl_ui_flip_interaction_direction_enabled_set_static_delegate == null) - efl_ui_flip_interaction_direction_enabled_set_static_delegate = new efl_ui_flip_interaction_direction_enabled_set_delegate(interaction_direction_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetInteractionDirectionEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_flip_interaction_direction_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_direction_enabled_set_static_delegate)}); - if (efl_ui_flip_interaction_direction_enabled_get_static_delegate == null) - efl_ui_flip_interaction_direction_enabled_get_static_delegate = new efl_ui_flip_interaction_direction_enabled_get_delegate(interaction_direction_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetInteractionDirectionEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_flip_interaction_direction_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_direction_enabled_get_static_delegate)}); - if (efl_ui_flip_go_static_delegate == null) - efl_ui_flip_go_static_delegate = new efl_ui_flip_go_delegate(go); - if (methods.FirstOrDefault(m => m.Name == "Go") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_flip_go"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_go_static_delegate)}); - if (efl_ui_flip_go_to_static_delegate == null) - efl_ui_flip_go_to_static_delegate = new efl_ui_flip_go_to_delegate(go_to); - if (methods.FirstOrDefault(m => m.Name == "GoTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_flip_go_to"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_go_to_static_delegate)}); - if (efl_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - if (efl_pack_begin_static_delegate == null) - efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); - if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate)}); - if (efl_pack_end_static_delegate == null) - efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); - if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate)}); - if (efl_pack_before_static_delegate == null) - efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); - if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate)}); - if (efl_pack_after_static_delegate == null) - efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); - if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate)}); - if (efl_pack_at_static_delegate == null) - efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); - if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate)}); - if (efl_pack_content_get_static_delegate == null) - efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate)}); - if (efl_pack_index_get_static_delegate == null) - efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate)}); - if (efl_pack_unpack_at_static_delegate == null) - efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); - if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Flip.efl_ui_flip_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Widget.NativeMethods { - return Efl.Ui.Flip.efl_ui_flip_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_flip_interaction_get_static_delegate == null) + { + efl_ui_flip_interaction_get_static_delegate = new efl_ui_flip_interaction_get_delegate(interaction_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_flip_interaction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_get_static_delegate) }); + } - private delegate Efl.Ui.FlipInteraction efl_ui_flip_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_flip_interaction_set_static_delegate == null) + { + efl_ui_flip_interaction_set_static_delegate = new efl_ui_flip_interaction_set_delegate(interaction_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetInteraction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_flip_interaction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_set_static_delegate) }); + } - public delegate Efl.Ui.FlipInteraction efl_ui_flip_interaction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_flip_interaction_get"); - private static Efl.Ui.FlipInteraction interaction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_flip_interaction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.FlipInteraction _ret_var = default(Efl.Ui.FlipInteraction); - try { - _ret_var = ((Flip)wrapper).GetInteraction(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_flip_front_visible_get_static_delegate == null) + { + efl_ui_flip_front_visible_get_static_delegate = new efl_ui_flip_front_visible_get_delegate(front_visible_get); } - return _ret_var; - } else { - return efl_ui_flip_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_flip_interaction_get_delegate efl_ui_flip_interaction_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFrontVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_flip_front_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_front_visible_get_static_delegate) }); + } - private delegate void efl_ui_flip_interaction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.FlipInteraction mode); + if (efl_ui_flip_interaction_direction_hitsize_set_static_delegate == null) + { + efl_ui_flip_interaction_direction_hitsize_set_static_delegate = new efl_ui_flip_interaction_direction_hitsize_set_delegate(interaction_direction_hitsize_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetInteractionDirectionHitsize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_flip_interaction_direction_hitsize_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_direction_hitsize_set_static_delegate) }); + } - public delegate void efl_ui_flip_interaction_set_api_delegate(System.IntPtr obj, Efl.Ui.FlipInteraction mode); - public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_flip_interaction_set"); - private static void interaction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.FlipInteraction mode) - { - Eina.Log.Debug("function efl_ui_flip_interaction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Flip)wrapper).SetInteraction( mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_flip_interaction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); - } - } - private static efl_ui_flip_interaction_set_delegate efl_ui_flip_interaction_set_static_delegate; + if (efl_ui_flip_interaction_direction_hitsize_get_static_delegate == null) + { + efl_ui_flip_interaction_direction_hitsize_get_static_delegate = new efl_ui_flip_interaction_direction_hitsize_get_delegate(interaction_direction_hitsize_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetInteractionDirectionHitsize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_flip_interaction_direction_hitsize_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_direction_hitsize_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_flip_front_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_flip_interaction_direction_enabled_set_static_delegate == null) + { + efl_ui_flip_interaction_direction_enabled_set_static_delegate = new efl_ui_flip_interaction_direction_enabled_set_delegate(interaction_direction_enabled_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetInteractionDirectionEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_flip_interaction_direction_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_direction_enabled_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_flip_front_visible_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_flip_front_visible_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_flip_front_visible_get"); - private static bool front_visible_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_flip_front_visible_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Flip)wrapper).GetFrontVisible(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_flip_interaction_direction_enabled_get_static_delegate == null) + { + efl_ui_flip_interaction_direction_enabled_get_static_delegate = new efl_ui_flip_interaction_direction_enabled_get_delegate(interaction_direction_enabled_get); } - return _ret_var; - } else { - return efl_ui_flip_front_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_flip_front_visible_get_delegate efl_ui_flip_front_visible_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetInteractionDirectionEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_flip_interaction_direction_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_interaction_direction_enabled_get_static_delegate) }); + } - private delegate void efl_ui_flip_interaction_direction_hitsize_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir, double hitsize); + if (efl_ui_flip_go_static_delegate == null) + { + efl_ui_flip_go_static_delegate = new efl_ui_flip_go_delegate(go); + } + if (methods.FirstOrDefault(m => m.Name == "Go") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_flip_go"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_go_static_delegate) }); + } - public delegate void efl_ui_flip_interaction_direction_hitsize_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir, double hitsize); - public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_direction_hitsize_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_flip_interaction_direction_hitsize_set"); - private static void interaction_direction_hitsize_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir, double hitsize) - { - Eina.Log.Debug("function efl_ui_flip_interaction_direction_hitsize_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Flip)wrapper).SetInteractionDirectionHitsize( dir, hitsize); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_flip_interaction_direction_hitsize_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir, hitsize); - } - } - private static efl_ui_flip_interaction_direction_hitsize_set_delegate efl_ui_flip_interaction_direction_hitsize_set_static_delegate; + if (efl_ui_flip_go_to_static_delegate == null) + { + efl_ui_flip_go_to_static_delegate = new efl_ui_flip_go_to_delegate(go_to); + } + if (methods.FirstOrDefault(m => m.Name == "GoTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_flip_go_to"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_flip_go_to_static_delegate) }); + } - private delegate double efl_ui_flip_interaction_direction_hitsize_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + if (efl_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } - public delegate double efl_ui_flip_interaction_direction_hitsize_get_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_direction_hitsize_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_flip_interaction_direction_hitsize_get"); - private static double interaction_direction_hitsize_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_flip_interaction_direction_hitsize_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Flip)wrapper).GetInteractionDirectionHitsize( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); } - return _ret_var; - } else { - return efl_ui_flip_interaction_direction_hitsize_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_ui_flip_interaction_direction_hitsize_get_delegate efl_ui_flip_interaction_direction_hitsize_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); + } - private delegate void efl_ui_flip_interaction_direction_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir, [MarshalAs(UnmanagedType.U1)] bool enabled); + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } - public delegate void efl_ui_flip_interaction_direction_enabled_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_direction_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_flip_interaction_direction_enabled_set"); - private static void interaction_direction_enabled_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir, bool enabled) - { - Eina.Log.Debug("function efl_ui_flip_interaction_direction_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Flip)wrapper).SetInteractionDirectionEnabled( dir, enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_flip_interaction_direction_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir, enabled); - } - } - private static efl_ui_flip_interaction_direction_enabled_set_delegate efl_ui_flip_interaction_direction_enabled_set_static_delegate; + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_flip_interaction_direction_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_flip_interaction_direction_enabled_get_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_direction_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_flip_interaction_direction_enabled_get"); - private static bool interaction_direction_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_flip_interaction_direction_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Flip)wrapper).GetInteractionDirectionEnabled( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); } - return _ret_var; - } else { - return efl_ui_flip_interaction_direction_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_ui_flip_interaction_direction_enabled_get_delegate efl_ui_flip_interaction_direction_enabled_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); + } - private delegate void efl_ui_flip_go_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.FlipMode mode); + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } - public delegate void efl_ui_flip_go_api_delegate(System.IntPtr obj, Efl.Ui.FlipMode mode); - public static Efl.Eo.FunctionWrapper efl_ui_flip_go_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_flip_go"); - private static void go(System.IntPtr obj, System.IntPtr pd, Efl.Ui.FlipMode mode) - { - Eina.Log.Debug("function efl_ui_flip_go was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Flip)wrapper).Go( mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_flip_go_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); - } - } - private static efl_ui_flip_go_delegate efl_ui_flip_go_static_delegate; + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); + } - private delegate void efl_ui_flip_go_to_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool front, Efl.Ui.FlipMode mode); + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } - public delegate void efl_ui_flip_go_to_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool front, Efl.Ui.FlipMode mode); - public static Efl.Eo.FunctionWrapper efl_ui_flip_go_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_flip_go_to"); - private static void go_to(System.IntPtr obj, System.IntPtr pd, bool front, Efl.Ui.FlipMode mode) - { - Eina.Log.Debug("function efl_ui_flip_go_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Flip)wrapper).GoTo( front, mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_flip_go_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), front, mode); - } - } - private static efl_ui_flip_go_to_delegate efl_ui_flip_go_to_static_delegate; + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_begin_static_delegate == null) + { + efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); + } + if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); + } - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Flip)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_end_static_delegate == null) + { + efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); + } - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_before_static_delegate == null) + { + efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); + } + if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); + } - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Flip)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_after_static_delegate == null) + { + efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); } - return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_count_delegate efl_content_count_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); + } - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + if (efl_pack_at_static_delegate == null) + { + efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); + } + if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((Flip)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + if (efl_pack_content_get_static_delegate == null) + { + efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + if (efl_pack_index_get_static_delegate == null) + { + efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); + } - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Flip)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + if (efl_pack_unpack_at_static_delegate == null) + { + efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); + } + + if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Flip.efl_ui_flip_class_get(); } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.Ui.FlipInteraction efl_ui_flip_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.FlipInteraction efl_ui_flip_interaction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_flip_interaction_get"); + + private static Efl.Ui.FlipInteraction interaction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_flip_interaction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.FlipInteraction _ret_var = default(Efl.Ui.FlipInteraction); + try + { + _ret_var = ((Flip)wrapper).GetInteraction(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + return _ret_var; + } + else + { + return efl_ui_flip_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((Flip)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); + private static efl_ui_flip_interaction_get_delegate efl_ui_flip_interaction_get_static_delegate; + + + private delegate void efl_ui_flip_interaction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.FlipInteraction mode); + + + public delegate void efl_ui_flip_interaction_set_api_delegate(System.IntPtr obj, Efl.Ui.FlipInteraction mode); + + public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_flip_interaction_set"); + + private static void interaction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.FlipInteraction mode) + { + Eina.Log.Debug("function efl_ui_flip_interaction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Flip)wrapper).SetInteraction(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_flip_interaction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); + } } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + private static efl_ui_flip_interaction_set_delegate efl_ui_flip_interaction_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_flip_front_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_flip_front_visible_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_flip_front_visible_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_flip_front_visible_get"); + + private static bool front_visible_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_flip_front_visible_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Flip)wrapper).GetFrontVisible(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + return _ret_var; + } + else + { + return efl_ui_flip_front_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Flip)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + private static efl_ui_flip_front_visible_get_delegate efl_ui_flip_front_visible_get_static_delegate; + + + private delegate void efl_ui_flip_interaction_direction_hitsize_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir, double hitsize); + + + public delegate void efl_ui_flip_interaction_direction_hitsize_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir, double hitsize); + + public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_direction_hitsize_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_flip_interaction_direction_hitsize_set"); + + private static void interaction_direction_hitsize_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir, double hitsize) + { + Eina.Log.Debug("function efl_ui_flip_interaction_direction_hitsize_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Flip)wrapper).SetInteractionDirectionHitsize(dir, hitsize); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_flip_interaction_direction_hitsize_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir, hitsize); + } } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + private static efl_ui_flip_interaction_direction_hitsize_set_delegate efl_ui_flip_interaction_direction_hitsize_set_static_delegate; + + + private delegate double efl_ui_flip_interaction_direction_hitsize_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + + public delegate double efl_ui_flip_interaction_direction_hitsize_get_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); + + public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_direction_hitsize_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_flip_interaction_direction_hitsize_get"); + + private static double interaction_direction_hitsize_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_flip_interaction_direction_hitsize_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Flip)wrapper).GetInteractionDirectionHitsize(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_flip_interaction_direction_hitsize_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Flip)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_ui_flip_interaction_direction_hitsize_get_delegate efl_ui_flip_interaction_direction_hitsize_get_static_delegate; + + + private delegate void efl_ui_flip_interaction_direction_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir, [MarshalAs(UnmanagedType.U1)] bool enabled); + + + public delegate void efl_ui_flip_interaction_direction_enabled_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_direction_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_flip_interaction_direction_enabled_set"); + + private static void interaction_direction_enabled_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir, bool enabled) + { + Eina.Log.Debug("function efl_ui_flip_interaction_direction_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Flip)wrapper).SetInteractionDirectionEnabled(dir, enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_flip_interaction_direction_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir, enabled); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + private static efl_ui_flip_interaction_direction_enabled_set_delegate efl_ui_flip_interaction_direction_enabled_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_flip_interaction_direction_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_flip_interaction_direction_enabled_get_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); + + public static Efl.Eo.FunctionWrapper efl_ui_flip_interaction_direction_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_flip_interaction_direction_enabled_get"); + + private static bool interaction_direction_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_flip_interaction_direction_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Flip)wrapper).GetInteractionDirectionEnabled(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_flip_interaction_direction_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Flip)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_ui_flip_interaction_direction_enabled_get_delegate efl_ui_flip_interaction_direction_enabled_get_static_delegate; + + + private delegate void efl_ui_flip_go_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.FlipMode mode); + + + public delegate void efl_ui_flip_go_api_delegate(System.IntPtr obj, Efl.Ui.FlipMode mode); + + public static Efl.Eo.FunctionWrapper efl_ui_flip_go_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_flip_go"); + + private static void go(System.IntPtr obj, System.IntPtr pd, Efl.Ui.FlipMode mode) + { + Eina.Log.Debug("function efl_ui_flip_go was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Flip)wrapper).Go(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_flip_go_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + private static efl_ui_flip_go_delegate efl_ui_flip_go_static_delegate; + + + private delegate void efl_ui_flip_go_to_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool front, Efl.Ui.FlipMode mode); + + + public delegate void efl_ui_flip_go_to_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool front, Efl.Ui.FlipMode mode); + + public static Efl.Eo.FunctionWrapper efl_ui_flip_go_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_flip_go_to"); + + private static void go_to(System.IntPtr obj, System.IntPtr pd, bool front, Efl.Ui.FlipMode mode) + { + Eina.Log.Debug("function efl_ui_flip_go_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Flip)wrapper).GoTo(front, mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_flip_go_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), front, mode); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_ui_flip_go_to_delegate efl_ui_flip_go_to_static_delegate; + + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Flip)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Flip)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Flip)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Flip)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_delegate efl_pack_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_content_count_delegate efl_content_count_static_delegate; + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((Flip)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); + } + } + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Flip)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_begin"); - private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_begin was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Flip)wrapper).PackBegin( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((Flip)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); } - return _ret_var; - } else { - return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } - } - private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Flip)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Flip)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_end"); - private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Flip)wrapper).PackEnd( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_end_delegate efl_pack_end_static_delegate; + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Flip)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_before"); - private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_before was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Flip)wrapper).PackBefore( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_before_delegate efl_pack_before_static_delegate; + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Flip)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_after"); - private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_after was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Flip)wrapper).PackAfter( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_after_delegate efl_pack_after_static_delegate; + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Flip)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); + return _ret_var; + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_delegate efl_pack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); + + private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_begin was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Flip)wrapper).PackBegin(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_at"); - private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) - { - Eina.Log.Debug("function efl_pack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Flip)wrapper).PackAt( subobj, index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + else + { + return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_at_delegate efl_pack_at_static_delegate; + private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); + + private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Flip)wrapper).PackEnd(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + return _ret_var; + } + else + { + return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_end_delegate efl_pack_end_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); + + private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_before was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Flip)wrapper).PackBefore(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_content_get"); - private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Flip)wrapper).GetPackContent( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + else + { + return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } } - } - private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + private static efl_pack_before_delegate efl_pack_before_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); + + private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_after was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Flip)wrapper).PackAfter(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } - private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_pack_after_delegate efl_pack_after_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); + + private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) + { + Eina.Log.Debug("function efl_pack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Flip)wrapper).PackAt(subobj, index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_index_get"); - private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_index_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Flip)wrapper).GetPackIndex( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + } } - } - private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + private static efl_pack_at_delegate efl_pack_at_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); + + private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Flip)wrapper).GetPackContent(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + return _ret_var; + } + else + { + return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_at"); - private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_unpack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Flip)wrapper).PackUnpackAt( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + + + private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); + + private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_index_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Flip)wrapper).GetPackIndex(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } + } + + private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); + + private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_unpack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Flip)wrapper).PackUnpackAt(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + + } + else + { + return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } } - } - private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } -namespace Efl { namespace Ui { + +namespace Efl { + +namespace Ui { + /// Efl UI flip mode public enum FlipMode { @@ -1338,8 +1872,15 @@ PageDown = 11, /// Cross fade flip mode CrossFade = 12, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Efl UI flip interaction public enum FlipInteraction { @@ -1352,4 +1893,8 @@ Cube = 2, /// Page interaction Page = 3, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_flip_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_flip_part.eo.cs index 526feb5..fefb6b4 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_flip_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_flip_part.eo.cs @@ -3,248 +3,347 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI flip internal class -[FlipPartNativeInherit] +[Efl.Ui.FlipPart.NativeMethods] public class FlipPart : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (FlipPart)) - return Efl.Ui.FlipPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(FlipPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_flip_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public FlipPart(Efl.Object parent= null - ) : - base(efl_ui_flip_part_class_get(), typeof(FlipPart), parent) + ) : base(efl_ui_flip_part_class_get(), typeof(FlipPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected FlipPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected FlipPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected FlipPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.FlipPart.efl_ui_flip_part_class_get(); } -} -public class FlipPartNativeInherit : Efl.Ui.WidgetPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.FlipPart.efl_ui_flip_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.WidgetPart.NativeMethods { - return Efl.Ui.FlipPart.efl_ui_flip_part_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((FlipPart)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.FlipPart.efl_ui_flip_part_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((FlipPart)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((FlipPart)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((FlipPart)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((FlipPart)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((FlipPart)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition.eo.cs index fe16b22..6e4389d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition.eo.cs @@ -3,11 +3,17 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { +namespace Efl { + +namespace Ui { + +namespace Focus { + /// This defines the inheriting widget as Composition widget. /// A composition widget is a widget that's the logical parent of another set of widgets which can be used for interaction. -[ICompositionNativeInherit] +[Efl.Ui.Focus.ICompositionConcrete.NativeMethods] public interface IComposition : Efl.Eo.IWrapper, IDisposable { @@ -30,21 +36,17 @@ Eina.List GetCompositionElements(); /// /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order. /// The order to use -/// -void SetCompositionElements( Eina.List logical_order); +void SetCompositionElements(Eina.List logical_order); /// Set to true if all children should be registered as logicals /// true or false bool GetLogicalMode(); /// Set to true if all children should be registered as logicals /// true or false -/// -void SetLogicalMode( bool logical_mode); +void SetLogicalMode(bool logical_mode); /// Mark this widget as dirty, the children can be considered to be changed after that call -/// void Dirty(); /// A call to prepare the children of this element, called if marked as dirty /// You can use this function to call composition_elements. -/// void Prepare(); /// Set the order of elements that will be used for composition /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx. @@ -74,68 +76,103 @@ IComposition { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ICompositionConcrete)) - return Efl.Ui.Focus.ICompositionNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ICompositionConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_focus_composition_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ICompositionConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ICompositionConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Set the order of elements that will be used for composition /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx. /// @@ -146,7 +183,7 @@ IComposition /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order. /// The order to use public Eina.List GetCompositionElements() { - var _ret_var = Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_elements_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_elements_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, false); } @@ -159,38 +196,34 @@ IComposition /// /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order. /// The order to use - /// - public void SetCompositionElements( Eina.List logical_order) { + public void SetCompositionElements(Eina.List logical_order) { var _in_logical_order = logical_order.Handle; logical_order.Own = false; - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_elements_set_ptr.Value.Delegate(this.NativeHandle, _in_logical_order); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_elements_set_ptr.Value.Delegate(this.NativeHandle,_in_logical_order); Eina.Error.RaiseIfUnhandledException(); } /// Set to true if all children should be registered as logicals /// true or false public bool GetLogicalMode() { - var _ret_var = Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set to true if all children should be registered as logicals /// true or false - /// - public void SetLogicalMode( bool logical_mode) { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(this.NativeHandle, logical_mode); + public void SetLogicalMode(bool logical_mode) { + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(this.NativeHandle,logical_mode); Eina.Error.RaiseIfUnhandledException(); } /// Mark this widget as dirty, the children can be considered to be changed after that call - /// public void Dirty() { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_dirty_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_dirty_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// A call to prepare the children of this element, called if marked as dirty /// You can use this function to call composition_elements. - /// public void Prepare() { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_prepare_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_prepare_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Set the order of elements that will be used for composition @@ -204,205 +237,321 @@ logical_order.Own = false; /// The order to use public Eina.List CompositionElements { get { return GetCompositionElements(); } - set { SetCompositionElements( value); } + set { SetCompositionElements(value); } } /// Set to true if all children should be registered as logicals /// true or false public bool LogicalMode { get { return GetLogicalMode(); } - set { SetLogicalMode( value); } + set { SetLogicalMode(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Focus.ICompositionConcrete.efl_ui_focus_composition_mixin_get(); } -} -public class ICompositionNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_focus_composition_elements_get_static_delegate == null) - efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetCompositionElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_get_static_delegate)}); - if (efl_ui_focus_composition_elements_set_static_delegate == null) - efl_ui_focus_composition_elements_set_static_delegate = new efl_ui_focus_composition_elements_set_delegate(composition_elements_set); - if (methods.FirstOrDefault(m => m.Name == "SetCompositionElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_elements_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_set_static_delegate)}); - if (efl_ui_focus_composition_logical_mode_get_static_delegate == null) - efl_ui_focus_composition_logical_mode_get_static_delegate = new efl_ui_focus_composition_logical_mode_get_delegate(logical_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetLogicalMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_logical_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_get_static_delegate)}); - if (efl_ui_focus_composition_logical_mode_set_static_delegate == null) - efl_ui_focus_composition_logical_mode_set_static_delegate = new efl_ui_focus_composition_logical_mode_set_delegate(logical_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetLogicalMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_logical_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_set_static_delegate)}); - if (efl_ui_focus_composition_dirty_static_delegate == null) - efl_ui_focus_composition_dirty_static_delegate = new efl_ui_focus_composition_dirty_delegate(dirty); - if (methods.FirstOrDefault(m => m.Name == "Dirty") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_dirty"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_dirty_static_delegate)}); - if (efl_ui_focus_composition_prepare_static_delegate == null) - efl_ui_focus_composition_prepare_static_delegate = new efl_ui_focus_composition_prepare_delegate(prepare); - if (methods.FirstOrDefault(m => m.Name == "Prepare") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_prepare"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_prepare_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Focus.ICompositionConcrete.efl_ui_focus_composition_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.Focus.ICompositionConcrete.efl_ui_focus_composition_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_focus_composition_elements_get_static_delegate == null) + { + efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get); + } - private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCompositionElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_get_static_delegate) }); + } + if (efl_ui_focus_composition_elements_set_static_delegate == null) + { + efl_ui_focus_composition_elements_set_static_delegate = new efl_ui_focus_composition_elements_set_delegate(composition_elements_set); + } - public delegate System.IntPtr efl_ui_focus_composition_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_elements_get"); - private static System.IntPtr composition_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((ICompositionConcrete)wrapper).GetCompositionElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCompositionElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_elements_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_set_static_delegate) }); + } + + if (efl_ui_focus_composition_logical_mode_get_static_delegate == null) + { + efl_ui_focus_composition_logical_mode_get_static_delegate = new efl_ui_focus_composition_logical_mode_get_delegate(logical_mode_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLogicalMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_logical_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_get_static_delegate) }); + } + + if (efl_ui_focus_composition_logical_mode_set_static_delegate == null) + { + efl_ui_focus_composition_logical_mode_set_static_delegate = new efl_ui_focus_composition_logical_mode_set_delegate(logical_mode_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLogicalMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_logical_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_set_static_delegate) }); + } + + if (efl_ui_focus_composition_dirty_static_delegate == null) + { + efl_ui_focus_composition_dirty_static_delegate = new efl_ui_focus_composition_dirty_delegate(dirty); + } + + if (methods.FirstOrDefault(m => m.Name == "Dirty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_dirty"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_dirty_static_delegate) }); + } + + if (efl_ui_focus_composition_prepare_static_delegate == null) + { + efl_ui_focus_composition_prepare_static_delegate = new efl_ui_focus_composition_prepare_delegate(prepare); } + + if (methods.FirstOrDefault(m => m.Name == "Prepare") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_prepare"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_prepare_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.Focus.ICompositionConcrete.efl_ui_focus_composition_mixin_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_focus_composition_elements_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_elements_get"); + + private static System.IntPtr composition_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((ICompositionConcrete)wrapper).GetCompositionElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_ui_focus_composition_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_composition_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_composition_elements_get_delegate efl_ui_focus_composition_elements_get_static_delegate; + private static efl_ui_focus_composition_elements_get_delegate efl_ui_focus_composition_elements_get_static_delegate; - private delegate void efl_ui_focus_composition_elements_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order); + + private delegate void efl_ui_focus_composition_elements_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order); + + public delegate void efl_ui_focus_composition_elements_set_api_delegate(System.IntPtr obj, System.IntPtr logical_order); - public delegate void efl_ui_focus_composition_elements_set_api_delegate(System.IntPtr obj, System.IntPtr logical_order); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_elements_set"); - private static void composition_elements_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order) - { - Eina.Log.Debug("function efl_ui_focus_composition_elements_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_logical_order = new Eina.List(logical_order, true, false); + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_elements_set"); + + private static void composition_elements_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order) + { + Eina.Log.Debug("function efl_ui_focus_composition_elements_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_logical_order = new Eina.List(logical_order, true, false); - try { - ((ICompositionConcrete)wrapper).SetCompositionElements( _in_logical_order); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((ICompositionConcrete)wrapper).SetCompositionElements(_in_logical_order); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_elements_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_order); } - } else { - efl_ui_focus_composition_elements_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_order); } - } - private static efl_ui_focus_composition_elements_set_delegate efl_ui_focus_composition_elements_set_static_delegate; + private static efl_ui_focus_composition_elements_set_delegate efl_ui_focus_composition_elements_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_composition_logical_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_composition_logical_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_composition_logical_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_logical_mode_get"); + + private static bool logical_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ICompositionConcrete)wrapper).GetLogicalMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_composition_logical_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_logical_mode_get"); - private static bool logical_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ICompositionConcrete)wrapper).GetLogicalMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_composition_logical_mode_get_delegate efl_ui_focus_composition_logical_mode_get_static_delegate; + private static efl_ui_focus_composition_logical_mode_get_delegate efl_ui_focus_composition_logical_mode_get_static_delegate; - private delegate void efl_ui_focus_composition_logical_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool logical_mode); + + private delegate void efl_ui_focus_composition_logical_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool logical_mode); + + public delegate void efl_ui_focus_composition_logical_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool logical_mode); - public delegate void efl_ui_focus_composition_logical_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool logical_mode); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_logical_mode_set"); - private static void logical_mode_set(System.IntPtr obj, System.IntPtr pd, bool logical_mode) - { - Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ICompositionConcrete)wrapper).SetLogicalMode( logical_mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_logical_mode_set"); + + private static void logical_mode_set(System.IntPtr obj, System.IntPtr pd, bool logical_mode) + { + Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ICompositionConcrete)wrapper).SetLogicalMode(logical_mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_mode); } - } else { - efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_mode); } - } - private static efl_ui_focus_composition_logical_mode_set_delegate efl_ui_focus_composition_logical_mode_set_static_delegate; + private static efl_ui_focus_composition_logical_mode_set_delegate efl_ui_focus_composition_logical_mode_set_static_delegate; - private delegate void efl_ui_focus_composition_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_composition_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_composition_dirty_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_composition_dirty_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_dirty_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_dirty"); - private static void dirty(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_dirty was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ICompositionConcrete)wrapper).Dirty(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_dirty_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_dirty"); + + private static void dirty(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_dirty was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ICompositionConcrete)wrapper).Dirty(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_composition_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_composition_dirty_delegate efl_ui_focus_composition_dirty_static_delegate; + private static efl_ui_focus_composition_dirty_delegate efl_ui_focus_composition_dirty_static_delegate; - private delegate void efl_ui_focus_composition_prepare_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_composition_prepare_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_composition_prepare_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_composition_prepare_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_prepare_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_prepare"); - private static void prepare(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_prepare was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ICompositionConcrete)wrapper).Prepare(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_prepare_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_prepare"); + + private static void prepare(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_prepare was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ICompositionConcrete)wrapper).Prepare(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_composition_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_composition_prepare_delegate efl_ui_focus_composition_prepare_static_delegate; + + private static efl_ui_focus_composition_prepare_delegate efl_ui_focus_composition_prepare_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } } +} +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition_adapter.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition_adapter.eo.cs deleted file mode 100644 index b94dd0e..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition_adapter.eo.cs +++ /dev/null @@ -1,873 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { -/// EFL UI Focus Composition Adapter class -[CompositionAdapterNativeInherit] -public class CompositionAdapter : Efl.Object, Efl.Eo.IWrapper,Efl.Ui.Focus.IObject -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (CompositionAdapter)) - return Efl.Ui.Focus.CompositionAdapterNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_focus_composition_adapter_class_get(); - ///Creates a new instance. - ///Parent instance. - public CompositionAdapter(Efl.Object parent= null - ) : - base(efl_ui_focus_composition_adapter_class_get(), typeof(CompositionAdapter), parent) - { - FinishInstantiation(); - } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - protected CompositionAdapter(System.IntPtr raw) : base(raw) - { - RegisterEventProxies(); - } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected CompositionAdapter(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } -private static object FocusChangedEvtKey = new object(); - /// Emitted if the focus state has changed. - /// (Since EFL 1.22) - public event EventHandler FocusChangedEvt - { - add { - lock (eventLock) { - string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); - } - } - remove { - lock (eventLock) { - string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); - } - } - } - ///Method to raise event FocusChangedEvt. - public void On_FocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusChangedEvt_delegate; - private void on_FocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_FocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - -private static object FocusManagerChangedEvtKey = new object(); - /// Emitted when a new manager is the parent for this object. - /// (Since EFL 1.22) - public event EventHandler FocusManagerChangedEvt - { - add { - lock (eventLock) { - string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusManagerChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusManagerChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); - } - } - remove { - lock (eventLock) { - string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusManagerChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusManagerChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); - } - } - } - ///Method to raise event FocusManagerChangedEvt. - public void On_FocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusManagerChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusManagerChangedEvt_delegate; - private void on_FocusManagerChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_FocusManagerChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - -private static object FocusParentChangedEvtKey = new object(); - /// Emitted when a new logical parent should be used. - /// (Since EFL 1.22) - public event EventHandler FocusParentChangedEvt - { - add { - lock (eventLock) { - string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusParentChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusParentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); - } - } - remove { - lock (eventLock) { - string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusParentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusParentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); - } - } - } - ///Method to raise event FocusParentChangedEvt. - public void On_FocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusParentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusParentChangedEvt_delegate; - private void on_FocusParentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_FocusParentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - -private static object ChildFocusChangedEvtKey = new object(); - /// Emitted if child_focus has changed. - /// (Since EFL 1.22) - public event EventHandler ChildFocusChangedEvt - { - add { - lock (eventLock) { - string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChildFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ChildFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); - } - } - remove { - lock (eventLock) { - string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChildFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); - } - } - } - ///Method to raise event ChildFocusChangedEvt. - public void On_ChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildFocusChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildFocusChangedEvt_delegate; - private void on_ChildFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_ChildFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - -private static object FocusGeometryChangedEvtKey = new object(); - /// Emitted if focus geometry of this object has changed. - /// (Since EFL 1.22) - public event EventHandler FocusGeometryChangedEvt - { - add { - lock (eventLock) { - string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusGeometryChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusGeometryChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); - } - } - remove { - lock (eventLock) { - string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusGeometryChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusGeometryChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); - } - } - } - ///Method to raise event FocusGeometryChangedEvt. - public void On_FocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusGeometryChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusGeometryChangedEvt_delegate; - private void on_FocusGeometryChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_FocusGeometryChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_FocusChangedEvt_delegate = new Efl.EventCb(on_FocusChangedEvt_NativeCallback); - evt_FocusManagerChangedEvt_delegate = new Efl.EventCb(on_FocusManagerChangedEvt_NativeCallback); - evt_FocusParentChangedEvt_delegate = new Efl.EventCb(on_FocusParentChangedEvt_NativeCallback); - evt_ChildFocusChangedEvt_delegate = new Efl.EventCb(on_ChildFocusChangedEvt_NativeCallback); - evt_FocusGeometryChangedEvt_delegate = new Efl.EventCb(on_FocusGeometryChangedEvt_NativeCallback); - } - /// Canvas Object Property - /// EFL canvas object - virtual public Efl.Canvas.Object GetCanvasObject() { - var _ret_var = Efl.Ui.Focus.CompositionAdapterNativeInherit.efl_ui_focus_composition_adapter_canvas_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Canvas Object Property - /// EFL canvas object - /// - virtual public void SetCanvasObject( Efl.Canvas.Object v) { - Efl.Ui.Focus.CompositionAdapterNativeInherit.efl_ui_focus_composition_adapter_canvas_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), v); - Eina.Error.RaiseIfUnhandledException(); - } - /// - /// - /// - virtual public void SetFocusManagerObject( Efl.Ui.Focus.IManager v) { - Efl.Ui.Focus.CompositionAdapterNativeInherit.efl_ui_focus_composition_adapter_focus_manager_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), v); - Eina.Error.RaiseIfUnhandledException(); - } - /// - /// - /// - virtual public void SetFocusManagerParent( Efl.Ui.Focus.IObject parent) { - Efl.Ui.Focus.CompositionAdapterNativeInherit.efl_ui_focus_composition_adapter_focus_manager_parent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), parent); - Eina.Error.RaiseIfUnhandledException(); - } - /// The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects. - /// (Since EFL 1.22) - /// The geometry to use. - virtual public Eina.Rect GetFocusGeometry() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Returns whether the widget is currently focused or not. - /// (Since EFL 1.22) - /// The focused state of the object. - virtual public bool GetFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// This is called by the manager and should never be called by anyone else. - /// The function emits the focus state events, if focus is different to the previous state. - /// (Since EFL 1.22) - /// The focused state of the object. - /// - virtual public void SetFocus( bool focus) { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), focus); - Eina.Error.RaiseIfUnhandledException(); - } - /// This is the focus manager where this focus object is registered in. The element which is the root of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in. - /// (Since EFL 1.22) - /// The manager object - virtual public Efl.Ui.Focus.IManager GetFocusManager() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Describes which logical parent is used by this object. - /// (Since EFL 1.22) - /// The focus parent. - virtual public Efl.Ui.Focus.IObject GetFocusParent() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Indicates if a child of this object has focus set to true. - /// (Since EFL 1.22) - /// true if a child has focus. - virtual public bool GetChildFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_child_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Indicates if a child of this object has focus set to true. - /// (Since EFL 1.22) - /// true if a child has focus. - /// - virtual public void SetChildFocus( bool child_focus) { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_child_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child_focus); - Eina.Error.RaiseIfUnhandledException(); - } - /// Tells the object that its children will be queried soon by the focus manager. Overwrite this to update the order of the children. Deleting items in this call will result in undefined behaviour and may cause your system to crash. - /// (Since EFL 1.22) - /// - virtual public void SetupOrder() { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_setup_order_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - } - /// This is called when is called, but only on the first call, additional recursive calls to will not call this function again. - /// (Since EFL 1.22) - /// - virtual public void SetupOrderNonRecursive() { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - } - /// Virtual function handling focus in/out events on the widget - /// (Since EFL 1.22) - /// true if this widget can handle focus, false otherwise - virtual public bool UpdateOnFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_on_focus_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Canvas Object Property -/// EFL canvas object - public Efl.Canvas.Object CanvasObject { - get { return GetCanvasObject(); } - set { SetCanvasObject( value); } - } - /// -/// - public Efl.Ui.Focus.IManager FocusManagerObject { - set { SetFocusManagerObject( value); } - } - /// -/// - public Efl.Ui.Focus.IObject FocusManagerParent { - set { SetFocusManagerParent( value); } - } - /// The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects. -/// (Since EFL 1.22) -/// The geometry to use. - public Eina.Rect FocusGeometry { - get { return GetFocusGeometry(); } - } - /// Returns whether the widget is currently focused or not. -/// (Since EFL 1.22) -/// The focused state of the object. - public bool Focus { - get { return GetFocus(); } - set { SetFocus( value); } - } - /// This is the focus manager where this focus object is registered in. The element which is the root of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in. -/// (Since EFL 1.22) -/// The manager object - public Efl.Ui.Focus.IManager FocusManager { - get { return GetFocusManager(); } - } - /// Describes which logical parent is used by this object. -/// (Since EFL 1.22) -/// The focus parent. - public Efl.Ui.Focus.IObject FocusParent { - get { return GetFocusParent(); } - } - /// Indicates if a child of this object has focus set to true. -/// (Since EFL 1.22) -/// true if a child has focus. - public bool ChildFocus { - get { return GetChildFocus(); } - set { SetChildFocus( value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.Focus.CompositionAdapter.efl_ui_focus_composition_adapter_class_get(); - } -} -public class CompositionAdapterNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_focus_composition_adapter_canvas_object_get_static_delegate == null) - efl_ui_focus_composition_adapter_canvas_object_get_static_delegate = new efl_ui_focus_composition_adapter_canvas_object_get_delegate(canvas_object_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanvasObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_adapter_canvas_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_adapter_canvas_object_get_static_delegate)}); - if (efl_ui_focus_composition_adapter_canvas_object_set_static_delegate == null) - efl_ui_focus_composition_adapter_canvas_object_set_static_delegate = new efl_ui_focus_composition_adapter_canvas_object_set_delegate(canvas_object_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanvasObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_adapter_canvas_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_adapter_canvas_object_set_static_delegate)}); - if (efl_ui_focus_composition_adapter_focus_manager_object_set_static_delegate == null) - efl_ui_focus_composition_adapter_focus_manager_object_set_static_delegate = new efl_ui_focus_composition_adapter_focus_manager_object_set_delegate(focus_manager_object_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocusManagerObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_adapter_focus_manager_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_adapter_focus_manager_object_set_static_delegate)}); - if (efl_ui_focus_composition_adapter_focus_manager_parent_set_static_delegate == null) - efl_ui_focus_composition_adapter_focus_manager_parent_set_static_delegate = new efl_ui_focus_composition_adapter_focus_manager_parent_set_delegate(focus_manager_parent_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocusManagerParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_adapter_focus_manager_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_adapter_focus_manager_parent_set_static_delegate)}); - if (efl_ui_focus_object_focus_geometry_get_static_delegate == null) - efl_ui_focus_object_focus_geometry_get_static_delegate = new efl_ui_focus_object_focus_geometry_get_delegate(focus_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_geometry_get_static_delegate)}); - if (efl_ui_focus_object_focus_get_static_delegate == null) - efl_ui_focus_object_focus_get_static_delegate = new efl_ui_focus_object_focus_get_delegate(focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_get_static_delegate)}); - if (efl_ui_focus_object_focus_set_static_delegate == null) - efl_ui_focus_object_focus_set_static_delegate = new efl_ui_focus_object_focus_set_delegate(focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_set_static_delegate)}); - if (efl_ui_focus_object_focus_manager_get_static_delegate == null) - efl_ui_focus_object_focus_manager_get_static_delegate = new efl_ui_focus_object_focus_manager_get_delegate(focus_manager_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusManager") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_manager_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_manager_get_static_delegate)}); - if (efl_ui_focus_object_focus_parent_get_static_delegate == null) - efl_ui_focus_object_focus_parent_get_static_delegate = new efl_ui_focus_object_focus_parent_get_delegate(focus_parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_parent_get_static_delegate)}); - if (efl_ui_focus_object_child_focus_get_static_delegate == null) - efl_ui_focus_object_child_focus_get_static_delegate = new efl_ui_focus_object_child_focus_get_delegate(child_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetChildFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_child_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_get_static_delegate)}); - if (efl_ui_focus_object_child_focus_set_static_delegate == null) - efl_ui_focus_object_child_focus_set_static_delegate = new efl_ui_focus_object_child_focus_set_delegate(child_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetChildFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_child_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_set_static_delegate)}); - if (efl_ui_focus_object_setup_order_static_delegate == null) - efl_ui_focus_object_setup_order_static_delegate = new efl_ui_focus_object_setup_order_delegate(setup_order); - if (methods.FirstOrDefault(m => m.Name == "SetupOrder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_setup_order"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_static_delegate)}); - if (efl_ui_focus_object_setup_order_non_recursive_static_delegate == null) - efl_ui_focus_object_setup_order_non_recursive_static_delegate = new efl_ui_focus_object_setup_order_non_recursive_delegate(setup_order_non_recursive); - if (methods.FirstOrDefault(m => m.Name == "SetupOrderNonRecursive") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_setup_order_non_recursive"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_non_recursive_static_delegate)}); - if (efl_ui_focus_object_on_focus_update_static_delegate == null) - efl_ui_focus_object_on_focus_update_static_delegate = new efl_ui_focus_object_on_focus_update_delegate(on_focus_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateOnFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_on_focus_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_on_focus_update_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Focus.CompositionAdapter.efl_ui_focus_composition_adapter_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Focus.CompositionAdapter.efl_ui_focus_composition_adapter_class_get(); - } - - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_focus_composition_adapter_canvas_object_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_focus_composition_adapter_canvas_object_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_adapter_canvas_object_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_adapter_canvas_object_get"); - private static Efl.Canvas.Object canvas_object_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_adapter_canvas_object_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((CompositionAdapter)wrapper).GetCanvasObject(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_composition_adapter_canvas_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_composition_adapter_canvas_object_get_delegate efl_ui_focus_composition_adapter_canvas_object_get_static_delegate; - - - private delegate void efl_ui_focus_composition_adapter_canvas_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object v); - - - public delegate void efl_ui_focus_composition_adapter_canvas_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object v); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_adapter_canvas_object_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_adapter_canvas_object_set"); - private static void canvas_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object v) - { - Eina.Log.Debug("function efl_ui_focus_composition_adapter_canvas_object_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CompositionAdapter)wrapper).SetCanvasObject( v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_adapter_canvas_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); - } - } - private static efl_ui_focus_composition_adapter_canvas_object_set_delegate efl_ui_focus_composition_adapter_canvas_object_set_static_delegate; - - - private delegate void efl_ui_focus_composition_adapter_focus_manager_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager v); - - - public delegate void efl_ui_focus_composition_adapter_focus_manager_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager v); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_adapter_focus_manager_object_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_adapter_focus_manager_object_set"); - private static void focus_manager_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager v) - { - Eina.Log.Debug("function efl_ui_focus_composition_adapter_focus_manager_object_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CompositionAdapter)wrapper).SetFocusManagerObject( v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_adapter_focus_manager_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); - } - } - private static efl_ui_focus_composition_adapter_focus_manager_object_set_delegate efl_ui_focus_composition_adapter_focus_manager_object_set_static_delegate; - - - private delegate void efl_ui_focus_composition_adapter_focus_manager_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent); - - - public delegate void efl_ui_focus_composition_adapter_focus_manager_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_adapter_focus_manager_parent_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_adapter_focus_manager_parent_set"); - private static void focus_manager_parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject parent) - { - Eina.Log.Debug("function efl_ui_focus_composition_adapter_focus_manager_parent_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CompositionAdapter)wrapper).SetFocusManagerParent( parent); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_adapter_focus_manager_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); - } - } - private static efl_ui_focus_composition_adapter_focus_manager_parent_set_delegate efl_ui_focus_composition_adapter_focus_manager_parent_set_static_delegate; - - - private delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_geometry_get"); - private static Eina.Rect.NativeStruct focus_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((CompositionAdapter)wrapper).GetFocusGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_focus_geometry_get_delegate efl_ui_focus_object_focus_geometry_get_static_delegate; - - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_get"); - private static bool focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((CompositionAdapter)wrapper).GetFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_object_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_focus_get_delegate efl_ui_focus_object_focus_get_static_delegate; - - - private delegate void efl_ui_focus_object_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus); - - - public delegate void efl_ui_focus_object_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_set"); - private static void focus_set(System.IntPtr obj, System.IntPtr pd, bool focus) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CompositionAdapter)wrapper).SetFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_object_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_object_focus_set_delegate efl_ui_focus_object_focus_set_static_delegate; - - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_manager_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_manager_get"); - private static Efl.Ui.Focus.IManager focus_manager_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_manager_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((CompositionAdapter)wrapper).GetFocusManager(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_focus_manager_get_delegate efl_ui_focus_object_focus_manager_get_static_delegate; - - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_parent_get"); - private static Efl.Ui.Focus.IObject focus_parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((CompositionAdapter)wrapper).GetFocusParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_focus_parent_get_delegate efl_ui_focus_object_focus_parent_get_static_delegate; - - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_child_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_child_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_child_focus_get"); - private static bool child_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_child_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((CompositionAdapter)wrapper).GetChildFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_child_focus_get_delegate efl_ui_focus_object_child_focus_get_static_delegate; - - - private delegate void efl_ui_focus_object_child_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool child_focus); - - - public delegate void efl_ui_focus_object_child_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool child_focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_child_focus_set"); - private static void child_focus_set(System.IntPtr obj, System.IntPtr pd, bool child_focus) - { - Eina.Log.Debug("function efl_ui_focus_object_child_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CompositionAdapter)wrapper).SetChildFocus( child_focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_object_child_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_focus); - } - } - private static efl_ui_focus_object_child_focus_set_delegate efl_ui_focus_object_child_focus_set_static_delegate; - - - private delegate void efl_ui_focus_object_setup_order_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_focus_object_setup_order_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_setup_order"); - private static void setup_order(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_setup_order was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CompositionAdapter)wrapper).SetupOrder(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_object_setup_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_setup_order_delegate efl_ui_focus_object_setup_order_static_delegate; - - - private delegate void efl_ui_focus_object_setup_order_non_recursive_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_focus_object_setup_order_non_recursive_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_non_recursive_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_setup_order_non_recursive"); - private static void setup_order_non_recursive(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_setup_order_non_recursive was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((CompositionAdapter)wrapper).SetupOrderNonRecursive(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_setup_order_non_recursive_delegate efl_ui_focus_object_setup_order_non_recursive_static_delegate; - - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_on_focus_update_delegate(System.IntPtr obj, System.IntPtr pd); - - - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_on_focus_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_on_focus_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_on_focus_update"); - private static bool on_focus_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_on_focus_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((CompositionAdapter)wrapper).UpdateOnFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_on_focus_update_delegate efl_ui_focus_object_on_focus_update_static_delegate; -} -} } } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_layer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_layer.eo.cs index c323eae..75b87ca 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_layer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_layer.eo.cs @@ -3,13 +3,19 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { +namespace Efl { + +namespace Ui { + +namespace Focus { + /// This defines the inheriting widget as focus layer /// A focus layer is the uppermost one which received input and handles all focus related events for as long as it exists and is visible. It's NOT possible to escape this layer with focus movement. /// /// Once the object is hidden or destroyed the focus will go back to the mainwindow, where it was before. -[ILayerNativeInherit] +[Efl.Ui.Focus.ILayerConcrete.NativeMethods] public interface ILayer : Efl.Ui.IWidgetFocusManager , Efl.Eo.IWrapper, IDisposable @@ -19,18 +25,15 @@ public interface ILayer : bool GetEnable(); /// Enable property /// true to set enable the layer false to disable it -/// -void SetEnable( bool v); +void SetEnable(bool v); /// Constructor for setting the behaviour of the layer /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically /// If true the focus will cycle in the layer, if false -/// -void GetBehaviour( out bool enable_on_visible, out bool cycle); +void GetBehaviour(out bool enable_on_visible, out bool cycle); /// Constructor for setting the behaviour of the layer /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically /// If true the focus will cycle in the layer, if false -/// -void SetBehaviour( bool enable_on_visible, bool cycle); +void SetBehaviour(bool enable_on_visible, bool cycle); /// Enable property /// true to set enable the layer false to disable it bool Enable { @@ -48,384 +51,480 @@ ILayer , Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.IManager { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ILayerConcrete)) - return Efl.Ui.Focus.ILayerNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ILayerConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_focus_layer_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ILayerConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ILayerConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object RedirectChangedEvtKey = new object(); + /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) public event EventHandler RedirectChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.AddHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.RemoveHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedirectChangedEvt. - public void On_RedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedirectChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedirectChangedEvt_delegate; - private void on_RedirectChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_RedirectChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object FlushPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.AddHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (RemoveNativeEventHandler(key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.RemoveHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FlushPreEvt. - public void On_FlushPreEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FlushPreEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FlushPreEvt_delegate; - private void on_FlushPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFlushPreEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_FlushPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CoordsDirtyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.AddHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (RemoveNativeEventHandler(key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.RemoveHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CoordsDirtyEvt. - public void On_CoordsDirtyEvt(EventArgs e) + public void OnCoordsDirtyEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CoordsDirtyEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CoordsDirtyEvt_delegate; - private void on_CoordsDirtyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_CoordsDirtyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ManagerFocusChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) public event EventHandler ManagerFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ManagerFocusChangedEvt. - public void On_ManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ManagerFocusChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ManagerFocusChangedEvt_delegate; - private void on_ManagerFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_ManagerFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DirtyLogicFreezeChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) public event EventHandler DirtyLogicFreezeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.AddHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DirtyLogicFreezeChangedEvt. - public void On_DirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DirtyLogicFreezeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DirtyLogicFreezeChangedEvt_delegate; - private void on_DirtyLogicFreezeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_DirtyLogicFreezeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_RedirectChangedEvt_delegate = new Efl.EventCb(on_RedirectChangedEvt_NativeCallback); - evt_FlushPreEvt_delegate = new Efl.EventCb(on_FlushPreEvt_NativeCallback); - evt_CoordsDirtyEvt_delegate = new Efl.EventCb(on_CoordsDirtyEvt_NativeCallback); - evt_ManagerFocusChangedEvt_delegate = new Efl.EventCb(on_ManagerFocusChangedEvt_NativeCallback); - evt_DirtyLogicFreezeChangedEvt_delegate = new Efl.EventCb(on_DirtyLogicFreezeChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Enable property /// true to set enable the layer false to disable it public bool GetEnable() { - var _ret_var = Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_enable_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_enable_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable property /// true to set enable the layer false to disable it - /// - public void SetEnable( bool v) { - Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_enable_set_ptr.Value.Delegate(this.NativeHandle, v); + public void SetEnable(bool v) { + Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_enable_set_ptr.Value.Delegate(this.NativeHandle,v); Eina.Error.RaiseIfUnhandledException(); } /// Constructor for setting the behaviour of the layer /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically /// If true the focus will cycle in the layer, if false - /// - public void GetBehaviour( out bool enable_on_visible, out bool cycle) { - Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(this.NativeHandle, out enable_on_visible, out cycle); + public void GetBehaviour(out bool enable_on_visible, out bool cycle) { + Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(this.NativeHandle,out enable_on_visible, out cycle); Eina.Error.RaiseIfUnhandledException(); } /// Constructor for setting the behaviour of the layer /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically /// If true the focus will cycle in the layer, if false - /// - public void SetBehaviour( bool enable_on_visible, bool cycle) { - Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(this.NativeHandle, enable_on_visible, cycle); + public void SetBehaviour(bool enable_on_visible, bool cycle) { + Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(this.NativeHandle,enable_on_visible, cycle); Eina.Error.RaiseIfUnhandledException(); } /// If the widget needs a focus manager, this function will be called. @@ -433,8 +532,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The logical root object for focus. /// The focus manager. - public Efl.Ui.Focus.IManager FocusManagerCreate( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.IWidgetFocusManagerNativeInherit.efl_ui_widget_focus_manager_create_ptr.Value.Delegate(this.NativeHandle, root); + public Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods.efl_ui_widget_focus_manager_create_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -443,7 +542,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Currently focused element. public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -451,9 +550,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. - /// - public void SetManagerFocus( Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle, focus); + public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle,focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. @@ -461,7 +559,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The redirect manager. public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -469,9 +567,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. - /// - public void SetRedirect( Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle, redirect); + public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle,redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. @@ -479,7 +576,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the border objects. public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -488,9 +585,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. - public Eina.Iterator GetViewportElements( Eina.Rect viewport) { + public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle, _in_viewport); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle,_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -499,7 +596,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -508,8 +605,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node - public bool SetRoot( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle, root); + public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -518,8 +615,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. - public Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle, direction); + public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle,direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -529,8 +626,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. - public Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle, direction, child, logical); + public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle,direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -539,8 +636,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. - public Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle, root); + public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -549,8 +646,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. - public Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle, child); + public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle,child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); @@ -561,24 +658,22 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Last object. public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) - /// public void ResetHistory() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) - /// public void PopHistoryStack() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. @@ -586,32 +681,29 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. - /// - public void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle, direction, entry); + public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle,direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) - /// public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) - /// public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Enable property /// true to set enable the layer false to disable it public bool Enable { get { return GetEnable(); } - set { SetEnable( value); } + set { SetEnable(value); } } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. @@ -619,7 +711,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } - set { SetManagerFocus( value); } + set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. @@ -627,7 +719,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } - set { SetRedirect( value); } + set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See @@ -642,686 +734,1091 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } - set { SetRoot( value); } + set { SetRoot(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Focus.ILayerConcrete.efl_ui_focus_layer_mixin_get(); } -} -public class ILayerNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_focus_layer_enable_get_static_delegate == null) - efl_ui_focus_layer_enable_get_static_delegate = new efl_ui_focus_layer_enable_get_delegate(enable_get); - if (methods.FirstOrDefault(m => m.Name == "GetEnable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_enable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_get_static_delegate)}); - if (efl_ui_focus_layer_enable_set_static_delegate == null) - efl_ui_focus_layer_enable_set_static_delegate = new efl_ui_focus_layer_enable_set_delegate(enable_set); - if (methods.FirstOrDefault(m => m.Name == "SetEnable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_enable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_set_static_delegate)}); - if (efl_ui_focus_layer_behaviour_get_static_delegate == null) - efl_ui_focus_layer_behaviour_get_static_delegate = new efl_ui_focus_layer_behaviour_get_delegate(behaviour_get); - if (methods.FirstOrDefault(m => m.Name == "GetBehaviour") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_behaviour_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_get_static_delegate)}); - if (efl_ui_focus_layer_behaviour_set_static_delegate == null) - efl_ui_focus_layer_behaviour_set_static_delegate = new efl_ui_focus_layer_behaviour_set_delegate(behaviour_set); - if (methods.FirstOrDefault(m => m.Name == "SetBehaviour") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_behaviour_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_set_static_delegate)}); - if (efl_ui_widget_focus_manager_create_static_delegate == null) - efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); - if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate)}); - if (efl_ui_focus_manager_focus_get_static_delegate == null) - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate)}); - if (efl_ui_focus_manager_focus_set_static_delegate == null) - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate)}); - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate)}); - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate)}); - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate)}); - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate)}); - if (efl_ui_focus_manager_root_get_static_delegate == null) - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate)}); - if (efl_ui_focus_manager_root_set_static_delegate == null) - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate)}); - if (efl_ui_focus_manager_move_static_delegate == null) - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate)}); - if (efl_ui_focus_manager_request_move_static_delegate == null) - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate)}); - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate)}); - if (efl_ui_focus_manager_fetch_static_delegate == null) - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate)}); - if (efl_ui_focus_manager_logical_end_static_delegate == null) - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate)}); - if (efl_ui_focus_manager_reset_history_static_delegate == null) - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate)}); - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate)}); - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Focus.ILayerConcrete.efl_ui_focus_layer_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.Focus.ILayerConcrete.efl_ui_focus_layer_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_focus_layer_enable_get_static_delegate == null) + { + efl_ui_focus_layer_enable_get_static_delegate = new efl_ui_focus_layer_enable_get_delegate(enable_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetEnable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_layer_enable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_layer_enable_set_static_delegate == null) + { + efl_ui_focus_layer_enable_set_static_delegate = new efl_ui_focus_layer_enable_set_delegate(enable_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEnable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_layer_enable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_enable_get"); - private static bool enable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_layer_enable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ILayerConcrete)wrapper).GetEnable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_layer_behaviour_get_static_delegate == null) + { + efl_ui_focus_layer_behaviour_get_static_delegate = new efl_ui_focus_layer_behaviour_get_delegate(behaviour_get); } - return _ret_var; - } else { - return efl_ui_focus_layer_enable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_layer_enable_get_delegate efl_ui_focus_layer_enable_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetBehaviour") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_get_static_delegate) }); + } - private delegate void efl_ui_focus_layer_enable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + if (efl_ui_focus_layer_behaviour_set_static_delegate == null) + { + efl_ui_focus_layer_behaviour_set_static_delegate = new efl_ui_focus_layer_behaviour_set_delegate(behaviour_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBehaviour") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_set_static_delegate) }); + } - public delegate void efl_ui_focus_layer_enable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_enable_set"); - private static void enable_set(System.IntPtr obj, System.IntPtr pd, bool v) - { - Eina.Log.Debug("function efl_ui_focus_layer_enable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ILayerConcrete)wrapper).SetEnable( v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_layer_enable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); - } - } - private static efl_ui_focus_layer_enable_set_delegate efl_ui_focus_layer_enable_set_static_delegate; + if (efl_ui_widget_focus_manager_create_static_delegate == null) + { + efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); + } + if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); + } - private delegate void efl_ui_focus_layer_behaviour_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); + if (efl_ui_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + } - public delegate void efl_ui_focus_layer_behaviour_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_behaviour_get"); - private static void behaviour_get(System.IntPtr obj, System.IntPtr pd, out bool enable_on_visible, out bool cycle) - { - Eina.Log.Debug("function efl_ui_focus_layer_behaviour_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - enable_on_visible = default(bool); cycle = default(bool); - try { - ((ILayerConcrete)wrapper).GetBehaviour( out enable_on_visible, out cycle); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out enable_on_visible, out cycle); - } - } - private static efl_ui_focus_layer_behaviour_get_delegate efl_ui_focus_layer_behaviour_get_static_delegate; + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); + } - private delegate void efl_ui_focus_layer_behaviour_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + } - public delegate void efl_ui_focus_layer_behaviour_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_behaviour_set"); - private static void behaviour_set(System.IntPtr obj, System.IntPtr pd, bool enable_on_visible, bool cycle) - { - Eina.Log.Debug("function efl_ui_focus_layer_behaviour_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ILayerConcrete)wrapper).SetBehaviour( enable_on_visible, cycle); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable_on_visible, cycle); - } - } - private static efl_ui_focus_layer_behaviour_set_delegate efl_ui_focus_layer_behaviour_set_static_delegate; + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_manager_create"); - private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((ILayerConcrete)wrapper).FocusManagerCreate( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); } - return _ret_var; - } else { - return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_get"); - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ILayerConcrete)wrapper).GetManagerFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); } - return _ret_var; - } else { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + } - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + } - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_set"); - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ILayerConcrete)wrapper).SetManagerFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + } + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_get"); - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((ILayerConcrete)wrapper).GetRedirect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); } - return _ret_var; - } else { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + } + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_set"); - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ILayerConcrete)wrapper).SetRedirect( redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); + } - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + } + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_border_elements_get"); - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((ILayerConcrete)wrapper).GetBorderElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + } - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + } + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + } - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_viewport_elements_get"); - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((ILayerConcrete)wrapper).GetViewportElements( _in_viewport); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } + + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); - } - } - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_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.Focus.ILayerConcrete.efl_ui_focus_layer_mixin_get(); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_layer_enable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_layer_enable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_enable_get"); + + private static bool enable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_layer_enable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ILayerConcrete)wrapper).GetEnable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_get"); - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ILayerConcrete)wrapper).GetRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_layer_enable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + private static efl_ui_focus_layer_enable_get_delegate efl_ui_focus_layer_enable_get_static_delegate; + + + private delegate void efl_ui_focus_layer_enable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + + + public delegate void efl_ui_focus_layer_enable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_enable_set"); + + private static void enable_set(System.IntPtr obj, System.IntPtr pd, bool v) + { + Eina.Log.Debug("function efl_ui_focus_layer_enable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ILayerConcrete)wrapper).SetEnable(v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + + } + else + { + efl_ui_focus_layer_enable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); + } + } + private static efl_ui_focus_layer_enable_set_delegate efl_ui_focus_layer_enable_set_static_delegate; + + + private delegate void efl_ui_focus_layer_behaviour_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); + + + public delegate void efl_ui_focus_layer_behaviour_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_behaviour_get"); + + private static void behaviour_get(System.IntPtr obj, System.IntPtr pd, out bool enable_on_visible, out bool cycle) + { + Eina.Log.Debug("function efl_ui_focus_layer_behaviour_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + enable_on_visible = default(bool); cycle = default(bool); + try + { + ((ILayerConcrete)wrapper).GetBehaviour(out enable_on_visible, out cycle); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out enable_on_visible, out cycle); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_set"); - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ILayerConcrete)wrapper).SetRoot( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_ui_focus_layer_behaviour_get_delegate efl_ui_focus_layer_behaviour_get_static_delegate; + + + private delegate void efl_ui_focus_layer_behaviour_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); + + + public delegate void efl_ui_focus_layer_behaviour_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_behaviour_set"); + + private static void behaviour_set(System.IntPtr obj, System.IntPtr pd, bool enable_on_visible, bool cycle) + { + Eina.Log.Debug("function efl_ui_focus_layer_behaviour_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ILayerConcrete)wrapper).SetBehaviour(enable_on_visible, cycle); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable_on_visible, cycle); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); } - } - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + private static efl_ui_focus_layer_behaviour_set_delegate efl_ui_focus_layer_behaviour_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); + + private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((ILayerConcrete)wrapper).FocusManagerCreate(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + } + else + { + return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); + + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ILayerConcrete)wrapper).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_move"); - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ILayerConcrete)wrapper).Move( direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ILayerConcrete)wrapper).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); + + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((ILayerConcrete)wrapper).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_move"); - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ILayerConcrete)wrapper).MoveRequest( direction, child, logical); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); + + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ILayerConcrete)wrapper).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); + + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((ILayerConcrete)wrapper).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_subchild"); - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ILayerConcrete)wrapper).RequestSubchild( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); + + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((ILayerConcrete)wrapper).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_fetch"); - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try { - _ret_var = ((ILayerConcrete)wrapper).Fetch( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } } - } - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); + + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ILayerConcrete)wrapper).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + + } + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); + + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ILayerConcrete)wrapper).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_logical_end"); - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try { - _ret_var = ((ILayerConcrete)wrapper).LogicalEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); + + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ILayerConcrete)wrapper).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } + } - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_reset_history"); - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ILayerConcrete)wrapper).ResetHistory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); + + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ILayerConcrete)wrapper).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } } - } - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); + + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ILayerConcrete)wrapper).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); + + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((ILayerConcrete)wrapper).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_pop_history_stack"); - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ILayerConcrete)wrapper).PopHistoryStack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } } - } - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); + + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((ILayerConcrete)wrapper).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); + return _ret_var; + } + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ILayerConcrete)wrapper).SetupOnFirstTouch( direction, entry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ILayerConcrete)wrapper).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); + + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ILayerConcrete)wrapper).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); + + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ILayerConcrete)wrapper).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + } + } + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); + + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ILayerConcrete)wrapper).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ILayerConcrete)wrapper).FreezeDirtyLogic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ILayerConcrete)wrapper).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} + +} - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ILayerConcrete)wrapper).DirtyLogicUnfreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; } -} } } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager.eo.cs index ea55931..58e9652 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager.eo.cs @@ -3,12 +3,18 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { +namespace Efl { + +namespace Ui { + +namespace Focus { + /// Interface for managing focus objects /// This interface is built in order to support movement of the focus property in a set of widgets. The movement of the focus property can happen in a tree manner, or a graph manner. The movement is also keeping track of the history of focused elements. The tree interpretation differentiates between logical and non-logical widgets, a logical widget cannot receive focus whereas a non-logical one can. /// (Since EFL 1.22) -[IManagerNativeInherit] +[Efl.Ui.Focus.IManagerConcrete.NativeMethods] public interface IManager : Efl.Eo.IWrapper, IDisposable { @@ -21,8 +27,7 @@ Efl.Ui.Focus.IObject GetManagerFocus(); /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. -/// -void SetManagerFocus( Efl.Ui.Focus.IObject focus); +void SetManagerFocus(Efl.Ui.Focus.IObject focus); /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) @@ -32,8 +37,7 @@ Efl.Ui.Focus.IManager GetRedirect(); /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. -/// -void SetRedirect( Efl.Ui.Focus.IManager redirect); +void SetRedirect(Efl.Ui.Focus.IManager redirect); /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See /// (Since EFL 1.22) @@ -44,7 +48,7 @@ Eina.Iterator GetBorderElements(); /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. -Eina.Iterator GetViewportElements( Eina.Rect viewport); +Eina.Iterator GetViewportElements(Eina.Rect viewport); /// Root node for all logical subtrees. /// This property can only be set once. /// (Since EFL 1.22) @@ -55,32 +59,32 @@ Efl.Ui.Focus.IObject GetRoot(); /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node -bool SetRoot( Efl.Ui.Focus.IObject root); +bool SetRoot(Efl.Ui.Focus.IObject root); /// Move the focus in the given direction. /// This call flushes all changes. This means all changes between the last flush and now are computed. /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. -Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction); +Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction); /// Return the object in the direction from child. /// (Since EFL 1.22) /// Direction to move focus. /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. -Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical); +Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical); /// Return the widget in the direction next. /// The returned widget is a child of root. It's guaranteed that child will not be prepared once again, so you can call this function inside a call. /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. -Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root); +Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root); /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. -Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child); +Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child); /// Return the last logical object. /// The returned object is the last object that would be returned if you start at the root and move the direction into next. /// (Since EFL 1.22) @@ -89,29 +93,24 @@ Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd(); /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) -/// void ResetHistory(); /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) -/// void PopHistoryStack(); /// Called when this manager is set as redirect. /// In case that this is called as an result of a move call, direction and entry will be set to the direction of the move call, and the entry object will be set to the object that had this manager as redirect property. /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. -/// -void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry); +void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry); /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) -/// void FreezeDirtyLogic(); /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) -/// void DirtyLogicUnfreeze(); /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) @@ -184,362 +183,461 @@ IManager { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IManagerConcrete)) - return Efl.Ui.Focus.IManagerNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IManagerConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_focus_manager_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IManagerConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IManagerConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object RedirectChangedEvtKey = new object(); + /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) public event EventHandler RedirectChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.AddHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.RemoveHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedirectChangedEvt. - public void On_RedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedirectChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedirectChangedEvt_delegate; - private void on_RedirectChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_RedirectChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FlushPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.AddHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (RemoveNativeEventHandler(key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.RemoveHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FlushPreEvt. - public void On_FlushPreEvt(EventArgs e) + public void OnFlushPreEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FlushPreEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FlushPreEvt_delegate; - private void on_FlushPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_FlushPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CoordsDirtyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.AddHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (RemoveNativeEventHandler(key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.RemoveHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CoordsDirtyEvt. - public void On_CoordsDirtyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CoordsDirtyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CoordsDirtyEvt_delegate; - private void on_CoordsDirtyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCoordsDirtyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_CoordsDirtyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ManagerFocusChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) public event EventHandler ManagerFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ManagerFocusChangedEvt. - public void On_ManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ManagerFocusChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ManagerFocusChangedEvt_delegate; - private void on_ManagerFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_ManagerFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DirtyLogicFreezeChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) public event EventHandler DirtyLogicFreezeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.AddHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DirtyLogicFreezeChangedEvt. - public void On_DirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DirtyLogicFreezeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DirtyLogicFreezeChangedEvt_delegate; - private void on_DirtyLogicFreezeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_DirtyLogicFreezeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_RedirectChangedEvt_delegate = new Efl.EventCb(on_RedirectChangedEvt_NativeCallback); - evt_FlushPreEvt_delegate = new Efl.EventCb(on_FlushPreEvt_NativeCallback); - evt_CoordsDirtyEvt_delegate = new Efl.EventCb(on_CoordsDirtyEvt_NativeCallback); - evt_ManagerFocusChangedEvt_delegate = new Efl.EventCb(on_ManagerFocusChangedEvt_NativeCallback); - evt_DirtyLogicFreezeChangedEvt_delegate = new Efl.EventCb(on_DirtyLogicFreezeChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -547,9 +645,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. - /// - public void SetManagerFocus( Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle, focus); + public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle,focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. @@ -557,7 +654,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The redirect manager. public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -565,9 +662,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. - /// - public void SetRedirect( Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle, redirect); + public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle,redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. @@ -575,7 +671,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the border objects. public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -584,9 +680,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. - public Eina.Iterator GetViewportElements( Eina.Rect viewport) { + public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle, _in_viewport); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle,_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -595,7 +691,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -604,8 +700,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node - public bool SetRoot( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle, root); + public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -614,8 +710,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. - public Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle, direction); + public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle,direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -625,8 +721,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. - public Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle, direction, child, logical); + public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle,direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -635,8 +731,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. - public Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle, root); + public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -645,8 +741,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. - public Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle, child); + public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle,child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); @@ -657,24 +753,22 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Last object. public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) - /// public void ResetHistory() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) - /// public void PopHistoryStack() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. @@ -682,25 +776,22 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. - /// - public void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle, direction, entry); + public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle,direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) - /// public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) - /// public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// The element which is currently focused by this manager @@ -709,7 +800,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } - set { SetManagerFocus( value); } + set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. @@ -717,7 +808,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } - set { SetRedirect( value); } + set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See @@ -732,561 +823,886 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } - set { SetRoot( value); } + set { SetRoot(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Focus.IManagerConcrete.efl_ui_focus_manager_interface_get(); } -} -public class IManagerNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_focus_manager_focus_get_static_delegate == null) - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate)}); - if (efl_ui_focus_manager_focus_set_static_delegate == null) - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate)}); - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate)}); - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate)}); - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate)}); - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate)}); - if (efl_ui_focus_manager_root_get_static_delegate == null) - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate)}); - if (efl_ui_focus_manager_root_set_static_delegate == null) - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate)}); - if (efl_ui_focus_manager_move_static_delegate == null) - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate)}); - if (efl_ui_focus_manager_request_move_static_delegate == null) - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate)}); - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate)}); - if (efl_ui_focus_manager_fetch_static_delegate == null) - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate)}); - if (efl_ui_focus_manager_logical_end_static_delegate == null) - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate)}); - if (efl_ui_focus_manager_reset_history_static_delegate == null) - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate)}); - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate)}); - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Focus.IManagerConcrete.efl_ui_focus_manager_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.Focus.IManagerConcrete.efl_ui_focus_manager_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_get"); - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IManager)wrapper).GetManagerFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); } - return _ret_var; - } else { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + } + + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); + } + + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + } + + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); + } + + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + } + + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + } + + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } + + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + } + + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } + + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + } + + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + } + + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + } + + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); + } + + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } + + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + } + + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } + + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); + } + + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + } + + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } + + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + } + + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + } + + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } + + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_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.Focus.IManagerConcrete.efl_ui_focus_manager_interface_get(); } - } - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_set"); - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManager)wrapper).SetManagerFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); + + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IManager)wrapper).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_get"); - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((IManager)wrapper).GetRedirect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManager)wrapper).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); } - return _ret_var; - } else { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_set"); - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManager)wrapper).SetRedirect( redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); + + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((IManager)wrapper).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_border_elements_get"); - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IManager)wrapper).GetBorderElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManager)wrapper).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); + } + } + + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); + + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IManager)wrapper).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - } else { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_viewport_elements_get"); - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_viewport = viewport; + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); + + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_viewport = viewport; Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IManager)wrapper).GetViewportElements( _in_viewport); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IManager)wrapper).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - } else { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + + } + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } } - } - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); + + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IManager)wrapper).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_get"); - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IManager)wrapper).GetRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); + + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IManager)wrapper).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_set"); - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IManager)wrapper).SetRoot( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + + } + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); + + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IManager)wrapper).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_move"); - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IManager)wrapper).Move( direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + + } + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } } - } - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); + + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IManager)wrapper).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_move"); - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IManager)wrapper).MoveRequest( direction, child, logical); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + + } + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } } - } - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); + + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IManager)wrapper).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_subchild"); - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IManager)wrapper).RequestSubchild( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + + } + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); + + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((IManager)wrapper).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_fetch"); - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try { - _ret_var = ((IManager)wrapper).Fetch( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + + } + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } } - } - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); + + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((IManager)wrapper).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_logical_end"); - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try { - _ret_var = ((IManager)wrapper).LogicalEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_reset_history"); - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManager)wrapper).ResetHistory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManager)wrapper).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_pop_history_stack"); - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManager)wrapper).PopHistoryStack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); + + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManager)wrapper).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManager)wrapper).SetupOnFirstTouch( direction, entry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); + + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManager)wrapper).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + } } - } - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManager)wrapper).FreezeDirtyLogic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); + + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManager)wrapper).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManager)wrapper).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManager)wrapper).DirtyLogicUnfreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; + + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } } -namespace Efl { namespace Ui { namespace Focus { +} +} + +} + +} + +namespace Efl { + +namespace Ui { + +namespace Focus { + /// Structure holding the graph of relations between focusable objects. [StructLayout(LayoutKind.Sequential)] public struct Relations { /// List of objects on the right side public Eina.List Right; - /// [List of objects on the left side + /// List of objects on the left side public Eina.List Left; - /// [List of objects above + /// List of objects above public Eina.List Top; - /// [List of objects below + /// List of objects below public Eina.List Down; - /// [Next object + /// Next object public Efl.Ui.Focus.IObject Next; /// Previous object public Efl.Ui.Focus.IObject Prev; @@ -1302,17 +1718,17 @@ public struct Relations public int Position_in_history; ///Constructor for Relations. public Relations( - Eina.List Right=default(Eina.List), - Eina.List Left=default(Eina.List), - Eina.List Top=default(Eina.List), - Eina.List Down=default(Eina.List), - Efl.Ui.Focus.IObject Next=default(Efl.Ui.Focus.IObject), - Efl.Ui.Focus.IObject Prev=default(Efl.Ui.Focus.IObject), - Efl.Ui.Focus.IObject Parent=default(Efl.Ui.Focus.IObject), - Efl.Ui.Focus.IManager Redirect=default(Efl.Ui.Focus.IManager), - Efl.Ui.Focus.IObject Node=default(Efl.Ui.Focus.IObject), - bool Logical=default(bool), - int Position_in_history=default(int) ) + Eina.List Right = default(Eina.List), + Eina.List Left = default(Eina.List), + Eina.List Top = default(Eina.List), + Eina.List Down = default(Eina.List), + Efl.Ui.Focus.IObject Next = default(Efl.Ui.Focus.IObject), + Efl.Ui.Focus.IObject Prev = default(Efl.Ui.Focus.IObject), + Efl.Ui.Focus.IObject Parent = default(Efl.Ui.Focus.IObject), + Efl.Ui.Focus.IManager Redirect = default(Efl.Ui.Focus.IManager), + Efl.Ui.Focus.IObject Node = default(Efl.Ui.Focus.IObject), + bool Logical = default(bool), + int Position_in_history = default(int) ) { this.Right = Right; this.Left = Left; @@ -1404,8 +1820,18 @@ public struct Relations } -} } } -namespace Efl { namespace Ui { namespace Focus { +} + +} + +} + +namespace Efl { + +namespace Ui { + +namespace Focus { + /// Structure holding the focus object with extra information on logical end /// (Since EFL 1.22) [StructLayout(LayoutKind.Sequential)] @@ -1417,8 +1843,8 @@ public struct ManagerLogicalEndDetail public Efl.Ui.Focus.IObject Element; ///Constructor for ManagerLogicalEndDetail. public ManagerLogicalEndDetail( - bool Is_regular_end=default(bool), - Efl.Ui.Focus.IObject Element=default(Efl.Ui.Focus.IObject) ) + bool Is_regular_end = default(bool), + Efl.Ui.Focus.IObject Element = default(Efl.Ui.Focus.IObject) ) { this.Is_regular_end = Is_regular_end; this.Element = Element; @@ -1461,4 +1887,9 @@ public struct ManagerLogicalEndDetail } -} } } +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_calc.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_calc.eo.cs index 27a5339..5197780 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_calc.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_calc.eo.cs @@ -3,294 +3,370 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { +namespace Efl { + +namespace Ui { + +namespace Focus { + /// Calculates the directions of Efl.Ui.Focus.Direction /// Each registered item will get an other registered object in each direction. You can get items for the currently focused item if you call request move. -[ManagerCalcNativeInherit] +[Efl.Ui.Focus.ManagerCalc.NativeMethods] public class ManagerCalc : Efl.Object, Efl.Eo.IWrapper,Efl.Ui.Focus.IManager { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ManagerCalc)) - return Efl.Ui.Focus.ManagerCalcNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ManagerCalc)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_focus_manager_calc_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ManagerCalc(Efl.Object parent= null - ) : - base(efl_ui_focus_manager_calc_class_get(), typeof(ManagerCalc), parent) + ) : base(efl_ui_focus_manager_calc_class_get(), typeof(ManagerCalc), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ManagerCalc(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ManagerCalc(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ManagerCalc(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object RedirectChangedEvtKey = new object(); + /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) public event EventHandler RedirectChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.AddHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.RemoveHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedirectChangedEvt. - public void On_RedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedirectChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedirectChangedEvt_delegate; - private void on_RedirectChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_RedirectChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FlushPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.AddHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (RemoveNativeEventHandler(key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.RemoveHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FlushPreEvt. - public void On_FlushPreEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FlushPreEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FlushPreEvt_delegate; - private void on_FlushPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFlushPreEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_FlushPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CoordsDirtyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.AddHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (RemoveNativeEventHandler(key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.RemoveHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CoordsDirtyEvt. - public void On_CoordsDirtyEvt(EventArgs e) + public void OnCoordsDirtyEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CoordsDirtyEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CoordsDirtyEvt_delegate; - private void on_CoordsDirtyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_CoordsDirtyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ManagerFocusChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) public event EventHandler ManagerFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ManagerFocusChangedEvt. - public void On_ManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ManagerFocusChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ManagerFocusChangedEvt_delegate; - private void on_ManagerFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_ManagerFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DirtyLogicFreezeChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) public event EventHandler DirtyLogicFreezeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.AddHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DirtyLogicFreezeChangedEvt. - public void On_DirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DirtyLogicFreezeChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DirtyLogicFreezeChangedEvt_delegate; - private void on_DirtyLogicFreezeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_DirtyLogicFreezeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_RedirectChangedEvt_delegate = new Efl.EventCb(on_RedirectChangedEvt_NativeCallback); - evt_FlushPreEvt_delegate = new Efl.EventCb(on_FlushPreEvt_NativeCallback); - evt_CoordsDirtyEvt_delegate = new Efl.EventCb(on_CoordsDirtyEvt_NativeCallback); - evt_ManagerFocusChangedEvt_delegate = new Efl.EventCb(on_ManagerFocusChangedEvt_NativeCallback); - evt_DirtyLogicFreezeChangedEvt_delegate = new Efl.EventCb(on_DirtyLogicFreezeChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Register a new item in the graph. /// parent can not be null, it will be used as the parent in the logical tree. redirect will be set as redirect property on that manager, once child gets focused. @@ -298,8 +374,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The parent to use in the logical tree /// The redirect manager to set once this child is focused can be NULL for no redirect /// true if successful, false otherwise - virtual public bool Register( Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) { - var _ret_var = Efl.Ui.Focus.ManagerCalcNativeInherit.efl_ui_focus_manager_calc_register_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, parent, redirect); + virtual public bool Register(Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) { + var _ret_var = Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_register_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, parent, redirect); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -309,8 +385,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The parent to use in the logical tree /// The redirect manager to set once this child is focused can be null for no redirect /// true if successful, false otherwise - virtual public bool RegisterLogical( Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) { - var _ret_var = Efl.Ui.Focus.ManagerCalcNativeInherit.efl_ui_focus_manager_calc_register_logical_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, parent, redirect); + virtual public bool RegisterLogical(Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) { + var _ret_var = Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_register_logical_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, parent, redirect); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -319,8 +395,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The child to update /// Once child is focused this element will be set as redirect /// true if successful, false otherwise - virtual public bool UpdateRedirect( Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IManager redirect) { - var _ret_var = Efl.Ui.Focus.ManagerCalcNativeInherit.efl_ui_focus_manager_calc_update_redirect_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, redirect); + virtual public bool UpdateRedirect(Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IManager redirect) { + var _ret_var = Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_update_redirect_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, redirect); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -328,8 +404,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The child to update /// The parent which now will be the logical parent of child /// true if successful, false otherwise - virtual public bool UpdateParent( Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent) { - var _ret_var = Efl.Ui.Focus.ManagerCalcNativeInherit.efl_ui_focus_manager_calc_update_parent_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, parent); + virtual public bool UpdateParent(Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent) { + var _ret_var = Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_update_parent_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, parent); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -337,10 +413,10 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// the parent to update /// the list with the new order /// true if successful, false otherwise - virtual public bool UpdateChildren( Efl.Ui.Focus.IObject parent, Eina.List children) { + virtual public bool UpdateChildren(Efl.Ui.Focus.IObject parent, Eina.List children) { var _in_children = children.Handle; children.Own = false; - var _ret_var = Efl.Ui.Focus.ManagerCalcNativeInherit.efl_ui_focus_manager_calc_update_children_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), parent, _in_children); + var _ret_var = Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_update_children_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),parent, _in_children); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -348,18 +424,16 @@ children.Own = false; /// Children from the list which are not true children are ignored. /// the parent to update /// the order of items - /// - virtual public void UpdateOrder( Efl.Ui.Focus.IObject parent, Eina.List children) { + virtual public void UpdateOrder(Efl.Ui.Focus.IObject parent, Eina.List children) { var _in_children = children.Handle; children.Own = false; - Efl.Ui.Focus.ManagerCalcNativeInherit.efl_ui_focus_manager_calc_update_order_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), parent, _in_children); + Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_update_order_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),parent, _in_children); Eina.Error.RaiseIfUnhandledException(); } /// Unregister the given item from the focus graph. /// The child to unregister. - /// - virtual public void Unregister( Efl.Ui.Focus.IObject child) { - Efl.Ui.Focus.ManagerCalcNativeInherit.efl_ui_focus_manager_calc_unregister_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child); + virtual public void Unregister(Efl.Ui.Focus.IObject child) { + Efl.Ui.Focus.ManagerCalc.NativeMethods.efl_ui_focus_manager_calc_unregister_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child); Eina.Error.RaiseIfUnhandledException(); } /// The element which is currently focused by this manager @@ -367,7 +441,7 @@ children.Own = false; /// (Since EFL 1.22) /// Currently focused element. virtual public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -375,9 +449,8 @@ children.Own = false; /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. - /// - virtual public void SetManagerFocus( Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), focus); + virtual public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. @@ -385,7 +458,7 @@ children.Own = false; /// (Since EFL 1.22) /// The redirect manager. virtual public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -393,9 +466,8 @@ children.Own = false; /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. - /// - virtual public void SetRedirect( Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), redirect); + virtual public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. @@ -403,7 +475,7 @@ children.Own = false; /// (Since EFL 1.22) /// An iterator over the border objects. virtual public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -412,9 +484,9 @@ children.Own = false; /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. - virtual public Eina.Iterator GetViewportElements( Eina.Rect viewport) { + virtual public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_viewport); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -423,7 +495,7 @@ children.Own = false; /// (Since EFL 1.22) /// Will be registered into this manager object. virtual public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -432,8 +504,8 @@ children.Own = false; /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node - virtual public bool SetRoot( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -442,8 +514,8 @@ children.Own = false; /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. - virtual public Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction); + virtual public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -453,8 +525,8 @@ children.Own = false; /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. - virtual public Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, child, logical); + virtual public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -463,8 +535,8 @@ children.Own = false; /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. - virtual public Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -473,8 +545,8 @@ children.Own = false; /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. - virtual public Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child); + virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); @@ -485,24 +557,22 @@ children.Own = false; /// (Since EFL 1.22) /// Last object. virtual public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) - /// virtual public void ResetHistory() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) - /// virtual public void PopHistoryStack() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. @@ -510,25 +580,22 @@ children.Own = false; /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. - /// - virtual public void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, entry); + virtual public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) - /// virtual public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) - /// virtual public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// The element which is currently focused by this manager @@ -537,7 +604,7 @@ children.Own = false; /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } - set { SetManagerFocus( value); } + set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. @@ -545,7 +612,7 @@ children.Own = false; /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } - set { SetRedirect( value); } + set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See @@ -560,748 +627,1187 @@ children.Own = false; /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } - set { SetRoot( value); } + set { SetRoot(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Focus.ManagerCalc.efl_ui_focus_manager_calc_class_get(); } -} -public class ManagerCalcNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_focus_manager_calc_register_static_delegate == null) - efl_ui_focus_manager_calc_register_static_delegate = new efl_ui_focus_manager_calc_register_delegate(register); - if (methods.FirstOrDefault(m => m.Name == "Register") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_calc_register"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_register_static_delegate)}); - if (efl_ui_focus_manager_calc_register_logical_static_delegate == null) - efl_ui_focus_manager_calc_register_logical_static_delegate = new efl_ui_focus_manager_calc_register_logical_delegate(register_logical); - if (methods.FirstOrDefault(m => m.Name == "RegisterLogical") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_calc_register_logical"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_register_logical_static_delegate)}); - if (efl_ui_focus_manager_calc_update_redirect_static_delegate == null) - efl_ui_focus_manager_calc_update_redirect_static_delegate = new efl_ui_focus_manager_calc_update_redirect_delegate(update_redirect); - if (methods.FirstOrDefault(m => m.Name == "UpdateRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_calc_update_redirect"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_redirect_static_delegate)}); - if (efl_ui_focus_manager_calc_update_parent_static_delegate == null) - efl_ui_focus_manager_calc_update_parent_static_delegate = new efl_ui_focus_manager_calc_update_parent_delegate(update_parent); - if (methods.FirstOrDefault(m => m.Name == "UpdateParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_calc_update_parent"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_parent_static_delegate)}); - if (efl_ui_focus_manager_calc_update_children_static_delegate == null) - efl_ui_focus_manager_calc_update_children_static_delegate = new efl_ui_focus_manager_calc_update_children_delegate(update_children); - if (methods.FirstOrDefault(m => m.Name == "UpdateChildren") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_calc_update_children"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_children_static_delegate)}); - if (efl_ui_focus_manager_calc_update_order_static_delegate == null) - efl_ui_focus_manager_calc_update_order_static_delegate = new efl_ui_focus_manager_calc_update_order_delegate(update_order); - if (methods.FirstOrDefault(m => m.Name == "UpdateOrder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_calc_update_order"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_order_static_delegate)}); - if (efl_ui_focus_manager_calc_unregister_static_delegate == null) - efl_ui_focus_manager_calc_unregister_static_delegate = new efl_ui_focus_manager_calc_unregister_delegate(unregister); - if (methods.FirstOrDefault(m => m.Name == "Unregister") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_calc_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_unregister_static_delegate)}); - if (efl_ui_focus_manager_focus_get_static_delegate == null) - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate)}); - if (efl_ui_focus_manager_focus_set_static_delegate == null) - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate)}); - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate)}); - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate)}); - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate)}); - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate)}); - if (efl_ui_focus_manager_root_get_static_delegate == null) - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate)}); - if (efl_ui_focus_manager_root_set_static_delegate == null) - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate)}); - if (efl_ui_focus_manager_move_static_delegate == null) - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate)}); - if (efl_ui_focus_manager_request_move_static_delegate == null) - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate)}); - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate)}); - if (efl_ui_focus_manager_fetch_static_delegate == null) - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate)}); - if (efl_ui_focus_manager_logical_end_static_delegate == null) - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate)}); - if (efl_ui_focus_manager_reset_history_static_delegate == null) - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate)}); - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate)}); - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Focus.ManagerCalc.efl_ui_focus_manager_calc_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Ui.Focus.ManagerCalc.efl_ui_focus_manager_calc_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_focus_manager_calc_register_static_delegate == null) + { + efl_ui_focus_manager_calc_register_static_delegate = new efl_ui_focus_manager_calc_register_delegate(register); + } + if (methods.FirstOrDefault(m => m.Name == "Register") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_register"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_register_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_calc_register_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + if (efl_ui_focus_manager_calc_register_logical_static_delegate == null) + { + efl_ui_focus_manager_calc_register_logical_static_delegate = new efl_ui_focus_manager_calc_register_logical_delegate(register_logical); + } + if (methods.FirstOrDefault(m => m.Name == "RegisterLogical") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_register_logical"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_register_logical_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_calc_register_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_register_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_calc_register"); - private static bool register(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_calc_register was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ManagerCalc)wrapper).Register( child, parent, redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_calc_update_redirect_static_delegate == null) + { + efl_ui_focus_manager_calc_update_redirect_static_delegate = new efl_ui_focus_manager_calc_update_redirect_delegate(update_redirect); } - return _ret_var; - } else { - return efl_ui_focus_manager_calc_register_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, parent, redirect); - } - } - private static efl_ui_focus_manager_calc_register_delegate efl_ui_focus_manager_calc_register_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UpdateRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_update_redirect"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_redirect_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_calc_register_logical_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + if (efl_ui_focus_manager_calc_update_parent_static_delegate == null) + { + efl_ui_focus_manager_calc_update_parent_static_delegate = new efl_ui_focus_manager_calc_update_parent_delegate(update_parent); + } + if (methods.FirstOrDefault(m => m.Name == "UpdateParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_update_parent"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_parent_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_calc_register_logical_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_register_logical_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_calc_register_logical"); - private static bool register_logical(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_calc_register_logical was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ManagerCalc)wrapper).RegisterLogical( child, parent, redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_calc_update_children_static_delegate == null) + { + efl_ui_focus_manager_calc_update_children_static_delegate = new efl_ui_focus_manager_calc_update_children_delegate(update_children); } - return _ret_var; - } else { - return efl_ui_focus_manager_calc_register_logical_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, parent, redirect); - } - } - private static efl_ui_focus_manager_calc_register_logical_delegate efl_ui_focus_manager_calc_register_logical_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UpdateChildren") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_update_children"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_children_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_calc_update_redirect_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + if (efl_ui_focus_manager_calc_update_order_static_delegate == null) + { + efl_ui_focus_manager_calc_update_order_static_delegate = new efl_ui_focus_manager_calc_update_order_delegate(update_order); + } + if (methods.FirstOrDefault(m => m.Name == "UpdateOrder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_update_order"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_update_order_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_calc_update_redirect_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_redirect_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_calc_update_redirect"); - private static bool update_redirect(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_calc_update_redirect was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ManagerCalc)wrapper).UpdateRedirect( child, redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_calc_unregister_static_delegate == null) + { + efl_ui_focus_manager_calc_unregister_static_delegate = new efl_ui_focus_manager_calc_unregister_delegate(unregister); } - return _ret_var; - } else { - return efl_ui_focus_manager_calc_update_redirect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, redirect); - } - } - private static efl_ui_focus_manager_calc_update_redirect_delegate efl_ui_focus_manager_calc_update_redirect_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Unregister") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_calc_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_calc_unregister_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_calc_update_parent_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent); + if (efl_ui_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_calc_update_parent_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_parent_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_calc_update_parent"); - private static bool update_parent(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent) - { - Eina.Log.Debug("function efl_ui_focus_manager_calc_update_parent was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ManagerCalc)wrapper).UpdateParent( child, parent); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); } - return _ret_var; - } else { - return efl_ui_focus_manager_calc_update_parent_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, parent); - } - } - private static efl_ui_focus_manager_calc_update_parent_delegate efl_ui_focus_manager_calc_update_parent_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_calc_update_children_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent, System.IntPtr children); + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_calc_update_children_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent, System.IntPtr children); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_children_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_calc_update_children"); - private static bool update_children(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject parent, System.IntPtr children) - { - Eina.Log.Debug("function efl_ui_focus_manager_calc_update_children was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_children = new Eina.List(children, true, false); - bool _ret_var = default(bool); - try { - _ret_var = ((ManagerCalc)wrapper).UpdateChildren( parent, _in_children); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); } - return _ret_var; - } else { - return efl_ui_focus_manager_calc_update_children_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent, children); - } - } - private static efl_ui_focus_manager_calc_update_children_delegate efl_ui_focus_manager_calc_update_children_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); + } - private delegate void efl_ui_focus_manager_calc_update_order_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent, System.IntPtr children); + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + } - public delegate void efl_ui_focus_manager_calc_update_order_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject parent, System.IntPtr children); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_order_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_calc_update_order"); - private static void update_order(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject parent, System.IntPtr children) - { - Eina.Log.Debug("function efl_ui_focus_manager_calc_update_order was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_children = new Eina.List(children, true, false); - - try { - ((ManagerCalc)wrapper).UpdateOrder( parent, _in_children); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_calc_update_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent, children); - } - } - private static efl_ui_focus_manager_calc_update_order_delegate efl_ui_focus_manager_calc_update_order_static_delegate; + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); + } - private delegate void efl_ui_focus_manager_calc_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + } - public delegate void efl_ui_focus_manager_calc_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_unregister_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_calc_unregister"); - private static void unregister(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_calc_unregister was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ManagerCalc)wrapper).Unregister( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_calc_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); - } - } - private static efl_ui_focus_manager_calc_unregister_delegate efl_ui_focus_manager_calc_unregister_static_delegate; + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_get"); - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ManagerCalc)wrapper).GetManagerFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } + + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + } - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + } + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); + } - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_set"); - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ManagerCalc)wrapper).SetManagerFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_get"); - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((ManagerCalc)wrapper).GetRedirect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + } - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + } - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_set"); - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ManagerCalc)wrapper).SetRedirect( redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + } + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + } - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + } + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_border_elements_get"); - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((ManagerCalc)wrapper).GetBorderElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Focus.ManagerCalc.efl_ui_focus_manager_calc_class_get(); } - } - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_calc_register_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_calc_register_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_register_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_register"); + + private static bool register(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_calc_register was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ManagerCalc)wrapper).Register(child, parent, redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + return _ret_var; + + } + else + { + return efl_ui_focus_manager_calc_register_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, parent, redirect); + } + } + private static efl_ui_focus_manager_calc_register_delegate efl_ui_focus_manager_calc_register_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_calc_register_logical_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_calc_register_logical_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_register_logical_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_register_logical"); + + private static bool register_logical(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_calc_register_logical was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ManagerCalc)wrapper).RegisterLogical(child, parent, redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_viewport_elements_get"); - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((ManagerCalc)wrapper).GetViewportElements( _in_viewport); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + else + { + return efl_ui_focus_manager_calc_register_logical_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, parent, redirect); + } } - } - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + private static efl_ui_focus_manager_calc_register_logical_delegate efl_ui_focus_manager_calc_register_logical_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_calc_update_redirect_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_calc_update_redirect_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_redirect_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_update_redirect"); + + private static bool update_redirect(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_calc_update_redirect was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ManagerCalc)wrapper).UpdateRedirect(child, redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_focus_manager_calc_update_redirect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, redirect); + } + } + + private static efl_ui_focus_manager_calc_update_redirect_delegate efl_ui_focus_manager_calc_update_redirect_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_calc_update_parent_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_calc_update_parent_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_parent_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_update_parent"); + + private static bool update_parent(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child, Efl.Ui.Focus.IObject parent) + { + Eina.Log.Debug("function efl_ui_focus_manager_calc_update_parent was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ManagerCalc)wrapper).UpdateParent(child, parent); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_get"); - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ManagerCalc)wrapper).GetRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_calc_update_parent_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, parent); + } } - } - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + private static efl_ui_focus_manager_calc_update_parent_delegate efl_ui_focus_manager_calc_update_parent_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_calc_update_children_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, System.IntPtr children); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_calc_update_children_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, System.IntPtr children); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_children_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_update_children"); + + private static bool update_children(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject parent, System.IntPtr children) + { + Eina.Log.Debug("function efl_ui_focus_manager_calc_update_children was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_children = new Eina.List(children, true, false); + bool _ret_var = default(bool); + try + { + _ret_var = ((ManagerCalc)wrapper).UpdateChildren(parent, _in_children); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_set"); - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ManagerCalc)wrapper).SetRoot( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + else + { + return efl_ui_focus_manager_calc_update_children_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent, children); + } } - } - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + private static efl_ui_focus_manager_calc_update_children_delegate efl_ui_focus_manager_calc_update_children_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + + private delegate void efl_ui_focus_manager_calc_update_order_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, System.IntPtr children); + + public delegate void efl_ui_focus_manager_calc_update_order_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject parent, System.IntPtr children); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_move"); - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ManagerCalc)wrapper).Move( direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_update_order_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_update_order"); + + private static void update_order(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject parent, System.IntPtr children) + { + Eina.Log.Debug("function efl_ui_focus_manager_calc_update_order was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_children = new Eina.List(children, true, false); + + try + { + ((ManagerCalc)wrapper).UpdateOrder(parent, _in_children); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_calc_update_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent, children); } - return _ret_var; - } else { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); } - } - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + private static efl_ui_focus_manager_calc_update_order_delegate efl_ui_focus_manager_calc_update_order_static_delegate; + + + private delegate void efl_ui_focus_manager_calc_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + + public delegate void efl_ui_focus_manager_calc_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_calc_unregister_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_calc_unregister"); + + private static void unregister(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_calc_unregister was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ManagerCalc)wrapper).Unregister(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + } + else + { + efl_ui_focus_manager_calc_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } + } + private static efl_ui_focus_manager_calc_unregister_delegate efl_ui_focus_manager_calc_unregister_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); + + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ManagerCalc)wrapper).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_move"); - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ManagerCalc)wrapper).MoveRequest( direction, child, logical); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ManagerCalc)wrapper).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); + + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((ManagerCalc)wrapper).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_subchild"); - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ManagerCalc)wrapper).RequestSubchild( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); + + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ManagerCalc)wrapper).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); + } + } - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); + + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((ManagerCalc)wrapper).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_fetch"); - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try { - _ret_var = ((ManagerCalc)wrapper).Fetch( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); + + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((ManagerCalc)wrapper).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_logical_end"); - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try { - _ret_var = ((ManagerCalc)wrapper).LogicalEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } } - } - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); + + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ManagerCalc)wrapper).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + + } + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); + + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ManagerCalc)wrapper).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_reset_history"); - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ManagerCalc)wrapper).ResetHistory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return _ret_var; + + } + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); + + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ManagerCalc)wrapper).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } + } - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_pop_history_stack"); - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ManagerCalc)wrapper).PopHistoryStack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); + + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ManagerCalc)wrapper).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } } - } - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); + + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ManagerCalc)wrapper).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); + + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((ManagerCalc)wrapper).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ManagerCalc)wrapper).SetupOnFirstTouch( direction, entry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + } + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } } - } - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); + + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((ManagerCalc)wrapper).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ManagerCalc)wrapper).FreezeDirtyLogic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ManagerCalc)wrapper).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); + + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ManagerCalc)wrapper).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); + + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ManagerCalc)wrapper).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + } + } + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); + + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ManagerCalc)wrapper).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ManagerCalc)wrapper).DirtyLogicUnfreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ManagerCalc)wrapper).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; + + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_root_focus.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_root_focus.eo.cs index c3506fd..8fb2ab5 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_root_focus.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_root_focus.eo.cs @@ -3,159 +3,232 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { +namespace Efl { + +namespace Ui { + +namespace Focus { + /// This class ensures that the root is at least focusable, if nothing else is focusable -[ManagerRootFocusNativeInherit] +[Efl.Ui.Focus.ManagerRootFocus.NativeMethods] public class ManagerRootFocus : Efl.Ui.Focus.ManagerCalc, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ManagerRootFocus)) - return Efl.Ui.Focus.ManagerRootFocusNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ManagerRootFocus)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_focus_manager_root_focus_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ManagerRootFocus(Efl.Object parent= null - ) : - base(efl_ui_focus_manager_root_focus_class_get(), typeof(ManagerRootFocus), parent) + ) : base(efl_ui_focus_manager_root_focus_class_get(), typeof(ManagerRootFocus), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ManagerRootFocus(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ManagerRootFocus(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ManagerRootFocus(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// The default replacement object for the case that there is no focusable object inside the manager is the root object. However, you can change this by setting this value to something else. null is triggered as the same value as Efl.Ui.Focus.Manager.root.get /// Canvas object virtual public Efl.Canvas.Object GetCanvasObject() { - var _ret_var = Efl.Ui.Focus.ManagerRootFocusNativeInherit.efl_ui_focus_manager_root_focus_canvas_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.ManagerRootFocus.NativeMethods.efl_ui_focus_manager_root_focus_canvas_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The default replacement object for the case that there is no focusable object inside the manager is the root object. However, you can change this by setting this value to something else. null is triggered as the same value as Efl.Ui.Focus.Manager.root.get /// Canvas object - /// - virtual public void SetCanvasObject( Efl.Canvas.Object canvas_object) { - Efl.Ui.Focus.ManagerRootFocusNativeInherit.efl_ui_focus_manager_root_focus_canvas_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), canvas_object); + virtual public void SetCanvasObject(Efl.Canvas.Object canvas_object) { + Efl.Ui.Focus.ManagerRootFocus.NativeMethods.efl_ui_focus_manager_root_focus_canvas_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),canvas_object); Eina.Error.RaiseIfUnhandledException(); } /// The default replacement object for the case that there is no focusable object inside the manager is the root object. However, you can change this by setting this value to something else. null is triggered as the same value as Efl.Ui.Focus.Manager.root.get /// Canvas object public Efl.Canvas.Object CanvasObject { get { return GetCanvasObject(); } - set { SetCanvasObject( value); } + set { SetCanvasObject(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Focus.ManagerRootFocus.efl_ui_focus_manager_root_focus_class_get(); } -} -public class ManagerRootFocusNativeInherit : Efl.Ui.Focus.ManagerCalcNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_focus_manager_root_focus_canvas_object_get_static_delegate == null) - efl_ui_focus_manager_root_focus_canvas_object_get_static_delegate = new efl_ui_focus_manager_root_focus_canvas_object_get_delegate(canvas_object_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanvasObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_focus_canvas_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_focus_canvas_object_get_static_delegate)}); - if (efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate == null) - efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate = new efl_ui_focus_manager_root_focus_canvas_object_set_delegate(canvas_object_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanvasObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_focus_canvas_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Focus.ManagerCalc.NativeMethods { - return Efl.Ui.Focus.ManagerRootFocus.efl_ui_focus_manager_root_focus_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Focus.ManagerRootFocus.efl_ui_focus_manager_root_focus_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_focus_manager_root_focus_canvas_object_get_static_delegate == null) + { + efl_ui_focus_manager_root_focus_canvas_object_get_static_delegate = new efl_ui_focus_manager_root_focus_canvas_object_get_delegate(canvas_object_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_focus_manager_root_focus_canvas_object_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCanvasObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_focus_canvas_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_focus_canvas_object_get_static_delegate) }); + } + if (efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate == null) + { + efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate = new efl_ui_focus_manager_root_focus_canvas_object_set_delegate(canvas_object_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_focus_manager_root_focus_canvas_object_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_focus_canvas_object_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_focus_canvas_object_get"); - private static Efl.Canvas.Object canvas_object_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_focus_canvas_object_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((ManagerRootFocus)wrapper).GetCanvasObject(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCanvasObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_focus_canvas_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Focus.ManagerRootFocus.efl_ui_focus_manager_root_focus_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_focus_manager_root_focus_canvas_object_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_focus_manager_root_focus_canvas_object_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_focus_canvas_object_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_focus_canvas_object_get"); + + private static Efl.Canvas.Object canvas_object_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_focus_canvas_object_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((ManagerRootFocus)wrapper).GetCanvasObject(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_manager_root_focus_canvas_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_manager_root_focus_canvas_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_root_focus_canvas_object_get_delegate efl_ui_focus_manager_root_focus_canvas_object_get_static_delegate; + private static efl_ui_focus_manager_root_focus_canvas_object_get_delegate efl_ui_focus_manager_root_focus_canvas_object_get_static_delegate; - private delegate void efl_ui_focus_manager_root_focus_canvas_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object canvas_object); + + private delegate void efl_ui_focus_manager_root_focus_canvas_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object canvas_object); + + public delegate void efl_ui_focus_manager_root_focus_canvas_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object canvas_object); - public delegate void efl_ui_focus_manager_root_focus_canvas_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object canvas_object); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_focus_canvas_object_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_focus_canvas_object_set"); - private static void canvas_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object canvas_object) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_focus_canvas_object_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ManagerRootFocus)wrapper).SetCanvasObject( canvas_object); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_focus_canvas_object_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_focus_canvas_object_set"); + + private static void canvas_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object canvas_object) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_focus_canvas_object_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ManagerRootFocus)wrapper).SetCanvasObject(canvas_object); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_root_focus_canvas_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), canvas_object); } - } else { - efl_ui_focus_manager_root_focus_canvas_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), canvas_object); } - } - private static efl_ui_focus_manager_root_focus_canvas_object_set_delegate efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate; + + private static efl_ui_focus_manager_root_focus_canvas_object_set_delegate efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } } +} +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_sub.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_sub.eo.cs index b67a7a4..d3df1b6 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_sub.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_sub.eo.cs @@ -3,15 +3,21 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { +namespace Efl { + +namespace Ui { + +namespace Focus { + /// A class that automatically registers its border elements in the parent manager /// This sub manager will register its border elements on the parent manager. The parent manager is found with the interface of the . /// /// Each sub manager also has to be a focus object, the object itself will be registered into the parent manager. It will be used as logical parent while registering the border elements. /// /// You can filter the border elements by overriding the property . -[IManagerSubNativeInherit] +[Efl.Ui.Focus.IManagerSubConcrete.NativeMethods] public interface IManagerSub : Efl.Ui.Focus.IManager , Efl.Eo.IWrapper, IDisposable @@ -29,362 +35,461 @@ IManagerSub , Efl.Ui.Focus.IManager { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IManagerSubConcrete)) - return Efl.Ui.Focus.IManagerSubNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IManagerSubConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_focus_manager_sub_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IManagerSubConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IManagerSubConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object RedirectChangedEvtKey = new object(); + /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) public event EventHandler RedirectChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.AddHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.RemoveHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedirectChangedEvt. - public void On_RedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedirectChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedirectChangedEvt_delegate; - private void on_RedirectChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_RedirectChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FlushPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.AddHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (RemoveNativeEventHandler(key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.RemoveHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FlushPreEvt. - public void On_FlushPreEvt(EventArgs e) + public void OnFlushPreEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FlushPreEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FlushPreEvt_delegate; - private void on_FlushPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_FlushPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object CoordsDirtyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.AddHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (RemoveNativeEventHandler(key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.RemoveHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CoordsDirtyEvt. - public void On_CoordsDirtyEvt(EventArgs e) + public void OnCoordsDirtyEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CoordsDirtyEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CoordsDirtyEvt_delegate; - private void on_CoordsDirtyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_CoordsDirtyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ManagerFocusChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) public event EventHandler ManagerFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ManagerFocusChangedEvt. - public void On_ManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ManagerFocusChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ManagerFocusChangedEvt_delegate; - private void on_ManagerFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_ManagerFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DirtyLogicFreezeChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) public event EventHandler DirtyLogicFreezeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.AddHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DirtyLogicFreezeChangedEvt. - public void On_DirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DirtyLogicFreezeChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DirtyLogicFreezeChangedEvt_delegate; - private void on_DirtyLogicFreezeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_DirtyLogicFreezeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_RedirectChangedEvt_delegate = new Efl.EventCb(on_RedirectChangedEvt_NativeCallback); - evt_FlushPreEvt_delegate = new Efl.EventCb(on_FlushPreEvt_NativeCallback); - evt_CoordsDirtyEvt_delegate = new Efl.EventCb(on_CoordsDirtyEvt_NativeCallback); - evt_ManagerFocusChangedEvt_delegate = new Efl.EventCb(on_ManagerFocusChangedEvt_NativeCallback); - evt_DirtyLogicFreezeChangedEvt_delegate = new Efl.EventCb(on_DirtyLogicFreezeChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -392,9 +497,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. - /// - public void SetManagerFocus( Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle, focus); + public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle,focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. @@ -402,7 +506,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The redirect manager. public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -410,9 +514,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. - /// - public void SetRedirect( Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle, redirect); + public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle,redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. @@ -420,7 +523,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the border objects. public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -429,9 +532,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. - public Eina.Iterator GetViewportElements( Eina.Rect viewport) { + public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle, _in_viewport); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle,_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -440,7 +543,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -449,8 +552,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node - public bool SetRoot( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle, root); + public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -459,8 +562,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. - public Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle, direction); + public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle,direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -470,8 +573,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. - public Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle, direction, child, logical); + public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle,direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -480,8 +583,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. - public Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle, root); + public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -490,8 +593,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. - public Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle, child); + public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle,child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); @@ -502,24 +605,22 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Last object. public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) - /// public void ResetHistory() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) - /// public void PopHistoryStack() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. @@ -527,25 +628,22 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. - /// - public void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle, direction, entry); + public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle,direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) - /// public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) - /// public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// The element which is currently focused by this manager @@ -554,7 +652,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } - set { SetManagerFocus( value); } + set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. @@ -562,7 +660,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } - set { SetRedirect( value); } + set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See @@ -577,544 +675,864 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } - set { SetRoot( value); } + set { SetRoot(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Focus.IManagerSubConcrete.efl_ui_focus_manager_sub_mixin_get(); } -} -public class IManagerSubNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_focus_manager_focus_get_static_delegate == null) - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate)}); - if (efl_ui_focus_manager_focus_set_static_delegate == null) - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate)}); - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate)}); - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate)}); - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate)}); - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate)}); - if (efl_ui_focus_manager_root_get_static_delegate == null) - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate)}); - if (efl_ui_focus_manager_root_set_static_delegate == null) - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate)}); - if (efl_ui_focus_manager_move_static_delegate == null) - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate)}); - if (efl_ui_focus_manager_request_move_static_delegate == null) - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate)}); - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate)}); - if (efl_ui_focus_manager_fetch_static_delegate == null) - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate)}); - if (efl_ui_focus_manager_logical_end_static_delegate == null) - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate)}); - if (efl_ui_focus_manager_reset_history_static_delegate == null) - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate)}); - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate)}); - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Focus.IManagerSubConcrete.efl_ui_focus_manager_sub_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.Focus.IManagerSubConcrete.efl_ui_focus_manager_sub_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_get"); - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IManagerSubConcrete)wrapper).GetManagerFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); } - return _ret_var; - } else { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + } - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); + } - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_set"); - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManagerSubConcrete)wrapper).SetManagerFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_get"); - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((IManagerSubConcrete)wrapper).GetRedirect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); } - return _ret_var; - } else { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + } - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + } - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_set"); - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManagerSubConcrete)wrapper).SetRedirect( redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + } - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + } - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_border_elements_get"); - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IManagerSubConcrete)wrapper).GetBorderElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + } - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); + } + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_viewport_elements_get"); - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IManagerSubConcrete)wrapper).GetViewportElements( _in_viewport); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); - } - } - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_get"); - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IManagerSubConcrete)wrapper).GetRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + } + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_set"); - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IManagerSubConcrete)wrapper).SetRoot( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_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.Focus.IManagerSubConcrete.efl_ui_focus_manager_sub_mixin_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); + + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IManagerSubConcrete)wrapper).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_move"); - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IManagerSubConcrete)wrapper).Move( direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManagerSubConcrete)wrapper).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + } + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + } + } + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); + + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((IManagerSubConcrete)wrapper).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_move"); - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IManagerSubConcrete)wrapper).MoveRequest( direction, child, logical); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); + + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManagerSubConcrete)wrapper).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + + } + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); + } + } + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); + + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IManagerSubConcrete)wrapper).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_subchild"); - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IManagerSubConcrete)wrapper).RequestSubchild( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); + + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IManagerSubConcrete)wrapper).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_fetch"); - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try { - _ret_var = ((IManagerSubConcrete)wrapper).Fetch( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } } - } - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); + + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IManagerSubConcrete)wrapper).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); + + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IManagerSubConcrete)wrapper).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_logical_end"); - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try { - _ret_var = ((IManagerSubConcrete)wrapper).LogicalEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); + + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IManagerSubConcrete)wrapper).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } + } - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_reset_history"); - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManagerSubConcrete)wrapper).ResetHistory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); + + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IManagerSubConcrete)wrapper).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } } - } - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); + + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IManagerSubConcrete)wrapper).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); + + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((IManagerSubConcrete)wrapper).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_pop_history_stack"); - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManagerSubConcrete)wrapper).PopHistoryStack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); + + } + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } } - } - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); + + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((IManagerSubConcrete)wrapper).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); + return _ret_var; + } + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManagerSubConcrete)wrapper).SetupOnFirstTouch( direction, entry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManagerSubConcrete)wrapper).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); + + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManagerSubConcrete)wrapper).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); + + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManagerSubConcrete)wrapper).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + } + } + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); + + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManagerSubConcrete)wrapper).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManagerSubConcrete)wrapper).FreezeDirtyLogic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IManagerSubConcrete)wrapper).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} + +} - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IManagerSubConcrete)wrapper).DirtyLogicUnfreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; } -} } } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_window_root.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_window_root.eo.cs index 6835bcc..b553ebc 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_window_root.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_window_root.eo.cs @@ -3,12 +3,18 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { +namespace Efl { + +namespace Ui { + +namespace Focus { + /// A interface to indicate the end of a focus chain. /// Focusmanagers are ensuring that if they give focus to something, that they are registered in the upper focus manager. The most upper focus manager does not need to do that, and can implement this interface to indicate that. /// (Since EFL 1.22) -[IManagerWindowRootNativeInherit] +[Efl.Ui.Focus.IManagerWindowRootConcrete.NativeMethods] public interface IManagerWindowRoot : Efl.Eo.IWrapper, IDisposable { @@ -22,88 +28,134 @@ IManagerWindowRoot { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IManagerWindowRootConcrete)) - return Efl.Ui.Focus.IManagerWindowRootNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IManagerWindowRootConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_focus_manager_window_root_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IManagerWindowRootConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IManagerWindowRootConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.Focus.IManagerWindowRootConcrete.efl_ui_focus_manager_window_root_interface_get(); } -} -public class IManagerWindowRootNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Focus.IManagerWindowRootConcrete.efl_ui_focus_manager_window_root_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.Focus.IManagerWindowRootConcrete.efl_ui_focus_manager_window_root_interface_get(); - } + /// 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(); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Focus.IManagerWindowRootConcrete.efl_ui_focus_manager_window_root_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_object.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_object.eo.cs index 904b35d..d8790ff 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_object.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_object.eo.cs @@ -3,11 +3,17 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { +namespace Efl { + +namespace Ui { + +namespace Focus { + /// Functions of focusable objects. /// (Since EFL 1.22) -[IObjectNativeInherit] +[Efl.Ui.Focus.IObjectConcrete.NativeMethods] public interface IObject : Efl.Eo.IWrapper, IDisposable { @@ -23,8 +29,7 @@ bool GetFocus(); /// The function emits the focus state events, if focus is different to the previous state. /// (Since EFL 1.22) /// The focused state of the object. -/// -void SetFocus( bool focus); +void SetFocus(bool focus); /// This is the focus manager where this focus object is registered in. The element which is the root of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in. /// (Since EFL 1.22) /// The manager object @@ -40,15 +45,12 @@ bool GetChildFocus(); /// Indicates if a child of this object has focus set to true. /// (Since EFL 1.22) /// true if a child has focus. -/// -void SetChildFocus( bool child_focus); +void SetChildFocus(bool child_focus); /// Tells the object that its children will be queried soon by the focus manager. Overwrite this to update the order of the children. Deleting items in this call will result in undefined behaviour and may cause your system to crash. /// (Since EFL 1.22) -/// void SetupOrder(); /// This is called when is called, but only on the first call, additional recursive calls to will not call this function again. /// (Since EFL 1.22) -/// void SetupOrderNonRecursive(); /// Virtual function handling focus in/out events on the widget /// (Since EFL 1.22) @@ -135,363 +137,479 @@ IObject { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IObjectConcrete)) - return Efl.Ui.Focus.IObjectNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IObjectConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_focus_object_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IObjectConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IObjectConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object FocusChangedEvtKey = new object(); + /// Emitted if the focus state has changed. /// (Since EFL 1.22) public event EventHandler FocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusChangedEvt. - public void On_FocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e) + public void OnFocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusChangedEvtKey]; + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusChangedEvt_delegate; - private void on_FocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_FocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object FocusManagerChangedEvtKey = new object(); /// Emitted when a new manager is the parent for this object. /// (Since EFL 1.22) public event EventHandler FocusManagerChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusManagerChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusManagerChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusManagerChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusManagerChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusManagerChangedEvt. - public void On_FocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e) + public void OnFocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusManagerChangedEvtKey]; + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusManagerChangedEvt_delegate; - private void on_FocusManagerChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_FocusManagerChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object FocusParentChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Emitted when a new logical parent should be used. /// (Since EFL 1.22) public event EventHandler FocusParentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusParentChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusParentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusParentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusParentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusParentChangedEvt. - public void On_FocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusParentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusParentChangedEvt_delegate; - private void on_FocusParentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e) { - Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_FocusParentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ChildFocusChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Emitted if child_focus has changed. /// (Since EFL 1.22) public event EventHandler ChildFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChildFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ChildFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChildFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChildFocusChangedEvt. - public void On_ChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e) + public void OnChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildFocusChangedEvtKey]; + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildFocusChangedEvt_delegate; - private void on_ChildFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_ChildFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object FocusGeometryChangedEvtKey = new object(); /// Emitted if focus geometry of this object has changed. /// (Since EFL 1.22) public event EventHandler FocusGeometryChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusGeometryChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusGeometryChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusGeometryChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusGeometryChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusGeometryChangedEvt. - public void On_FocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusGeometryChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusGeometryChangedEvt_delegate; - private void on_FocusGeometryChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e) { - Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_FocusGeometryChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_FocusChangedEvt_delegate = new Efl.EventCb(on_FocusChangedEvt_NativeCallback); - evt_FocusManagerChangedEvt_delegate = new Efl.EventCb(on_FocusManagerChangedEvt_NativeCallback); - evt_FocusParentChangedEvt_delegate = new Efl.EventCb(on_FocusParentChangedEvt_NativeCallback); - evt_ChildFocusChangedEvt_delegate = new Efl.EventCb(on_ChildFocusChangedEvt_NativeCallback); - evt_FocusGeometryChangedEvt_delegate = new Efl.EventCb(on_FocusGeometryChangedEvt_NativeCallback); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects. /// (Since EFL 1.22) /// The geometry to use. public Eina.Rect GetFocusGeometry() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -499,7 +617,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The focused state of the object. public bool GetFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -507,16 +625,15 @@ private static object FocusGeometryChangedEvtKey = new object(); /// The function emits the focus state events, if focus is different to the previous state. /// (Since EFL 1.22) /// The focused state of the object. - /// - public void SetFocus( bool focus) { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_set_ptr.Value.Delegate(this.NativeHandle, focus); + public void SetFocus(bool focus) { + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_set_ptr.Value.Delegate(this.NativeHandle,focus); Eina.Error.RaiseIfUnhandledException(); } /// This is the focus manager where this focus object is registered in. The element which is the root of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in. /// (Since EFL 1.22) /// The manager object public Efl.Ui.Focus.IManager GetFocusManager() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -524,7 +641,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The focus parent. public Efl.Ui.Focus.IObject GetFocusParent() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -532,37 +649,34 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if a child has focus. public bool GetChildFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Indicates if a child of this object has focus set to true. /// (Since EFL 1.22) /// true if a child has focus. - /// - public void SetChildFocus( bool child_focus) { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_child_focus_set_ptr.Value.Delegate(this.NativeHandle, child_focus); + public void SetChildFocus(bool child_focus) { + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_child_focus_set_ptr.Value.Delegate(this.NativeHandle,child_focus); Eina.Error.RaiseIfUnhandledException(); } /// Tells the object that its children will be queried soon by the focus manager. Overwrite this to update the order of the children. Deleting items in this call will result in undefined behaviour and may cause your system to crash. /// (Since EFL 1.22) - /// public void SetupOrder() { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_setup_order_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_setup_order_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// This is called when is called, but only on the first call, additional recursive calls to will not call this function again. /// (Since EFL 1.22) - /// public void SetupOrderNonRecursive() { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Virtual function handling focus in/out events on the widget /// (Since EFL 1.22) /// true if this widget can handle focus, false otherwise public bool UpdateOnFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -577,7 +691,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// The focused state of the object. public bool Focus { get { return GetFocus(); } - set { SetFocus( value); } + set { SetFocus(value); } } /// This is the focus manager where this focus object is registered in. The element which is the root of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in. /// (Since EFL 1.22) @@ -596,314 +710,498 @@ private static object FocusGeometryChangedEvtKey = new object(); /// true if a child has focus. public bool ChildFocus { get { return GetChildFocus(); } - set { SetChildFocus( value); } + set { SetChildFocus(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Focus.IObjectConcrete.efl_ui_focus_object_mixin_get(); } -} -public class IObjectNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_focus_object_focus_geometry_get_static_delegate == null) - efl_ui_focus_object_focus_geometry_get_static_delegate = new efl_ui_focus_object_focus_geometry_get_delegate(focus_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_geometry_get_static_delegate)}); - if (efl_ui_focus_object_focus_get_static_delegate == null) - efl_ui_focus_object_focus_get_static_delegate = new efl_ui_focus_object_focus_get_delegate(focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_get_static_delegate)}); - if (efl_ui_focus_object_focus_set_static_delegate == null) - efl_ui_focus_object_focus_set_static_delegate = new efl_ui_focus_object_focus_set_delegate(focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_set_static_delegate)}); - if (efl_ui_focus_object_focus_manager_get_static_delegate == null) - efl_ui_focus_object_focus_manager_get_static_delegate = new efl_ui_focus_object_focus_manager_get_delegate(focus_manager_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusManager") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_manager_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_manager_get_static_delegate)}); - if (efl_ui_focus_object_focus_parent_get_static_delegate == null) - efl_ui_focus_object_focus_parent_get_static_delegate = new efl_ui_focus_object_focus_parent_get_delegate(focus_parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_parent_get_static_delegate)}); - if (efl_ui_focus_object_child_focus_get_static_delegate == null) - efl_ui_focus_object_child_focus_get_static_delegate = new efl_ui_focus_object_child_focus_get_delegate(child_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetChildFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_child_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_get_static_delegate)}); - if (efl_ui_focus_object_child_focus_set_static_delegate == null) - efl_ui_focus_object_child_focus_set_static_delegate = new efl_ui_focus_object_child_focus_set_delegate(child_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetChildFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_child_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_set_static_delegate)}); - if (efl_ui_focus_object_setup_order_static_delegate == null) - efl_ui_focus_object_setup_order_static_delegate = new efl_ui_focus_object_setup_order_delegate(setup_order); - if (methods.FirstOrDefault(m => m.Name == "SetupOrder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_setup_order"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_static_delegate)}); - if (efl_ui_focus_object_setup_order_non_recursive_static_delegate == null) - efl_ui_focus_object_setup_order_non_recursive_static_delegate = new efl_ui_focus_object_setup_order_non_recursive_delegate(setup_order_non_recursive); - if (methods.FirstOrDefault(m => m.Name == "SetupOrderNonRecursive") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_setup_order_non_recursive"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_non_recursive_static_delegate)}); - if (efl_ui_focus_object_on_focus_update_static_delegate == null) - efl_ui_focus_object_on_focus_update_static_delegate = new efl_ui_focus_object_on_focus_update_delegate(on_focus_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateOnFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_on_focus_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_on_focus_update_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Focus.IObjectConcrete.efl_ui_focus_object_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.Focus.IObjectConcrete.efl_ui_focus_object_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_focus_object_focus_geometry_get_static_delegate == null) + { + efl_ui_focus_object_focus_geometry_get_static_delegate = new efl_ui_focus_object_focus_geometry_get_delegate(focus_geometry_get); + } - private delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFocusGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_geometry_get_static_delegate) }); + } + if (efl_ui_focus_object_focus_get_static_delegate == null) + { + efl_ui_focus_object_focus_get_static_delegate = new efl_ui_focus_object_focus_get_delegate(focus_get); + } - public delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_geometry_get"); - private static Eina.Rect.NativeStruct focus_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((IObjectConcrete)wrapper).GetFocusGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_focus_geometry_get_delegate efl_ui_focus_object_focus_geometry_get_static_delegate; + if (efl_ui_focus_object_focus_set_static_delegate == null) + { + efl_ui_focus_object_focus_set_static_delegate = new efl_ui_focus_object_focus_set_delegate(focus_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_set_static_delegate) }); + } + if (efl_ui_focus_object_focus_manager_get_static_delegate == null) + { + efl_ui_focus_object_focus_manager_get_static_delegate = new efl_ui_focus_object_focus_manager_get_delegate(focus_manager_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_get"); - private static bool focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IObjectConcrete)wrapper).GetFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFocusManager") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_manager_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_manager_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_object_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_focus_get_delegate efl_ui_focus_object_focus_get_static_delegate; + if (efl_ui_focus_object_focus_parent_get_static_delegate == null) + { + efl_ui_focus_object_focus_parent_get_static_delegate = new efl_ui_focus_object_focus_parent_get_delegate(focus_parent_get); + } - private delegate void efl_ui_focus_object_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus); + if (methods.FirstOrDefault(m => m.Name == "GetFocusParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_parent_get_static_delegate) }); + } + if (efl_ui_focus_object_child_focus_get_static_delegate == null) + { + efl_ui_focus_object_child_focus_get_static_delegate = new efl_ui_focus_object_child_focus_get_delegate(child_focus_get); + } - public delegate void efl_ui_focus_object_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_set"); - private static void focus_set(System.IntPtr obj, System.IntPtr pd, bool focus) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetChildFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_child_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_get_static_delegate) }); } - } else { - efl_ui_focus_object_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + + if (efl_ui_focus_object_child_focus_set_static_delegate == null) + { + efl_ui_focus_object_child_focus_set_static_delegate = new efl_ui_focus_object_child_focus_set_delegate(child_focus_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetChildFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_child_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_set_static_delegate) }); + } + + if (efl_ui_focus_object_setup_order_static_delegate == null) + { + efl_ui_focus_object_setup_order_static_delegate = new efl_ui_focus_object_setup_order_delegate(setup_order); + } + + if (methods.FirstOrDefault(m => m.Name == "SetupOrder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_setup_order"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_static_delegate) }); + } + + if (efl_ui_focus_object_setup_order_non_recursive_static_delegate == null) + { + efl_ui_focus_object_setup_order_non_recursive_static_delegate = new efl_ui_focus_object_setup_order_non_recursive_delegate(setup_order_non_recursive); + } + + if (methods.FirstOrDefault(m => m.Name == "SetupOrderNonRecursive") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_setup_order_non_recursive"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_non_recursive_static_delegate) }); + } + + if (efl_ui_focus_object_on_focus_update_static_delegate == null) + { + efl_ui_focus_object_on_focus_update_static_delegate = new efl_ui_focus_object_on_focus_update_delegate(on_focus_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateOnFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_on_focus_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_on_focus_update_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.Focus.IObjectConcrete.efl_ui_focus_object_mixin_get(); } - } - private static efl_ui_focus_object_focus_set_delegate efl_ui_focus_object_focus_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_geometry_get"); + + private static Eina.Rect.NativeStruct focus_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetFocusGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_manager_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_manager_get"); - private static Efl.Ui.Focus.IManager focus_manager_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_manager_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((IObjectConcrete)wrapper).GetFocusManager(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_object_focus_geometry_get_delegate efl_ui_focus_object_focus_geometry_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_object_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_object_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_get"); + + private static bool focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_object_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_object_focus_manager_get_delegate efl_ui_focus_object_focus_manager_get_static_delegate; + private static efl_ui_focus_object_focus_get_delegate efl_ui_focus_object_focus_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_object_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus); + + public delegate void efl_ui_focus_object_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_parent_get"); - private static Efl.Ui.Focus.IObject focus_parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IObjectConcrete)wrapper).GetFocusParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_set"); + + private static void focus_set(System.IntPtr obj, System.IntPtr pd, bool focus) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_object_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); } - return _ret_var; - } else { - return efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_object_focus_parent_get_delegate efl_ui_focus_object_focus_parent_get_static_delegate; + private static efl_ui_focus_object_focus_set_delegate efl_ui_focus_object_focus_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_child_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_manager_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_manager_get"); + + private static Efl.Ui.Focus.IManager focus_manager_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_manager_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetFocusManager(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_child_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_child_focus_get"); - private static bool child_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_child_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IObjectConcrete)wrapper).GetChildFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_object_focus_manager_get_delegate efl_ui_focus_object_focus_manager_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_parent_get"); + + private static Efl.Ui.Focus.IObject focus_parent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_parent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetFocusParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_object_child_focus_get_delegate efl_ui_focus_object_child_focus_get_static_delegate; + private static efl_ui_focus_object_focus_parent_get_delegate efl_ui_focus_object_focus_parent_get_static_delegate; - private delegate void efl_ui_focus_object_child_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool child_focus); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_object_child_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_object_child_focus_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_object_child_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool child_focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_child_focus_set"); - private static void child_focus_set(System.IntPtr obj, System.IntPtr pd, bool child_focus) - { - Eina.Log.Debug("function efl_ui_focus_object_child_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetChildFocus( child_focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_child_focus_get"); + + private static bool child_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_child_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IObjectConcrete)wrapper).GetChildFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_object_child_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_focus); } - } - private static efl_ui_focus_object_child_focus_set_delegate efl_ui_focus_object_child_focus_set_static_delegate; + private static efl_ui_focus_object_child_focus_get_delegate efl_ui_focus_object_child_focus_get_static_delegate; - private delegate void efl_ui_focus_object_setup_order_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_object_child_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool child_focus); + + public delegate void efl_ui_focus_object_child_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool child_focus); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_child_focus_set"); + + private static void child_focus_set(System.IntPtr obj, System.IntPtr pd, bool child_focus) + { + Eina.Log.Debug("function efl_ui_focus_object_child_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetChildFocus(child_focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_focus_object_setup_order_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_setup_order"); - private static void setup_order(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_setup_order was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IObjectConcrete)wrapper).SetupOrder(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_focus_object_setup_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_focus_object_child_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_focus); + } } - } - private static efl_ui_focus_object_setup_order_delegate efl_ui_focus_object_setup_order_static_delegate; + private static efl_ui_focus_object_child_focus_set_delegate efl_ui_focus_object_child_focus_set_static_delegate; - private delegate void efl_ui_focus_object_setup_order_non_recursive_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_object_setup_order_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_object_setup_order_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_object_setup_order_non_recursive_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_non_recursive_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_setup_order_non_recursive"); - private static void setup_order_non_recursive(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_setup_order_non_recursive was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IObjectConcrete)wrapper).SetupOrderNonRecursive(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_setup_order"); + + private static void setup_order(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_setup_order was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetupOrder(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_object_setup_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_object_setup_order_non_recursive_delegate efl_ui_focus_object_setup_order_non_recursive_static_delegate; + private static efl_ui_focus_object_setup_order_delegate efl_ui_focus_object_setup_order_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_on_focus_update_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_object_setup_order_non_recursive_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_object_setup_order_non_recursive_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_on_focus_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_on_focus_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_on_focus_update"); - private static bool on_focus_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_on_focus_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IObjectConcrete)wrapper).UpdateOnFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_non_recursive_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_setup_order_non_recursive"); + + private static void setup_order_non_recursive(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_setup_order_non_recursive was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IObjectConcrete)wrapper).SetupOrderNonRecursive(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_object_setup_order_non_recursive_delegate efl_ui_focus_object_setup_order_non_recursive_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_object_on_focus_update_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_object_on_focus_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_on_focus_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_on_focus_update"); + + private static bool on_focus_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_on_focus_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IObjectConcrete)wrapper).UpdateOnFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_object_on_focus_update_delegate efl_ui_focus_object_on_focus_update_static_delegate; + + private static efl_ui_focus_object_on_focus_update_delegate efl_ui_focus_object_on_focus_update_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } } +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_parent_provider.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_parent_provider.eo.cs deleted file mode 100644 index c72a713..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_parent_provider.eo.cs +++ /dev/null @@ -1,146 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { -/// EFL UI Focus Parent Provider interface -[IParentProviderNativeInherit] -public interface IParentProvider : - Efl.Eo.IWrapper, IDisposable -{ - /// Called to get the logical parent of widget -/// Object to find parent for -/// Parent of parameter object -Efl.Ui.Focus.IObject FindLogicalParent( Efl.Ui.Focus.IObject widget); - } -/// EFL UI Focus Parent Provider interface -sealed public class IParentProviderConcrete : - -IParentProvider - -{ - ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IParentProviderConcrete)) - return Efl.Ui.Focus.IParentProviderNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - private System.IntPtr handle; - ///Pointer to the native instance. - public System.IntPtr NativeHandle { - get { return handle; } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_focus_parent_provider_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - private IParentProviderConcrete(System.IntPtr raw) - { - handle = raw; - RegisterEventProxies(); - } - ///Destructor. - ~IParentProviderConcrete() - { - Dispose(false); - } - ///Releases the underlying native instance. - void Dispose(bool disposing) - { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; - } - } - ///Releases the underlying native instance. - public void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } - /// Called to get the logical parent of widget - /// Object to find parent for - /// Parent of parameter object - public Efl.Ui.Focus.IObject FindLogicalParent( Efl.Ui.Focus.IObject widget) { - var _ret_var = Efl.Ui.Focus.IParentProviderNativeInherit.efl_ui_focus_parent_provider_find_logical_parent_ptr.Value.Delegate(this.NativeHandle, widget); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.Focus.IParentProviderConcrete.efl_ui_focus_parent_provider_interface_get(); - } -} -public class IParentProviderNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_focus_parent_provider_find_logical_parent_static_delegate == null) - efl_ui_focus_parent_provider_find_logical_parent_static_delegate = new efl_ui_focus_parent_provider_find_logical_parent_delegate(find_logical_parent); - if (methods.FirstOrDefault(m => m.Name == "FindLogicalParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_parent_provider_find_logical_parent"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_parent_provider_find_logical_parent_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Focus.IParentProviderConcrete.efl_ui_focus_parent_provider_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.Focus.IParentProviderConcrete.efl_ui_focus_parent_provider_interface_get(); - } - - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_parent_provider_find_logical_parent_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject widget); - - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_parent_provider_find_logical_parent_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject widget); - public static Efl.Eo.FunctionWrapper efl_ui_focus_parent_provider_find_logical_parent_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_parent_provider_find_logical_parent"); - private static Efl.Ui.Focus.IObject find_logical_parent(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject widget) - { - Eina.Log.Debug("function efl_ui_focus_parent_provider_find_logical_parent was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IParentProvider)wrapper).FindLogicalParent( widget); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_parent_provider_find_logical_parent_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), widget); - } - } - private static efl_ui_focus_parent_provider_find_logical_parent_delegate efl_ui_focus_parent_provider_find_logical_parent_static_delegate; -} -} } } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_parent_provider_standard.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_parent_provider_standard.eo.cs deleted file mode 100644 index 6be5660..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_parent_provider_standard.eo.cs +++ /dev/null @@ -1,121 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { -/// EFL UI Focus Parent Provider Standard Class -[ParentProviderStandardNativeInherit] -public class ParentProviderStandard : Efl.Object, Efl.Eo.IWrapper,Efl.Ui.Focus.IParentProvider -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ParentProviderStandard)) - return Efl.Ui.Focus.ParentProviderStandardNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_focus_parent_provider_standard_class_get(); - ///Creates a new instance. - ///Parent instance. - public ParentProviderStandard(Efl.Object parent= null - ) : - base(efl_ui_focus_parent_provider_standard_class_get(), typeof(ParentProviderStandard), parent) - { - FinishInstantiation(); - } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - protected ParentProviderStandard(System.IntPtr raw) : base(raw) - { - RegisterEventProxies(); - } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ParentProviderStandard(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } - /// Called to get the logical parent of widget - /// Object to find parent for - /// Parent of parameter object - virtual public Efl.Ui.Focus.IObject FindLogicalParent( Efl.Ui.Focus.IObject widget) { - var _ret_var = Efl.Ui.Focus.IParentProviderNativeInherit.efl_ui_focus_parent_provider_find_logical_parent_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), widget); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.Focus.ParentProviderStandard.efl_ui_focus_parent_provider_standard_class_get(); - } -} -public class ParentProviderStandardNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_focus_parent_provider_find_logical_parent_static_delegate == null) - efl_ui_focus_parent_provider_find_logical_parent_static_delegate = new efl_ui_focus_parent_provider_find_logical_parent_delegate(find_logical_parent); - if (methods.FirstOrDefault(m => m.Name == "FindLogicalParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_parent_provider_find_logical_parent"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_parent_provider_find_logical_parent_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Focus.ParentProviderStandard.efl_ui_focus_parent_provider_standard_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Focus.ParentProviderStandard.efl_ui_focus_parent_provider_standard_class_get(); - } - - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_parent_provider_find_logical_parent_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject widget); - - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_parent_provider_find_logical_parent_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject widget); - public static Efl.Eo.FunctionWrapper efl_ui_focus_parent_provider_find_logical_parent_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_parent_provider_find_logical_parent"); - private static Efl.Ui.Focus.IObject find_logical_parent(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject widget) - { - Eina.Log.Debug("function efl_ui_focus_parent_provider_find_logical_parent was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ParentProviderStandard)wrapper).FindLogicalParent( widget); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_parent_provider_find_logical_parent_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), widget); - } - } - private static efl_ui_focus_parent_provider_find_logical_parent_delegate efl_ui_focus_parent_provider_find_logical_parent_static_delegate; -} -} } } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_util.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_util.eo.cs index c6352f1..d559aa5 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_util.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_util.eo.cs @@ -3,81 +3,101 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace Focus { +namespace Efl { + +namespace Ui { + +namespace Focus { + /// EFL UI Focus Util class -[UtilNativeInherit] +[Efl.Ui.Focus.Util.NativeMethods] public class Util : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Util)) - return Efl.Ui.Focus.UtilNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Util)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_focus_util_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Util(Efl.Object parent= null - ) : - base(efl_ui_focus_util_class_get(), typeof(Util), parent) + ) : base(efl_ui_focus_util_class_get(), typeof(Util), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Util(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Util(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Util(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Focus helper method /// Focus element - /// - public static void Focus( Efl.Ui.Focus.IObject focus_elem) { - Efl.Ui.Focus.UtilNativeInherit.efl_ui_focus_util_focus_ptr.Value.Delegate( focus_elem); + public static void Focus(Efl.Ui.Focus.IObject focus_elem) { + Efl.Ui.Focus.Util.NativeMethods.efl_ui_focus_util_focus_ptr.Value.Delegate(focus_elem); Eina.Error.RaiseIfUnhandledException(); } /// Get the highest manager in the redirect property - /// - /// - public static Efl.Ui.Focus.IManager ActiveManager( Efl.Ui.Focus.IManager manager) { - var _ret_var = Efl.Ui.Focus.UtilNativeInherit.efl_ui_focus_util_active_manager_ptr.Value.Delegate( manager); + public static Efl.Ui.Focus.IManager ActiveManager(Efl.Ui.Focus.IManager manager) { + var _ret_var = Efl.Ui.Focus.Util.NativeMethods.efl_ui_focus_util_active_manager_ptr.Value.Delegate(manager); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// - /// - public static Efl.Ui.Focus.Direction DirectionComplement( Efl.Ui.Focus.Direction dir) { - var _ret_var = Efl.Ui.Focus.UtilNativeInherit.efl_ui_focus_util_direction_complement_ptr.Value.Delegate( dir); + public static Efl.Ui.Focus.Direction DirectionComplement(Efl.Ui.Focus.Direction dir) { + var _ret_var = Efl.Ui.Focus.Util.NativeMethods.efl_ui_focus_util_direction_complement_ptr.Value.Delegate(dir); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -85,94 +105,136 @@ public class Util : Efl.Object, Efl.Eo.IWrapper { return Efl.Ui.Focus.Util.efl_ui_focus_util_class_get(); } -} -public class UtilNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Ui.Focus.Util.efl_ui_focus_util_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Focus.Util.efl_ui_focus_util_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Focus.Util.efl_ui_focus_util_class_get(); + } + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_focus_util_focus_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus_elem); + + private delegate void efl_ui_focus_util_focus_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus_elem); + + public delegate void efl_ui_focus_util_focus_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus_elem); - public delegate void efl_ui_focus_util_focus_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus_elem); - public static Efl.Eo.FunctionWrapper efl_ui_focus_util_focus_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_util_focus"); - private static void focus(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus_elem) - { - Eina.Log.Debug("function efl_ui_focus_util_focus was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - Util.Focus( focus_elem); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_util_focus_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_util_focus"); + + private static void focus(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus_elem) + { + Eina.Log.Debug("function efl_ui_focus_util_focus was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + Util.Focus(focus_elem); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_util_focus_ptr.Value.Delegate(focus_elem); } - } else { - efl_ui_focus_util_focus_ptr.Value.Delegate( focus_elem); } - } + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_util_active_manager_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager manager); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_util_active_manager_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager manager); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_util_active_manager_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager manager); + public static Efl.Eo.FunctionWrapper efl_ui_focus_util_active_manager_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_util_active_manager"); + + private static Efl.Ui.Focus.IManager active_manager(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager manager) + { + Eina.Log.Debug("function efl_ui_focus_util_active_manager was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = Util.ActiveManager(manager); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_util_active_manager_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager manager); - public static Efl.Eo.FunctionWrapper efl_ui_focus_util_active_manager_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_util_active_manager"); - private static Efl.Ui.Focus.IManager active_manager(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager manager) - { - Eina.Log.Debug("function efl_ui_focus_util_active_manager was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = Util.ActiveManager( manager); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_util_active_manager_ptr.Value.Delegate( manager); + + } + else + { + return efl_ui_focus_util_active_manager_ptr.Value.Delegate(manager); + } } - } + + private delegate Efl.Ui.Focus.Direction efl_ui_focus_util_direction_complement_delegate( Efl.Ui.Focus.Direction dir); - private delegate Efl.Ui.Focus.Direction efl_ui_focus_util_direction_complement_delegate( Efl.Ui.Focus.Direction dir); + + public delegate Efl.Ui.Focus.Direction efl_ui_focus_util_direction_complement_api_delegate( Efl.Ui.Focus.Direction dir); + public static Efl.Eo.FunctionWrapper efl_ui_focus_util_direction_complement_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_util_direction_complement"); + + private static Efl.Ui.Focus.Direction direction_complement(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir) + { + Eina.Log.Debug("function efl_ui_focus_util_direction_complement was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Direction _ret_var = default(Efl.Ui.Focus.Direction); + try + { + _ret_var = Util.DirectionComplement(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Ui.Focus.Direction efl_ui_focus_util_direction_complement_api_delegate( Efl.Ui.Focus.Direction dir); - public static Efl.Eo.FunctionWrapper efl_ui_focus_util_direction_complement_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_util_direction_complement"); - private static Efl.Ui.Focus.Direction direction_complement(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir) - { - Eina.Log.Debug("function efl_ui_focus_util_direction_complement was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Direction _ret_var = default(Efl.Ui.Focus.Direction); - try { - _ret_var = Util.DirectionComplement( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_util_direction_complement_ptr.Value.Delegate( dir); + + } + else + { + return efl_ui_focus_util_direction_complement_ptr.Value.Delegate(dir); + } } - } + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } } +} +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_format.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_format.eo.cs index 3668b44..beec625 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_format.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_format.eo.cs @@ -3,15 +3,17 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// +namespace Efl { + +namespace Ui { + /// the formated string to be appended by user. /// The passed by obj. -/// -public delegate void FormatFuncCb( Eina.Strbuf str, Eina.Value value); -public delegate void FormatFuncCbInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StrbufKeepOwnershipMarshaler))] Eina.Strbuf str, Eina.ValueNative value); -internal class FormatFuncCbWrapper +public delegate void FormatFuncCb(Eina.Strbuf str, Eina.Value value); +public delegate void FormatFuncCbInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StrbufKeepOwnershipMarshaler))] Eina.Strbuf str, Eina.ValueNative value); +internal class FormatFuncCbWrapper : IDisposable { private FormatFuncCbInternal _cb; @@ -27,40 +29,68 @@ internal class FormatFuncCbWrapper ~FormatFuncCbWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); } - internal void ManagedCb( Eina.Strbuf str, Eina.Value value) + internal void ManagedCb(Eina.Strbuf str,Eina.Value value) { - _cb(_cb_data, str, value); + _cb(_cb_data, str, value); Eina.Error.RaiseIfUnhandledException(); } - internal static void Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StrbufKeepOwnershipMarshaler))] Eina.Strbuf str, Eina.ValueNative value) + internal static void Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StrbufKeepOwnershipMarshaler))] Eina.Strbuf str, Eina.ValueNative value) { GCHandle handle = GCHandle.FromIntPtr(cb_data); FormatFuncCb cb = (FormatFuncCb)handle.Target; try { - cb( str, value); + cb(str, value); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } } -} } -namespace Efl { namespace Ui { +} + +} + +namespace Efl { + +namespace Ui { + /// interface class for format_func -[IFormatNativeInherit] +[Efl.Ui.IFormatConcrete.NativeMethods] public interface IFormat : Efl.Eo.IWrapper, IDisposable { /// Set the format function pointer to format the string. /// The format function callback -/// -void SetFormatCb( Efl.Ui.FormatFuncCb func); +void SetFormatCb(Efl.Ui.FormatFuncCb func); /// Control the format string for a given units label /// If NULL is passed to format, it will hide obj's units area completely. If not, it'll set the <b>format string</b> for the units label text. The units label is provided as a floating point value, so the units text can display at most one floating point value. Note that the units label is optional. Use a format string such as "%1.2f meters" for example. /// @@ -72,8 +102,7 @@ System.String GetFormatString(); /// /// Note: The default format string is an integer percentage, as in $"%.0f %%". /// The format string for obj's units label. -/// -void SetFormatString( System.String units); +void SetFormatString(System.String units); /// Set the format function pointer to format the string. /// The format function callback Efl.Ui.FormatFuncCb FormatCb { @@ -96,74 +125,108 @@ IFormat { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IFormatConcrete)) - return Efl.Ui.IFormatNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IFormatConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_format_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IFormatConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IFormatConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Set the format function pointer to format the string. /// The format function callback - /// - public void SetFormatCb( Efl.Ui.FormatFuncCb func) { + public void SetFormatCb(Efl.Ui.FormatFuncCb func) { GCHandle func_handle = GCHandle.Alloc(func); - Efl.Ui.IFormatNativeInherit.efl_ui_format_cb_set_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(func_handle), Efl.Ui.FormatFuncCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_cb_set_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(func_handle), Efl.Ui.FormatFuncCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); } /// Control the format string for a given units label @@ -172,7 +235,7 @@ IFormat /// Note: The default format string is an integer percentage, as in $"%.0f %%". /// The format string for obj's units label. public System.String GetFormatString() { - var _ret_var = Efl.Ui.IFormatNativeInherit.efl_ui_format_string_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_string_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -181,15 +244,14 @@ IFormat /// /// Note: The default format string is an integer percentage, as in $"%.0f %%". /// The format string for obj's units label. - /// - public void SetFormatString( System.String units) { - Efl.Ui.IFormatNativeInherit.efl_ui_format_string_set_ptr.Value.Delegate(this.NativeHandle, units); + public void SetFormatString(System.String units) { + Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_string_set_ptr.Value.Delegate(this.NativeHandle,units); Eina.Error.RaiseIfUnhandledException(); } /// Set the format function pointer to format the string. /// The format function callback public Efl.Ui.FormatFuncCb FormatCb { - set { SetFormatCb( value); } + set { SetFormatCb(value); } } /// Control the format string for a given units label /// If NULL is passed to format, it will hide obj's units area completely. If not, it'll set the <b>format string</b> for the units label text. The units label is provided as a floating point value, so the units text can display at most one floating point value. Note that the units label is optional. Use a format string such as "%1.2f meters" for example. @@ -198,114 +260,177 @@ IFormat /// The format string for obj's units label. public System.String FormatString { get { return GetFormatString(); } - set { SetFormatString( value); } + set { SetFormatString(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IFormatConcrete.efl_ui_format_mixin_get(); } -} -public class IFormatNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_format_cb_set_static_delegate == null) - efl_ui_format_cb_set_static_delegate = new efl_ui_format_cb_set_delegate(format_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormatCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_cb_set_static_delegate)}); - if (efl_ui_format_string_get_static_delegate == null) - efl_ui_format_string_get_static_delegate = new efl_ui_format_string_get_delegate(format_string_get); - if (methods.FirstOrDefault(m => m.Name == "GetFormatString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_get_static_delegate)}); - if (efl_ui_format_string_set_static_delegate == null) - efl_ui_format_string_set_static_delegate = new efl_ui_format_string_set_delegate(format_string_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormatString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IFormatConcrete.efl_ui_format_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IFormatConcrete.efl_ui_format_mixin_get(); - } + 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_format_cb_set_static_delegate == null) + { + efl_ui_format_cb_set_static_delegate = new efl_ui_format_cb_set_delegate(format_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFormatCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_cb_set_static_delegate) }); + } + if (efl_ui_format_string_get_static_delegate == null) + { + efl_ui_format_string_get_static_delegate = new efl_ui_format_string_get_delegate(format_string_get); + } - private delegate void efl_ui_format_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); + if (methods.FirstOrDefault(m => m.Name == "GetFormatString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_get_static_delegate) }); + } + if (efl_ui_format_string_set_static_delegate == null) + { + efl_ui_format_string_set_static_delegate = new efl_ui_format_string_set_delegate(format_string_set); + } - public delegate void efl_ui_format_cb_set_api_delegate(System.IntPtr obj, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_ui_format_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_cb_set"); - private static void format_cb_set(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_ui_format_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.FormatFuncCbWrapper func_wrapper = new Efl.Ui.FormatFuncCbWrapper(func, func_data, func_free_cb); - - try { - ((IFormatConcrete)wrapper).SetFormatCb( func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFormatString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_set_static_delegate) }); } - } else { - efl_ui_format_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.IFormatConcrete.efl_ui_format_mixin_get(); } - } - private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_format_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_format_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); + + public delegate void efl_ui_format_cb_set_api_delegate(System.IntPtr obj, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_format_string_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_format_string_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_string_get"); - private static System.String format_string_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_format_string_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((IFormatConcrete)wrapper).GetFormatString(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_format_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_cb_set"); + + private static void format_cb_set(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_ui_format_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.FormatFuncCbWrapper func_wrapper = new Efl.Ui.FormatFuncCbWrapper(func, func_data, func_free_cb); + + try + { + ((IFormatConcrete)wrapper).SetFormatCb(func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_format_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); } + } + + private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_format_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_format_string_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_format_string_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_string_get"); + + private static System.String format_string_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_format_string_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IFormatConcrete)wrapper).GetFormatString(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate; + private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate; - private delegate void efl_ui_format_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); + + private delegate void efl_ui_format_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); + + public delegate void efl_ui_format_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); - public delegate void efl_ui_format_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); - public static Efl.Eo.FunctionWrapper efl_ui_format_string_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_string_set"); - private static void format_string_set(System.IntPtr obj, System.IntPtr pd, System.String units) - { - Eina.Log.Debug("function efl_ui_format_string_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IFormatConcrete)wrapper).SetFormatString( units); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_format_string_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_string_set"); + + private static void format_string_set(System.IntPtr obj, System.IntPtr pd, System.String units) + { + Eina.Log.Debug("function efl_ui_format_string_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IFormatConcrete)wrapper).SetFormatString(units); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), units); } - } else { - efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), units); } - } - private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate; + + private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_frame.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_frame.eo.cs index 381459f..3cebc09 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_frame.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_frame.eo.cs @@ -3,534 +3,637 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Frame widget /// The Frame widget allows for collapsing and expanding the content widget by clicking on the frame label. the label and content can be set using text_set and content_set api. -[FrameNativeInherit] +[Efl.Ui.Frame.NativeMethods] public class Frame : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IContent,Efl.IText,Efl.ITextMarkup,Efl.Ui.IClickable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Frame)) - return Efl.Ui.FrameNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Frame)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_frame_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Frame(Efl.Object parent - , System.String style = null) : - base(efl_ui_frame_class_get(), typeof(Frame), parent) + , System.String style = null) : base(efl_ui_frame_class_get(), typeof(Frame), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Frame(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Frame(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Frame(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) + public void OnClickedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedDoubleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedTripleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) + public void OnRepeatedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Determine the collapse state of a frame Use this to determine the collapse state of a frame. /// true to collapse, false to expand. virtual public bool GetCollapse() { - var _ret_var = Efl.Ui.FrameNativeInherit.efl_ui_frame_collapse_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Frame.NativeMethods.efl_ui_frame_collapse_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Manually collapse a frame without animations Use this to toggle the collapsed state of a frame, bypassing animations. /// true to collapse, false to expand. - /// - virtual public void SetCollapse( bool collapse) { - Efl.Ui.FrameNativeInherit.efl_ui_frame_collapse_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), collapse); + virtual public void SetCollapse(bool collapse) { + Efl.Ui.Frame.NativeMethods.efl_ui_frame_collapse_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),collapse); Eina.Error.RaiseIfUnhandledException(); } /// Determine autocollapsing of a frame /// When this returns true, clicking a frame's label will collapse the frame vertically, shrinking it to the height of the label. By default, this is DISABLED. /// Whether to enable autocollapse. virtual public bool GetAutocollapse() { - var _ret_var = Efl.Ui.FrameNativeInherit.efl_ui_frame_autocollapse_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Frame.NativeMethods.efl_ui_frame_autocollapse_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Toggle autocollapsing of a frame When enable is true, clicking a frame's label will collapse the frame vertically, shrinking it to the height of the label. By default, this is DISABLED. /// Whether to enable autocollapse. - /// - virtual public void SetAutocollapse( bool autocollapse) { - Efl.Ui.FrameNativeInherit.efl_ui_frame_autocollapse_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), autocollapse); + virtual public void SetAutocollapse(bool autocollapse) { + Efl.Ui.Frame.NativeMethods.efl_ui_frame_autocollapse_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),autocollapse); Eina.Error.RaiseIfUnhandledException(); } /// Manually collapse a frame with animations Use this to toggle the collapsed state of a frame, triggering animations. /// true to collapse, false to expand. - /// - virtual public void CollapseGo( bool collapse) { - Efl.Ui.FrameNativeInherit.efl_ui_frame_collapse_go_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), collapse); + virtual public void CollapseGo(bool collapse) { + Efl.Ui.Frame.NativeMethods.efl_ui_frame_collapse_go_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),collapse); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -541,7 +644,7 @@ private static object RepeatedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -549,415 +652,630 @@ private static object RepeatedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Markup property /// The markup-text representation set to this text. virtual public System.String GetMarkup() { - var _ret_var = Efl.ITextMarkupNativeInherit.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Markup property /// The markup-text representation set to this text. - /// - virtual public void SetMarkup( System.String markup) { - Efl.ITextMarkupNativeInherit.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), markup); + virtual public void SetMarkup(System.String markup) { + Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),markup); Eina.Error.RaiseIfUnhandledException(); } /// Determine the collapse state of a frame Use this to determine the collapse state of a frame. /// true to collapse, false to expand. public bool Collapse { get { return GetCollapse(); } - set { SetCollapse( value); } + set { SetCollapse(value); } } /// Determine autocollapsing of a frame /// When this returns true, clicking a frame's label will collapse the frame vertically, shrinking it to the height of the label. By default, this is DISABLED. /// Whether to enable autocollapse. public bool Autocollapse { get { return GetAutocollapse(); } - set { SetAutocollapse( value); } + set { SetAutocollapse(value); } } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// Markup property /// The markup-text representation set to this text. public System.String Markup { get { return GetMarkup(); } - set { SetMarkup( value); } + set { SetMarkup(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Frame.efl_ui_frame_class_get(); } -} -public class FrameNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_frame_collapse_get_static_delegate == null) - efl_ui_frame_collapse_get_static_delegate = new efl_ui_frame_collapse_get_delegate(collapse_get); - if (methods.FirstOrDefault(m => m.Name == "GetCollapse") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_frame_collapse_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_frame_collapse_get_static_delegate)}); - if (efl_ui_frame_collapse_set_static_delegate == null) - efl_ui_frame_collapse_set_static_delegate = new efl_ui_frame_collapse_set_delegate(collapse_set); - if (methods.FirstOrDefault(m => m.Name == "SetCollapse") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_frame_collapse_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_frame_collapse_set_static_delegate)}); - if (efl_ui_frame_autocollapse_get_static_delegate == null) - efl_ui_frame_autocollapse_get_static_delegate = new efl_ui_frame_autocollapse_get_delegate(autocollapse_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutocollapse") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_frame_autocollapse_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_frame_autocollapse_get_static_delegate)}); - if (efl_ui_frame_autocollapse_set_static_delegate == null) - efl_ui_frame_autocollapse_set_static_delegate = new efl_ui_frame_autocollapse_set_delegate(autocollapse_set); - if (methods.FirstOrDefault(m => m.Name == "SetAutocollapse") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_frame_autocollapse_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_frame_autocollapse_set_static_delegate)}); - if (efl_ui_frame_collapse_go_static_delegate == null) - efl_ui_frame_collapse_go_static_delegate = new efl_ui_frame_collapse_go_delegate(collapse_go); - if (methods.FirstOrDefault(m => m.Name == "CollapseGo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_frame_collapse_go"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_frame_collapse_go_static_delegate)}); - if (efl_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_text_markup_get_static_delegate == null) - efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); - if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate)}); - if (efl_text_markup_set_static_delegate == null) - efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); - if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Frame.efl_ui_frame_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Frame.efl_ui_frame_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_frame_collapse_get_static_delegate == null) + { + efl_ui_frame_collapse_get_static_delegate = new efl_ui_frame_collapse_get_delegate(collapse_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_frame_collapse_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCollapse") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_frame_collapse_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_frame_collapse_get_static_delegate) }); + } + if (efl_ui_frame_collapse_set_static_delegate == null) + { + efl_ui_frame_collapse_set_static_delegate = new efl_ui_frame_collapse_set_delegate(collapse_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_frame_collapse_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_frame_collapse_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_frame_collapse_get"); - private static bool collapse_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_frame_collapse_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Frame)wrapper).GetCollapse(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCollapse") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_frame_collapse_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_frame_collapse_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_frame_collapse_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_frame_collapse_get_delegate efl_ui_frame_collapse_get_static_delegate; + if (efl_ui_frame_autocollapse_get_static_delegate == null) + { + efl_ui_frame_autocollapse_get_static_delegate = new efl_ui_frame_autocollapse_get_delegate(autocollapse_get); + } - private delegate void efl_ui_frame_collapse_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool collapse); + if (methods.FirstOrDefault(m => m.Name == "GetAutocollapse") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_frame_autocollapse_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_frame_autocollapse_get_static_delegate) }); + } + if (efl_ui_frame_autocollapse_set_static_delegate == null) + { + efl_ui_frame_autocollapse_set_static_delegate = new efl_ui_frame_autocollapse_set_delegate(autocollapse_set); + } - public delegate void efl_ui_frame_collapse_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool collapse); - public static Efl.Eo.FunctionWrapper efl_ui_frame_collapse_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_frame_collapse_set"); - private static void collapse_set(System.IntPtr obj, System.IntPtr pd, bool collapse) - { - Eina.Log.Debug("function efl_ui_frame_collapse_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Frame)wrapper).SetCollapse( collapse); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_frame_collapse_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), collapse); - } - } - private static efl_ui_frame_collapse_set_delegate efl_ui_frame_collapse_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetAutocollapse") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_frame_autocollapse_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_frame_autocollapse_set_static_delegate) }); + } + if (efl_ui_frame_collapse_go_static_delegate == null) + { + efl_ui_frame_collapse_go_static_delegate = new efl_ui_frame_collapse_go_delegate(collapse_go); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_frame_autocollapse_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "CollapseGo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_frame_collapse_go"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_frame_collapse_go_static_delegate) }); + } + if (efl_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_frame_autocollapse_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_frame_autocollapse_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_frame_autocollapse_get"); - private static bool autocollapse_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_frame_autocollapse_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Frame)wrapper).GetAutocollapse(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); } - return _ret_var; - } else { - return efl_ui_frame_autocollapse_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_frame_autocollapse_get_delegate efl_ui_frame_autocollapse_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } - private delegate void efl_ui_frame_autocollapse_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool autocollapse); + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } - public delegate void efl_ui_frame_autocollapse_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool autocollapse); - public static Efl.Eo.FunctionWrapper efl_ui_frame_autocollapse_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_frame_autocollapse_set"); - private static void autocollapse_set(System.IntPtr obj, System.IntPtr pd, bool autocollapse) - { - Eina.Log.Debug("function efl_ui_frame_autocollapse_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Frame)wrapper).SetAutocollapse( autocollapse); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_frame_autocollapse_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), autocollapse); + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } + + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } + + if (efl_text_markup_get_static_delegate == null) + { + efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); + } + + if (efl_text_markup_set_static_delegate == null) + { + efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Frame.efl_ui_frame_class_get(); } - } - private static efl_ui_frame_autocollapse_set_delegate efl_ui_frame_autocollapse_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_frame_collapse_go_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool collapse); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_frame_collapse_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_frame_collapse_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_frame_collapse_go_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool collapse); - public static Efl.Eo.FunctionWrapper efl_ui_frame_collapse_go_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_frame_collapse_go"); - private static void collapse_go(System.IntPtr obj, System.IntPtr pd, bool collapse) - { - Eina.Log.Debug("function efl_ui_frame_collapse_go was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Frame)wrapper).CollapseGo( collapse); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_frame_collapse_go_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), collapse); + public static Efl.Eo.FunctionWrapper efl_ui_frame_collapse_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_frame_collapse_get"); + + private static bool collapse_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_frame_collapse_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Frame)wrapper).GetCollapse(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_frame_collapse_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_frame_collapse_go_delegate efl_ui_frame_collapse_go_static_delegate; + private static efl_ui_frame_collapse_get_delegate efl_ui_frame_collapse_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_frame_collapse_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool collapse); + + public delegate void efl_ui_frame_collapse_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool collapse); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Frame)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_frame_collapse_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_frame_collapse_set"); + + private static void collapse_set(System.IntPtr obj, System.IntPtr pd, bool collapse) + { + Eina.Log.Debug("function efl_ui_frame_collapse_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Frame)wrapper).SetCollapse(collapse); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_frame_collapse_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), collapse); + } + } + + private static efl_ui_frame_collapse_set_delegate efl_ui_frame_collapse_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_frame_autocollapse_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_frame_autocollapse_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_frame_autocollapse_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_frame_autocollapse_get"); + + private static bool autocollapse_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_frame_autocollapse_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Frame)wrapper).GetAutocollapse(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_frame_autocollapse_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + private static efl_ui_frame_autocollapse_get_delegate efl_ui_frame_autocollapse_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + + private delegate void efl_ui_frame_autocollapse_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool autocollapse); + + public delegate void efl_ui_frame_autocollapse_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool autocollapse); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Frame)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_frame_autocollapse_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_frame_autocollapse_set"); + + private static void autocollapse_set(System.IntPtr obj, System.IntPtr pd, bool autocollapse) + { + Eina.Log.Debug("function efl_ui_frame_autocollapse_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Frame)wrapper).SetAutocollapse(autocollapse); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_frame_autocollapse_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), autocollapse); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_ui_frame_autocollapse_set_delegate efl_ui_frame_autocollapse_set_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_frame_collapse_go_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool collapse); + + public delegate void efl_ui_frame_collapse_go_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool collapse); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Frame)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_frame_collapse_go_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_frame_collapse_go"); + + private static void collapse_go(System.IntPtr obj, System.IntPtr pd, bool collapse) + { + Eina.Log.Debug("function efl_ui_frame_collapse_go was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Frame)wrapper).CollapseGo(collapse); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_frame_collapse_go_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), collapse); } + } + + private static efl_ui_frame_collapse_go_delegate efl_ui_frame_collapse_go_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Frame)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Frame)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Frame)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Frame)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_content_unset_delegate efl_content_unset_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Frame)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Frame)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_get"); - private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_markup_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Frame)wrapper).GetMarkup(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Frame)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } + } + + private static efl_text_set_delegate efl_text_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); + + private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_markup_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Frame)wrapper).GetMarkup(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; + private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; - private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_set"); - private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Frame)wrapper).SetMarkup( markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); + public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); + + private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Frame)wrapper).SetMarkup(markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); + } } - } - private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + + private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid.eo.cs index 2fa81b6..e8e2215 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid.eo.cs @@ -3,1914 +3,2292 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Simple grid widget with Pack interface. -[GridNativeInherit] +[Efl.Ui.Grid.NativeMethods] public class Grid : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IPack,Efl.IPackLayout,Efl.IPackLinear,Efl.Ui.IClickable,Efl.Ui.IDirection,Efl.Ui.IMultiSelectable,Efl.Ui.IScrollable,Efl.Ui.IScrollableInteractive,Efl.Ui.IScrollbar,Efl.Ui.ISelectable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Grid)) - return Efl.Ui.GridNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Grid)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_grid_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Grid(Efl.Object parent - , System.String style = null) : - base(efl_ui_grid_class_get(), typeof(Grid), parent) + , System.String style = null) : base(efl_ui_grid_class_get(), typeof(Grid), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Grid(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Grid(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Grid(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object LayoutUpdatedEvtKey = new object(); + /// Sent after the layout was updated. public event EventHandler LayoutUpdatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.AddHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (RemoveNativeEventHandler(key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.RemoveHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LayoutUpdatedEvt. - public void On_LayoutUpdatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LayoutUpdatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LayoutUpdatedEvt_delegate; - private void on_LayoutUpdatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLayoutUpdatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_LayoutUpdatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedDoubleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) + public void OnClickedTripleEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRepeatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation starts public event EventHandler ScrollStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStartEvt. - public void On_ScrollStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStartEvt_delegate; - private void on_ScrollStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling public event EventHandler ScrollEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollEvt_delegate)) { - eventHandlers.AddHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL"; - if (RemoveNativeEventHandler(key, this.evt_ScrollEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollEvt. - public void On_ScrollEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollEvt_delegate; - private void on_ScrollEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation stops public event EventHandler ScrollStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStopEvt. - public void On_ScrollStopEvt(EventArgs e) + public void OnScrollStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStopEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStopEvt_delegate; - private void on_ScrollStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling upwards public event EventHandler ScrollUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.AddHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollUpEvt. - public void On_ScrollUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollUpEvt_delegate; - private void on_ScrollUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling downwards public event EventHandler ScrollDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.AddHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDownEvt. - public void On_ScrollDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDownEvt_delegate; - private void on_ScrollDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling left public event EventHandler ScrollLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.AddHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollLeftEvt. - public void On_ScrollLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollLeftEvt_delegate; - private void on_ScrollLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling right public event EventHandler ScrollRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.AddHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollRightEvt. - public void On_ScrollRightEvt(EventArgs e) + public void OnScrollRightEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollRightEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollRightEvt_delegate; - private void on_ScrollRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object EdgeUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the top edge public event EventHandler EdgeUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.AddHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_UP"; - if (RemoveNativeEventHandler(key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeUpEvt. - public void On_EdgeUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeUpEvt_delegate; - private void on_EdgeUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the bottom edge public event EventHandler EdgeDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.AddHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeDownEvt. - public void On_EdgeDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeDownEvt_delegate; - private void on_EdgeDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the left edge public event EventHandler EdgeLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.AddHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeLeftEvt. - public void On_EdgeLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeLeftEvt_delegate; - private void on_EdgeLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the right edge public event EventHandler EdgeRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.AddHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeRightEvt. - public void On_EdgeRightEvt(EventArgs e) + public void OnEdgeRightEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeRightEvtKey]; + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeRightEvt_delegate; - private void on_EdgeRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollAnimStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation starts public event EventHandler ScrollAnimStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStartEvt. - public void On_ScrollAnimStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStartEvt_delegate; - private void on_ScrollAnimStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation stopps public event EventHandler ScrollAnimStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStopEvt. - public void On_ScrollAnimStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStopEvt_delegate; - private void on_ScrollAnimStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag starts public event EventHandler ScrollDragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStartEvt. - public void On_ScrollDragStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStartEvt_delegate; - private void on_ScrollDragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDragStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag stops public event EventHandler ScrollDragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStopEvt. - public void On_ScrollDragStopEvt(EventArgs e) + public void OnScrollDragStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStopEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStopEvt_delegate; - private void on_ScrollDragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object BarPressEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar is pressed public event EventHandler BarPressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPressEvt_delegate)) { - eventHandlers.AddHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarPressEvt_delegate)) { - eventHandlers.RemoveHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPressEvt. - public void On_BarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) + public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPressEvt_delegate; - private void on_BarPressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarPressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarUnpressEvtKey = new object(); /// Called when bar is unpressed public event EventHandler BarUnpressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.AddHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.RemoveHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarUnpressEvt. - public void On_BarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) + public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarUnpressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarUnpressEvt_delegate; - private void on_BarUnpressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarUnpressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarDragEvtKey = new object(); /// Called when bar is dragged public event EventHandler BarDragEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarDragEvt_delegate)) { - eventHandlers.AddHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (RemoveNativeEventHandler(key, this.evt_BarDragEvt_delegate)) { - eventHandlers.RemoveHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarDragEvt. - public void On_BarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) + public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarDragEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarDragEvt_delegate; - private void on_BarDragEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarDragEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarSizeChangedEvtKey = new object(); /// Called when bar size is changed public event EventHandler BarSizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.AddHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarSizeChangedEvt. - public void On_BarSizeChangedEvt(EventArgs e) + public void OnBarSizeChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarSizeChangedEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarSizeChangedEvt_delegate; - private void on_BarSizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_BarSizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object BarPosChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar position is changed public event EventHandler BarPosChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.AddHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPosChangedEvt. - public void On_BarPosChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPosChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPosChangedEvt_delegate; - private void on_BarPosChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnBarPosChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_BarPosChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BarShowEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Callend when bar is shown public event EventHandler BarShowEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarShowEvt_delegate)) { - eventHandlers.AddHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (RemoveNativeEventHandler(key, this.evt_BarShowEvt_delegate)) { - eventHandlers.RemoveHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarShowEvt. - public void On_BarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) + public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarShowEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarShowEvt_delegate; - private void on_BarShowEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarShowEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarHideEvtKey = new object(); /// Called when bar is hidden public event EventHandler BarHideEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarHideEvt_delegate)) { - eventHandlers.AddHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (RemoveNativeEventHandler(key, this.evt_BarHideEvt_delegate)) { - eventHandlers.RemoveHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarHideEvt. - public void On_BarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) + public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarHideEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarHideEvt_delegate; - private void on_BarHideEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarHideEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ItemSelectedEvtKey = new object(); /// Called when selected public event EventHandler ItemSelectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.AddHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemSelectedEvt. - public void On_ItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) + public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemSelectedEvtKey]; + var key = "_EFL_UI_EVENT_ITEM_SELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemSelectedEvt_delegate; - private void on_ItemSelectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemSelectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ItemUnselectedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when no longer selected public event EventHandler ItemUnselectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.AddHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemUnselectedEvt. - public void On_ItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemUnselectedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemUnselectedEvt_delegate; - private void on_ItemUnselectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemUnselectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionPasteEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when selection is pasted public event EventHandler SelectionPasteEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.AddHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (RemoveNativeEventHandler(key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionPasteEvt. - public void On_SelectionPasteEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionPasteEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionPasteEvt_delegate; - private void on_SelectionPasteEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionPasteEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionPasteEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_PASTE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionCopyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is copied public event EventHandler SelectionCopyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.AddHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCopyEvt. - public void On_SelectionCopyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCopyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCopyEvt_delegate; - private void on_SelectionCopyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionCopyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCopyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_COPY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionCutEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cut public event EventHandler SelectionCutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.AddHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCutEvt. - public void On_SelectionCutEvt(EventArgs e) + public void OnSelectionCutEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCutEvtKey]; + var key = "_EFL_UI_EVENT_SELECTION_CUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCutEvt_delegate; - private void on_SelectionCutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object SelectionStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called at selection start public event EventHandler SelectionStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.AddHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_START"; - if (RemoveNativeEventHandler(key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionStartEvt. - public void On_SelectionStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionStartEvt_delegate; - private void on_SelectionStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is changed public event EventHandler SelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionChangedEvt. - public void On_SelectionChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionChangedEvt_delegate; - private void on_SelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionClearedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cleared public event EventHandler SelectionClearedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.AddHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionClearedEvt. - public void On_SelectionClearedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionClearedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionClearedEvt_delegate; - private void on_SelectionClearedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionClearedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_LayoutUpdatedEvt_delegate = new Efl.EventCb(on_LayoutUpdatedEvt_NativeCallback); - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); - evt_ScrollStartEvt_delegate = new Efl.EventCb(on_ScrollStartEvt_NativeCallback); - evt_ScrollEvt_delegate = new Efl.EventCb(on_ScrollEvt_NativeCallback); - evt_ScrollStopEvt_delegate = new Efl.EventCb(on_ScrollStopEvt_NativeCallback); - evt_ScrollUpEvt_delegate = new Efl.EventCb(on_ScrollUpEvt_NativeCallback); - evt_ScrollDownEvt_delegate = new Efl.EventCb(on_ScrollDownEvt_NativeCallback); - evt_ScrollLeftEvt_delegate = new Efl.EventCb(on_ScrollLeftEvt_NativeCallback); - evt_ScrollRightEvt_delegate = new Efl.EventCb(on_ScrollRightEvt_NativeCallback); - evt_EdgeUpEvt_delegate = new Efl.EventCb(on_EdgeUpEvt_NativeCallback); - evt_EdgeDownEvt_delegate = new Efl.EventCb(on_EdgeDownEvt_NativeCallback); - evt_EdgeLeftEvt_delegate = new Efl.EventCb(on_EdgeLeftEvt_NativeCallback); - evt_EdgeRightEvt_delegate = new Efl.EventCb(on_EdgeRightEvt_NativeCallback); - evt_ScrollAnimStartEvt_delegate = new Efl.EventCb(on_ScrollAnimStartEvt_NativeCallback); - evt_ScrollAnimStopEvt_delegate = new Efl.EventCb(on_ScrollAnimStopEvt_NativeCallback); - evt_ScrollDragStartEvt_delegate = new Efl.EventCb(on_ScrollDragStartEvt_NativeCallback); - evt_ScrollDragStopEvt_delegate = new Efl.EventCb(on_ScrollDragStopEvt_NativeCallback); - evt_BarPressEvt_delegate = new Efl.EventCb(on_BarPressEvt_NativeCallback); - evt_BarUnpressEvt_delegate = new Efl.EventCb(on_BarUnpressEvt_NativeCallback); - evt_BarDragEvt_delegate = new Efl.EventCb(on_BarDragEvt_NativeCallback); - evt_BarSizeChangedEvt_delegate = new Efl.EventCb(on_BarSizeChangedEvt_NativeCallback); - evt_BarPosChangedEvt_delegate = new Efl.EventCb(on_BarPosChangedEvt_NativeCallback); - evt_BarShowEvt_delegate = new Efl.EventCb(on_BarShowEvt_NativeCallback); - evt_BarHideEvt_delegate = new Efl.EventCb(on_BarHideEvt_NativeCallback); - evt_ItemSelectedEvt_delegate = new Efl.EventCb(on_ItemSelectedEvt_NativeCallback); - evt_ItemUnselectedEvt_delegate = new Efl.EventCb(on_ItemUnselectedEvt_NativeCallback); - evt_SelectionPasteEvt_delegate = new Efl.EventCb(on_SelectionPasteEvt_NativeCallback); - evt_SelectionCopyEvt_delegate = new Efl.EventCb(on_SelectionCopyEvt_NativeCallback); - evt_SelectionCutEvt_delegate = new Efl.EventCb(on_SelectionCutEvt_NativeCallback); - evt_SelectionStartEvt_delegate = new Efl.EventCb(on_SelectionStartEvt_NativeCallback); - evt_SelectionChangedEvt_delegate = new Efl.EventCb(on_SelectionChangedEvt_NativeCallback); - evt_SelectionClearedEvt_delegate = new Efl.EventCb(on_SelectionClearedEvt_NativeCallback); + public void OnSelectionClearedEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Property data of item size. /// last selected item of grid. virtual public Eina.Size2D GetItemSize() { - var _ret_var = Efl.Ui.GridNativeInherit.efl_ui_grid_item_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Grid.NativeMethods.efl_ui_grid_item_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Property data of item size. /// last selected item of grid. - /// - virtual public void SetItemSize( Eina.Size2D size) { + virtual public void SetItemSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Ui.GridNativeInherit.efl_ui_grid_item_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Ui.Grid.NativeMethods.efl_ui_grid_item_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Property data of last selected item. /// last selected item of grid. virtual public Efl.Ui.GridItem GetLastSelectedItem() { - var _ret_var = Efl.Ui.GridNativeInherit.efl_ui_grid_last_selected_item_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Grid.NativeMethods.efl_ui_grid_last_selected_item_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// scroll move the item to show in the viewport. /// Target item. /// Boolean value for animation of scroll move. - /// - virtual public void ItemScroll( Efl.Ui.GridItem item, bool animation) { - Efl.Ui.GridNativeInherit.efl_ui_grid_item_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), item, animation); + virtual public void ItemScroll(Efl.Ui.GridItem item, bool animation) { + Efl.Ui.Grid.NativeMethods.efl_ui_grid_item_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),item, animation); Eina.Error.RaiseIfUnhandledException(); } /// scroll move the item to show at the align position of the viewport. /// Target item. /// align value in Viewport. /// Boolean value for animation of scroll move. - /// - virtual public void ItemScrollAlign( Efl.Ui.GridItem item, double align, bool animation) { - Efl.Ui.GridNativeInherit.efl_ui_grid_item_scroll_align_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), item, align, animation); + virtual public void ItemScrollAlign(Efl.Ui.GridItem item, double align, bool animation) { + Efl.Ui.Grid.NativeMethods.efl_ui_grid_item_scroll_align_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),item, align, animation); Eina.Error.RaiseIfUnhandledException(); } /// Get the selected items iterator. The iterator sequence will be decided by selection. /// Iterator covered by selected items list. user have to free the iterator after used. virtual public Eina.Iterator GetSelectedItems() { - var _ret_var = Efl.Ui.GridNativeInherit.efl_ui_grid_selected_items_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Grid.NativeMethods.efl_ui_grid_selected_items_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_horiz, out align_vert); + virtual public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert); + virtual public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pad_horiz, out pad_vert, out scalable); + virtual public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable); + virtual public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise virtual public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1918,15 +2296,15 @@ private static object SelectionClearedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise virtual public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - virtual public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1936,46 +2314,44 @@ private static object SelectionClearedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - virtual public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests EFL to call the method on this object. /// This may be called asynchronously. - /// virtual public void LayoutRequest() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Implementation of this container's layout algorithm. /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas. /// /// This can be overriden to implement custom layout behaviors. - /// virtual public void UpdateLayout() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Prepend an object at the beginning of this container. /// This is the same as (subobj, 0). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack. - /// false if subobj could not be packed - virtual public bool PackBegin( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// Item to pack at the beginning. + /// false if subobj could not be packed. + virtual public bool PackBegin(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Append object at the end of this container. + /// Append item at the end of this container. /// This is the same as (subobj, -1). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Item to pack at the end. - /// false if subobj could not be packed - virtual public bool PackEnd( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// false if subobj could not be packed. + virtual public bool PackEnd(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1984,8 +2360,8 @@ private static object SelectionClearedEvtKey = new object(); /// Item to pack before existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1994,46 +2370,54 @@ private static object SelectionClearedEvtKey = new object(); /// Item to pack after existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Inserts subobj at the specified index. - /// Valid range: -count to +count. -1 refers to the last element. Out of range indices will trigger an append. + /// Inserts subobj BEFORE the item at position index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack at given index. - /// A position. + /// Item to pack. + /// Index of item to insert BEFORE. Valid range is -count to (count-1). /// false if subobj could not be packed. - virtual public bool PackAt( Efl.Gfx.IEntity subobj, int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, index); + virtual public bool PackAt(Efl.Gfx.IEntity subobj, int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Content at a given index in this container. - /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1). - /// Index number + /// Content at a given index in this container. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will return the first item whereas index greater than count-1 will return the last item. + /// Index of the item to retrieve. Valid range is -count to (count-1). /// The object contained at the given index. - virtual public Efl.Gfx.IEntity GetPackContent( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity GetPackContent(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the index of a child in this container. /// An object contained in this pack. - /// -1 in case of failure, or the index of this item. - virtual public int GetPackIndex( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// -1 in case subobj is not a child of this object, or the index of this item in the range 0 to (count-1). + virtual public int GetPackIndex(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Pop out item at specified index. - /// Equivalent to unpack(content_at(index)). - /// Index number + /// Pop out (remove) the item at the specified index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will remove the first item whereas index greater than count-1 will remove the last item. + /// + /// Equivalent to ((index)). + /// Index of item to remove. Valid range is -count to (count-1). /// The child item if it could be removed. - virtual public Efl.Gfx.IEntity PackUnpackAt( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2043,7 +2427,7 @@ private static object SelectionClearedEvtKey = new object(); /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. virtual public Efl.Ui.Dir GetDirection() { - var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2052,51 +2436,48 @@ private static object SelectionClearedEvtKey = new object(); /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. - /// - virtual public void SetDirection( Efl.Ui.Dir dir) { - Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetDirection(Efl.Ui.Dir dir) { + Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// The mode type for children selection. /// Type of selection of children virtual public Efl.Ui.SelectMode GetSelectMode() { - var _ret_var = Efl.Ui.IMultiSelectableNativeInherit.efl_ui_select_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The mode type for children selection. /// Type of selection of children - /// - virtual public void SetSelectMode( Efl.Ui.SelectMode mode) { - Efl.Ui.IMultiSelectableNativeInherit.efl_ui_select_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mode); + virtual public void SetSelectMode(Efl.Ui.SelectMode mode) { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode); Eina.Error.RaiseIfUnhandledException(); } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. virtual public Eina.Position2D GetContentPos() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. - /// - virtual public void SetContentPos( Eina.Position2D pos) { + virtual public void SetContentPos(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// The content size /// The content size in pixels. virtual public Eina.Size2D GetContentSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The viewport geometry /// It is absolute geometry. virtual public Eina.Rect GetViewportGeometry() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2104,78 +2485,71 @@ private static object SelectionClearedEvtKey = new object(); /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void GetBounceEnabled( out bool horiz, out bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out horiz, out vert); + virtual public void GetBounceEnabled(out bool horiz, out bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void SetBounceEnabled( bool horiz, bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), horiz, vert); + virtual public void SetBounceEnabled(bool horiz, bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise virtual public bool GetScrollFreeze() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise - /// - virtual public void SetScrollFreeze( bool freeze) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), freeze); + virtual public void SetScrollFreeze(bool freeze) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),freeze); Eina.Error.RaiseIfUnhandledException(); } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise virtual public bool GetScrollHold() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise - /// - virtual public void SetScrollHold( bool hold) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hold); + virtual public void SetScrollHold(bool hold) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hold); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void GetLooping( out bool loop_h, out bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out loop_h, out loop_v); + virtual public void GetLooping(out bool loop_h, out bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out loop_h, out loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void SetLooping( bool loop_h, bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), loop_h, loop_v); + virtual public void SetLooping(bool loop_h, bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),loop_h, loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block virtual public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block - /// - virtual public void SetMovementBlock( Efl.Ui.ScrollBlock block) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), block); + virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),block); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -2188,9 +2562,8 @@ private static object SelectionClearedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void GetGravity( out double x, out double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetGravity(out double x, out double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -2203,99 +2576,89 @@ private static object SelectionClearedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void SetGravity( double x, double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetGravity(double x, double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size - /// - virtual public void SetMatchContent( bool w, bool h) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), w, h); + virtual public void SetMatchContent(bool w, bool h) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),w, h); Eina.Error.RaiseIfUnhandledException(); } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels virtual public Eina.Position2D GetStepSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels - /// - virtual public void SetStepSize( Eina.Position2D step) { + virtual public void SetStepSize(Eina.Position2D step) { Eina.Position2D.NativeStruct _in_step = step; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_step); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_step); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object. /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. /// The position where to scroll. and The size user want to see /// Whether to scroll with animation or not - /// - virtual public void Scroll( Eina.Rect rect, bool animation) { + virtual public void Scroll(Eina.Rect rect, bool animation) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect, animation); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect, animation); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void GetBarMode( out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out hbar, out vbar); + virtual public void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out hbar, out vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void SetBarMode( Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hbar, vbar); + virtual public void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hbar, vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar size. It is calculated based on viewport size-content sizes. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarSize( out double width, out double height) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out width, out height); + virtual public void GetBarSize(out double width, out double height) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out width, out height); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarPosition( out double posx, out double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out posx, out posy); + virtual public void GetBarPosition(out double posx, out double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out posx, out posy); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void SetBarPosition( double posx, double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), posx, posy); + virtual public void SetBarPosition(double posx, double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),posx, posy); Eina.Error.RaiseIfUnhandledException(); } /// Update bar visibility. /// The object will call this function whenever the bar need to be shown or hidden. - /// virtual public void UpdateBarVisibility() { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Property data of item size. /// last selected item of grid. public Eina.Size2D ItemSize { get { return GetItemSize(); } - set { SetItemSize( value); } + set { SetItemSize(value); } } /// Property data of last selected item. /// last selected item of grid. @@ -2309,19 +2672,19 @@ private static object SelectionClearedEvtKey = new object(); /// Direction of the widget. public Efl.Ui.Dir Direction { get { return GetDirection(); } - set { SetDirection( value); } + set { SetDirection(value); } } /// The mode type for children selection. /// Type of selection of children public Efl.Ui.SelectMode SelectMode { get { return GetSelectMode(); } - set { SetSelectMode( value); } + set { SetSelectMode(value); } } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. public Eina.Position2D ContentPos { get { return GetContentPos(); } - set { SetContentPos( value); } + set { SetContentPos(value); } } /// The content size /// The content size in pixels. @@ -2337,1589 +2700,2519 @@ private static object SelectionClearedEvtKey = new object(); /// true if freeze, false otherwise public bool ScrollFreeze { get { return GetScrollFreeze(); } - set { SetScrollFreeze( value); } + set { SetScrollFreeze(value); } } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise public bool ScrollHold { get { return GetScrollHold(); } - set { SetScrollHold( value); } + set { SetScrollHold(value); } } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block public Efl.Ui.ScrollBlock MovementBlock { get { return GetMovementBlock(); } - set { SetMovementBlock( value); } + set { SetMovementBlock(value); } } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels public Eina.Position2D StepSize { get { return GetStepSize(); } - set { SetStepSize( value); } + set { SetStepSize(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Grid.efl_ui_grid_class_get(); } -} -public class GridNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_grid_item_size_get_static_delegate == null) - efl_ui_grid_item_size_get_static_delegate = new efl_ui_grid_item_size_get_delegate(item_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetItemSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_grid_item_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_size_get_static_delegate)}); - if (efl_ui_grid_item_size_set_static_delegate == null) - efl_ui_grid_item_size_set_static_delegate = new efl_ui_grid_item_size_set_delegate(item_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetItemSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_grid_item_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_size_set_static_delegate)}); - if (efl_ui_grid_last_selected_item_get_static_delegate == null) - efl_ui_grid_last_selected_item_get_static_delegate = new efl_ui_grid_last_selected_item_get_delegate(last_selected_item_get); - if (methods.FirstOrDefault(m => m.Name == "GetLastSelectedItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_grid_last_selected_item_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_last_selected_item_get_static_delegate)}); - if (efl_ui_grid_item_scroll_static_delegate == null) - efl_ui_grid_item_scroll_static_delegate = new efl_ui_grid_item_scroll_delegate(item_scroll); - if (methods.FirstOrDefault(m => m.Name == "ItemScroll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_grid_item_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_scroll_static_delegate)}); - if (efl_ui_grid_item_scroll_align_static_delegate == null) - efl_ui_grid_item_scroll_align_static_delegate = new efl_ui_grid_item_scroll_align_delegate(item_scroll_align); - if (methods.FirstOrDefault(m => m.Name == "ItemScrollAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_grid_item_scroll_align"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_scroll_align_static_delegate)}); - if (efl_ui_grid_selected_items_get_static_delegate == null) - efl_ui_grid_selected_items_get_static_delegate = new efl_ui_grid_selected_items_get_delegate(selected_items_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectedItems") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_grid_selected_items_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_selected_items_get_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - if (efl_pack_layout_request_static_delegate == null) - efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); - if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate)}); - if (efl_pack_layout_update_static_delegate == null) - efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate)}); - if (efl_pack_begin_static_delegate == null) - efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); - if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate)}); - if (efl_pack_end_static_delegate == null) - efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); - if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate)}); - if (efl_pack_before_static_delegate == null) - efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); - if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate)}); - if (efl_pack_after_static_delegate == null) - efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); - if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate)}); - if (efl_pack_at_static_delegate == null) - efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); - if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate)}); - if (efl_pack_content_get_static_delegate == null) - efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate)}); - if (efl_pack_index_get_static_delegate == null) - efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate)}); - if (efl_pack_unpack_at_static_delegate == null) - efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); - if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate)}); - if (efl_ui_direction_get_static_delegate == null) - efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)}); - if (efl_ui_direction_set_static_delegate == null) - efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)}); - if (efl_ui_select_mode_get_static_delegate == null) - efl_ui_select_mode_get_static_delegate = new efl_ui_select_mode_get_delegate(select_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_select_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_get_static_delegate)}); - if (efl_ui_select_mode_set_static_delegate == null) - efl_ui_select_mode_set_static_delegate = new efl_ui_select_mode_set_delegate(select_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelectMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_set_static_delegate)}); - if (efl_ui_scrollable_content_pos_get_static_delegate == null) - efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate)}); - if (efl_ui_scrollable_content_pos_set_static_delegate == null) - efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate)}); - if (efl_ui_scrollable_content_size_get_static_delegate == null) - efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate)}); - if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) - efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) - efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) - efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) - efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) - efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) - efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) - efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate)}); - if (efl_ui_scrollable_looping_get_static_delegate == null) - efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); - if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate)}); - if (efl_ui_scrollable_looping_set_static_delegate == null) - efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); - if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate)}); - if (efl_ui_scrollable_movement_block_get_static_delegate == null) - efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate)}); - if (efl_ui_scrollable_movement_block_set_static_delegate == null) - efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate)}); - if (efl_ui_scrollable_gravity_get_static_delegate == null) - efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate)}); - if (efl_ui_scrollable_gravity_set_static_delegate == null) - efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate)}); - if (efl_ui_scrollable_match_content_set_static_delegate == null) - efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); - if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate)}); - if (efl_ui_scrollable_step_size_get_static_delegate == null) - efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate)}); - if (efl_ui_scrollable_step_size_set_static_delegate == null) - efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate)}); - if (efl_ui_scrollable_scroll_static_delegate == null) - efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); - if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) - efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) - efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate)}); - if (efl_ui_scrollbar_bar_size_get_static_delegate == null) - efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_get_static_delegate == null) - efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_set_static_delegate == null) - efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate)}); - if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) - efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Grid.efl_ui_grid_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Grid.efl_ui_grid_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_grid_item_size_get_static_delegate == null) + { + efl_ui_grid_item_size_get_static_delegate = new efl_ui_grid_item_size_get_delegate(item_size_get); + } - private delegate Eina.Size2D.NativeStruct efl_ui_grid_item_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetItemSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_item_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_size_get_static_delegate) }); + } + if (efl_ui_grid_item_size_set_static_delegate == null) + { + efl_ui_grid_item_size_set_static_delegate = new efl_ui_grid_item_size_set_delegate(item_size_set); + } - public delegate Eina.Size2D.NativeStruct efl_ui_grid_item_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_grid_item_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_grid_item_size_get"); - private static Eina.Size2D.NativeStruct item_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_grid_item_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Grid)wrapper).GetItemSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetItemSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_item_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_size_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_grid_item_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_grid_item_size_get_delegate efl_ui_grid_item_size_get_static_delegate; + if (efl_ui_grid_last_selected_item_get_static_delegate == null) + { + efl_ui_grid_last_selected_item_get_static_delegate = new efl_ui_grid_last_selected_item_get_delegate(last_selected_item_get); + } - private delegate void efl_ui_grid_item_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + if (methods.FirstOrDefault(m => m.Name == "GetLastSelectedItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_last_selected_item_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_last_selected_item_get_static_delegate) }); + } + if (efl_ui_grid_item_scroll_static_delegate == null) + { + efl_ui_grid_item_scroll_static_delegate = new efl_ui_grid_item_scroll_delegate(item_scroll); + } - public delegate void efl_ui_grid_item_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_ui_grid_item_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_grid_item_size_set"); - private static void item_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_ui_grid_item_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; - - try { - ((Grid)wrapper).SetItemSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ItemScroll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_item_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_scroll_static_delegate) }); } - } else { - efl_ui_grid_item_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - private static efl_ui_grid_item_size_set_delegate efl_ui_grid_item_size_set_static_delegate; + if (efl_ui_grid_item_scroll_align_static_delegate == null) + { + efl_ui_grid_item_scroll_align_static_delegate = new efl_ui_grid_item_scroll_align_delegate(item_scroll_align); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.GridItem efl_ui_grid_last_selected_item_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "ItemScrollAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_item_scroll_align"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_scroll_align_static_delegate) }); + } + if (efl_ui_grid_selected_items_get_static_delegate == null) + { + efl_ui_grid_selected_items_get_static_delegate = new efl_ui_grid_selected_items_get_delegate(selected_items_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.GridItem efl_ui_grid_last_selected_item_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_grid_last_selected_item_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_grid_last_selected_item_get"); - private static Efl.Ui.GridItem last_selected_item_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_grid_last_selected_item_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.GridItem _ret_var = default(Efl.Ui.GridItem); - try { - _ret_var = ((Grid)wrapper).GetLastSelectedItem(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSelectedItems") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_selected_items_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_selected_items_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_grid_last_selected_item_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_grid_last_selected_item_get_delegate efl_ui_grid_last_selected_item_get_static_delegate; + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } - private delegate void efl_ui_grid_item_scroll_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.GridItem item, [MarshalAs(UnmanagedType.U1)] bool animation); + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } - public delegate void efl_ui_grid_item_scroll_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.GridItem item, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper efl_ui_grid_item_scroll_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_grid_item_scroll"); - private static void item_scroll(System.IntPtr obj, System.IntPtr pd, Efl.Ui.GridItem item, bool animation) - { - Eina.Log.Debug("function efl_ui_grid_item_scroll was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).ItemScroll( item, animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); } - } else { - efl_ui_grid_item_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, animation); - } - } - private static efl_ui_grid_item_scroll_delegate efl_ui_grid_item_scroll_static_delegate; + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); + } - private delegate void efl_ui_grid_item_scroll_align_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.GridItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); + } - public delegate void efl_ui_grid_item_scroll_align_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.GridItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper efl_ui_grid_item_scroll_align_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_grid_item_scroll_align"); - private static void item_scroll_align(System.IntPtr obj, System.IntPtr pd, Efl.Ui.GridItem item, double align, bool animation) - { - Eina.Log.Debug("function efl_ui_grid_item_scroll_align was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).ItemScrollAlign( item, align, animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); } - } else { - efl_ui_grid_item_scroll_align_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, align, animation); - } - } - private static efl_ui_grid_item_scroll_align_delegate efl_ui_grid_item_scroll_align_static_delegate; + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } - private delegate System.IntPtr efl_ui_grid_selected_items_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } - public delegate System.IntPtr efl_ui_grid_selected_items_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_grid_selected_items_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_grid_selected_items_get"); - private static System.IntPtr selected_items_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_grid_selected_items_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Grid)wrapper).GetSelectedItems(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_ui_grid_selected_items_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_grid_selected_items_get_delegate efl_ui_grid_selected_items_get_static_delegate; + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((Grid)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + if (efl_pack_layout_request_static_delegate == null) + { + efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate) }); + } + if (efl_pack_layout_update_static_delegate == null) + { + efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); + } - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate) }); } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); - } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + if (efl_pack_begin_static_delegate == null) + { + efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); + } - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); + } + if (efl_pack_end_static_delegate == null) + { + efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); + } - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((Grid)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); - } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + if (efl_pack_before_static_delegate == null) + { + efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); + } + if (efl_pack_after_static_delegate == null) + { + efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); - } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + if (efl_pack_at_static_delegate == null) + { + efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); + } + if (efl_pack_content_get_static_delegate == null) + { + efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Grid)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + if (efl_pack_index_get_static_delegate == null) + { + efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); + } + if (efl_pack_unpack_at_static_delegate == null) + { + efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Grid)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + if (efl_ui_direction_get_static_delegate == null) + { + efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate) }); + } + if (efl_ui_direction_set_static_delegate == null) + { + efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Grid)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + if (efl_ui_select_mode_get_static_delegate == null) + { + efl_ui_select_mode_get_static_delegate = new efl_ui_select_mode_get_delegate(select_mode_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetSelectMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_get_static_delegate) }); + } + if (efl_ui_select_mode_set_static_delegate == null) + { + efl_ui_select_mode_set_static_delegate = new efl_ui_select_mode_set_delegate(select_mode_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Grid)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSelectMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_delegate efl_pack_static_delegate; + if (efl_ui_scrollable_content_pos_get_static_delegate == null) + { + efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); + } - private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); + } + if (efl_ui_scrollable_content_pos_set_static_delegate == null) + { + efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); + } - public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_request"); - private static void layout_request(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_request was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).LayoutRequest(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); } - } else { - efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + if (efl_ui_scrollable_content_size_get_static_delegate == null) + { + efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); + } - private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); + } + if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) + { + efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); + } - public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_update"); - private static void layout_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).UpdateLayout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); } - } else { - efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; + if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); + } + if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_begin"); - private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_begin was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Grid)wrapper).PackBegin( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); + } + if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_end"); - private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Grid)wrapper).PackEnd( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_end_delegate efl_pack_end_static_delegate; + if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); + } + if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_before"); - private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_before was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Grid)wrapper).PackBefore( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); - } - } - private static efl_pack_before_delegate efl_pack_before_static_delegate; + if (efl_ui_scrollable_looping_get_static_delegate == null) + { + efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); + } + if (efl_ui_scrollable_looping_set_static_delegate == null) + { + efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_after"); - private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_after was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Grid)wrapper).PackAfter( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); - } - } - private static efl_pack_after_delegate efl_pack_after_static_delegate; + if (efl_ui_scrollable_movement_block_get_static_delegate == null) + { + efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); + if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); + } + if (efl_ui_scrollable_movement_block_set_static_delegate == null) + { + efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_at"); - private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) - { - Eina.Log.Debug("function efl_pack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Grid)wrapper).PackAt( subobj, index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); - } - } - private static efl_pack_at_delegate efl_pack_at_static_delegate; + if (efl_ui_scrollable_gravity_get_static_delegate == null) + { + efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); + } + if (efl_ui_scrollable_gravity_set_static_delegate == null) + { + efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_content_get"); - private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Grid)wrapper).GetPackContent( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); - } - } - private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + if (efl_ui_scrollable_match_content_set_static_delegate == null) + { + efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); + } - private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); + } + if (efl_ui_scrollable_step_size_get_static_delegate == null) + { + efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); + } - public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_index_get"); - private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_index_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Grid)wrapper).GetPackIndex( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + if (efl_ui_scrollable_step_size_set_static_delegate == null) + { + efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); + } + if (efl_ui_scrollable_scroll_static_delegate == null) + { + efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_at"); - private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_unpack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Grid)wrapper).PackUnpackAt( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); - } - } - private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); + } - private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate) }); + } + if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); + } - public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_get"); - private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); - try { - _ret_var = ((Grid)wrapper).GetDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + if (efl_ui_scrollbar_bar_size_get_static_delegate == null) + { + efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); + } - private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate) }); + } + if (efl_ui_scrollbar_bar_position_get_static_delegate == null) + { + efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); + } - public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_set"); - private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate) }); } - } else { - efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; + if (efl_ui_scrollbar_bar_position_set_static_delegate == null) + { + efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); + } - private delegate Efl.Ui.SelectMode efl_ui_select_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate) }); + } + if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) + { + efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); + } - public delegate Efl.Ui.SelectMode efl_ui_select_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_select_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_select_mode_get"); - private static Efl.Ui.SelectMode select_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_select_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.SelectMode _ret_var = default(Efl.Ui.SelectMode); - try { - _ret_var = ((Grid)wrapper).GetSelectMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_select_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_select_mode_get_delegate efl_ui_select_mode_get_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Grid.efl_ui_grid_class_get(); + } - private delegate void efl_ui_select_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode); + #pragma warning disable CA1707, SA1300, SA1600 + + private delegate Eina.Size2D.NativeStruct efl_ui_grid_item_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_select_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectMode mode); - public static Efl.Eo.FunctionWrapper efl_ui_select_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_select_mode_set"); - private static void select_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode) - { - Eina.Log.Debug("function efl_ui_select_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetSelectMode( mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_select_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); - } - } - private static efl_ui_select_mode_set_delegate efl_ui_select_mode_set_static_delegate; + + public delegate Eina.Size2D.NativeStruct efl_ui_grid_item_size_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_grid_item_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_item_size_get"); - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Eina.Size2D.NativeStruct item_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_grid_item_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Grid)wrapper).GetItemSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_get"); - private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Grid)wrapper).GetContentPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_grid_item_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; + private static efl_ui_grid_item_size_get_delegate efl_ui_grid_item_size_get_static_delegate; - private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + private delegate void efl_ui_grid_item_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_ui_grid_item_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_set"); - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; + public static Efl.Eo.FunctionWrapper efl_ui_grid_item_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_item_size_set"); + + private static void item_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_ui_grid_item_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; - try { - ((Grid)wrapper).SetContentPos( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((Grid)wrapper).SetItemSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_grid_item_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - } else { - efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - } - private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; + private static efl_ui_grid_item_size_set_delegate efl_ui_grid_item_size_set_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.GridItem efl_ui_grid_last_selected_item_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.GridItem efl_ui_grid_last_selected_item_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_grid_last_selected_item_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_last_selected_item_get"); + + private static Efl.Ui.GridItem last_selected_item_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_grid_last_selected_item_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.GridItem _ret_var = default(Efl.Ui.GridItem); + try + { + _ret_var = ((Grid)wrapper).GetLastSelectedItem(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_size_get"); - private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Grid)wrapper).GetContentSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_grid_last_selected_item_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; + private static efl_ui_grid_last_selected_item_get_delegate efl_ui_grid_last_selected_item_get_static_delegate; - private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_grid_item_scroll_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.GridItem item, [MarshalAs(UnmanagedType.U1)] bool animation); + + public delegate void efl_ui_grid_item_scroll_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.GridItem item, [MarshalAs(UnmanagedType.U1)] bool animation); - public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_viewport_geometry_get"); - private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Grid)wrapper).GetViewportGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_grid_item_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_item_scroll"); + + private static void item_scroll(System.IntPtr obj, System.IntPtr pd, Efl.Ui.GridItem item, bool animation) + { + Eina.Log.Debug("function efl_ui_grid_item_scroll was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).ItemScroll(item, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_grid_item_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, animation); + } + } + + private static efl_ui_grid_item_scroll_delegate efl_ui_grid_item_scroll_static_delegate; + + + private delegate void efl_ui_grid_item_scroll_align_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.GridItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); + + + public delegate void efl_ui_grid_item_scroll_align_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.GridItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); + + public static Efl.Eo.FunctionWrapper efl_ui_grid_item_scroll_align_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_item_scroll_align"); + + private static void item_scroll_align(System.IntPtr obj, System.IntPtr pd, Efl.Ui.GridItem item, double align, bool animation) + { + Eina.Log.Debug("function efl_ui_grid_item_scroll_align was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).ItemScrollAlign(item, align, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_grid_item_scroll_align_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, align, animation); + } + } + + private static efl_ui_grid_item_scroll_align_delegate efl_ui_grid_item_scroll_align_static_delegate; + + + private delegate System.IntPtr efl_ui_grid_selected_items_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_grid_selected_items_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_grid_selected_items_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_selected_items_get"); + + private static System.IntPtr selected_items_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_grid_selected_items_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Grid)wrapper).GetSelectedItems(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_ui_grid_selected_items_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_grid_selected_items_get_delegate efl_ui_grid_selected_items_get_static_delegate; + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((Grid)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); + } + } + + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } + + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((Grid)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); + } + } + + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } + + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Grid)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; - private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_get"); - private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - horiz = default(bool); vert = default(bool); - try { - ((Grid)wrapper).GetBounceEnabled( out horiz, out vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Grid)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); } - } - private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; - private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_set"); - private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetBounceEnabled( horiz, vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Grid)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } - } else { - efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); } - } - private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_get"); - private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Grid)wrapper).GetScrollFreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Grid)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } + } + + private static efl_pack_delegate efl_pack_static_delegate; + + + private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_request"); + + private static void layout_request(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_request was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).LayoutRequest(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + + + private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_update"); + + private static void layout_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).UpdateLayout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); + + private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_begin was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Grid)wrapper).PackBegin(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); + + private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Grid)wrapper).PackEnd(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_end_delegate efl_pack_end_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); + + private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_before was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Grid)wrapper).PackBefore(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } + + private static efl_pack_before_delegate efl_pack_before_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); + + private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_after was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Grid)wrapper).PackAfter(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } + + private static efl_pack_after_delegate efl_pack_after_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); + + private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) + { + Eina.Log.Debug("function efl_pack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Grid)wrapper).PackAt(subobj, index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + } + } + + private static efl_pack_at_delegate efl_pack_at_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); + + private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Grid)wrapper).GetPackContent(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + + private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + + + private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); + + private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_index_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Grid)wrapper).GetPackIndex(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); + + private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_unpack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Grid)wrapper).PackUnpackAt(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + + private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + + private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_get"); + + private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); + try + { + _ret_var = ((Grid)wrapper).GetDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; + private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; - private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_set"); - private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetScrollFreeze( freeze); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_set"); + + private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - } else { - efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); } - } - private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; + private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Ui.SelectMode efl_ui_select_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Ui.SelectMode efl_ui_select_mode_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_get"); - private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Grid)wrapper).GetScrollHold(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_select_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_get"); + + private static Efl.Ui.SelectMode select_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_select_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.SelectMode _ret_var = default(Efl.Ui.SelectMode); + try + { + _ret_var = ((Grid)wrapper).GetSelectMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_select_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_select_mode_get_delegate efl_ui_select_mode_get_static_delegate; + + + private delegate void efl_ui_select_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode); + + + public delegate void efl_ui_select_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectMode mode); + + public static Efl.Eo.FunctionWrapper efl_ui_select_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_set"); + + private static void select_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode) + { + Eina.Log.Debug("function efl_ui_select_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetSelectMode(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_select_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); } + } + + private static efl_ui_select_mode_set_delegate efl_ui_select_mode_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); + + private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Grid)wrapper).GetContentPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; - private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_set"); - private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetScrollHold( hold); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); + + private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((Grid)wrapper).SetContentPos(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - } else { - efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); } - } - private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; + private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; - private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_get"); - private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - loop_h = default(bool); loop_v = default(bool); - try { - ((Grid)wrapper).GetLooping( out loop_h, out loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); + + private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Grid)wrapper).GetContentSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); } - } - private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; - private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_set"); - private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetLooping( loop_h, loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); + + private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Grid)wrapper).GetViewportGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); } - } - private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; - private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_get"); - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try { - _ret_var = ((Grid)wrapper).GetMovementBlock(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); + + private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((Grid)wrapper).GetBounceEnabled(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); } + } + + private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + + + private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + + public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); + + private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetBounceEnabled(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + } + } + + private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); + + private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Grid)wrapper).GetScrollFreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; + private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; - private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_set"); - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetMovementBlock( block); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); + + private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetScrollFreeze(freeze); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); } - } else { - efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); } - } - private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; - private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); + + private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Grid)wrapper).GetScrollHold(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_get"); - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((Grid)wrapper).GetGravity( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + else + { + return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; - private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_set"); - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetGravity( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); + + private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetScrollHold(hold); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); } - } else { - efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } - private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; - private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_match_content_set"); - private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetMatchContent( w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); + + private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + loop_h = default(bool); loop_v = default(bool); + try + { + ((Grid)wrapper).GetLooping(out loop_h, out loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); } - } else { - efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); } - } - private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_get"); - private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Grid)wrapper).GetStepSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); + + private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetLooping(loop_h, loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + } + } + + private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + + + private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); + + private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); + try + { + _ret_var = ((Grid)wrapper).GetMovementBlock(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; + + + private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + + public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); + + private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetMovementBlock(block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); } + } + + private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); + + private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((Grid)wrapper).GetGravity(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); + + private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetGravity(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + + + private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + + public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); + + private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) + { + Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetMatchContent(w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + } + } + + private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); + + private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Grid)wrapper).GetStepSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; + private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; - private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_set"); - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_step = step; + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); + + private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_step = step; - try { - ((Grid)wrapper).SetStepSize( _in_step); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((Grid)wrapper).SetStepSize(_in_step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } else { - efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } - private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; + private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; - private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll"); - private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); + + private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; - try { - ((Grid)wrapper).Scroll( _in_rect, animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((Grid)wrapper).Scroll(_in_rect, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } - } else { - efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } - } - private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; + private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; - private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_get"); - private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); - try { - ((Grid)wrapper).GetBarMode( out hbar, out vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_get"); + + private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); + try + { + ((Grid)wrapper).GetBarMode(out hbar, out vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); } - } else { - efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); } - } - private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; + private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_set"); - private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetBarMode( hbar, vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_set"); + + private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetBarMode(hbar, vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); } - } else { - efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); } - } - private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; + private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; - private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_size_get"); - private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - width = default(double); height = default(double); - try { - ((Grid)wrapper).GetBarSize( out width, out height); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_size_get"); + + private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + width = default(double); height = default(double); + try + { + ((Grid)wrapper).GetBarSize(out width, out height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); } - } else { - efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); } - } - private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; + private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_get"); - private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - posx = default(double); posy = default(double); - try { - ((Grid)wrapper).GetBarPosition( out posx, out posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_get"); + + private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + posx = default(double); posy = default(double); + try + { + ((Grid)wrapper).GetBarPosition(out posx, out posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); } - } else { - efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); } - } - private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; + private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_set"); - private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).SetBarPosition( posx, posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_set"); + + private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).SetBarPosition(posx, posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); } - } else { - efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); } - } - private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; + private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; - private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_visibility_update"); - private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Grid)wrapper).UpdateBarVisibility(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_visibility_update"); + + private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Grid)wrapper).UpdateBarVisibility(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + + private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item.eo.cs index ff02c19..3225a19 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item.eo.cs @@ -3,117 +3,153 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Grid Default Item class. This class need to be sub object of list widget. Text and contents can be set using , or . -[GridDefaultItemNativeInherit] +[Efl.Ui.GridDefaultItem.NativeMethods] public class GridDefaultItem : Efl.Ui.GridItem, Efl.Eo.IWrapper,Efl.IContent,Efl.IText,Efl.ITextMarkup { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GridDefaultItem)) - return Efl.Ui.GridDefaultItemNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GridDefaultItem)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_grid_default_item_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public GridDefaultItem(Efl.Object parent - , System.String style = null) : - base(efl_ui_grid_default_item_class_get(), typeof(GridDefaultItem), parent) + , System.String style = null) : base(efl_ui_grid_default_item_class_get(), typeof(GridDefaultItem), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GridDefaultItem(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GridDefaultItem(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GridDefaultItem(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// No description supplied. public Efl.Ui.GridDefaultItemPartEnd End { get { - return Efl.IPartNativeInherit.efl_part_get_ptr.Value.Delegate(NativeHandle, "end") as Efl.Ui.GridDefaultItemPartEnd; + return GetPart("end") as Efl.Ui.GridDefaultItemPartEnd; } } /// No description supplied. @@ -121,31 +157,33 @@ private static object ContentChangedEvtKey = new object(); { get { - return Efl.IPartNativeInherit.efl_part_get_ptr.Value.Delegate(NativeHandle, "icon") as Efl.Ui.GridDefaultItemPartIcon; + return GetPart("icon") as Efl.Ui.GridDefaultItemPartIcon; } } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -156,7 +194,7 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -164,260 +202,390 @@ private static object ContentChangedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Markup property /// The markup-text representation set to this text. virtual public System.String GetMarkup() { - var _ret_var = Efl.ITextMarkupNativeInherit.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Markup property /// The markup-text representation set to this text. - /// - virtual public void SetMarkup( System.String markup) { - Efl.ITextMarkupNativeInherit.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), markup); + virtual public void SetMarkup(System.String markup) { + Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),markup); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// Markup property /// The markup-text representation set to this text. public System.String Markup { get { return GetMarkup(); } - set { SetMarkup( value); } + set { SetMarkup(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.GridDefaultItem.efl_ui_grid_default_item_class_get(); } -} -public class GridDefaultItemNativeInherit : Efl.Ui.GridItemNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_text_markup_get_static_delegate == null) - efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); - if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate)}); - if (efl_text_markup_set_static_delegate == null) - efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); - if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.GridDefaultItem.efl_ui_grid_default_item_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.GridItem.NativeMethods { - return Efl.Ui.GridDefaultItem.efl_ui_grid_default_item_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((GridDefaultItem)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((GridDefaultItem)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } + if (efl_text_markup_get_static_delegate == null) + { + efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((GridDefaultItem)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); } + + if (efl_text_markup_set_static_delegate == null) + { + efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.GridDefaultItem.efl_ui_grid_default_item_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((GridDefaultItem)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((GridDefaultItem)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GridDefaultItem)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((GridDefaultItem)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_content_unset_delegate efl_content_unset_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((GridDefaultItem)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((GridDefaultItem)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_get"); - private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_markup_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((GridDefaultItem)wrapper).GetMarkup(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((GridDefaultItem)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + } + } + + private static efl_text_set_delegate efl_text_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); + + private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_markup_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((GridDefaultItem)wrapper).GetMarkup(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; + private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; - private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_set"); - private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((GridDefaultItem)wrapper).SetMarkup( markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); + public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); + + private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((GridDefaultItem)wrapper).SetMarkup(markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); + } } - } - private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + + private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item_part_end.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item_part_end.eo.cs index 72b295d..da53461 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item_part_end.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item_part_end.eo.cs @@ -3,248 +3,347 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Grid Default Item internal content of end part class -[GridDefaultItemPartEndNativeInherit] +[Efl.Ui.GridDefaultItemPartEnd.NativeMethods] public class GridDefaultItemPartEnd : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GridDefaultItemPartEnd)) - return Efl.Ui.GridDefaultItemPartEndNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GridDefaultItemPartEnd)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_grid_default_item_part_end_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public GridDefaultItemPartEnd(Efl.Object parent= null - ) : - base(efl_ui_grid_default_item_part_end_class_get(), typeof(GridDefaultItemPartEnd), parent) + ) : base(efl_ui_grid_default_item_part_end_class_get(), typeof(GridDefaultItemPartEnd), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GridDefaultItemPartEnd(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GridDefaultItemPartEnd(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GridDefaultItemPartEnd(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.GridDefaultItemPartEnd.efl_ui_grid_default_item_part_end_class_get(); } -} -public class GridDefaultItemPartEndNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.GridDefaultItemPartEnd.efl_ui_grid_default_item_part_end_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.GridDefaultItemPartEnd.efl_ui_grid_default_item_part_end_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((GridDefaultItemPartEnd)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.GridDefaultItemPartEnd.efl_ui_grid_default_item_part_end_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((GridDefaultItemPartEnd)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((GridDefaultItemPartEnd)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GridDefaultItemPartEnd)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((GridDefaultItemPartEnd)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((GridDefaultItemPartEnd)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item_part_icon.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item_part_icon.eo.cs index a7f19dd..64d7a08 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item_part_icon.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item_part_icon.eo.cs @@ -3,248 +3,347 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Grid Default Item internal content of icon part class -[GridDefaultItemPartIconNativeInherit] +[Efl.Ui.GridDefaultItemPartIcon.NativeMethods] public class GridDefaultItemPartIcon : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GridDefaultItemPartIcon)) - return Efl.Ui.GridDefaultItemPartIconNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GridDefaultItemPartIcon)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_grid_default_item_part_icon_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public GridDefaultItemPartIcon(Efl.Object parent= null - ) : - base(efl_ui_grid_default_item_part_icon_class_get(), typeof(GridDefaultItemPartIcon), parent) + ) : base(efl_ui_grid_default_item_part_icon_class_get(), typeof(GridDefaultItemPartIcon), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GridDefaultItemPartIcon(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GridDefaultItemPartIcon(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GridDefaultItemPartIcon(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.GridDefaultItemPartIcon.efl_ui_grid_default_item_part_icon_class_get(); } -} -public class GridDefaultItemPartIconNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.GridDefaultItemPartIcon.efl_ui_grid_default_item_part_icon_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.GridDefaultItemPartIcon.efl_ui_grid_default_item_part_icon_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((GridDefaultItemPartIcon)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.GridDefaultItemPartIcon.efl_ui_grid_default_item_part_icon_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((GridDefaultItemPartIcon)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((GridDefaultItemPartIcon)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GridDefaultItemPartIcon)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((GridDefaultItemPartIcon)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((GridDefaultItemPartIcon)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_item.eo.cs index 1b0bc84..2e370c9 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_item.eo.cs @@ -3,39 +3,54 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[GridItemNativeInherit] +namespace Efl { + +namespace Ui { + +[Efl.Ui.GridItem.NativeMethods] public abstract class GridItem : Efl.Ui.Item, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (GridItem)) - return Efl.Ui.GridItemNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GridItem)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_grid_item_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public GridItem(Efl.Object parent - , System.String style = null) : - base(efl_ui_grid_item_class_get(), typeof(GridItem), parent) + , System.String style = null) : base(efl_ui_grid_item_class_get(), typeof(GridItem), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected GridItem(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class GridItemRealized : GridItem { @@ -43,52 +58,72 @@ public abstract class GridItem : Efl.Ui.Item, Efl.Eo.IWrapper { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected GridItem(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected GridItem(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.GridItem.efl_ui_grid_item_class_get(); } -} -public class GridItemNativeInherit : Efl.Ui.ItemNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.GridItem.efl_ui_grid_item_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Item.NativeMethods { - return Efl.Ui.GridItem.efl_ui_grid_item_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.GridItem.efl_ui_grid_item_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_homogeneous_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_homogeneous_model.eo.cs deleted file mode 100644 index e7941ad..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_homogeneous_model.eo.cs +++ /dev/null @@ -1,95 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Ui { -/// Class to be used to store object item size for List/Grid View. -/// This model provides the properties "item.width" and "item.height" which have the same value for all siblings of this object. The first sibling that defines "self.width" and "self.height" set them for all other siblings and also set "item.width" and "item.height" for the parent (See ). -/// -/// Subsequent attempts to set "self.width" or "self.height" will fail with a Read Only error code. -/// -/// The properties "total.width" and "total.height" are computed from the number of node, the "self.width" and "self.height" assuming that the View is a vertical list. -[HomogeneousModelNativeInherit] -public class HomogeneousModel : Efl.Ui.SizeModel, Efl.Eo.IWrapper -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (HomogeneousModel)) - return Efl.Ui.HomogeneousModelNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_homogeneous_model_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Model that is/will be See - ///Position of this object in the parent model. See - public HomogeneousModel(Efl.Object parent - , Efl.IModel model, uint? index = null) : - base(efl_ui_homogeneous_model_class_get(), typeof(HomogeneousModel), parent) - { - if (Efl.Eo.Globals.ParamHelperCheck(model)) - SetModel(Efl.Eo.Globals.GetParamHelper(model)); - if (Efl.Eo.Globals.ParamHelperCheck(index)) - SetIndex(Efl.Eo.Globals.GetParamHelper(index)); - FinishInstantiation(); - } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - protected HomogeneousModel(System.IntPtr raw) : base(raw) - { - RegisterEventProxies(); - } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected HomogeneousModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.HomogeneousModel.efl_ui_homogeneous_model_class_get(); - } -} -public class HomogeneousModelNativeInherit : Efl.Ui.SizeModelNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.HomogeneousModel.efl_ui_homogeneous_model_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.HomogeneousModel.efl_ui_homogeneous_model_class_get(); - } -} -} } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_i18n.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_i18n.eo.cs index 7de1831..88e6581 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_i18n.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_i18n.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// A common Internationalization interface for UI objects. -[II18nNativeInherit] +[Efl.Ui.II18nConcrete.NativeMethods] public interface II18n : Efl.Eo.IWrapper, IDisposable { @@ -17,8 +21,7 @@ bool GetMirrored(); /// Whether this object should be mirrored. /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). /// true for RTL, false for LTR (default). -/// -void SetMirrored( bool rtl); +void SetMirrored(bool rtl); /// Whether the property should be set automatically. /// If enabled, the system or application configuration will be used to set the value of . /// @@ -30,15 +33,13 @@ bool GetMirroredAutomatic(); /// /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. /// Whether the widget uses automatic mirroring -/// -void SetMirroredAutomatic( bool automatic); +void SetMirroredAutomatic(bool automatic); /// Gets the language for this object. /// The current language. System.String GetLanguage(); /// Sets the language for this object. /// The current language. -/// -void SetLanguage( System.String language); +void SetLanguage(System.String language); /// Whether this object should be mirrored. /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). /// true for RTL, false for LTR (default). @@ -69,82 +70,116 @@ II18n { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (II18nConcrete)) - return Efl.Ui.II18nNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(II18nConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_i18n_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private II18nConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~II18nConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Whether this object should be mirrored. /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). /// true for RTL, false for LTR (default). public bool GetMirrored() { - var _ret_var = Efl.Ui.II18nNativeInherit.efl_ui_mirrored_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether this object should be mirrored. /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). /// true for RTL, false for LTR (default). - /// - public void SetMirrored( bool rtl) { - Efl.Ui.II18nNativeInherit.efl_ui_mirrored_set_ptr.Value.Delegate(this.NativeHandle, rtl); + public void SetMirrored(bool rtl) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_set_ptr.Value.Delegate(this.NativeHandle,rtl); Eina.Error.RaiseIfUnhandledException(); } /// Whether the property should be set automatically. @@ -153,7 +188,7 @@ II18n /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. /// Whether the widget uses automatic mirroring public bool GetMirroredAutomatic() { - var _ret_var = Efl.Ui.II18nNativeInherit.efl_ui_mirrored_automatic_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -162,23 +197,21 @@ II18n /// /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. /// Whether the widget uses automatic mirroring - /// - public void SetMirroredAutomatic( bool automatic) { - Efl.Ui.II18nNativeInherit.efl_ui_mirrored_automatic_set_ptr.Value.Delegate(this.NativeHandle, automatic); + public void SetMirroredAutomatic(bool automatic) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_set_ptr.Value.Delegate(this.NativeHandle,automatic); Eina.Error.RaiseIfUnhandledException(); } /// Gets the language for this object. /// The current language. public System.String GetLanguage() { - var _ret_var = Efl.Ui.II18nNativeInherit.efl_ui_language_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the language for this object. /// The current language. - /// - public void SetLanguage( System.String language) { - Efl.Ui.II18nNativeInherit.efl_ui_language_set_ptr.Value.Delegate(this.NativeHandle, language); + public void SetLanguage(System.String language) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_set_ptr.Value.Delegate(this.NativeHandle,language); Eina.Error.RaiseIfUnhandledException(); } /// Whether this object should be mirrored. @@ -186,7 +219,7 @@ II18n /// true for RTL, false for LTR (default). public bool Mirrored { get { return GetMirrored(); } - set { SetMirrored( value); } + set { SetMirrored(value); } } /// Whether the property should be set automatically. /// If enabled, the system or application configuration will be used to set the value of . @@ -195,205 +228,319 @@ II18n /// Whether the widget uses automatic mirroring public bool MirroredAutomatic { get { return GetMirroredAutomatic(); } - set { SetMirroredAutomatic( value); } + set { SetMirroredAutomatic(value); } } /// The (human) language for this object. /// The current language. public System.String Language { get { return GetLanguage(); } - set { SetLanguage( value); } + set { SetLanguage(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.II18nConcrete.efl_ui_i18n_interface_get(); } -} -public class II18nNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_mirrored_get_static_delegate == null) - efl_ui_mirrored_get_static_delegate = new efl_ui_mirrored_get_delegate(mirrored_get); - if (methods.FirstOrDefault(m => m.Name == "GetMirrored") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_get_static_delegate)}); - if (efl_ui_mirrored_set_static_delegate == null) - efl_ui_mirrored_set_static_delegate = new efl_ui_mirrored_set_delegate(mirrored_set); - if (methods.FirstOrDefault(m => m.Name == "SetMirrored") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_set_static_delegate)}); - if (efl_ui_mirrored_automatic_get_static_delegate == null) - efl_ui_mirrored_automatic_get_static_delegate = new efl_ui_mirrored_automatic_get_delegate(mirrored_automatic_get); - if (methods.FirstOrDefault(m => m.Name == "GetMirroredAutomatic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_get_static_delegate)}); - if (efl_ui_mirrored_automatic_set_static_delegate == null) - efl_ui_mirrored_automatic_set_static_delegate = new efl_ui_mirrored_automatic_set_delegate(mirrored_automatic_set); - if (methods.FirstOrDefault(m => m.Name == "SetMirroredAutomatic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_set_static_delegate)}); - if (efl_ui_language_get_static_delegate == null) - efl_ui_language_get_static_delegate = new efl_ui_language_get_delegate(language_get); - if (methods.FirstOrDefault(m => m.Name == "GetLanguage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_get_static_delegate)}); - if (efl_ui_language_set_static_delegate == null) - efl_ui_language_set_static_delegate = new efl_ui_language_set_delegate(language_set); - if (methods.FirstOrDefault(m => m.Name == "SetLanguage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.II18nConcrete.efl_ui_i18n_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.II18nConcrete.efl_ui_i18n_interface_get(); - } + 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_mirrored_get_static_delegate == null) + { + efl_ui_mirrored_get_static_delegate = new efl_ui_mirrored_get_delegate(mirrored_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_mirrored_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_get_static_delegate) }); + } + if (efl_ui_mirrored_set_static_delegate == null) + { + efl_ui_mirrored_set_static_delegate = new efl_ui_mirrored_set_delegate(mirrored_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_mirrored_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_get"); - private static bool mirrored_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_mirrored_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((II18n)wrapper).GetMirrored(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_mirrored_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_mirrored_automatic_get_static_delegate == null) + { + efl_ui_mirrored_automatic_get_static_delegate = new efl_ui_mirrored_automatic_get_delegate(mirrored_automatic_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_get_static_delegate) }); + } + + if (efl_ui_mirrored_automatic_set_static_delegate == null) + { + efl_ui_mirrored_automatic_set_static_delegate = new efl_ui_mirrored_automatic_set_delegate(mirrored_automatic_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_set_static_delegate) }); + } + + if (efl_ui_language_get_static_delegate == null) + { + efl_ui_language_get_static_delegate = new efl_ui_language_get_delegate(language_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_get_static_delegate) }); + } + + if (efl_ui_language_set_static_delegate == null) + { + efl_ui_language_set_static_delegate = new efl_ui_language_set_delegate(language_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_set_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.II18nConcrete.efl_ui_i18n_interface_get(); } - } - private static efl_ui_mirrored_get_delegate efl_ui_mirrored_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_mirrored_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool rtl); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_mirrored_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool rtl); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_set"); - private static void mirrored_set(System.IntPtr obj, System.IntPtr pd, bool rtl) - { - Eina.Log.Debug("function efl_ui_mirrored_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((II18n)wrapper).SetMirrored( rtl); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_get"); + + private static bool mirrored_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((II18n)wrapper).GetMirrored(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_mirrored_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_mirrored_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rtl); } - } - private static efl_ui_mirrored_set_delegate efl_ui_mirrored_set_static_delegate; + private static efl_ui_mirrored_get_delegate efl_ui_mirrored_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_mirrored_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_mirrored_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool rtl); + + public delegate void efl_ui_mirrored_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool rtl); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_mirrored_automatic_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_automatic_get"); - private static bool mirrored_automatic_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_mirrored_automatic_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((II18n)wrapper).GetMirroredAutomatic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_set"); + + private static void mirrored_set(System.IntPtr obj, System.IntPtr pd, bool rtl) + { + Eina.Log.Debug("function efl_ui_mirrored_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((II18n)wrapper).SetMirrored(rtl); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_mirrored_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rtl); } - return _ret_var; - } else { - return efl_ui_mirrored_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_mirrored_automatic_get_delegate efl_ui_mirrored_automatic_get_static_delegate; + private static efl_ui_mirrored_set_delegate efl_ui_mirrored_set_static_delegate; - private delegate void efl_ui_mirrored_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_automatic_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_get"); + + private static bool mirrored_automatic_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((II18n)wrapper).GetMirroredAutomatic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_mirrored_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_automatic_set"); - private static void mirrored_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) - { - Eina.Log.Debug("function efl_ui_mirrored_automatic_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((II18n)wrapper).SetMirroredAutomatic( automatic); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_mirrored_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); + else + { + return efl_ui_mirrored_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_mirrored_automatic_set_delegate efl_ui_mirrored_automatic_set_static_delegate; + private static efl_ui_mirrored_automatic_get_delegate efl_ui_mirrored_automatic_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_language_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_mirrored_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + + public delegate void efl_ui_mirrored_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_language_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_language_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_language_get"); - private static System.String language_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_language_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((II18n)wrapper).GetLanguage(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_set"); + + private static void mirrored_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((II18n)wrapper).SetMirroredAutomatic(automatic); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_mirrored_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); } + } + + private static efl_ui_mirrored_automatic_set_delegate efl_ui_mirrored_automatic_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_language_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_language_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_language_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_get"); + + private static System.String language_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_language_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((II18n)wrapper).GetLanguage(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_language_get_delegate efl_ui_language_get_static_delegate; + private static efl_ui_language_get_delegate efl_ui_language_get_static_delegate; - private delegate void efl_ui_language_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + private delegate void efl_ui_language_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + public delegate void efl_ui_language_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); - public delegate void efl_ui_language_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); - public static Efl.Eo.FunctionWrapper efl_ui_language_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_language_set"); - private static void language_set(System.IntPtr obj, System.IntPtr pd, System.String language) - { - Eina.Log.Debug("function efl_ui_language_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((II18n)wrapper).SetLanguage( language); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_language_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_set"); + + private static void language_set(System.IntPtr obj, System.IntPtr pd, System.String language) + { + Eina.Log.Debug("function efl_ui_language_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((II18n)wrapper).SetLanguage(language); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), language); } - } else { - efl_ui_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), language); } - } - private static efl_ui_language_set_delegate efl_ui_language_set_static_delegate; + + private static efl_ui_language_set_delegate efl_ui_language_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_image.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_image.eo.cs index 73fc353..deb3dfd 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_image.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_image.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + ///Event argument wrapper for event . public class ImageDropEvt_Args : EventArgs { ///Actual event payload. @@ -12,1193 +16,1431 @@ public class ImageDropEvt_Args : EventArgs { } /// Efl UI image class /// When loading images from a file, the property can be used to access different streams. For example, when accessing Evas image caches. -[ImageNativeInherit] +[Efl.Ui.Image.NativeMethods] public class Image : Efl.Ui.Widget, Efl.Eo.IWrapper,Efl.IFile,Efl.IOrientation,Efl.IPlayer,Efl.Gfx.IImage,Efl.Gfx.IImageLoadController,Efl.Gfx.IView,Efl.Layout.ICalc,Efl.Layout.IGroup,Efl.Layout.ISignal,Efl.Ui.IClickable,Efl.Ui.IDraggable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Image)) - return Efl.Ui.ImageNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Image)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_image_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Image(Efl.Object parent - , System.String style = null) : - base(efl_ui_image_class_get(), typeof(Image), parent) + , System.String style = null) : base(efl_ui_image_class_get(), typeof(Image), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Image(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Image(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Image(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object DropEvtKey = new object(); + /// Called when drop from drag and drop happened public event EventHandler DropEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ImageDropEvt_Args args = new Efl.Ui.ImageDropEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_IMAGE_EVENT_DROP"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DropEvt_delegate)) { - eventHandlers.AddHandler(DropEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_IMAGE_EVENT_DROP"; - if (RemoveNativeEventHandler(key, this.evt_DropEvt_delegate)) { - eventHandlers.RemoveHandler(DropEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DropEvt. - public void On_DropEvt(Efl.Ui.ImageDropEvt_Args e) + public void OnDropEvt(Efl.Ui.ImageDropEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DropEvtKey]; + var key = "_EFL_UI_IMAGE_EVENT_DROP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DropEvt_delegate; - private void on_DropEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ImageDropEvt_Args args = new Efl.Ui.ImageDropEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_DropEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); } } - -private static object ImagePreloadEvtKey = new object(); /// Image data has been preloaded. public event EventHandler ImagePreloadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImagePreloadEvt_delegate)) { - eventHandlers.AddHandler(ImagePreloadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; - if (RemoveNativeEventHandler(key, this.evt_ImagePreloadEvt_delegate)) { - eventHandlers.RemoveHandler(ImagePreloadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImagePreloadEvt. - public void On_ImagePreloadEvt(EventArgs e) + public void OnImagePreloadEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImagePreloadEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImagePreloadEvt_delegate; - private void on_ImagePreloadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ImagePreloadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ImageResizeEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Image was resized (its pixel data). public event EventHandler ImageResizeEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImageResizeEvt_delegate)) { - eventHandlers.AddHandler(ImageResizeEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; - if (RemoveNativeEventHandler(key, this.evt_ImageResizeEvt_delegate)) { - eventHandlers.RemoveHandler(ImageResizeEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImageResizeEvt. - public void On_ImageResizeEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImageResizeEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImageResizeEvt_delegate; - private void on_ImageResizeEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnImageResizeEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ImageResizeEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ImageUnloadEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Image data has been unloaded (by some mechanism in EFL that threw out the original image data). public event EventHandler ImageUnloadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImageUnloadEvt_delegate)) { - eventHandlers.AddHandler(ImageUnloadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; - if (RemoveNativeEventHandler(key, this.evt_ImageUnloadEvt_delegate)) { - eventHandlers.RemoveHandler(ImageUnloadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImageUnloadEvt. - public void On_ImageUnloadEvt(EventArgs e) + public void OnImageUnloadEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImageUnloadEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImageUnloadEvt_delegate; - private void on_ImageUnloadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ImageUnloadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LoadDoneEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when he image was loaded public event EventHandler LoadDoneEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LoadDoneEvt_delegate)) { - eventHandlers.AddHandler(LoadDoneEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; - if (RemoveNativeEventHandler(key, this.evt_LoadDoneEvt_delegate)) { - eventHandlers.RemoveHandler(LoadDoneEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LoadDoneEvt. - public void On_LoadDoneEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadDoneEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadDoneEvt_delegate; - private void on_LoadDoneEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLoadDoneEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_LoadDoneEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LoadErrorEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when an error happened during image loading public event EventHandler LoadErrorEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args args = new Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args(); + args.arg = (Eina.Error)Marshal.PtrToStructure(evt.Info, typeof(Eina.Error)); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LoadErrorEvt_delegate)) { - eventHandlers.AddHandler(LoadErrorEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; - if (RemoveNativeEventHandler(key, this.evt_LoadErrorEvt_delegate)) { - eventHandlers.RemoveHandler(LoadErrorEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LoadErrorEvt. - public void On_LoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) + public void OnLoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadErrorEvtKey]; + var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadErrorEvt_delegate; - private void on_LoadErrorEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args args = new Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args(); - args.arg = (Eina.Error)Marshal.PtrToStructure(evt.Info, typeof(Eina.Error)); - try { - On_LoadErrorEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc((int)e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object RecalcEvtKey = new object(); /// The layout was recalculated. /// (Since EFL 1.22) public event EventHandler RecalcEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LAYOUT_EVENT_RECALC"; - if (AddNativeEventHandler(efl.Libs.Edje, key, this.evt_RecalcEvt_delegate)) { - eventHandlers.AddHandler(RecalcEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Edje, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LAYOUT_EVENT_RECALC"; - if (RemoveNativeEventHandler(key, this.evt_RecalcEvt_delegate)) { - eventHandlers.RemoveHandler(RecalcEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Edje, key, value); } } } ///Method to raise event RecalcEvt. - public void On_RecalcEvt(EventArgs e) + public void OnRecalcEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RecalcEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RecalcEvt_delegate; - private void on_RecalcEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_RecalcEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LAYOUT_EVENT_RECALC"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Edje, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CircularDependencyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// A circular dependency between parts of the object was found. /// (Since EFL 1.22) public event EventHandler CircularDependencyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Layout.ICalcCircularDependencyEvt_Args args = new Efl.Layout.ICalcCircularDependencyEvt_Args(); + args.arg = new Eina.Array(evt.Info, false, false); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; - if (AddNativeEventHandler(efl.Libs.Edje, key, this.evt_CircularDependencyEvt_delegate)) { - eventHandlers.AddHandler(CircularDependencyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Edje, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; - if (RemoveNativeEventHandler(key, this.evt_CircularDependencyEvt_delegate)) { - eventHandlers.RemoveHandler(CircularDependencyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Edje, key, value); } } } ///Method to raise event CircularDependencyEvt. - public void On_CircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CircularDependencyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CircularDependencyEvt_delegate; - private void on_CircularDependencyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) { - Efl.Layout.ICalcCircularDependencyEvt_Args args = new Efl.Layout.ICalcCircularDependencyEvt_Args(); - args.arg = new Eina.Array(evt.Info, false, false); - try { - On_CircularDependencyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Edje, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedEvtKey = new object(); + IntPtr info = e.arg.Handle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) + public void OnClickedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedDoubleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) + public void OnClickedTripleEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRepeatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when drag operation starts public event EventHandler DragEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragEvt_Args args = new Efl.Ui.IDraggableDragEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragEvt_delegate)) { - eventHandlers.AddHandler(DragEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG"; - if (RemoveNativeEventHandler(key, this.evt_DragEvt_delegate)) { - eventHandlers.RemoveHandler(DragEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragEvt. - public void On_DragEvt(Efl.Ui.IDraggableDragEvt_Args e) + public void OnDragEvt(Efl.Ui.IDraggableDragEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragEvt_delegate; - private void on_DragEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDraggableDragEvt_Args args = new Efl.Ui.IDraggableDragEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_DRAG"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragStartEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when drag started public event EventHandler DragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStartEvt_delegate)) { - eventHandlers.AddHandler(DragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_DragStartEvt_delegate)) { - eventHandlers.RemoveHandler(DragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStartEvt. - public void On_DragStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStartEvt_delegate; - private void on_DragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDragStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_DragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when drag stopped public event EventHandler DragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragStopEvt_Args args = new Efl.Ui.IDraggableDragStopEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStopEvt_delegate)) { - eventHandlers.AddHandler(DragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_DragStopEvt_delegate)) { - eventHandlers.RemoveHandler(DragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStopEvt. - public void On_DragStopEvt(Efl.Ui.IDraggableDragStopEvt_Args e) + public void OnDragStopEvt(Efl.Ui.IDraggableDragStopEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStopEvt_delegate; - private void on_DragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDraggableDragStopEvt_Args args = new Efl.Ui.IDraggableDragStopEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragEndEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when drag operation ends public event EventHandler DragEndEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_END"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragEndEvt_delegate)) { - eventHandlers.AddHandler(DragEndEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_END"; - if (RemoveNativeEventHandler(key, this.evt_DragEndEvt_delegate)) { - eventHandlers.RemoveHandler(DragEndEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragEndEvt. - public void On_DragEndEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragEndEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragEndEvt_delegate; - private void on_DragEndEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDragEndEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_DragEndEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_DRAG_END"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragStartUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when drag starts into up direction public event EventHandler DragStartUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragStartUpEvt_Args args = new Efl.Ui.IDraggableDragStartUpEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_START_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStartUpEvt_delegate)) { - eventHandlers.AddHandler(DragStartUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_START_UP"; - if (RemoveNativeEventHandler(key, this.evt_DragStartUpEvt_delegate)) { - eventHandlers.RemoveHandler(DragStartUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStartUpEvt. - public void On_DragStartUpEvt(Efl.Ui.IDraggableDragStartUpEvt_Args e) + public void OnDragStartUpEvt(Efl.Ui.IDraggableDragStartUpEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStartUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStartUpEvt_delegate; - private void on_DragStartUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDraggableDragStartUpEvt_Args args = new Efl.Ui.IDraggableDragStartUpEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragStartUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_DRAG_START_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragStartDownEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when drag starts into down direction public event EventHandler DragStartDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragStartDownEvt_Args args = new Efl.Ui.IDraggableDragStartDownEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_START_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStartDownEvt_delegate)) { - eventHandlers.AddHandler(DragStartDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_START_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_DragStartDownEvt_delegate)) { - eventHandlers.RemoveHandler(DragStartDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStartDownEvt. - public void On_DragStartDownEvt(Efl.Ui.IDraggableDragStartDownEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStartDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStartDownEvt_delegate; - private void on_DragStartDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDragStartDownEvt(Efl.Ui.IDraggableDragStartDownEvt_Args e) { - Efl.Ui.IDraggableDragStartDownEvt_Args args = new Efl.Ui.IDraggableDragStartDownEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragStartDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_DRAG_START_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragStartRightEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when drag starts into right direction public event EventHandler DragStartRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragStartRightEvt_Args args = new Efl.Ui.IDraggableDragStartRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_START_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStartRightEvt_delegate)) { - eventHandlers.AddHandler(DragStartRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_START_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_DragStartRightEvt_delegate)) { - eventHandlers.RemoveHandler(DragStartRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStartRightEvt. - public void On_DragStartRightEvt(Efl.Ui.IDraggableDragStartRightEvt_Args e) + public void OnDragStartRightEvt(Efl.Ui.IDraggableDragStartRightEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStartRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStartRightEvt_delegate; - private void on_DragStartRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDraggableDragStartRightEvt_Args args = new Efl.Ui.IDraggableDragStartRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragStartRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_DRAG_START_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragStartLeftEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when drag starts into left direction public event EventHandler DragStartLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDraggableDragStartLeftEvt_Args args = new Efl.Ui.IDraggableDragStartLeftEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_DRAG_START_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DragStartLeftEvt_delegate)) { - eventHandlers.AddHandler(DragStartLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_DRAG_START_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_DragStartLeftEvt_delegate)) { - eventHandlers.RemoveHandler(DragStartLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DragStartLeftEvt. - public void On_DragStartLeftEvt(Efl.Ui.IDraggableDragStartLeftEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragStartLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragStartLeftEvt_delegate; - private void on_DragStartLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDragStartLeftEvt(Efl.Ui.IDraggableDragStartLeftEvt_Args e) { - Efl.Ui.IDraggableDragStartLeftEvt_Args args = new Efl.Ui.IDraggableDragStartLeftEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_DragStartLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_DRAG_START_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_DropEvt_delegate = new Efl.EventCb(on_DropEvt_NativeCallback); - evt_ImagePreloadEvt_delegate = new Efl.EventCb(on_ImagePreloadEvt_NativeCallback); - evt_ImageResizeEvt_delegate = new Efl.EventCb(on_ImageResizeEvt_NativeCallback); - evt_ImageUnloadEvt_delegate = new Efl.EventCb(on_ImageUnloadEvt_NativeCallback); - evt_LoadDoneEvt_delegate = new Efl.EventCb(on_LoadDoneEvt_NativeCallback); - evt_LoadErrorEvt_delegate = new Efl.EventCb(on_LoadErrorEvt_NativeCallback); - evt_RecalcEvt_delegate = new Efl.EventCb(on_RecalcEvt_NativeCallback); - evt_CircularDependencyEvt_delegate = new Efl.EventCb(on_CircularDependencyEvt_NativeCallback); - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); - evt_DragEvt_delegate = new Efl.EventCb(on_DragEvt_NativeCallback); - evt_DragStartEvt_delegate = new Efl.EventCb(on_DragStartEvt_NativeCallback); - evt_DragStopEvt_delegate = new Efl.EventCb(on_DragStopEvt_NativeCallback); - evt_DragEndEvt_delegate = new Efl.EventCb(on_DragEndEvt_NativeCallback); - evt_DragStartUpEvt_delegate = new Efl.EventCb(on_DragStartUpEvt_NativeCallback); - evt_DragStartDownEvt_delegate = new Efl.EventCb(on_DragStartDownEvt_NativeCallback); - evt_DragStartRightEvt_delegate = new Efl.EventCb(on_DragStartRightEvt_NativeCallback); - evt_DragStartLeftEvt_delegate = new Efl.EventCb(on_DragStartLeftEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Enable or disable scaling up or down the internal image. /// If true, the internal image might be scaled up if necessary according to the scale type. if false, the internal image is not scaled up no matter what the scale type is. /// If true, the internal image might be scaled down if necessary according to the scale type. if false, the internal image is not scaled down no matter what the scale type is. - /// - virtual public void GetScalable( out bool scale_up, out bool scale_down) { - Efl.Ui.ImageNativeInherit.efl_ui_image_scalable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out scale_up, out scale_down); + virtual public void GetScalable(out bool scale_up, out bool scale_down) { + Efl.Ui.Image.NativeMethods.efl_ui_image_scalable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out scale_up, out scale_down); Eina.Error.RaiseIfUnhandledException(); } /// Enable or disable scaling up or down the internal image. /// If true, the internal image might be scaled up if necessary according to the scale type. if false, the internal image is not scaled up no matter what the scale type is. /// If true, the internal image might be scaled down if necessary according to the scale type. if false, the internal image is not scaled down no matter what the scale type is. - /// - virtual public void SetScalable( bool scale_up, bool scale_down) { - Efl.Ui.ImageNativeInherit.efl_ui_image_scalable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale_up, scale_down); + virtual public void SetScalable(bool scale_up, bool scale_down) { + Efl.Ui.Image.NativeMethods.efl_ui_image_scalable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale_up, scale_down); Eina.Error.RaiseIfUnhandledException(); } /// Controls how the internal image is positioned inside an image object. /// Alignment in the horizontal axis (0 <= align_x <= 1). /// Alignment in the vertical axis (0 <= align_y <= 1). - /// - virtual public void GetAlign( out double align_x, out double align_y) { - Efl.Ui.ImageNativeInherit.efl_ui_image_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_x, out align_y); + virtual public void GetAlign(out double align_x, out double align_y) { + Efl.Ui.Image.NativeMethods.efl_ui_image_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out align_x, out align_y); Eina.Error.RaiseIfUnhandledException(); } /// Controls how the internal image is positioned inside an image object. /// Alignment in the horizontal axis (0 <= align_x <= 1). /// Alignment in the vertical axis (0 <= align_y <= 1). - /// - virtual public void SetAlign( double align_x, double align_y) { - Efl.Ui.ImageNativeInherit.efl_ui_image_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_x, align_y); + virtual public void SetAlign(double align_x, double align_y) { + Efl.Ui.Image.NativeMethods.efl_ui_image_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),align_x, align_y); Eina.Error.RaiseIfUnhandledException(); } /// Get the icon name of image set by icon standard names. /// If the image was set using efl_file_set() instead of , then this function will return null. /// The icon name virtual public System.String GetIcon() { - var _ret_var = Efl.Ui.ImageNativeInherit.efl_ui_image_icon_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Image.NativeMethods.efl_ui_image_icon_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1214,8 +1456,8 @@ private static object DragStartLeftEvtKey = new object(); /// See also . /// The icon name /// true on success, false on error - virtual public bool SetIcon( System.String name) { - var _ret_var = Efl.Ui.ImageNativeInherit.efl_ui_image_icon_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public bool SetIcon(System.String name) { + var _ret_var = Efl.Ui.Image.NativeMethods.efl_ui_image_icon_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1223,7 +1465,7 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The handle to the that will be used virtual public Eina.File GetMmap() { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1232,8 +1474,8 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise - virtual public Eina.Error SetMmap( Eina.File f) { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public Eina.Error SetMmap(Eina.File f) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1242,7 +1484,7 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The file path. virtual public System.String GetFile() { - var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1251,8 +1493,8 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise - virtual public Eina.Error SetFile( System.String file) { - var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file); + virtual public Eina.Error SetFile(System.String file) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1263,7 +1505,7 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. virtual public System.String GetKey() { - var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1271,16 +1513,15 @@ private static object DragStartLeftEvtKey = new object(); /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. - /// - virtual public void SetKey( System.String key) { - Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public void SetKey(System.String key) { + Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. virtual public bool GetLoaded() { - var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1291,7 +1532,7 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// 0 on success, error code otherwise virtual public Eina.Error Load() { - var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1300,86 +1541,81 @@ private static object DragStartLeftEvtKey = new object(); /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) - /// virtual public void Unload() { - Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Control the orientation of a given object. /// This can be used to set the rotation on an image or a window, for instance. /// The rotation angle (CCW), see . virtual public Efl.Orient GetOrientation() { - var _ret_var = Efl.IOrientationNativeInherit.efl_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IOrientationConcrete.NativeMethods.efl_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the orientation of a given object. /// This can be used to set the rotation on an image or a window, for instance. /// The rotation angle (CCW), see . - /// - virtual public void SetOrientation( Efl.Orient dir) { - Efl.IOrientationNativeInherit.efl_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetOrientation(Efl.Orient dir) { + Efl.IOrientationConcrete.NativeMethods.efl_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// Control the flip of the given image /// Use this function to change how your image is to be flipped: vertically or horizontally or transpose or traverse. /// Flip method virtual public Efl.Flip GetFlip() { - var _ret_var = Efl.IOrientationNativeInherit.efl_orientation_flip_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IOrientationConcrete.NativeMethods.efl_orientation_flip_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the flip of the given image /// Use this function to change how your image is to be flipped: vertically or horizontally or transpose or traverse. /// Flip method - /// - virtual public void SetFlip( Efl.Flip flip) { - Efl.IOrientationNativeInherit.efl_orientation_flip_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), flip); + virtual public void SetFlip(Efl.Flip flip) { + Efl.IOrientationConcrete.NativeMethods.efl_orientation_flip_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),flip); Eina.Error.RaiseIfUnhandledException(); } /// Whether or not the playable can be played. /// true if the object have playable data, false otherwise virtual public bool GetPlayable() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get play/pause state of the media file. /// true if playing, false otherwise. virtual public bool GetPlay() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_play_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set play/pause state of the media file. /// This functions sets the currently playing status of the video. Using this function to play or pause the video doesn't alter it's current position. /// true if playing, false otherwise. - /// - virtual public void SetPlay( bool play) { - Efl.IPlayerNativeInherit.efl_player_play_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), play); + virtual public void SetPlay(bool play) { + Efl.IPlayerConcrete.NativeMethods.efl_player_play_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),play); Eina.Error.RaiseIfUnhandledException(); } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). virtual public double GetPos() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the position in the media file. /// This functions sets the current position of the media file to "sec", this only works on seekable streams. Setting the position doesn't change the playing state of the media file. /// The position (in seconds). - /// - virtual public void SetPos( double sec) { - Efl.IPlayerNativeInherit.efl_player_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sec); + virtual public void SetPos(double sec) { + Efl.IPlayerConcrete.NativeMethods.efl_player_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sec); Eina.Error.RaiseIfUnhandledException(); } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. /// The progress within the [0, 1] range. virtual public double GetProgress() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_progress_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_progress_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1387,72 +1623,67 @@ private static object DragStartLeftEvtKey = new object(); /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. virtual public double GetPlaySpeed() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_play_speed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the play speed of the media file. /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. - /// - virtual public void SetPlaySpeed( double speed) { - Efl.IPlayerNativeInherit.efl_player_play_speed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), speed); + virtual public void SetPlaySpeed(double speed) { + Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),speed); Eina.Error.RaiseIfUnhandledException(); } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level virtual public double GetVolume() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_volume_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_volume_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level - /// - virtual public void SetVolume( double volume) { - Efl.IPlayerNativeInherit.efl_player_volume_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), volume); + virtual public void SetVolume(double volume) { + Efl.IPlayerConcrete.NativeMethods.efl_player_volume_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),volume); Eina.Error.RaiseIfUnhandledException(); } /// This property controls the audio mute state. /// The mute state. true or false. virtual public bool GetMute() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_mute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_mute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This property controls the audio mute state. /// The mute state. true or false. - /// - virtual public void SetMute( bool mute) { - Efl.IPlayerNativeInherit.efl_player_mute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mute); + virtual public void SetMute(bool mute) { + Efl.IPlayerConcrete.NativeMethods.efl_player_mute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mute); Eina.Error.RaiseIfUnhandledException(); } /// Get the length of play for the media file. /// The length of the stream in seconds. virtual public double GetLength() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get whether the media file is seekable. /// true if seekable. virtual public bool GetSeekable() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Start a playing playable object. - /// virtual public void Start() { - Efl.IPlayerNativeInherit.efl_player_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPlayerConcrete.NativeMethods.efl_player_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Stop playable object. - /// virtual public void Stop() { - Efl.IPlayerNativeInherit.efl_player_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPlayerConcrete.NativeMethods.efl_player_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Whether to use high-quality image scaling algorithm for this image. @@ -1461,7 +1692,7 @@ private static object DragStartLeftEvtKey = new object(); /// true by default /// Whether to use smooth scale or not. virtual public bool GetSmoothScale() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_smooth_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1470,29 +1701,27 @@ private static object DragStartLeftEvtKey = new object(); /// /// true by default /// Whether to use smooth scale or not. - /// - virtual public void SetSmoothScale( bool smooth_scale) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_smooth_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), smooth_scale); + virtual public void SetSmoothScale(bool smooth_scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),smooth_scale); Eina.Error.RaiseIfUnhandledException(); } /// Control how the image is scaled. /// Image scale type virtual public Efl.Gfx.ImageScaleType GetScaleType() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control how the image is scaled. /// Image scale type - /// - virtual public void SetScaleType( Efl.Gfx.ImageScaleType scale_type) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale_type); + virtual public void SetScaleType(Efl.Gfx.ImageScaleType scale_type) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale_type); Eina.Error.RaiseIfUnhandledException(); } /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. virtual public double GetRatio() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_ratio_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_ratio_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1510,9 +1739,8 @@ private static object DragStartLeftEvtKey = new object(); /// The border's right width. /// The border's top height. /// The border's bottom height. - /// - virtual public void GetBorder( out int l, out int r, out int t, out int b) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out l, out r, out t, out b); + virtual public void GetBorder(out int l, out int r, out int t, out int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Dimensions of this image's border, a region that does not scale with the center area. @@ -1529,9 +1757,8 @@ private static object DragStartLeftEvtKey = new object(); /// The border's right width. /// The border's top height. /// The border's bottom height. - /// - virtual public void SetBorder( int l, int r, int t, int b) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), l, r, t, b); + virtual public void SetBorder(int l, int r, int t, int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),l, r, t, b); Eina.Error.RaiseIfUnhandledException(); } /// Scaling factor applied to the image borders. @@ -1540,7 +1767,7 @@ private static object DragStartLeftEvtKey = new object(); /// Default value is 1.0 (no scaling). /// The scale factor. virtual public double GetBorderScale() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1549,9 +1776,8 @@ private static object DragStartLeftEvtKey = new object(); /// /// Default value is 1.0 (no scaling). /// The scale factor. - /// - virtual public void SetBorderScale( double scale) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale); + virtual public void SetBorderScale(double scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale); Eina.Error.RaiseIfUnhandledException(); } /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. @@ -1560,7 +1786,7 @@ private static object DragStartLeftEvtKey = new object(); /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. virtual public Efl.Gfx.BorderFillMode GetBorderCenterFill() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_center_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1569,9 +1795,8 @@ private static object DragStartLeftEvtKey = new object(); /// /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. - /// - virtual public void SetBorderCenterFill( Efl.Gfx.BorderFillMode fill) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_center_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fill); + virtual public void SetBorderCenterFill(Efl.Gfx.BorderFillMode fill) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fill); Eina.Error.RaiseIfUnhandledException(); } /// This represents the size of the original image in pixels. @@ -1580,7 +1805,7 @@ private static object DragStartLeftEvtKey = new object(); /// This is a read-only property, and may return 0x0. /// The size in pixels. virtual public Eina.Size2D GetImageSize() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1588,84 +1813,80 @@ private static object DragStartLeftEvtKey = new object(); /// This returns #EVAS_IMAGE_CONTENT_HINT_NONE on error. /// Dynamic or static content hint, see virtual public Efl.Gfx.ImageContentHint GetContentHint() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_content_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the content hint setting of a given image object of the canvas. /// This function sets the content hint value of the given image of the canvas. For example, if you're on the GL engine and your driver implementation supports it, setting this hint to #EVAS_IMAGE_CONTENT_HINT_DYNAMIC will make it need zero copies at texture upload time, which is an "expensive" operation. /// Dynamic or static content hint, see - /// - virtual public void SetContentHint( Efl.Gfx.ImageContentHint hint) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_content_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hint); + virtual public void SetContentHint(Efl.Gfx.ImageContentHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hint); Eina.Error.RaiseIfUnhandledException(); } /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see virtual public Efl.Gfx.ImageScaleHint GetScaleHint() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the scale hint of a given image of the canvas. /// This function sets the scale hint value of the given image object in the canvas, which will affect how Evas is to cache scaled versions of its original source image. /// Scalable or static size hint, see - /// - virtual public void SetScaleHint( Efl.Gfx.ImageScaleHint hint) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hint); + virtual public void SetScaleHint(Efl.Gfx.ImageScaleHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hint); Eina.Error.RaiseIfUnhandledException(); } /// Gets the (last) file loading error for a given object. /// The load error code. virtual public Eina.Error GetImageLoadError() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_load_error_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_load_error_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Returns the requested load size. /// The image load size. virtual public Eina.Size2D GetLoadSize() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests the canvas to load the image at the given size. /// EFL will try to load an image of the requested size but does not guarantee an exact match between the request and the loaded image dimensions. /// The image load size. - /// - virtual public void SetLoadSize( Eina.Size2D size) { + virtual public void SetLoadSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Get the DPI resolution of a loaded image object in the canvas. /// This function returns the DPI resolution of the given canvas image. /// The DPI resolution. virtual public double GetLoadDpi() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the DPI resolution of an image object's source image. /// This function sets the DPI resolution of a given loaded canvas image. Most useful for the SVG image loader. /// The DPI resolution. - /// - virtual public void SetLoadDpi( double dpi) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dpi); + virtual public void SetLoadDpi(double dpi) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dpi); Eina.Error.RaiseIfUnhandledException(); } /// Indicates whether the property is supported for the current file. /// true if region load of the image is supported, false otherwise virtual public bool GetLoadRegionSupport() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Retrieve the coordinates of a given image object's selective (source image) load region. /// A region of the image. virtual public Eina.Rect GetLoadRegion() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1674,26 +1895,24 @@ private static object DragStartLeftEvtKey = new object(); /// /// Note: The image loader for the image format in question has to support selective region loading in order for this function to work. /// A region of the image. - /// - virtual public void SetLoadRegion( Eina.Rect region) { + virtual public void SetLoadRegion(Eina.Rect region) { Eina.Rect.NativeStruct _in_region = region; - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_region); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_region); Eina.Error.RaiseIfUnhandledException(); } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. virtual public bool GetLoadOrientation() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. - /// - virtual public void SetLoadOrientation( bool enable) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enable); + virtual public void SetLoadOrientation(bool enable) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enable); Eina.Error.RaiseIfUnhandledException(); } /// The scale down factor is a divider on the original image size. @@ -1704,44 +1923,40 @@ private static object DragStartLeftEvtKey = new object(); /// Powers of two (2, 4, 8) are best supported (especially with JPEG) /// The scale down dividing factor. virtual public int GetLoadScaleDown() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests the image loader to scale down by div times. Call this before starting the actual image load. /// The scale down dividing factor. - /// - virtual public void SetLoadScaleDown( int div) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), div); + virtual public void SetLoadScaleDown(int div) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),div); Eina.Error.RaiseIfUnhandledException(); } /// Initial load should skip header check and leave it all to data load /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set). /// Will be true if header is to be skipped. virtual public bool GetLoadSkipHeader() { - var _ret_var = Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the skip header state for susbsequent loads of a file. /// Will be true if header is to be skipped. - /// - virtual public void SetLoadSkipHeader( bool skip) { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), skip); + virtual public void SetLoadSkipHeader(bool skip) { + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),skip); Eina.Error.RaiseIfUnhandledException(); } /// Begin preloading an image object's image data in the background. /// Once the background task is complete the event load,done will be emitted. - /// virtual public void LoadAsyncStart() { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Cancel preloading an image object's image data in the background. /// The object should be left in a state where it has no image data. If cancel is called too late, the image will be kept in memory. - /// virtual public void LoadAsyncCancel() { - Efl.Gfx.IImageLoadControllerNativeInherit.efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IImageLoadControllerConcrete.NativeMethods.efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// The dimensions of this object's viewport. @@ -1756,7 +1971,7 @@ private static object DragStartLeftEvtKey = new object(); /// Refer to each implementing class specific documentation for more details. /// Size of the view. virtual public Eina.Size2D GetViewSize() { - var _ret_var = Efl.Gfx.IViewNativeInherit.efl_gfx_view_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IViewConcrete.NativeMethods.efl_gfx_view_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1771,26 +1986,24 @@ private static object DragStartLeftEvtKey = new object(); /// /// Refer to each implementing class specific documentation for more details. /// Size of the view. - /// - virtual public void SetViewSize( Eina.Size2D size) { + virtual public void SetViewSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IViewNativeInherit.efl_gfx_view_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Gfx.IViewConcrete.NativeMethods.efl_gfx_view_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Whether this object updates its size hints automatically. /// (Since EFL 1.22) /// Whether or not update the size hints. virtual public bool GetCalcAutoUpdateHints() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable or disable auto-update of size hints. /// (Since EFL 1.22) /// Whether or not update the size hints. - /// - virtual public void SetCalcAutoUpdateHints( bool update) { - Efl.Layout.ICalcNativeInherit.efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), update); + virtual public void SetCalcAutoUpdateHints(bool update) { + Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),update); Eina.Error.RaiseIfUnhandledException(); } /// Calculates the minimum required size for a given layout object. @@ -1802,9 +2015,9 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The minimum size constraint as input, the returned size can not be lower than this (in both directions). /// The minimum required size. - virtual public Eina.Size2D CalcSizeMin( Eina.Size2D restricted) { + virtual public Eina.Size2D CalcSizeMin(Eina.Size2D restricted) { Eina.Size2D.NativeStruct _in_restricted = restricted; - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_size_min_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_restricted); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_size_min_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_restricted); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1815,7 +2028,7 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The calculated region. virtual public Eina.Rect CalcPartsExtends() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_parts_extends_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_parts_extends_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1826,7 +2039,7 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The frozen state or 0 on error virtual public int FreezeCalc() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1839,7 +2052,7 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The frozen state or 0 if the object is not frozen or on error. virtual public int ThawCalc() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_thaw_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_thaw_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1848,9 +2061,8 @@ private static object DragStartLeftEvtKey = new object(); /// /// See also and . /// (Since EFL 1.22) - /// virtual public void CalcForce() { - Efl.Layout.ICalcNativeInherit.efl_layout_calc_force_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_force_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Gets the minimum size specified -- as an EDC property -- for a given Edje object @@ -1864,7 +2076,7 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The minimum size as set in EDC. virtual public Eina.Size2D GetGroupSizeMin() { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_size_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_size_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1879,7 +2091,7 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The maximum size as set in EDC. virtual public Eina.Size2D GetGroupSizeMax() { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_size_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_size_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1894,8 +2106,8 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The data field's key string /// The data's value string. - virtual public System.String GetGroupData( System.String key) { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public System.String GetGroupData(System.String key) { + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1903,8 +2115,8 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The part name to check. /// true if the part exists, false otherwise. - virtual public bool GetPartExist( System.String part) { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_part_exist_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part); + virtual public bool GetPartExist(System.String part) { + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_part_exist_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1917,9 +2129,8 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// A identification number for the message to be sent /// The message's payload - /// - virtual public void MessageSend( int id, Eina.Value msg) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_message_send_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id, msg); + virtual public void MessageSend(int id, Eina.Value msg) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_message_send_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),id, msg); Eina.Error.RaiseIfUnhandledException(); } /// Adds a callback for an arriving Edje signal, emitted by a given Edje object. @@ -1943,9 +2154,9 @@ private static object DragStartLeftEvtKey = new object(); /// The signal's "source" string /// The callback function to be executed when the signal is emitted. /// true in case of success, false in case of error. - virtual public bool AddSignalCallback( System.String emission, System.String source, EflLayoutSignalCb func) { + virtual public bool AddSignalCallback(System.String emission, System.String source, EflLayoutSignalCb func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.Layout.ISignalNativeInherit.efl_layout_signal_callback_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_callback_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1958,9 +2169,9 @@ private static object DragStartLeftEvtKey = new object(); /// The signal's "source" string /// The callback function to be executed when the signal is emitted. /// true in case of success, false in case of error. - virtual public bool DelSignalCallback( System.String emission, System.String source, EflLayoutSignalCb func) { + virtual public bool DelSignalCallback(System.String emission, System.String source, EflLayoutSignalCb func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.Layout.ISignalNativeInherit.efl_layout_signal_callback_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_callback_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1973,9 +2184,8 @@ private static object DragStartLeftEvtKey = new object(); /// (Since EFL 1.22) /// The signal's "emission" string /// The signal's "source" string - /// - virtual public void EmitSignal( System.String emission, System.String source) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_emit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), emission, source); + virtual public void EmitSignal(System.String emission, System.String source) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_emit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),emission, source); Eina.Error.RaiseIfUnhandledException(); } /// Processes an object's messages and signals queue. @@ -1984,25 +2194,23 @@ private static object DragStartLeftEvtKey = new object(); /// If recurse is true, this function will be called recursively on all subobjects. /// (Since EFL 1.22) /// Whether to process messages on children objects. - /// - virtual public void SignalProcess( bool recurse) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_process_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), recurse); + virtual public void SignalProcess(bool recurse) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_process_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),recurse); Eina.Error.RaiseIfUnhandledException(); } /// Control whether the object's content is changed by drag and drop. /// If drag_target is true the object can be the target of a dragging object. The content of this object can then be changed into dragging content. For example, if an object deals with image and drag_target is true, the user can drag the new image and drop it into said object. This object's image can then be changed into a new image. /// Turn on or off drop_target. Default is false. virtual public bool GetDragTarget() { - var _ret_var = Efl.Ui.IDraggableNativeInherit.efl_ui_draggable_drag_target_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IDraggableConcrete.NativeMethods.efl_ui_draggable_drag_target_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control whether the object's content is changed by drag and drop. /// If drag_target is true the object can be the target of a dragging object. The content of this object can then be changed into dragging content. For example, if an object deals with image and drag_target is true, the user can drag the new image and drop it into said object. This object's image can then be changed into a new image. /// Turn on or off drop_target. Default is false. - /// - virtual public void SetDragTarget( bool set) { - Efl.Ui.IDraggableNativeInherit.efl_ui_draggable_drag_target_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), set); + virtual public void SetDragTarget(bool set) { + Efl.Ui.IDraggableConcrete.NativeMethods.efl_ui_draggable_drag_target_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),set); Eina.Error.RaiseIfUnhandledException(); } /// Get the icon name of image set by icon standard names. @@ -2010,14 +2218,14 @@ private static object DragStartLeftEvtKey = new object(); /// The icon name public System.String Icon { get { return GetIcon(); } - set { SetIcon( value); } + set { SetIcon(value); } } /// Get the mmaped file from where an object will fetch the real data (it must be an ). /// (Since EFL 1.22) /// The handle to the that will be used public Eina.File Mmap { get { return GetMmap(); } - set { SetMmap( value); } + set { SetMmap(value); } } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. @@ -2025,7 +2233,7 @@ private static object DragStartLeftEvtKey = new object(); /// The file path. public System.String File { get { return GetFile(); } - set { SetFile( value); } + set { SetFile(value); } } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -2035,7 +2243,7 @@ private static object DragStartLeftEvtKey = new object(); /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String Key { get { return GetKey(); } - set { SetKey( value); } + set { SetKey(value); } } /// Get the load state of the object. /// (Since EFL 1.22) @@ -2048,14 +2256,14 @@ private static object DragStartLeftEvtKey = new object(); /// The rotation angle (CCW), see . public Efl.Orient Orientation { get { return GetOrientation(); } - set { SetOrientation( value); } + set { SetOrientation(value); } } /// Control the flip of the given image /// Use this function to change how your image is to be flipped: vertically or horizontally or transpose or traverse. /// Flip method public Efl.Flip Flip { get { return GetFlip(); } - set { SetFlip( value); } + set { SetFlip(value); } } /// Whether or not the playable can be played. /// true if the object have playable data, false otherwise @@ -2066,14 +2274,14 @@ private static object DragStartLeftEvtKey = new object(); /// true if playing, false otherwise. public bool Play { get { return GetPlay(); } - set { SetPlay( value); } + set { SetPlay(value); } } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). public double Pos { get { return GetPos(); } - set { SetPos( value); } + set { SetPos(value); } } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. @@ -2086,20 +2294,20 @@ private static object DragStartLeftEvtKey = new object(); /// The play speed in the [0, infinity) range. public double PlaySpeed { get { return GetPlaySpeed(); } - set { SetPlaySpeed( value); } + set { SetPlaySpeed(value); } } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level public double Volume { get { return GetVolume(); } - set { SetVolume( value); } + set { SetVolume(value); } } /// This property controls the audio mute state. /// The mute state. true or false. public bool Mute { get { return GetMute(); } - set { SetMute( value); } + set { SetMute(value); } } /// Get the length of play for the media file. /// The length of the stream in seconds. @@ -2118,13 +2326,13 @@ private static object DragStartLeftEvtKey = new object(); /// Whether to use smooth scale or not. public bool SmoothScale { get { return GetSmoothScale(); } - set { SetSmoothScale( value); } + set { SetSmoothScale(value); } } /// Control how the image is scaled. /// Image scale type public Efl.Gfx.ImageScaleType ScaleType { get { return GetScaleType(); } - set { SetScaleType( value); } + set { SetScaleType(value); } } /// The native width/height ratio of the image. /// The image's ratio. @@ -2138,7 +2346,7 @@ private static object DragStartLeftEvtKey = new object(); /// The scale factor. public double BorderScale { get { return GetBorderScale(); } - set { SetBorderScale( value); } + set { SetBorderScale(value); } } /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. /// This function sets how the center part of the image object's source image is to be drawn, which must be one of the values in . By center we mean the complementary part of that defined by . This is very useful for making frames and decorations. You would most probably also be using a filled image (as in ) to use as a frame. @@ -2147,7 +2355,7 @@ private static object DragStartLeftEvtKey = new object(); /// Fill mode of the center region. public Efl.Gfx.BorderFillMode BorderCenterFill { get { return GetBorderCenterFill(); } - set { SetBorderCenterFill( value); } + set { SetBorderCenterFill(value); } } /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. @@ -2162,14 +2370,14 @@ private static object DragStartLeftEvtKey = new object(); /// Dynamic or static content hint, see public Efl.Gfx.ImageContentHint ContentHint { get { return GetContentHint(); } - set { SetContentHint( value); } + set { SetContentHint(value); } } /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see public Efl.Gfx.ImageScaleHint ScaleHint { get { return GetScaleHint(); } - set { SetScaleHint( value); } + set { SetScaleHint(value); } } /// Gets the (last) file loading error for a given object. /// The load error code. @@ -2183,14 +2391,14 @@ private static object DragStartLeftEvtKey = new object(); /// The image load size. public Eina.Size2D LoadSize { get { return GetLoadSize(); } - set { SetLoadSize( value); } + set { SetLoadSize(value); } } /// Get the DPI resolution of a loaded image object in the canvas. /// This function returns the DPI resolution of the given canvas image. /// The DPI resolution. public double LoadDpi { get { return GetLoadDpi(); } - set { SetLoadDpi( value); } + set { SetLoadDpi(value); } } /// Indicates whether the property is supported for the current file. /// true if region load of the image is supported, false otherwise @@ -2201,14 +2409,14 @@ private static object DragStartLeftEvtKey = new object(); /// A region of the image. public Eina.Rect LoadRegion { get { return GetLoadRegion(); } - set { SetLoadRegion( value); } + set { SetLoadRegion(value); } } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. public bool LoadOrientation { get { return GetLoadOrientation(); } - set { SetLoadOrientation( value); } + set { SetLoadOrientation(value); } } /// The scale down factor is a divider on the original image size. /// Setting the scale down factor can reduce load time and memory usage at the cost of having a scaled down image in memory. @@ -2219,14 +2427,14 @@ private static object DragStartLeftEvtKey = new object(); /// The scale down dividing factor. public int LoadScaleDown { get { return GetLoadScaleDown(); } - set { SetLoadScaleDown( value); } + set { SetLoadScaleDown(value); } } /// Initial load should skip header check and leave it all to data load /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set). /// Will be true if header is to be skipped. public bool LoadSkipHeader { get { return GetLoadSkipHeader(); } - set { SetLoadSkipHeader( value); } + set { SetLoadSkipHeader(value); } } /// The dimensions of this object's viewport. /// This property represents the size of an image (file on disk, vector graphics, GL or 3D scene, ...) view: this is the logical size of a view, not the number of pixels in the buffer, nor its visible size on the window. @@ -2241,7 +2449,7 @@ private static object DragStartLeftEvtKey = new object(); /// Size of the view. public Eina.Size2D ViewSize { get { return GetViewSize(); } - set { SetViewSize( value); } + set { SetViewSize(value); } } /// Whether this object updates its size hints automatically. /// By default edje doesn't set size hints on itself. If this property is set to true, size hints will be updated after recalculation. Be careful, as recalculation may happen often, enabling this property may have a considerable performance impact as other widgets will be notified of the size hints changes. @@ -2251,7 +2459,7 @@ private static object DragStartLeftEvtKey = new object(); /// Whether or not update the size hints. public bool CalcAutoUpdateHints { get { return GetCalcAutoUpdateHints(); } - set { SetCalcAutoUpdateHints( value); } + set { SetCalcAutoUpdateHints(value); } } /// Gets the minimum size specified -- as an EDC property -- for a given Edje object /// This function retrieves the obj object's minimum size values, as declared in its EDC group definition. For instance, for an Edje object of minimum size 100x100 pixels: collections { group { name: "a_group"; min: 100 100; } } @@ -2284,2524 +2492,4018 @@ private static object DragStartLeftEvtKey = new object(); /// Turn on or off drop_target. Default is false. public bool DragTarget { get { return GetDragTarget(); } - set { SetDragTarget( value); } + set { SetDragTarget(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Image.efl_ui_image_class_get(); } -} -public class ImageNativeInherit : Efl.Ui.WidgetNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_image_scalable_get_static_delegate == null) - efl_ui_image_scalable_get_static_delegate = new efl_ui_image_scalable_get_delegate(scalable_get); - if (methods.FirstOrDefault(m => m.Name == "GetScalable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_image_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_scalable_get_static_delegate)}); - if (efl_ui_image_scalable_set_static_delegate == null) - efl_ui_image_scalable_set_static_delegate = new efl_ui_image_scalable_set_delegate(scalable_set); - if (methods.FirstOrDefault(m => m.Name == "SetScalable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_image_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_scalable_set_static_delegate)}); - if (efl_ui_image_align_get_static_delegate == null) - efl_ui_image_align_get_static_delegate = new efl_ui_image_align_get_delegate(align_get); - if (methods.FirstOrDefault(m => m.Name == "GetAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_image_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_align_get_static_delegate)}); - if (efl_ui_image_align_set_static_delegate == null) - efl_ui_image_align_set_static_delegate = new efl_ui_image_align_set_delegate(align_set); - if (methods.FirstOrDefault(m => m.Name == "SetAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_image_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_align_set_static_delegate)}); - if (efl_ui_image_icon_get_static_delegate == null) - efl_ui_image_icon_get_static_delegate = new efl_ui_image_icon_get_delegate(icon_get); - if (methods.FirstOrDefault(m => m.Name == "GetIcon") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_image_icon_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_icon_get_static_delegate)}); - if (efl_ui_image_icon_set_static_delegate == null) - efl_ui_image_icon_set_static_delegate = new efl_ui_image_icon_set_delegate(icon_set); - if (methods.FirstOrDefault(m => m.Name == "SetIcon") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_image_icon_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_icon_set_static_delegate)}); - if (efl_file_mmap_get_static_delegate == null) - efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate)}); - if (efl_file_mmap_set_static_delegate == null) - efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate)}); - if (efl_file_get_static_delegate == null) - efl_file_get_static_delegate = new efl_file_get_delegate(file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate)}); - if (efl_file_set_static_delegate == null) - efl_file_set_static_delegate = new efl_file_set_delegate(file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate)}); - if (efl_file_key_get_static_delegate == null) - efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate)}); - if (efl_file_key_set_static_delegate == null) - efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate)}); - if (efl_file_loaded_get_static_delegate == null) - efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate)}); - if (efl_file_load_static_delegate == null) - efl_file_load_static_delegate = new efl_file_load_delegate(load); - if (methods.FirstOrDefault(m => m.Name == "Load") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate)}); - if (efl_file_unload_static_delegate == null) - efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); - if (methods.FirstOrDefault(m => m.Name == "Unload") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate)}); - if (efl_orientation_get_static_delegate == null) - efl_orientation_get_static_delegate = new efl_orientation_get_delegate(orientation_get); - if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_get_static_delegate)}); - if (efl_orientation_set_static_delegate == null) - efl_orientation_set_static_delegate = new efl_orientation_set_delegate(orientation_set); - if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_set_static_delegate)}); - if (efl_orientation_flip_get_static_delegate == null) - efl_orientation_flip_get_static_delegate = new efl_orientation_flip_get_delegate(flip_get); - if (methods.FirstOrDefault(m => m.Name == "GetFlip") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_flip_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_get_static_delegate)}); - if (efl_orientation_flip_set_static_delegate == null) - efl_orientation_flip_set_static_delegate = new efl_orientation_flip_set_delegate(flip_set); - if (methods.FirstOrDefault(m => m.Name == "SetFlip") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_orientation_flip_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_set_static_delegate)}); - if (efl_player_playable_get_static_delegate == null) - efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_playable_get_static_delegate)}); - if (efl_player_play_get_static_delegate == null) - efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_get_static_delegate)}); - if (efl_player_play_set_static_delegate == null) - efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set); - if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_set_static_delegate)}); - if (efl_player_pos_get_static_delegate == null) - efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_get_static_delegate)}); - if (efl_player_pos_set_static_delegate == null) - efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_set_static_delegate)}); - if (efl_player_progress_get_static_delegate == null) - efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get); - if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_progress_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_progress_get_static_delegate)}); - if (efl_player_play_speed_get_static_delegate == null) - efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_get_static_delegate)}); - if (efl_player_play_speed_set_static_delegate == null) - efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set); - if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_set_static_delegate)}); - if (efl_player_volume_get_static_delegate == null) - efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get); - if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_volume_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_get_static_delegate)}); - if (efl_player_volume_set_static_delegate == null) - efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set); - if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_volume_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_set_static_delegate)}); - if (efl_player_mute_get_static_delegate == null) - efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get); - if (methods.FirstOrDefault(m => m.Name == "GetMute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_mute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_get_static_delegate)}); - if (efl_player_mute_set_static_delegate == null) - efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set); - if (methods.FirstOrDefault(m => m.Name == "SetMute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_mute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_set_static_delegate)}); - if (efl_player_length_get_static_delegate == null) - efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get); - if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_length_get_static_delegate)}); - if (efl_player_seekable_get_static_delegate == null) - efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_seekable_get_static_delegate)}); - if (efl_player_start_static_delegate == null) - efl_player_start_static_delegate = new efl_player_start_delegate(start); - if (methods.FirstOrDefault(m => m.Name == "Start") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_start"), func = Marshal.GetFunctionPointerForDelegate(efl_player_start_static_delegate)}); - if (efl_player_stop_static_delegate == null) - efl_player_stop_static_delegate = new efl_player_stop_delegate(stop); - if (methods.FirstOrDefault(m => m.Name == "Stop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate)}); - if (efl_gfx_image_smooth_scale_get_static_delegate == null) - efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetSmoothScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_smooth_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_get_static_delegate)}); - if (efl_gfx_image_smooth_scale_set_static_delegate == null) - efl_gfx_image_smooth_scale_set_static_delegate = new efl_gfx_image_smooth_scale_set_delegate(smooth_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetSmoothScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_smooth_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_set_static_delegate)}); - if (efl_gfx_image_scale_type_get_static_delegate == null) - efl_gfx_image_scale_type_get_static_delegate = new efl_gfx_image_scale_type_get_delegate(scale_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetScaleType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_get_static_delegate)}); - if (efl_gfx_image_scale_type_set_static_delegate == null) - efl_gfx_image_scale_type_set_static_delegate = new efl_gfx_image_scale_type_set_delegate(scale_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetScaleType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate)}); - if (efl_gfx_image_ratio_get_static_delegate == null) - efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); - if (methods.FirstOrDefault(m => m.Name == "GetRatio") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_ratio_get_static_delegate)}); - if (efl_gfx_image_border_get_static_delegate == null) - efl_gfx_image_border_get_static_delegate = new efl_gfx_image_border_get_delegate(border_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_get_static_delegate)}); - if (efl_gfx_image_border_set_static_delegate == null) - efl_gfx_image_border_set_static_delegate = new efl_gfx_image_border_set_delegate(border_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_set_static_delegate)}); - if (efl_gfx_image_border_scale_get_static_delegate == null) - efl_gfx_image_border_scale_get_static_delegate = new efl_gfx_image_border_scale_get_delegate(border_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_get_static_delegate)}); - if (efl_gfx_image_border_scale_set_static_delegate == null) - efl_gfx_image_border_scale_set_static_delegate = new efl_gfx_image_border_scale_set_delegate(border_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorderScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_set_static_delegate)}); - if (efl_gfx_image_border_center_fill_get_static_delegate == null) - efl_gfx_image_border_center_fill_get_static_delegate = new efl_gfx_image_border_center_fill_get_delegate(border_center_fill_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderCenterFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_center_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_get_static_delegate)}); - if (efl_gfx_image_border_center_fill_set_static_delegate == null) - efl_gfx_image_border_center_fill_set_static_delegate = new efl_gfx_image_border_center_fill_set_delegate(border_center_fill_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorderCenterFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_center_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_set_static_delegate)}); - if (efl_gfx_image_size_get_static_delegate == null) - efl_gfx_image_size_get_static_delegate = new efl_gfx_image_size_get_delegate(image_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_size_get_static_delegate)}); - if (efl_gfx_image_content_hint_get_static_delegate == null) - efl_gfx_image_content_hint_get_static_delegate = new efl_gfx_image_content_hint_get_delegate(content_hint_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_content_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_get_static_delegate)}); - if (efl_gfx_image_content_hint_set_static_delegate == null) - efl_gfx_image_content_hint_set_static_delegate = new efl_gfx_image_content_hint_set_delegate(content_hint_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_content_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_set_static_delegate)}); - if (efl_gfx_image_scale_hint_get_static_delegate == null) - efl_gfx_image_scale_hint_get_static_delegate = new efl_gfx_image_scale_hint_get_delegate(scale_hint_get); - if (methods.FirstOrDefault(m => m.Name == "GetScaleHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_get_static_delegate)}); - if (efl_gfx_image_scale_hint_set_static_delegate == null) - efl_gfx_image_scale_hint_set_static_delegate = new efl_gfx_image_scale_hint_set_delegate(scale_hint_set); - if (methods.FirstOrDefault(m => m.Name == "SetScaleHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_set_static_delegate)}); - if (efl_gfx_image_load_error_get_static_delegate == null) - efl_gfx_image_load_error_get_static_delegate = new efl_gfx_image_load_error_get_delegate(image_load_error_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageLoadError") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_error_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_size_get_static_delegate == null) - efl_gfx_image_load_controller_load_size_get_static_delegate = new efl_gfx_image_load_controller_load_size_get_delegate(load_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_size_set_static_delegate == null) - efl_gfx_image_load_controller_load_size_set_static_delegate = new efl_gfx_image_load_controller_load_size_set_delegate(load_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_dpi_get_static_delegate == null) - efl_gfx_image_load_controller_load_dpi_get_static_delegate = new efl_gfx_image_load_controller_load_dpi_get_delegate(load_dpi_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadDpi") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_dpi_set_static_delegate == null) - efl_gfx_image_load_controller_load_dpi_set_static_delegate = new efl_gfx_image_load_controller_load_dpi_set_delegate(load_dpi_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadDpi") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_dpi_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_support_get_static_delegate == null) - efl_gfx_image_load_controller_load_region_support_get_static_delegate = new efl_gfx_image_load_controller_load_region_support_get_delegate(load_region_support_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadRegionSupport") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_support_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_support_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_get_static_delegate == null) - efl_gfx_image_load_controller_load_region_get_static_delegate = new efl_gfx_image_load_controller_load_region_get_delegate(load_region_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_region_set_static_delegate == null) - efl_gfx_image_load_controller_load_region_set_static_delegate = new efl_gfx_image_load_controller_load_region_set_delegate(load_region_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_orientation_get_static_delegate == null) - efl_gfx_image_load_controller_load_orientation_get_static_delegate = new efl_gfx_image_load_controller_load_orientation_get_delegate(load_orientation_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_orientation_set_static_delegate == null) - efl_gfx_image_load_controller_load_orientation_set_static_delegate = new efl_gfx_image_load_controller_load_orientation_set_delegate(load_orientation_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadOrientation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_scale_down_get_static_delegate == null) - efl_gfx_image_load_controller_load_scale_down_get_static_delegate = new efl_gfx_image_load_controller_load_scale_down_get_delegate(load_scale_down_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadScaleDown") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_scale_down_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_scale_down_set_static_delegate == null) - efl_gfx_image_load_controller_load_scale_down_set_static_delegate = new efl_gfx_image_load_controller_load_scale_down_set_delegate(load_scale_down_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadScaleDown") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_scale_down_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_skip_header_get_static_delegate == null) - efl_gfx_image_load_controller_load_skip_header_get_static_delegate = new efl_gfx_image_load_controller_load_skip_header_get_delegate(load_skip_header_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoadSkipHeader") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_skip_header_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_get_static_delegate)}); - if (efl_gfx_image_load_controller_load_skip_header_set_static_delegate == null) - efl_gfx_image_load_controller_load_skip_header_set_static_delegate = new efl_gfx_image_load_controller_load_skip_header_set_delegate(load_skip_header_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadSkipHeader") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_skip_header_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_set_static_delegate)}); - if (efl_gfx_image_load_controller_load_async_start_static_delegate == null) - efl_gfx_image_load_controller_load_async_start_static_delegate = new efl_gfx_image_load_controller_load_async_start_delegate(load_async_start); - if (methods.FirstOrDefault(m => m.Name == "LoadAsyncStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_async_start"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_start_static_delegate)}); - if (efl_gfx_image_load_controller_load_async_cancel_static_delegate == null) - efl_gfx_image_load_controller_load_async_cancel_static_delegate = new efl_gfx_image_load_controller_load_async_cancel_delegate(load_async_cancel); - if (methods.FirstOrDefault(m => m.Name == "LoadAsyncCancel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_controller_load_async_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_cancel_static_delegate)}); - if (efl_gfx_view_size_get_static_delegate == null) - efl_gfx_view_size_get_static_delegate = new efl_gfx_view_size_get_delegate(view_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_view_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_get_static_delegate)}); - if (efl_gfx_view_size_set_static_delegate == null) - efl_gfx_view_size_set_static_delegate = new efl_gfx_view_size_set_delegate(view_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetViewSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_view_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_set_static_delegate)}); - if (efl_layout_calc_auto_update_hints_get_static_delegate == null) - efl_layout_calc_auto_update_hints_get_static_delegate = new efl_layout_calc_auto_update_hints_get_delegate(calc_auto_update_hints_get); - if (methods.FirstOrDefault(m => m.Name == "GetCalcAutoUpdateHints") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_auto_update_hints_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_get_static_delegate)}); - if (efl_layout_calc_auto_update_hints_set_static_delegate == null) - efl_layout_calc_auto_update_hints_set_static_delegate = new efl_layout_calc_auto_update_hints_set_delegate(calc_auto_update_hints_set); - if (methods.FirstOrDefault(m => m.Name == "SetCalcAutoUpdateHints") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_auto_update_hints_set"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_set_static_delegate)}); - if (efl_layout_calc_size_min_static_delegate == null) - efl_layout_calc_size_min_static_delegate = new efl_layout_calc_size_min_delegate(calc_size_min); - if (methods.FirstOrDefault(m => m.Name == "CalcSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_size_min"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_size_min_static_delegate)}); - if (efl_layout_calc_parts_extends_static_delegate == null) - efl_layout_calc_parts_extends_static_delegate = new efl_layout_calc_parts_extends_delegate(calc_parts_extends); - if (methods.FirstOrDefault(m => m.Name == "CalcPartsExtends") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_parts_extends"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_parts_extends_static_delegate)}); - if (efl_layout_calc_freeze_static_delegate == null) - efl_layout_calc_freeze_static_delegate = new efl_layout_calc_freeze_delegate(calc_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeCalc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_freeze_static_delegate)}); - if (efl_layout_calc_thaw_static_delegate == null) - efl_layout_calc_thaw_static_delegate = new efl_layout_calc_thaw_delegate(calc_thaw); - if (methods.FirstOrDefault(m => m.Name == "ThawCalc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_thaw"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_thaw_static_delegate)}); - if (efl_layout_calc_force_static_delegate == null) - efl_layout_calc_force_static_delegate = new efl_layout_calc_force_delegate(calc_force); - if (methods.FirstOrDefault(m => m.Name == "CalcForce") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_force"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_force_static_delegate)}); - if (efl_layout_group_size_min_get_static_delegate == null) - efl_layout_group_size_min_get_static_delegate = new efl_layout_group_size_min_get_delegate(group_size_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_min_get_static_delegate)}); - if (efl_layout_group_size_max_get_static_delegate == null) - efl_layout_group_size_max_get_static_delegate = new efl_layout_group_size_max_get_delegate(group_size_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_max_get_static_delegate)}); - if (efl_layout_group_data_get_static_delegate == null) - efl_layout_group_data_get_static_delegate = new efl_layout_group_data_get_delegate(group_data_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_data_get_static_delegate)}); - if (efl_layout_group_part_exist_get_static_delegate == null) - efl_layout_group_part_exist_get_static_delegate = new efl_layout_group_part_exist_get_delegate(part_exist_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartExist") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_part_exist_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_part_exist_get_static_delegate)}); - if (efl_layout_signal_message_send_static_delegate == null) - efl_layout_signal_message_send_static_delegate = new efl_layout_signal_message_send_delegate(message_send); - if (methods.FirstOrDefault(m => m.Name == "MessageSend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_message_send"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_message_send_static_delegate)}); - if (efl_layout_signal_callback_add_static_delegate == null) - efl_layout_signal_callback_add_static_delegate = new efl_layout_signal_callback_add_delegate(signal_callback_add); - if (methods.FirstOrDefault(m => m.Name == "AddSignalCallback") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_callback_add"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_add_static_delegate)}); - if (efl_layout_signal_callback_del_static_delegate == null) - efl_layout_signal_callback_del_static_delegate = new efl_layout_signal_callback_del_delegate(signal_callback_del); - if (methods.FirstOrDefault(m => m.Name == "DelSignalCallback") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_callback_del"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_del_static_delegate)}); - if (efl_layout_signal_emit_static_delegate == null) - efl_layout_signal_emit_static_delegate = new efl_layout_signal_emit_delegate(signal_emit); - if (methods.FirstOrDefault(m => m.Name == "EmitSignal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_emit"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_emit_static_delegate)}); - if (efl_layout_signal_process_static_delegate == null) - efl_layout_signal_process_static_delegate = new efl_layout_signal_process_delegate(signal_process); - if (methods.FirstOrDefault(m => m.Name == "SignalProcess") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_process"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_process_static_delegate)}); - if (efl_ui_draggable_drag_target_get_static_delegate == null) - efl_ui_draggable_drag_target_get_static_delegate = new efl_ui_draggable_drag_target_get_delegate(drag_target_get); - if (methods.FirstOrDefault(m => m.Name == "GetDragTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_draggable_drag_target_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_draggable_drag_target_get_static_delegate)}); - if (efl_ui_draggable_drag_target_set_static_delegate == null) - efl_ui_draggable_drag_target_set_static_delegate = new efl_ui_draggable_drag_target_set_delegate(drag_target_set); - if (methods.FirstOrDefault(m => m.Name == "SetDragTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_draggable_drag_target_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_draggable_drag_target_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Image.efl_ui_image_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Widget.NativeMethods { - return Efl.Ui.Image.efl_ui_image_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_image_scalable_get_static_delegate == null) + { + efl_ui_image_scalable_get_static_delegate = new efl_ui_image_scalable_get_delegate(scalable_get); + } - private delegate void efl_ui_image_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool scale_up, [MarshalAs(UnmanagedType.U1)] out bool scale_down); + if (methods.FirstOrDefault(m => m.Name == "GetScalable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_scalable_get_static_delegate) }); + } + if (efl_ui_image_scalable_set_static_delegate == null) + { + efl_ui_image_scalable_set_static_delegate = new efl_ui_image_scalable_set_delegate(scalable_set); + } - public delegate void efl_ui_image_scalable_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool scale_up, [MarshalAs(UnmanagedType.U1)] out bool scale_down); - public static Efl.Eo.FunctionWrapper efl_ui_image_scalable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_image_scalable_get"); - private static void scalable_get(System.IntPtr obj, System.IntPtr pd, out bool scale_up, out bool scale_down) - { - Eina.Log.Debug("function efl_ui_image_scalable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - scale_up = default(bool); scale_down = default(bool); - try { - ((Image)wrapper).GetScalable( out scale_up, out scale_down); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_image_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out scale_up, out scale_down); - } - } - private static efl_ui_image_scalable_get_delegate efl_ui_image_scalable_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScalable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_scalable_set_static_delegate) }); + } + if (efl_ui_image_align_get_static_delegate == null) + { + efl_ui_image_align_get_static_delegate = new efl_ui_image_align_get_delegate(align_get); + } - private delegate void efl_ui_image_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scale_up, [MarshalAs(UnmanagedType.U1)] bool scale_down); + if (methods.FirstOrDefault(m => m.Name == "GetAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_align_get_static_delegate) }); + } + if (efl_ui_image_align_set_static_delegate == null) + { + efl_ui_image_align_set_static_delegate = new efl_ui_image_align_set_delegate(align_set); + } - public delegate void efl_ui_image_scalable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scale_up, [MarshalAs(UnmanagedType.U1)] bool scale_down); - public static Efl.Eo.FunctionWrapper efl_ui_image_scalable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_image_scalable_set"); - private static void scalable_set(System.IntPtr obj, System.IntPtr pd, bool scale_up, bool scale_down) - { - Eina.Log.Debug("function efl_ui_image_scalable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetScalable( scale_up, scale_down); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_align_set_static_delegate) }); } - } else { - efl_ui_image_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_up, scale_down); - } - } - private static efl_ui_image_scalable_set_delegate efl_ui_image_scalable_set_static_delegate; + if (efl_ui_image_icon_get_static_delegate == null) + { + efl_ui_image_icon_get_static_delegate = new efl_ui_image_icon_get_delegate(icon_get); + } - private delegate void efl_ui_image_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_x, out double align_y); + if (methods.FirstOrDefault(m => m.Name == "GetIcon") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_icon_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_icon_get_static_delegate) }); + } + if (efl_ui_image_icon_set_static_delegate == null) + { + efl_ui_image_icon_set_static_delegate = new efl_ui_image_icon_set_delegate(icon_set); + } - public delegate void efl_ui_image_align_get_api_delegate(System.IntPtr obj, out double align_x, out double align_y); - public static Efl.Eo.FunctionWrapper efl_ui_image_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_image_align_get"); - private static void align_get(System.IntPtr obj, System.IntPtr pd, out double align_x, out double align_y) - { - Eina.Log.Debug("function efl_ui_image_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_x = default(double); align_y = default(double); - try { - ((Image)wrapper).GetAlign( out align_x, out align_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_image_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_x, out align_y); - } - } - private static efl_ui_image_align_get_delegate efl_ui_image_align_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetIcon") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_icon_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_icon_set_static_delegate) }); + } + if (efl_file_mmap_get_static_delegate == null) + { + efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); + } - private delegate void efl_ui_image_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_x, double align_y); + if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) }); + } + if (efl_file_mmap_set_static_delegate == null) + { + efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); + } - public delegate void efl_ui_image_align_set_api_delegate(System.IntPtr obj, double align_x, double align_y); - public static Efl.Eo.FunctionWrapper efl_ui_image_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_image_align_set"); - private static void align_set(System.IntPtr obj, System.IntPtr pd, double align_x, double align_y) - { - Eina.Log.Debug("function efl_ui_image_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetAlign( align_x, align_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) }); } - } else { - efl_ui_image_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_x, align_y); - } - } - private static efl_ui_image_align_set_delegate efl_ui_image_align_set_static_delegate; + if (efl_file_get_static_delegate == null) + { + efl_file_get_static_delegate = new efl_file_get_delegate(file_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_image_icon_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) }); + } + if (efl_file_set_static_delegate == null) + { + efl_file_set_static_delegate = new efl_file_set_delegate(file_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_image_icon_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_image_icon_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_image_icon_get"); - private static System.String icon_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_image_icon_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Image)wrapper).GetIcon(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_image_icon_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_image_icon_get_delegate efl_ui_image_icon_get_static_delegate; + if (efl_file_key_get_static_delegate == null) + { + efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_image_icon_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) }); + } + if (efl_file_key_set_static_delegate == null) + { + efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_image_icon_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_ui_image_icon_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_image_icon_set"); - private static bool icon_set(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_ui_image_icon_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).SetIcon( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_image_icon_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); - } - } - private static efl_ui_image_icon_set_delegate efl_ui_image_icon_set_static_delegate; + if (efl_file_loaded_get_static_delegate == null) + { + efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); + } - private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) }); + } + if (efl_file_load_static_delegate == null) + { + efl_file_load_static_delegate = new efl_file_load_delegate(load); + } - public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_get"); - private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_mmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.File _ret_var = default(Eina.File); - try { - _ret_var = ((Image)wrapper).GetMmap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Load") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) }); } - return _ret_var; - } else { - return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + if (efl_file_unload_static_delegate == null) + { + efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); + } - private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + if (methods.FirstOrDefault(m => m.Name == "Unload") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) }); + } + if (efl_orientation_get_static_delegate == null) + { + efl_orientation_get_static_delegate = new efl_orientation_get_delegate(orientation_get); + } - public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); - public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_set"); - private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) - { - Eina.Log.Debug("function efl_file_mmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Image)wrapper).SetMmap( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + if (efl_orientation_set_static_delegate == null) + { + efl_orientation_set_static_delegate = new efl_orientation_set_delegate(orientation_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_set_static_delegate) }); + } + if (efl_orientation_flip_get_static_delegate == null) + { + efl_orientation_flip_get_static_delegate = new efl_orientation_flip_get_delegate(flip_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_get"); - private static System.String file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Image)wrapper).GetFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFlip") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_flip_get"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_get_delegate efl_file_get_static_delegate; + if (efl_orientation_flip_set_static_delegate == null) + { + efl_orientation_flip_set_static_delegate = new efl_orientation_flip_set_delegate(flip_set); + } - private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + if (methods.FirstOrDefault(m => m.Name == "SetFlip") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_orientation_flip_set"), func = Marshal.GetFunctionPointerForDelegate(efl_orientation_flip_set_static_delegate) }); + } + if (efl_player_playable_get_static_delegate == null) + { + efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get); + } - public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_set"); - private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) - { - Eina.Log.Debug("function efl_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Image)wrapper).SetFile( file); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_playable_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); - } - } - private static efl_file_set_delegate efl_file_set_static_delegate; + if (efl_player_play_get_static_delegate == null) + { + efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_get_static_delegate) }); + } + if (efl_player_play_set_static_delegate == null) + { + efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Image)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_set_static_delegate) }); } - return _ret_var; - } else { - return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + if (efl_player_pos_get_static_delegate == null) + { + efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get); + } - private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + if (methods.FirstOrDefault(m => m.Name == "GetPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_get_static_delegate) }); + } + if (efl_player_pos_set_static_delegate == null) + { + efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set); + } - public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_file_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetKey( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); - } - } - private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_set_static_delegate) }); + } + if (efl_player_progress_get_static_delegate == null) + { + efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_progress_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_progress_get_static_delegate) }); + } + if (efl_player_play_speed_get_static_delegate == null) + { + efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_loaded_get"); - private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_loaded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetLoaded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + if (efl_player_play_speed_set_static_delegate == null) + { + efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set); + } - private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_set_static_delegate) }); + } + if (efl_player_volume_get_static_delegate == null) + { + efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get); + } - public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_load"); - private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_load was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Image)wrapper).Load(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_load_delegate efl_file_load_static_delegate; + if (efl_player_volume_set_static_delegate == null) + { + efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set); + } - private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_set_static_delegate) }); + } + if (efl_player_mute_get_static_delegate == null) + { + efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get); + } - public delegate void efl_file_unload_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_unload"); - private static void unload(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_unload was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).Unload(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_get_static_delegate) }); } - } else { - efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_unload_delegate efl_file_unload_static_delegate; + if (efl_player_mute_set_static_delegate == null) + { + efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set); + } - private delegate Efl.Orient efl_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_set_static_delegate) }); + } + if (efl_player_length_get_static_delegate == null) + { + efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get); + } - public delegate Efl.Orient efl_orientation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_orientation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_get"); - private static Efl.Orient orientation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_orientation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Orient _ret_var = default(Efl.Orient); - try { - _ret_var = ((Image)wrapper).GetOrientation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_length_get_static_delegate) }); } - return _ret_var; - } else { - return efl_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_orientation_get_delegate efl_orientation_get_static_delegate; + if (efl_player_seekable_get_static_delegate == null) + { + efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get); + } - private delegate void efl_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir); + if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_seekable_get_static_delegate) }); + } + if (efl_player_start_static_delegate == null) + { + efl_player_start_static_delegate = new efl_player_start_delegate(start); + } - public delegate void efl_orientation_set_api_delegate(System.IntPtr obj, Efl.Orient dir); - public static Efl.Eo.FunctionWrapper efl_orientation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_set"); - private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir) - { - Eina.Log.Debug("function efl_orientation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetOrientation( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_orientation_set_delegate efl_orientation_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Start") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_start"), func = Marshal.GetFunctionPointerForDelegate(efl_player_start_static_delegate) }); + } + if (efl_player_stop_static_delegate == null) + { + efl_player_stop_static_delegate = new efl_player_stop_delegate(stop); + } - private delegate Efl.Flip efl_orientation_flip_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Stop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate) }); + } + if (efl_gfx_image_smooth_scale_get_static_delegate == null) + { + efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); + } - public delegate Efl.Flip efl_orientation_flip_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_orientation_flip_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_flip_get"); - private static Efl.Flip flip_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_orientation_flip_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Flip _ret_var = default(Efl.Flip); - try { - _ret_var = ((Image)wrapper).GetFlip(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_get_static_delegate) }); } - return _ret_var; - } else { - return efl_orientation_flip_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_orientation_flip_get_delegate efl_orientation_flip_get_static_delegate; + if (efl_gfx_image_smooth_scale_set_static_delegate == null) + { + efl_gfx_image_smooth_scale_set_static_delegate = new efl_gfx_image_smooth_scale_set_delegate(smooth_scale_set); + } - private delegate void efl_orientation_flip_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip); + if (methods.FirstOrDefault(m => m.Name == "SetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_set_static_delegate) }); + } + if (efl_gfx_image_scale_type_get_static_delegate == null) + { + efl_gfx_image_scale_type_get_static_delegate = new efl_gfx_image_scale_type_get_delegate(scale_type_get); + } - public delegate void efl_orientation_flip_set_api_delegate(System.IntPtr obj, Efl.Flip flip); - public static Efl.Eo.FunctionWrapper efl_orientation_flip_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_orientation_flip_set"); - private static void flip_set(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip) - { - Eina.Log.Debug("function efl_orientation_flip_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetFlip( flip); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_orientation_flip_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flip); - } - } - private static efl_orientation_flip_set_delegate efl_orientation_flip_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_get_static_delegate) }); + } + if (efl_gfx_image_scale_type_set_static_delegate == null) + { + efl_gfx_image_scale_type_set_static_delegate = new efl_gfx_image_scale_type_set_delegate(scale_type_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate) }); + } + if (efl_gfx_image_ratio_get_static_delegate == null) + { + efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_playable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_playable_get"); - private static bool playable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_playable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetPlayable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetRatio") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_ratio_get_static_delegate) }); } - return _ret_var; - } else { - return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate; + if (efl_gfx_image_border_get_static_delegate == null) + { + efl_gfx_image_border_get_static_delegate = new efl_gfx_image_border_get_delegate(border_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_get_static_delegate) }); + } + if (efl_gfx_image_border_set_static_delegate == null) + { + efl_gfx_image_border_set_static_delegate = new efl_gfx_image_border_set_delegate(border_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_play_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_get"); - private static bool play_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_play_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetPlay(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_set_static_delegate) }); } - return _ret_var; - } else { - return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_play_get_delegate efl_player_play_get_static_delegate; + if (efl_gfx_image_border_scale_get_static_delegate == null) + { + efl_gfx_image_border_scale_get_static_delegate = new efl_gfx_image_border_scale_get_delegate(border_scale_get); + } - private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play); + if (methods.FirstOrDefault(m => m.Name == "GetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_get_static_delegate) }); + } + if (efl_gfx_image_border_scale_set_static_delegate == null) + { + efl_gfx_image_border_scale_set_static_delegate = new efl_gfx_image_border_scale_set_delegate(border_scale_set); + } - public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play); - public static Efl.Eo.FunctionWrapper efl_player_play_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_set"); - private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play) - { - Eina.Log.Debug("function efl_player_play_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetPlay( play); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play); - } - } - private static efl_player_play_set_delegate efl_player_play_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_set_static_delegate) }); + } + if (efl_gfx_image_border_center_fill_get_static_delegate == null) + { + efl_gfx_image_border_center_fill_get_static_delegate = new efl_gfx_image_border_center_fill_get_delegate(border_center_fill_get); + } - private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_get_static_delegate) }); + } + if (efl_gfx_image_border_center_fill_set_static_delegate == null) + { + efl_gfx_image_border_center_fill_set_static_delegate = new efl_gfx_image_border_center_fill_set_delegate(border_center_fill_set); + } - public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_pos_get"); - private static double pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Image)wrapper).GetPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_set_static_delegate) }); } - return _ret_var; - } else { - return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate; + if (efl_gfx_image_size_get_static_delegate == null) + { + efl_gfx_image_size_get_static_delegate = new efl_gfx_image_size_get_delegate(image_size_get); + } - private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + if (methods.FirstOrDefault(m => m.Name == "GetImageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_size_get_static_delegate) }); + } + if (efl_gfx_image_content_hint_get_static_delegate == null) + { + efl_gfx_image_content_hint_get_static_delegate = new efl_gfx_image_content_hint_get_delegate(content_hint_get); + } - public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec); - public static Efl.Eo.FunctionWrapper efl_player_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_pos_set"); - private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec) - { - Eina.Log.Debug("function efl_player_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetPos( sec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); - } - } - private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_get_static_delegate) }); + } + if (efl_gfx_image_content_hint_set_static_delegate == null) + { + efl_gfx_image_content_hint_set_static_delegate = new efl_gfx_image_content_hint_set_delegate(content_hint_set); + } - private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_set_static_delegate) }); + } + if (efl_gfx_image_scale_hint_get_static_delegate == null) + { + efl_gfx_image_scale_hint_get_static_delegate = new efl_gfx_image_scale_hint_get_delegate(scale_hint_get); + } - public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_progress_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_progress_get"); - private static double progress_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_progress_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Image)wrapper).GetProgress(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_get_static_delegate) }); } - return _ret_var; - } else { - return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate; + if (efl_gfx_image_scale_hint_set_static_delegate == null) + { + efl_gfx_image_scale_hint_set_static_delegate = new efl_gfx_image_scale_hint_set_delegate(scale_hint_set); + } - private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_set_static_delegate) }); + } + if (efl_gfx_image_load_error_get_static_delegate == null) + { + efl_gfx_image_load_error_get_static_delegate = new efl_gfx_image_load_error_get_delegate(image_load_error_get); + } - public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_play_speed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_speed_get"); - private static double play_speed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_play_speed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Image)wrapper).GetPlaySpeed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetImageLoadError") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_error_get_static_delegate) }); } - return _ret_var; - } else { - return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate; + if (efl_gfx_image_load_controller_load_size_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_size_get_static_delegate = new efl_gfx_image_load_controller_load_size_get_delegate(load_size_get); + } - private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed); + if (methods.FirstOrDefault(m => m.Name == "GetLoadSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_get_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_size_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_size_set_static_delegate = new efl_gfx_image_load_controller_load_size_set_delegate(load_size_set); + } - public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed); - public static Efl.Eo.FunctionWrapper efl_player_play_speed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_speed_set"); - private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed) - { - Eina.Log.Debug("function efl_player_play_speed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetPlaySpeed( speed); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed); - } - } - private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetLoadSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_size_set_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_dpi_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_dpi_get_static_delegate = new efl_gfx_image_load_controller_load_dpi_get_delegate(load_dpi_get); + } - private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLoadDpi") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_get_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_dpi_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_dpi_set_static_delegate = new efl_gfx_image_load_controller_load_dpi_set_delegate(load_dpi_set); + } - public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_volume_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_volume_get"); - private static double volume_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_volume_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Image)wrapper).GetVolume(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLoadDpi") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_dpi_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_dpi_set_static_delegate) }); } - return _ret_var; - } else { - return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate; + if (efl_gfx_image_load_controller_load_region_support_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_support_get_static_delegate = new efl_gfx_image_load_controller_load_region_support_get_delegate(load_region_support_get); + } - private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume); + if (methods.FirstOrDefault(m => m.Name == "GetLoadRegionSupport") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_support_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_support_get_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_region_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_get_static_delegate = new efl_gfx_image_load_controller_load_region_get_delegate(load_region_get); + } - public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume); - public static Efl.Eo.FunctionWrapper efl_player_volume_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_volume_set"); - private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume) - { - Eina.Log.Debug("function efl_player_volume_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetVolume( volume); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume); - } - } - private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoadRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_get_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_region_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_region_set_static_delegate = new efl_gfx_image_load_controller_load_region_set_delegate(load_region_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetLoadRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_region_set_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_orientation_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_orientation_get_static_delegate = new efl_gfx_image_load_controller_load_orientation_get_delegate(load_orientation_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_mute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_mute_get"); - private static bool mute_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_mute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetMute(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetLoadOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_get_static_delegate) }); } - return _ret_var; - } else { - return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate; + if (efl_gfx_image_load_controller_load_orientation_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_orientation_set_static_delegate = new efl_gfx_image_load_controller_load_orientation_set_delegate(load_orientation_set); + } - private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute); + if (methods.FirstOrDefault(m => m.Name == "SetLoadOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_orientation_set_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_scale_down_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_scale_down_get_static_delegate = new efl_gfx_image_load_controller_load_scale_down_get_delegate(load_scale_down_get); + } - public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute); - public static Efl.Eo.FunctionWrapper efl_player_mute_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_mute_set"); - private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute) - { - Eina.Log.Debug("function efl_player_mute_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetMute( mute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute); - } - } - private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoadScaleDown") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_scale_down_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_get_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_scale_down_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_scale_down_set_static_delegate = new efl_gfx_image_load_controller_load_scale_down_set_delegate(load_scale_down_set); + } - private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetLoadScaleDown") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_scale_down_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_scale_down_set_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_skip_header_get_static_delegate == null) + { + efl_gfx_image_load_controller_load_skip_header_get_static_delegate = new efl_gfx_image_load_controller_load_skip_header_get_delegate(load_skip_header_get); + } - public delegate double efl_player_length_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_length_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_length_get"); - private static double length_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_length_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Image)wrapper).GetLength(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetLoadSkipHeader") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_skip_header_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_get_static_delegate) }); } - return _ret_var; - } else { - return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_length_get_delegate efl_player_length_get_static_delegate; + if (efl_gfx_image_load_controller_load_skip_header_set_static_delegate == null) + { + efl_gfx_image_load_controller_load_skip_header_set_static_delegate = new efl_gfx_image_load_controller_load_skip_header_set_delegate(load_skip_header_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetLoadSkipHeader") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_skip_header_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_skip_header_set_static_delegate) }); + } + if (efl_gfx_image_load_controller_load_async_start_static_delegate == null) + { + efl_gfx_image_load_controller_load_async_start_static_delegate = new efl_gfx_image_load_controller_load_async_start_delegate(load_async_start); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_seekable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_seekable_get"); - private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_seekable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetSeekable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "LoadAsyncStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_async_start"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_start_static_delegate) }); } - return _ret_var; - } else { - return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate; + if (efl_gfx_image_load_controller_load_async_cancel_static_delegate == null) + { + efl_gfx_image_load_controller_load_async_cancel_static_delegate = new efl_gfx_image_load_controller_load_async_cancel_delegate(load_async_cancel); + } - private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "LoadAsyncCancel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_controller_load_async_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_controller_load_async_cancel_static_delegate) }); + } + if (efl_gfx_view_size_get_static_delegate == null) + { + efl_gfx_view_size_get_static_delegate = new efl_gfx_view_size_get_delegate(view_size_get); + } - public delegate void efl_player_start_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_start"); - private static void start(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).Start(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetViewSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_view_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_get_static_delegate) }); } - } else { - efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_start_delegate efl_player_start_static_delegate; + if (efl_gfx_view_size_set_static_delegate == null) + { + efl_gfx_view_size_set_static_delegate = new efl_gfx_view_size_set_delegate(view_size_set); + } - private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetViewSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_view_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_set_static_delegate) }); + } + + if (efl_layout_calc_auto_update_hints_get_static_delegate == null) + { + efl_layout_calc_auto_update_hints_get_static_delegate = new efl_layout_calc_auto_update_hints_get_delegate(calc_auto_update_hints_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCalcAutoUpdateHints") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_auto_update_hints_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_get_static_delegate) }); + } + + if (efl_layout_calc_auto_update_hints_set_static_delegate == null) + { + efl_layout_calc_auto_update_hints_set_static_delegate = new efl_layout_calc_auto_update_hints_set_delegate(calc_auto_update_hints_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCalcAutoUpdateHints") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_auto_update_hints_set"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_set_static_delegate) }); + } + + if (efl_layout_calc_size_min_static_delegate == null) + { + efl_layout_calc_size_min_static_delegate = new efl_layout_calc_size_min_delegate(calc_size_min); + } + + if (methods.FirstOrDefault(m => m.Name == "CalcSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_size_min"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_size_min_static_delegate) }); + } + + if (efl_layout_calc_parts_extends_static_delegate == null) + { + efl_layout_calc_parts_extends_static_delegate = new efl_layout_calc_parts_extends_delegate(calc_parts_extends); + } + + if (methods.FirstOrDefault(m => m.Name == "CalcPartsExtends") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_parts_extends"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_parts_extends_static_delegate) }); + } + + if (efl_layout_calc_freeze_static_delegate == null) + { + efl_layout_calc_freeze_static_delegate = new efl_layout_calc_freeze_delegate(calc_freeze); + } + + if (methods.FirstOrDefault(m => m.Name == "FreezeCalc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_freeze_static_delegate) }); + } + + if (efl_layout_calc_thaw_static_delegate == null) + { + efl_layout_calc_thaw_static_delegate = new efl_layout_calc_thaw_delegate(calc_thaw); + } + + if (methods.FirstOrDefault(m => m.Name == "ThawCalc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_thaw"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_thaw_static_delegate) }); + } + + if (efl_layout_calc_force_static_delegate == null) + { + efl_layout_calc_force_static_delegate = new efl_layout_calc_force_delegate(calc_force); + } + + if (methods.FirstOrDefault(m => m.Name == "CalcForce") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_force"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_force_static_delegate) }); + } + + if (efl_layout_group_size_min_get_static_delegate == null) + { + efl_layout_group_size_min_get_static_delegate = new efl_layout_group_size_min_get_delegate(group_size_min_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_min_get_static_delegate) }); + } + + if (efl_layout_group_size_max_get_static_delegate == null) + { + efl_layout_group_size_max_get_static_delegate = new efl_layout_group_size_max_get_delegate(group_size_max_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_max_get_static_delegate) }); + } + + if (efl_layout_group_data_get_static_delegate == null) + { + efl_layout_group_data_get_static_delegate = new efl_layout_group_data_get_delegate(group_data_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGroupData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_data_get_static_delegate) }); + } + + if (efl_layout_group_part_exist_get_static_delegate == null) + { + efl_layout_group_part_exist_get_static_delegate = new efl_layout_group_part_exist_get_delegate(part_exist_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPartExist") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_part_exist_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_part_exist_get_static_delegate) }); + } + + if (efl_layout_signal_message_send_static_delegate == null) + { + efl_layout_signal_message_send_static_delegate = new efl_layout_signal_message_send_delegate(message_send); + } + + if (methods.FirstOrDefault(m => m.Name == "MessageSend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_message_send"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_message_send_static_delegate) }); + } + + if (efl_layout_signal_callback_add_static_delegate == null) + { + efl_layout_signal_callback_add_static_delegate = new efl_layout_signal_callback_add_delegate(signal_callback_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddSignalCallback") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_callback_add"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_add_static_delegate) }); + } + + if (efl_layout_signal_callback_del_static_delegate == null) + { + efl_layout_signal_callback_del_static_delegate = new efl_layout_signal_callback_del_delegate(signal_callback_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelSignalCallback") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_callback_del"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_del_static_delegate) }); + } + + if (efl_layout_signal_emit_static_delegate == null) + { + efl_layout_signal_emit_static_delegate = new efl_layout_signal_emit_delegate(signal_emit); + } + + if (methods.FirstOrDefault(m => m.Name == "EmitSignal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_emit"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_emit_static_delegate) }); + } + + if (efl_layout_signal_process_static_delegate == null) + { + efl_layout_signal_process_static_delegate = new efl_layout_signal_process_delegate(signal_process); + } + + if (methods.FirstOrDefault(m => m.Name == "SignalProcess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_process"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_process_static_delegate) }); + } + + if (efl_ui_draggable_drag_target_get_static_delegate == null) + { + efl_ui_draggable_drag_target_get_static_delegate = new efl_ui_draggable_drag_target_get_delegate(drag_target_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetDragTarget") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_draggable_drag_target_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_draggable_drag_target_get_static_delegate) }); + } + + if (efl_ui_draggable_drag_target_set_static_delegate == null) + { + efl_ui_draggable_drag_target_set_static_delegate = new efl_ui_draggable_drag_target_set_delegate(drag_target_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDragTarget") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_draggable_drag_target_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_draggable_drag_target_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Image.efl_ui_image_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_ui_image_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool scale_up, [MarshalAs(UnmanagedType.U1)] out bool scale_down); + + + public delegate void efl_ui_image_scalable_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool scale_up, [MarshalAs(UnmanagedType.U1)] out bool scale_down); + + public static Efl.Eo.FunctionWrapper efl_ui_image_scalable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_scalable_get"); + + private static void scalable_get(System.IntPtr obj, System.IntPtr pd, out bool scale_up, out bool scale_down) + { + Eina.Log.Debug("function efl_ui_image_scalable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + scale_up = default(bool); scale_down = default(bool); + try + { + ((Image)wrapper).GetScalable(out scale_up, out scale_down); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_image_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out scale_up, out scale_down); + } + } + + private static efl_ui_image_scalable_get_delegate efl_ui_image_scalable_get_static_delegate; + + + private delegate void efl_ui_image_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scale_up, [MarshalAs(UnmanagedType.U1)] bool scale_down); + + + public delegate void efl_ui_image_scalable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scale_up, [MarshalAs(UnmanagedType.U1)] bool scale_down); + + public static Efl.Eo.FunctionWrapper efl_ui_image_scalable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_scalable_set"); + + private static void scalable_set(System.IntPtr obj, System.IntPtr pd, bool scale_up, bool scale_down) + { + Eina.Log.Debug("function efl_ui_image_scalable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetScalable(scale_up, scale_down); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_image_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_up, scale_down); + } + } + + private static efl_ui_image_scalable_set_delegate efl_ui_image_scalable_set_static_delegate; + + + private delegate void efl_ui_image_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_x, out double align_y); + + + public delegate void efl_ui_image_align_get_api_delegate(System.IntPtr obj, out double align_x, out double align_y); + + public static Efl.Eo.FunctionWrapper efl_ui_image_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_align_get"); + + private static void align_get(System.IntPtr obj, System.IntPtr pd, out double align_x, out double align_y) + { + Eina.Log.Debug("function efl_ui_image_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_x = default(double); align_y = default(double); + try + { + ((Image)wrapper).GetAlign(out align_x, out align_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_image_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_x, out align_y); + } + } + + private static efl_ui_image_align_get_delegate efl_ui_image_align_get_static_delegate; + + + private delegate void efl_ui_image_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_x, double align_y); + + + public delegate void efl_ui_image_align_set_api_delegate(System.IntPtr obj, double align_x, double align_y); + + public static Efl.Eo.FunctionWrapper efl_ui_image_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_align_set"); + + private static void align_set(System.IntPtr obj, System.IntPtr pd, double align_x, double align_y) + { + Eina.Log.Debug("function efl_ui_image_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetAlign(align_x, align_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_image_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_x, align_y); + } + } + + private static efl_ui_image_align_set_delegate efl_ui_image_align_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_image_icon_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_image_icon_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_image_icon_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_icon_get"); + + private static System.String icon_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_image_icon_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Image)wrapper).GetIcon(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_image_icon_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_image_icon_get_delegate efl_ui_image_icon_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_image_icon_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_image_icon_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_ui_image_icon_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_icon_set"); + + private static bool icon_set(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_ui_image_icon_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).SetIcon(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_image_icon_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } + } + + private static efl_ui_image_icon_set_delegate efl_ui_image_icon_set_static_delegate; + + + private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_get"); + + private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_mmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.File _ret_var = default(Eina.File); + try + { + _ret_var = ((Image)wrapper).GetMmap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + + + private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + + + public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_set"); + + private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) + { + Eina.Log.Debug("function efl_file_mmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Image)wrapper).SetMmap(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } + } + + private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_get"); + + private static System.String file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Image)wrapper).GetFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_get_delegate efl_file_get_static_delegate; + + + private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + + public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_set"); + + private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) + { + Eina.Log.Debug("function efl_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Image)wrapper).SetFile(file); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); + } + } + + private static efl_file_set_delegate efl_file_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_get"); + + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Image)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + + + private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_file_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetKey(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } + } + + private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_loaded_get"); + + private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_loaded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetLoaded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + + + private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_load"); + + private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_load was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Image)wrapper).Load(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_load_delegate efl_file_load_static_delegate; + + + private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_file_unload_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_unload"); + + private static void unload(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_unload was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).Unload(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_unload_delegate efl_file_unload_static_delegate; + + + private delegate Efl.Orient efl_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Orient efl_orientation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_get"); + + private static Efl.Orient orientation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_orientation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Orient _ret_var = default(Efl.Orient); + try + { + _ret_var = ((Image)wrapper).GetOrientation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_orientation_get_delegate efl_orientation_get_static_delegate; + + + private delegate void efl_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir); + + + public delegate void efl_orientation_set_api_delegate(System.IntPtr obj, Efl.Orient dir); + + public static Efl.Eo.FunctionWrapper efl_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_set"); + + private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir) + { + Eina.Log.Debug("function efl_orientation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetOrientation(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } + + private static efl_orientation_set_delegate efl_orientation_set_static_delegate; + + + private delegate Efl.Flip efl_orientation_flip_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Flip efl_orientation_flip_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_orientation_flip_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_flip_get"); + + private static Efl.Flip flip_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_orientation_flip_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Flip _ret_var = default(Efl.Flip); + try + { + _ret_var = ((Image)wrapper).GetFlip(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_orientation_flip_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_orientation_flip_get_delegate efl_orientation_flip_get_static_delegate; + + + private delegate void efl_orientation_flip_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip); + + + public delegate void efl_orientation_flip_set_api_delegate(System.IntPtr obj, Efl.Flip flip); + + public static Efl.Eo.FunctionWrapper efl_orientation_flip_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_orientation_flip_set"); + + private static void flip_set(System.IntPtr obj, System.IntPtr pd, Efl.Flip flip) + { + Eina.Log.Debug("function efl_orientation_flip_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetFlip(flip); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_orientation_flip_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flip); + } + } + + private static efl_orientation_flip_set_delegate efl_orientation_flip_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_playable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_playable_get"); + + private static bool playable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_playable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetPlayable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_play_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_get"); + + private static bool play_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_play_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetPlay(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_play_get_delegate efl_player_play_get_static_delegate; + + + private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play); + + + public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play); + + public static Efl.Eo.FunctionWrapper efl_player_play_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_set"); + + private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play) + { + Eina.Log.Debug("function efl_player_play_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetPlay(play); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play); + } + } + + private static efl_player_play_set_delegate efl_player_play_set_static_delegate; + + + private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_pos_get"); + + private static double pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)wrapper).GetPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate; + + + private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + + + public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec); + + public static Efl.Eo.FunctionWrapper efl_player_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_pos_set"); + + private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec) + { + Eina.Log.Debug("function efl_player_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetPos(sec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); + } + } + + private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate; + + + private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_progress_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_progress_get"); + + private static double progress_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_progress_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)wrapper).GetProgress(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate; + + + private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_play_speed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_speed_get"); + + private static double play_speed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_play_speed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)wrapper).GetPlaySpeed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate; + + + private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed); + + + public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed); + + public static Efl.Eo.FunctionWrapper efl_player_play_speed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_speed_set"); + + private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed) + { + Eina.Log.Debug("function efl_player_play_speed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetPlaySpeed(speed); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed); + } + } + + private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate; + + + private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_volume_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_volume_get"); + + private static double volume_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_volume_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)wrapper).GetVolume(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate; + + + private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume); + + + public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume); + + public static Efl.Eo.FunctionWrapper efl_player_volume_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_volume_set"); + + private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume) + { + Eina.Log.Debug("function efl_player_volume_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetVolume(volume); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume); + } + } + + private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_mute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_mute_get"); + + private static bool mute_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_mute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetMute(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate; + + + private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute); + + + public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute); + + public static Efl.Eo.FunctionWrapper efl_player_mute_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_mute_set"); + + private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute) + { + Eina.Log.Debug("function efl_player_mute_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetMute(mute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute); + } + } + + private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate; + + + private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_length_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_length_get"); + + private static double length_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_length_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)wrapper).GetLength(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_length_get_delegate efl_player_length_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_seekable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_seekable_get"); + + private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_seekable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetSeekable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate; + + + private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_player_start_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_start"); + + private static void start(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).Start(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_start_delegate efl_player_start_static_delegate; + + + private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_player_stop_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_stop_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_stop"); + + private static void stop(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_stop was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).Stop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_player_stop_delegate efl_player_stop_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_get"); + + private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetSmoothScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; + + + private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + + public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_set"); + + private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetSmoothScale(smooth_scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); + } + } + + private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; + + + private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_get"); + + private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); + try + { + _ret_var = ((Image)wrapper).GetScaleType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; + + + private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + + + public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_set"); + + private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetScaleType(scale_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); + } + } + + private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + + + private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_ratio_get"); + + private static double ratio_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)wrapper).GetRatio(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + + + private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + + public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_get"); + + private static void border_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_image_border_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((Image)wrapper).GetBorder(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + } + } + + private static efl_gfx_image_border_get_delegate efl_gfx_image_border_get_static_delegate; + + + private delegate void efl_gfx_image_border_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + + + public delegate void efl_gfx_image_border_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_set"); + + private static void border_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) + { + Eina.Log.Debug("function efl_gfx_image_border_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetBorder(l, r, t, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); + } + } + + private static efl_gfx_image_border_set_delegate efl_gfx_image_border_set_static_delegate; + + + private delegate double efl_gfx_image_border_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_gfx_image_border_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_get"); + + private static double border_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)wrapper).GetBorderScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_border_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_border_scale_get_delegate efl_gfx_image_border_scale_get_static_delegate; + + + private delegate void efl_gfx_image_border_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + + public delegate void efl_gfx_image_border_scale_set_api_delegate(System.IntPtr obj, double scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_set"); + + private static void border_scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetBorderScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + } + } + + private static efl_gfx_image_border_scale_set_delegate efl_gfx_image_border_scale_set_static_delegate; + + + private delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_get"); + + private static Efl.Gfx.BorderFillMode border_center_fill_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.BorderFillMode _ret_var = default(Efl.Gfx.BorderFillMode); + try + { + _ret_var = ((Image)wrapper).GetBorderCenterFill(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_border_center_fill_get_delegate efl_gfx_image_border_center_fill_get_static_delegate; + + + private delegate void efl_gfx_image_border_center_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill); + + + public delegate void efl_gfx_image_border_center_fill_set_api_delegate(System.IntPtr obj, Efl.Gfx.BorderFillMode fill); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_set"); + + private static void border_center_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetBorderCenterFill(fill); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); + } + } + + private static efl_gfx_image_border_center_fill_set_delegate efl_gfx_image_border_center_fill_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_size_get"); + + private static Eina.Size2D.NativeStruct image_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Image)wrapper).GetImageSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_player_stop_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_stop_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_stop"); - private static void stop(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_stop was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).Stop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_stop_delegate efl_player_stop_static_delegate; + private static efl_gfx_image_size_get_delegate efl_gfx_image_size_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_get"); + + private static Efl.Gfx.ImageContentHint content_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageContentHint _ret_var = default(Efl.Gfx.ImageContentHint); + try + { + _ret_var = ((Image)wrapper).GetContentHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_smooth_scale_get"); - private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetSmoothScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_content_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; + private static efl_gfx_image_content_hint_get_delegate efl_gfx_image_content_hint_get_static_delegate; - private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + private delegate void efl_gfx_image_content_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint); + + public delegate void efl_gfx_image_content_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageContentHint hint); - public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_smooth_scale_set"); - private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) - { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetSmoothScale( smooth_scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_set"); + + private static void content_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetContentHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_content_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } } - } - private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; + private static efl_gfx_image_content_hint_set_delegate efl_gfx_image_content_hint_set_static_delegate; - private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_get"); + + private static Efl.Gfx.ImageScaleHint scale_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageScaleHint _ret_var = default(Efl.Gfx.ImageScaleHint); + try + { + _ret_var = ((Image)wrapper).GetScaleHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_type_get"); - private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); - try { - _ret_var = ((Image)wrapper).GetScaleType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_scale_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; + private static efl_gfx_image_scale_hint_get_delegate efl_gfx_image_scale_hint_get_static_delegate; - private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + + private delegate void efl_gfx_image_scale_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint); + + + public delegate void efl_gfx_image_scale_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleHint hint); + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_set"); - public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_type_set"); - private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) - { - Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetScaleType( scale_type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); + private static void scale_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetScaleHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_scale_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } } - } - private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + private static efl_gfx_image_scale_hint_set_delegate efl_gfx_image_scale_hint_set_static_delegate; + + + private delegate Eina.Error efl_gfx_image_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); - private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Error efl_gfx_image_load_error_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_error_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_error_get"); + + private static Eina.Error image_load_error_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_error_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Image)wrapper).GetImageLoadError(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_ratio_get"); - private static double ratio_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Image)wrapper).GetRatio(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + private static efl_gfx_image_load_error_get_delegate efl_gfx_image_load_error_get_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + public delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_size_get"); - public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_get"); - private static void border_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) - { - Eina.Log.Debug("function efl_gfx_image_border_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(int); r = default(int); t = default(int); b = default(int); - try { - ((Image)wrapper).GetBorder( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + private static Eina.Size2D.NativeStruct load_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Image)wrapper).GetLoadSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_border_get_delegate efl_gfx_image_border_get_static_delegate; + private static efl_gfx_image_load_controller_load_size_get_delegate efl_gfx_image_load_controller_load_size_get_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); - private delegate void efl_gfx_image_border_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + + public delegate void efl_gfx_image_load_controller_load_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_size_set"); - public delegate void efl_gfx_image_border_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_set"); - private static void border_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) - { - Eina.Log.Debug("function efl_gfx_image_border_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetBorder( l, r, t, b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); + private static void load_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; + + try + { + ((Image)wrapper).SetLoadSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } } - } - private static efl_gfx_image_border_set_delegate efl_gfx_image_border_set_static_delegate; + private static efl_gfx_image_load_controller_load_size_set_delegate efl_gfx_image_load_controller_load_size_set_static_delegate; + + + private delegate double efl_gfx_image_load_controller_load_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd); - private delegate double efl_gfx_image_border_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_gfx_image_load_controller_load_dpi_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_dpi_get"); + + private static double load_dpi_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)wrapper).GetLoadDpi(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_gfx_image_border_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_scale_get"); - private static double border_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_border_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Image)wrapper).GetBorderScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_border_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_border_scale_get_delegate efl_gfx_image_border_scale_get_static_delegate; + private static efl_gfx_image_load_controller_load_dpi_get_delegate efl_gfx_image_load_controller_load_dpi_get_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_dpi_set_delegate(System.IntPtr obj, System.IntPtr pd, double dpi); - private delegate void efl_gfx_image_border_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + public delegate void efl_gfx_image_load_controller_load_dpi_set_api_delegate(System.IntPtr obj, double dpi); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_dpi_set"); - public delegate void efl_gfx_image_border_scale_set_api_delegate(System.IntPtr obj, double scale); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_scale_set"); - private static void border_scale_set(System.IntPtr obj, System.IntPtr pd, double scale) - { - Eina.Log.Debug("function efl_gfx_image_border_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetBorderScale( scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + private static void load_dpi_set(System.IntPtr obj, System.IntPtr pd, double dpi) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetLoadDpi(dpi); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dpi); + } } - } - private static efl_gfx_image_border_scale_set_delegate efl_gfx_image_border_scale_set_static_delegate; + private static efl_gfx_image_load_controller_load_dpi_set_delegate efl_gfx_image_load_controller_load_dpi_set_static_delegate; - private delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_region_support_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_region_support_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_support_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_support_get"); + + private static bool load_region_support_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_support_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetLoadRegionSupport(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_center_fill_get"); - private static Efl.Gfx.BorderFillMode border_center_fill_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_border_center_fill_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.BorderFillMode _ret_var = default(Efl.Gfx.BorderFillMode); - try { - _ret_var = ((Image)wrapper).GetBorderCenterFill(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_border_center_fill_get_delegate efl_gfx_image_border_center_fill_get_static_delegate; + private static efl_gfx_image_load_controller_load_region_support_get_delegate efl_gfx_image_load_controller_load_region_support_get_static_delegate; - private delegate void efl_gfx_image_border_center_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill); + + private delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_image_border_center_fill_set_api_delegate(System.IntPtr obj, Efl.Gfx.BorderFillMode fill); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_center_fill_set"); - private static void border_center_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill) - { - Eina.Log.Debug("function efl_gfx_image_border_center_fill_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetBorderCenterFill( fill); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_get"); + + private static Eina.Rect.NativeStruct load_region_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Image)wrapper).GetLoadRegion(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_border_center_fill_set_delegate efl_gfx_image_border_center_fill_set_static_delegate; + private static efl_gfx_image_load_controller_load_region_get_delegate efl_gfx_image_load_controller_load_region_get_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_image_load_controller_load_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region); + + public delegate void efl_gfx_image_load_controller_load_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region); - public delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_size_get"); - private static Eina.Size2D.NativeStruct image_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Image)wrapper).GetImageSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_region_set"); + + private static void load_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_region = region; + + try + { + ((Image)wrapper).SetLoadRegion(_in_region); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region); } + } + + private static efl_gfx_image_load_controller_load_region_set_delegate efl_gfx_image_load_controller_load_region_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_orientation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_orientation_get"); + + private static bool load_orientation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetLoadOrientation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_image_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_size_get_delegate efl_gfx_image_size_get_static_delegate; + private static efl_gfx_image_load_controller_load_orientation_get_delegate efl_gfx_image_load_controller_load_orientation_get_static_delegate; - private delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_image_load_controller_load_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + + public delegate void efl_gfx_image_load_controller_load_orientation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_content_hint_get"); - private static Efl.Gfx.ImageContentHint content_hint_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_content_hint_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageContentHint _ret_var = default(Efl.Gfx.ImageContentHint); - try { - _ret_var = ((Image)wrapper).GetContentHint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_orientation_set"); + + private static void load_orientation_set(System.IntPtr obj, System.IntPtr pd, bool enable) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetLoadOrientation(enable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); } - return _ret_var; - } else { - return efl_gfx_image_content_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_content_hint_get_delegate efl_gfx_image_content_hint_get_static_delegate; + private static efl_gfx_image_load_controller_load_orientation_set_delegate efl_gfx_image_load_controller_load_orientation_set_static_delegate; - private delegate void efl_gfx_image_content_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint); + + private delegate int efl_gfx_image_load_controller_load_scale_down_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_gfx_image_load_controller_load_scale_down_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_scale_down_get"); - public delegate void efl_gfx_image_content_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageContentHint hint); - public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_content_hint_set"); - private static void content_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint) - { - Eina.Log.Debug("function efl_gfx_image_content_hint_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetContentHint( hint); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_content_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + private static int load_scale_down_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Image)wrapper).GetLoadScaleDown(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_content_hint_set_delegate efl_gfx_image_content_hint_set_static_delegate; + private static efl_gfx_image_load_controller_load_scale_down_get_delegate efl_gfx_image_load_controller_load_scale_down_get_static_delegate; - private delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_image_load_controller_load_scale_down_set_delegate(System.IntPtr obj, System.IntPtr pd, int div); + + + public delegate void efl_gfx_image_load_controller_load_scale_down_set_api_delegate(System.IntPtr obj, int div); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_scale_down_set"); - public delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_hint_get"); - private static Efl.Gfx.ImageScaleHint scale_hint_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_scale_hint_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageScaleHint _ret_var = default(Efl.Gfx.ImageScaleHint); - try { - _ret_var = ((Image)wrapper).GetScaleHint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void load_scale_down_set(System.IntPtr obj, System.IntPtr pd, int div) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetLoadScaleDown(div); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), div); } + } + + private static efl_gfx_image_load_controller_load_scale_down_set_delegate efl_gfx_image_load_controller_load_scale_down_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_load_controller_load_skip_header_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_load_controller_load_skip_header_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_skip_header_get"); + + private static bool load_skip_header_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetLoadSkipHeader(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_image_scale_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_scale_hint_get_delegate efl_gfx_image_scale_hint_get_static_delegate; + private static efl_gfx_image_load_controller_load_skip_header_get_delegate efl_gfx_image_load_controller_load_skip_header_get_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_skip_header_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool skip); - private delegate void efl_gfx_image_scale_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint); + + public delegate void efl_gfx_image_load_controller_load_skip_header_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool skip); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_skip_header_set"); - public delegate void efl_gfx_image_scale_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleHint hint); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_hint_set"); - private static void scale_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint) - { - Eina.Log.Debug("function efl_gfx_image_scale_hint_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetScaleHint( hint); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_scale_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + private static void load_skip_header_set(System.IntPtr obj, System.IntPtr pd, bool skip) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetLoadSkipHeader(skip); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), skip); + } } - } - private static efl_gfx_image_scale_hint_set_delegate efl_gfx_image_scale_hint_set_static_delegate; + private static efl_gfx_image_load_controller_load_skip_header_set_delegate efl_gfx_image_load_controller_load_skip_header_set_static_delegate; + + + private delegate void efl_gfx_image_load_controller_load_async_start_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_image_load_controller_load_async_start_api_delegate(System.IntPtr obj); - private delegate Eina.Error efl_gfx_image_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_async_start"); + private static void load_async_start(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).LoadAsyncStart(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Error efl_gfx_image_load_error_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_error_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_error_get"); - private static Eina.Error image_load_error_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_error_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Image)wrapper).GetImageLoadError(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_gfx_image_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_load_error_get_delegate efl_gfx_image_load_error_get_static_delegate; + private static efl_gfx_image_load_controller_load_async_start_delegate efl_gfx_image_load_controller_load_async_start_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_image_load_controller_load_async_cancel_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_gfx_image_load_controller_load_async_cancel_api_delegate(System.IntPtr obj); - public delegate Eina.Size2D.NativeStruct efl_gfx_image_load_controller_load_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_size_get"); - private static Eina.Size2D.NativeStruct load_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Image)wrapper).GetLoadSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_cancel_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_controller_load_async_cancel"); + + private static void load_async_cancel(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_cancel was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).LoadAsyncCancel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_load_controller_load_size_get_delegate efl_gfx_image_load_controller_load_size_get_static_delegate; + private static efl_gfx_image_load_controller_load_async_cancel_delegate efl_gfx_image_load_controller_load_async_cancel_static_delegate; - private delegate void efl_gfx_image_load_controller_load_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + private delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_image_load_controller_load_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_size_set"); - private static void load_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; - - try { - ((Image)wrapper).SetLoadSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_gfx_view_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_view_size_get"); + + private static Eina.Size2D.NativeStruct view_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_view_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Image)wrapper).GetViewSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_view_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_gfx_image_load_controller_load_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - } - private static efl_gfx_image_load_controller_load_size_set_delegate efl_gfx_image_load_controller_load_size_set_static_delegate; + private static efl_gfx_view_size_get_delegate efl_gfx_view_size_get_static_delegate; - private delegate double efl_gfx_image_load_controller_load_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_view_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + + public delegate void efl_gfx_view_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); + public static Efl.Eo.FunctionWrapper efl_gfx_view_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_view_size_set"); - public delegate double efl_gfx_image_load_controller_load_dpi_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_dpi_get"); - private static double load_dpi_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Image)wrapper).GetLoadDpi(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void view_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_view_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; + + try + { + ((Image)wrapper).SetViewSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_view_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_load_controller_load_dpi_get_delegate efl_gfx_image_load_controller_load_dpi_get_static_delegate; + private static efl_gfx_view_size_set_delegate efl_gfx_view_size_set_static_delegate; - private delegate void efl_gfx_image_load_controller_load_dpi_set_delegate(System.IntPtr obj, System.IntPtr pd, double dpi); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_calc_auto_update_hints_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_calc_auto_update_hints_get_api_delegate(System.IntPtr obj); - public delegate void efl_gfx_image_load_controller_load_dpi_set_api_delegate(System.IntPtr obj, double dpi); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_dpi_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_dpi_set"); - private static void load_dpi_set(System.IntPtr obj, System.IntPtr pd, double dpi) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_dpi_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetLoadDpi( dpi); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_dpi_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dpi); - } - } - private static efl_gfx_image_load_controller_load_dpi_set_delegate efl_gfx_image_load_controller_load_dpi_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_auto_update_hints_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_region_support_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool calc_auto_update_hints_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_auto_update_hints_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetCalcAutoUpdateHints(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_region_support_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_support_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_support_get"); - private static bool load_region_support_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_support_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetLoadRegionSupport(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_region_support_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_region_support_get_delegate efl_gfx_image_load_controller_load_region_support_get_static_delegate; + private static efl_layout_calc_auto_update_hints_get_delegate efl_layout_calc_auto_update_hints_get_static_delegate; - private delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_layout_calc_auto_update_hints_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool update); + + + public delegate void efl_layout_calc_auto_update_hints_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool update); + public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_auto_update_hints_set"); - public delegate Eina.Rect.NativeStruct efl_gfx_image_load_controller_load_region_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_get"); - private static Eina.Rect.NativeStruct load_region_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Image)wrapper).GetLoadRegion(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void calc_auto_update_hints_set(System.IntPtr obj, System.IntPtr pd, bool update) + { + Eina.Log.Debug("function efl_layout_calc_auto_update_hints_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetCalcAutoUpdateHints(update); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), update); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_load_controller_load_region_get_delegate efl_gfx_image_load_controller_load_region_get_static_delegate; - - private delegate void efl_gfx_image_load_controller_load_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region); + private static efl_layout_calc_auto_update_hints_set_delegate efl_layout_calc_auto_update_hints_set_static_delegate; + + private delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted); - public delegate void efl_gfx_image_load_controller_load_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_region_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_region_set"); - private static void load_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_region_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_region = region; - - try { - ((Image)wrapper).SetLoadRegion( _in_region); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region); - } - } - private static efl_gfx_image_load_controller_load_region_set_delegate efl_gfx_image_load_controller_load_region_set_static_delegate; + + public delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct restricted); + public static Efl.Eo.FunctionWrapper efl_layout_calc_size_min_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_size_min"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Eina.Size2D.NativeStruct calc_size_min(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted) + { + Eina.Log.Debug("function efl_layout_calc_size_min was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_restricted = restricted; + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Image)wrapper).CalcSizeMin(_in_restricted); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_orientation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_orientation_get"); - private static bool load_orientation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetLoadOrientation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_layout_calc_size_min_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), restricted); + } } - } - private static efl_gfx_image_load_controller_load_orientation_get_delegate efl_gfx_image_load_controller_load_orientation_get_static_delegate; - - private delegate void efl_gfx_image_load_controller_load_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + private static efl_layout_calc_size_min_delegate efl_layout_calc_size_min_static_delegate; + + private delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_image_load_controller_load_orientation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_orientation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_orientation_set"); - private static void load_orientation_set(System.IntPtr obj, System.IntPtr pd, bool enable) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_orientation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetLoadOrientation( enable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); - } - } - private static efl_gfx_image_load_controller_load_orientation_set_delegate efl_gfx_image_load_controller_load_orientation_set_static_delegate; + + public delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_layout_calc_parts_extends_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_parts_extends"); - private delegate int efl_gfx_image_load_controller_load_scale_down_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Eina.Rect.NativeStruct calc_parts_extends(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_parts_extends was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Image)wrapper).CalcPartsExtends(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_gfx_image_load_controller_load_scale_down_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_scale_down_get"); - private static int load_scale_down_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Image)wrapper).GetLoadScaleDown(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_scale_down_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_layout_calc_parts_extends_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_scale_down_get_delegate efl_gfx_image_load_controller_load_scale_down_get_static_delegate; + private static efl_layout_calc_parts_extends_delegate efl_layout_calc_parts_extends_static_delegate; - private delegate void efl_gfx_image_load_controller_load_scale_down_set_delegate(System.IntPtr obj, System.IntPtr pd, int div); - + + private delegate int efl_layout_calc_freeze_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_image_load_controller_load_scale_down_set_api_delegate(System.IntPtr obj, int div); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_scale_down_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_scale_down_set"); - private static void load_scale_down_set(System.IntPtr obj, System.IntPtr pd, int div) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_scale_down_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetLoadScaleDown( div); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_scale_down_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), div); - } - } - private static efl_gfx_image_load_controller_load_scale_down_set_delegate efl_gfx_image_load_controller_load_scale_down_set_static_delegate; + + public delegate int efl_layout_calc_freeze_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_layout_calc_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_freeze"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_load_controller_load_skip_header_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static int calc_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Image)wrapper).FreezeCalc(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_load_controller_load_skip_header_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_skip_header_get"); - private static bool load_skip_header_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetLoadSkipHeader(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_load_controller_load_skip_header_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_layout_calc_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_skip_header_get_delegate efl_gfx_image_load_controller_load_skip_header_get_static_delegate; - - private delegate void efl_gfx_image_load_controller_load_skip_header_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool skip); + private static efl_layout_calc_freeze_delegate efl_layout_calc_freeze_static_delegate; + + private delegate int efl_layout_calc_thaw_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_image_load_controller_load_skip_header_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool skip); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_skip_header_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_skip_header_set"); - private static void load_skip_header_set(System.IntPtr obj, System.IntPtr pd, bool skip) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_skip_header_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetLoadSkipHeader( skip); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_skip_header_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), skip); - } - } - private static efl_gfx_image_load_controller_load_skip_header_set_delegate efl_gfx_image_load_controller_load_skip_header_set_static_delegate; + + public delegate int efl_layout_calc_thaw_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_layout_calc_thaw_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_thaw"); - private delegate void efl_gfx_image_load_controller_load_async_start_delegate(System.IntPtr obj, System.IntPtr pd); + private static int calc_thaw(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_thaw was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Image)wrapper).ThawCalc(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_image_load_controller_load_async_start_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_async_start"); - private static void load_async_start(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).LoadAsyncStart(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_gfx_image_load_controller_load_async_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_layout_calc_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_controller_load_async_start_delegate efl_gfx_image_load_controller_load_async_start_static_delegate; - - - private delegate void efl_gfx_image_load_controller_load_async_cancel_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_layout_calc_thaw_delegate efl_layout_calc_thaw_static_delegate; - public delegate void efl_gfx_image_load_controller_load_async_cancel_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_controller_load_async_cancel_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_controller_load_async_cancel"); - private static void load_async_cancel(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_controller_load_async_cancel was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).LoadAsyncCancel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_load_controller_load_async_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_load_controller_load_async_cancel_delegate efl_gfx_image_load_controller_load_async_cancel_static_delegate; + + private delegate void efl_layout_calc_force_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_layout_calc_force_api_delegate(System.IntPtr obj); - private delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_layout_calc_force_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_force"); + private static void calc_force(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_force was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).CalcForce(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_view_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_view_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_view_size_get"); - private static Eina.Size2D.NativeStruct view_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_view_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Image)wrapper).GetViewSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_layout_calc_force_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_gfx_view_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_view_size_get_delegate efl_gfx_view_size_get_static_delegate; + private static efl_layout_calc_force_delegate efl_layout_calc_force_static_delegate; - private delegate void efl_gfx_view_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); - + + private delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_view_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_view_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_view_size_set"); - private static void view_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_view_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; - - try { - ((Image)wrapper).SetViewSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_view_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - private static efl_gfx_view_size_set_delegate efl_gfx_view_size_set_static_delegate; + + public delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_layout_group_size_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_size_min_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_calc_auto_update_hints_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Eina.Size2D.NativeStruct group_size_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_group_size_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Image)wrapper).GetGroupSizeMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_calc_auto_update_hints_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_auto_update_hints_get"); - private static bool calc_auto_update_hints_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_auto_update_hints_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetCalcAutoUpdateHints(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_layout_group_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_auto_update_hints_get_delegate efl_layout_calc_auto_update_hints_get_static_delegate; - - private delegate void efl_layout_calc_auto_update_hints_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool update); + private static efl_layout_group_size_min_get_delegate efl_layout_group_size_min_get_static_delegate; + + private delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_layout_calc_auto_update_hints_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool update); - public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_auto_update_hints_set"); - private static void calc_auto_update_hints_set(System.IntPtr obj, System.IntPtr pd, bool update) - { - Eina.Log.Debug("function efl_layout_calc_auto_update_hints_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetCalcAutoUpdateHints( update); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), update); - } - } - private static efl_layout_calc_auto_update_hints_set_delegate efl_layout_calc_auto_update_hints_set_static_delegate; + + public delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_layout_group_size_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_size_max_get"); - private delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted); + private static Eina.Size2D.NativeStruct group_size_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_group_size_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Image)wrapper).GetGroupSizeMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct restricted); - public static Efl.Eo.FunctionWrapper efl_layout_calc_size_min_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_size_min"); - private static Eina.Size2D.NativeStruct calc_size_min(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted) - { - Eina.Log.Debug("function efl_layout_calc_size_min was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_restricted = restricted; - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Image)wrapper).CalcSizeMin( _in_restricted); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_layout_calc_size_min_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), restricted); + else + { + return efl_layout_group_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_size_min_delegate efl_layout_calc_size_min_static_delegate; - - private delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_layout_group_size_max_get_delegate efl_layout_group_size_max_get_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_layout_group_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_parts_extends_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_parts_extends"); - private static Eina.Rect.NativeStruct calc_parts_extends(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_parts_extends was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Image)wrapper).CalcPartsExtends(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_layout_calc_parts_extends_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_layout_calc_parts_extends_delegate efl_layout_calc_parts_extends_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_layout_group_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + public static Efl.Eo.FunctionWrapper efl_layout_group_data_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_data_get"); - private delegate int efl_layout_calc_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.String group_data_get(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_layout_group_data_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Image)wrapper).GetGroupData(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_layout_calc_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_freeze"); - private static int calc_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Image)wrapper).FreezeCalc(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_layout_calc_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_layout_group_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } } - } - private static efl_layout_calc_freeze_delegate efl_layout_calc_freeze_static_delegate; + private static efl_layout_group_data_get_delegate efl_layout_group_data_get_static_delegate; - private delegate int efl_layout_calc_thaw_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_group_part_exist_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_group_part_exist_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public delegate int efl_layout_calc_thaw_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_thaw_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_thaw"); - private static int calc_thaw(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_thaw was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Image)wrapper).ThawCalc(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_layout_calc_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_layout_calc_thaw_delegate efl_layout_calc_thaw_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_layout_group_part_exist_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_part_exist_get"); - private delegate void efl_layout_calc_force_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool part_exist_get(System.IntPtr obj, System.IntPtr pd, System.String part) + { + Eina.Log.Debug("function efl_layout_group_part_exist_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetPartExist(part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_layout_calc_force_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_force_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_force"); - private static void calc_force(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_force was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).CalcForce(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_layout_calc_force_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_layout_group_part_exist_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + } } - } - private static efl_layout_calc_force_delegate efl_layout_calc_force_static_delegate; + private static efl_layout_group_part_exist_get_delegate efl_layout_group_part_exist_get_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_layout_signal_message_send_delegate(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg); + + public delegate void efl_layout_signal_message_send_api_delegate(System.IntPtr obj, int id, Eina.ValueNative msg); - public delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_group_size_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_size_min_get"); - private static Eina.Size2D.NativeStruct group_size_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_group_size_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Image)wrapper).GetGroupSizeMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_layout_signal_message_send_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_message_send"); + + private static void message_send(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg) + { + Eina.Log.Debug("function efl_layout_signal_message_send was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).MessageSend(id, msg); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_message_send_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id, msg); } - return _ret_var; - } else { - return efl_layout_group_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_layout_group_size_min_get_delegate efl_layout_group_size_min_get_static_delegate; + private static efl_layout_signal_message_send_delegate efl_layout_signal_message_send_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_signal_callback_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_signal_callback_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - public delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_group_size_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_size_max_get"); - private static Eina.Size2D.NativeStruct group_size_max_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_group_size_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Image)wrapper).GetGroupSizeMax(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_layout_group_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_layout_group_size_max_get_delegate efl_layout_group_size_max_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_callback_add"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_layout_group_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + private static bool signal_callback_add(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_layout_signal_callback_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).AddSignalCallback(emission, source, func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_layout_group_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_layout_group_data_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_data_get"); - private static System.String group_data_get(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_layout_group_data_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Image)wrapper).GetGroupData( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_layout_group_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + else + { + return efl_layout_signal_callback_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + } } - } - private static efl_layout_group_data_get_delegate efl_layout_group_data_get_static_delegate; + private static efl_layout_signal_callback_add_delegate efl_layout_signal_callback_add_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_group_part_exist_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_signal_callback_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_signal_callback_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_group_part_exist_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_layout_group_part_exist_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_part_exist_get"); - private static bool part_exist_get(System.IntPtr obj, System.IntPtr pd, System.String part) - { - Eina.Log.Debug("function efl_layout_group_part_exist_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetPartExist( part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_layout_group_part_exist_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); - } - } - private static efl_layout_group_part_exist_get_delegate efl_layout_group_part_exist_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_callback_del"); - private delegate void efl_layout_signal_message_send_delegate(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg); + private static bool signal_callback_del(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_layout_signal_callback_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).DelSignalCallback(emission, source, func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_layout_signal_message_send_api_delegate(System.IntPtr obj, int id, Eina.ValueNative msg); - public static Efl.Eo.FunctionWrapper efl_layout_signal_message_send_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_message_send"); - private static void message_send(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg) - { - Eina.Log.Debug("function efl_layout_signal_message_send was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).MessageSend( id, msg); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_layout_signal_message_send_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id, msg); + else + { + return efl_layout_signal_callback_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + } } - } - private static efl_layout_signal_message_send_delegate efl_layout_signal_message_send_static_delegate; + private static efl_layout_signal_callback_del_delegate efl_layout_signal_callback_del_static_delegate; + + + private delegate void efl_layout_signal_emit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_signal_callback_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + + public delegate void efl_layout_signal_emit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); + public static Efl.Eo.FunctionWrapper efl_layout_signal_emit_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_emit"); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_signal_callback_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_callback_add"); - private static bool signal_callback_add(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_layout_signal_callback_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).AddSignalCallback( emission, source, func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void signal_emit(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source) + { + Eina.Log.Debug("function efl_layout_signal_emit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).EmitSignal(emission, source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_emit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source); } - return _ret_var; - } else { - return efl_layout_signal_callback_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); } - } - private static efl_layout_signal_callback_add_delegate efl_layout_signal_callback_add_static_delegate; + private static efl_layout_signal_emit_delegate efl_layout_signal_emit_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_signal_callback_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + + private delegate void efl_layout_signal_process_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool recurse); + + public delegate void efl_layout_signal_process_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool recurse); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_signal_callback_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_callback_del"); - private static bool signal_callback_del(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_layout_signal_callback_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).DelSignalCallback( emission, source, func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_layout_signal_process_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_process"); + + private static void signal_process(System.IntPtr obj, System.IntPtr pd, bool recurse) + { + Eina.Log.Debug("function efl_layout_signal_process was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SignalProcess(recurse); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_process_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recurse); } - return _ret_var; - } else { - return efl_layout_signal_callback_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); } - } - private static efl_layout_signal_callback_del_delegate efl_layout_signal_callback_del_static_delegate; + private static efl_layout_signal_process_delegate efl_layout_signal_process_static_delegate; - private delegate void efl_layout_signal_emit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_draggable_drag_target_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_draggable_drag_target_get_api_delegate(System.IntPtr obj); - public delegate void efl_layout_signal_emit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); - public static Efl.Eo.FunctionWrapper efl_layout_signal_emit_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_emit"); - private static void signal_emit(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source) - { - Eina.Log.Debug("function efl_layout_signal_emit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).EmitSignal( emission, source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_signal_emit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source); - } - } - private static efl_layout_signal_emit_delegate efl_layout_signal_emit_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_draggable_drag_target_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_draggable_drag_target_get"); - private delegate void efl_layout_signal_process_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool recurse); + private static bool drag_target_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_draggable_drag_target_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)wrapper).GetDragTarget(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_layout_signal_process_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool recurse); - public static Efl.Eo.FunctionWrapper efl_layout_signal_process_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_process"); - private static void signal_process(System.IntPtr obj, System.IntPtr pd, bool recurse) - { - Eina.Log.Debug("function efl_layout_signal_process was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SignalProcess( recurse); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_signal_process_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recurse); + } + else + { + return efl_ui_draggable_drag_target_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_signal_process_delegate efl_layout_signal_process_static_delegate; + private static efl_ui_draggable_drag_target_get_delegate efl_ui_draggable_drag_target_get_static_delegate; + + + private delegate void efl_ui_draggable_drag_target_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool set); + + + public delegate void efl_ui_draggable_drag_target_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool set); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_draggable_drag_target_get_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_ui_draggable_drag_target_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_draggable_drag_target_set"); + private static void drag_target_set(System.IntPtr obj, System.IntPtr pd, bool set) + { + Eina.Log.Debug("function efl_ui_draggable_drag_target_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Image)wrapper).SetDragTarget(set); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_draggable_drag_target_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_draggable_drag_target_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_draggable_drag_target_get"); - private static bool drag_target_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_draggable_drag_target_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Image)wrapper).GetDragTarget(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_ui_draggable_drag_target_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), set); } - return _ret_var; - } else { - return efl_ui_draggable_drag_target_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_draggable_drag_target_get_delegate efl_ui_draggable_drag_target_get_static_delegate; + private static efl_ui_draggable_drag_target_set_delegate efl_ui_draggable_drag_target_set_static_delegate; - private delegate void efl_ui_draggable_drag_target_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool set); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_draggable_drag_target_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool set); - public static Efl.Eo.FunctionWrapper efl_ui_draggable_drag_target_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_draggable_drag_target_set"); - private static void drag_target_set(System.IntPtr obj, System.IntPtr pd, bool set) - { - Eina.Log.Debug("function efl_ui_draggable_drag_target_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Image)wrapper).SetDragTarget( set); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_draggable_drag_target_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), set); - } - } - private static efl_ui_draggable_drag_target_set_delegate efl_ui_draggable_drag_target_set_static_delegate; } -} } -namespace Efl { namespace Ui { + +namespace Efl { + +namespace Ui { + /// Structure associated with smart callback 'download,progress'. [StructLayout(LayoutKind.Sequential)] public struct ImageProgress @@ -4812,8 +6514,8 @@ public struct ImageProgress public double Total; ///Constructor for ImageProgress. public ImageProgress( - double Now=default(double), - double Total=default(double) ) + double Now = default(double), + double Total = default(double) ) { this.Now = Now; this.Total = Total; @@ -4855,8 +6557,14 @@ public struct ImageProgress } -} } -namespace Efl { namespace Ui { +} + +} + +namespace Efl { + +namespace Ui { + /// Structure associated with smart callback 'download,progress'. [StructLayout(LayoutKind.Sequential)] public struct ImageError @@ -4867,8 +6575,8 @@ public struct ImageError public bool Open_error; ///Constructor for ImageError. public ImageError( - int Status=default(int), - bool Open_error=default(bool) ) + int Status = default(int), + bool Open_error = default(bool) ) { this.Status = Status; this.Open_error = Open_error; @@ -4910,4 +6618,7 @@ public struct ImageError } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_factory.eo.cs index 327f589..501319a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_factory.eo.cs @@ -3,85 +3,121 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI image factory class -[ImageFactoryNativeInherit] +[Efl.Ui.ImageFactory.NativeMethods] public class ImageFactory : Efl.Ui.CachingFactory, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ImageFactory)) - return Efl.Ui.ImageFactoryNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ImageFactory)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_image_factory_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Define the class of the item returned by this factory. See + /// Initializes a new instance of the class. + /// Parent instance. + /// Define the class of the item returned by this factory. See public ImageFactory(Efl.Object parent - , Type itemClass = null) : - base(efl_ui_image_factory_class_get(), typeof(ImageFactory), parent) + , Type itemClass = null) : base(efl_ui_image_factory_class_get(), typeof(ImageFactory), parent) { if (Efl.Eo.Globals.ParamHelperCheck(itemClass)) + { SetItemClass(Efl.Eo.Globals.GetParamHelper(itemClass)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ImageFactory(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ImageFactory(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ImageFactory(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.ImageFactory.efl_ui_image_factory_class_get(); } -} -public class ImageFactoryNativeInherit : Efl.Ui.CachingFactoryNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.CachingFactory.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ImageFactory.efl_ui_image_factory_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.ImageFactory.efl_ui_image_factory_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ImageFactory.efl_ui_image_factory_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable.eo.cs index 49c0381..19066af 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + ///Event argument wrapper for event . public class ImageZoomableDownloadProgressEvt_Args : EventArgs { ///Actual event payload. @@ -16,1657 +20,2005 @@ public class ImageZoomableDownloadErrorEvt_Args : EventArgs { public Elm.Photocam.Error arg { get; set; } } /// Elementary Image Zoomable class -[ImageZoomableNativeInherit] +[Efl.Ui.ImageZoomable.NativeMethods] public class ImageZoomable : Efl.Ui.Image, Efl.Eo.IWrapper,Efl.Ui.IScrollable,Efl.Ui.IScrollableInteractive,Efl.Ui.IScrollbar,Efl.Ui.IZoom { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ImageZoomable)) - return Efl.Ui.ImageZoomableNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ImageZoomable)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_image_zoomable_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public ImageZoomable(Efl.Object parent - , System.String style = null) : - base(efl_ui_image_zoomable_class_get(), typeof(ImageZoomable), parent) + , System.String style = null) : base(efl_ui_image_zoomable_class_get(), typeof(ImageZoomable), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ImageZoomable(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ImageZoomable(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ImageZoomable(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object PressEvtKey = new object(); + /// Called when photocam got pressed public event EventHandler PressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_PRESS"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PressEvt_delegate)) { - eventHandlers.AddHandler(PressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_PRESS"; - if (RemoveNativeEventHandler(key, this.evt_PressEvt_delegate)) { - eventHandlers.RemoveHandler(PressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event PressEvt. - public void On_PressEvt(EventArgs e) + public void OnPressEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressEvt_delegate; - private void on_PressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_PressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_PRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LoadEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when photocam loading started public event EventHandler LoadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_LoadEvt_delegate)) { - eventHandlers.AddHandler(LoadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD"; - if (RemoveNativeEventHandler(key, this.evt_LoadEvt_delegate)) { - eventHandlers.RemoveHandler(LoadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event LoadEvt. - public void On_LoadEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadEvt_delegate; - private void on_LoadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLoadEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_LoadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LoadedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when photocam loading finished public event EventHandler LoadedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_LoadedEvt_delegate)) { - eventHandlers.AddHandler(LoadedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED"; - if (RemoveNativeEventHandler(key, this.evt_LoadedEvt_delegate)) { - eventHandlers.RemoveHandler(LoadedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event LoadedEvt. - public void On_LoadedEvt(EventArgs e) + public void OnLoadedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadedEvt_delegate; - private void on_LoadedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_LoadedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LoadDetailEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when photocal detail loading started public event EventHandler LoadDetailEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD_DETAIL"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_LoadDetailEvt_delegate)) { - eventHandlers.AddHandler(LoadDetailEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD_DETAIL"; - if (RemoveNativeEventHandler(key, this.evt_LoadDetailEvt_delegate)) { - eventHandlers.RemoveHandler(LoadDetailEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event LoadDetailEvt. - public void On_LoadDetailEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadDetailEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadDetailEvt_delegate; - private void on_LoadDetailEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLoadDetailEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_LoadDetailEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD_DETAIL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LoadedDetailEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when photocam detail loading finished public event EventHandler LoadedDetailEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED_DETAIL"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_LoadedDetailEvt_delegate)) { - eventHandlers.AddHandler(LoadedDetailEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED_DETAIL"; - if (RemoveNativeEventHandler(key, this.evt_LoadedDetailEvt_delegate)) { - eventHandlers.RemoveHandler(LoadedDetailEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event LoadedDetailEvt. - public void On_LoadedDetailEvt(EventArgs e) + public void OnLoadedDetailEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadedDetailEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadedDetailEvt_delegate; - private void on_LoadedDetailEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_LoadedDetailEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED_DETAIL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DownloadStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when photocam download started public event EventHandler DownloadStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_START"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DownloadStartEvt_delegate)) { - eventHandlers.AddHandler(DownloadStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_START"; - if (RemoveNativeEventHandler(key, this.evt_DownloadStartEvt_delegate)) { - eventHandlers.RemoveHandler(DownloadStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DownloadStartEvt. - public void On_DownloadStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DownloadStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DownloadStartEvt_delegate; - private void on_DownloadStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDownloadStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_DownloadStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DownloadProgressEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when photocam download progress updated public event EventHandler DownloadProgressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ImageZoomableDownloadProgressEvt_Args args = new Efl.Ui.ImageZoomableDownloadProgressEvt_Args(); + args.arg = default(Elm.Photocam.Progress); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_PROGRESS"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DownloadProgressEvt_delegate)) { - eventHandlers.AddHandler(DownloadProgressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_PROGRESS"; - if (RemoveNativeEventHandler(key, this.evt_DownloadProgressEvt_delegate)) { - eventHandlers.RemoveHandler(DownloadProgressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DownloadProgressEvt. - public void On_DownloadProgressEvt(Efl.Ui.ImageZoomableDownloadProgressEvt_Args e) + public void OnDownloadProgressEvt(Efl.Ui.ImageZoomableDownloadProgressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DownloadProgressEvtKey]; + var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_PROGRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DownloadProgressEvt_delegate; - private void on_DownloadProgressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ImageZoomableDownloadProgressEvt_Args args = new Efl.Ui.ImageZoomableDownloadProgressEvt_Args(); - args.arg = default(Elm.Photocam.Progress); - try { - On_DownloadProgressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object DownloadDoneEvtKey = new object(); /// Called when photocam download finished public event EventHandler DownloadDoneEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_DONE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DownloadDoneEvt_delegate)) { - eventHandlers.AddHandler(DownloadDoneEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_DONE"; - if (RemoveNativeEventHandler(key, this.evt_DownloadDoneEvt_delegate)) { - eventHandlers.RemoveHandler(DownloadDoneEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DownloadDoneEvt. - public void On_DownloadDoneEvt(EventArgs e) + public void OnDownloadDoneEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DownloadDoneEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DownloadDoneEvt_delegate; - private void on_DownloadDoneEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_DownloadDoneEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_DONE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DownloadErrorEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when photocam download failed public event EventHandler DownloadErrorEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ImageZoomableDownloadErrorEvt_Args args = new Efl.Ui.ImageZoomableDownloadErrorEvt_Args(); + args.arg = default(Elm.Photocam.Error); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_ERROR"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DownloadErrorEvt_delegate)) { - eventHandlers.AddHandler(DownloadErrorEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_ERROR"; - if (RemoveNativeEventHandler(key, this.evt_DownloadErrorEvt_delegate)) { - eventHandlers.RemoveHandler(DownloadErrorEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DownloadErrorEvt. - public void On_DownloadErrorEvt(Efl.Ui.ImageZoomableDownloadErrorEvt_Args e) + public void OnDownloadErrorEvt(Efl.Ui.ImageZoomableDownloadErrorEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DownloadErrorEvtKey]; + var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_ERROR"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DownloadErrorEvt_delegate; - private void on_DownloadErrorEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ImageZoomableDownloadErrorEvt_Args args = new Efl.Ui.ImageZoomableDownloadErrorEvt_Args(); - args.arg = default(Elm.Photocam.Error); - try { - On_DownloadErrorEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ScrollStartEvtKey = new object(); /// Called when scroll operation starts public event EventHandler ScrollStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStartEvt. - public void On_ScrollStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStartEvt_delegate; - private void on_ScrollStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling public event EventHandler ScrollEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollEvt_delegate)) { - eventHandlers.AddHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL"; - if (RemoveNativeEventHandler(key, this.evt_ScrollEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollEvt. - public void On_ScrollEvt(EventArgs e) + public void OnScrollEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollEvt_delegate; - private void on_ScrollEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation stops public event EventHandler ScrollStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStopEvt. - public void On_ScrollStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStopEvt_delegate; - private void on_ScrollStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling upwards public event EventHandler ScrollUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.AddHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollUpEvt. - public void On_ScrollUpEvt(EventArgs e) + public void OnScrollUpEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollUpEvt_delegate; - private void on_ScrollUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling downwards public event EventHandler ScrollDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.AddHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDownEvt. - public void On_ScrollDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDownEvt_delegate; - private void on_ScrollDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling left public event EventHandler ScrollLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.AddHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollLeftEvt. - public void On_ScrollLeftEvt(EventArgs e) + public void OnScrollLeftEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollLeftEvt_delegate; - private void on_ScrollLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling right public event EventHandler ScrollRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.AddHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollRightEvt. - public void On_ScrollRightEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollRightEvt_delegate; - private void on_ScrollRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollRightEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the top edge public event EventHandler EdgeUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.AddHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_UP"; - if (RemoveNativeEventHandler(key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeUpEvt. - public void On_EdgeUpEvt(EventArgs e) + public void OnEdgeUpEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeUpEvt_delegate; - private void on_EdgeUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the bottom edge public event EventHandler EdgeDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.AddHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeDownEvt. - public void On_EdgeDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeDownEvt_delegate; - private void on_EdgeDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the left edge public event EventHandler EdgeLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.AddHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeLeftEvt. - public void On_EdgeLeftEvt(EventArgs e) + public void OnEdgeLeftEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeLeftEvt_delegate; - private void on_EdgeLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the right edge public event EventHandler EdgeRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.AddHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeRightEvt. - public void On_EdgeRightEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeRightEvt_delegate; - private void on_EdgeRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeRightEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation starts public event EventHandler ScrollAnimStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStartEvt. - public void On_ScrollAnimStartEvt(EventArgs e) + public void OnScrollAnimStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStartEvt_delegate; - private void on_ScrollAnimStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation stopps public event EventHandler ScrollAnimStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStopEvt. - public void On_ScrollAnimStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStopEvt_delegate; - private void on_ScrollAnimStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag starts public event EventHandler ScrollDragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStartEvt. - public void On_ScrollDragStartEvt(EventArgs e) + public void OnScrollDragStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStartEvt_delegate; - private void on_ScrollDragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag stops public event EventHandler ScrollDragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStopEvt. - public void On_ScrollDragStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStopEvt_delegate; - private void on_ScrollDragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDragStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BarPressEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar is pressed public event EventHandler BarPressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPressEvt_delegate)) { - eventHandlers.AddHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarPressEvt_delegate)) { - eventHandlers.RemoveHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPressEvt. - public void On_BarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) + public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPressEvt_delegate; - private void on_BarPressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarPressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarUnpressEvtKey = new object(); /// Called when bar is unpressed public event EventHandler BarUnpressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.AddHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.RemoveHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarUnpressEvt. - public void On_BarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) + public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarUnpressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarUnpressEvt_delegate; - private void on_BarUnpressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarUnpressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarDragEvtKey = new object(); /// Called when bar is dragged public event EventHandler BarDragEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarDragEvt_delegate)) { - eventHandlers.AddHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (RemoveNativeEventHandler(key, this.evt_BarDragEvt_delegate)) { - eventHandlers.RemoveHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarDragEvt. - public void On_BarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) + public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarDragEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarDragEvt_delegate; - private void on_BarDragEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarDragEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarSizeChangedEvtKey = new object(); /// Called when bar size is changed public event EventHandler BarSizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.AddHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarSizeChangedEvt. - public void On_BarSizeChangedEvt(EventArgs e) + public void OnBarSizeChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarSizeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarSizeChangedEvt_delegate; - private void on_BarSizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_BarSizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BarPosChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar position is changed public event EventHandler BarPosChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.AddHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPosChangedEvt. - public void On_BarPosChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPosChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPosChangedEvt_delegate; - private void on_BarPosChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnBarPosChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_BarPosChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BarShowEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Callend when bar is shown public event EventHandler BarShowEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarShowEvt_delegate)) { - eventHandlers.AddHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (RemoveNativeEventHandler(key, this.evt_BarShowEvt_delegate)) { - eventHandlers.RemoveHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarShowEvt. - public void On_BarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) + public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarShowEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarShowEvt_delegate; - private void on_BarShowEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarShowEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarHideEvtKey = new object(); /// Called when bar is hidden public event EventHandler BarHideEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarHideEvt_delegate)) { - eventHandlers.AddHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (RemoveNativeEventHandler(key, this.evt_BarHideEvt_delegate)) { - eventHandlers.RemoveHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarHideEvt. - public void On_BarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) + public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarHideEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarHideEvt_delegate; - private void on_BarHideEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarHideEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ZoomStartEvtKey = new object(); /// Called when zooming started public event EventHandler ZoomStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ZOOM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ZoomStartEvt_delegate)) { - eventHandlers.AddHandler(ZoomStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ZOOM_START"; - if (RemoveNativeEventHandler(key, this.evt_ZoomStartEvt_delegate)) { - eventHandlers.RemoveHandler(ZoomStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ZoomStartEvt. - public void On_ZoomStartEvt(EventArgs e) + public void OnZoomStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ZoomStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ZoomStartEvt_delegate; - private void on_ZoomStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ZoomStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ZOOM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ZoomStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when zooming stopped public event EventHandler ZoomStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ZOOM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ZoomStopEvt_delegate)) { - eventHandlers.AddHandler(ZoomStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ZOOM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ZoomStopEvt_delegate)) { - eventHandlers.RemoveHandler(ZoomStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ZoomStopEvt. - public void On_ZoomStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ZoomStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ZoomStopEvt_delegate; - private void on_ZoomStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnZoomStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ZoomStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ZOOM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ZoomChangeEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when zooming changed public event EventHandler ZoomChangeEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ZOOM_CHANGE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ZoomChangeEvt_delegate)) { - eventHandlers.AddHandler(ZoomChangeEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ZOOM_CHANGE"; - if (RemoveNativeEventHandler(key, this.evt_ZoomChangeEvt_delegate)) { - eventHandlers.RemoveHandler(ZoomChangeEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ZoomChangeEvt. - public void On_ZoomChangeEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ZoomChangeEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ZoomChangeEvt_delegate; - private void on_ZoomChangeEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ZoomChangeEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_PressEvt_delegate = new Efl.EventCb(on_PressEvt_NativeCallback); - evt_LoadEvt_delegate = new Efl.EventCb(on_LoadEvt_NativeCallback); - evt_LoadedEvt_delegate = new Efl.EventCb(on_LoadedEvt_NativeCallback); - evt_LoadDetailEvt_delegate = new Efl.EventCb(on_LoadDetailEvt_NativeCallback); - evt_LoadedDetailEvt_delegate = new Efl.EventCb(on_LoadedDetailEvt_NativeCallback); - evt_DownloadStartEvt_delegate = new Efl.EventCb(on_DownloadStartEvt_NativeCallback); - evt_DownloadProgressEvt_delegate = new Efl.EventCb(on_DownloadProgressEvt_NativeCallback); - evt_DownloadDoneEvt_delegate = new Efl.EventCb(on_DownloadDoneEvt_NativeCallback); - evt_DownloadErrorEvt_delegate = new Efl.EventCb(on_DownloadErrorEvt_NativeCallback); - evt_ScrollStartEvt_delegate = new Efl.EventCb(on_ScrollStartEvt_NativeCallback); - evt_ScrollEvt_delegate = new Efl.EventCb(on_ScrollEvt_NativeCallback); - evt_ScrollStopEvt_delegate = new Efl.EventCb(on_ScrollStopEvt_NativeCallback); - evt_ScrollUpEvt_delegate = new Efl.EventCb(on_ScrollUpEvt_NativeCallback); - evt_ScrollDownEvt_delegate = new Efl.EventCb(on_ScrollDownEvt_NativeCallback); - evt_ScrollLeftEvt_delegate = new Efl.EventCb(on_ScrollLeftEvt_NativeCallback); - evt_ScrollRightEvt_delegate = new Efl.EventCb(on_ScrollRightEvt_NativeCallback); - evt_EdgeUpEvt_delegate = new Efl.EventCb(on_EdgeUpEvt_NativeCallback); - evt_EdgeDownEvt_delegate = new Efl.EventCb(on_EdgeDownEvt_NativeCallback); - evt_EdgeLeftEvt_delegate = new Efl.EventCb(on_EdgeLeftEvt_NativeCallback); - evt_EdgeRightEvt_delegate = new Efl.EventCb(on_EdgeRightEvt_NativeCallback); - evt_ScrollAnimStartEvt_delegate = new Efl.EventCb(on_ScrollAnimStartEvt_NativeCallback); - evt_ScrollAnimStopEvt_delegate = new Efl.EventCb(on_ScrollAnimStopEvt_NativeCallback); - evt_ScrollDragStartEvt_delegate = new Efl.EventCb(on_ScrollDragStartEvt_NativeCallback); - evt_ScrollDragStopEvt_delegate = new Efl.EventCb(on_ScrollDragStopEvt_NativeCallback); - evt_BarPressEvt_delegate = new Efl.EventCb(on_BarPressEvt_NativeCallback); - evt_BarUnpressEvt_delegate = new Efl.EventCb(on_BarUnpressEvt_NativeCallback); - evt_BarDragEvt_delegate = new Efl.EventCb(on_BarDragEvt_NativeCallback); - evt_BarSizeChangedEvt_delegate = new Efl.EventCb(on_BarSizeChangedEvt_NativeCallback); - evt_BarPosChangedEvt_delegate = new Efl.EventCb(on_BarPosChangedEvt_NativeCallback); - evt_BarShowEvt_delegate = new Efl.EventCb(on_BarShowEvt_NativeCallback); - evt_BarHideEvt_delegate = new Efl.EventCb(on_BarHideEvt_NativeCallback); - evt_ZoomStartEvt_delegate = new Efl.EventCb(on_ZoomStartEvt_NativeCallback); - evt_ZoomStopEvt_delegate = new Efl.EventCb(on_ZoomStopEvt_NativeCallback); - evt_ZoomChangeEvt_delegate = new Efl.EventCb(on_ZoomChangeEvt_NativeCallback); + public void OnZoomChangeEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_ZOOM_CHANGE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Get the gesture state for photocam. /// This gets the current gesture state for the photocam object. /// The gesture state. virtual public bool GetGestureEnabled() { - var _ret_var = Efl.Ui.ImageZoomableNativeInherit.efl_ui_image_zoomable_gesture_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.ImageZoomable.NativeMethods.efl_ui_image_zoomable_gesture_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the gesture state for photocam. /// This sets the gesture state to on or off for photocam. The default is off. This will start multi touch zooming. /// The gesture state. - /// - virtual public void SetGestureEnabled( bool gesture) { - Efl.Ui.ImageZoomableNativeInherit.efl_ui_image_zoomable_gesture_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), gesture); + virtual public void SetGestureEnabled(bool gesture) { + Efl.Ui.ImageZoomable.NativeMethods.efl_ui_image_zoomable_gesture_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),gesture); Eina.Error.RaiseIfUnhandledException(); } /// Get the region of the image that is currently shown /// See also . /// The region in the original image pixels. virtual public Eina.Rect GetImageRegion() { - var _ret_var = Efl.Ui.ImageZoomableNativeInherit.efl_ui_image_zoomable_image_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.ImageZoomable.NativeMethods.efl_ui_image_zoomable_image_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the viewed region of the image /// This shows the region of the image without using animation. /// The region in the original image pixels. - /// - virtual public void SetImageRegion( Eina.Rect region) { + virtual public void SetImageRegion(Eina.Rect region) { Eina.Rect.NativeStruct _in_region = region; - Efl.Ui.ImageZoomableNativeInherit.efl_ui_image_zoomable_image_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_region); + Efl.Ui.ImageZoomable.NativeMethods.efl_ui_image_zoomable_image_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_region); Eina.Error.RaiseIfUnhandledException(); } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. virtual public Eina.Position2D GetContentPos() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. - /// - virtual public void SetContentPos( Eina.Position2D pos) { + virtual public void SetContentPos(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// The content size /// The content size in pixels. virtual public Eina.Size2D GetContentSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The viewport geometry /// It is absolute geometry. virtual public Eina.Rect GetViewportGeometry() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1674,78 +2026,71 @@ private static object ZoomChangeEvtKey = new object(); /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void GetBounceEnabled( out bool horiz, out bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out horiz, out vert); + virtual public void GetBounceEnabled(out bool horiz, out bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void SetBounceEnabled( bool horiz, bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), horiz, vert); + virtual public void SetBounceEnabled(bool horiz, bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise virtual public bool GetScrollFreeze() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise - /// - virtual public void SetScrollFreeze( bool freeze) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), freeze); + virtual public void SetScrollFreeze(bool freeze) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),freeze); Eina.Error.RaiseIfUnhandledException(); } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise virtual public bool GetScrollHold() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise - /// - virtual public void SetScrollHold( bool hold) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hold); + virtual public void SetScrollHold(bool hold) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hold); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void GetLooping( out bool loop_h, out bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out loop_h, out loop_v); + virtual public void GetLooping(out bool loop_h, out bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out loop_h, out loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void SetLooping( bool loop_h, bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), loop_h, loop_v); + virtual public void SetLooping(bool loop_h, bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),loop_h, loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block virtual public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block - /// - virtual public void SetMovementBlock( Efl.Ui.ScrollBlock block) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), block); + virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),block); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -1758,9 +2103,8 @@ private static object ZoomChangeEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void GetGravity( out double x, out double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetGravity(out double x, out double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -1773,129 +2117,117 @@ private static object ZoomChangeEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void SetGravity( double x, double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetGravity(double x, double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size - /// - virtual public void SetMatchContent( bool w, bool h) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), w, h); + virtual public void SetMatchContent(bool w, bool h) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),w, h); Eina.Error.RaiseIfUnhandledException(); } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels virtual public Eina.Position2D GetStepSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels - /// - virtual public void SetStepSize( Eina.Position2D step) { + virtual public void SetStepSize(Eina.Position2D step) { Eina.Position2D.NativeStruct _in_step = step; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_step); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_step); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object. /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. /// The position where to scroll. and The size user want to see /// Whether to scroll with animation or not - /// - virtual public void Scroll( Eina.Rect rect, bool animation) { + virtual public void Scroll(Eina.Rect rect, bool animation) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect, animation); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect, animation); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void GetBarMode( out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out hbar, out vbar); + virtual public void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out hbar, out vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void SetBarMode( Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hbar, vbar); + virtual public void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hbar, vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar size. It is calculated based on viewport size-content sizes. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarSize( out double width, out double height) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out width, out height); + virtual public void GetBarSize(out double width, out double height) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out width, out height); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarPosition( out double posx, out double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out posx, out posy); + virtual public void GetBarPosition(out double posx, out double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out posx, out posy); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void SetBarPosition( double posx, double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), posx, posy); + virtual public void SetBarPosition(double posx, double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),posx, posy); Eina.Error.RaiseIfUnhandledException(); } /// Update bar visibility. /// The object will call this function whenever the bar need to be shown or hidden. - /// virtual public void UpdateBarVisibility() { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. virtual public bool GetZoomAnimation() { - var _ret_var = Efl.Ui.IZoomNativeInherit.efl_ui_zoom_animation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_animation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. - /// - virtual public void SetZoomAnimation( bool paused) { - Efl.Ui.IZoomNativeInherit.efl_ui_zoom_animation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), paused); + virtual public void SetZoomAnimation(bool paused) { + Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_animation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),paused); Eina.Error.RaiseIfUnhandledException(); } /// Get the zoom level of the photo /// This returns the current zoom level of the zoomable object. Note that if you set the fill mode to other than #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the zoom level may be changed at any time by the zoomable object itself to account for photo size and zoomable viewport size. /// The zoom level to set virtual public double GetZoomLevel() { - var _ret_var = Efl.Ui.IZoomNativeInherit.efl_ui_zoom_level_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_level_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the zoom level of the photo /// This sets the zoom level. If zoom is 1, it means no zoom. If it's smaller than 1, it means zoom in. If it's bigger than 1, it means zoom out. For example, zoom 1 will be 1:1 pixel for pixel. zoom 2 will be 2:1 (that is 2x2 photo pixels will display as 1 on-screen pixel) which is a zoom out. 4:1 will be 4x4 photo pixels as 1 screen pixel, and so on. The zoom parameter must be greater than 0. It is suggested to stick to powers of 2. (1, 2, 4, 8, 16, 32, etc.). /// The zoom level to set - /// - virtual public void SetZoomLevel( double zoom) { - Efl.Ui.IZoomNativeInherit.efl_ui_zoom_level_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), zoom); + virtual public void SetZoomLevel(double zoom) { + Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_level_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),zoom); Eina.Error.RaiseIfUnhandledException(); } /// Get the zoom mode /// This gets the current zoom mode of the zoomable object. /// The zoom mode. virtual public Efl.Ui.ZoomMode GetZoomMode() { - var _ret_var = Efl.Ui.IZoomNativeInherit.efl_ui_zoom_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1904,9 +2236,8 @@ private static object ZoomChangeEvtKey = new object(); /// /// #EFL_UI_ZOOM_MODE_AUTO_FIT) will adjust zoom so the photo fits EXACTLY inside the scroll frame with no pixels outside this region. #EFL_UI_ZOOM_MODE_AUTO_FILL will be similar but ensure no pixels within the frame are left unfilled. /// The zoom mode. - /// - virtual public void SetZoomMode( Efl.Ui.ZoomMode mode) { - Efl.Ui.IZoomNativeInherit.efl_ui_zoom_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mode); + virtual public void SetZoomMode(Efl.Ui.ZoomMode mode) { + Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode); Eina.Error.RaiseIfUnhandledException(); } /// Get the gesture state for photocam. @@ -1914,20 +2245,20 @@ private static object ZoomChangeEvtKey = new object(); /// The gesture state. public bool GestureEnabled { get { return GetGestureEnabled(); } - set { SetGestureEnabled( value); } + set { SetGestureEnabled(value); } } /// Get the region of the image that is currently shown /// See also . /// The region in the original image pixels. public Eina.Rect ImageRegion { get { return GetImageRegion(); } - set { SetImageRegion( value); } + set { SetImageRegion(value); } } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. public Eina.Position2D ContentPos { get { return GetContentPos(); } - set { SetContentPos( value); } + set { SetContentPos(value); } } /// The content size /// The content size in pixels. @@ -1943,1098 +2274,1724 @@ private static object ZoomChangeEvtKey = new object(); /// true if freeze, false otherwise public bool ScrollFreeze { get { return GetScrollFreeze(); } - set { SetScrollFreeze( value); } + set { SetScrollFreeze(value); } } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise public bool ScrollHold { get { return GetScrollHold(); } - set { SetScrollHold( value); } + set { SetScrollHold(value); } } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block public Efl.Ui.ScrollBlock MovementBlock { get { return GetMovementBlock(); } - set { SetMovementBlock( value); } + set { SetMovementBlock(value); } } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels public Eina.Position2D StepSize { get { return GetStepSize(); } - set { SetStepSize( value); } + set { SetStepSize(value); } } /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. public bool ZoomAnimation { get { return GetZoomAnimation(); } - set { SetZoomAnimation( value); } + set { SetZoomAnimation(value); } } /// Get the zoom level of the photo /// This returns the current zoom level of the zoomable object. Note that if you set the fill mode to other than #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the zoom level may be changed at any time by the zoomable object itself to account for photo size and zoomable viewport size. /// The zoom level to set public double ZoomLevel { get { return GetZoomLevel(); } - set { SetZoomLevel( value); } + set { SetZoomLevel(value); } } /// Get the zoom mode /// This gets the current zoom mode of the zoomable object. /// The zoom mode. public Efl.Ui.ZoomMode ZoomMode { get { return GetZoomMode(); } - set { SetZoomMode( value); } + set { SetZoomMode(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.ImageZoomable.efl_ui_image_zoomable_class_get(); } -} -public class ImageZoomableNativeInherit : Efl.Ui.ImageNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_image_zoomable_gesture_enabled_get_static_delegate == null) - efl_ui_image_zoomable_gesture_enabled_get_static_delegate = new efl_ui_image_zoomable_gesture_enabled_get_delegate(gesture_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetGestureEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_image_zoomable_gesture_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_gesture_enabled_get_static_delegate)}); - if (efl_ui_image_zoomable_gesture_enabled_set_static_delegate == null) - efl_ui_image_zoomable_gesture_enabled_set_static_delegate = new efl_ui_image_zoomable_gesture_enabled_set_delegate(gesture_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetGestureEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_image_zoomable_gesture_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_gesture_enabled_set_static_delegate)}); - if (efl_ui_image_zoomable_image_region_get_static_delegate == null) - efl_ui_image_zoomable_image_region_get_static_delegate = new efl_ui_image_zoomable_image_region_get_delegate(image_region_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_image_zoomable_image_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_image_region_get_static_delegate)}); - if (efl_ui_image_zoomable_image_region_set_static_delegate == null) - efl_ui_image_zoomable_image_region_set_static_delegate = new efl_ui_image_zoomable_image_region_set_delegate(image_region_set); - if (methods.FirstOrDefault(m => m.Name == "SetImageRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_image_zoomable_image_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_image_region_set_static_delegate)}); - if (efl_ui_scrollable_content_pos_get_static_delegate == null) - efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate)}); - if (efl_ui_scrollable_content_pos_set_static_delegate == null) - efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate)}); - if (efl_ui_scrollable_content_size_get_static_delegate == null) - efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate)}); - if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) - efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) - efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) - efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) - efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) - efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) - efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) - efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate)}); - if (efl_ui_scrollable_looping_get_static_delegate == null) - efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); - if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate)}); - if (efl_ui_scrollable_looping_set_static_delegate == null) - efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); - if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate)}); - if (efl_ui_scrollable_movement_block_get_static_delegate == null) - efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate)}); - if (efl_ui_scrollable_movement_block_set_static_delegate == null) - efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate)}); - if (efl_ui_scrollable_gravity_get_static_delegate == null) - efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate)}); - if (efl_ui_scrollable_gravity_set_static_delegate == null) - efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate)}); - if (efl_ui_scrollable_match_content_set_static_delegate == null) - efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); - if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate)}); - if (efl_ui_scrollable_step_size_get_static_delegate == null) - efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate)}); - if (efl_ui_scrollable_step_size_set_static_delegate == null) - efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate)}); - if (efl_ui_scrollable_scroll_static_delegate == null) - efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); - if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) - efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) - efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate)}); - if (efl_ui_scrollbar_bar_size_get_static_delegate == null) - efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_get_static_delegate == null) - efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_set_static_delegate == null) - efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate)}); - if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) - efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate)}); - if (efl_ui_zoom_animation_get_static_delegate == null) - efl_ui_zoom_animation_get_static_delegate = new efl_ui_zoom_animation_get_delegate(zoom_animation_get); - if (methods.FirstOrDefault(m => m.Name == "GetZoomAnimation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_animation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_animation_get_static_delegate)}); - if (efl_ui_zoom_animation_set_static_delegate == null) - efl_ui_zoom_animation_set_static_delegate = new efl_ui_zoom_animation_set_delegate(zoom_animation_set); - if (methods.FirstOrDefault(m => m.Name == "SetZoomAnimation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_animation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_animation_set_static_delegate)}); - if (efl_ui_zoom_level_get_static_delegate == null) - efl_ui_zoom_level_get_static_delegate = new efl_ui_zoom_level_get_delegate(zoom_level_get); - if (methods.FirstOrDefault(m => m.Name == "GetZoomLevel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_level_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_level_get_static_delegate)}); - if (efl_ui_zoom_level_set_static_delegate == null) - efl_ui_zoom_level_set_static_delegate = new efl_ui_zoom_level_set_delegate(zoom_level_set); - if (methods.FirstOrDefault(m => m.Name == "SetZoomLevel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_level_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_level_set_static_delegate)}); - if (efl_ui_zoom_mode_get_static_delegate == null) - efl_ui_zoom_mode_get_static_delegate = new efl_ui_zoom_mode_get_delegate(zoom_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetZoomMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_mode_get_static_delegate)}); - if (efl_ui_zoom_mode_set_static_delegate == null) - efl_ui_zoom_mode_set_static_delegate = new efl_ui_zoom_mode_set_delegate(zoom_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetZoomMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_mode_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ImageZoomable.efl_ui_image_zoomable_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Image.NativeMethods { - return Efl.Ui.ImageZoomable.efl_ui_image_zoomable_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_image_zoomable_gesture_enabled_get_static_delegate == null) + { + efl_ui_image_zoomable_gesture_enabled_get_static_delegate = new efl_ui_image_zoomable_gesture_enabled_get_delegate(gesture_enabled_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_image_zoomable_gesture_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetGestureEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_zoomable_gesture_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_gesture_enabled_get_static_delegate) }); + } + if (efl_ui_image_zoomable_gesture_enabled_set_static_delegate == null) + { + efl_ui_image_zoomable_gesture_enabled_set_static_delegate = new efl_ui_image_zoomable_gesture_enabled_set_delegate(gesture_enabled_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_image_zoomable_gesture_enabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_gesture_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_image_zoomable_gesture_enabled_get"); - private static bool gesture_enabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_image_zoomable_gesture_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ImageZoomable)wrapper).GetGestureEnabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetGestureEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_zoomable_gesture_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_gesture_enabled_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_image_zoomable_gesture_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_image_zoomable_gesture_enabled_get_delegate efl_ui_image_zoomable_gesture_enabled_get_static_delegate; + if (efl_ui_image_zoomable_image_region_get_static_delegate == null) + { + efl_ui_image_zoomable_image_region_get_static_delegate = new efl_ui_image_zoomable_image_region_get_delegate(image_region_get); + } - private delegate void efl_ui_image_zoomable_gesture_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool gesture); + if (methods.FirstOrDefault(m => m.Name == "GetImageRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_zoomable_image_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_image_region_get_static_delegate) }); + } + if (efl_ui_image_zoomable_image_region_set_static_delegate == null) + { + efl_ui_image_zoomable_image_region_set_static_delegate = new efl_ui_image_zoomable_image_region_set_delegate(image_region_set); + } - public delegate void efl_ui_image_zoomable_gesture_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool gesture); - public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_gesture_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_image_zoomable_gesture_enabled_set"); - private static void gesture_enabled_set(System.IntPtr obj, System.IntPtr pd, bool gesture) - { - Eina.Log.Debug("function efl_ui_image_zoomable_gesture_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetGestureEnabled( gesture); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetImageRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_zoomable_image_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_zoomable_image_region_set_static_delegate) }); } - } else { - efl_ui_image_zoomable_gesture_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture); - } - } - private static efl_ui_image_zoomable_gesture_enabled_set_delegate efl_ui_image_zoomable_gesture_enabled_set_static_delegate; + if (efl_ui_scrollable_content_pos_get_static_delegate == null) + { + efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); + } - private delegate Eina.Rect.NativeStruct efl_ui_image_zoomable_image_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); + } + if (efl_ui_scrollable_content_pos_set_static_delegate == null) + { + efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); + } - public delegate Eina.Rect.NativeStruct efl_ui_image_zoomable_image_region_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_image_region_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_image_zoomable_image_region_get"); - private static Eina.Rect.NativeStruct image_region_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_image_zoomable_image_region_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((ImageZoomable)wrapper).GetImageRegion(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_image_zoomable_image_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_image_zoomable_image_region_get_delegate efl_ui_image_zoomable_image_region_get_static_delegate; + if (efl_ui_scrollable_content_size_get_static_delegate == null) + { + efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); + } - private delegate void efl_ui_image_zoomable_image_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region); + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); + } + if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) + { + efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); + } - public delegate void efl_ui_image_zoomable_image_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region); - public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_image_region_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_image_zoomable_image_region_set"); - private static void image_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region) - { - Eina.Log.Debug("function efl_ui_image_zoomable_image_region_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_region = region; - - try { - ((ImageZoomable)wrapper).SetImageRegion( _in_region); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); } - } else { - efl_ui_image_zoomable_image_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region); - } - } - private static efl_ui_image_zoomable_image_region_set_delegate efl_ui_image_zoomable_image_region_set_static_delegate; + if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); + } - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); + } + if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); + } - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_get"); - private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((ImageZoomable)wrapper).GetContentPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; + if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); + } - private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); + } + if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); + } - public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_set"); - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((ImageZoomable)wrapper).SetContentPos( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); } - } else { - efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; + if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); + } - private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); + } + if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); + } - public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_size_get"); - private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((ImageZoomable)wrapper).GetContentSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; + if (efl_ui_scrollable_looping_get_static_delegate == null) + { + efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); + } - private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); + } + if (efl_ui_scrollable_looping_set_static_delegate == null) + { + efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); + } - public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_viewport_geometry_get"); - private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((ImageZoomable)wrapper).GetViewportGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; + if (efl_ui_scrollable_movement_block_get_static_delegate == null) + { + efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); + } - private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); + } + if (efl_ui_scrollable_movement_block_set_static_delegate == null) + { + efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); + } - public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_get"); - private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - horiz = default(bool); vert = default(bool); - try { - ((ImageZoomable)wrapper).GetBounceEnabled( out horiz, out vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); } - } else { - efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); - } - } - private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + if (efl_ui_scrollable_gravity_get_static_delegate == null) + { + efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); + } - private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); + } + if (efl_ui_scrollable_gravity_set_static_delegate == null) + { + efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); + } - public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_set"); - private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetBounceEnabled( horiz, vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); } - } else { - efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); - } - } - private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + if (efl_ui_scrollable_match_content_set_static_delegate == null) + { + efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); + } + if (efl_ui_scrollable_step_size_get_static_delegate == null) + { + efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_get"); - private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ImageZoomable)wrapper).GetScrollFreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; + if (efl_ui_scrollable_step_size_set_static_delegate == null) + { + efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); + } - private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); + } + if (efl_ui_scrollable_scroll_static_delegate == null) + { + efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); + } - public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_set"); - private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetScrollFreeze( freeze); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) }); } - } else { - efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); - } - } - private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; + if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate) }); + } + if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_get"); - private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ImageZoomable)wrapper).GetScrollHold(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + if (efl_ui_scrollbar_bar_size_get_static_delegate == null) + { + efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); + } - private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate) }); + } + if (efl_ui_scrollbar_bar_position_get_static_delegate == null) + { + efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); + } - public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_set"); - private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetScrollHold( hold); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate) }); } - } else { - efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); - } - } - private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; + if (efl_ui_scrollbar_bar_position_set_static_delegate == null) + { + efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); + } - private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate) }); + } + if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) + { + efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); + } - public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_get"); - private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - loop_h = default(bool); loop_v = default(bool); - try { - ((ImageZoomable)wrapper).GetLooping( out loop_h, out loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate) }); } - } else { - efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); - } - } - private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + if (efl_ui_zoom_animation_get_static_delegate == null) + { + efl_ui_zoom_animation_get_static_delegate = new efl_ui_zoom_animation_get_delegate(zoom_animation_get); + } - private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + if (methods.FirstOrDefault(m => m.Name == "GetZoomAnimation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_animation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_animation_get_static_delegate) }); + } + if (efl_ui_zoom_animation_set_static_delegate == null) + { + efl_ui_zoom_animation_set_static_delegate = new efl_ui_zoom_animation_set_delegate(zoom_animation_set); + } - public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_set"); - private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetLooping( loop_h, loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetZoomAnimation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_animation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_animation_set_static_delegate) }); } - } else { - efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); - } - } - private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + if (efl_ui_zoom_level_get_static_delegate == null) + { + efl_ui_zoom_level_get_static_delegate = new efl_ui_zoom_level_get_delegate(zoom_level_get); + } - private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetZoomLevel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_level_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_level_get_static_delegate) }); + } + if (efl_ui_zoom_level_set_static_delegate == null) + { + efl_ui_zoom_level_set_static_delegate = new efl_ui_zoom_level_set_delegate(zoom_level_set); + } - public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_get"); - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try { - _ret_var = ((ImageZoomable)wrapper).GetMovementBlock(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetZoomLevel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_level_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_level_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; + if (efl_ui_zoom_mode_get_static_delegate == null) + { + efl_ui_zoom_mode_get_static_delegate = new efl_ui_zoom_mode_get_delegate(zoom_mode_get); + } - private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + if (methods.FirstOrDefault(m => m.Name == "GetZoomMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_mode_get_static_delegate) }); + } + if (efl_ui_zoom_mode_set_static_delegate == null) + { + efl_ui_zoom_mode_set_static_delegate = new efl_ui_zoom_mode_set_delegate(zoom_mode_set); + } - public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_set"); - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetMovementBlock( block); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetZoomMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_mode_set_static_delegate) }); } - } else { - efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); - } - } - private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ImageZoomable.efl_ui_image_zoomable_class_get(); + } - private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + #pragma warning disable CA1707, SA1300, SA1600 + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_image_zoomable_gesture_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_get"); - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((ImageZoomable)wrapper).GetGravity( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_image_zoomable_gesture_enabled_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_gesture_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_zoomable_gesture_enabled_get"); - private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + private static bool gesture_enabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_image_zoomable_gesture_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageZoomable)wrapper).GetGestureEnabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_set"); - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetGravity( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + else + { + return efl_ui_image_zoomable_gesture_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + private static efl_ui_image_zoomable_gesture_enabled_get_delegate efl_ui_image_zoomable_gesture_enabled_get_static_delegate; - private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + private delegate void efl_ui_image_zoomable_gesture_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool gesture); + + public delegate void efl_ui_image_zoomable_gesture_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool gesture); - public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_match_content_set"); - private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetMatchContent( w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_gesture_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_zoomable_gesture_enabled_set"); + + private static void gesture_enabled_set(System.IntPtr obj, System.IntPtr pd, bool gesture) + { + Eina.Log.Debug("function efl_ui_image_zoomable_gesture_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetGestureEnabled(gesture); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_image_zoomable_gesture_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture); + } } - } - private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + private static efl_ui_image_zoomable_gesture_enabled_set_delegate efl_ui_image_zoomable_gesture_enabled_set_static_delegate; - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Rect.NativeStruct efl_ui_image_zoomable_image_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_ui_image_zoomable_image_region_get_api_delegate(System.IntPtr obj); - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_get"); - private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((ImageZoomable)wrapper).GetStepSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_image_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_zoomable_image_region_get"); + + private static Eina.Rect.NativeStruct image_region_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_image_zoomable_image_region_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((ImageZoomable)wrapper).GetImageRegion(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_image_zoomable_image_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_ui_image_zoomable_image_region_get_delegate efl_ui_image_zoomable_image_region_get_static_delegate; + + + private delegate void efl_ui_image_zoomable_image_region_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region); + + + public delegate void efl_ui_image_zoomable_image_region_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct region); + + public static Efl.Eo.FunctionWrapper efl_ui_image_zoomable_image_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_zoomable_image_region_set"); + + private static void image_region_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct region) + { + Eina.Log.Debug("function efl_ui_image_zoomable_image_region_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_region = region; + + try + { + ((ImageZoomable)wrapper).SetImageRegion(_in_region); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_image_zoomable_image_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), region); + } + } + + private static efl_ui_image_zoomable_image_region_set_delegate efl_ui_image_zoomable_image_region_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); + + private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((ImageZoomable)wrapper).GetContentPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; + private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; - private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_set"); - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_step = step; + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); + + private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; - try { - ((ImageZoomable)wrapper).SetStepSize( _in_step); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((ImageZoomable)wrapper).SetContentPos(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - } else { - efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } - private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; + private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; - private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); + + private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((ImageZoomable)wrapper).GetContentSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll"); - private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - - try { - ((ImageZoomable)wrapper).Scroll( _in_rect, animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); + else + { + return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; + private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_get"); - private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); - try { - ((ImageZoomable)wrapper).GetBarMode( out hbar, out vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); + + private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((ImageZoomable)wrapper).GetViewportGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); } - } - private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; + private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_set"); - private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetBarMode( hbar, vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); + + private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((ImageZoomable)wrapper).GetBounceEnabled(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); } - } else { - efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); } - } - private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; + private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_size_get"); - private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - width = default(double); height = default(double); - try { - ((ImageZoomable)wrapper).GetBarSize( out width, out height); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); + + private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetBounceEnabled(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); } - } else { - efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); } - } - private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; + private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); + + private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageZoomable)wrapper).GetScrollFreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_get"); - private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - posx = default(double); posy = default(double); - try { - ((ImageZoomable)wrapper).GetBarPosition( out posx, out posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); + else + { + return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; + private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_set"); - private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetBarPosition( posx, posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); + + private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetScrollFreeze(freeze); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); } - } else { - efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); } - } - private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; + private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; - private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); + + private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageZoomable)wrapper).GetScrollHold(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + + + private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + + public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); + + private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetScrollHold(hold); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_visibility_update"); - private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((ImageZoomable)wrapper).UpdateBarVisibility(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + } } - } - private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_zoom_animation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_zoom_animation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_animation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_animation_get"); - private static bool zoom_animation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_zoom_animation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ImageZoomable)wrapper).GetZoomAnimation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); + + private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + loop_h = default(bool); loop_v = default(bool); + try + { + ((ImageZoomable)wrapper).GetLooping(out loop_h, out loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + } + } + + private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + + + private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + + public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); + + private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetLooping(loop_h, loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); } + } + + private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + + + private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); + + private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); + try + { + _ret_var = ((ImageZoomable)wrapper).GetMovementBlock(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_zoom_animation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_zoom_animation_get_delegate efl_ui_zoom_animation_get_static_delegate; + private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; - private delegate void efl_ui_zoom_animation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool paused); + + private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public delegate void efl_ui_zoom_animation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool paused); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_animation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_animation_set"); - private static void zoom_animation_set(System.IntPtr obj, System.IntPtr pd, bool paused) - { - Eina.Log.Debug("function efl_ui_zoom_animation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetZoomAnimation( paused); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); + + private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetMovementBlock(block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); } - } else { - efl_ui_zoom_animation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), paused); } - } - private static efl_ui_zoom_animation_set_delegate efl_ui_zoom_animation_set_static_delegate; + private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; - private delegate double efl_ui_zoom_level_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public delegate double efl_ui_zoom_level_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_level_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_level_get"); - private static double zoom_level_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_zoom_level_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ImageZoomable)wrapper).GetZoomLevel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); + + private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((ImageZoomable)wrapper).GetGravity(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); + + private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetGravity(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + + + private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + + public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); + + private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) + { + Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetMatchContent(w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); } + } + + private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); + + private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((ImageZoomable)wrapper).GetStepSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_zoom_level_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_zoom_level_get_delegate efl_ui_zoom_level_get_static_delegate; + private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; - private delegate void efl_ui_zoom_level_set_delegate(System.IntPtr obj, System.IntPtr pd, double zoom); + + private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public delegate void efl_ui_zoom_level_set_api_delegate(System.IntPtr obj, double zoom); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_level_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_level_set"); - private static void zoom_level_set(System.IntPtr obj, System.IntPtr pd, double zoom) - { - Eina.Log.Debug("function efl_ui_zoom_level_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetZoomLevel( zoom); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); + + private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_step = step; + + try + { + ((ImageZoomable)wrapper).SetStepSize(_in_step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } else { - efl_ui_zoom_level_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoom); } - } - private static efl_ui_zoom_level_set_delegate efl_ui_zoom_level_set_static_delegate; + private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; - private delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_mode_get"); - private static Efl.Ui.ZoomMode zoom_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_zoom_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ZoomMode _ret_var = default(Efl.Ui.ZoomMode); - try { - _ret_var = ((ImageZoomable)wrapper).GetZoomMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); + + private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + + try + { + ((ImageZoomable)wrapper).Scroll(_in_rect, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); + } + } + + private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + + public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_get"); + + private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); + try + { + ((ImageZoomable)wrapper).GetBarMode(out hbar, out vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); + } + } + + private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + + public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_set"); + + private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetBarMode(hbar, vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + } + } + + private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + + public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_size_get"); + + private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + width = default(double); height = default(double); + try + { + ((ImageZoomable)wrapper).GetBarSize(out width, out height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); + } + } + + private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + + public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_get"); + + private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + posx = default(double); posy = default(double); + try + { + ((ImageZoomable)wrapper).GetBarPosition(out posx, out posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); } + } + + private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + + public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_set"); + + private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetBarPosition(posx, posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); + } + } + + private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_visibility_update"); + + private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).UpdateBarVisibility(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_zoom_animation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_zoom_animation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_zoom_animation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_animation_get"); + + private static bool zoom_animation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_zoom_animation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageZoomable)wrapper).GetZoomAnimation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_zoom_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_zoom_animation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_zoom_mode_get_delegate efl_ui_zoom_mode_get_static_delegate; + private static efl_ui_zoom_animation_get_delegate efl_ui_zoom_animation_get_static_delegate; - private delegate void efl_ui_zoom_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode); + + private delegate void efl_ui_zoom_animation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool paused); + + public delegate void efl_ui_zoom_animation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool paused); - public delegate void efl_ui_zoom_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ZoomMode mode); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_mode_set"); - private static void zoom_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode) - { - Eina.Log.Debug("function efl_ui_zoom_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ImageZoomable)wrapper).SetZoomMode( mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_zoom_animation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_animation_set"); + + private static void zoom_animation_set(System.IntPtr obj, System.IntPtr pd, bool paused) + { + Eina.Log.Debug("function efl_ui_zoom_animation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetZoomAnimation(paused); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_zoom_animation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), paused); } - } else { - efl_ui_zoom_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); } - } - private static efl_ui_zoom_mode_set_delegate efl_ui_zoom_mode_set_static_delegate; + + private static efl_ui_zoom_animation_set_delegate efl_ui_zoom_animation_set_static_delegate; + + + private delegate double efl_ui_zoom_level_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_ui_zoom_level_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_zoom_level_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_level_get"); + + private static double zoom_level_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_zoom_level_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ImageZoomable)wrapper).GetZoomLevel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_zoom_level_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_zoom_level_get_delegate efl_ui_zoom_level_get_static_delegate; + + + private delegate void efl_ui_zoom_level_set_delegate(System.IntPtr obj, System.IntPtr pd, double zoom); + + + public delegate void efl_ui_zoom_level_set_api_delegate(System.IntPtr obj, double zoom); + + public static Efl.Eo.FunctionWrapper efl_ui_zoom_level_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_level_set"); + + private static void zoom_level_set(System.IntPtr obj, System.IntPtr pd, double zoom) + { + Eina.Log.Debug("function efl_ui_zoom_level_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetZoomLevel(zoom); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_zoom_level_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoom); + } + } + + private static efl_ui_zoom_level_set_delegate efl_ui_zoom_level_set_static_delegate; + + + private delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_zoom_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_mode_get"); + + private static Efl.Ui.ZoomMode zoom_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_zoom_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ZoomMode _ret_var = default(Efl.Ui.ZoomMode); + try + { + _ret_var = ((ImageZoomable)wrapper).GetZoomMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_zoom_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_zoom_mode_get_delegate efl_ui_zoom_mode_get_static_delegate; + + + private delegate void efl_ui_zoom_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode); + + + public delegate void efl_ui_zoom_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ZoomMode mode); + + public static Efl.Eo.FunctionWrapper efl_ui_zoom_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_mode_set"); + + private static void zoom_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode) + { + Eina.Log.Debug("function efl_ui_zoom_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ImageZoomable)wrapper).SetZoomMode(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_zoom_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); + } + } + + private static efl_ui_zoom_mode_set_delegate efl_ui_zoom_mode_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } -namespace Elm { namespace Photocam { -/// +} + +} + +namespace Elm { + +namespace Photocam { + [StructLayout(LayoutKind.Sequential)] public struct Error { @@ -3069,9 +4026,14 @@ public struct Error } -} } -namespace Elm { namespace Photocam { -/// +} + +} + +namespace Elm { + +namespace Photocam { + [StructLayout(LayoutKind.Sequential)] public struct Progress { @@ -3106,4 +4068,7 @@ public struct Progress } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable_pan.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable_pan.eo.cs index 0940531..dbc15a7 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable_pan.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable_pan.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary photocom pan class -[ImageZoomablePanNativeInherit] +[Efl.Ui.ImageZoomablePan.NativeMethods] public class ImageZoomablePan : Efl.Ui.Pan, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ImageZoomablePan)) - return Efl.Ui.ImageZoomablePanNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ImageZoomablePan)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_image_zoomable_pan_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ImageZoomablePan(Efl.Object parent= null - ) : - base(efl_ui_image_zoomable_pan_class_get(), typeof(ImageZoomablePan), parent) + ) : base(efl_ui_image_zoomable_pan_class_get(), typeof(ImageZoomablePan), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ImageZoomablePan(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ImageZoomablePan(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ImageZoomablePan(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.ImageZoomablePan.efl_ui_image_zoomable_pan_class_get(); } -} -public class ImageZoomablePanNativeInherit : Efl.Ui.PanNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ImageZoomablePan.efl_ui_image_zoomable_pan_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Pan.NativeMethods { - return Efl.Ui.ImageZoomablePan.efl_ui_image_zoomable_pan_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ImageZoomablePan.efl_ui_image_zoomable_pan_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_item.eo.cs index 1afc83d..a86ccae 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_item.eo.cs @@ -3,39 +3,55 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Item abstract class for pack widget. All item have to be inherited from this class. -[ItemNativeInherit] +[Efl.Ui.Item.NativeMethods] public abstract class Item : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.Ui.IClickable,Efl.Ui.ISelectable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Item)) - return Efl.Ui.ItemNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Item)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_item_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Item(Efl.Object parent - , System.String style = null) : - base(efl_ui_item_class_get(), typeof(Item), parent) + , System.String style = null) : base(efl_ui_item_class_get(), typeof(Item), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Item(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class ItemRealized : Item { @@ -43,896 +59,1098 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.Ui.IClickabl { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Item(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Item(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ClickedEvtKey = new object(); + /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) + public void OnClickedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) + public void OnClickedDoubleEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedTripleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) + public void OnRepeatedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ItemSelectedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selected public event EventHandler ItemSelectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.AddHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemSelectedEvt. - public void On_ItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) + public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemSelectedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemSelectedEvt_delegate; - private void on_ItemSelectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemSelectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ITEM_SELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ItemUnselectedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when no longer selected public event EventHandler ItemUnselectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.AddHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemUnselectedEvt. - public void On_ItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemUnselectedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemUnselectedEvt_delegate; - private void on_ItemUnselectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemUnselectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionPasteEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when selection is pasted public event EventHandler SelectionPasteEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.AddHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (RemoveNativeEventHandler(key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionPasteEvt. - public void On_SelectionPasteEvt(EventArgs e) + public void OnSelectionPasteEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionPasteEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionPasteEvt_delegate; - private void on_SelectionPasteEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionPasteEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_PASTE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionCopyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is copied public event EventHandler SelectionCopyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.AddHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCopyEvt. - public void On_SelectionCopyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCopyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCopyEvt_delegate; - private void on_SelectionCopyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionCopyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCopyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_COPY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionCutEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cut public event EventHandler SelectionCutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.AddHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCutEvt. - public void On_SelectionCutEvt(EventArgs e) + public void OnSelectionCutEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCutEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCutEvt_delegate; - private void on_SelectionCutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_CUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called at selection start public event EventHandler SelectionStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.AddHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_START"; - if (RemoveNativeEventHandler(key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionStartEvt. - public void On_SelectionStartEvt(EventArgs e) + public void OnSelectionStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionStartEvt_delegate; - private void on_SelectionStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is changed public event EventHandler SelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionChangedEvt. - public void On_SelectionChangedEvt(EventArgs e) + public void OnSelectionChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionChangedEvt_delegate; - private void on_SelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionClearedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cleared public event EventHandler SelectionClearedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.AddHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionClearedEvt. - public void On_SelectionClearedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionClearedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionClearedEvt_delegate; - private void on_SelectionClearedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionClearedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); - evt_ItemSelectedEvt_delegate = new Efl.EventCb(on_ItemSelectedEvt_NativeCallback); - evt_ItemUnselectedEvt_delegate = new Efl.EventCb(on_ItemUnselectedEvt_NativeCallback); - evt_SelectionPasteEvt_delegate = new Efl.EventCb(on_SelectionPasteEvt_NativeCallback); - evt_SelectionCopyEvt_delegate = new Efl.EventCb(on_SelectionCopyEvt_NativeCallback); - evt_SelectionCutEvt_delegate = new Efl.EventCb(on_SelectionCutEvt_NativeCallback); - evt_SelectionStartEvt_delegate = new Efl.EventCb(on_SelectionStartEvt_NativeCallback); - evt_SelectionChangedEvt_delegate = new Efl.EventCb(on_SelectionChangedEvt_NativeCallback); - evt_SelectionClearedEvt_delegate = new Efl.EventCb(on_SelectionClearedEvt_NativeCallback); + public void OnSelectionClearedEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// index number of item from their parent object. - /// virtual public int GetIndex() { - var _ret_var = Efl.Ui.ItemNativeInherit.efl_ui_item_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Item.NativeMethods.efl_ui_item_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Select property for item object. Item can be selected by user mouse/key input also - /// virtual public bool GetSelected() { - var _ret_var = Efl.Ui.ItemNativeInherit.efl_ui_item_selected_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Item.NativeMethods.efl_ui_item_selected_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Select property for item object. Item can be selected by user mouse/key input also - /// - /// - virtual public void SetSelected( bool select) { - Efl.Ui.ItemNativeInherit.efl_ui_item_selected_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), select); + virtual public void SetSelected(bool select) { + Efl.Ui.Item.NativeMethods.efl_ui_item_selected_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),select); Eina.Error.RaiseIfUnhandledException(); } /// index number of item from their parent object. -/// public int Index { get { return GetIndex(); } } /// Select property for item object. Item can be selected by user mouse/key input also -/// public bool Selected { get { return GetSelected(); } - set { SetSelected( value); } + set { SetSelected(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Item.efl_ui_item_class_get(); } -} -public class ItemNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_item_index_get_static_delegate == null) - efl_ui_item_index_get_static_delegate = new efl_ui_item_index_get_delegate(index_get); - if (methods.FirstOrDefault(m => m.Name == "GetIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_item_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_index_get_static_delegate)}); - if (efl_ui_item_selected_get_static_delegate == null) - efl_ui_item_selected_get_static_delegate = new efl_ui_item_selected_get_delegate(selected_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelected") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_item_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_selected_get_static_delegate)}); - if (efl_ui_item_selected_set_static_delegate == null) - efl_ui_item_selected_set_static_delegate = new efl_ui_item_selected_set_delegate(selected_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelected") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_item_selected_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_selected_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Item.efl_ui_item_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Item.efl_ui_item_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_item_index_get_static_delegate == null) + { + efl_ui_item_index_get_static_delegate = new efl_ui_item_index_get_delegate(index_get); + } - private delegate int efl_ui_item_index_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_index_get_static_delegate) }); + } + if (efl_ui_item_selected_get_static_delegate == null) + { + efl_ui_item_selected_get_static_delegate = new efl_ui_item_selected_get_delegate(selected_get); + } - public delegate int efl_ui_item_index_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_item_index_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_item_index_get"); - private static int index_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_item_index_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Item)wrapper).GetIndex(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_selected_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_item_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_item_selected_set_static_delegate == null) + { + efl_ui_item_selected_set_static_delegate = new efl_ui_item_selected_set_delegate(selected_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_selected_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_selected_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Item.efl_ui_item_class_get(); } - } - private static efl_ui_item_index_get_delegate efl_ui_item_index_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_item_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_ui_item_index_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_ui_item_index_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_item_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_item_index_get"); + + private static int index_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_item_index_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Item)wrapper).GetIndex(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_item_selected_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_item_selected_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_item_selected_get"); - private static bool selected_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_item_selected_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Item)wrapper).GetSelected(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_ui_item_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_item_index_get_delegate efl_ui_item_index_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_item_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_item_selected_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_item_selected_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_item_selected_get"); + + private static bool selected_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_item_selected_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Item)wrapper).GetSelected(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_item_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_item_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_item_selected_get_delegate efl_ui_item_selected_get_static_delegate; + private static efl_ui_item_selected_get_delegate efl_ui_item_selected_get_static_delegate; - private delegate void efl_ui_item_selected_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool select); + + private delegate void efl_ui_item_selected_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool select); + + public delegate void efl_ui_item_selected_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool select); - public delegate void efl_ui_item_selected_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool select); - public static Efl.Eo.FunctionWrapper efl_ui_item_selected_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_item_selected_set"); - private static void selected_set(System.IntPtr obj, System.IntPtr pd, bool select) - { - Eina.Log.Debug("function efl_ui_item_selected_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Item)wrapper).SetSelected( select); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_item_selected_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_item_selected_set"); + + private static void selected_set(System.IntPtr obj, System.IntPtr pd, bool select) + { + Eina.Log.Debug("function efl_ui_item_selected_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Item)wrapper).SetSelected(select); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_item_selected_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), select); } - } else { - efl_ui_item_selected_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), select); } - } - private static efl_ui_item_selected_set_delegate efl_ui_item_selected_set_static_delegate; + + private static efl_ui_item_selected_set_delegate efl_ui_item_selected_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_l10n.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_l10n.eo.cs index 560f7fe..a1b7a8b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_l10n.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_l10n.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Interface for all translatable text APIs. /// This is intended for translation of human readable on-screen text strings but may also be used in text-to-speech situations. -[IL10nNativeInherit] +[Efl.Ui.IL10nConcrete.NativeMethods] public interface IL10n : Efl.Eo.IWrapper, IDisposable { @@ -17,17 +21,15 @@ public interface IL10n : /// Setting this property will enable translation for this object or part. /// A translation domain. If null this means the default domain is used. /// This returns the untranslated value of label. The translated string can usually be retrieved with . -System.String GetL10nText( out System.String domain); +System.String GetL10nText(out System.String domain); /// Sets the new untranslated string and domain for this object. /// A unique (untranslated) string. /// A translation domain. If null this uses the default domain (eg. set by textdomain()). -/// -void SetL10nText( System.String label, System.String domain); +void SetL10nText(System.String label, System.String domain); /// Requests this object to update its text strings for the current locale. /// Currently strings are translated with dgettext, so support for this function may depend on the platform. It is up to the application to provide its own translation data. /// /// This function is a hook meant to be implemented by any object that supports translation. This can be called whenever a new object is created or when the current locale changes, for instance. This should only trigger further calls to to children objects. -/// void UpdateTranslation(); } /// Interface for all translatable text APIs. @@ -38,203 +40,299 @@ IL10n { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IL10nConcrete)) - return Efl.Ui.IL10nNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IL10nConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_l10n_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IL10nConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IL10nConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// A unique string to be translated. /// Often this will be a human-readable string (e.g. in English) but it can also be a unique string identifier that must then be translated to the current locale with dgettext() or any similar mechanism. /// /// Setting this property will enable translation for this object or part. /// A translation domain. If null this means the default domain is used. /// This returns the untranslated value of label. The translated string can usually be retrieved with . - public System.String GetL10nText( out System.String domain) { - var _ret_var = Efl.Ui.IL10nNativeInherit.efl_ui_l10n_text_get_ptr.Value.Delegate(this.NativeHandle, out domain); + public System.String GetL10nText(out System.String domain) { + var _ret_var = Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_text_get_ptr.Value.Delegate(this.NativeHandle,out domain); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the new untranslated string and domain for this object. /// A unique (untranslated) string. /// A translation domain. If null this uses the default domain (eg. set by textdomain()). - /// - public void SetL10nText( System.String label, System.String domain) { - Efl.Ui.IL10nNativeInherit.efl_ui_l10n_text_set_ptr.Value.Delegate(this.NativeHandle, label, domain); + public void SetL10nText(System.String label, System.String domain) { + Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_text_set_ptr.Value.Delegate(this.NativeHandle,label, domain); Eina.Error.RaiseIfUnhandledException(); } /// Requests this object to update its text strings for the current locale. /// Currently strings are translated with dgettext, so support for this function may depend on the platform. It is up to the application to provide its own translation data. /// /// This function is a hook meant to be implemented by any object that supports translation. This can be called whenever a new object is created or when the current locale changes, for instance. This should only trigger further calls to to children objects. - /// public void UpdateTranslation() { - Efl.Ui.IL10nNativeInherit.efl_ui_l10n_translation_update_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_translation_update_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Ui.IL10nConcrete.efl_ui_l10n_interface_get(); } -} -public class IL10nNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_l10n_text_get_static_delegate == null) - efl_ui_l10n_text_get_static_delegate = new efl_ui_l10n_text_get_delegate(l10n_text_get); - if (methods.FirstOrDefault(m => m.Name == "GetL10nText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_get_static_delegate)}); - if (efl_ui_l10n_text_set_static_delegate == null) - efl_ui_l10n_text_set_static_delegate = new efl_ui_l10n_text_set_delegate(l10n_text_set); - if (methods.FirstOrDefault(m => m.Name == "SetL10nText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_set_static_delegate)}); - if (efl_ui_l10n_translation_update_static_delegate == null) - efl_ui_l10n_translation_update_static_delegate = new efl_ui_l10n_translation_update_delegate(translation_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateTranslation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_translation_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_translation_update_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IL10nConcrete.efl_ui_l10n_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IL10nConcrete.efl_ui_l10n_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_l10n_text_get_static_delegate == null) + { + efl_ui_l10n_text_get_static_delegate = new efl_ui_l10n_text_get_delegate(l10n_text_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_l10n_text_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); + if (methods.FirstOrDefault(m => m.Name == "GetL10nText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_get_static_delegate) }); + } + if (efl_ui_l10n_text_set_static_delegate == null) + { + efl_ui_l10n_text_set_static_delegate = new efl_ui_l10n_text_set_delegate(l10n_text_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_l10n_text_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_text_get"); - private static System.String l10n_text_get(System.IntPtr obj, System.IntPtr pd, out System.String domain) - { - Eina.Log.Debug("function efl_ui_l10n_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_domain = default(System.String); - System.String _ret_var = default(System.String); - try { - _ret_var = ((IL10n)wrapper).GetL10nText( out _out_domain); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetL10nText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_set_static_delegate) }); + } + + if (efl_ui_l10n_translation_update_static_delegate == null) + { + efl_ui_l10n_translation_update_static_delegate = new efl_ui_l10n_translation_update_delegate(translation_update); } + + if (methods.FirstOrDefault(m => m.Name == "UpdateTranslation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_translation_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_translation_update_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.IL10nConcrete.efl_ui_l10n_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_l10n_text_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_l10n_text_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); + + public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_text_get"); + + private static System.String l10n_text_get(System.IntPtr obj, System.IntPtr pd, out System.String domain) + { + Eina.Log.Debug("function efl_ui_l10n_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_domain = default(System.String); + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IL10n)wrapper).GetL10nText(out _out_domain); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + domain = _out_domain; return _ret_var; - } else { - return efl_ui_l10n_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out domain); + + } + else + { + return efl_ui_l10n_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out domain); + } } - } - private static efl_ui_l10n_text_get_delegate efl_ui_l10n_text_get_static_delegate; + private static efl_ui_l10n_text_get_delegate efl_ui_l10n_text_get_static_delegate; - private delegate void efl_ui_l10n_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + + private delegate void efl_ui_l10n_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + + public delegate void efl_ui_l10n_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public delegate void efl_ui_l10n_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_text_set"); - private static void l10n_text_set(System.IntPtr obj, System.IntPtr pd, System.String label, System.String domain) - { - Eina.Log.Debug("function efl_ui_l10n_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IL10n)wrapper).SetL10nText( label, domain); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_l10n_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), label, domain); + public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_text_set"); + + private static void l10n_text_set(System.IntPtr obj, System.IntPtr pd, System.String label, System.String domain) + { + Eina.Log.Debug("function efl_ui_l10n_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IL10n)wrapper).SetL10nText(label, domain); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_l10n_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), label, domain); + } } - } - private static efl_ui_l10n_text_set_delegate efl_ui_l10n_text_set_static_delegate; + private static efl_ui_l10n_text_set_delegate efl_ui_l10n_text_set_static_delegate; - private delegate void efl_ui_l10n_translation_update_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_l10n_translation_update_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_l10n_translation_update_api_delegate(System.IntPtr obj); - public delegate void efl_ui_l10n_translation_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_translation_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_translation_update"); - private static void translation_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_l10n_translation_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IL10n)wrapper).UpdateTranslation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_l10n_translation_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + public static Efl.Eo.FunctionWrapper efl_ui_l10n_translation_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_translation_update"); + + private static void translation_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_l10n_translation_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IL10n)wrapper).UpdateTranslation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_l10n_translation_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_l10n_translation_update_delegate efl_ui_l10n_translation_update_static_delegate; + + private static efl_ui_l10n_translation_update_delegate efl_ui_l10n_translation_update_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout.eo.cs index 86ee8a1..7a9c531 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout.eo.cs @@ -3,71 +3,98 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary layout class /// When loading layouts from a file, use the property to specify the group that the data belongs to, in case it's an EET file (including Edje files). /// (Since EFL 1.22) -[LayoutNativeInherit] +[Efl.Ui.Layout.NativeMethods] public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Layout)) - return Efl.Ui.LayoutNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Layout)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_layout_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Layout(Efl.Object parent - , System.String style = null) : - base(efl_ui_layout_class_get(), typeof(Layout), parent) + , System.String style = null) : base(efl_ui_layout_class_get(), typeof(Layout), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Layout(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Layout(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Layout(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Get the mmaped file from where an object will fetch the real data (it must be an ). /// (Since EFL 1.22) /// The handle to the that will be used virtual public Eina.File GetMmap() { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -76,8 +103,8 @@ public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise - virtual public Eina.Error SetMmap( Eina.File f) { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public Eina.Error SetMmap(Eina.File f) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -86,7 +113,7 @@ public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile /// (Since EFL 1.22) /// The file path. virtual public System.String GetFile() { - var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -95,8 +122,8 @@ public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise - virtual public Eina.Error SetFile( System.String file) { - var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file); + virtual public Eina.Error SetFile(System.String file) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -107,7 +134,7 @@ public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. virtual public System.String GetKey() { - var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -115,16 +142,15 @@ public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. - /// - virtual public void SetKey( System.String key) { - Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public void SetKey(System.String key) { + Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. virtual public bool GetLoaded() { - var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -135,7 +161,7 @@ public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile /// (Since EFL 1.22) /// 0 on success, error code otherwise virtual public Eina.Error Load() { - var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -144,9 +170,8 @@ public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) - /// virtual public void Unload() { - Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Get the mmaped file from where an object will fetch the real data (it must be an ). @@ -154,7 +179,7 @@ public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile /// The handle to the that will be used public Eina.File Mmap { get { return GetMmap(); } - set { SetMmap( value); } + set { SetMmap(value); } } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. @@ -162,7 +187,7 @@ public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile /// The file path. public System.String File { get { return GetFile(); } - set { SetFile( value); } + set { SetFile(value); } } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -172,7 +197,7 @@ public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String Key { get { return GetKey(); } - set { SetKey( value); } + set { SetKey(value); } } /// Get the load state of the object. /// (Since EFL 1.22) @@ -184,282 +209,447 @@ public class Layout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile { return Efl.Ui.Layout.efl_ui_layout_class_get(); } -} -public class LayoutNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_file_mmap_get_static_delegate == null) - efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate)}); - if (efl_file_mmap_set_static_delegate == null) - efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate)}); - if (efl_file_get_static_delegate == null) - efl_file_get_static_delegate = new efl_file_get_delegate(file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate)}); - if (efl_file_set_static_delegate == null) - efl_file_set_static_delegate = new efl_file_set_delegate(file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate)}); - if (efl_file_key_get_static_delegate == null) - efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate)}); - if (efl_file_key_set_static_delegate == null) - efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate)}); - if (efl_file_loaded_get_static_delegate == null) - efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate)}); - if (efl_file_load_static_delegate == null) - efl_file_load_static_delegate = new efl_file_load_delegate(load); - if (methods.FirstOrDefault(m => m.Name == "Load") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate)}); - if (efl_file_unload_static_delegate == null) - efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); - if (methods.FirstOrDefault(m => m.Name == "Unload") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Layout.efl_ui_layout_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Layout.efl_ui_layout_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_file_mmap_get_static_delegate == null) + { + efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) }); + } - private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_mmap_set_static_delegate == null) + { + efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) }); + } - public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_get"); - private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_mmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.File _ret_var = default(Eina.File); - try { - _ret_var = ((Layout)wrapper).GetMmap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_get_static_delegate == null) + { + efl_file_get_static_delegate = new efl_file_get_delegate(file_get); } - return _ret_var; - } else { - return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) }); + } - private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + if (efl_file_set_static_delegate == null) + { + efl_file_set_static_delegate = new efl_file_set_delegate(file_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) }); + } - public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); - public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_set"); - private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) - { - Eina.Log.Debug("function efl_file_mmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Layout)wrapper).SetMmap( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_key_get_static_delegate == null) + { + efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); } - return _ret_var; - } else { - return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_key_set_static_delegate == null) + { + efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_get"); - private static System.String file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Layout)wrapper).GetFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_loaded_get_static_delegate == null) + { + efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); } - return _ret_var; - } else { - return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_get_delegate efl_file_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) }); + } - private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + if (efl_file_load_static_delegate == null) + { + efl_file_load_static_delegate = new efl_file_load_delegate(load); + } + if (methods.FirstOrDefault(m => m.Name == "Load") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) }); + } - public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_set"); - private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) - { - Eina.Log.Debug("function efl_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Layout)wrapper).SetFile( file); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_unload_static_delegate == null) + { + efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); } - return _ret_var; - } else { - return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); + + if (methods.FirstOrDefault(m => m.Name == "Unload") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Layout.efl_ui_layout_class_get(); } - } - private static efl_file_set_delegate efl_file_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_get"); + + private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_mmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.File _ret_var = default(Eina.File); + try + { + _ret_var = ((Layout)wrapper).GetMmap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + + + private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + + + public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_set"); + + private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) + { + Eina.Log.Debug("function efl_file_mmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Layout)wrapper).SetMmap(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Layout)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } } - } - private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_get"); + + private static System.String file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Layout)wrapper).GetFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + private static efl_file_get_delegate efl_file_get_static_delegate; + + + private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + + public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_set"); + + private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) + { + Eina.Log.Debug("function efl_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Layout)wrapper).SetFile(file); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_file_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).SetKey( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } + else + { + return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); + } } - } - private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + private static efl_file_set_delegate efl_file_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_get"); + + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Layout)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_loaded_get"); - private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_loaded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Layout)wrapper).GetLoaded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + + + private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_file_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).SetKey(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); } + } + + private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_loaded_get"); + + private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_loaded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)wrapper).GetLoaded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + + + private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_load"); + + private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_load was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Layout)wrapper).Load(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_load"); - private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_load was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Layout)wrapper).Load(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_file_load_delegate efl_file_load_static_delegate; + + + private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_file_unload_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_unload"); + + private static void unload(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_unload was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Layout)wrapper).Unload(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_file_load_delegate efl_file_load_static_delegate; + private static efl_file_unload_delegate efl_file_unload_static_delegate; - private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_file_unload_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_unload"); - private static void unload(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_unload was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Layout)wrapper).Unload(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_unload_delegate efl_file_unload_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_base.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_base.eo.cs index fb17a8c..e0478ef 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_base.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_base.eo.cs @@ -3,40 +3,56 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary layout abstract /// (Since EFL 1.22) -[LayoutBaseNativeInherit] +[Efl.Ui.LayoutBase.NativeMethods] public abstract class LayoutBase : Efl.Ui.Widget, Efl.Eo.IWrapper,Efl.IContainer,Efl.Layout.ICalc,Efl.Layout.IGroup,Efl.Layout.ISignal,Efl.Ui.IFactoryBind { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutBase)) - return Efl.Ui.LayoutBaseNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutBase)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_layout_base_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public LayoutBase(Efl.Object parent - , System.String style = null) : - base(efl_ui_layout_base_class_get(), typeof(LayoutBase), parent) + , System.String style = null) : base(efl_ui_layout_base_class_get(), typeof(LayoutBase), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutBase(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class LayoutBaseRealized : LayoutBase { @@ -44,263 +60,317 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.Eo.IWrapper,Efl.IContainer { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutBase(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutBase(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) { - var other = obj as Efl.Object; + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) + { + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ThemeChangedEvtKey = new object(); + /// Called when theme changed /// (Since EFL 1.22) public event EventHandler ThemeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_LAYOUT_EVENT_THEME_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ThemeChangedEvt_delegate)) { - eventHandlers.AddHandler(ThemeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_LAYOUT_EVENT_THEME_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ThemeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ThemeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ThemeChangedEvt. - public void On_ThemeChangedEvt(EventArgs e) + public void OnThemeChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ThemeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ThemeChangedEvt_delegate; - private void on_ThemeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ThemeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_LAYOUT_EVENT_THEME_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentAddedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RecalcEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// The layout was recalculated. /// (Since EFL 1.22) public event EventHandler RecalcEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LAYOUT_EVENT_RECALC"; - if (AddNativeEventHandler(efl.Libs.Edje, key, this.evt_RecalcEvt_delegate)) { - eventHandlers.AddHandler(RecalcEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Edje, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LAYOUT_EVENT_RECALC"; - if (RemoveNativeEventHandler(key, this.evt_RecalcEvt_delegate)) { - eventHandlers.RemoveHandler(RecalcEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Edje, key, value); } } } ///Method to raise event RecalcEvt. - public void On_RecalcEvt(EventArgs e) + public void OnRecalcEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RecalcEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RecalcEvt_delegate; - private void on_RecalcEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_RecalcEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LAYOUT_EVENT_RECALC"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Edje, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CircularDependencyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// A circular dependency between parts of the object was found. /// (Since EFL 1.22) public event EventHandler CircularDependencyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Layout.ICalcCircularDependencyEvt_Args args = new Efl.Layout.ICalcCircularDependencyEvt_Args(); + args.arg = new Eina.Array(evt.Info, false, false); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; - if (AddNativeEventHandler(efl.Libs.Edje, key, this.evt_CircularDependencyEvt_delegate)) { - eventHandlers.AddHandler(CircularDependencyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Edje, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; - if (RemoveNativeEventHandler(key, this.evt_CircularDependencyEvt_delegate)) { - eventHandlers.RemoveHandler(CircularDependencyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Edje, key, value); } } } ///Method to raise event CircularDependencyEvt. - public void On_CircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) + public void OnCircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CircularDependencyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CircularDependencyEvt_delegate; - private void on_CircularDependencyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Layout.ICalcCircularDependencyEvt_Args args = new Efl.Layout.ICalcCircularDependencyEvt_Args(); - args.arg = new Eina.Array(evt.Info, false, false); - try { - On_CircularDependencyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Edje, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ThemeChangedEvt_delegate = new Efl.EventCb(on_ThemeChangedEvt_NativeCallback); - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); - evt_RecalcEvt_delegate = new Efl.EventCb(on_RecalcEvt_NativeCallback); - evt_CircularDependencyEvt_delegate = new Efl.EventCb(on_CircularDependencyEvt_NativeCallback); + IntPtr info = e.arg.Handle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// The theme of this widget, defines which edje group will be used. /// Based on the type of widget (klass), a given group and a style (usually "default"), the edje group name will be formed for this object. @@ -314,9 +384,8 @@ private static object CircularDependencyEvtKey = new object(); /// The class of the group, eg. "button". /// The group, eg. "base". /// The style to use, eg "default". - /// - virtual public void GetTheme( out System.String klass, out System.String group, out System.String style) { - Efl.Ui.LayoutBaseNativeInherit.efl_ui_layout_theme_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out klass, out group, out style); + virtual public void GetTheme(out System.String klass, out System.String group, out System.String style) { + Efl.Ui.LayoutBase.NativeMethods.efl_ui_layout_theme_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out klass, out group, out style); Eina.Error.RaiseIfUnhandledException(); } /// The theme of this widget, defines which edje group will be used. @@ -332,8 +401,8 @@ private static object CircularDependencyEvtKey = new object(); /// The group, eg. "base". /// The style to use, eg "default". /// Whether the theme was successfully applied or not, see the Efl.Ui.Theme.Apply_Error subset of for more information. - virtual public Eina.Error SetTheme( System.String klass, System.String group, System.String style) { - var _ret_var = Efl.Ui.LayoutBaseNativeInherit.efl_ui_layout_theme_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), klass, group, style); + virtual public Eina.Error SetTheme(System.String klass, System.String group, System.String style) { + var _ret_var = Efl.Ui.LayoutBase.NativeMethods.efl_ui_layout_theme_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),klass, group, style); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -341,31 +410,29 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// true to mirror orientation changes to the theme false otherwise virtual public bool GetAutomaticThemeRotation() { - var _ret_var = Efl.Ui.LayoutBaseNativeInherit.efl_ui_layout_automatic_theme_rotation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.LayoutBase.NativeMethods.efl_ui_layout_automatic_theme_rotation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This flag tells if this object will automatically mirror the rotation changes of the window to this object. /// (Since EFL 1.22) /// true to mirror orientation changes to the theme false otherwise - /// - virtual public void SetAutomaticThemeRotation( bool automatic) { - Efl.Ui.LayoutBaseNativeInherit.efl_ui_layout_automatic_theme_rotation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), automatic); + virtual public void SetAutomaticThemeRotation(bool automatic) { + Efl.Ui.LayoutBase.NativeMethods.efl_ui_layout_automatic_theme_rotation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),automatic); Eina.Error.RaiseIfUnhandledException(); } /// Apply a new rotation value to this object. /// (Since EFL 1.22) /// The new rotation value. - /// - virtual public void ThemeRotationApply( Efl.Orient orientation) { - Efl.Ui.LayoutBaseNativeInherit.efl_ui_layout_theme_rotation_apply_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), orientation); + virtual public void ThemeRotationApply(Efl.Orient orientation) { + Efl.Ui.LayoutBase.NativeMethods.efl_ui_layout_theme_rotation_apply_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),orientation); Eina.Error.RaiseIfUnhandledException(); } /// Begin iterating over this object's contents. /// (Since EFL 1.22) /// Iterator to object content virtual public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -373,7 +440,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements virtual public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -381,16 +448,15 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// Whether or not update the size hints. virtual public bool GetCalcAutoUpdateHints() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable or disable auto-update of size hints. /// (Since EFL 1.22) /// Whether or not update the size hints. - /// - virtual public void SetCalcAutoUpdateHints( bool update) { - Efl.Layout.ICalcNativeInherit.efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), update); + virtual public void SetCalcAutoUpdateHints(bool update) { + Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),update); Eina.Error.RaiseIfUnhandledException(); } /// Calculates the minimum required size for a given layout object. @@ -402,9 +468,9 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The minimum size constraint as input, the returned size can not be lower than this (in both directions). /// The minimum required size. - virtual public Eina.Size2D CalcSizeMin( Eina.Size2D restricted) { + virtual public Eina.Size2D CalcSizeMin(Eina.Size2D restricted) { Eina.Size2D.NativeStruct _in_restricted = restricted; - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_size_min_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_restricted); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_size_min_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_restricted); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -415,7 +481,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The calculated region. virtual public Eina.Rect CalcPartsExtends() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_parts_extends_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_parts_extends_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -426,7 +492,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The frozen state or 0 on error virtual public int FreezeCalc() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -439,7 +505,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The frozen state or 0 if the object is not frozen or on error. virtual public int ThawCalc() { - var _ret_var = Efl.Layout.ICalcNativeInherit.efl_layout_calc_thaw_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_thaw_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -448,9 +514,8 @@ private static object CircularDependencyEvtKey = new object(); /// /// See also and . /// (Since EFL 1.22) - /// virtual public void CalcForce() { - Efl.Layout.ICalcNativeInherit.efl_layout_calc_force_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_force_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Gets the minimum size specified -- as an EDC property -- for a given Edje object @@ -464,7 +529,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The minimum size as set in EDC. virtual public Eina.Size2D GetGroupSizeMin() { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_size_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_size_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -479,7 +544,7 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The maximum size as set in EDC. virtual public Eina.Size2D GetGroupSizeMax() { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_size_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_size_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -494,8 +559,8 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The data field's key string /// The data's value string. - virtual public System.String GetGroupData( System.String key) { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public System.String GetGroupData(System.String key) { + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -503,8 +568,8 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The part name to check. /// true if the part exists, false otherwise. - virtual public bool GetPartExist( System.String part) { - var _ret_var = Efl.Layout.IGroupNativeInherit.efl_layout_group_part_exist_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part); + virtual public bool GetPartExist(System.String part) { + var _ret_var = Efl.Layout.IGroupConcrete.NativeMethods.efl_layout_group_part_exist_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -517,9 +582,8 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// A identification number for the message to be sent /// The message's payload - /// - virtual public void MessageSend( int id, Eina.Value msg) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_message_send_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id, msg); + virtual public void MessageSend(int id, Eina.Value msg) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_message_send_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),id, msg); Eina.Error.RaiseIfUnhandledException(); } /// Adds a callback for an arriving Edje signal, emitted by a given Edje object. @@ -543,9 +607,9 @@ private static object CircularDependencyEvtKey = new object(); /// The signal's "source" string /// The callback function to be executed when the signal is emitted. /// true in case of success, false in case of error. - virtual public bool AddSignalCallback( System.String emission, System.String source, EflLayoutSignalCb func) { + virtual public bool AddSignalCallback(System.String emission, System.String source, EflLayoutSignalCb func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.Layout.ISignalNativeInherit.efl_layout_signal_callback_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_callback_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -558,9 +622,9 @@ private static object CircularDependencyEvtKey = new object(); /// The signal's "source" string /// The callback function to be executed when the signal is emitted. /// true in case of success, false in case of error. - virtual public bool DelSignalCallback( System.String emission, System.String source, EflLayoutSignalCb func) { + virtual public bool DelSignalCallback(System.String emission, System.String source, EflLayoutSignalCb func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.Layout.ISignalNativeInherit.efl_layout_signal_callback_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_callback_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),emission, source, GCHandle.ToIntPtr(func_handle), EflLayoutSignalCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -573,9 +637,8 @@ private static object CircularDependencyEvtKey = new object(); /// (Since EFL 1.22) /// The signal's "emission" string /// The signal's "source" string - /// - virtual public void EmitSignal( System.String emission, System.String source) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_emit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), emission, source); + virtual public void EmitSignal(System.String emission, System.String source) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_emit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),emission, source); Eina.Error.RaiseIfUnhandledException(); } /// Processes an object's messages and signals queue. @@ -584,17 +647,15 @@ private static object CircularDependencyEvtKey = new object(); /// If recurse is true, this function will be called recursively on all subobjects. /// (Since EFL 1.22) /// Whether to process messages on children objects. - /// - virtual public void SignalProcess( bool recurse) { - Efl.Layout.ISignalNativeInherit.efl_layout_signal_process_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), recurse); + virtual public void SignalProcess(bool recurse) { + Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_process_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),recurse); Eina.Error.RaiseIfUnhandledException(); } /// bind the factory with the given key string. when the data is ready or changed, factory create the object and bind the data to the key action and process promised work. Note: the input need to be at least once. /// Key string for bind model property data /// for create and bind model property data - /// - virtual public void FactoryBind( System.String key, Efl.Ui.IFactory factory) { - Efl.Ui.IFactoryBindNativeInherit.efl_ui_factory_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key, factory); + virtual public void FactoryBind(System.String key, Efl.Ui.IFactory factory) { + Efl.Ui.IFactoryBindConcrete.NativeMethods.efl_ui_factory_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key, factory); Eina.Error.RaiseIfUnhandledException(); } /// This flag tells if this object will automatically mirror the rotation changes of the window to this object. @@ -602,7 +663,7 @@ private static object CircularDependencyEvtKey = new object(); /// true to mirror orientation changes to the theme false otherwise public bool AutomaticThemeRotation { get { return GetAutomaticThemeRotation(); } - set { SetAutomaticThemeRotation( value); } + set { SetAutomaticThemeRotation(value); } } /// Whether this object updates its size hints automatically. /// By default edje doesn't set size hints on itself. If this property is set to true, size hints will be updated after recalculation. Be careful, as recalculation may happen often, enabling this property may have a considerable performance impact as other widgets will be notified of the size hints changes. @@ -612,7 +673,7 @@ private static object CircularDependencyEvtKey = new object(); /// Whether or not update the size hints. public bool CalcAutoUpdateHints { get { return GetCalcAutoUpdateHints(); } - set { SetCalcAutoUpdateHints( value); } + set { SetCalcAutoUpdateHints(value); } } /// Gets the minimum size specified -- as an EDC property -- for a given Edje object /// This function retrieves the obj object's minimum size values, as declared in its EDC group definition. For instance, for an Edje object of minimum size 100x100 pixels: collections { group { name: "a_group"; min: 100 100; } } @@ -644,719 +705,1139 @@ private static object CircularDependencyEvtKey = new object(); { return Efl.Ui.LayoutBase.efl_ui_layout_base_class_get(); } -} -public class LayoutBaseNativeInherit : Efl.Ui.WidgetNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Widget.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_layout_theme_get_static_delegate == null) - efl_ui_layout_theme_get_static_delegate = new efl_ui_layout_theme_get_delegate(theme_get); - if (methods.FirstOrDefault(m => m.Name == "GetTheme") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_layout_theme_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_theme_get_static_delegate)}); - if (efl_ui_layout_theme_set_static_delegate == null) - efl_ui_layout_theme_set_static_delegate = new efl_ui_layout_theme_set_delegate(theme_set); - if (methods.FirstOrDefault(m => m.Name == "SetTheme") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_layout_theme_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_theme_set_static_delegate)}); - if (efl_ui_layout_automatic_theme_rotation_get_static_delegate == null) - efl_ui_layout_automatic_theme_rotation_get_static_delegate = new efl_ui_layout_automatic_theme_rotation_get_delegate(automatic_theme_rotation_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutomaticThemeRotation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_layout_automatic_theme_rotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_automatic_theme_rotation_get_static_delegate)}); - if (efl_ui_layout_automatic_theme_rotation_set_static_delegate == null) - efl_ui_layout_automatic_theme_rotation_set_static_delegate = new efl_ui_layout_automatic_theme_rotation_set_delegate(automatic_theme_rotation_set); - if (methods.FirstOrDefault(m => m.Name == "SetAutomaticThemeRotation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_layout_automatic_theme_rotation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_automatic_theme_rotation_set_static_delegate)}); - if (efl_ui_layout_theme_rotation_apply_static_delegate == null) - efl_ui_layout_theme_rotation_apply_static_delegate = new efl_ui_layout_theme_rotation_apply_delegate(theme_rotation_apply); - if (methods.FirstOrDefault(m => m.Name == "ThemeRotationApply") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_layout_theme_rotation_apply"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_theme_rotation_apply_static_delegate)}); - if (efl_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - if (efl_layout_calc_auto_update_hints_get_static_delegate == null) - efl_layout_calc_auto_update_hints_get_static_delegate = new efl_layout_calc_auto_update_hints_get_delegate(calc_auto_update_hints_get); - if (methods.FirstOrDefault(m => m.Name == "GetCalcAutoUpdateHints") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_auto_update_hints_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_get_static_delegate)}); - if (efl_layout_calc_auto_update_hints_set_static_delegate == null) - efl_layout_calc_auto_update_hints_set_static_delegate = new efl_layout_calc_auto_update_hints_set_delegate(calc_auto_update_hints_set); - if (methods.FirstOrDefault(m => m.Name == "SetCalcAutoUpdateHints") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_auto_update_hints_set"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_set_static_delegate)}); - if (efl_layout_calc_size_min_static_delegate == null) - efl_layout_calc_size_min_static_delegate = new efl_layout_calc_size_min_delegate(calc_size_min); - if (methods.FirstOrDefault(m => m.Name == "CalcSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_size_min"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_size_min_static_delegate)}); - if (efl_layout_calc_parts_extends_static_delegate == null) - efl_layout_calc_parts_extends_static_delegate = new efl_layout_calc_parts_extends_delegate(calc_parts_extends); - if (methods.FirstOrDefault(m => m.Name == "CalcPartsExtends") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_parts_extends"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_parts_extends_static_delegate)}); - if (efl_layout_calc_freeze_static_delegate == null) - efl_layout_calc_freeze_static_delegate = new efl_layout_calc_freeze_delegate(calc_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeCalc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_freeze_static_delegate)}); - if (efl_layout_calc_thaw_static_delegate == null) - efl_layout_calc_thaw_static_delegate = new efl_layout_calc_thaw_delegate(calc_thaw); - if (methods.FirstOrDefault(m => m.Name == "ThawCalc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_thaw"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_thaw_static_delegate)}); - if (efl_layout_calc_force_static_delegate == null) - efl_layout_calc_force_static_delegate = new efl_layout_calc_force_delegate(calc_force); - if (methods.FirstOrDefault(m => m.Name == "CalcForce") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_calc_force"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_force_static_delegate)}); - if (efl_layout_group_size_min_get_static_delegate == null) - efl_layout_group_size_min_get_static_delegate = new efl_layout_group_size_min_get_delegate(group_size_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_min_get_static_delegate)}); - if (efl_layout_group_size_max_get_static_delegate == null) - efl_layout_group_size_max_get_static_delegate = new efl_layout_group_size_max_get_delegate(group_size_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_max_get_static_delegate)}); - if (efl_layout_group_data_get_static_delegate == null) - efl_layout_group_data_get_static_delegate = new efl_layout_group_data_get_delegate(group_data_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_data_get_static_delegate)}); - if (efl_layout_group_part_exist_get_static_delegate == null) - efl_layout_group_part_exist_get_static_delegate = new efl_layout_group_part_exist_get_delegate(part_exist_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartExist") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_group_part_exist_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_part_exist_get_static_delegate)}); - if (efl_layout_signal_message_send_static_delegate == null) - efl_layout_signal_message_send_static_delegate = new efl_layout_signal_message_send_delegate(message_send); - if (methods.FirstOrDefault(m => m.Name == "MessageSend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_message_send"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_message_send_static_delegate)}); - if (efl_layout_signal_callback_add_static_delegate == null) - efl_layout_signal_callback_add_static_delegate = new efl_layout_signal_callback_add_delegate(signal_callback_add); - if (methods.FirstOrDefault(m => m.Name == "AddSignalCallback") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_callback_add"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_add_static_delegate)}); - if (efl_layout_signal_callback_del_static_delegate == null) - efl_layout_signal_callback_del_static_delegate = new efl_layout_signal_callback_del_delegate(signal_callback_del); - if (methods.FirstOrDefault(m => m.Name == "DelSignalCallback") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_callback_del"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_del_static_delegate)}); - if (efl_layout_signal_emit_static_delegate == null) - efl_layout_signal_emit_static_delegate = new efl_layout_signal_emit_delegate(signal_emit); - if (methods.FirstOrDefault(m => m.Name == "EmitSignal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_emit"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_emit_static_delegate)}); - if (efl_layout_signal_process_static_delegate == null) - efl_layout_signal_process_static_delegate = new efl_layout_signal_process_delegate(signal_process); - if (methods.FirstOrDefault(m => m.Name == "SignalProcess") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_layout_signal_process"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_process_static_delegate)}); - if (efl_ui_factory_bind_static_delegate == null) - efl_ui_factory_bind_static_delegate = new efl_ui_factory_bind_delegate(factory_bind); - if (methods.FirstOrDefault(m => m.Name == "FactoryBind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_factory_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_bind_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.LayoutBase.efl_ui_layout_base_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.LayoutBase.efl_ui_layout_base_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_layout_theme_get_static_delegate == null) + { + efl_ui_layout_theme_get_static_delegate = new efl_ui_layout_theme_get_delegate(theme_get); + } - private delegate void efl_ui_layout_theme_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String style); + if (methods.FirstOrDefault(m => m.Name == "GetTheme") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_theme_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_theme_get_static_delegate) }); + } + if (efl_ui_layout_theme_set_static_delegate == null) + { + efl_ui_layout_theme_set_static_delegate = new efl_ui_layout_theme_set_delegate(theme_set); + } - public delegate void efl_ui_layout_theme_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String style); - public static Efl.Eo.FunctionWrapper efl_ui_layout_theme_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_layout_theme_get"); - private static void theme_get(System.IntPtr obj, System.IntPtr pd, out System.String klass, out System.String group, out System.String style) - { - Eina.Log.Debug("function efl_ui_layout_theme_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_klass = default(System.String); + if (methods.FirstOrDefault(m => m.Name == "SetTheme") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_theme_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_theme_set_static_delegate) }); + } + + if (efl_ui_layout_automatic_theme_rotation_get_static_delegate == null) + { + efl_ui_layout_automatic_theme_rotation_get_static_delegate = new efl_ui_layout_automatic_theme_rotation_get_delegate(automatic_theme_rotation_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAutomaticThemeRotation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_automatic_theme_rotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_automatic_theme_rotation_get_static_delegate) }); + } + + if (efl_ui_layout_automatic_theme_rotation_set_static_delegate == null) + { + efl_ui_layout_automatic_theme_rotation_set_static_delegate = new efl_ui_layout_automatic_theme_rotation_set_delegate(automatic_theme_rotation_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAutomaticThemeRotation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_automatic_theme_rotation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_automatic_theme_rotation_set_static_delegate) }); + } + + if (efl_ui_layout_theme_rotation_apply_static_delegate == null) + { + efl_ui_layout_theme_rotation_apply_static_delegate = new efl_ui_layout_theme_rotation_apply_delegate(theme_rotation_apply); + } + + if (methods.FirstOrDefault(m => m.Name == "ThemeRotationApply") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_theme_rotation_apply"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_theme_rotation_apply_static_delegate) }); + } + + if (efl_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } + + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } + + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } + + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); + } + + if (efl_layout_calc_auto_update_hints_get_static_delegate == null) + { + efl_layout_calc_auto_update_hints_get_static_delegate = new efl_layout_calc_auto_update_hints_get_delegate(calc_auto_update_hints_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCalcAutoUpdateHints") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_auto_update_hints_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_get_static_delegate) }); + } + + if (efl_layout_calc_auto_update_hints_set_static_delegate == null) + { + efl_layout_calc_auto_update_hints_set_static_delegate = new efl_layout_calc_auto_update_hints_set_delegate(calc_auto_update_hints_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCalcAutoUpdateHints") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_auto_update_hints_set"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_auto_update_hints_set_static_delegate) }); + } + + if (efl_layout_calc_size_min_static_delegate == null) + { + efl_layout_calc_size_min_static_delegate = new efl_layout_calc_size_min_delegate(calc_size_min); + } + + if (methods.FirstOrDefault(m => m.Name == "CalcSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_size_min"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_size_min_static_delegate) }); + } + + if (efl_layout_calc_parts_extends_static_delegate == null) + { + efl_layout_calc_parts_extends_static_delegate = new efl_layout_calc_parts_extends_delegate(calc_parts_extends); + } + + if (methods.FirstOrDefault(m => m.Name == "CalcPartsExtends") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_parts_extends"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_parts_extends_static_delegate) }); + } + + if (efl_layout_calc_freeze_static_delegate == null) + { + efl_layout_calc_freeze_static_delegate = new efl_layout_calc_freeze_delegate(calc_freeze); + } + + if (methods.FirstOrDefault(m => m.Name == "FreezeCalc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_freeze_static_delegate) }); + } + + if (efl_layout_calc_thaw_static_delegate == null) + { + efl_layout_calc_thaw_static_delegate = new efl_layout_calc_thaw_delegate(calc_thaw); + } + + if (methods.FirstOrDefault(m => m.Name == "ThawCalc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_thaw"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_thaw_static_delegate) }); + } + + if (efl_layout_calc_force_static_delegate == null) + { + efl_layout_calc_force_static_delegate = new efl_layout_calc_force_delegate(calc_force); + } + + if (methods.FirstOrDefault(m => m.Name == "CalcForce") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_calc_force"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_calc_force_static_delegate) }); + } + + if (efl_layout_group_size_min_get_static_delegate == null) + { + efl_layout_group_size_min_get_static_delegate = new efl_layout_group_size_min_get_delegate(group_size_min_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_size_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_min_get_static_delegate) }); + } + + if (efl_layout_group_size_max_get_static_delegate == null) + { + efl_layout_group_size_max_get_static_delegate = new efl_layout_group_size_max_get_delegate(group_size_max_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGroupSizeMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_size_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_size_max_get_static_delegate) }); + } + + if (efl_layout_group_data_get_static_delegate == null) + { + efl_layout_group_data_get_static_delegate = new efl_layout_group_data_get_delegate(group_data_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGroupData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_data_get_static_delegate) }); + } + + if (efl_layout_group_part_exist_get_static_delegate == null) + { + efl_layout_group_part_exist_get_static_delegate = new efl_layout_group_part_exist_get_delegate(part_exist_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPartExist") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_group_part_exist_get"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_group_part_exist_get_static_delegate) }); + } + + if (efl_layout_signal_message_send_static_delegate == null) + { + efl_layout_signal_message_send_static_delegate = new efl_layout_signal_message_send_delegate(message_send); + } + + if (methods.FirstOrDefault(m => m.Name == "MessageSend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_message_send"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_message_send_static_delegate) }); + } + + if (efl_layout_signal_callback_add_static_delegate == null) + { + efl_layout_signal_callback_add_static_delegate = new efl_layout_signal_callback_add_delegate(signal_callback_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddSignalCallback") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_callback_add"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_add_static_delegate) }); + } + + if (efl_layout_signal_callback_del_static_delegate == null) + { + efl_layout_signal_callback_del_static_delegate = new efl_layout_signal_callback_del_delegate(signal_callback_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelSignalCallback") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_callback_del"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_callback_del_static_delegate) }); + } + + if (efl_layout_signal_emit_static_delegate == null) + { + efl_layout_signal_emit_static_delegate = new efl_layout_signal_emit_delegate(signal_emit); + } + + if (methods.FirstOrDefault(m => m.Name == "EmitSignal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_emit"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_emit_static_delegate) }); + } + + if (efl_layout_signal_process_static_delegate == null) + { + efl_layout_signal_process_static_delegate = new efl_layout_signal_process_delegate(signal_process); + } + + if (methods.FirstOrDefault(m => m.Name == "SignalProcess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_process"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_process_static_delegate) }); + } + + if (efl_ui_factory_bind_static_delegate == null) + { + efl_ui_factory_bind_static_delegate = new efl_ui_factory_bind_delegate(factory_bind); + } + + if (methods.FirstOrDefault(m => m.Name == "FactoryBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_bind_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.LayoutBase.efl_ui_layout_base_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_ui_layout_theme_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String style); + + + public delegate void efl_ui_layout_theme_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String style); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_theme_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_theme_get"); + + private static void theme_get(System.IntPtr obj, System.IntPtr pd, out System.String klass, out System.String group, out System.String style) + { + Eina.Log.Debug("function efl_ui_layout_theme_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_klass = default(System.String); System.String _out_group = default(System.String); System.String _out_style = default(System.String); - try { - ((LayoutBase)wrapper).GetTheme( out _out_klass, out _out_group, out _out_style); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((LayoutBase)wrapper).GetTheme(out _out_klass, out _out_group, out _out_style); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + klass = _out_klass; group = _out_group; style = _out_style; - } else { - efl_ui_layout_theme_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out klass, out group, out style); + + } + else + { + efl_ui_layout_theme_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out klass, out group, out style); + } } - } - private static efl_ui_layout_theme_get_delegate efl_ui_layout_theme_get_static_delegate; + private static efl_ui_layout_theme_get_delegate efl_ui_layout_theme_get_static_delegate; - private delegate Eina.Error efl_ui_layout_theme_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + + private delegate Eina.Error efl_ui_layout_theme_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + + public delegate Eina.Error efl_ui_layout_theme_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_theme_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_theme_set"); + + private static Eina.Error theme_set(System.IntPtr obj, System.IntPtr pd, System.String klass, System.String group, System.String style) + { + Eina.Log.Debug("function efl_ui_layout_theme_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((LayoutBase)wrapper).SetTheme(klass, group, style); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Error efl_ui_layout_theme_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); - public static Efl.Eo.FunctionWrapper efl_ui_layout_theme_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_layout_theme_set"); - private static Eina.Error theme_set(System.IntPtr obj, System.IntPtr pd, System.String klass, System.String group, System.String style) - { - Eina.Log.Debug("function efl_ui_layout_theme_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((LayoutBase)wrapper).SetTheme( klass, group, style); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_layout_theme_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, group, style); + + } + else + { + return efl_ui_layout_theme_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, group, style); + } } - } - private static efl_ui_layout_theme_set_delegate efl_ui_layout_theme_set_static_delegate; + private static efl_ui_layout_theme_set_delegate efl_ui_layout_theme_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_layout_automatic_theme_rotation_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_layout_automatic_theme_rotation_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_layout_automatic_theme_rotation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_automatic_theme_rotation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_automatic_theme_rotation_get"); + + private static bool automatic_theme_rotation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_layout_automatic_theme_rotation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutBase)wrapper).GetAutomaticThemeRotation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_layout_automatic_theme_rotation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_layout_automatic_theme_rotation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_layout_automatic_theme_rotation_get"); - private static bool automatic_theme_rotation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_layout_automatic_theme_rotation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutBase)wrapper).GetAutomaticThemeRotation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_layout_automatic_theme_rotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_layout_automatic_theme_rotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_layout_automatic_theme_rotation_get_delegate efl_ui_layout_automatic_theme_rotation_get_static_delegate; + private static efl_ui_layout_automatic_theme_rotation_get_delegate efl_ui_layout_automatic_theme_rotation_get_static_delegate; - private delegate void efl_ui_layout_automatic_theme_rotation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + + private delegate void efl_ui_layout_automatic_theme_rotation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + + public delegate void efl_ui_layout_automatic_theme_rotation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); - public delegate void efl_ui_layout_automatic_theme_rotation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); - public static Efl.Eo.FunctionWrapper efl_ui_layout_automatic_theme_rotation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_layout_automatic_theme_rotation_set"); - private static void automatic_theme_rotation_set(System.IntPtr obj, System.IntPtr pd, bool automatic) - { - Eina.Log.Debug("function efl_ui_layout_automatic_theme_rotation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutBase)wrapper).SetAutomaticThemeRotation( automatic); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_layout_automatic_theme_rotation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); + public static Efl.Eo.FunctionWrapper efl_ui_layout_automatic_theme_rotation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_automatic_theme_rotation_set"); + + private static void automatic_theme_rotation_set(System.IntPtr obj, System.IntPtr pd, bool automatic) + { + Eina.Log.Debug("function efl_ui_layout_automatic_theme_rotation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutBase)wrapper).SetAutomaticThemeRotation(automatic); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_layout_automatic_theme_rotation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); + } } - } - private static efl_ui_layout_automatic_theme_rotation_set_delegate efl_ui_layout_automatic_theme_rotation_set_static_delegate; + private static efl_ui_layout_automatic_theme_rotation_set_delegate efl_ui_layout_automatic_theme_rotation_set_static_delegate; - private delegate void efl_ui_layout_theme_rotation_apply_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Orient orientation); + + private delegate void efl_ui_layout_theme_rotation_apply_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Orient orientation); + + public delegate void efl_ui_layout_theme_rotation_apply_api_delegate(System.IntPtr obj, Efl.Orient orientation); - public delegate void efl_ui_layout_theme_rotation_apply_api_delegate(System.IntPtr obj, Efl.Orient orientation); - public static Efl.Eo.FunctionWrapper efl_ui_layout_theme_rotation_apply_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_layout_theme_rotation_apply"); - private static void theme_rotation_apply(System.IntPtr obj, System.IntPtr pd, Efl.Orient orientation) - { - Eina.Log.Debug("function efl_ui_layout_theme_rotation_apply was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutBase)wrapper).ThemeRotationApply( orientation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_layout_theme_rotation_apply_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), orientation); + public static Efl.Eo.FunctionWrapper efl_ui_layout_theme_rotation_apply_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_theme_rotation_apply"); + + private static void theme_rotation_apply(System.IntPtr obj, System.IntPtr pd, Efl.Orient orientation) + { + Eina.Log.Debug("function efl_ui_layout_theme_rotation_apply was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutBase)wrapper).ThemeRotationApply(orientation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_layout_theme_rotation_apply_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), orientation); + } } - } - private static efl_ui_layout_theme_rotation_apply_delegate efl_ui_layout_theme_rotation_apply_static_delegate; + private static efl_ui_layout_theme_rotation_apply_delegate efl_ui_layout_theme_rotation_apply_static_delegate; - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((LayoutBase)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((LayoutBase)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutBase)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutBase)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_count_delegate efl_content_count_static_delegate; + private static efl_content_count_delegate efl_content_count_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_calc_auto_update_hints_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_calc_auto_update_hints_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_calc_auto_update_hints_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_auto_update_hints_get"); + + private static bool calc_auto_update_hints_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_auto_update_hints_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutBase)wrapper).GetCalcAutoUpdateHints(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_calc_auto_update_hints_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_auto_update_hints_get"); - private static bool calc_auto_update_hints_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_auto_update_hints_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutBase)wrapper).GetCalcAutoUpdateHints(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_layout_calc_auto_update_hints_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_auto_update_hints_get_delegate efl_layout_calc_auto_update_hints_get_static_delegate; + private static efl_layout_calc_auto_update_hints_get_delegate efl_layout_calc_auto_update_hints_get_static_delegate; - private delegate void efl_layout_calc_auto_update_hints_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool update); + + private delegate void efl_layout_calc_auto_update_hints_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool update); + + public delegate void efl_layout_calc_auto_update_hints_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool update); - public delegate void efl_layout_calc_auto_update_hints_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool update); - public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_auto_update_hints_set"); - private static void calc_auto_update_hints_set(System.IntPtr obj, System.IntPtr pd, bool update) - { - Eina.Log.Debug("function efl_layout_calc_auto_update_hints_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutBase)wrapper).SetCalcAutoUpdateHints( update); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), update); + public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_auto_update_hints_set"); + + private static void calc_auto_update_hints_set(System.IntPtr obj, System.IntPtr pd, bool update) + { + Eina.Log.Debug("function efl_layout_calc_auto_update_hints_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutBase)wrapper).SetCalcAutoUpdateHints(update); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_calc_auto_update_hints_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), update); + } } - } - private static efl_layout_calc_auto_update_hints_set_delegate efl_layout_calc_auto_update_hints_set_static_delegate; + private static efl_layout_calc_auto_update_hints_set_delegate efl_layout_calc_auto_update_hints_set_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted); + + private delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted); + + public delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct restricted); - public delegate Eina.Size2D.NativeStruct efl_layout_calc_size_min_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct restricted); - public static Efl.Eo.FunctionWrapper efl_layout_calc_size_min_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_size_min"); - private static Eina.Size2D.NativeStruct calc_size_min(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted) - { - Eina.Log.Debug("function efl_layout_calc_size_min was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_restricted = restricted; + public static Efl.Eo.FunctionWrapper efl_layout_calc_size_min_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_size_min"); + + private static Eina.Size2D.NativeStruct calc_size_min(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted) + { + Eina.Log.Debug("function efl_layout_calc_size_min was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_restricted = restricted; Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((LayoutBase)wrapper).CalcSizeMin( _in_restricted); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((LayoutBase)wrapper).CalcSizeMin(_in_restricted); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_calc_size_min_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), restricted); + + } + else + { + return efl_layout_calc_size_min_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), restricted); + } } - } - private static efl_layout_calc_size_min_delegate efl_layout_calc_size_min_static_delegate; + private static efl_layout_calc_size_min_delegate efl_layout_calc_size_min_static_delegate; - private delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_parts_extends_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_parts_extends"); + + private static Eina.Rect.NativeStruct calc_parts_extends(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_parts_extends was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((LayoutBase)wrapper).CalcPartsExtends(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Rect.NativeStruct efl_layout_calc_parts_extends_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_parts_extends_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_parts_extends"); - private static Eina.Rect.NativeStruct calc_parts_extends(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_parts_extends was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((LayoutBase)wrapper).CalcPartsExtends(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_layout_calc_parts_extends_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_layout_calc_parts_extends_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_parts_extends_delegate efl_layout_calc_parts_extends_static_delegate; + private static efl_layout_calc_parts_extends_delegate efl_layout_calc_parts_extends_static_delegate; - private delegate int efl_layout_calc_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_layout_calc_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_layout_calc_freeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_freeze"); + + private static int calc_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutBase)wrapper).FreezeCalc(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_layout_calc_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_freeze"); - private static int calc_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutBase)wrapper).FreezeCalc(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_layout_calc_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_layout_calc_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_freeze_delegate efl_layout_calc_freeze_static_delegate; + private static efl_layout_calc_freeze_delegate efl_layout_calc_freeze_static_delegate; - private delegate int efl_layout_calc_thaw_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_layout_calc_thaw_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_layout_calc_thaw_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_thaw_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_thaw"); + + private static int calc_thaw(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_thaw was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutBase)wrapper).ThawCalc(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate int efl_layout_calc_thaw_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_thaw_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_thaw"); - private static int calc_thaw(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_thaw was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutBase)wrapper).ThawCalc(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_layout_calc_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_layout_calc_thaw_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_thaw_delegate efl_layout_calc_thaw_static_delegate; + private static efl_layout_calc_thaw_delegate efl_layout_calc_thaw_static_delegate; - private delegate void efl_layout_calc_force_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_layout_calc_force_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_layout_calc_force_api_delegate(System.IntPtr obj); - public delegate void efl_layout_calc_force_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_force_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_calc_force"); - private static void calc_force(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_calc_force was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutBase)wrapper).CalcForce(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_calc_force_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + public static Efl.Eo.FunctionWrapper efl_layout_calc_force_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_force"); + + private static void calc_force(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_calc_force was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutBase)wrapper).CalcForce(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_calc_force_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_calc_force_delegate efl_layout_calc_force_static_delegate; + private static efl_layout_calc_force_delegate efl_layout_calc_force_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_group_size_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_size_min_get"); + + private static Eina.Size2D.NativeStruct group_size_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_group_size_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((LayoutBase)wrapper).GetGroupSizeMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Size2D.NativeStruct efl_layout_group_size_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_group_size_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_size_min_get"); - private static Eina.Size2D.NativeStruct group_size_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_group_size_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((LayoutBase)wrapper).GetGroupSizeMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_layout_group_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_layout_group_size_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_group_size_min_get_delegate efl_layout_group_size_min_get_static_delegate; + private static efl_layout_group_size_min_get_delegate efl_layout_group_size_min_get_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_group_size_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_size_max_get"); + + private static Eina.Size2D.NativeStruct group_size_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_layout_group_size_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((LayoutBase)wrapper).GetGroupSizeMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Size2D.NativeStruct efl_layout_group_size_max_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_group_size_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_size_max_get"); - private static Eina.Size2D.NativeStruct group_size_max_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_layout_group_size_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((LayoutBase)wrapper).GetGroupSizeMax(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_layout_group_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_layout_group_size_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_layout_group_size_max_get_delegate efl_layout_group_size_max_get_static_delegate; + private static efl_layout_group_size_max_get_delegate efl_layout_group_size_max_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_layout_group_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_layout_group_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_layout_group_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_layout_group_data_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_data_get"); + + private static System.String group_data_get(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_layout_group_data_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutBase)wrapper).GetGroupData(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_layout_group_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_layout_group_data_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_data_get"); - private static System.String group_data_get(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_layout_group_data_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutBase)wrapper).GetGroupData( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_layout_group_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + + } + else + { + return efl_layout_group_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } } - } - private static efl_layout_group_data_get_delegate efl_layout_group_data_get_static_delegate; + private static efl_layout_group_data_get_delegate efl_layout_group_data_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_group_part_exist_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_group_part_exist_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_group_part_exist_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + public static Efl.Eo.FunctionWrapper efl_layout_group_part_exist_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_group_part_exist_get"); + + private static bool part_exist_get(System.IntPtr obj, System.IntPtr pd, System.String part) + { + Eina.Log.Debug("function efl_layout_group_part_exist_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutBase)wrapper).GetPartExist(part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_group_part_exist_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_layout_group_part_exist_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_group_part_exist_get"); - private static bool part_exist_get(System.IntPtr obj, System.IntPtr pd, System.String part) - { - Eina.Log.Debug("function efl_layout_group_part_exist_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutBase)wrapper).GetPartExist( part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_layout_group_part_exist_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + + } + else + { + return efl_layout_group_part_exist_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + } } - } - private static efl_layout_group_part_exist_get_delegate efl_layout_group_part_exist_get_static_delegate; + private static efl_layout_group_part_exist_get_delegate efl_layout_group_part_exist_get_static_delegate; - private delegate void efl_layout_signal_message_send_delegate(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg); + + private delegate void efl_layout_signal_message_send_delegate(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg); + + public delegate void efl_layout_signal_message_send_api_delegate(System.IntPtr obj, int id, Eina.ValueNative msg); - public delegate void efl_layout_signal_message_send_api_delegate(System.IntPtr obj, int id, Eina.ValueNative msg); - public static Efl.Eo.FunctionWrapper efl_layout_signal_message_send_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_message_send"); - private static void message_send(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg) - { - Eina.Log.Debug("function efl_layout_signal_message_send was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutBase)wrapper).MessageSend( id, msg); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_signal_message_send_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id, msg); + public static Efl.Eo.FunctionWrapper efl_layout_signal_message_send_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_message_send"); + + private static void message_send(System.IntPtr obj, System.IntPtr pd, int id, Eina.ValueNative msg) + { + Eina.Log.Debug("function efl_layout_signal_message_send was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutBase)wrapper).MessageSend(id, msg); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_message_send_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id, msg); + } } - } - private static efl_layout_signal_message_send_delegate efl_layout_signal_message_send_static_delegate; + private static efl_layout_signal_message_send_delegate efl_layout_signal_message_send_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_signal_callback_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_signal_callback_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_signal_callback_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_signal_callback_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_callback_add"); - private static bool signal_callback_add(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_layout_signal_callback_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); + public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_callback_add"); + + private static bool signal_callback_add(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_layout_signal_callback_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); bool _ret_var = default(bool); - try { - _ret_var = ((LayoutBase)wrapper).AddSignalCallback( emission, source, func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((LayoutBase)wrapper).AddSignalCallback(emission, source, func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_signal_callback_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + + } + else + { + return efl_layout_signal_callback_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + } } - } - private static efl_layout_signal_callback_add_delegate efl_layout_signal_callback_add_static_delegate; + private static efl_layout_signal_callback_add_delegate efl_layout_signal_callback_add_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_layout_signal_callback_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_signal_callback_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_signal_callback_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_layout_signal_callback_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_callback_del"); - private static bool signal_callback_del(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_layout_signal_callback_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); + public static Efl.Eo.FunctionWrapper efl_layout_signal_callback_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_callback_del"); + + private static bool signal_callback_del(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source, IntPtr func_data, EflLayoutSignalCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_layout_signal_callback_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + EflLayoutSignalCbWrapper func_wrapper = new EflLayoutSignalCbWrapper(func, func_data, func_free_cb); bool _ret_var = default(bool); - try { - _ret_var = ((LayoutBase)wrapper).DelSignalCallback( emission, source, func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((LayoutBase)wrapper).DelSignalCallback(emission, source, func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_layout_signal_callback_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + + } + else + { + return efl_layout_signal_callback_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source, func_data, func, func_free_cb); + } } - } - private static efl_layout_signal_callback_del_delegate efl_layout_signal_callback_del_static_delegate; + private static efl_layout_signal_callback_del_delegate efl_layout_signal_callback_del_static_delegate; - private delegate void efl_layout_signal_emit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); + + private delegate void efl_layout_signal_emit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); + + public delegate void efl_layout_signal_emit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); - public delegate void efl_layout_signal_emit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String emission, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source); - public static Efl.Eo.FunctionWrapper efl_layout_signal_emit_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_emit"); - private static void signal_emit(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source) - { - Eina.Log.Debug("function efl_layout_signal_emit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutBase)wrapper).EmitSignal( emission, source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_signal_emit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source); + public static Efl.Eo.FunctionWrapper efl_layout_signal_emit_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_emit"); + + private static void signal_emit(System.IntPtr obj, System.IntPtr pd, System.String emission, System.String source) + { + Eina.Log.Debug("function efl_layout_signal_emit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutBase)wrapper).EmitSignal(emission, source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_emit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), emission, source); + } } - } - private static efl_layout_signal_emit_delegate efl_layout_signal_emit_static_delegate; + private static efl_layout_signal_emit_delegate efl_layout_signal_emit_static_delegate; - private delegate void efl_layout_signal_process_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool recurse); + + private delegate void efl_layout_signal_process_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool recurse); + + public delegate void efl_layout_signal_process_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool recurse); - public delegate void efl_layout_signal_process_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool recurse); - public static Efl.Eo.FunctionWrapper efl_layout_signal_process_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_layout_signal_process"); - private static void signal_process(System.IntPtr obj, System.IntPtr pd, bool recurse) - { - Eina.Log.Debug("function efl_layout_signal_process was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutBase)wrapper).SignalProcess( recurse); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_layout_signal_process_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recurse); + public static Efl.Eo.FunctionWrapper efl_layout_signal_process_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_signal_process"); + + private static void signal_process(System.IntPtr obj, System.IntPtr pd, bool recurse) + { + Eina.Log.Debug("function efl_layout_signal_process was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutBase)wrapper).SignalProcess(recurse); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_layout_signal_process_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), recurse); + } } - } - private static efl_layout_signal_process_delegate efl_layout_signal_process_static_delegate; + private static efl_layout_signal_process_delegate efl_layout_signal_process_static_delegate; - private delegate void efl_ui_factory_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IFactory factory); + + private delegate void efl_ui_factory_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); + + public delegate void efl_ui_factory_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); - public delegate void efl_ui_factory_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IFactory factory); - public static Efl.Eo.FunctionWrapper efl_ui_factory_bind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_factory_bind"); - private static void factory_bind(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.Ui.IFactory factory) - { - Eina.Log.Debug("function efl_ui_factory_bind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutBase)wrapper).FactoryBind( key, factory); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_factory_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, factory); + public static Efl.Eo.FunctionWrapper efl_ui_factory_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_bind"); + + private static void factory_bind(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.Ui.IFactory factory) + { + Eina.Log.Debug("function efl_ui_factory_bind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutBase)wrapper).FactoryBind(key, factory); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_factory_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, factory); + } } - } - private static efl_ui_factory_bind_delegate efl_ui_factory_bind_static_delegate; + + private static efl_ui_factory_bind_delegate efl_ui_factory_bind_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_factory.eo.cs index a1b3534..e523fdb 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_factory.eo.cs @@ -3,122 +3,177 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl Ui Layout Factory class -[LayoutFactoryNativeInherit] +[Efl.Ui.LayoutFactory.NativeMethods] public class LayoutFactory : Efl.Ui.CachingFactory, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutFactory)) - return Efl.Ui.LayoutFactoryNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutFactory)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_layout_factory_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Define the class of the item returned by this factory. See + /// Initializes a new instance of the class. + /// Parent instance. + /// Define the class of the item returned by this factory. See public LayoutFactory(Efl.Object parent - , Type itemClass = null) : - base(efl_ui_layout_factory_class_get(), typeof(LayoutFactory), parent) + , Type itemClass = null) : base(efl_ui_layout_factory_class_get(), typeof(LayoutFactory), parent) { if (Efl.Eo.Globals.ParamHelperCheck(itemClass)) + { SetItemClass(Efl.Eo.Globals.GetParamHelper(itemClass)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutFactory(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutFactory(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutFactory(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// No description supplied. /// The class of the group. /// The group. /// The style to used. - /// - virtual public void ThemeConfig( System.String klass, System.String group, System.String style) { - Efl.Ui.LayoutFactoryNativeInherit.efl_ui_layout_factory_theme_config_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), klass, group, style); + virtual public void ThemeConfig(System.String klass, System.String group, System.String style) { + Efl.Ui.LayoutFactory.NativeMethods.efl_ui_layout_factory_theme_config_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),klass, group, style); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Ui.LayoutFactory.efl_ui_layout_factory_class_get(); } -} -public class LayoutFactoryNativeInherit : Efl.Ui.CachingFactoryNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_layout_factory_theme_config_static_delegate == null) - efl_ui_layout_factory_theme_config_static_delegate = new efl_ui_layout_factory_theme_config_delegate(theme_config); - if (methods.FirstOrDefault(m => m.Name == "ThemeConfig") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_layout_factory_theme_config"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_factory_theme_config_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.LayoutFactory.efl_ui_layout_factory_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.CachingFactory.NativeMethods { - return Efl.Ui.LayoutFactory.efl_ui_layout_factory_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_layout_factory_theme_config_static_delegate == null) + { + efl_ui_layout_factory_theme_config_static_delegate = new efl_ui_layout_factory_theme_config_delegate(theme_config); + } + + if (methods.FirstOrDefault(m => m.Name == "ThemeConfig") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_factory_theme_config"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_factory_theme_config_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.LayoutFactory.efl_ui_layout_factory_class_get(); + } + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_layout_factory_theme_config_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + + private delegate void efl_ui_layout_factory_theme_config_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + + public delegate void efl_ui_layout_factory_theme_config_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); - public delegate void efl_ui_layout_factory_theme_config_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); - public static Efl.Eo.FunctionWrapper efl_ui_layout_factory_theme_config_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_layout_factory_theme_config"); - private static void theme_config(System.IntPtr obj, System.IntPtr pd, System.String klass, System.String group, System.String style) - { - Eina.Log.Debug("function efl_ui_layout_factory_theme_config was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutFactory)wrapper).ThemeConfig( klass, group, style); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_layout_factory_theme_config_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_factory_theme_config"); + + private static void theme_config(System.IntPtr obj, System.IntPtr pd, System.String klass, System.String group, System.String style) + { + Eina.Log.Debug("function efl_ui_layout_factory_theme_config was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutFactory)wrapper).ThemeConfig(klass, group, style); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_layout_factory_theme_config_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, group, style); } - } else { - efl_ui_layout_factory_theme_config_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, group, style); } - } - private static efl_ui_layout_factory_theme_config_delegate efl_ui_layout_factory_theme_config_static_delegate; + + private static efl_ui_layout_factory_theme_config_delegate efl_ui_layout_factory_theme_config_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part.eo.cs index 4de49d3..8683583 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary layout internal part class -[LayoutPartNativeInherit] +[Efl.Ui.LayoutPart.NativeMethods] public class LayoutPart : Efl.Ui.WidgetPart, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPart)) - return Efl.Ui.LayoutPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_layout_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPart(Efl.Object parent= null - ) : - base(efl_ui_layout_part_class_get(), typeof(LayoutPart), parent) + ) : base(efl_ui_layout_part_class_get(), typeof(LayoutPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.LayoutPart.efl_ui_layout_part_class_get(); } -} -public class LayoutPartNativeInherit : Efl.Ui.WidgetPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.LayoutPart.efl_ui_layout_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.WidgetPart.NativeMethods { - return Efl.Ui.LayoutPart.efl_ui_layout_part_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.LayoutPart.efl_ui_layout_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_bg.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_bg.eo.cs index 5242cb3..09e6221 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_bg.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_bg.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary layout internal part background class -[LayoutPartBgNativeInherit] +[Efl.Ui.LayoutPartBg.NativeMethods] public class LayoutPartBg : Efl.Ui.WidgetPartBg, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPartBg)) - return Efl.Ui.LayoutPartBgNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPartBg)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_layout_part_bg_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPartBg(Efl.Object parent= null - ) : - base(efl_ui_layout_part_bg_class_get(), typeof(LayoutPartBg), parent) + ) : base(efl_ui_layout_part_bg_class_get(), typeof(LayoutPartBg), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPartBg(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPartBg(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPartBg(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.LayoutPartBg.efl_ui_layout_part_bg_class_get(); } -} -public class LayoutPartBgNativeInherit : Efl.Ui.WidgetPartBgNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.LayoutPartBg.efl_ui_layout_part_bg_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.WidgetPartBg.NativeMethods { - return Efl.Ui.LayoutPartBg.efl_ui_layout_part_bg_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.LayoutPartBg.efl_ui_layout_part_bg_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_box.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_box.eo.cs index c66fe5e..3963127 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_box.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_box.eo.cs @@ -3,169 +3,210 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Represents a Box created as part of a layout. /// Cannot be deleted. This is only a representation of an internal object of an EFL layout. -[LayoutPartBoxNativeInherit] +[Efl.Ui.LayoutPartBox.NativeMethods] public class LayoutPartBox : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IContainer,Efl.IPack,Efl.IPackLinear,Efl.Ui.IDirection,Efl.Ui.IDirectionReadonly { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPartBox)) - return Efl.Ui.LayoutPartBoxNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPartBox)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_layout_part_box_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPartBox(Efl.Object parent= null - ) : - base(efl_ui_layout_part_box_class_get(), typeof(LayoutPartBox), parent) + ) : base(efl_ui_layout_part_box_class_get(), typeof(LayoutPartBox), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPartBox(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPartBox(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPartBox(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentAddedEvtKey = new object(); + /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Real part property /// Real part object /// Real part name - /// - virtual public void SetRealPart( Efl.Object layout, System.String part) { - Efl.Ui.LayoutPartBoxNativeInherit.efl_ui_layout_part_box_real_part_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), layout, part); + virtual public void SetRealPart(Efl.Object layout, System.String part) { + Efl.Ui.LayoutPartBox.NativeMethods.efl_ui_layout_part_box_real_part_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),layout, part); Eina.Error.RaiseIfUnhandledException(); } /// Begin iterating over this object's contents. /// (Since EFL 1.22) /// Iterator to object content virtual public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -173,48 +214,44 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements virtual public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_horiz, out align_vert); + virtual public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert); + virtual public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pad_horiz, out pad_vert, out scalable); + virtual public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable); + virtual public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise virtual public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -222,15 +259,15 @@ private static object ContentRemovedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise virtual public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - virtual public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -240,8 +277,8 @@ private static object ContentRemovedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - virtual public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -249,21 +286,21 @@ private static object ContentRemovedEvtKey = new object(); /// This is the same as (subobj, 0). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack. - /// false if subobj could not be packed - virtual public bool PackBegin( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// Item to pack at the beginning. + /// false if subobj could not be packed. + virtual public bool PackBegin(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Append object at the end of this container. + /// Append item at the end of this container. /// This is the same as (subobj, -1). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Item to pack at the end. - /// false if subobj could not be packed - virtual public bool PackEnd( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// false if subobj could not be packed. + virtual public bool PackEnd(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -272,8 +309,8 @@ private static object ContentRemovedEvtKey = new object(); /// Item to pack before existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -282,46 +319,54 @@ private static object ContentRemovedEvtKey = new object(); /// Item to pack after existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Inserts subobj at the specified index. - /// Valid range: -count to +count. -1 refers to the last element. Out of range indices will trigger an append. + /// Inserts subobj BEFORE the item at position index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack at given index. - /// A position. + /// Item to pack. + /// Index of item to insert BEFORE. Valid range is -count to (count-1). /// false if subobj could not be packed. - virtual public bool PackAt( Efl.Gfx.IEntity subobj, int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, index); + virtual public bool PackAt(Efl.Gfx.IEntity subobj, int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Content at a given index in this container. - /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1). - /// Index number + /// Content at a given index in this container. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will return the first item whereas index greater than count-1 will return the last item. + /// Index of the item to retrieve. Valid range is -count to (count-1). /// The object contained at the given index. - virtual public Efl.Gfx.IEntity GetPackContent( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity GetPackContent(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the index of a child in this container. /// An object contained in this pack. - /// -1 in case of failure, or the index of this item. - virtual public int GetPackIndex( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// -1 in case subobj is not a child of this object, or the index of this item in the range 0 to (count-1). + virtual public int GetPackIndex(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Pop out item at specified index. - /// Equivalent to unpack(content_at(index)). - /// Index number + /// Pop out (remove) the item at the specified index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will remove the first item whereas index greater than count-1 will remove the last item. + /// + /// Equivalent to ((index)). + /// Index of item to remove. Valid range is -count to (count-1). /// The child item if it could be removed. - virtual public Efl.Gfx.IEntity PackUnpackAt( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -331,7 +376,7 @@ private static object ContentRemovedEvtKey = new object(); /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. virtual public Efl.Ui.Dir GetDirection() { - var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -340,9 +385,8 @@ private static object ContentRemovedEvtKey = new object(); /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. - /// - virtual public void SetDirection( Efl.Ui.Dir dir) { - Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetDirection(Efl.Ui.Dir dir) { + Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// Control the direction of a given widget. @@ -352,632 +396,1001 @@ private static object ContentRemovedEvtKey = new object(); /// Direction of the widget. public Efl.Ui.Dir Direction { get { return GetDirection(); } - set { SetDirection( value); } + set { SetDirection(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.LayoutPartBox.efl_ui_layout_part_box_class_get(); } -} -public class LayoutPartBoxNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_layout_part_box_real_part_set_static_delegate == null) - efl_ui_layout_part_box_real_part_set_static_delegate = new efl_ui_layout_part_box_real_part_set_delegate(real_part_set); - if (methods.FirstOrDefault(m => m.Name == "SetRealPart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_layout_part_box_real_part_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_part_box_real_part_set_static_delegate)}); - if (efl_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - if (efl_pack_begin_static_delegate == null) - efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); - if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate)}); - if (efl_pack_end_static_delegate == null) - efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); - if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate)}); - if (efl_pack_before_static_delegate == null) - efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); - if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate)}); - if (efl_pack_after_static_delegate == null) - efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); - if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate)}); - if (efl_pack_at_static_delegate == null) - efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); - if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate)}); - if (efl_pack_content_get_static_delegate == null) - efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate)}); - if (efl_pack_index_get_static_delegate == null) - efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate)}); - if (efl_pack_unpack_at_static_delegate == null) - efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); - if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate)}); - if (efl_ui_direction_get_static_delegate == null) - efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)}); - if (efl_ui_direction_set_static_delegate == null) - efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.LayoutPartBox.efl_ui_layout_part_box_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.LayoutPartBox.efl_ui_layout_part_box_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_layout_part_box_real_part_set_static_delegate == null) + { + efl_ui_layout_part_box_real_part_set_static_delegate = new efl_ui_layout_part_box_real_part_set_delegate(real_part_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRealPart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_part_box_real_part_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_part_box_real_part_set_static_delegate) }); + } - private delegate void efl_ui_layout_part_box_real_part_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object layout, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + if (efl_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } - public delegate void efl_ui_layout_part_box_real_part_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object layout, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_ui_layout_part_box_real_part_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_layout_part_box_real_part_set"); - private static void real_part_set(System.IntPtr obj, System.IntPtr pd, Efl.Object layout, System.String part) - { - Eina.Log.Debug("function efl_ui_layout_part_box_real_part_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartBox)wrapper).SetRealPart( layout, part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_layout_part_box_real_part_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), layout, part); - } - } - private static efl_ui_layout_part_box_real_part_set_delegate efl_ui_layout_part_box_real_part_set_static_delegate; + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((LayoutPartBox)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); + } - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); + } - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartBox)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_count_delegate efl_content_count_static_delegate; + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((LayoutPartBox)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); + } + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartBox)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); - } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); + } + if (efl_pack_begin_static_delegate == null) + { + efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); + } - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); + } + if (efl_pack_end_static_delegate == null) + { + efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); + } - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((LayoutPartBox)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); - } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); + } + if (efl_pack_before_static_delegate == null) + { + efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); + } + if (efl_pack_after_static_delegate == null) + { + efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartBox)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); - } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); + } + if (efl_pack_at_static_delegate == null) + { + efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); + } + if (efl_pack_content_get_static_delegate == null) + { + efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + if (efl_pack_index_get_static_delegate == null) + { + efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); + } + if (efl_pack_unpack_at_static_delegate == null) + { + efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + if (efl_ui_direction_get_static_delegate == null) + { + efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate) }); + } + if (efl_ui_direction_set_static_delegate == null) + { + efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.LayoutPartBox.efl_ui_layout_part_box_class_get(); } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_ui_layout_part_box_real_part_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object layout, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + + public delegate void efl_ui_layout_part_box_real_part_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object layout, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_part_box_real_part_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_part_box_real_part_set"); + + private static void real_part_set(System.IntPtr obj, System.IntPtr pd, Efl.Object layout, System.String part) + { + Eina.Log.Debug("function efl_ui_layout_part_box_real_part_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartBox)wrapper).SetRealPart(layout, part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_layout_part_box_real_part_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), layout, part); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_ui_layout_part_box_real_part_set_delegate efl_ui_layout_part_box_real_part_set_static_delegate; + + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((LayoutPartBox)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_delegate efl_pack_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartBox)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_begin"); - private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_begin was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).PackBegin( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + private static efl_content_count_delegate efl_content_count_static_delegate; + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((LayoutPartBox)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartBox)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_end"); - private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).PackEnd( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((LayoutPartBox)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); } - return _ret_var; - } else { - return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } - } - private static efl_pack_end_delegate efl_pack_end_static_delegate; + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartBox)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_before"); - private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_before was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).PackBefore( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_before_delegate efl_pack_before_static_delegate; + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_after"); - private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_after was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).PackAfter( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_after_delegate efl_pack_after_static_delegate; + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); + return _ret_var; + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_delegate efl_pack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); + + private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_begin was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackBegin(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_at"); - private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) - { - Eina.Log.Debug("function efl_pack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartBox)wrapper).PackAt( subobj, index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + else + { + return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_at_delegate efl_pack_at_static_delegate; + private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); + + private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackEnd(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + return _ret_var; + + } + else + { + return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + private static efl_pack_end_delegate efl_pack_end_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); + + private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_before was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackBefore(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_content_get"); - private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartBox)wrapper).GetPackContent( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + else + { + return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } } - } - private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + private static efl_pack_before_delegate efl_pack_before_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); + + private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_after was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackAfter(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + return _ret_var; + } + else + { + return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } + + private static efl_pack_after_delegate efl_pack_after_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); + + private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) + { + Eina.Log.Debug("function efl_pack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackAt(subobj, index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_index_get"); - private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_index_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartBox)wrapper).GetPackIndex( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + } } - } - private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + private static efl_pack_at_delegate efl_pack_at_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); + + private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartBox)wrapper).GetPackContent(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + + + private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); + + private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_index_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartBox)wrapper).GetPackIndex(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_at"); - private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_unpack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartBox)wrapper).PackUnpackAt( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); + + private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_unpack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartBox)wrapper).PackUnpackAt(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + + } + else + { + return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } } - } - private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + + private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_get"); + + private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); + try + { + _ret_var = ((LayoutPartBox)wrapper).GetDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_get"); - private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); - try { - _ret_var = ((LayoutPartBox)wrapper).GetDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + + + private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + + public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_set"); + + private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartBox)wrapper).SetDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - return _ret_var; - } else { - return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; - private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_set"); - private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartBox)wrapper).SetDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_content.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_content.eo.cs index 4a9590b..0923279 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_content.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_content.eo.cs @@ -3,248 +3,347 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary layout internal part class -[LayoutPartContentNativeInherit] +[Efl.Ui.LayoutPartContent.NativeMethods] public class LayoutPartContent : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPartContent)) - return Efl.Ui.LayoutPartContentNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPartContent)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_layout_part_content_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPartContent(Efl.Object parent= null - ) : - base(efl_ui_layout_part_content_class_get(), typeof(LayoutPartContent), parent) + ) : base(efl_ui_layout_part_content_class_get(), typeof(LayoutPartContent), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPartContent(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPartContent(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPartContent(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.LayoutPartContent.efl_ui_layout_part_content_class_get(); } -} -public class LayoutPartContentNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.LayoutPartContent.efl_ui_layout_part_content_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.LayoutPartContent.efl_ui_layout_part_content_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartContent)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.LayoutPartContent.efl_ui_layout_part_content_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartContent)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartContent)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartContent)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartContent)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartContent)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_legacy.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_legacy.eo.cs index 8eab061..6aba5cd 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_legacy.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_legacy.eo.cs @@ -3,130 +3,165 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary layout internal part class -[LayoutPartLegacyNativeInherit] +[Efl.Ui.LayoutPartLegacy.NativeMethods] public class LayoutPartLegacy : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IContent,Efl.IText,Efl.ITextMarkup,Efl.Ui.IL10n { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPartLegacy)) - return Efl.Ui.LayoutPartLegacyNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPartLegacy)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_layout_part_legacy_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPartLegacy(Efl.Object parent= null - ) : - base(efl_ui_layout_part_legacy_class_get(), typeof(LayoutPartLegacy), parent) + ) : base(efl_ui_layout_part_legacy_class_get(), typeof(LayoutPartLegacy), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPartLegacy(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPartLegacy(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPartLegacy(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -137,7 +172,7 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -145,23 +180,21 @@ private static object ContentChangedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Markup property /// The markup-text representation set to this text. virtual public System.String GetMarkup() { - var _ret_var = Efl.ITextMarkupNativeInherit.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Markup property /// The markup-text representation set to this text. - /// - virtual public void SetMarkup( System.String markup) { - Efl.ITextMarkupNativeInherit.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), markup); + virtual public void SetMarkup(System.String markup) { + Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),markup); Eina.Error.RaiseIfUnhandledException(); } /// A unique string to be translated. @@ -170,350 +203,531 @@ private static object ContentChangedEvtKey = new object(); /// Setting this property will enable translation for this object or part. /// A translation domain. If null this means the default domain is used. /// This returns the untranslated value of label. The translated string can usually be retrieved with . - virtual public System.String GetL10nText( out System.String domain) { - var _ret_var = Efl.Ui.IL10nNativeInherit.efl_ui_l10n_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out domain); + virtual public System.String GetL10nText(out System.String domain) { + var _ret_var = Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out domain); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the new untranslated string and domain for this object. /// A unique (untranslated) string. /// A translation domain. If null this uses the default domain (eg. set by textdomain()). - /// - virtual public void SetL10nText( System.String label, System.String domain) { - Efl.Ui.IL10nNativeInherit.efl_ui_l10n_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), label, domain); + virtual public void SetL10nText(System.String label, System.String domain) { + Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),label, domain); Eina.Error.RaiseIfUnhandledException(); } /// Requests this object to update its text strings for the current locale. /// Currently strings are translated with dgettext, so support for this function may depend on the platform. It is up to the application to provide its own translation data. /// /// This function is a hook meant to be implemented by any object that supports translation. This can be called whenever a new object is created or when the current locale changes, for instance. This should only trigger further calls to to children objects. - /// virtual public void UpdateTranslation() { - Efl.Ui.IL10nNativeInherit.efl_ui_l10n_translation_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_translation_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// Markup property /// The markup-text representation set to this text. public System.String Markup { get { return GetMarkup(); } - set { SetMarkup( value); } + set { SetMarkup(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.LayoutPartLegacy.efl_ui_layout_part_legacy_class_get(); } -} -public class LayoutPartLegacyNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_text_markup_get_static_delegate == null) - efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); - if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate)}); - if (efl_text_markup_set_static_delegate == null) - efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); - if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate)}); - if (efl_ui_l10n_text_get_static_delegate == null) - efl_ui_l10n_text_get_static_delegate = new efl_ui_l10n_text_get_delegate(l10n_text_get); - if (methods.FirstOrDefault(m => m.Name == "GetL10nText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_get_static_delegate)}); - if (efl_ui_l10n_text_set_static_delegate == null) - efl_ui_l10n_text_set_static_delegate = new efl_ui_l10n_text_set_delegate(l10n_text_set); - if (methods.FirstOrDefault(m => m.Name == "SetL10nText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_set_static_delegate)}); - if (efl_ui_l10n_translation_update_static_delegate == null) - efl_ui_l10n_translation_update_static_delegate = new efl_ui_l10n_translation_update_delegate(translation_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateTranslation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_translation_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_translation_update_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.LayoutPartLegacy.efl_ui_layout_part_legacy_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.LayoutPartLegacy.efl_ui_layout_part_legacy_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartLegacy)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartLegacy)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_markup_get_static_delegate == null) + { + efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartLegacy)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_markup_set_static_delegate == null) + { + efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); } - return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_l10n_text_get_static_delegate == null) + { + efl_ui_l10n_text_get_static_delegate = new efl_ui_l10n_text_get_delegate(l10n_text_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetL10nText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartLegacy)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_l10n_text_set_static_delegate == null) + { + efl_ui_l10n_text_set_static_delegate = new efl_ui_l10n_text_set_delegate(l10n_text_set); } + + if (methods.FirstOrDefault(m => m.Name == "SetL10nText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_set_static_delegate) }); + } + + if (efl_ui_l10n_translation_update_static_delegate == null) + { + efl_ui_l10n_translation_update_static_delegate = new efl_ui_l10n_translation_update_delegate(translation_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateTranslation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_translation_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_translation_update_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.LayoutPartLegacy.efl_ui_layout_part_legacy_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartLegacy)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartLegacy)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + return _ret_var; + } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartLegacy)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartLegacy)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartLegacy)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_text_get_delegate efl_text_get_static_delegate; + + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartLegacy)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_get"); - private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_markup_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartLegacy)wrapper).GetMarkup(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - return _ret_var; - } else { - return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; + private static efl_text_set_delegate efl_text_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); + + private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_markup_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartLegacy)wrapper).GetMarkup(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + return _ret_var; + } + else + { + return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_set"); - private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartLegacy)wrapper).SetMarkup( markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); + private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; + + + private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + + public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); + + private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartLegacy)wrapper).SetMarkup(markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); + } } - } - private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_l10n_text_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_l10n_text_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_l10n_text_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_l10n_text_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_text_get"); - private static System.String l10n_text_get(System.IntPtr obj, System.IntPtr pd, out System.String domain) - { - Eina.Log.Debug("function efl_ui_l10n_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_domain = default(System.String); + public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_text_get"); + + private static System.String l10n_text_get(System.IntPtr obj, System.IntPtr pd, out System.String domain) + { + Eina.Log.Debug("function efl_ui_l10n_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_domain = default(System.String); System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartLegacy)wrapper).GetL10nText( out _out_domain); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((LayoutPartLegacy)wrapper).GetL10nText(out _out_domain); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + domain = _out_domain; return _ret_var; - } else { - return efl_ui_l10n_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out domain); - } - } - private static efl_ui_l10n_text_get_delegate efl_ui_l10n_text_get_static_delegate; - - private delegate void efl_ui_l10n_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + } + else + { + return efl_ui_l10n_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out domain); + } + } + private static efl_ui_l10n_text_get_delegate efl_ui_l10n_text_get_static_delegate; + + + private delegate void efl_ui_l10n_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + + + public delegate void efl_ui_l10n_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + + public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_text_set"); + + private static void l10n_text_set(System.IntPtr obj, System.IntPtr pd, System.String label, System.String domain) + { + Eina.Log.Debug("function efl_ui_l10n_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartLegacy)wrapper).SetL10nText(label, domain); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_l10n_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), label, domain); + } + } - public delegate void efl_ui_l10n_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_text_set"); - private static void l10n_text_set(System.IntPtr obj, System.IntPtr pd, System.String label, System.String domain) - { - Eina.Log.Debug("function efl_ui_l10n_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartLegacy)wrapper).SetL10nText( label, domain); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_l10n_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), label, domain); + private static efl_ui_l10n_text_set_delegate efl_ui_l10n_text_set_static_delegate; + + + private delegate void efl_ui_l10n_translation_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_l10n_translation_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_l10n_translation_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_translation_update"); + + private static void translation_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_l10n_translation_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartLegacy)wrapper).UpdateTranslation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_l10n_translation_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_l10n_text_set_delegate efl_ui_l10n_text_set_static_delegate; + private static efl_ui_l10n_translation_update_delegate efl_ui_l10n_translation_update_static_delegate; - private delegate void efl_ui_l10n_translation_update_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_l10n_translation_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_translation_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_translation_update"); - private static void translation_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_l10n_translation_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartLegacy)wrapper).UpdateTranslation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_l10n_translation_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_l10n_translation_update_delegate efl_ui_l10n_translation_update_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_table.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_table.eo.cs index 78daaf4..5275b2b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_table.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_table.eo.cs @@ -3,169 +3,210 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Represents a Table created as part of a layout. /// Cannot be deleted. This is only a representation of an internal object of an EFL layout. -[LayoutPartTableNativeInherit] +[Efl.Ui.LayoutPartTable.NativeMethods] public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IContainer,Efl.IPack,Efl.IPackTable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPartTable)) - return Efl.Ui.LayoutPartTableNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPartTable)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_layout_part_table_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPartTable(Efl.Object parent= null - ) : - base(efl_ui_layout_part_table_class_get(), typeof(LayoutPartTable), parent) + ) : base(efl_ui_layout_part_table_class_get(), typeof(LayoutPartTable), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPartTable(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPartTable(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPartTable(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentAddedEvtKey = new object(); + /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Real part property /// Real part object /// Real part name - /// - virtual public void SetRealPart( Efl.Object layout, System.String part) { - Efl.Ui.LayoutPartTableNativeInherit.efl_ui_layout_part_table_real_part_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), layout, part); + virtual public void SetRealPart(Efl.Object layout, System.String part) { + Efl.Ui.LayoutPartTable.NativeMethods.efl_ui_layout_part_table_real_part_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),layout, part); Eina.Error.RaiseIfUnhandledException(); } /// Begin iterating over this object's contents. /// (Since EFL 1.22) /// Iterator to object content virtual public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -173,48 +214,44 @@ private static object ContentRemovedEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements virtual public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_horiz, out align_vert); + virtual public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert); + virtual public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pad_horiz, out pad_vert, out scalable); + virtual public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable); + virtual public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise virtual public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -222,15 +259,15 @@ private static object ContentRemovedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise virtual public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - virtual public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -240,8 +277,8 @@ private static object ContentRemovedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - virtual public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -252,71 +289,65 @@ private static object ContentRemovedEvtKey = new object(); /// Column span /// Row span /// Returns false if item is not a child - virtual public bool GetTablePosition( Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, out col, out row, out colspan, out rowspan); + virtual public bool GetTablePosition(Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, out col, out row, out colspan, out rowspan); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Combines and /// Number of columns /// Number of rows - /// - virtual public void GetTableSize( out int cols, out int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out cols, out rows); + virtual public void GetTableSize(out int cols, out int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out cols, out rows); Eina.Error.RaiseIfUnhandledException(); } /// Combines and /// Number of columns /// Number of rows - /// - virtual public void SetTableSize( int cols, int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cols, rows); + virtual public void SetTableSize(int cols, int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cols, rows); Eina.Error.RaiseIfUnhandledException(); } /// Gird columns property /// Number of columns virtual public int GetTableColumns() { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_columns_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_columns_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies limit for linear adds - if direction is horizontal /// Number of columns - /// - virtual public void SetTableColumns( int cols) { - Efl.IPackTableNativeInherit.efl_pack_table_columns_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cols); + virtual public void SetTableColumns(int cols) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_columns_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cols); Eina.Error.RaiseIfUnhandledException(); } /// Table rows property /// Number of rows virtual public int GetTableRows() { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_rows_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_rows_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies limit for linear adds - if direction is vertical /// Number of rows - /// - virtual public void SetTableRows( int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_rows_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), rows); + virtual public void SetTableRows(int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_rows_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),rows); Eina.Error.RaiseIfUnhandledException(); } /// Primary and secondary up/left/right/down directions for linear apis. /// Default is horizontal and vertical. This overrides . /// Primary direction /// Secondary direction - /// - virtual public void GetTableDirection( out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) { - Efl.IPackTableNativeInherit.efl_pack_table_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out primary, out secondary); + virtual public void GetTableDirection(out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out primary, out secondary); Eina.Error.RaiseIfUnhandledException(); } /// Primary and secondary up/left/right/down directions for linear apis. /// Default is horizontal and vertical. This overrides . /// Primary direction /// Secondary direction - /// - virtual public void SetTableDirection( Efl.Ui.Dir primary, Efl.Ui.Dir secondary) { - Efl.IPackTableNativeInherit.efl_pack_table_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), primary, secondary); + virtual public void SetTableDirection(Efl.Ui.Dir primary, Efl.Ui.Dir secondary) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),primary, secondary); Eina.Error.RaiseIfUnhandledException(); } /// Pack object at a given location in the table. @@ -327,8 +358,8 @@ private static object ContentRemovedEvtKey = new object(); /// 0 means 1, -1 means /// 0 means 1, -1 means /// true on success, false otherwise - virtual public bool PackTable( Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, col, row, colspan, rowspan); + virtual public bool PackTable(Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, col, row, colspan, rowspan); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -337,8 +368,8 @@ private static object ContentRemovedEvtKey = new object(); /// Row number /// If true get objects spanning over this cell. /// Iterator to table contents - virtual public Eina.Iterator GetTableContents( int col, int row, bool below) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_contents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), col, row, below); + virtual public Eina.Iterator GetTableContents(int col, int row, bool below) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_contents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),col, row, below); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -346,8 +377,8 @@ private static object ContentRemovedEvtKey = new object(); /// Column number /// Row number /// Child object - virtual public Efl.Gfx.IEntity GetTableContent( int col, int row) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), col, row); + virtual public Efl.Gfx.IEntity GetTableContent(int col, int row) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),col, row); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -355,691 +386,1094 @@ private static object ContentRemovedEvtKey = new object(); /// Number of columns public int TableColumns { get { return GetTableColumns(); } - set { SetTableColumns( value); } + set { SetTableColumns(value); } } /// Table rows property /// Number of rows public int TableRows { get { return GetTableRows(); } - set { SetTableRows( value); } + set { SetTableRows(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.LayoutPartTable.efl_ui_layout_part_table_class_get(); } -} -public class LayoutPartTableNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_layout_part_table_real_part_set_static_delegate == null) - efl_ui_layout_part_table_real_part_set_static_delegate = new efl_ui_layout_part_table_real_part_set_delegate(real_part_set); - if (methods.FirstOrDefault(m => m.Name == "SetRealPart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_layout_part_table_real_part_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_part_table_real_part_set_static_delegate)}); - if (efl_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - if (efl_pack_table_position_get_static_delegate == null) - efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate)}); - if (efl_pack_table_size_get_static_delegate == null) - efl_pack_table_size_get_static_delegate = new efl_pack_table_size_get_delegate(table_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_get_static_delegate)}); - if (efl_pack_table_size_set_static_delegate == null) - efl_pack_table_size_set_static_delegate = new efl_pack_table_size_set_delegate(table_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_set_static_delegate)}); - if (efl_pack_table_columns_get_static_delegate == null) - efl_pack_table_columns_get_static_delegate = new efl_pack_table_columns_get_delegate(table_columns_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableColumns") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_columns_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_get_static_delegate)}); - if (efl_pack_table_columns_set_static_delegate == null) - efl_pack_table_columns_set_static_delegate = new efl_pack_table_columns_set_delegate(table_columns_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableColumns") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_columns_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_set_static_delegate)}); - if (efl_pack_table_rows_get_static_delegate == null) - efl_pack_table_rows_get_static_delegate = new efl_pack_table_rows_get_delegate(table_rows_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableRows") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_rows_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_get_static_delegate)}); - if (efl_pack_table_rows_set_static_delegate == null) - efl_pack_table_rows_set_static_delegate = new efl_pack_table_rows_set_delegate(table_rows_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableRows") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_rows_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_set_static_delegate)}); - if (efl_pack_table_direction_get_static_delegate == null) - efl_pack_table_direction_get_static_delegate = new efl_pack_table_direction_get_delegate(table_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_get_static_delegate)}); - if (efl_pack_table_direction_set_static_delegate == null) - efl_pack_table_direction_set_static_delegate = new efl_pack_table_direction_set_delegate(table_direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_set_static_delegate)}); - if (efl_pack_table_static_delegate == null) - efl_pack_table_static_delegate = new efl_pack_table_delegate(pack_table); - if (methods.FirstOrDefault(m => m.Name == "PackTable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_static_delegate)}); - if (efl_pack_table_contents_get_static_delegate == null) - efl_pack_table_contents_get_static_delegate = new efl_pack_table_contents_get_delegate(table_contents_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableContents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_contents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_contents_get_static_delegate)}); - if (efl_pack_table_content_get_static_delegate == null) - efl_pack_table_content_get_static_delegate = new efl_pack_table_content_get_delegate(table_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_content_get_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.LayoutPartTable.efl_ui_layout_part_table_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.LayoutPartTable.efl_ui_layout_part_table_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_layout_part_table_real_part_set_static_delegate == null) + { + efl_ui_layout_part_table_real_part_set_static_delegate = new efl_ui_layout_part_table_real_part_set_delegate(real_part_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRealPart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_part_table_real_part_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_part_table_real_part_set_static_delegate) }); + } - private delegate void efl_ui_layout_part_table_real_part_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object layout, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + if (efl_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } - public delegate void efl_ui_layout_part_table_real_part_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object layout, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_ui_layout_part_table_real_part_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_layout_part_table_real_part_set"); - private static void real_part_set(System.IntPtr obj, System.IntPtr pd, Efl.Object layout, System.String part) - { - Eina.Log.Debug("function efl_ui_layout_part_table_real_part_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetRealPart( layout, part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_layout_part_table_real_part_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), layout, part); - } - } - private static efl_ui_layout_part_table_real_part_set_delegate efl_ui_layout_part_table_real_part_set_static_delegate; + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((LayoutPartTable)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); + } - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartTable)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); } - return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_count_delegate efl_content_count_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); + } - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((LayoutPartTable)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); - } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); + } - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + if (efl_pack_table_position_get_static_delegate == null) + { + efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate) }); + } - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((LayoutPartTable)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); - } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + if (efl_pack_table_size_get_static_delegate == null) + { + efl_pack_table_size_get_static_delegate = new efl_pack_table_size_get_delegate(table_size_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTableSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_get_static_delegate) }); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + if (efl_pack_table_size_set_static_delegate == null) + { + efl_pack_table_size_set_static_delegate = new efl_pack_table_size_set_delegate(table_size_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTableSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_set_static_delegate) }); + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); - } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + if (efl_pack_table_columns_get_static_delegate == null) + { + efl_pack_table_columns_get_static_delegate = new efl_pack_table_columns_get_delegate(table_columns_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTableColumns") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_columns_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_table_columns_set_static_delegate == null) + { + efl_pack_table_columns_set_static_delegate = new efl_pack_table_columns_set_delegate(table_columns_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTableColumns") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_columns_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_table_rows_get_static_delegate == null) + { + efl_pack_table_rows_get_static_delegate = new efl_pack_table_rows_get_delegate(table_rows_get); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetTableRows") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_rows_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_table_rows_set_static_delegate == null) + { + efl_pack_table_rows_set_static_delegate = new efl_pack_table_rows_set_delegate(table_rows_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTableRows") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_rows_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_table_direction_get_static_delegate == null) + { + efl_pack_table_direction_get_static_delegate = new efl_pack_table_direction_get_delegate(table_direction_get); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetTableDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (efl_pack_table_direction_set_static_delegate == null) + { + efl_pack_table_direction_set_static_delegate = new efl_pack_table_direction_set_delegate(table_direction_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTableDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_table_static_delegate == null) + { + efl_pack_table_static_delegate = new efl_pack_table_delegate(pack_table); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "PackTable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (efl_pack_table_contents_get_static_delegate == null) + { + efl_pack_table_contents_get_static_delegate = new efl_pack_table_contents_get_delegate(table_contents_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTableContents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_contents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_contents_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_table_content_get_static_delegate == null) + { + efl_pack_table_content_get_static_delegate = new efl_pack_table_content_get_delegate(table_content_get); } - return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + + if (methods.FirstOrDefault(m => m.Name == "GetTableContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_content_get_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.LayoutPartTable.efl_ui_layout_part_table_class_get(); } - } - private static efl_pack_delegate efl_pack_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_ui_layout_part_table_real_part_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object layout, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + + public delegate void efl_ui_layout_part_table_real_part_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object layout, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_part_table_real_part_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_part_table_real_part_set"); + + private static void real_part_set(System.IntPtr obj, System.IntPtr pd, Efl.Object layout, System.String part) + { + Eina.Log.Debug("function efl_ui_layout_part_table_real_part_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetRealPart(layout, part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_layout_part_table_real_part_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), layout, part); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + private static efl_ui_layout_part_table_real_part_set_delegate efl_ui_layout_part_table_real_part_set_static_delegate; + + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((LayoutPartTable)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_position_get"); - private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) - { - Eina.Log.Debug("function efl_pack_table_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).GetTablePosition( subobj, out col, out row, out colspan, out rowspan); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartTable)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); - + return _ret_var; - public delegate void efl_pack_table_size_get_api_delegate(System.IntPtr obj, out int cols, out int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_size_get"); - private static void table_size_get(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows) - { - Eina.Log.Debug("function efl_pack_table_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - cols = default(int); rows = default(int); - try { - ((LayoutPartTable)wrapper).GetTableSize( out cols, out rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cols, out rows); + } + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_size_get_delegate efl_pack_table_size_get_static_delegate; - - private delegate void efl_pack_table_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols, int rows); + private static efl_content_count_delegate efl_content_count_static_delegate; + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((LayoutPartTable)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); + } + } + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } - public delegate void efl_pack_table_size_set_api_delegate(System.IntPtr obj, int cols, int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_size_set"); - private static void table_size_set(System.IntPtr obj, System.IntPtr pd, int cols, int rows) - { - Eina.Log.Debug("function efl_pack_table_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetTableSize( cols, rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols, rows); + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((LayoutPartTable)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); + } } - } - private static efl_pack_table_size_set_delegate efl_pack_table_size_set_static_delegate; + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } - private delegate int efl_pack_table_columns_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_pack_table_columns_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_table_columns_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_columns_get"); - private static int table_columns_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_table_columns_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartTable)wrapper).GetTableColumns(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_table_columns_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_columns_get_delegate efl_pack_table_columns_get_static_delegate; - - private delegate void efl_pack_table_columns_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols); + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_pack_table_columns_set_api_delegate(System.IntPtr obj, int cols); - public static Efl.Eo.FunctionWrapper efl_pack_table_columns_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_columns_set"); - private static void table_columns_set(System.IntPtr obj, System.IntPtr pd, int cols) - { - Eina.Log.Debug("function efl_pack_table_columns_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetTableColumns( cols); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_columns_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols); + } + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_columns_set_delegate efl_pack_table_columns_set_static_delegate; + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate int efl_pack_table_rows_get_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - public delegate int efl_pack_table_rows_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_table_rows_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_rows_get"); - private static int table_rows_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_table_rows_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((LayoutPartTable)wrapper).GetTableRows(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_table_rows_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_table_rows_get_delegate efl_pack_table_rows_get_static_delegate; - - private delegate void efl_pack_table_rows_set_delegate(System.IntPtr obj, System.IntPtr pd, int rows); + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_pack_table_rows_set_api_delegate(System.IntPtr obj, int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_rows_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_rows_set"); - private static void table_rows_set(System.IntPtr obj, System.IntPtr pd, int rows) - { - Eina.Log.Debug("function efl_pack_table_rows_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetTableRows( rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_rows_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rows); + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_table_rows_set_delegate efl_pack_table_rows_set_static_delegate; + private static efl_pack_delegate efl_pack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_position_get"); + + private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) + { + Eina.Log.Debug("function efl_pack_table_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).GetTablePosition(subobj, out col, out row, out colspan, out rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_table_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + return _ret_var; + } + else + { + return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); + } + } - public delegate void efl_pack_table_direction_get_api_delegate(System.IntPtr obj, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); - public static Efl.Eo.FunctionWrapper efl_pack_table_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_direction_get"); - private static void table_direction_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) - { - Eina.Log.Debug("function efl_pack_table_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - primary = default(Efl.Ui.Dir); secondary = default(Efl.Ui.Dir); - try { - ((LayoutPartTable)wrapper).GetTableDirection( out primary, out secondary); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out primary, out secondary); + private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + + + private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); + + + public delegate void efl_pack_table_size_get_api_delegate(System.IntPtr obj, out int cols, out int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_size_get"); + + private static void table_size_get(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows) + { + Eina.Log.Debug("function efl_pack_table_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + cols = default(int); rows = default(int); + try + { + ((LayoutPartTable)wrapper).GetTableSize(out cols, out rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cols, out rows); + } } - } - private static efl_pack_table_direction_get_delegate efl_pack_table_direction_get_static_delegate; + private static efl_pack_table_size_get_delegate efl_pack_table_size_get_static_delegate; + + + private delegate void efl_pack_table_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols, int rows); + + + public delegate void efl_pack_table_size_set_api_delegate(System.IntPtr obj, int cols, int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_size_set"); + + private static void table_size_set(System.IntPtr obj, System.IntPtr pd, int cols, int rows) + { + Eina.Log.Debug("function efl_pack_table_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetTableSize(cols, rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols, rows); + } + } - private delegate void efl_pack_table_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + private static efl_pack_table_size_set_delegate efl_pack_table_size_set_static_delegate; + + + private delegate int efl_pack_table_columns_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_pack_table_columns_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_table_columns_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_columns_get"); + + private static int table_columns_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_table_columns_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartTable)wrapper).GetTableColumns(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_pack_table_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); - public static Efl.Eo.FunctionWrapper efl_pack_table_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_direction_set"); - private static void table_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary) - { - Eina.Log.Debug("function efl_pack_table_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartTable)wrapper).SetTableDirection( primary, secondary); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), primary, secondary); + } + else + { + return efl_pack_table_columns_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_direction_set_delegate efl_pack_table_direction_set_static_delegate; + private static efl_pack_table_columns_get_delegate efl_pack_table_columns_get_static_delegate; + + + private delegate void efl_pack_table_columns_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols); + + + public delegate void efl_pack_table_columns_set_api_delegate(System.IntPtr obj, int cols); + + public static Efl.Eo.FunctionWrapper efl_pack_table_columns_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_columns_set"); + + private static void table_columns_set(System.IntPtr obj, System.IntPtr pd, int cols) + { + Eina.Log.Debug("function efl_pack_table_columns_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetTableColumns(cols); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_columns_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_table_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + private static efl_pack_table_columns_set_delegate efl_pack_table_columns_set_static_delegate; + + + private delegate int efl_pack_table_rows_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_pack_table_rows_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_table_rows_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_rows_get"); + + private static int table_rows_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_table_rows_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((LayoutPartTable)wrapper).GetTableRows(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_table_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table"); - private static bool pack_table(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) - { - Eina.Log.Debug("function efl_pack_table was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((LayoutPartTable)wrapper).PackTable( subobj, col, row, colspan, rowspan); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_table_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, row, colspan, rowspan); + else + { + return efl_pack_table_rows_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_delegate efl_pack_table_static_delegate; - - private delegate System.IntPtr efl_pack_table_contents_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); + private static efl_pack_table_rows_get_delegate efl_pack_table_rows_get_static_delegate; + + + private delegate void efl_pack_table_rows_set_delegate(System.IntPtr obj, System.IntPtr pd, int rows); + + + public delegate void efl_pack_table_rows_set_api_delegate(System.IntPtr obj, int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_rows_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_rows_set"); + + private static void table_rows_set(System.IntPtr obj, System.IntPtr pd, int rows) + { + Eina.Log.Debug("function efl_pack_table_rows_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetTableRows(rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_rows_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rows); + } + } + private static efl_pack_table_rows_set_delegate efl_pack_table_rows_set_static_delegate; + + + private delegate void efl_pack_table_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + + + public delegate void efl_pack_table_direction_get_api_delegate(System.IntPtr obj, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + + public static Efl.Eo.FunctionWrapper efl_pack_table_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_direction_get"); + + private static void table_direction_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) + { + Eina.Log.Debug("function efl_pack_table_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + primary = default(Efl.Ui.Dir); secondary = default(Efl.Ui.Dir); + try + { + ((LayoutPartTable)wrapper).GetTableDirection(out primary, out secondary); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out primary, out secondary); + } + } - public delegate System.IntPtr efl_pack_table_contents_get_api_delegate(System.IntPtr obj, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); - public static Efl.Eo.FunctionWrapper efl_pack_table_contents_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_contents_get"); - private static System.IntPtr table_contents_get(System.IntPtr obj, System.IntPtr pd, int col, int row, bool below) - { - Eina.Log.Debug("function efl_pack_table_contents_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((LayoutPartTable)wrapper).GetTableContents( col, row, below); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_table_direction_get_delegate efl_pack_table_direction_get_static_delegate; + + + private delegate void efl_pack_table_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + + + public delegate void efl_pack_table_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + + public static Efl.Eo.FunctionWrapper efl_pack_table_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_direction_set"); + + private static void table_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary) + { + Eina.Log.Debug("function efl_pack_table_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartTable)wrapper).SetTableDirection(primary, secondary); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), primary, secondary); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_pack_table_contents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row, below); } - } - private static efl_pack_table_contents_get_delegate efl_pack_table_contents_get_static_delegate; + private static efl_pack_table_direction_set_delegate efl_pack_table_direction_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table"); + + private static bool pack_table(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) + { + Eina.Log.Debug("function efl_pack_table was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)wrapper).PackTable(subobj, col, row, colspan, rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_table_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, row, colspan, rowspan); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_table_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row); + private static efl_pack_table_delegate efl_pack_table_static_delegate; + + + private delegate System.IntPtr efl_pack_table_contents_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); + + + public delegate System.IntPtr efl_pack_table_contents_get_api_delegate(System.IntPtr obj, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); + + public static Efl.Eo.FunctionWrapper efl_pack_table_contents_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_contents_get"); + + private static System.IntPtr table_contents_get(System.IntPtr obj, System.IntPtr pd, int col, int row, bool below) + { + Eina.Log.Debug("function efl_pack_table_contents_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((LayoutPartTable)wrapper).GetTableContents(col, row, below); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_table_content_get_api_delegate(System.IntPtr obj, int col, int row); - public static Efl.Eo.FunctionWrapper efl_pack_table_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_content_get"); - private static Efl.Gfx.IEntity table_content_get(System.IntPtr obj, System.IntPtr pd, int col, int row) - { - Eina.Log.Debug("function efl_pack_table_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((LayoutPartTable)wrapper).GetTableContent( col, row); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_pack_table_contents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row, below); + } + } + + private static efl_pack_table_contents_get_delegate efl_pack_table_contents_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_table_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_table_content_get_api_delegate(System.IntPtr obj, int col, int row); + + public static Efl.Eo.FunctionWrapper efl_pack_table_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_content_get"); + + private static Efl.Gfx.IEntity table_content_get(System.IntPtr obj, System.IntPtr pd, int col, int row) + { + Eina.Log.Debug("function efl_pack_table_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((LayoutPartTable)wrapper).GetTableContent(col, row); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_pack_table_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row); + + } + else + { + return efl_pack_table_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row); + } } - } - private static efl_pack_table_content_get_delegate efl_pack_table_content_get_static_delegate; + + private static efl_pack_table_content_get_delegate efl_pack_table_content_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_text.eo.cs index 9fdfb96..9e189cd 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_text.eo.cs @@ -3,61 +3,85 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary layout internal part class -[LayoutPartTextNativeInherit] +[Efl.Ui.LayoutPartText.NativeMethods] public class LayoutPartText : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IText,Efl.ITextMarkup,Efl.Ui.IL10n { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (LayoutPartText)) - return Efl.Ui.LayoutPartTextNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(LayoutPartText)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_layout_part_text_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public LayoutPartText(Efl.Object parent= null - ) : - base(efl_ui_layout_part_text_class_get(), typeof(LayoutPartText), parent) + ) : base(efl_ui_layout_part_text_class_get(), typeof(LayoutPartText), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected LayoutPartText(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected LayoutPartText(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected LayoutPartText(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Retrieves the text string currently being displayed by the given text object. /// Do not free() the return value. /// @@ -65,7 +89,7 @@ public class LayoutPartText : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IText,Efl.I /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -73,23 +97,21 @@ public class LayoutPartText : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IText,Efl.I /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Markup property /// The markup-text representation set to this text. virtual public System.String GetMarkup() { - var _ret_var = Efl.ITextMarkupNativeInherit.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Markup property /// The markup-text representation set to this text. - /// - virtual public void SetMarkup( System.String markup) { - Efl.ITextMarkupNativeInherit.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), markup); + virtual public void SetMarkup(System.String markup) { + Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),markup); Eina.Error.RaiseIfUnhandledException(); } /// A unique string to be translated. @@ -98,256 +120,385 @@ public class LayoutPartText : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IText,Efl.I /// Setting this property will enable translation for this object or part. /// A translation domain. If null this means the default domain is used. /// This returns the untranslated value of label. The translated string can usually be retrieved with . - virtual public System.String GetL10nText( out System.String domain) { - var _ret_var = Efl.Ui.IL10nNativeInherit.efl_ui_l10n_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out domain); + virtual public System.String GetL10nText(out System.String domain) { + var _ret_var = Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out domain); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the new untranslated string and domain for this object. /// A unique (untranslated) string. /// A translation domain. If null this uses the default domain (eg. set by textdomain()). - /// - virtual public void SetL10nText( System.String label, System.String domain) { - Efl.Ui.IL10nNativeInherit.efl_ui_l10n_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), label, domain); + virtual public void SetL10nText(System.String label, System.String domain) { + Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),label, domain); Eina.Error.RaiseIfUnhandledException(); } /// Requests this object to update its text strings for the current locale. /// Currently strings are translated with dgettext, so support for this function may depend on the platform. It is up to the application to provide its own translation data. /// /// This function is a hook meant to be implemented by any object that supports translation. This can be called whenever a new object is created or when the current locale changes, for instance. This should only trigger further calls to to children objects. - /// virtual public void UpdateTranslation() { - Efl.Ui.IL10nNativeInherit.efl_ui_l10n_translation_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_translation_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Markup property /// The markup-text representation set to this text. public System.String Markup { get { return GetMarkup(); } - set { SetMarkup( value); } + set { SetMarkup(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.LayoutPartText.efl_ui_layout_part_text_class_get(); } -} -public class LayoutPartTextNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_text_markup_get_static_delegate == null) - efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); - if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate)}); - if (efl_text_markup_set_static_delegate == null) - efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); - if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate)}); - if (efl_ui_l10n_text_get_static_delegate == null) - efl_ui_l10n_text_get_static_delegate = new efl_ui_l10n_text_get_delegate(l10n_text_get); - if (methods.FirstOrDefault(m => m.Name == "GetL10nText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_get_static_delegate)}); - if (efl_ui_l10n_text_set_static_delegate == null) - efl_ui_l10n_text_set_static_delegate = new efl_ui_l10n_text_set_delegate(l10n_text_set); - if (methods.FirstOrDefault(m => m.Name == "SetL10nText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_set_static_delegate)}); - if (efl_ui_l10n_translation_update_static_delegate == null) - efl_ui_l10n_translation_update_static_delegate = new efl_ui_l10n_translation_update_delegate(translation_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateTranslation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_translation_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_translation_update_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.LayoutPartText.efl_ui_layout_part_text_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.LayoutPartText.efl_ui_layout_part_text_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartText)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); } - return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_text_markup_get_static_delegate == null) + { + efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); + } + + if (efl_text_markup_set_static_delegate == null) + { + efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); + } + + if (efl_ui_l10n_text_get_static_delegate == null) + { + efl_ui_l10n_text_get_static_delegate = new efl_ui_l10n_text_get_delegate(l10n_text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetL10nText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_get_static_delegate) }); + } + + if (efl_ui_l10n_text_set_static_delegate == null) + { + efl_ui_l10n_text_set_static_delegate = new efl_ui_l10n_text_set_delegate(l10n_text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetL10nText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_set_static_delegate) }); + } + + if (efl_ui_l10n_translation_update_static_delegate == null) + { + efl_ui_l10n_translation_update_static_delegate = new efl_ui_l10n_translation_update_delegate(translation_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateTranslation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_translation_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_translation_update_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.LayoutPartText.efl_ui_layout_part_text_class_get(); } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartText)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_get"); - private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_markup_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartText)wrapper).GetMarkup(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + } + } + + private static efl_text_set_delegate efl_text_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); + + private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_markup_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((LayoutPartText)wrapper).GetMarkup(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; + private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; - private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_set"); - private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetMarkup( markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); + + private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetMarkup(markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); } - } else { - efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); } - } - private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_l10n_text_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_l10n_text_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_l10n_text_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_l10n_text_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_text_get"); - private static System.String l10n_text_get(System.IntPtr obj, System.IntPtr pd, out System.String domain) - { - Eina.Log.Debug("function efl_ui_l10n_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_domain = default(System.String); + public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_text_get"); + + private static System.String l10n_text_get(System.IntPtr obj, System.IntPtr pd, out System.String domain) + { + Eina.Log.Debug("function efl_ui_l10n_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_domain = default(System.String); System.String _ret_var = default(System.String); - try { - _ret_var = ((LayoutPartText)wrapper).GetL10nText( out _out_domain); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((LayoutPartText)wrapper).GetL10nText(out _out_domain); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + domain = _out_domain; return _ret_var; - } else { - return efl_ui_l10n_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out domain); + + } + else + { + return efl_ui_l10n_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out domain); + } } - } - private static efl_ui_l10n_text_get_delegate efl_ui_l10n_text_get_static_delegate; + private static efl_ui_l10n_text_get_delegate efl_ui_l10n_text_get_static_delegate; - private delegate void efl_ui_l10n_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + + private delegate void efl_ui_l10n_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + + public delegate void efl_ui_l10n_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public delegate void efl_ui_l10n_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_text_set"); - private static void l10n_text_set(System.IntPtr obj, System.IntPtr pd, System.String label, System.String domain) - { - Eina.Log.Debug("function efl_ui_l10n_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).SetL10nText( label, domain); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_text_set"); + + private static void l10n_text_set(System.IntPtr obj, System.IntPtr pd, System.String label, System.String domain) + { + Eina.Log.Debug("function efl_ui_l10n_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).SetL10nText(label, domain); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_l10n_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), label, domain); } - } else { - efl_ui_l10n_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), label, domain); } - } - private static efl_ui_l10n_text_set_delegate efl_ui_l10n_text_set_static_delegate; + private static efl_ui_l10n_text_set_delegate efl_ui_l10n_text_set_static_delegate; - private delegate void efl_ui_l10n_translation_update_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_l10n_translation_update_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_l10n_translation_update_api_delegate(System.IntPtr obj); - public delegate void efl_ui_l10n_translation_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_translation_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_translation_update"); - private static void translation_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_l10n_translation_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((LayoutPartText)wrapper).UpdateTranslation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_l10n_translation_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_translation_update"); + + private static void translation_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_l10n_translation_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((LayoutPartText)wrapper).UpdateTranslation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_l10n_translation_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_l10n_translation_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_l10n_translation_update_delegate efl_ui_l10n_translation_update_static_delegate; + + private static efl_ui_l10n_translation_update_delegate efl_ui_l10n_translation_update_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_legacy.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_legacy.eo.cs index b6fe395..e541ee8 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_legacy.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_legacy.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// The bg (background) widget is used for setting (solid) background decorations /// in a window (unless it has transparency enabled) or on any container object. It works just like an image but has some properties useful for backgrounds, such as setting it to tiled, centered, scaled or stretched. -[ILegacyNativeInherit] +[Efl.Ui.ILegacyConcrete.NativeMethods] public interface ILegacy : Efl.Eo.IWrapper, IDisposable { @@ -20,88 +24,132 @@ ILegacy { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ILegacyConcrete)) - return Efl.Ui.ILegacyNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ILegacyConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_legacy_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ILegacyConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ILegacyConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.ILegacyConcrete.efl_ui_legacy_interface_get(); } -} -public class ILegacyNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.ILegacyConcrete.efl_ui_legacy_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.ILegacyConcrete.efl_ui_legacy_interface_get(); - } + /// 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(); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ILegacyConcrete.efl_ui_legacy_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list.eo.cs index d9a5d62..cfb8023 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list.eo.cs @@ -3,1899 +3,2278 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Simple list widget with Pack interface. -[ListNativeInherit] +[Efl.Ui.List.NativeMethods] public class List : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IPack,Efl.IPackLayout,Efl.IPackLinear,Efl.Ui.IClickable,Efl.Ui.IMultiSelectable,Efl.Ui.IScrollable,Efl.Ui.IScrollableInteractive,Efl.Ui.IScrollbar,Efl.Ui.ISelectable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (List)) - return Efl.Ui.ListNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(List)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_list_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public List(Efl.Object parent - , System.String style = null) : - base(efl_ui_list_class_get(), typeof(List), parent) + , System.String style = null) : base(efl_ui_list_class_get(), typeof(List), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected List(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected List(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected List(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object LayoutUpdatedEvtKey = new object(); + /// Sent after the layout was updated. public event EventHandler LayoutUpdatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.AddHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (RemoveNativeEventHandler(key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.RemoveHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LayoutUpdatedEvt. - public void On_LayoutUpdatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LayoutUpdatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LayoutUpdatedEvt_delegate; - private void on_LayoutUpdatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLayoutUpdatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_LayoutUpdatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedDoubleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) + public void OnClickedTripleEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRepeatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation starts public event EventHandler ScrollStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStartEvt. - public void On_ScrollStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStartEvt_delegate; - private void on_ScrollStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling public event EventHandler ScrollEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollEvt_delegate)) { - eventHandlers.AddHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL"; - if (RemoveNativeEventHandler(key, this.evt_ScrollEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollEvt. - public void On_ScrollEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollEvt_delegate; - private void on_ScrollEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation stops public event EventHandler ScrollStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStopEvt. - public void On_ScrollStopEvt(EventArgs e) + public void OnScrollStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStopEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStopEvt_delegate; - private void on_ScrollStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling upwards public event EventHandler ScrollUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.AddHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollUpEvt. - public void On_ScrollUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollUpEvt_delegate; - private void on_ScrollUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling downwards public event EventHandler ScrollDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.AddHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDownEvt. - public void On_ScrollDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDownEvt_delegate; - private void on_ScrollDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling left public event EventHandler ScrollLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.AddHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollLeftEvt. - public void On_ScrollLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollLeftEvt_delegate; - private void on_ScrollLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling right public event EventHandler ScrollRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.AddHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollRightEvt. - public void On_ScrollRightEvt(EventArgs e) + public void OnScrollRightEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollRightEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollRightEvt_delegate; - private void on_ScrollRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object EdgeUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the top edge public event EventHandler EdgeUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.AddHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_UP"; - if (RemoveNativeEventHandler(key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeUpEvt. - public void On_EdgeUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeUpEvt_delegate; - private void on_EdgeUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the bottom edge public event EventHandler EdgeDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.AddHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeDownEvt. - public void On_EdgeDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeDownEvt_delegate; - private void on_EdgeDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the left edge public event EventHandler EdgeLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.AddHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeLeftEvt. - public void On_EdgeLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeLeftEvt_delegate; - private void on_EdgeLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the right edge public event EventHandler EdgeRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.AddHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeRightEvt. - public void On_EdgeRightEvt(EventArgs e) + public void OnEdgeRightEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeRightEvtKey]; + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeRightEvt_delegate; - private void on_EdgeRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollAnimStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation starts public event EventHandler ScrollAnimStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStartEvt. - public void On_ScrollAnimStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStartEvt_delegate; - private void on_ScrollAnimStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation stopps public event EventHandler ScrollAnimStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStopEvt. - public void On_ScrollAnimStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStopEvt_delegate; - private void on_ScrollAnimStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag starts public event EventHandler ScrollDragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStartEvt. - public void On_ScrollDragStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStartEvt_delegate; - private void on_ScrollDragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDragStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag stops public event EventHandler ScrollDragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStopEvt. - public void On_ScrollDragStopEvt(EventArgs e) + public void OnScrollDragStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStopEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStopEvt_delegate; - private void on_ScrollDragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object BarPressEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar is pressed public event EventHandler BarPressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPressEvt_delegate)) { - eventHandlers.AddHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarPressEvt_delegate)) { - eventHandlers.RemoveHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPressEvt. - public void On_BarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) + public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPressEvt_delegate; - private void on_BarPressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarPressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarUnpressEvtKey = new object(); /// Called when bar is unpressed public event EventHandler BarUnpressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.AddHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.RemoveHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarUnpressEvt. - public void On_BarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) + public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarUnpressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarUnpressEvt_delegate; - private void on_BarUnpressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarUnpressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarDragEvtKey = new object(); /// Called when bar is dragged public event EventHandler BarDragEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarDragEvt_delegate)) { - eventHandlers.AddHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (RemoveNativeEventHandler(key, this.evt_BarDragEvt_delegate)) { - eventHandlers.RemoveHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarDragEvt. - public void On_BarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) + public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarDragEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarDragEvt_delegate; - private void on_BarDragEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarDragEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarSizeChangedEvtKey = new object(); /// Called when bar size is changed public event EventHandler BarSizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.AddHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarSizeChangedEvt. - public void On_BarSizeChangedEvt(EventArgs e) + public void OnBarSizeChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarSizeChangedEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarSizeChangedEvt_delegate; - private void on_BarSizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_BarSizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object BarPosChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar position is changed public event EventHandler BarPosChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.AddHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPosChangedEvt. - public void On_BarPosChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPosChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPosChangedEvt_delegate; - private void on_BarPosChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnBarPosChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_BarPosChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BarShowEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Callend when bar is shown public event EventHandler BarShowEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarShowEvt_delegate)) { - eventHandlers.AddHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (RemoveNativeEventHandler(key, this.evt_BarShowEvt_delegate)) { - eventHandlers.RemoveHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarShowEvt. - public void On_BarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) + public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarShowEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarShowEvt_delegate; - private void on_BarShowEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarShowEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarHideEvtKey = new object(); /// Called when bar is hidden public event EventHandler BarHideEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarHideEvt_delegate)) { - eventHandlers.AddHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (RemoveNativeEventHandler(key, this.evt_BarHideEvt_delegate)) { - eventHandlers.RemoveHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarHideEvt. - public void On_BarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) + public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarHideEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarHideEvt_delegate; - private void on_BarHideEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarHideEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ItemSelectedEvtKey = new object(); /// Called when selected public event EventHandler ItemSelectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.AddHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemSelectedEvt. - public void On_ItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) + public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemSelectedEvtKey]; + var key = "_EFL_UI_EVENT_ITEM_SELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemSelectedEvt_delegate; - private void on_ItemSelectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemSelectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ItemUnselectedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when no longer selected public event EventHandler ItemUnselectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.AddHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemUnselectedEvt. - public void On_ItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemUnselectedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemUnselectedEvt_delegate; - private void on_ItemUnselectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemUnselectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionPasteEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when selection is pasted public event EventHandler SelectionPasteEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.AddHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (RemoveNativeEventHandler(key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionPasteEvt. - public void On_SelectionPasteEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionPasteEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionPasteEvt_delegate; - private void on_SelectionPasteEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionPasteEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionPasteEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_PASTE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionCopyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is copied public event EventHandler SelectionCopyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.AddHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCopyEvt. - public void On_SelectionCopyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCopyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCopyEvt_delegate; - private void on_SelectionCopyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionCopyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCopyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_COPY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionCutEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cut public event EventHandler SelectionCutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.AddHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCutEvt. - public void On_SelectionCutEvt(EventArgs e) + public void OnSelectionCutEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCutEvtKey]; + var key = "_EFL_UI_EVENT_SELECTION_CUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCutEvt_delegate; - private void on_SelectionCutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object SelectionStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called at selection start public event EventHandler SelectionStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.AddHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_START"; - if (RemoveNativeEventHandler(key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionStartEvt. - public void On_SelectionStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionStartEvt_delegate; - private void on_SelectionStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is changed public event EventHandler SelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionChangedEvt. - public void On_SelectionChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionChangedEvt_delegate; - private void on_SelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionClearedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cleared public event EventHandler SelectionClearedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.AddHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionClearedEvt. - public void On_SelectionClearedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionClearedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionClearedEvt_delegate; - private void on_SelectionClearedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionClearedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_LayoutUpdatedEvt_delegate = new Efl.EventCb(on_LayoutUpdatedEvt_NativeCallback); - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); - evt_ScrollStartEvt_delegate = new Efl.EventCb(on_ScrollStartEvt_NativeCallback); - evt_ScrollEvt_delegate = new Efl.EventCb(on_ScrollEvt_NativeCallback); - evt_ScrollStopEvt_delegate = new Efl.EventCb(on_ScrollStopEvt_NativeCallback); - evt_ScrollUpEvt_delegate = new Efl.EventCb(on_ScrollUpEvt_NativeCallback); - evt_ScrollDownEvt_delegate = new Efl.EventCb(on_ScrollDownEvt_NativeCallback); - evt_ScrollLeftEvt_delegate = new Efl.EventCb(on_ScrollLeftEvt_NativeCallback); - evt_ScrollRightEvt_delegate = new Efl.EventCb(on_ScrollRightEvt_NativeCallback); - evt_EdgeUpEvt_delegate = new Efl.EventCb(on_EdgeUpEvt_NativeCallback); - evt_EdgeDownEvt_delegate = new Efl.EventCb(on_EdgeDownEvt_NativeCallback); - evt_EdgeLeftEvt_delegate = new Efl.EventCb(on_EdgeLeftEvt_NativeCallback); - evt_EdgeRightEvt_delegate = new Efl.EventCb(on_EdgeRightEvt_NativeCallback); - evt_ScrollAnimStartEvt_delegate = new Efl.EventCb(on_ScrollAnimStartEvt_NativeCallback); - evt_ScrollAnimStopEvt_delegate = new Efl.EventCb(on_ScrollAnimStopEvt_NativeCallback); - evt_ScrollDragStartEvt_delegate = new Efl.EventCb(on_ScrollDragStartEvt_NativeCallback); - evt_ScrollDragStopEvt_delegate = new Efl.EventCb(on_ScrollDragStopEvt_NativeCallback); - evt_BarPressEvt_delegate = new Efl.EventCb(on_BarPressEvt_NativeCallback); - evt_BarUnpressEvt_delegate = new Efl.EventCb(on_BarUnpressEvt_NativeCallback); - evt_BarDragEvt_delegate = new Efl.EventCb(on_BarDragEvt_NativeCallback); - evt_BarSizeChangedEvt_delegate = new Efl.EventCb(on_BarSizeChangedEvt_NativeCallback); - evt_BarPosChangedEvt_delegate = new Efl.EventCb(on_BarPosChangedEvt_NativeCallback); - evt_BarShowEvt_delegate = new Efl.EventCb(on_BarShowEvt_NativeCallback); - evt_BarHideEvt_delegate = new Efl.EventCb(on_BarHideEvt_NativeCallback); - evt_ItemSelectedEvt_delegate = new Efl.EventCb(on_ItemSelectedEvt_NativeCallback); - evt_ItemUnselectedEvt_delegate = new Efl.EventCb(on_ItemUnselectedEvt_NativeCallback); - evt_SelectionPasteEvt_delegate = new Efl.EventCb(on_SelectionPasteEvt_NativeCallback); - evt_SelectionCopyEvt_delegate = new Efl.EventCb(on_SelectionCopyEvt_NativeCallback); - evt_SelectionCutEvt_delegate = new Efl.EventCb(on_SelectionCutEvt_NativeCallback); - evt_SelectionStartEvt_delegate = new Efl.EventCb(on_SelectionStartEvt_NativeCallback); - evt_SelectionChangedEvt_delegate = new Efl.EventCb(on_SelectionChangedEvt_NativeCallback); - evt_SelectionClearedEvt_delegate = new Efl.EventCb(on_SelectionClearedEvt_NativeCallback); + public void OnSelectionClearedEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Property data of last selected item. /// last selected item of list. virtual public Efl.Ui.ListItem GetLastSelectedItem() { - var _ret_var = Efl.Ui.ListNativeInherit.efl_ui_list_last_selected_item_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.List.NativeMethods.efl_ui_list_last_selected_item_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// scroll move the item to show in the viewport. /// Target item. /// Boolean value for animation of scroll move. - /// - virtual public void ItemScroll( Efl.Ui.ListItem item, bool animation) { - Efl.Ui.ListNativeInherit.efl_ui_list_item_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), item, animation); + virtual public void ItemScroll(Efl.Ui.ListItem item, bool animation) { + Efl.Ui.List.NativeMethods.efl_ui_list_item_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),item, animation); Eina.Error.RaiseIfUnhandledException(); } /// scroll move the item to show at the align position of the viewport. /// Target item. /// align value in Viewport. /// Boolean value for animation of scroll move. - /// - virtual public void ItemScrollAlign( Efl.Ui.ListItem item, double align, bool animation) { - Efl.Ui.ListNativeInherit.efl_ui_list_item_scroll_align_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), item, align, animation); + virtual public void ItemScrollAlign(Efl.Ui.ListItem item, double align, bool animation) { + Efl.Ui.List.NativeMethods.efl_ui_list_item_scroll_align_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),item, align, animation); Eina.Error.RaiseIfUnhandledException(); } /// Get the selected items iterator. The iterator sequence will be decided by selection. /// Iterator covered by selected items list. user have to free the iterator after used. virtual public Eina.Iterator GetSelectedItems() { - var _ret_var = Efl.Ui.ListNativeInherit.efl_ui_list_selected_items_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.List.NativeMethods.efl_ui_list_selected_items_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_horiz, out align_vert); + virtual public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert); + virtual public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pad_horiz, out pad_vert, out scalable); + virtual public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable); + virtual public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise virtual public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1903,15 +2282,15 @@ private static object SelectionClearedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise virtual public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - virtual public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1921,46 +2300,44 @@ private static object SelectionClearedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - virtual public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests EFL to call the method on this object. /// This may be called asynchronously. - /// virtual public void LayoutRequest() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Implementation of this container's layout algorithm. /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas. /// /// This can be overriden to implement custom layout behaviors. - /// virtual public void UpdateLayout() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Prepend an object at the beginning of this container. /// This is the same as (subobj, 0). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack. - /// false if subobj could not be packed - virtual public bool PackBegin( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// Item to pack at the beginning. + /// false if subobj could not be packed. + virtual public bool PackBegin(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Append object at the end of this container. + /// Append item at the end of this container. /// This is the same as (subobj, -1). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Item to pack at the end. - /// false if subobj could not be packed - virtual public bool PackEnd( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// false if subobj could not be packed. + virtual public bool PackEnd(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1969,8 +2346,8 @@ private static object SelectionClearedEvtKey = new object(); /// Item to pack before existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1979,89 +2356,95 @@ private static object SelectionClearedEvtKey = new object(); /// Item to pack after existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Inserts subobj at the specified index. - /// Valid range: -count to +count. -1 refers to the last element. Out of range indices will trigger an append. + /// Inserts subobj BEFORE the item at position index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack at given index. - /// A position. + /// Item to pack. + /// Index of item to insert BEFORE. Valid range is -count to (count-1). /// false if subobj could not be packed. - virtual public bool PackAt( Efl.Gfx.IEntity subobj, int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, index); + virtual public bool PackAt(Efl.Gfx.IEntity subobj, int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Content at a given index in this container. - /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1). - /// Index number + /// Content at a given index in this container. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will return the first item whereas index greater than count-1 will return the last item. + /// Index of the item to retrieve. Valid range is -count to (count-1). /// The object contained at the given index. - virtual public Efl.Gfx.IEntity GetPackContent( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity GetPackContent(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the index of a child in this container. /// An object contained in this pack. - /// -1 in case of failure, or the index of this item. - virtual public int GetPackIndex( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// -1 in case subobj is not a child of this object, or the index of this item in the range 0 to (count-1). + virtual public int GetPackIndex(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Pop out item at specified index. - /// Equivalent to unpack(content_at(index)). - /// Index number + /// Pop out (remove) the item at the specified index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will remove the first item whereas index greater than count-1 will remove the last item. + /// + /// Equivalent to ((index)). + /// Index of item to remove. Valid range is -count to (count-1). /// The child item if it could be removed. - virtual public Efl.Gfx.IEntity PackUnpackAt( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The mode type for children selection. /// Type of selection of children virtual public Efl.Ui.SelectMode GetSelectMode() { - var _ret_var = Efl.Ui.IMultiSelectableNativeInherit.efl_ui_select_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The mode type for children selection. /// Type of selection of children - /// - virtual public void SetSelectMode( Efl.Ui.SelectMode mode) { - Efl.Ui.IMultiSelectableNativeInherit.efl_ui_select_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mode); + virtual public void SetSelectMode(Efl.Ui.SelectMode mode) { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode); Eina.Error.RaiseIfUnhandledException(); } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. virtual public Eina.Position2D GetContentPos() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. - /// - virtual public void SetContentPos( Eina.Position2D pos) { + virtual public void SetContentPos(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// The content size /// The content size in pixels. virtual public Eina.Size2D GetContentSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The viewport geometry /// It is absolute geometry. virtual public Eina.Rect GetViewportGeometry() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2069,78 +2452,71 @@ private static object SelectionClearedEvtKey = new object(); /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void GetBounceEnabled( out bool horiz, out bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out horiz, out vert); + virtual public void GetBounceEnabled(out bool horiz, out bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void SetBounceEnabled( bool horiz, bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), horiz, vert); + virtual public void SetBounceEnabled(bool horiz, bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise virtual public bool GetScrollFreeze() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise - /// - virtual public void SetScrollFreeze( bool freeze) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), freeze); + virtual public void SetScrollFreeze(bool freeze) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),freeze); Eina.Error.RaiseIfUnhandledException(); } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise virtual public bool GetScrollHold() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise - /// - virtual public void SetScrollHold( bool hold) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hold); + virtual public void SetScrollHold(bool hold) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hold); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void GetLooping( out bool loop_h, out bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out loop_h, out loop_v); + virtual public void GetLooping(out bool loop_h, out bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out loop_h, out loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void SetLooping( bool loop_h, bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), loop_h, loop_v); + virtual public void SetLooping(bool loop_h, bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),loop_h, loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block virtual public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block - /// - virtual public void SetMovementBlock( Efl.Ui.ScrollBlock block) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), block); + virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),block); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -2153,9 +2529,8 @@ private static object SelectionClearedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void GetGravity( out double x, out double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetGravity(out double x, out double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -2168,92 +2543,82 @@ private static object SelectionClearedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void SetGravity( double x, double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetGravity(double x, double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size - /// - virtual public void SetMatchContent( bool w, bool h) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), w, h); + virtual public void SetMatchContent(bool w, bool h) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),w, h); Eina.Error.RaiseIfUnhandledException(); } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels virtual public Eina.Position2D GetStepSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels - /// - virtual public void SetStepSize( Eina.Position2D step) { + virtual public void SetStepSize(Eina.Position2D step) { Eina.Position2D.NativeStruct _in_step = step; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_step); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_step); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object. /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. /// The position where to scroll. and The size user want to see /// Whether to scroll with animation or not - /// - virtual public void Scroll( Eina.Rect rect, bool animation) { + virtual public void Scroll(Eina.Rect rect, bool animation) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect, animation); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect, animation); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void GetBarMode( out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out hbar, out vbar); + virtual public void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out hbar, out vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void SetBarMode( Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hbar, vbar); + virtual public void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hbar, vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar size. It is calculated based on viewport size-content sizes. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarSize( out double width, out double height) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out width, out height); + virtual public void GetBarSize(out double width, out double height) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out width, out height); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarPosition( out double posx, out double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out posx, out posy); + virtual public void GetBarPosition(out double posx, out double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out posx, out posy); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void SetBarPosition( double posx, double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), posx, posy); + virtual public void SetBarPosition(double posx, double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),posx, posy); Eina.Error.RaiseIfUnhandledException(); } /// Update bar visibility. /// The object will call this function whenever the bar need to be shown or hidden. - /// virtual public void UpdateBarVisibility() { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Property data of last selected item. @@ -2265,13 +2630,13 @@ private static object SelectionClearedEvtKey = new object(); /// Type of selection of children public Efl.Ui.SelectMode SelectMode { get { return GetSelectMode(); } - set { SetSelectMode( value); } + set { SetSelectMode(value); } } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. public Eina.Position2D ContentPos { get { return GetContentPos(); } - set { SetContentPos( value); } + set { SetContentPos(value); } } /// The content size /// The content size in pixels. @@ -2287,1474 +2652,2336 @@ private static object SelectionClearedEvtKey = new object(); /// true if freeze, false otherwise public bool ScrollFreeze { get { return GetScrollFreeze(); } - set { SetScrollFreeze( value); } + set { SetScrollFreeze(value); } } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise public bool ScrollHold { get { return GetScrollHold(); } - set { SetScrollHold( value); } + set { SetScrollHold(value); } } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block public Efl.Ui.ScrollBlock MovementBlock { get { return GetMovementBlock(); } - set { SetMovementBlock( value); } + set { SetMovementBlock(value); } } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels public Eina.Position2D StepSize { get { return GetStepSize(); } - set { SetStepSize( value); } + set { SetStepSize(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.List.efl_ui_list_class_get(); } -} -public class ListNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_list_last_selected_item_get_static_delegate == null) - efl_ui_list_last_selected_item_get_static_delegate = new efl_ui_list_last_selected_item_get_delegate(last_selected_item_get); - if (methods.FirstOrDefault(m => m.Name == "GetLastSelectedItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_last_selected_item_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_last_selected_item_get_static_delegate)}); - if (efl_ui_list_item_scroll_static_delegate == null) - efl_ui_list_item_scroll_static_delegate = new efl_ui_list_item_scroll_delegate(item_scroll); - if (methods.FirstOrDefault(m => m.Name == "ItemScroll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_item_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_item_scroll_static_delegate)}); - if (efl_ui_list_item_scroll_align_static_delegate == null) - efl_ui_list_item_scroll_align_static_delegate = new efl_ui_list_item_scroll_align_delegate(item_scroll_align); - if (methods.FirstOrDefault(m => m.Name == "ItemScrollAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_item_scroll_align"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_item_scroll_align_static_delegate)}); - if (efl_ui_list_selected_items_get_static_delegate == null) - efl_ui_list_selected_items_get_static_delegate = new efl_ui_list_selected_items_get_delegate(selected_items_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectedItems") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_selected_items_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_selected_items_get_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - if (efl_pack_layout_request_static_delegate == null) - efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); - if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate)}); - if (efl_pack_layout_update_static_delegate == null) - efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate)}); - if (efl_pack_begin_static_delegate == null) - efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); - if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate)}); - if (efl_pack_end_static_delegate == null) - efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); - if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate)}); - if (efl_pack_before_static_delegate == null) - efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); - if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate)}); - if (efl_pack_after_static_delegate == null) - efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); - if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate)}); - if (efl_pack_at_static_delegate == null) - efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); - if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate)}); - if (efl_pack_content_get_static_delegate == null) - efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate)}); - if (efl_pack_index_get_static_delegate == null) - efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate)}); - if (efl_pack_unpack_at_static_delegate == null) - efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); - if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate)}); - if (efl_ui_select_mode_get_static_delegate == null) - efl_ui_select_mode_get_static_delegate = new efl_ui_select_mode_get_delegate(select_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_select_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_get_static_delegate)}); - if (efl_ui_select_mode_set_static_delegate == null) - efl_ui_select_mode_set_static_delegate = new efl_ui_select_mode_set_delegate(select_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelectMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_set_static_delegate)}); - if (efl_ui_scrollable_content_pos_get_static_delegate == null) - efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate)}); - if (efl_ui_scrollable_content_pos_set_static_delegate == null) - efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate)}); - if (efl_ui_scrollable_content_size_get_static_delegate == null) - efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate)}); - if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) - efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) - efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) - efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) - efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) - efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) - efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) - efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate)}); - if (efl_ui_scrollable_looping_get_static_delegate == null) - efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); - if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate)}); - if (efl_ui_scrollable_looping_set_static_delegate == null) - efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); - if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate)}); - if (efl_ui_scrollable_movement_block_get_static_delegate == null) - efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate)}); - if (efl_ui_scrollable_movement_block_set_static_delegate == null) - efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate)}); - if (efl_ui_scrollable_gravity_get_static_delegate == null) - efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate)}); - if (efl_ui_scrollable_gravity_set_static_delegate == null) - efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate)}); - if (efl_ui_scrollable_match_content_set_static_delegate == null) - efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); - if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate)}); - if (efl_ui_scrollable_step_size_get_static_delegate == null) - efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate)}); - if (efl_ui_scrollable_step_size_set_static_delegate == null) - efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate)}); - if (efl_ui_scrollable_scroll_static_delegate == null) - efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); - if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) - efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) - efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate)}); - if (efl_ui_scrollbar_bar_size_get_static_delegate == null) - efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_get_static_delegate == null) - efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_set_static_delegate == null) - efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate)}); - if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) - efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.List.efl_ui_list_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.List.efl_ui_list_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_list_last_selected_item_get_static_delegate == null) + { + efl_ui_list_last_selected_item_get_static_delegate = new efl_ui_list_last_selected_item_get_delegate(last_selected_item_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.ListItem efl_ui_list_last_selected_item_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetLastSelectedItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_last_selected_item_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_last_selected_item_get_static_delegate) }); + } + if (efl_ui_list_item_scroll_static_delegate == null) + { + efl_ui_list_item_scroll_static_delegate = new efl_ui_list_item_scroll_delegate(item_scroll); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.ListItem efl_ui_list_last_selected_item_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_list_last_selected_item_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_last_selected_item_get"); - private static Efl.Ui.ListItem last_selected_item_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_last_selected_item_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ListItem _ret_var = default(Efl.Ui.ListItem); - try { - _ret_var = ((List)wrapper).GetLastSelectedItem(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ItemScroll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_item_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_item_scroll_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_list_last_selected_item_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_list_last_selected_item_get_delegate efl_ui_list_last_selected_item_get_static_delegate; + if (efl_ui_list_item_scroll_align_static_delegate == null) + { + efl_ui_list_item_scroll_align_static_delegate = new efl_ui_list_item_scroll_align_delegate(item_scroll_align); + } - private delegate void efl_ui_list_item_scroll_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.ListItem item, [MarshalAs(UnmanagedType.U1)] bool animation); + if (methods.FirstOrDefault(m => m.Name == "ItemScrollAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_item_scroll_align"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_item_scroll_align_static_delegate) }); + } + if (efl_ui_list_selected_items_get_static_delegate == null) + { + efl_ui_list_selected_items_get_static_delegate = new efl_ui_list_selected_items_get_delegate(selected_items_get); + } - public delegate void efl_ui_list_item_scroll_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.ListItem item, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper efl_ui_list_item_scroll_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_item_scroll"); - private static void item_scroll(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ListItem item, bool animation) - { - Eina.Log.Debug("function efl_ui_list_item_scroll was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).ItemScroll( item, animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSelectedItems") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_selected_items_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_selected_items_get_static_delegate) }); } - } else { - efl_ui_list_item_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, animation); - } - } - private static efl_ui_list_item_scroll_delegate efl_ui_list_item_scroll_static_delegate; + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } - private delegate void efl_ui_list_item_scroll_align_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.ListItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } - public delegate void efl_ui_list_item_scroll_align_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.ListItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper efl_ui_list_item_scroll_align_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_item_scroll_align"); - private static void item_scroll_align(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ListItem item, double align, bool animation) - { - Eina.Log.Debug("function efl_ui_list_item_scroll_align was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).ItemScrollAlign( item, align, animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); } - } else { - efl_ui_list_item_scroll_align_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, align, animation); - } - } - private static efl_ui_list_item_scroll_align_delegate efl_ui_list_item_scroll_align_static_delegate; + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); + } - private delegate System.IntPtr efl_ui_list_selected_items_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); + } - public delegate System.IntPtr efl_ui_list_selected_items_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_list_selected_items_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_selected_items_get"); - private static System.IntPtr selected_items_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_selected_items_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((List)wrapper).GetSelectedItems(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_ui_list_selected_items_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_list_selected_items_get_delegate efl_ui_list_selected_items_get_static_delegate; + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((List)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); - } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + if (efl_pack_layout_request_static_delegate == null) + { + efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); + } - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate) }); + } + if (efl_pack_layout_update_static_delegate == null) + { + efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); + } - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((List)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate) }); } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); - } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + if (efl_pack_begin_static_delegate == null) + { + efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); + } + if (efl_pack_end_static_delegate == null) + { + efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); - } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + if (efl_pack_before_static_delegate == null) + { + efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); + } + if (efl_pack_after_static_delegate == null) + { + efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((List)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + if (efl_pack_at_static_delegate == null) + { + efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); + } + if (efl_pack_content_get_static_delegate == null) + { + efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((List)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + if (efl_pack_index_get_static_delegate == null) + { + efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); + } + if (efl_pack_unpack_at_static_delegate == null) + { + efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((List)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + if (efl_ui_select_mode_get_static_delegate == null) + { + efl_ui_select_mode_get_static_delegate = new efl_ui_select_mode_get_delegate(select_mode_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetSelectMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_get_static_delegate) }); + } + if (efl_ui_select_mode_set_static_delegate == null) + { + efl_ui_select_mode_set_static_delegate = new efl_ui_select_mode_set_delegate(select_mode_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((List)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSelectMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_delegate efl_pack_static_delegate; + if (efl_ui_scrollable_content_pos_get_static_delegate == null) + { + efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); + } - private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); + } + if (efl_ui_scrollable_content_pos_set_static_delegate == null) + { + efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); + } - public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_request"); - private static void layout_request(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_request was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).LayoutRequest(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); } - } else { - efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + if (efl_ui_scrollable_content_size_get_static_delegate == null) + { + efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); + } - private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); + } + if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) + { + efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); + } - public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_update"); - private static void layout_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).UpdateLayout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); } - } else { - efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; + if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); + } + if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_begin"); - private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_begin was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((List)wrapper).PackBegin( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); + } + if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_end"); - private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((List)wrapper).PackEnd( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_end_delegate efl_pack_end_static_delegate; + if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); + } + if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_before"); - private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_before was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((List)wrapper).PackBefore( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); - } - } - private static efl_pack_before_delegate efl_pack_before_static_delegate; + if (efl_ui_scrollable_looping_get_static_delegate == null) + { + efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); + } + if (efl_ui_scrollable_looping_set_static_delegate == null) + { + efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_after"); - private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_after was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((List)wrapper).PackAfter( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); - } - } - private static efl_pack_after_delegate efl_pack_after_static_delegate; + if (efl_ui_scrollable_movement_block_get_static_delegate == null) + { + efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); + if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); + } + if (efl_ui_scrollable_movement_block_set_static_delegate == null) + { + efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_at"); - private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) - { - Eina.Log.Debug("function efl_pack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((List)wrapper).PackAt( subobj, index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); - } - } - private static efl_pack_at_delegate efl_pack_at_static_delegate; + if (efl_ui_scrollable_gravity_get_static_delegate == null) + { + efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); + } + if (efl_ui_scrollable_gravity_set_static_delegate == null) + { + efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_content_get"); - private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((List)wrapper).GetPackContent( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); - } - } - private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + if (efl_ui_scrollable_match_content_set_static_delegate == null) + { + efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); + } - private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); + } + if (efl_ui_scrollable_step_size_get_static_delegate == null) + { + efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); + } - public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_index_get"); - private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_index_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((List)wrapper).GetPackIndex( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + if (efl_ui_scrollable_step_size_set_static_delegate == null) + { + efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); + } + if (efl_ui_scrollable_scroll_static_delegate == null) + { + efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_at"); - private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_unpack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((List)wrapper).PackUnpackAt( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) }); } - return _ret_var; - } else { - return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); - } - } - private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); + } - private delegate Efl.Ui.SelectMode efl_ui_select_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate) }); + } + if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); + } - public delegate Efl.Ui.SelectMode efl_ui_select_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_select_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_select_mode_get"); - private static Efl.Ui.SelectMode select_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_select_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.SelectMode _ret_var = default(Efl.Ui.SelectMode); - try { - _ret_var = ((List)wrapper).GetSelectMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_select_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_select_mode_get_delegate efl_ui_select_mode_get_static_delegate; + if (efl_ui_scrollbar_bar_size_get_static_delegate == null) + { + efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); + } - private delegate void efl_ui_select_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode); + if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate) }); + } + if (efl_ui_scrollbar_bar_position_get_static_delegate == null) + { + efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); + } - public delegate void efl_ui_select_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectMode mode); - public static Efl.Eo.FunctionWrapper efl_ui_select_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_select_mode_set"); - private static void select_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode) - { - Eina.Log.Debug("function efl_ui_select_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetSelectMode( mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate) }); } - } else { - efl_ui_select_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); - } - } - private static efl_ui_select_mode_set_delegate efl_ui_select_mode_set_static_delegate; + if (efl_ui_scrollbar_bar_position_set_static_delegate == null) + { + efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); + } - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate) }); + } + if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) + { + efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); + } - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_get"); - private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((List)wrapper).GetContentPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.List.efl_ui_list_class_get(); + } - private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + #pragma warning disable CA1707, SA1300, SA1600 + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.ListItem efl_ui_list_last_selected_item_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_set"); - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((List)wrapper).SetContentPos( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.ListItem efl_ui_list_last_selected_item_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_list_last_selected_item_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_last_selected_item_get"); - private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.ListItem last_selected_item_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_list_last_selected_item_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ListItem _ret_var = default(Efl.Ui.ListItem); + try + { + _ret_var = ((List)wrapper).GetLastSelectedItem(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_size_get"); - private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((List)wrapper).GetContentSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_list_last_selected_item_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; + private static efl_ui_list_last_selected_item_get_delegate efl_ui_list_last_selected_item_get_static_delegate; - private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_list_item_scroll_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ListItem item, [MarshalAs(UnmanagedType.U1)] bool animation); + + public delegate void efl_ui_list_item_scroll_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ListItem item, [MarshalAs(UnmanagedType.U1)] bool animation); - public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_viewport_geometry_get"); - private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((List)wrapper).GetViewportGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_list_item_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_item_scroll"); + + private static void item_scroll(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ListItem item, bool animation) + { + Eina.Log.Debug("function efl_ui_list_item_scroll was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).ItemScroll(item, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_list_item_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, animation); } - return _ret_var; - } else { - return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; + private static efl_ui_list_item_scroll_delegate efl_ui_list_item_scroll_static_delegate; - private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + private delegate void efl_ui_list_item_scroll_align_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ListItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); + + public delegate void efl_ui_list_item_scroll_align_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ListItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); - public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_get"); - private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - horiz = default(bool); vert = default(bool); - try { - ((List)wrapper).GetBounceEnabled( out horiz, out vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_list_item_scroll_align_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_item_scroll_align"); + + private static void item_scroll_align(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ListItem item, double align, bool animation) + { + Eina.Log.Debug("function efl_ui_list_item_scroll_align was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).ItemScrollAlign(item, align, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_list_item_scroll_align_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, align, animation); } - } else { - efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); } - } - private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + private static efl_ui_list_item_scroll_align_delegate efl_ui_list_item_scroll_align_static_delegate; - private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + private delegate System.IntPtr efl_ui_list_selected_items_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_ui_list_selected_items_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_set"); - private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetBounceEnabled( horiz, vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_list_selected_items_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_selected_items_get"); + + private static System.IntPtr selected_items_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_list_selected_items_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((List)wrapper).GetSelectedItems(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_ui_list_selected_items_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); } - } - private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + private static efl_ui_list_selected_items_get_delegate efl_ui_list_selected_items_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_get"); - private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((List)wrapper).GetScrollFreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((List)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); } - return _ret_var; - } else { - return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; - private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_set"); - private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetScrollFreeze( freeze); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); } - } else { - efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); } - } - private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_get"); - private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((List)wrapper).GetScrollHold(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((List)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); } + } + + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } + + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((List)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; - private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((List)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_set"); - private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetScrollHold( hold); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; - private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((List)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_get"); - private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - loop_h = default(bool); loop_v = default(bool); - try { - ((List)wrapper).GetLooping( out loop_h, out loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; - private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((List)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_set"); - private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetLooping( loop_h, loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + private static efl_pack_delegate efl_pack_static_delegate; - private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); - public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_get"); - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try { - _ret_var = ((List)wrapper).GetMovementBlock(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_request"); + + private static void layout_request(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_request was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).LayoutRequest(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + + + private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_update"); + + private static void layout_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).UpdateLayout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); + + private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_begin was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((List)wrapper).PackBegin(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); + + private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((List)wrapper).PackEnd(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_end_delegate efl_pack_end_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); + + private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_before was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((List)wrapper).PackBefore(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); } + } + + private static efl_pack_before_delegate efl_pack_before_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); + + private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_after was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((List)wrapper).PackAfter(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } + + private static efl_pack_after_delegate efl_pack_after_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); + + private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) + { + Eina.Log.Debug("function efl_pack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((List)wrapper).PackAt(subobj, index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + } + } + + private static efl_pack_at_delegate efl_pack_at_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); + + private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((List)wrapper).GetPackContent(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + + private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + + + private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); + + private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_index_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((List)wrapper).GetPackIndex(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); + + private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_unpack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((List)wrapper).PackUnpackAt(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + + private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + + private delegate Efl.Ui.SelectMode efl_ui_select_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.SelectMode efl_ui_select_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_select_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_get"); + + private static Efl.Ui.SelectMode select_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_select_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.SelectMode _ret_var = default(Efl.Ui.SelectMode); + try + { + _ret_var = ((List)wrapper).GetSelectMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_select_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; + private static efl_ui_select_mode_get_delegate efl_ui_select_mode_get_static_delegate; - private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + private delegate void efl_ui_select_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode); + + public delegate void efl_ui_select_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectMode mode); - public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_set"); - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetMovementBlock( block); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_select_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_set"); + + private static void select_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode) + { + Eina.Log.Debug("function efl_ui_select_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetSelectMode(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_select_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); } - } else { - efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); } - } - private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + private static efl_ui_select_mode_set_delegate efl_ui_select_mode_set_static_delegate; - private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); + + private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((List)wrapper).GetContentPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_get"); - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((List)wrapper).GetGravity( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + else + { + return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; - private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_set"); - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetGravity( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); + + private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((List)wrapper).SetContentPos(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - } else { - efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } - private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; - private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); + + private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((List)wrapper).GetContentSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_match_content_set"); - private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetMatchContent( w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + else + { + return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_get"); - private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((List)wrapper).GetStepSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); + + private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((List)wrapper).GetViewportGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; + + + private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + + public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); + + private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((List)wrapper).GetBounceEnabled(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); } + } + + private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + + + private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + + public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); + + private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetBounceEnabled(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + } + } + + private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); + + private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((List)wrapper).GetScrollFreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; + private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; - private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_set"); - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_step = step; + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); + + private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetScrollFreeze(freeze); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); + } + } + + private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); + + private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((List)wrapper).GetScrollHold(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + + + private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + + public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); + + private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetScrollHold(hold); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + } + } + + private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; + + + private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + + public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); + + private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + loop_h = default(bool); loop_v = default(bool); + try + { + ((List)wrapper).GetLooping(out loop_h, out loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + } + } + + private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + + + private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + + public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); + + private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetLooping(loop_h, loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + } + } + + private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + + + private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); + + private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); + try + { + _ret_var = ((List)wrapper).GetMovementBlock(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; + + + private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + + public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); + + private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetMovementBlock(block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); + } + } + + private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); + + private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((List)wrapper).GetGravity(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); + + private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetGravity(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + + + private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + + public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); + + private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) + { + Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetMatchContent(w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + } + } + + private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); + + private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((List)wrapper).GetStepSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; + + + private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + + public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); + + private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_step = step; - try { - ((List)wrapper).SetStepSize( _in_step); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((List)wrapper).SetStepSize(_in_step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } else { - efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } - private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; + private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; - private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll"); - private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); + + private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; - try { - ((List)wrapper).Scroll( _in_rect, animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((List)wrapper).Scroll(_in_rect, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } - } else { - efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } - } - private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; + private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; - private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_get"); - private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); - try { - ((List)wrapper).GetBarMode( out hbar, out vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_get"); + + private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); + try + { + ((List)wrapper).GetBarMode(out hbar, out vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); } - } else { - efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); } - } - private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; + private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_set"); - private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetBarMode( hbar, vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_set"); + + private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetBarMode(hbar, vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); } - } else { - efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); } - } - private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; + private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; - private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_size_get"); - private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - width = default(double); height = default(double); - try { - ((List)wrapper).GetBarSize( out width, out height); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_size_get"); + + private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + width = default(double); height = default(double); + try + { + ((List)wrapper).GetBarSize(out width, out height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); } - } else { - efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); } - } - private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; + private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_get"); - private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - posx = default(double); posy = default(double); - try { - ((List)wrapper).GetBarPosition( out posx, out posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_get"); + + private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + posx = default(double); posy = default(double); + try + { + ((List)wrapper).GetBarPosition(out posx, out posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); } - } else { - efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); } - } - private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; + private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_set"); - private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).SetBarPosition( posx, posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_set"); + + private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).SetBarPosition(posx, posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); } - } else { - efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); } - } - private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; + private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; - private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_visibility_update"); - private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((List)wrapper).UpdateBarVisibility(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_visibility_update"); + + private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((List)wrapper).UpdateBarVisibility(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + + private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item.eo.cs index 6106a34..804c37d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item.eo.cs @@ -3,133 +3,171 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// List Default Item class. This class need to be sub object of list widget. text and contents can be appliable by efl_text, efl_content or efl_part APIs. -[ListDefaultItemNativeInherit] +[Efl.Ui.ListDefaultItem.NativeMethods] public class ListDefaultItem : Efl.Ui.ListItem, Efl.Eo.IWrapper,Efl.IContent,Efl.IText,Efl.ITextMarkup { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ListDefaultItem)) - return Efl.Ui.ListDefaultItemNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ListDefaultItem)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_list_default_item_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public ListDefaultItem(Efl.Object parent - , System.String style = null) : - base(efl_ui_list_default_item_class_get(), typeof(ListDefaultItem), parent) + , System.String style = null) : base(efl_ui_list_default_item_class_get(), typeof(ListDefaultItem), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ListDefaultItem(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ListDefaultItem(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ListDefaultItem(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -140,7 +178,7 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -148,260 +186,390 @@ private static object ContentChangedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Markup property /// The markup-text representation set to this text. virtual public System.String GetMarkup() { - var _ret_var = Efl.ITextMarkupNativeInherit.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Markup property /// The markup-text representation set to this text. - /// - virtual public void SetMarkup( System.String markup) { - Efl.ITextMarkupNativeInherit.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), markup); + virtual public void SetMarkup(System.String markup) { + Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),markup); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// Markup property /// The markup-text representation set to this text. public System.String Markup { get { return GetMarkup(); } - set { SetMarkup( value); } + set { SetMarkup(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.ListDefaultItem.efl_ui_list_default_item_class_get(); } -} -public class ListDefaultItemNativeInherit : Efl.Ui.ListItemNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_text_markup_get_static_delegate == null) - efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); - if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate)}); - if (efl_text_markup_set_static_delegate == null) - efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); - if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ListDefaultItem.efl_ui_list_default_item_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.ListItem.NativeMethods { - return Efl.Ui.ListDefaultItem.efl_ui_list_default_item_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((ListDefaultItem)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListDefaultItem)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_markup_get_static_delegate == null) + { + efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((ListDefaultItem)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_markup_set_static_delegate == null) + { + efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); } + + if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ListDefaultItem.efl_ui_list_default_item_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((ListDefaultItem)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ListDefaultItem)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListDefaultItem)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((ListDefaultItem)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_content_unset_delegate efl_content_unset_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListDefaultItem)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ListDefaultItem)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_get"); - private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_markup_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ListDefaultItem)wrapper).GetMarkup(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListDefaultItem)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } + } + + private static efl_text_set_delegate efl_text_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); + + private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_markup_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ListDefaultItem)wrapper).GetMarkup(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; + private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; - private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_set"); - private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListDefaultItem)wrapper).SetMarkup( markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); + public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); + + private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListDefaultItem)wrapper).SetMarkup(markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); + } } - } - private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + + private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item_part_end.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item_part_end.eo.cs index 8208e64..575e350 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item_part_end.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item_part_end.eo.cs @@ -3,248 +3,347 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// List Default Item internal content of end part class -[ListDefaultItemPartEndNativeInherit] +[Efl.Ui.ListDefaultItemPartEnd.NativeMethods] public class ListDefaultItemPartEnd : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ListDefaultItemPartEnd)) - return Efl.Ui.ListDefaultItemPartEndNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ListDefaultItemPartEnd)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_list_default_item_part_end_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ListDefaultItemPartEnd(Efl.Object parent= null - ) : - base(efl_ui_list_default_item_part_end_class_get(), typeof(ListDefaultItemPartEnd), parent) + ) : base(efl_ui_list_default_item_part_end_class_get(), typeof(ListDefaultItemPartEnd), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ListDefaultItemPartEnd(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ListDefaultItemPartEnd(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ListDefaultItemPartEnd(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.ListDefaultItemPartEnd.efl_ui_list_default_item_part_end_class_get(); } -} -public class ListDefaultItemPartEndNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ListDefaultItemPartEnd.efl_ui_list_default_item_part_end_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.ListDefaultItemPartEnd.efl_ui_list_default_item_part_end_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((ListDefaultItemPartEnd)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ListDefaultItemPartEnd.efl_ui_list_default_item_part_end_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((ListDefaultItemPartEnd)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListDefaultItemPartEnd)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListDefaultItemPartEnd)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((ListDefaultItemPartEnd)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((ListDefaultItemPartEnd)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item_part_icon.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item_part_icon.eo.cs index 06cd129..8954d7a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item_part_icon.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item_part_icon.eo.cs @@ -3,248 +3,347 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// List Default Item internal content of icon part class -[ListDefaultItemPartIconNativeInherit] +[Efl.Ui.ListDefaultItemPartIcon.NativeMethods] public class ListDefaultItemPartIcon : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ListDefaultItemPartIcon)) - return Efl.Ui.ListDefaultItemPartIconNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ListDefaultItemPartIcon)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_list_default_item_part_icon_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ListDefaultItemPartIcon(Efl.Object parent= null - ) : - base(efl_ui_list_default_item_part_icon_class_get(), typeof(ListDefaultItemPartIcon), parent) + ) : base(efl_ui_list_default_item_part_icon_class_get(), typeof(ListDefaultItemPartIcon), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ListDefaultItemPartIcon(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ListDefaultItemPartIcon(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ListDefaultItemPartIcon(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.ListDefaultItemPartIcon.efl_ui_list_default_item_part_icon_class_get(); } -} -public class ListDefaultItemPartIconNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ListDefaultItemPartIcon.efl_ui_list_default_item_part_icon_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.ListDefaultItemPartIcon.efl_ui_list_default_item_part_icon_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((ListDefaultItemPartIcon)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ListDefaultItemPartIcon.efl_ui_list_default_item_part_icon_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((ListDefaultItemPartIcon)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListDefaultItemPartIcon)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListDefaultItemPartIcon)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((ListDefaultItemPartIcon)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((ListDefaultItemPartIcon)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_empty_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_empty_item.eo.cs index 83c3240..c1fff02 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_empty_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_empty_item.eo.cs @@ -3,251 +3,353 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// List Empty Item class. This item have only one swallow space, thus user can decorate item by filling the swallow with any kind of container. -[ListEmptyItemNativeInherit] +[Efl.Ui.ListEmptyItem.NativeMethods] public class ListEmptyItem : Efl.Ui.ListItem, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ListEmptyItem)) - return Efl.Ui.ListEmptyItemNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ListEmptyItem)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_list_empty_item_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public ListEmptyItem(Efl.Object parent - , System.String style = null) : - base(efl_ui_list_empty_item_class_get(), typeof(ListEmptyItem), parent) + , System.String style = null) : base(efl_ui_list_empty_item_class_get(), typeof(ListEmptyItem), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ListEmptyItem(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ListEmptyItem(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ListEmptyItem(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.ListEmptyItem.efl_ui_list_empty_item_class_get(); } -} -public class ListEmptyItemNativeInherit : Efl.Ui.ListItemNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ListEmptyItem.efl_ui_list_empty_item_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.ListItem.NativeMethods { - return Efl.Ui.ListEmptyItem.efl_ui_list_empty_item_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((ListEmptyItem)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ListEmptyItem.efl_ui_list_empty_item_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((ListEmptyItem)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListEmptyItem)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((ListEmptyItem)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListEmptyItem)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((ListEmptyItem)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs index 0cab548..5d0264e 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs @@ -3,39 +3,54 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[ListItemNativeInherit] +namespace Efl { + +namespace Ui { + +[Efl.Ui.ListItem.NativeMethods] public abstract class ListItem : Efl.Ui.Item, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ListItem)) - return Efl.Ui.ListItemNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ListItem)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_list_item_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public ListItem(Efl.Object parent - , System.String style = null) : - base(efl_ui_list_item_class_get(), typeof(ListItem), parent) + , System.String style = null) : base(efl_ui_list_item_class_get(), typeof(ListItem), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ListItem(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class ListItemRealized : ListItem { @@ -43,52 +58,72 @@ public abstract class ListItem : Efl.Ui.Item, Efl.Eo.IWrapper { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ListItem(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ListItem(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.ListItem.efl_ui_list_item_class_get(); } -} -public class ListItemNativeInherit : Efl.Ui.ItemNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ListItem.efl_ui_list_item_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Item.NativeMethods { - return Efl.Ui.ListItem.efl_ui_list_item_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ListItem.efl_ui_list_item_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view.eo.cs index 86b6329..4ff278c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + ///Event argument wrapper for event . public class ListViewItemRealizedEvt_Args : EventArgs { ///Actual event payload. @@ -35,2524 +39,3026 @@ public class ListViewItemUnhighlightedEvt_Args : EventArgs { ///Actual event payload. public Efl.Ui.ListViewItemEvent arg { get; set; } } -/// -[ListViewNativeInherit] +[Efl.Ui.ListView.NativeMethods] public class ListView : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.Access.ISelection,Efl.Ui.IClickable,Efl.Ui.IListViewModel,Efl.Ui.IScrollable,Efl.Ui.IScrollableInteractive,Efl.Ui.IScrollbar,Efl.Ui.ISelectable,Efl.Ui.IWidgetFocusManager,Efl.Ui.Focus.IComposition,Efl.Ui.Focus.IManager,Efl.Ui.Focus.IManagerSub { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ListView)) - return Efl.Ui.ListViewNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ListView)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_list_view_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public ListView(Efl.Object parent - , System.String style = null) : - base(efl_ui_list_view_class_get(), typeof(ListView), parent) + , System.String style = null) : base(efl_ui_list_view_class_get(), typeof(ListView), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ListView(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ListView(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ListView(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ItemRealizedEvtKey = new object(); - /// + public event EventHandler ItemRealizedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ListViewItemRealizedEvt_Args args = new Efl.Ui.ListViewItemRealizedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_REALIZED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ItemRealizedEvt_delegate)) { - eventHandlers.AddHandler(ItemRealizedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_REALIZED"; - if (RemoveNativeEventHandler(key, this.evt_ItemRealizedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemRealizedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ItemRealizedEvt. - public void On_ItemRealizedEvt(Efl.Ui.ListViewItemRealizedEvt_Args e) + public void OnItemRealizedEvt(Efl.Ui.ListViewItemRealizedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemRealizedEvtKey]; + var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_REALIZED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemRealizedEvt_delegate; - private void on_ItemRealizedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ListViewItemRealizedEvt_Args args = new Efl.Ui.ListViewItemRealizedEvt_Args(); - args.arg = evt.Info;; - try { - On_ItemRealizedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ItemUnrealizedEvtKey = new object(); - /// public event EventHandler ItemUnrealizedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ListViewItemUnrealizedEvt_Args args = new Efl.Ui.ListViewItemUnrealizedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNREALIZED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ItemUnrealizedEvt_delegate)) { - eventHandlers.AddHandler(ItemUnrealizedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNREALIZED"; - if (RemoveNativeEventHandler(key, this.evt_ItemUnrealizedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemUnrealizedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ItemUnrealizedEvt. - public void On_ItemUnrealizedEvt(Efl.Ui.ListViewItemUnrealizedEvt_Args e) + public void OnItemUnrealizedEvt(Efl.Ui.ListViewItemUnrealizedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemUnrealizedEvtKey]; + var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNREALIZED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemUnrealizedEvt_delegate; - private void on_ItemUnrealizedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ListViewItemUnrealizedEvt_Args args = new Efl.Ui.ListViewItemUnrealizedEvt_Args(); - args.arg = evt.Info;; - try { - On_ItemUnrealizedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ItemFocusedEvtKey = new object(); - /// public event EventHandler ItemFocusedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ListViewItemFocusedEvt_Args args = new Efl.Ui.ListViewItemFocusedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_FOCUSED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ItemFocusedEvt_delegate)) { - eventHandlers.AddHandler(ItemFocusedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_FOCUSED"; - if (RemoveNativeEventHandler(key, this.evt_ItemFocusedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemFocusedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ItemFocusedEvt. - public void On_ItemFocusedEvt(Efl.Ui.ListViewItemFocusedEvt_Args e) + public void OnItemFocusedEvt(Efl.Ui.ListViewItemFocusedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemFocusedEvtKey]; + var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_FOCUSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemFocusedEvt_delegate; - private void on_ItemFocusedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ListViewItemFocusedEvt_Args args = new Efl.Ui.ListViewItemFocusedEvt_Args(); - args.arg = evt.Info;; - try { - On_ItemFocusedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ItemUnfocusedEvtKey = new object(); - /// public event EventHandler ItemUnfocusedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ListViewItemUnfocusedEvt_Args args = new Efl.Ui.ListViewItemUnfocusedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNFOCUSED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ItemUnfocusedEvt_delegate)) { - eventHandlers.AddHandler(ItemUnfocusedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNFOCUSED"; - if (RemoveNativeEventHandler(key, this.evt_ItemUnfocusedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemUnfocusedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ItemUnfocusedEvt. - public void On_ItemUnfocusedEvt(Efl.Ui.ListViewItemUnfocusedEvt_Args e) + public void OnItemUnfocusedEvt(Efl.Ui.ListViewItemUnfocusedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemUnfocusedEvtKey]; + var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNFOCUSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemUnfocusedEvt_delegate; - private void on_ItemUnfocusedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ListViewItemUnfocusedEvt_Args args = new Efl.Ui.ListViewItemUnfocusedEvt_Args(); - args.arg = evt.Info;; - try { - On_ItemUnfocusedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ItemHighlightedEvtKey = new object(); - /// public event EventHandler ItemHighlightedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ListViewItemHighlightedEvt_Args args = new Efl.Ui.ListViewItemHighlightedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_HIGHLIGHTED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ItemHighlightedEvt_delegate)) { - eventHandlers.AddHandler(ItemHighlightedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_HIGHLIGHTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemHighlightedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemHighlightedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ItemHighlightedEvt. - public void On_ItemHighlightedEvt(Efl.Ui.ListViewItemHighlightedEvt_Args e) + public void OnItemHighlightedEvt(Efl.Ui.ListViewItemHighlightedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemHighlightedEvtKey]; + var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_HIGHLIGHTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemHighlightedEvt_delegate; - private void on_ItemHighlightedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ListViewItemHighlightedEvt_Args args = new Efl.Ui.ListViewItemHighlightedEvt_Args(); - args.arg = evt.Info;; - try { - On_ItemHighlightedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ItemUnhighlightedEvtKey = new object(); - /// public event EventHandler ItemUnhighlightedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ListViewItemUnhighlightedEvt_Args args = new Efl.Ui.ListViewItemUnhighlightedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNHIGHLIGHTED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ItemUnhighlightedEvt_delegate)) { - eventHandlers.AddHandler(ItemUnhighlightedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNHIGHLIGHTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemUnhighlightedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemUnhighlightedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ItemUnhighlightedEvt. - public void On_ItemUnhighlightedEvt(Efl.Ui.ListViewItemUnhighlightedEvt_Args e) + public void OnItemUnhighlightedEvt(Efl.Ui.ListViewItemUnhighlightedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemUnhighlightedEvtKey]; + var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNHIGHLIGHTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemUnhighlightedEvt_delegate; - private void on_ItemUnhighlightedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ListViewItemUnhighlightedEvt_Args args = new Efl.Ui.ListViewItemUnhighlightedEvt_Args(); - args.arg = evt.Info;; - try { - On_ItemUnhighlightedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object AccessSelectionChangedEvtKey = new object(); /// Called when selection has been changed. public event EventHandler AccessSelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_SELECTION_EVENT_ACCESS_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessSelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(AccessSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_SELECTION_EVENT_ACCESS_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_AccessSelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(AccessSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AccessSelectionChangedEvt. - public void On_AccessSelectionChangedEvt(EventArgs e) + public void OnAccessSelectionChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AccessSelectionChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AccessSelectionChangedEvt_delegate; - private void on_AccessSelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_AccessSelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_SELECTION_EVENT_ACCESS_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) + public void OnClickedDoubleEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedTripleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) + public void OnRepeatedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation starts public event EventHandler ScrollStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStartEvt. - public void On_ScrollStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStartEvt_delegate; - private void on_ScrollStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling public event EventHandler ScrollEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollEvt_delegate)) { - eventHandlers.AddHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL"; - if (RemoveNativeEventHandler(key, this.evt_ScrollEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollEvt. - public void On_ScrollEvt(EventArgs e) + public void OnScrollEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollEvt_delegate; - private void on_ScrollEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation stops public event EventHandler ScrollStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStopEvt. - public void On_ScrollStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStopEvt_delegate; - private void on_ScrollStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling upwards public event EventHandler ScrollUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.AddHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollUpEvt. - public void On_ScrollUpEvt(EventArgs e) + public void OnScrollUpEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollUpEvt_delegate; - private void on_ScrollUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling downwards public event EventHandler ScrollDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.AddHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDownEvt. - public void On_ScrollDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDownEvt_delegate; - private void on_ScrollDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling left public event EventHandler ScrollLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.AddHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollLeftEvt. - public void On_ScrollLeftEvt(EventArgs e) + public void OnScrollLeftEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollLeftEvt_delegate; - private void on_ScrollLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling right public event EventHandler ScrollRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.AddHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollRightEvt. - public void On_ScrollRightEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollRightEvt_delegate; - private void on_ScrollRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollRightEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the top edge public event EventHandler EdgeUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.AddHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_UP"; - if (RemoveNativeEventHandler(key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeUpEvt. - public void On_EdgeUpEvt(EventArgs e) + public void OnEdgeUpEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeUpEvt_delegate; - private void on_EdgeUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the bottom edge public event EventHandler EdgeDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.AddHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeDownEvt. - public void On_EdgeDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeDownEvt_delegate; - private void on_EdgeDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the left edge public event EventHandler EdgeLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.AddHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeLeftEvt. - public void On_EdgeLeftEvt(EventArgs e) + public void OnEdgeLeftEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeLeftEvt_delegate; - private void on_EdgeLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the right edge public event EventHandler EdgeRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.AddHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeRightEvt. - public void On_EdgeRightEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeRightEvt_delegate; - private void on_EdgeRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeRightEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation starts public event EventHandler ScrollAnimStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStartEvt. - public void On_ScrollAnimStartEvt(EventArgs e) + public void OnScrollAnimStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStartEvt_delegate; - private void on_ScrollAnimStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation stopps public event EventHandler ScrollAnimStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStopEvt. - public void On_ScrollAnimStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStopEvt_delegate; - private void on_ScrollAnimStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag starts public event EventHandler ScrollDragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStartEvt. - public void On_ScrollDragStartEvt(EventArgs e) + public void OnScrollDragStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStartEvt_delegate; - private void on_ScrollDragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag stops public event EventHandler ScrollDragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStopEvt. - public void On_ScrollDragStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStopEvt_delegate; - private void on_ScrollDragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDragStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BarPressEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar is pressed public event EventHandler BarPressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPressEvt_delegate)) { - eventHandlers.AddHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarPressEvt_delegate)) { - eventHandlers.RemoveHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPressEvt. - public void On_BarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) + public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPressEvt_delegate; - private void on_BarPressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarPressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarUnpressEvtKey = new object(); /// Called when bar is unpressed public event EventHandler BarUnpressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.AddHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.RemoveHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarUnpressEvt. - public void On_BarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) + public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarUnpressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarUnpressEvt_delegate; - private void on_BarUnpressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarUnpressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarDragEvtKey = new object(); /// Called when bar is dragged public event EventHandler BarDragEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarDragEvt_delegate)) { - eventHandlers.AddHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (RemoveNativeEventHandler(key, this.evt_BarDragEvt_delegate)) { - eventHandlers.RemoveHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarDragEvt. - public void On_BarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) + public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarDragEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarDragEvt_delegate; - private void on_BarDragEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarDragEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarSizeChangedEvtKey = new object(); /// Called when bar size is changed public event EventHandler BarSizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.AddHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarSizeChangedEvt. - public void On_BarSizeChangedEvt(EventArgs e) + public void OnBarSizeChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarSizeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarSizeChangedEvt_delegate; - private void on_BarSizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_BarSizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BarPosChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar position is changed public event EventHandler BarPosChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.AddHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPosChangedEvt. - public void On_BarPosChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPosChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPosChangedEvt_delegate; - private void on_BarPosChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnBarPosChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_BarPosChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BarShowEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Callend when bar is shown public event EventHandler BarShowEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarShowEvt_delegate)) { - eventHandlers.AddHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (RemoveNativeEventHandler(key, this.evt_BarShowEvt_delegate)) { - eventHandlers.RemoveHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarShowEvt. - public void On_BarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) + public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarShowEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarShowEvt_delegate; - private void on_BarShowEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarShowEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarHideEvtKey = new object(); /// Called when bar is hidden public event EventHandler BarHideEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarHideEvt_delegate)) { - eventHandlers.AddHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (RemoveNativeEventHandler(key, this.evt_BarHideEvt_delegate)) { - eventHandlers.RemoveHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarHideEvt. - public void On_BarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) + public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarHideEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarHideEvt_delegate; - private void on_BarHideEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarHideEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ItemSelectedEvtKey = new object(); /// Called when selected public event EventHandler ItemSelectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.AddHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemSelectedEvt. - public void On_ItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) + public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemSelectedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemSelectedEvt_delegate; - private void on_ItemSelectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemSelectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ITEM_SELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ItemUnselectedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when no longer selected public event EventHandler ItemUnselectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.AddHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemUnselectedEvt. - public void On_ItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemUnselectedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemUnselectedEvt_delegate; - private void on_ItemUnselectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemUnselectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionPasteEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when selection is pasted public event EventHandler SelectionPasteEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.AddHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (RemoveNativeEventHandler(key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionPasteEvt. - public void On_SelectionPasteEvt(EventArgs e) + public void OnSelectionPasteEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionPasteEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionPasteEvt_delegate; - private void on_SelectionPasteEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionPasteEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_PASTE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionCopyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is copied public event EventHandler SelectionCopyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.AddHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCopyEvt. - public void On_SelectionCopyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCopyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCopyEvt_delegate; - private void on_SelectionCopyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionCopyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCopyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_COPY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionCutEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cut public event EventHandler SelectionCutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.AddHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCutEvt. - public void On_SelectionCutEvt(EventArgs e) + public void OnSelectionCutEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCutEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCutEvt_delegate; - private void on_SelectionCutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_CUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called at selection start public event EventHandler SelectionStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.AddHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_START"; - if (RemoveNativeEventHandler(key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionStartEvt. - public void On_SelectionStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionStartEvt_delegate; - private void on_SelectionStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is changed public event EventHandler SelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionChangedEvt. - public void On_SelectionChangedEvt(EventArgs e) + public void OnSelectionChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionChangedEvt_delegate; - private void on_SelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionClearedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cleared public event EventHandler SelectionClearedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.AddHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionClearedEvt. - public void On_SelectionClearedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionClearedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionClearedEvt_delegate; - private void on_SelectionClearedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionClearedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionClearedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RedirectChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) public event EventHandler RedirectChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.AddHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.RemoveHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedirectChangedEvt. - public void On_RedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedirectChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedirectChangedEvt_delegate; - private void on_RedirectChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_RedirectChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FlushPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.AddHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (RemoveNativeEventHandler(key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.RemoveHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FlushPreEvt. - public void On_FlushPreEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FlushPreEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FlushPreEvt_delegate; - private void on_FlushPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFlushPreEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_FlushPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CoordsDirtyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.AddHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (RemoveNativeEventHandler(key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.RemoveHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CoordsDirtyEvt. - public void On_CoordsDirtyEvt(EventArgs e) + public void OnCoordsDirtyEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CoordsDirtyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CoordsDirtyEvt_delegate; - private void on_CoordsDirtyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_CoordsDirtyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ManagerFocusChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) public event EventHandler ManagerFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ManagerFocusChangedEvt. - public void On_ManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ManagerFocusChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ManagerFocusChangedEvt_delegate; - private void on_ManagerFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_ManagerFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DirtyLogicFreezeChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) public event EventHandler DirtyLogicFreezeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.AddHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DirtyLogicFreezeChangedEvt. - public void On_DirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DirtyLogicFreezeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DirtyLogicFreezeChangedEvt_delegate; - private void on_DirtyLogicFreezeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_DirtyLogicFreezeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ItemRealizedEvt_delegate = new Efl.EventCb(on_ItemRealizedEvt_NativeCallback); - evt_ItemUnrealizedEvt_delegate = new Efl.EventCb(on_ItemUnrealizedEvt_NativeCallback); - evt_ItemFocusedEvt_delegate = new Efl.EventCb(on_ItemFocusedEvt_NativeCallback); - evt_ItemUnfocusedEvt_delegate = new Efl.EventCb(on_ItemUnfocusedEvt_NativeCallback); - evt_ItemHighlightedEvt_delegate = new Efl.EventCb(on_ItemHighlightedEvt_NativeCallback); - evt_ItemUnhighlightedEvt_delegate = new Efl.EventCb(on_ItemUnhighlightedEvt_NativeCallback); - evt_AccessSelectionChangedEvt_delegate = new Efl.EventCb(on_AccessSelectionChangedEvt_NativeCallback); - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); - evt_ScrollStartEvt_delegate = new Efl.EventCb(on_ScrollStartEvt_NativeCallback); - evt_ScrollEvt_delegate = new Efl.EventCb(on_ScrollEvt_NativeCallback); - evt_ScrollStopEvt_delegate = new Efl.EventCb(on_ScrollStopEvt_NativeCallback); - evt_ScrollUpEvt_delegate = new Efl.EventCb(on_ScrollUpEvt_NativeCallback); - evt_ScrollDownEvt_delegate = new Efl.EventCb(on_ScrollDownEvt_NativeCallback); - evt_ScrollLeftEvt_delegate = new Efl.EventCb(on_ScrollLeftEvt_NativeCallback); - evt_ScrollRightEvt_delegate = new Efl.EventCb(on_ScrollRightEvt_NativeCallback); - evt_EdgeUpEvt_delegate = new Efl.EventCb(on_EdgeUpEvt_NativeCallback); - evt_EdgeDownEvt_delegate = new Efl.EventCb(on_EdgeDownEvt_NativeCallback); - evt_EdgeLeftEvt_delegate = new Efl.EventCb(on_EdgeLeftEvt_NativeCallback); - evt_EdgeRightEvt_delegate = new Efl.EventCb(on_EdgeRightEvt_NativeCallback); - evt_ScrollAnimStartEvt_delegate = new Efl.EventCb(on_ScrollAnimStartEvt_NativeCallback); - evt_ScrollAnimStopEvt_delegate = new Efl.EventCb(on_ScrollAnimStopEvt_NativeCallback); - evt_ScrollDragStartEvt_delegate = new Efl.EventCb(on_ScrollDragStartEvt_NativeCallback); - evt_ScrollDragStopEvt_delegate = new Efl.EventCb(on_ScrollDragStopEvt_NativeCallback); - evt_BarPressEvt_delegate = new Efl.EventCb(on_BarPressEvt_NativeCallback); - evt_BarUnpressEvt_delegate = new Efl.EventCb(on_BarUnpressEvt_NativeCallback); - evt_BarDragEvt_delegate = new Efl.EventCb(on_BarDragEvt_NativeCallback); - evt_BarSizeChangedEvt_delegate = new Efl.EventCb(on_BarSizeChangedEvt_NativeCallback); - evt_BarPosChangedEvt_delegate = new Efl.EventCb(on_BarPosChangedEvt_NativeCallback); - evt_BarShowEvt_delegate = new Efl.EventCb(on_BarShowEvt_NativeCallback); - evt_BarHideEvt_delegate = new Efl.EventCb(on_BarHideEvt_NativeCallback); - evt_ItemSelectedEvt_delegate = new Efl.EventCb(on_ItemSelectedEvt_NativeCallback); - evt_ItemUnselectedEvt_delegate = new Efl.EventCb(on_ItemUnselectedEvt_NativeCallback); - evt_SelectionPasteEvt_delegate = new Efl.EventCb(on_SelectionPasteEvt_NativeCallback); - evt_SelectionCopyEvt_delegate = new Efl.EventCb(on_SelectionCopyEvt_NativeCallback); - evt_SelectionCutEvt_delegate = new Efl.EventCb(on_SelectionCutEvt_NativeCallback); - evt_SelectionStartEvt_delegate = new Efl.EventCb(on_SelectionStartEvt_NativeCallback); - evt_SelectionChangedEvt_delegate = new Efl.EventCb(on_SelectionChangedEvt_NativeCallback); - evt_SelectionClearedEvt_delegate = new Efl.EventCb(on_SelectionClearedEvt_NativeCallback); - evt_RedirectChangedEvt_delegate = new Efl.EventCb(on_RedirectChangedEvt_NativeCallback); - evt_FlushPreEvt_delegate = new Efl.EventCb(on_FlushPreEvt_NativeCallback); - evt_CoordsDirtyEvt_delegate = new Efl.EventCb(on_CoordsDirtyEvt_NativeCallback); - evt_ManagerFocusChangedEvt_delegate = new Efl.EventCb(on_ManagerFocusChangedEvt_NativeCallback); - evt_DirtyLogicFreezeChangedEvt_delegate = new Efl.EventCb(on_DirtyLogicFreezeChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Get whether the homogeneous mode is enabled. /// Assume the items within the genlist are of the same height and width. Default is false. virtual public bool GetHomogeneous() { - var _ret_var = Efl.Ui.ListViewNativeInherit.efl_ui_list_view_homogeneous_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.ListView.NativeMethods.efl_ui_list_view_homogeneous_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable/disable homogeneous mode. /// Assume the items within the genlist are of the same height and width. Default is false. - /// - virtual public void SetHomogeneous( bool homogeneous) { - Efl.Ui.ListViewNativeInherit.efl_ui_list_view_homogeneous_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), homogeneous); + virtual public void SetHomogeneous(bool homogeneous) { + Efl.Ui.ListView.NativeMethods.efl_ui_list_view_homogeneous_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),homogeneous); Eina.Error.RaiseIfUnhandledException(); } /// Listview select mode. /// The select mode. virtual public Elm.Object.SelectMode GetSelectMode() { - var _ret_var = Efl.Ui.ListViewNativeInherit.efl_ui_list_view_select_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.ListView.NativeMethods.efl_ui_list_view_select_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Listview select mode. /// The select mode. - /// - virtual public void SetSelectMode( Elm.Object.SelectMode mode) { - Efl.Ui.ListViewNativeInherit.efl_ui_list_view_select_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mode); + virtual public void SetSelectMode(Elm.Object.SelectMode mode) { + Efl.Ui.ListView.NativeMethods.efl_ui_list_view_select_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode); Eina.Error.RaiseIfUnhandledException(); } - /// - /// virtual public System.String GetDefaultStyle() { - var _ret_var = Efl.Ui.ListViewNativeInherit.efl_ui_list_view_default_style_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.ListView.NativeMethods.efl_ui_list_view_default_style_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// - /// - virtual public void SetDefaultStyle( System.String style) { - Efl.Ui.ListViewNativeInherit.efl_ui_list_view_default_style_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), style); + virtual public void SetDefaultStyle(System.String style) { + Efl.Ui.ListView.NativeMethods.efl_ui_list_view_default_style_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),style); Eina.Error.RaiseIfUnhandledException(); } /// Listview layout factory set. /// The factory. - /// - virtual public void SetLayoutFactory( Efl.Ui.IFactory factory) { - Efl.Ui.ListViewNativeInherit.efl_ui_list_view_layout_factory_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), factory); + virtual public void SetLayoutFactory(Efl.Ui.IFactory factory) { + Efl.Ui.ListView.NativeMethods.efl_ui_list_view_layout_factory_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),factory); Eina.Error.RaiseIfUnhandledException(); } /// Gets the number of currently selected children /// Number of currently selected children virtual public int GetSelectedChildrenCount() { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_selected_children_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_selected_children_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets child for given child index /// Index of child /// Child object - virtual public Efl.Object GetSelectedChild( int selected_child_index) { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_selected_child_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), selected_child_index); + virtual public Efl.Object GetSelectedChild(int selected_child_index) { + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_selected_child_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),selected_child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Adds selection for given child index /// Index of child /// true if selection was added, false otherwise - virtual public bool ChildSelect( int child_index) { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_child_select_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child_index); + virtual public bool ChildSelect(int child_index) { + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_child_select_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes selection for given child index /// Index of child /// true if selection was removed, false otherwise - virtual public bool SelectedChildDeselect( int child_index) { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_selected_child_deselect_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child_index); + virtual public bool SelectedChildDeselect(int child_index) { + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_selected_child_deselect_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Determines if child specified by index is selected /// Index of child /// true if child is selected, false otherwise - virtual public bool IsChildSelected( int child_index) { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_is_child_selected_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child_index); + virtual public bool IsChildSelected(int child_index) { + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_is_child_selected_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Adds selection for all children /// true if selection was added to all children, false otherwise virtual public bool AllChildrenSelect() { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_all_children_select_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_all_children_select_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Clears the current selection /// true if selection was cleared, false otherwise virtual public bool ClearAccessSelection() { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes selection for given child index /// Index of child /// true if selection was removed, false otherwise - virtual public bool ChildDeselect( int child_index) { - var _ret_var = Efl.Access.ISelectionNativeInherit.efl_access_selection_child_deselect_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child_index); + virtual public bool ChildDeselect(int child_index) { + var _ret_var = Efl.Access.ISelectionConcrete.NativeMethods.efl_access_selection_child_deselect_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child_index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// - /// - /// - virtual public void SetLoadRange( int first, int count) { - Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_load_range_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), first, count); + virtual public void SetLoadRange(int first, int count) { + Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_load_range_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),first, count); Eina.Error.RaiseIfUnhandledException(); } - /// - /// virtual public int GetModelSize() { - var _ret_var = Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Minimal content size. - /// virtual public Eina.Size2D GetMinSize() { - var _ret_var = Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_min_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_min_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Minimal content size. - /// - /// - virtual public void SetMinSize( Eina.Size2D min) { + virtual public void SetMinSize(Eina.Size2D min) { Eina.Size2D.NativeStruct _in_min = min; - Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_min_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_min); + Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_min_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_min); Eina.Error.RaiseIfUnhandledException(); } - /// - /// - /// - virtual public Efl.Ui.ListViewLayoutItem Realize( ref Efl.Ui.ListViewLayoutItem item) { + virtual public Efl.Ui.ListViewLayoutItem Realize(ref Efl.Ui.ListViewLayoutItem item) { Efl.Ui.ListViewLayoutItem.NativeStruct _in_item = item; - var _ret_var = Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_realize_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref _in_item); + var _ret_var = Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_realize_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref _in_item); Eina.Error.RaiseIfUnhandledException(); item = _in_item; var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); return __ret_tmp; } - /// - /// - /// - virtual public void Unrealize( ref Efl.Ui.ListViewLayoutItem item) { + virtual public void Unrealize(ref Efl.Ui.ListViewLayoutItem item) { Efl.Ui.ListViewLayoutItem.NativeStruct _in_item = item; - Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_unrealize_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref _in_item); + Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_unrealize_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref _in_item); Eina.Error.RaiseIfUnhandledException(); item = _in_item; } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. virtual public Eina.Position2D GetContentPos() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. - /// - virtual public void SetContentPos( Eina.Position2D pos) { + virtual public void SetContentPos(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// The content size /// The content size in pixels. virtual public Eina.Size2D GetContentSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The viewport geometry /// It is absolute geometry. virtual public Eina.Rect GetViewportGeometry() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2560,78 +3066,71 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void GetBounceEnabled( out bool horiz, out bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out horiz, out vert); + virtual public void GetBounceEnabled(out bool horiz, out bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void SetBounceEnabled( bool horiz, bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), horiz, vert); + virtual public void SetBounceEnabled(bool horiz, bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise virtual public bool GetScrollFreeze() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise - /// - virtual public void SetScrollFreeze( bool freeze) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), freeze); + virtual public void SetScrollFreeze(bool freeze) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),freeze); Eina.Error.RaiseIfUnhandledException(); } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise virtual public bool GetScrollHold() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise - /// - virtual public void SetScrollHold( bool hold) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hold); + virtual public void SetScrollHold(bool hold) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hold); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void GetLooping( out bool loop_h, out bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out loop_h, out loop_v); + virtual public void GetLooping(out bool loop_h, out bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out loop_h, out loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void SetLooping( bool loop_h, bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), loop_h, loop_v); + virtual public void SetLooping(bool loop_h, bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),loop_h, loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block virtual public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block - /// - virtual public void SetMovementBlock( Efl.Ui.ScrollBlock block) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), block); + virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),block); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -2644,9 +3143,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void GetGravity( out double x, out double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetGravity(out double x, out double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -2659,92 +3157,82 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void SetGravity( double x, double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetGravity(double x, double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size - /// - virtual public void SetMatchContent( bool w, bool h) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), w, h); + virtual public void SetMatchContent(bool w, bool h) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),w, h); Eina.Error.RaiseIfUnhandledException(); } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels virtual public Eina.Position2D GetStepSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels - /// - virtual public void SetStepSize( Eina.Position2D step) { + virtual public void SetStepSize(Eina.Position2D step) { Eina.Position2D.NativeStruct _in_step = step; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_step); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_step); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object. /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. /// The position where to scroll. and The size user want to see /// Whether to scroll with animation or not - /// - virtual public void Scroll( Eina.Rect rect, bool animation) { + virtual public void Scroll(Eina.Rect rect, bool animation) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect, animation); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect, animation); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void GetBarMode( out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out hbar, out vbar); + virtual public void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out hbar, out vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void SetBarMode( Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hbar, vbar); + virtual public void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hbar, vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar size. It is calculated based on viewport size-content sizes. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarSize( out double width, out double height) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out width, out height); + virtual public void GetBarSize(out double width, out double height) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out width, out height); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarPosition( out double posx, out double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out posx, out posy); + virtual public void GetBarPosition(out double posx, out double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out posx, out posy); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void SetBarPosition( double posx, double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), posx, posy); + virtual public void SetBarPosition(double posx, double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),posx, posy); Eina.Error.RaiseIfUnhandledException(); } /// Update bar visibility. /// The object will call this function whenever the bar need to be shown or hidden. - /// virtual public void UpdateBarVisibility() { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// If the widget needs a focus manager, this function will be called. @@ -2752,8 +3240,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The logical root object for focus. /// The focus manager. - virtual public Efl.Ui.Focus.IManager FocusManagerCreate( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.IWidgetFocusManagerNativeInherit.efl_ui_widget_focus_manager_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods.efl_ui_widget_focus_manager_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2767,7 +3255,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order. /// The order to use virtual public Eina.List GetCompositionElements() { - var _ret_var = Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, false); } @@ -2780,38 +3268,34 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order. /// The order to use - /// - virtual public void SetCompositionElements( Eina.List logical_order) { + virtual public void SetCompositionElements(Eina.List logical_order) { var _in_logical_order = logical_order.Handle; logical_order.Own = false; - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_elements_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_logical_order); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_elements_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_logical_order); Eina.Error.RaiseIfUnhandledException(); } /// Set to true if all children should be registered as logicals /// true or false virtual public bool GetLogicalMode() { - var _ret_var = Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set to true if all children should be registered as logicals /// true or false - /// - virtual public void SetLogicalMode( bool logical_mode) { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), logical_mode); + virtual public void SetLogicalMode(bool logical_mode) { + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),logical_mode); Eina.Error.RaiseIfUnhandledException(); } /// Mark this widget as dirty, the children can be considered to be changed after that call - /// virtual public void Dirty() { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_dirty_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_dirty_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// A call to prepare the children of this element, called if marked as dirty /// You can use this function to call composition_elements. - /// virtual public void Prepare() { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_prepare_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_prepare_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// The element which is currently focused by this manager @@ -2819,7 +3303,7 @@ logical_order.Own = false; /// (Since EFL 1.22) /// Currently focused element. virtual public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2827,9 +3311,8 @@ logical_order.Own = false; /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. - /// - virtual public void SetManagerFocus( Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), focus); + virtual public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. @@ -2837,7 +3320,7 @@ logical_order.Own = false; /// (Since EFL 1.22) /// The redirect manager. virtual public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2845,9 +3328,8 @@ logical_order.Own = false; /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. - /// - virtual public void SetRedirect( Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), redirect); + virtual public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. @@ -2855,7 +3337,7 @@ logical_order.Own = false; /// (Since EFL 1.22) /// An iterator over the border objects. virtual public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -2864,9 +3346,9 @@ logical_order.Own = false; /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. - virtual public Eina.Iterator GetViewportElements( Eina.Rect viewport) { + virtual public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_viewport); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -2875,7 +3357,7 @@ logical_order.Own = false; /// (Since EFL 1.22) /// Will be registered into this manager object. virtual public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2884,8 +3366,8 @@ logical_order.Own = false; /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node - virtual public bool SetRoot( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2894,8 +3376,8 @@ logical_order.Own = false; /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. - virtual public Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction); + virtual public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2905,8 +3387,8 @@ logical_order.Own = false; /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. - virtual public Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, child, logical); + virtual public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2915,8 +3397,8 @@ logical_order.Own = false; /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. - virtual public Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2925,8 +3407,8 @@ logical_order.Own = false; /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. - virtual public Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child); + virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); @@ -2937,24 +3419,22 @@ logical_order.Own = false; /// (Since EFL 1.22) /// Last object. virtual public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) - /// virtual public void ResetHistory() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) - /// virtual public void PopHistoryStack() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. @@ -2962,71 +3442,63 @@ logical_order.Own = false; /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. - /// - virtual public void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, entry); + virtual public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) - /// virtual public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) - /// virtual public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Get whether the homogeneous mode is enabled. /// Assume the items within the genlist are of the same height and width. Default is false. public bool Homogeneous { get { return GetHomogeneous(); } - set { SetHomogeneous( value); } + set { SetHomogeneous(value); } } /// Listview select mode. /// The select mode. public Elm.Object.SelectMode SelectMode { get { return GetSelectMode(); } - set { SetSelectMode( value); } + set { SetSelectMode(value); } } - /// -/// - public System.String DefaultStyle { + public System.String DefaultStyle { get { return GetDefaultStyle(); } - set { SetDefaultStyle( value); } + set { SetDefaultStyle(value); } } /// Listview layout factory set. /// The factory. public Efl.Ui.IFactory LayoutFactory { - set { SetLayoutFactory( value); } + set { SetLayoutFactory(value); } } /// Gets the number of currently selected children /// Number of currently selected children public int SelectedChildrenCount { get { return GetSelectedChildrenCount(); } } - /// -/// - public int ModelSize { + public int ModelSize { get { return GetModelSize(); } } /// Minimal content size. -/// public Eina.Size2D MinSize { get { return GetMinSize(); } - set { SetMinSize( value); } + set { SetMinSize(value); } } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. public Eina.Position2D ContentPos { get { return GetContentPos(); } - set { SetContentPos( value); } + set { SetContentPos(value); } } /// The content size /// The content size in pixels. @@ -3042,27 +3514,27 @@ logical_order.Own = false; /// true if freeze, false otherwise public bool ScrollFreeze { get { return GetScrollFreeze(); } - set { SetScrollFreeze( value); } + set { SetScrollFreeze(value); } } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise public bool ScrollHold { get { return GetScrollHold(); } - set { SetScrollHold( value); } + set { SetScrollHold(value); } } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block public Efl.Ui.ScrollBlock MovementBlock { get { return GetMovementBlock(); } - set { SetMovementBlock( value); } + set { SetMovementBlock(value); } } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels public Eina.Position2D StepSize { get { return GetStepSize(); } - set { SetStepSize( value); } + set { SetStepSize(value); } } /// Set the order of elements that will be used for composition /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx. @@ -3075,13 +3547,13 @@ logical_order.Own = false; /// The order to use public Eina.List CompositionElements { get { return GetCompositionElements(); } - set { SetCompositionElements( value); } + set { SetCompositionElements(value); } } /// Set to true if all children should be registered as logicals /// true or false public bool LogicalMode { get { return GetLogicalMode(); } - set { SetLogicalMode( value); } + set { SetLogicalMode(value); } } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. @@ -3089,7 +3561,7 @@ logical_order.Own = false; /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } - set { SetManagerFocus( value); } + set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. @@ -3097,7 +3569,7 @@ logical_order.Own = false; /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } - set { SetRedirect( value); } + set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See @@ -3112,2109 +3584,3344 @@ logical_order.Own = false; /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } - set { SetRoot( value); } + set { SetRoot(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.ListView.efl_ui_list_view_class_get(); } -} -public class ListViewNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_list_view_homogeneous_get_static_delegate == null) - efl_ui_list_view_homogeneous_get_static_delegate = new efl_ui_list_view_homogeneous_get_delegate(homogeneous_get); - if (methods.FirstOrDefault(m => m.Name == "GetHomogeneous") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_homogeneous_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_homogeneous_get_static_delegate)}); - if (efl_ui_list_view_homogeneous_set_static_delegate == null) - efl_ui_list_view_homogeneous_set_static_delegate = new efl_ui_list_view_homogeneous_set_delegate(homogeneous_set); - if (methods.FirstOrDefault(m => m.Name == "SetHomogeneous") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_homogeneous_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_homogeneous_set_static_delegate)}); - if (efl_ui_list_view_select_mode_get_static_delegate == null) - efl_ui_list_view_select_mode_get_static_delegate = new efl_ui_list_view_select_mode_get_delegate(select_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_select_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_select_mode_get_static_delegate)}); - if (efl_ui_list_view_select_mode_set_static_delegate == null) - efl_ui_list_view_select_mode_set_static_delegate = new efl_ui_list_view_select_mode_set_delegate(select_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelectMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_select_mode_set_static_delegate)}); - if (efl_ui_list_view_default_style_get_static_delegate == null) - efl_ui_list_view_default_style_get_static_delegate = new efl_ui_list_view_default_style_get_delegate(default_style_get); - if (methods.FirstOrDefault(m => m.Name == "GetDefaultStyle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_default_style_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_default_style_get_static_delegate)}); - if (efl_ui_list_view_default_style_set_static_delegate == null) - efl_ui_list_view_default_style_set_static_delegate = new efl_ui_list_view_default_style_set_delegate(default_style_set); - if (methods.FirstOrDefault(m => m.Name == "SetDefaultStyle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_default_style_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_default_style_set_static_delegate)}); - if (efl_ui_list_view_layout_factory_set_static_delegate == null) - efl_ui_list_view_layout_factory_set_static_delegate = new efl_ui_list_view_layout_factory_set_delegate(layout_factory_set); - if (methods.FirstOrDefault(m => m.Name == "SetLayoutFactory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_layout_factory_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_layout_factory_set_static_delegate)}); - if (efl_access_selection_selected_children_count_get_static_delegate == null) - efl_access_selection_selected_children_count_get_static_delegate = new efl_access_selection_selected_children_count_get_delegate(selected_children_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectedChildrenCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_selected_children_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_children_count_get_static_delegate)}); - if (efl_access_selection_selected_child_get_static_delegate == null) - efl_access_selection_selected_child_get_static_delegate = new efl_access_selection_selected_child_get_delegate(selected_child_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectedChild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_selected_child_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_child_get_static_delegate)}); - if (efl_access_selection_child_select_static_delegate == null) - efl_access_selection_child_select_static_delegate = new efl_access_selection_child_select_delegate(child_select); - if (methods.FirstOrDefault(m => m.Name == "ChildSelect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_child_select"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_child_select_static_delegate)}); - if (efl_access_selection_selected_child_deselect_static_delegate == null) - efl_access_selection_selected_child_deselect_static_delegate = new efl_access_selection_selected_child_deselect_delegate(selected_child_deselect); - if (methods.FirstOrDefault(m => m.Name == "SelectedChildDeselect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_selected_child_deselect"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_child_deselect_static_delegate)}); - if (efl_access_selection_is_child_selected_static_delegate == null) - efl_access_selection_is_child_selected_static_delegate = new efl_access_selection_is_child_selected_delegate(is_child_selected); - if (methods.FirstOrDefault(m => m.Name == "IsChildSelected") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_is_child_selected"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_is_child_selected_static_delegate)}); - if (efl_access_selection_all_children_select_static_delegate == null) - efl_access_selection_all_children_select_static_delegate = new efl_access_selection_all_children_select_delegate(all_children_select); - if (methods.FirstOrDefault(m => m.Name == "AllChildrenSelect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_all_children_select"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_all_children_select_static_delegate)}); - if (efl_access_selection_clear_static_delegate == null) - efl_access_selection_clear_static_delegate = new efl_access_selection_clear_delegate(access_selection_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearAccessSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_clear_static_delegate)}); - if (efl_access_selection_child_deselect_static_delegate == null) - efl_access_selection_child_deselect_static_delegate = new efl_access_selection_child_deselect_delegate(child_deselect); - if (methods.FirstOrDefault(m => m.Name == "ChildDeselect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_selection_child_deselect"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_child_deselect_static_delegate)}); - if (efl_ui_list_view_model_load_range_set_static_delegate == null) - efl_ui_list_view_model_load_range_set_static_delegate = new efl_ui_list_view_model_load_range_set_delegate(load_range_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadRange") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_load_range_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_load_range_set_static_delegate)}); - if (efl_ui_list_view_model_size_get_static_delegate == null) - efl_ui_list_view_model_size_get_static_delegate = new efl_ui_list_view_model_size_get_delegate(model_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetModelSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_size_get_static_delegate)}); - if (efl_ui_list_view_model_min_size_get_static_delegate == null) - efl_ui_list_view_model_min_size_get_static_delegate = new efl_ui_list_view_model_min_size_get_delegate(min_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetMinSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_min_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_min_size_get_static_delegate)}); - if (efl_ui_list_view_model_min_size_set_static_delegate == null) - efl_ui_list_view_model_min_size_set_static_delegate = new efl_ui_list_view_model_min_size_set_delegate(min_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetMinSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_min_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_min_size_set_static_delegate)}); - if (efl_ui_list_view_model_realize_static_delegate == null) - efl_ui_list_view_model_realize_static_delegate = new efl_ui_list_view_model_realize_delegate(realize); - if (methods.FirstOrDefault(m => m.Name == "Realize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_realize"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_realize_static_delegate)}); - if (efl_ui_list_view_model_unrealize_static_delegate == null) - efl_ui_list_view_model_unrealize_static_delegate = new efl_ui_list_view_model_unrealize_delegate(unrealize); - if (methods.FirstOrDefault(m => m.Name == "Unrealize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_unrealize"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_unrealize_static_delegate)}); - if (efl_ui_scrollable_content_pos_get_static_delegate == null) - efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate)}); - if (efl_ui_scrollable_content_pos_set_static_delegate == null) - efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate)}); - if (efl_ui_scrollable_content_size_get_static_delegate == null) - efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate)}); - if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) - efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) - efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) - efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) - efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) - efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) - efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) - efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate)}); - if (efl_ui_scrollable_looping_get_static_delegate == null) - efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); - if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate)}); - if (efl_ui_scrollable_looping_set_static_delegate == null) - efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); - if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate)}); - if (efl_ui_scrollable_movement_block_get_static_delegate == null) - efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate)}); - if (efl_ui_scrollable_movement_block_set_static_delegate == null) - efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate)}); - if (efl_ui_scrollable_gravity_get_static_delegate == null) - efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate)}); - if (efl_ui_scrollable_gravity_set_static_delegate == null) - efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate)}); - if (efl_ui_scrollable_match_content_set_static_delegate == null) - efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); - if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate)}); - if (efl_ui_scrollable_step_size_get_static_delegate == null) - efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate)}); - if (efl_ui_scrollable_step_size_set_static_delegate == null) - efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate)}); - if (efl_ui_scrollable_scroll_static_delegate == null) - efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); - if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) - efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) - efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate)}); - if (efl_ui_scrollbar_bar_size_get_static_delegate == null) - efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_get_static_delegate == null) - efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_set_static_delegate == null) - efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate)}); - if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) - efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate)}); - if (efl_ui_widget_focus_manager_create_static_delegate == null) - efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); - if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate)}); - if (efl_ui_focus_composition_elements_get_static_delegate == null) - efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetCompositionElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_get_static_delegate)}); - if (efl_ui_focus_composition_elements_set_static_delegate == null) - efl_ui_focus_composition_elements_set_static_delegate = new efl_ui_focus_composition_elements_set_delegate(composition_elements_set); - if (methods.FirstOrDefault(m => m.Name == "SetCompositionElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_elements_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_set_static_delegate)}); - if (efl_ui_focus_composition_logical_mode_get_static_delegate == null) - efl_ui_focus_composition_logical_mode_get_static_delegate = new efl_ui_focus_composition_logical_mode_get_delegate(logical_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetLogicalMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_logical_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_get_static_delegate)}); - if (efl_ui_focus_composition_logical_mode_set_static_delegate == null) - efl_ui_focus_composition_logical_mode_set_static_delegate = new efl_ui_focus_composition_logical_mode_set_delegate(logical_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetLogicalMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_logical_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_set_static_delegate)}); - if (efl_ui_focus_composition_dirty_static_delegate == null) - efl_ui_focus_composition_dirty_static_delegate = new efl_ui_focus_composition_dirty_delegate(dirty); - if (methods.FirstOrDefault(m => m.Name == "Dirty") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_dirty"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_dirty_static_delegate)}); - if (efl_ui_focus_composition_prepare_static_delegate == null) - efl_ui_focus_composition_prepare_static_delegate = new efl_ui_focus_composition_prepare_delegate(prepare); - if (methods.FirstOrDefault(m => m.Name == "Prepare") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_prepare"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_prepare_static_delegate)}); - if (efl_ui_focus_manager_focus_get_static_delegate == null) - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate)}); - if (efl_ui_focus_manager_focus_set_static_delegate == null) - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate)}); - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate)}); - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate)}); - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate)}); - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate)}); - if (efl_ui_focus_manager_root_get_static_delegate == null) - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate)}); - if (efl_ui_focus_manager_root_set_static_delegate == null) - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate)}); - if (efl_ui_focus_manager_move_static_delegate == null) - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate)}); - if (efl_ui_focus_manager_request_move_static_delegate == null) - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate)}); - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate)}); - if (efl_ui_focus_manager_fetch_static_delegate == null) - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate)}); - if (efl_ui_focus_manager_logical_end_static_delegate == null) - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate)}); - if (efl_ui_focus_manager_reset_history_static_delegate == null) - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate)}); - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate)}); - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ListView.efl_ui_list_view_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.ListView.efl_ui_list_view_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_list_view_homogeneous_get_static_delegate == null) + { + efl_ui_list_view_homogeneous_get_static_delegate = new efl_ui_list_view_homogeneous_get_delegate(homogeneous_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_list_view_homogeneous_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetHomogeneous") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_homogeneous_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_homogeneous_get_static_delegate) }); + } + if (efl_ui_list_view_homogeneous_set_static_delegate == null) + { + efl_ui_list_view_homogeneous_set_static_delegate = new efl_ui_list_view_homogeneous_set_delegate(homogeneous_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_list_view_homogeneous_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_homogeneous_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_homogeneous_get"); - private static bool homogeneous_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_view_homogeneous_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListView)wrapper).GetHomogeneous(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetHomogeneous") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_homogeneous_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_homogeneous_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_list_view_homogeneous_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_list_view_homogeneous_get_delegate efl_ui_list_view_homogeneous_get_static_delegate; + if (efl_ui_list_view_select_mode_get_static_delegate == null) + { + efl_ui_list_view_select_mode_get_static_delegate = new efl_ui_list_view_select_mode_get_delegate(select_mode_get); + } - private delegate void efl_ui_list_view_homogeneous_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool homogeneous); + if (methods.FirstOrDefault(m => m.Name == "GetSelectMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_select_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_select_mode_get_static_delegate) }); + } + if (efl_ui_list_view_select_mode_set_static_delegate == null) + { + efl_ui_list_view_select_mode_set_static_delegate = new efl_ui_list_view_select_mode_set_delegate(select_mode_set); + } - public delegate void efl_ui_list_view_homogeneous_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool homogeneous); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_homogeneous_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_homogeneous_set"); - private static void homogeneous_set(System.IntPtr obj, System.IntPtr pd, bool homogeneous) - { - Eina.Log.Debug("function efl_ui_list_view_homogeneous_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetHomogeneous( homogeneous); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSelectMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_select_mode_set_static_delegate) }); } - } else { - efl_ui_list_view_homogeneous_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), homogeneous); - } - } - private static efl_ui_list_view_homogeneous_set_delegate efl_ui_list_view_homogeneous_set_static_delegate; + if (efl_ui_list_view_default_style_get_static_delegate == null) + { + efl_ui_list_view_default_style_get_static_delegate = new efl_ui_list_view_default_style_get_delegate(default_style_get); + } - private delegate Elm.Object.SelectMode efl_ui_list_view_select_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetDefaultStyle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_default_style_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_default_style_get_static_delegate) }); + } + if (efl_ui_list_view_default_style_set_static_delegate == null) + { + efl_ui_list_view_default_style_set_static_delegate = new efl_ui_list_view_default_style_set_delegate(default_style_set); + } - public delegate Elm.Object.SelectMode efl_ui_list_view_select_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_select_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_select_mode_get"); - private static Elm.Object.SelectMode select_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_view_select_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Elm.Object.SelectMode _ret_var = default(Elm.Object.SelectMode); - try { - _ret_var = ((ListView)wrapper).GetSelectMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDefaultStyle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_default_style_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_default_style_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_list_view_select_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_list_view_select_mode_get_delegate efl_ui_list_view_select_mode_get_static_delegate; + if (efl_ui_list_view_layout_factory_set_static_delegate == null) + { + efl_ui_list_view_layout_factory_set_static_delegate = new efl_ui_list_view_layout_factory_set_delegate(layout_factory_set); + } - private delegate void efl_ui_list_view_select_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Object.SelectMode mode); + if (methods.FirstOrDefault(m => m.Name == "SetLayoutFactory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_layout_factory_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_layout_factory_set_static_delegate) }); + } + if (efl_access_selection_selected_children_count_get_static_delegate == null) + { + efl_access_selection_selected_children_count_get_static_delegate = new efl_access_selection_selected_children_count_get_delegate(selected_children_count_get); + } - public delegate void efl_ui_list_view_select_mode_set_api_delegate(System.IntPtr obj, Elm.Object.SelectMode mode); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_select_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_select_mode_set"); - private static void select_mode_set(System.IntPtr obj, System.IntPtr pd, Elm.Object.SelectMode mode) - { - Eina.Log.Debug("function efl_ui_list_view_select_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetSelectMode( mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSelectedChildrenCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_selected_children_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_children_count_get_static_delegate) }); } - } else { - efl_ui_list_view_select_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); - } - } - private static efl_ui_list_view_select_mode_set_delegate efl_ui_list_view_select_mode_set_static_delegate; + if (efl_access_selection_selected_child_get_static_delegate == null) + { + efl_access_selection_selected_child_get_static_delegate = new efl_access_selection_selected_child_get_delegate(selected_child_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] private delegate System.String efl_ui_list_view_default_style_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSelectedChild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_selected_child_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_child_get_static_delegate) }); + } + if (efl_access_selection_child_select_static_delegate == null) + { + efl_access_selection_child_select_static_delegate = new efl_access_selection_child_select_delegate(child_select); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] public delegate System.String efl_ui_list_view_default_style_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_default_style_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_default_style_get"); - private static System.String default_style_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_view_default_style_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ListView)wrapper).GetDefaultStyle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ChildSelect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_child_select"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_child_select_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_list_view_default_style_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_list_view_default_style_get_delegate efl_ui_list_view_default_style_get_static_delegate; + if (efl_access_selection_selected_child_deselect_static_delegate == null) + { + efl_access_selection_selected_child_deselect_static_delegate = new efl_access_selection_selected_child_deselect_delegate(selected_child_deselect); + } - private delegate void efl_ui_list_view_default_style_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String style); + if (methods.FirstOrDefault(m => m.Name == "SelectedChildDeselect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_selected_child_deselect"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_selected_child_deselect_static_delegate) }); + } + if (efl_access_selection_is_child_selected_static_delegate == null) + { + efl_access_selection_is_child_selected_static_delegate = new efl_access_selection_is_child_selected_delegate(is_child_selected); + } - public delegate void efl_ui_list_view_default_style_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String style); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_default_style_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_default_style_set"); - private static void default_style_set(System.IntPtr obj, System.IntPtr pd, System.String style) - { - Eina.Log.Debug("function efl_ui_list_view_default_style_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetDefaultStyle( style); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "IsChildSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_is_child_selected"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_is_child_selected_static_delegate) }); } - } else { - efl_ui_list_view_default_style_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); - } - } - private static efl_ui_list_view_default_style_set_delegate efl_ui_list_view_default_style_set_static_delegate; + if (efl_access_selection_all_children_select_static_delegate == null) + { + efl_access_selection_all_children_select_static_delegate = new efl_access_selection_all_children_select_delegate(all_children_select); + } - private delegate void efl_ui_list_view_layout_factory_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IFactory factory); + if (methods.FirstOrDefault(m => m.Name == "AllChildrenSelect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_all_children_select"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_all_children_select_static_delegate) }); + } + if (efl_access_selection_clear_static_delegate == null) + { + efl_access_selection_clear_static_delegate = new efl_access_selection_clear_delegate(access_selection_clear); + } - public delegate void efl_ui_list_view_layout_factory_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IFactory factory); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_layout_factory_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_layout_factory_set"); - private static void layout_factory_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.IFactory factory) - { - Eina.Log.Debug("function efl_ui_list_view_layout_factory_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetLayoutFactory( factory); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ClearAccessSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_clear_static_delegate) }); } - } else { - efl_ui_list_view_layout_factory_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factory); - } - } - private static efl_ui_list_view_layout_factory_set_delegate efl_ui_list_view_layout_factory_set_static_delegate; + if (efl_access_selection_child_deselect_static_delegate == null) + { + efl_access_selection_child_deselect_static_delegate = new efl_access_selection_child_deselect_delegate(child_deselect); + } - private delegate int efl_access_selection_selected_children_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "ChildDeselect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_selection_child_deselect"), func = Marshal.GetFunctionPointerForDelegate(efl_access_selection_child_deselect_static_delegate) }); + } + if (efl_ui_list_view_model_load_range_set_static_delegate == null) + { + efl_ui_list_view_model_load_range_set_static_delegate = new efl_ui_list_view_model_load_range_set_delegate(load_range_set); + } - public delegate int efl_access_selection_selected_children_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_selection_selected_children_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_selected_children_count_get"); - private static int selected_children_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_selection_selected_children_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ListView)wrapper).GetSelectedChildrenCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLoadRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_load_range_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_load_range_set_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_selected_children_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_selection_selected_children_count_get_delegate efl_access_selection_selected_children_count_get_static_delegate; + if (efl_ui_list_view_model_size_get_static_delegate == null) + { + efl_ui_list_view_model_size_get_static_delegate = new efl_ui_list_view_model_size_get_delegate(model_size_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_access_selection_selected_child_get_delegate(System.IntPtr obj, System.IntPtr pd, int selected_child_index); + if (methods.FirstOrDefault(m => m.Name == "GetModelSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_size_get_static_delegate) }); + } + if (efl_ui_list_view_model_min_size_get_static_delegate == null) + { + efl_ui_list_view_model_min_size_get_static_delegate = new efl_ui_list_view_model_min_size_get_delegate(min_size_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_access_selection_selected_child_get_api_delegate(System.IntPtr obj, int selected_child_index); - public static Efl.Eo.FunctionWrapper efl_access_selection_selected_child_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_selected_child_get"); - private static Efl.Object selected_child_get(System.IntPtr obj, System.IntPtr pd, int selected_child_index) - { - Eina.Log.Debug("function efl_access_selection_selected_child_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((ListView)wrapper).GetSelectedChild( selected_child_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMinSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_min_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_min_size_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_selected_child_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selected_child_index); - } - } - private static efl_access_selection_selected_child_get_delegate efl_access_selection_selected_child_get_static_delegate; + if (efl_ui_list_view_model_min_size_set_static_delegate == null) + { + efl_ui_list_view_model_min_size_set_static_delegate = new efl_ui_list_view_model_min_size_set_delegate(min_size_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_child_select_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + if (methods.FirstOrDefault(m => m.Name == "SetMinSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_min_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_min_size_set_static_delegate) }); + } + if (efl_ui_list_view_model_realize_static_delegate == null) + { + efl_ui_list_view_model_realize_static_delegate = new efl_ui_list_view_model_realize_delegate(realize); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_child_select_api_delegate(System.IntPtr obj, int child_index); - public static Efl.Eo.FunctionWrapper efl_access_selection_child_select_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_child_select"); - private static bool child_select(System.IntPtr obj, System.IntPtr pd, int child_index) - { - Eina.Log.Debug("function efl_access_selection_child_select was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListView)wrapper).ChildSelect( child_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Realize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_realize"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_realize_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_child_select_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); - } - } - private static efl_access_selection_child_select_delegate efl_access_selection_child_select_static_delegate; + if (efl_ui_list_view_model_unrealize_static_delegate == null) + { + efl_ui_list_view_model_unrealize_static_delegate = new efl_ui_list_view_model_unrealize_delegate(unrealize); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_selected_child_deselect_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + if (methods.FirstOrDefault(m => m.Name == "Unrealize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_unrealize"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_unrealize_static_delegate) }); + } + if (efl_ui_scrollable_content_pos_get_static_delegate == null) + { + efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_selected_child_deselect_api_delegate(System.IntPtr obj, int child_index); - public static Efl.Eo.FunctionWrapper efl_access_selection_selected_child_deselect_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_selected_child_deselect"); - private static bool selected_child_deselect(System.IntPtr obj, System.IntPtr pd, int child_index) - { - Eina.Log.Debug("function efl_access_selection_selected_child_deselect was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListView)wrapper).SelectedChildDeselect( child_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_selected_child_deselect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); - } - } - private static efl_access_selection_selected_child_deselect_delegate efl_access_selection_selected_child_deselect_static_delegate; + if (efl_ui_scrollable_content_pos_set_static_delegate == null) + { + efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_is_child_selected_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); + } + if (efl_ui_scrollable_content_size_get_static_delegate == null) + { + efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_is_child_selected_api_delegate(System.IntPtr obj, int child_index); - public static Efl.Eo.FunctionWrapper efl_access_selection_is_child_selected_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_is_child_selected"); - private static bool is_child_selected(System.IntPtr obj, System.IntPtr pd, int child_index) - { - Eina.Log.Debug("function efl_access_selection_is_child_selected was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListView)wrapper).IsChildSelected( child_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_is_child_selected_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); - } - } - private static efl_access_selection_is_child_selected_delegate efl_access_selection_is_child_selected_static_delegate; + if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) + { + efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_all_children_select_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); + } + if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_all_children_select_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_selection_all_children_select_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_all_children_select"); - private static bool all_children_select(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_selection_all_children_select was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListView)wrapper).AllChildrenSelect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_all_children_select_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_selection_all_children_select_delegate efl_access_selection_all_children_select_static_delegate; + if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); + } + if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_selection_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_clear"); - private static bool access_selection_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_selection_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListView)wrapper).ClearAccessSelection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_selection_clear_delegate efl_access_selection_clear_static_delegate; + if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_selection_child_deselect_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); + } + if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_selection_child_deselect_api_delegate(System.IntPtr obj, int child_index); - public static Efl.Eo.FunctionWrapper efl_access_selection_child_deselect_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_selection_child_deselect"); - private static bool child_deselect(System.IntPtr obj, System.IntPtr pd, int child_index) - { - Eina.Log.Debug("function efl_access_selection_child_deselect was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListView)wrapper).ChildDeselect( child_index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); } - return _ret_var; - } else { - return efl_access_selection_child_deselect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); - } - } - private static efl_access_selection_child_deselect_delegate efl_access_selection_child_deselect_static_delegate; + if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); + } - private delegate void efl_ui_list_view_model_load_range_set_delegate(System.IntPtr obj, System.IntPtr pd, int first, int count); + if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); + } + if (efl_ui_scrollable_looping_get_static_delegate == null) + { + efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); + } - public delegate void efl_ui_list_view_model_load_range_set_api_delegate(System.IntPtr obj, int first, int count); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_load_range_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_load_range_set"); - private static void load_range_set(System.IntPtr obj, System.IntPtr pd, int first, int count) - { - Eina.Log.Debug("function efl_ui_list_view_model_load_range_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetLoadRange( first, count); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); } - } else { - efl_ui_list_view_model_load_range_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), first, count); - } - } - private static efl_ui_list_view_model_load_range_set_delegate efl_ui_list_view_model_load_range_set_static_delegate; + if (efl_ui_scrollable_looping_set_static_delegate == null) + { + efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); + } - private delegate int efl_ui_list_view_model_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); + } + if (efl_ui_scrollable_movement_block_get_static_delegate == null) + { + efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); + } - public delegate int efl_ui_list_view_model_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_size_get"); - private static int model_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_view_model_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((ListView)wrapper).GetModelSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_list_view_model_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_list_view_model_size_get_delegate efl_ui_list_view_model_size_get_static_delegate; + if (efl_ui_scrollable_movement_block_set_static_delegate == null) + { + efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); + } - private delegate Eina.Size2D.NativeStruct efl_ui_list_view_model_min_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); + } + if (efl_ui_scrollable_gravity_get_static_delegate == null) + { + efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); + } - public delegate Eina.Size2D.NativeStruct efl_ui_list_view_model_min_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_min_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_min_size_get"); - private static Eina.Size2D.NativeStruct min_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_view_model_min_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((ListView)wrapper).GetMinSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_list_view_model_min_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_list_view_model_min_size_get_delegate efl_ui_list_view_model_min_size_get_static_delegate; + if (efl_ui_scrollable_gravity_set_static_delegate == null) + { + efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); + } - private delegate void efl_ui_list_view_model_min_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct min); + if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); + } + if (efl_ui_scrollable_match_content_set_static_delegate == null) + { + efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); + } - public delegate void efl_ui_list_view_model_min_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct min); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_min_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_min_size_set"); - private static void min_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct min) - { - Eina.Log.Debug("function efl_ui_list_view_model_min_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_min = min; - - try { - ((ListView)wrapper).SetMinSize( _in_min); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); } - } else { - efl_ui_list_view_model_min_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min); - } - } - private static efl_ui_list_view_model_min_size_set_delegate efl_ui_list_view_model_min_size_set_static_delegate; + if (efl_ui_scrollable_step_size_get_static_delegate == null) + { + efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); + } - private delegate System.IntPtr efl_ui_list_view_model_realize_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); + if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); + } + if (efl_ui_scrollable_step_size_set_static_delegate == null) + { + efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); + } - public delegate System.IntPtr efl_ui_list_view_model_realize_api_delegate(System.IntPtr obj, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_realize_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_realize"); - private static System.IntPtr realize(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item) - { - Eina.Log.Debug("function efl_ui_list_view_model_realize was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ListViewLayoutItem _in_item = item; - Efl.Ui.ListViewLayoutItem _ret_var = default(Efl.Ui.ListViewLayoutItem); - try { - _ret_var = ((ListView)wrapper).Realize( ref _in_item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); } - item = _in_item; - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_list_view_model_realize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref item); - } - } - private static efl_ui_list_view_model_realize_delegate efl_ui_list_view_model_realize_static_delegate; + if (efl_ui_scrollable_scroll_static_delegate == null) + { + efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); + } - private delegate void efl_ui_list_view_model_unrealize_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); + if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) }); + } + if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); + } - public delegate void efl_ui_list_view_model_unrealize_api_delegate(System.IntPtr obj, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_unrealize_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_unrealize"); - private static void unrealize(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item) - { - Eina.Log.Debug("function efl_ui_list_view_model_unrealize was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ListViewLayoutItem _in_item = item; - - try { - ((ListView)wrapper).Unrealize( ref _in_item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate) }); } - item = _in_item; - } else { - efl_ui_list_view_model_unrealize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref item); - } - } - private static efl_ui_list_view_model_unrealize_delegate efl_ui_list_view_model_unrealize_static_delegate; + if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); + } - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate) }); + } + if (efl_ui_scrollbar_bar_size_get_static_delegate == null) + { + efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); + } - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_get"); - private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((ListView)wrapper).GetContentPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; + if (efl_ui_scrollbar_bar_position_get_static_delegate == null) + { + efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); + } - private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate) }); + } + if (efl_ui_scrollbar_bar_position_set_static_delegate == null) + { + efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); + } - public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_set"); - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((ListView)wrapper).SetContentPos( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate) }); } - } else { - efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; + if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) + { + efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); + } - private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate) }); + } + if (efl_ui_widget_focus_manager_create_static_delegate == null) + { + efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); + } - public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_size_get"); - private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((ListView)wrapper).GetContentSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; + if (efl_ui_focus_composition_elements_get_static_delegate == null) + { + efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get); + } - private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCompositionElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_get_static_delegate) }); + } + if (efl_ui_focus_composition_elements_set_static_delegate == null) + { + efl_ui_focus_composition_elements_set_static_delegate = new efl_ui_focus_composition_elements_set_delegate(composition_elements_set); + } - public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_viewport_geometry_get"); - private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((ListView)wrapper).GetViewportGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCompositionElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_elements_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; + if (efl_ui_focus_composition_logical_mode_get_static_delegate == null) + { + efl_ui_focus_composition_logical_mode_get_static_delegate = new efl_ui_focus_composition_logical_mode_get_delegate(logical_mode_get); + } - private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + if (methods.FirstOrDefault(m => m.Name == "GetLogicalMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_logical_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_get_static_delegate) }); + } + if (efl_ui_focus_composition_logical_mode_set_static_delegate == null) + { + efl_ui_focus_composition_logical_mode_set_static_delegate = new efl_ui_focus_composition_logical_mode_set_delegate(logical_mode_set); + } - public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_get"); - private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - horiz = default(bool); vert = default(bool); - try { - ((ListView)wrapper).GetBounceEnabled( out horiz, out vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetLogicalMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_logical_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_set_static_delegate) }); } - } else { - efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); - } - } - private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + if (efl_ui_focus_composition_dirty_static_delegate == null) + { + efl_ui_focus_composition_dirty_static_delegate = new efl_ui_focus_composition_dirty_delegate(dirty); + } - private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + if (methods.FirstOrDefault(m => m.Name == "Dirty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_dirty"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_dirty_static_delegate) }); + } + if (efl_ui_focus_composition_prepare_static_delegate == null) + { + efl_ui_focus_composition_prepare_static_delegate = new efl_ui_focus_composition_prepare_delegate(prepare); + } - public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_set"); - private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetBounceEnabled( horiz, vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Prepare") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_prepare"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_prepare_static_delegate) }); } - } else { - efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); - } - } - private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + if (efl_ui_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + } + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_get"); - private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListView)wrapper).GetScrollFreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); + } - private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + } + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); + } - public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_set"); - private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetScrollFreeze( freeze); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); } - } else { - efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); - } - } - private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + } + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_get"); - private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListView)wrapper).GetScrollHold(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + } - private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + } + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); + } - public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_set"); - private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetScrollHold( hold); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); } - } else { - efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); - } - } - private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } - private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + } + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } - public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_get"); - private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - loop_h = default(bool); loop_v = default(bool); - try { - ((ListView)wrapper).GetLooping( out loop_h, out loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + } + + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + } + + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + } + + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); + } + + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } + + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + } + + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } + + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); + } + + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + } + + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } + + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + } + + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + } + + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } + + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ListView.efl_ui_list_view_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_list_view_homogeneous_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_list_view_homogeneous_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_homogeneous_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_homogeneous_get"); + + private static bool homogeneous_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_list_view_homogeneous_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListView)wrapper).GetHomogeneous(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_list_view_homogeneous_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_list_view_homogeneous_get_delegate efl_ui_list_view_homogeneous_get_static_delegate; + + + private delegate void efl_ui_list_view_homogeneous_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool homogeneous); + + + public delegate void efl_ui_list_view_homogeneous_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool homogeneous); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_homogeneous_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_homogeneous_set"); + + private static void homogeneous_set(System.IntPtr obj, System.IntPtr pd, bool homogeneous) + { + Eina.Log.Debug("function efl_ui_list_view_homogeneous_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetHomogeneous(homogeneous); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_list_view_homogeneous_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), homogeneous); + } + } + + private static efl_ui_list_view_homogeneous_set_delegate efl_ui_list_view_homogeneous_set_static_delegate; + + + private delegate Elm.Object.SelectMode efl_ui_list_view_select_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Elm.Object.SelectMode efl_ui_list_view_select_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_select_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_select_mode_get"); + + private static Elm.Object.SelectMode select_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_list_view_select_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Elm.Object.SelectMode _ret_var = default(Elm.Object.SelectMode); + try + { + _ret_var = ((ListView)wrapper).GetSelectMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_list_view_select_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_list_view_select_mode_get_delegate efl_ui_list_view_select_mode_get_static_delegate; + + + private delegate void efl_ui_list_view_select_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Object.SelectMode mode); + + + public delegate void efl_ui_list_view_select_mode_set_api_delegate(System.IntPtr obj, Elm.Object.SelectMode mode); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_select_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_select_mode_set"); + + private static void select_mode_set(System.IntPtr obj, System.IntPtr pd, Elm.Object.SelectMode mode) + { + Eina.Log.Debug("function efl_ui_list_view_select_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetSelectMode(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_list_view_select_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); + } + } + + private static efl_ui_list_view_select_mode_set_delegate efl_ui_list_view_select_mode_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] + private delegate System.String efl_ui_list_view_default_style_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] + public delegate System.String efl_ui_list_view_default_style_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_default_style_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_default_style_get"); + + private static System.String default_style_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_list_view_default_style_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ListView)wrapper).GetDefaultStyle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_list_view_default_style_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_list_view_default_style_get_delegate efl_ui_list_view_default_style_get_static_delegate; + + + private delegate void efl_ui_list_view_default_style_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String style); + + + public delegate void efl_ui_list_view_default_style_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String style); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_default_style_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_default_style_set"); + + private static void default_style_set(System.IntPtr obj, System.IntPtr pd, System.String style) + { + Eina.Log.Debug("function efl_ui_list_view_default_style_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetDefaultStyle(style); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_list_view_default_style_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); + } + } + + private static efl_ui_list_view_default_style_set_delegate efl_ui_list_view_default_style_set_static_delegate; + + + private delegate void efl_ui_list_view_layout_factory_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); + + + public delegate void efl_ui_list_view_layout_factory_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_layout_factory_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_layout_factory_set"); + + private static void layout_factory_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.IFactory factory) + { + Eina.Log.Debug("function efl_ui_list_view_layout_factory_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetLayoutFactory(factory); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_list_view_layout_factory_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factory); + } + } + + private static efl_ui_list_view_layout_factory_set_delegate efl_ui_list_view_layout_factory_set_static_delegate; + + + private delegate int efl_access_selection_selected_children_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_access_selection_selected_children_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_selection_selected_children_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_selected_children_count_get"); + + private static int selected_children_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_selection_selected_children_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ListView)wrapper).GetSelectedChildrenCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_selection_selected_children_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_selection_selected_children_count_get_delegate efl_access_selection_selected_children_count_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_access_selection_selected_child_get_delegate(System.IntPtr obj, System.IntPtr pd, int selected_child_index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_access_selection_selected_child_get_api_delegate(System.IntPtr obj, int selected_child_index); + + public static Efl.Eo.FunctionWrapper efl_access_selection_selected_child_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_selected_child_get"); + + private static Efl.Object selected_child_get(System.IntPtr obj, System.IntPtr pd, int selected_child_index) + { + Eina.Log.Debug("function efl_access_selection_selected_child_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((ListView)wrapper).GetSelectedChild(selected_child_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_selection_selected_child_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selected_child_index); + } + } + + private static efl_access_selection_selected_child_get_delegate efl_access_selection_selected_child_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_child_select_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_child_select_api_delegate(System.IntPtr obj, int child_index); + + public static Efl.Eo.FunctionWrapper efl_access_selection_child_select_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_child_select"); + + private static bool child_select(System.IntPtr obj, System.IntPtr pd, int child_index) + { + Eina.Log.Debug("function efl_access_selection_child_select was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListView)wrapper).ChildSelect(child_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_selection_child_select_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); + } + } + + private static efl_access_selection_child_select_delegate efl_access_selection_child_select_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_selected_child_deselect_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_selected_child_deselect_api_delegate(System.IntPtr obj, int child_index); + + public static Efl.Eo.FunctionWrapper efl_access_selection_selected_child_deselect_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_selected_child_deselect"); + + private static bool selected_child_deselect(System.IntPtr obj, System.IntPtr pd, int child_index) + { + Eina.Log.Debug("function efl_access_selection_selected_child_deselect was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListView)wrapper).SelectedChildDeselect(child_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_selection_selected_child_deselect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); + } + } + + private static efl_access_selection_selected_child_deselect_delegate efl_access_selection_selected_child_deselect_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_is_child_selected_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_is_child_selected_api_delegate(System.IntPtr obj, int child_index); + + public static Efl.Eo.FunctionWrapper efl_access_selection_is_child_selected_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_is_child_selected"); + + private static bool is_child_selected(System.IntPtr obj, System.IntPtr pd, int child_index) + { + Eina.Log.Debug("function efl_access_selection_is_child_selected was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListView)wrapper).IsChildSelected(child_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_selection_is_child_selected_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); + } + } + + private static efl_access_selection_is_child_selected_delegate efl_access_selection_is_child_selected_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_all_children_select_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_all_children_select_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_selection_all_children_select_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_all_children_select"); + + private static bool all_children_select(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_selection_all_children_select was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListView)wrapper).AllChildrenSelect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_selection_all_children_select_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_selection_all_children_select_delegate efl_access_selection_all_children_select_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_selection_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_clear"); + + private static bool access_selection_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_selection_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListView)wrapper).ClearAccessSelection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_selection_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_selection_clear_delegate efl_access_selection_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_selection_child_deselect_delegate(System.IntPtr obj, System.IntPtr pd, int child_index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_selection_child_deselect_api_delegate(System.IntPtr obj, int child_index); + + public static Efl.Eo.FunctionWrapper efl_access_selection_child_deselect_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_selection_child_deselect"); + + private static bool child_deselect(System.IntPtr obj, System.IntPtr pd, int child_index) + { + Eina.Log.Debug("function efl_access_selection_child_deselect was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListView)wrapper).ChildDeselect(child_index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_selection_child_deselect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_index); + } + } + + private static efl_access_selection_child_deselect_delegate efl_access_selection_child_deselect_static_delegate; + + + private delegate void efl_ui_list_view_model_load_range_set_delegate(System.IntPtr obj, System.IntPtr pd, int first, int count); + + + public delegate void efl_ui_list_view_model_load_range_set_api_delegate(System.IntPtr obj, int first, int count); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_load_range_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_load_range_set"); + + private static void load_range_set(System.IntPtr obj, System.IntPtr pd, int first, int count) + { + Eina.Log.Debug("function efl_ui_list_view_model_load_range_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetLoadRange(first, count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_list_view_model_load_range_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), first, count); + } + } + + private static efl_ui_list_view_model_load_range_set_delegate efl_ui_list_view_model_load_range_set_static_delegate; + + + private delegate int efl_ui_list_view_model_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_ui_list_view_model_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_size_get"); + + private static int model_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_list_view_model_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((ListView)wrapper).GetModelSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_list_view_model_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_list_view_model_size_get_delegate efl_ui_list_view_model_size_get_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_ui_list_view_model_min_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_ui_list_view_model_min_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_min_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_min_size_get"); + + private static Eina.Size2D.NativeStruct min_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_list_view_model_min_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((ListView)wrapper).GetMinSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_list_view_model_min_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_list_view_model_min_size_get_delegate efl_ui_list_view_model_min_size_get_static_delegate; + + + private delegate void efl_ui_list_view_model_min_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct min); + + + public delegate void efl_ui_list_view_model_min_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct min); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_min_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_min_size_set"); + + private static void min_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct min) + { + Eina.Log.Debug("function efl_ui_list_view_model_min_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_min = min; + + try + { + ((ListView)wrapper).SetMinSize(_in_min); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_list_view_model_min_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min); + } + } + + private static efl_ui_list_view_model_min_size_set_delegate efl_ui_list_view_model_min_size_set_static_delegate; + + + private delegate System.IntPtr efl_ui_list_view_model_realize_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); + + + public delegate System.IntPtr efl_ui_list_view_model_realize_api_delegate(System.IntPtr obj, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_realize_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_realize"); + + private static System.IntPtr realize(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item) + { + Eina.Log.Debug("function efl_ui_list_view_model_realize was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ListViewLayoutItem _in_item = item; + Efl.Ui.ListViewLayoutItem _ret_var = default(Efl.Ui.ListViewLayoutItem); + try + { + _ret_var = ((ListView)wrapper).Realize(ref _in_item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + item = _in_item; + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); + + } + else + { + return efl_ui_list_view_model_realize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref item); + } + } + + private static efl_ui_list_view_model_realize_delegate efl_ui_list_view_model_realize_static_delegate; + + + private delegate void efl_ui_list_view_model_unrealize_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); + + + public delegate void efl_ui_list_view_model_unrealize_api_delegate(System.IntPtr obj, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_unrealize_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_unrealize"); + + private static void unrealize(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item) + { + Eina.Log.Debug("function efl_ui_list_view_model_unrealize was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ListViewLayoutItem _in_item = item; + + try + { + ((ListView)wrapper).Unrealize(ref _in_item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + item = _in_item; + + } + else + { + efl_ui_list_view_model_unrealize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref item); + } + } + + private static efl_ui_list_view_model_unrealize_delegate efl_ui_list_view_model_unrealize_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); + + private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((ListView)wrapper).GetContentPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; + + + private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + + public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); + + private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((ListView)wrapper).SetContentPos(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + } + } + + private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); + + private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((ListView)wrapper).GetContentSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); + + private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((ListView)wrapper).GetViewportGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; + + + private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + + public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); + + private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((ListView)wrapper).GetBounceEnabled(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + } + } + + private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + + + private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + + public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); + + private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetBounceEnabled(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + } + } + + private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); + + private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListView)wrapper).GetScrollFreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; + + + private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + + public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); + + private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetScrollFreeze(freeze); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); + } + } + + private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); + + private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListView)wrapper).GetScrollHold(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + + + private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + + public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); + + private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetScrollHold(hold); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); } - } else { - efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); } - } - private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; + + + private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); - public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_set"); - private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetLooping( loop_h, loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + loop_h = default(bool); loop_v = default(bool); + try + { + ((ListView)wrapper).GetLooping(out loop_h, out loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); } - } else { - efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); } - } - private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + + + private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); - public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_get"); - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try { - _ret_var = ((ListView)wrapper).GetMovementBlock(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetLooping(loop_h, loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); } + } + + private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + + + private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); + + private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); + try + { + _ret_var = ((ListView)wrapper).GetMovementBlock(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; + private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; - private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + + public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); - public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_set"); - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetMovementBlock( block); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetMovementBlock(block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); } - } else { - efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); } - } - private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); - private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); - public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_get"); - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((ListView)wrapper).GetGravity( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((ListView)wrapper).GetGravity(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } else { - efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } - private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); - private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); - public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_set"); - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetGravity( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetGravity(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } else { - efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } - private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + + + private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + + public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); + private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) + { + Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetMatchContent(w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + } + } - public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_match_content_set"); - private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetMatchContent( w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); + + private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((ListView)wrapper).GetStepSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); } - } - private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_get"); - private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((ListView)wrapper).GetStepSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); + + private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_step = step; + + try + { + ((ListView)wrapper).SetStepSize(_in_step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); + } + } + + private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; + + + private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + + public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); + + private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + + try + { + ((ListView)wrapper).Scroll(_in_rect, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); + } + } + + private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + + public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_get"); + + private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); + try + { + ((ListView)wrapper).GetBarMode(out hbar, out vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); + } + } + + private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + + public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_set"); + + private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetBarMode(hbar, vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + } + } + + private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + + public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_size_get"); + + private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + width = default(double); height = default(double); + try + { + ((ListView)wrapper).GetBarSize(out width, out height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); + } + } + + private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + + public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_get"); + + private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + posx = default(double); posy = default(double); + try + { + ((ListView)wrapper).GetBarPosition(out posx, out posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); + } + } + + private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + + public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_set"); + + private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetBarPosition(posx, posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); + } + } + + private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_visibility_update"); + + private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).UpdateBarVisibility(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); + + private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((ListView)wrapper).FocusManagerCreate(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + + private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_focus_composition_elements_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_elements_get"); + + private static System.IntPtr composition_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((ListView)wrapper).GetCompositionElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_ui_focus_composition_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_composition_elements_get_delegate efl_ui_focus_composition_elements_get_static_delegate; + + + private delegate void efl_ui_focus_composition_elements_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order); + + + public delegate void efl_ui_focus_composition_elements_set_api_delegate(System.IntPtr obj, System.IntPtr logical_order); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_elements_set"); + + private static void composition_elements_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order) + { + Eina.Log.Debug("function efl_ui_focus_composition_elements_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_logical_order = new Eina.List(logical_order, true, false); + + try + { + ((ListView)wrapper).SetCompositionElements(_in_logical_order); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_elements_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_order); } + } + + private static efl_ui_focus_composition_elements_set_delegate efl_ui_focus_composition_elements_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_composition_logical_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_composition_logical_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_logical_mode_get"); + + private static bool logical_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListView)wrapper).GetLogicalMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_composition_logical_mode_get_delegate efl_ui_focus_composition_logical_mode_get_static_delegate; + + + private delegate void efl_ui_focus_composition_logical_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool logical_mode); + + + public delegate void efl_ui_focus_composition_logical_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool logical_mode); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_logical_mode_set"); + + private static void logical_mode_set(System.IntPtr obj, System.IntPtr pd, bool logical_mode) + { + Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetLogicalMode(logical_mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_mode); + } } - } - private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; + private static efl_ui_focus_composition_logical_mode_set_delegate efl_ui_focus_composition_logical_mode_set_static_delegate; + + + private delegate void efl_ui_focus_composition_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_composition_dirty_api_delegate(System.IntPtr obj); - private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_dirty_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_dirty"); + private static void dirty(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_dirty was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).Dirty(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_set"); - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_step = step; - - try { - ((ListView)wrapper).SetStepSize( _in_step); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_ui_focus_composition_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } - private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; + private static efl_ui_focus_composition_dirty_delegate efl_ui_focus_composition_dirty_static_delegate; + + + private delegate void efl_ui_focus_composition_prepare_delegate(System.IntPtr obj, System.IntPtr pd); - private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + public delegate void efl_ui_focus_composition_prepare_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_prepare_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_prepare"); - public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll"); - private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - - try { - ((ListView)wrapper).Scroll( _in_rect, animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void prepare(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_prepare was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).Prepare(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } - } - private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; + private static efl_ui_focus_composition_prepare_delegate efl_ui_focus_composition_prepare_static_delegate; - private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_get"); - private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); - try { - ((ListView)wrapper).GetBarMode( out hbar, out vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); - } - } - private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); - private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ListView)wrapper).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_set"); - private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetBarMode( hbar, vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); - public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_size_get"); - private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - width = default(double); height = default(double); - try { - ((ListView)wrapper).GetBarSize( out width, out height); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); } - } else { - efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); } - } - private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; - - private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_get"); - private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - posx = default(double); posy = default(double); - try { - ((ListView)wrapper).GetBarPosition( out posx, out posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); - } - } - private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); - private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((ListView)wrapper).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_set"); - private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetBarPosition( posx, posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); - private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_visibility_update"); - private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((ListView)wrapper).UpdateBarVisibility(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); + } } - } - private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_manager_create"); - private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((ListView)wrapper).FocusManagerCreate( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); - private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((ListView)wrapper).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - public delegate System.IntPtr efl_ui_focus_composition_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_elements_get"); - private static System.IntPtr composition_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((ListView)wrapper).GetCompositionElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_ui_focus_composition_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_composition_elements_get_delegate efl_ui_focus_composition_elements_get_static_delegate; + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - private delegate void efl_ui_focus_composition_elements_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order); - + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); - public delegate void efl_ui_focus_composition_elements_set_api_delegate(System.IntPtr obj, System.IntPtr logical_order); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_elements_set"); - private static void composition_elements_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order) - { - Eina.Log.Debug("function efl_ui_focus_composition_elements_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_logical_order = new Eina.List(logical_order, true, false); - - try { - ((ListView)wrapper).SetCompositionElements( _in_logical_order); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_elements_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_order); - } - } - private static efl_ui_focus_composition_elements_set_delegate efl_ui_focus_composition_elements_set_static_delegate; + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_composition_logical_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((ListView)wrapper).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_composition_logical_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_logical_mode_get"); - private static bool logical_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListView)wrapper).GetLogicalMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } } - } - private static efl_ui_focus_composition_logical_mode_get_delegate efl_ui_focus_composition_logical_mode_get_static_delegate; + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; - private delegate void efl_ui_focus_composition_logical_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool logical_mode); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_composition_logical_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool logical_mode); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_logical_mode_set"); - private static void logical_mode_set(System.IntPtr obj, System.IntPtr pd, bool logical_mode) - { - Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetLogicalMode( logical_mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_mode); - } - } - private static efl_ui_focus_composition_logical_mode_set_delegate efl_ui_focus_composition_logical_mode_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); - private delegate void efl_ui_focus_composition_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ListView)wrapper).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_focus_composition_dirty_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_dirty_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_dirty"); - private static void dirty(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_dirty was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).Dirty(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_focus_composition_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_composition_dirty_delegate efl_ui_focus_composition_dirty_static_delegate; + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; - private delegate void efl_ui_focus_composition_prepare_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - public delegate void efl_ui_focus_composition_prepare_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_prepare_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_prepare"); - private static void prepare(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_prepare was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).Prepare(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_composition_prepare_delegate efl_ui_focus_composition_prepare_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ListView)wrapper).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_get"); - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ListView)wrapper).GetManagerFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; - - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_set"); - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetManagerFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ListView)wrapper).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_get"); - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((ListView)wrapper).GetRedirect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } } - } - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; - - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_set"); - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetRedirect( redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ListView)wrapper).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_border_elements_get"); - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((ListView)wrapper).GetBorderElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } } - } - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_viewport_elements_get"); - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((ListView)wrapper).GetViewportElements( _in_viewport); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); - } - } - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((ListView)wrapper).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_get"); - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ListView)wrapper).GetRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_set"); - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ListView)wrapper).SetRoot( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((ListView)wrapper).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_move"); - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ListView)wrapper).Move( direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } } - } - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_move"); - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ListView)wrapper).MoveRequest( direction, child, logical); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); - } - } - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((ListView)wrapper).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_subchild"); - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((ListView)wrapper).RequestSubchild( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; - - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_fetch"); - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try { - _ret_var = ((ListView)wrapper).Fetch( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); - } - } - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; - + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_logical_end"); - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try { - _ret_var = ((ListView)wrapper).LogicalEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_reset_history"); - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).ResetHistory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_pop_history_stack"); - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).PopHistoryStack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); } - } else { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).SetupOnFirstTouch( direction, entry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); } - } - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).FreezeDirtyLogic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ListView)wrapper).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListView)wrapper).DirtyLogicUnfreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; } -} } -namespace Efl { namespace Ui { -/// + +namespace Efl { + +namespace Ui { + [StructLayout(LayoutKind.Sequential)] public struct ListViewItemEvent { - /// - public Efl.Ui.Layout Layout; - /// - public Efl.IModel Child; - /// - public int Index; + public Efl.Ui.Layout Layout; + public Efl.IModel Child; + public int Index; ///Constructor for ListViewItemEvent. public ListViewItemEvent( - Efl.Ui.Layout Layout=default(Efl.Ui.Layout), - Efl.IModel Child=default(Efl.IModel), - int Index=default(int) ) + Efl.Ui.Layout Layout = default(Efl.Ui.Layout), + Efl.IModel Child = default(Efl.IModel), + int Index = default(int) ) { this.Layout = Layout; this.Child = Child; @@ -5263,4 +6970,7 @@ public struct ListViewItemEvent } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_model.eo.cs index f62a2ed..a805227 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_model.eo.cs @@ -3,375 +3,490 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[IListViewModelNativeInherit] +namespace Efl { + +namespace Ui { + +[Efl.Ui.IListViewModelConcrete.NativeMethods] public interface IListViewModel : Efl.Eo.IWrapper, IDisposable { - /// -/// -/// -/// -void SetLoadRange( int first, int count); - /// -/// -int GetModelSize(); + void SetLoadRange(int first, int count); + int GetModelSize(); /// Minimal content size. -/// Eina.Size2D GetMinSize(); /// Minimal content size. -/// -/// -void SetMinSize( Eina.Size2D min); - /// -/// -/// -Efl.Ui.ListViewLayoutItem Realize( ref Efl.Ui.ListViewLayoutItem item); - /// -/// -/// -void Unrealize( ref Efl.Ui.ListViewLayoutItem item); - /// -/// - int ModelSize { +void SetMinSize(Eina.Size2D min); + Efl.Ui.ListViewLayoutItem Realize(ref Efl.Ui.ListViewLayoutItem item); + void Unrealize(ref Efl.Ui.ListViewLayoutItem item); + int ModelSize { get ; } /// Minimal content size. -/// Eina.Size2D MinSize { get ; set ; } } -/// sealed public class IListViewModelConcrete : IListViewModel { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IListViewModelConcrete)) - return Efl.Ui.IListViewModelNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IListViewModelConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_list_view_model_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IListViewModelConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IListViewModelConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } - /// - /// - /// - /// - public void SetLoadRange( int first, int count) { - Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_load_range_set_ptr.Value.Delegate(this.NativeHandle, first, count); + + public void SetLoadRange(int first, int count) { + Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_load_range_set_ptr.Value.Delegate(this.NativeHandle,first, count); Eina.Error.RaiseIfUnhandledException(); } - /// - /// public int GetModelSize() { - var _ret_var = Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Minimal content size. - /// public Eina.Size2D GetMinSize() { - var _ret_var = Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_min_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_min_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Minimal content size. - /// - /// - public void SetMinSize( Eina.Size2D min) { + public void SetMinSize(Eina.Size2D min) { Eina.Size2D.NativeStruct _in_min = min; - Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_min_size_set_ptr.Value.Delegate(this.NativeHandle, _in_min); + Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_min_size_set_ptr.Value.Delegate(this.NativeHandle,_in_min); Eina.Error.RaiseIfUnhandledException(); } - /// - /// - /// - public Efl.Ui.ListViewLayoutItem Realize( ref Efl.Ui.ListViewLayoutItem item) { + public Efl.Ui.ListViewLayoutItem Realize(ref Efl.Ui.ListViewLayoutItem item) { Efl.Ui.ListViewLayoutItem.NativeStruct _in_item = item; - var _ret_var = Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_realize_ptr.Value.Delegate(this.NativeHandle, ref _in_item); + var _ret_var = Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_realize_ptr.Value.Delegate(this.NativeHandle,ref _in_item); Eina.Error.RaiseIfUnhandledException(); item = _in_item; var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); return __ret_tmp; } - /// - /// - /// - public void Unrealize( ref Efl.Ui.ListViewLayoutItem item) { + public void Unrealize(ref Efl.Ui.ListViewLayoutItem item) { Efl.Ui.ListViewLayoutItem.NativeStruct _in_item = item; - Efl.Ui.IListViewModelNativeInherit.efl_ui_list_view_model_unrealize_ptr.Value.Delegate(this.NativeHandle, ref _in_item); + Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_unrealize_ptr.Value.Delegate(this.NativeHandle,ref _in_item); Eina.Error.RaiseIfUnhandledException(); item = _in_item; } - /// -/// - public int ModelSize { + public int ModelSize { get { return GetModelSize(); } } /// Minimal content size. -/// public Eina.Size2D MinSize { get { return GetMinSize(); } - set { SetMinSize( value); } + set { SetMinSize(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IListViewModelConcrete.efl_ui_list_view_model_interface_get(); } -} -public class IListViewModelNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_list_view_model_load_range_set_static_delegate == null) - efl_ui_list_view_model_load_range_set_static_delegate = new efl_ui_list_view_model_load_range_set_delegate(load_range_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoadRange") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_load_range_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_load_range_set_static_delegate)}); - if (efl_ui_list_view_model_size_get_static_delegate == null) - efl_ui_list_view_model_size_get_static_delegate = new efl_ui_list_view_model_size_get_delegate(model_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetModelSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_size_get_static_delegate)}); - if (efl_ui_list_view_model_min_size_get_static_delegate == null) - efl_ui_list_view_model_min_size_get_static_delegate = new efl_ui_list_view_model_min_size_get_delegate(min_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetMinSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_min_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_min_size_get_static_delegate)}); - if (efl_ui_list_view_model_min_size_set_static_delegate == null) - efl_ui_list_view_model_min_size_set_static_delegate = new efl_ui_list_view_model_min_size_set_delegate(min_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetMinSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_min_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_min_size_set_static_delegate)}); - if (efl_ui_list_view_model_realize_static_delegate == null) - efl_ui_list_view_model_realize_static_delegate = new efl_ui_list_view_model_realize_delegate(realize); - if (methods.FirstOrDefault(m => m.Name == "Realize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_realize"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_realize_static_delegate)}); - if (efl_ui_list_view_model_unrealize_static_delegate == null) - efl_ui_list_view_model_unrealize_static_delegate = new efl_ui_list_view_model_unrealize_delegate(unrealize); - if (methods.FirstOrDefault(m => m.Name == "Unrealize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_model_unrealize"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_unrealize_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IListViewModelConcrete.efl_ui_list_view_model_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IListViewModelConcrete.efl_ui_list_view_model_interface_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_list_view_model_load_range_set_static_delegate == null) + { + efl_ui_list_view_model_load_range_set_static_delegate = new efl_ui_list_view_model_load_range_set_delegate(load_range_set); + } - private delegate void efl_ui_list_view_model_load_range_set_delegate(System.IntPtr obj, System.IntPtr pd, int first, int count); + if (methods.FirstOrDefault(m => m.Name == "SetLoadRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_load_range_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_load_range_set_static_delegate) }); + } + if (efl_ui_list_view_model_size_get_static_delegate == null) + { + efl_ui_list_view_model_size_get_static_delegate = new efl_ui_list_view_model_size_get_delegate(model_size_get); + } - public delegate void efl_ui_list_view_model_load_range_set_api_delegate(System.IntPtr obj, int first, int count); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_load_range_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_load_range_set"); - private static void load_range_set(System.IntPtr obj, System.IntPtr pd, int first, int count) - { - Eina.Log.Debug("function efl_ui_list_view_model_load_range_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IListViewModel)wrapper).SetLoadRange( first, count); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetModelSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_size_get_static_delegate) }); + } + + if (efl_ui_list_view_model_min_size_get_static_delegate == null) + { + efl_ui_list_view_model_min_size_get_static_delegate = new efl_ui_list_view_model_min_size_get_delegate(min_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMinSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_min_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_min_size_get_static_delegate) }); + } + + if (efl_ui_list_view_model_min_size_set_static_delegate == null) + { + efl_ui_list_view_model_min_size_set_static_delegate = new efl_ui_list_view_model_min_size_set_delegate(min_size_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMinSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_min_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_min_size_set_static_delegate) }); + } + + if (efl_ui_list_view_model_realize_static_delegate == null) + { + efl_ui_list_view_model_realize_static_delegate = new efl_ui_list_view_model_realize_delegate(realize); + } + + if (methods.FirstOrDefault(m => m.Name == "Realize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_realize"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_realize_static_delegate) }); } - } else { - efl_ui_list_view_model_load_range_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), first, count); + + if (efl_ui_list_view_model_unrealize_static_delegate == null) + { + efl_ui_list_view_model_unrealize_static_delegate = new efl_ui_list_view_model_unrealize_delegate(unrealize); + } + + if (methods.FirstOrDefault(m => m.Name == "Unrealize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_view_model_unrealize"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_model_unrealize_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.IListViewModelConcrete.efl_ui_list_view_model_interface_get(); } - } - private static efl_ui_list_view_model_load_range_set_delegate efl_ui_list_view_model_load_range_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate int efl_ui_list_view_model_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_list_view_model_load_range_set_delegate(System.IntPtr obj, System.IntPtr pd, int first, int count); + + public delegate void efl_ui_list_view_model_load_range_set_api_delegate(System.IntPtr obj, int first, int count); - public delegate int efl_ui_list_view_model_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_size_get"); - private static int model_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_view_model_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((IListViewModel)wrapper).GetModelSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_load_range_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_load_range_set"); + + private static void load_range_set(System.IntPtr obj, System.IntPtr pd, int first, int count) + { + Eina.Log.Debug("function efl_ui_list_view_model_load_range_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IListViewModel)wrapper).SetLoadRange(first, count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_list_view_model_load_range_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), first, count); } - return _ret_var; - } else { - return efl_ui_list_view_model_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_list_view_model_size_get_delegate efl_ui_list_view_model_size_get_static_delegate; + private static efl_ui_list_view_model_load_range_set_delegate efl_ui_list_view_model_load_range_set_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_ui_list_view_model_min_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_ui_list_view_model_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_ui_list_view_model_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_size_get"); + + private static int model_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_list_view_model_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IListViewModel)wrapper).GetModelSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Size2D.NativeStruct efl_ui_list_view_model_min_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_min_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_min_size_get"); - private static Eina.Size2D.NativeStruct min_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_view_model_min_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IListViewModel)wrapper).GetMinSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_ui_list_view_model_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_list_view_model_size_get_delegate efl_ui_list_view_model_size_get_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_ui_list_view_model_min_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_ui_list_view_model_min_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_min_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_min_size_get"); + + private static Eina.Size2D.NativeStruct min_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_list_view_model_min_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IListViewModel)wrapper).GetMinSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_list_view_model_min_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_list_view_model_min_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_list_view_model_min_size_get_delegate efl_ui_list_view_model_min_size_get_static_delegate; + private static efl_ui_list_view_model_min_size_get_delegate efl_ui_list_view_model_min_size_get_static_delegate; - private delegate void efl_ui_list_view_model_min_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct min); + + private delegate void efl_ui_list_view_model_min_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct min); + + + public delegate void efl_ui_list_view_model_min_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct min); + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_min_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_min_size_set"); - public delegate void efl_ui_list_view_model_min_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct min); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_min_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_min_size_set"); - private static void min_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct min) - { - Eina.Log.Debug("function efl_ui_list_view_model_min_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_min = min; + private static void min_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct min) + { + Eina.Log.Debug("function efl_ui_list_view_model_min_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_min = min; - try { - ((IListViewModel)wrapper).SetMinSize( _in_min); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IListViewModel)wrapper).SetMinSize(_in_min); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_list_view_model_min_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min); } - } else { - efl_ui_list_view_model_min_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min); } - } - private static efl_ui_list_view_model_min_size_set_delegate efl_ui_list_view_model_min_size_set_static_delegate; + private static efl_ui_list_view_model_min_size_set_delegate efl_ui_list_view_model_min_size_set_static_delegate; - private delegate System.IntPtr efl_ui_list_view_model_realize_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); + + private delegate System.IntPtr efl_ui_list_view_model_realize_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); + + public delegate System.IntPtr efl_ui_list_view_model_realize_api_delegate(System.IntPtr obj, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); - public delegate System.IntPtr efl_ui_list_view_model_realize_api_delegate(System.IntPtr obj, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_realize_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_realize"); - private static System.IntPtr realize(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item) - { - Eina.Log.Debug("function efl_ui_list_view_model_realize was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ListViewLayoutItem _in_item = item; + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_realize_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_realize"); + + private static System.IntPtr realize(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item) + { + Eina.Log.Debug("function efl_ui_list_view_model_realize was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ListViewLayoutItem _in_item = item; Efl.Ui.ListViewLayoutItem _ret_var = default(Efl.Ui.ListViewLayoutItem); - try { - _ret_var = ((IListViewModel)wrapper).Realize( ref _in_item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + _ret_var = ((IListViewModel)wrapper).Realize(ref _in_item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + item = _in_item; return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_list_view_model_realize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref item); + + } + else + { + return efl_ui_list_view_model_realize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref item); + } } - } - private static efl_ui_list_view_model_realize_delegate efl_ui_list_view_model_realize_static_delegate; + private static efl_ui_list_view_model_realize_delegate efl_ui_list_view_model_realize_static_delegate; - private delegate void efl_ui_list_view_model_unrealize_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); + + private delegate void efl_ui_list_view_model_unrealize_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); + + + public delegate void efl_ui_list_view_model_unrealize_api_delegate(System.IntPtr obj, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); + public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_unrealize_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_view_model_unrealize"); - public delegate void efl_ui_list_view_model_unrealize_api_delegate(System.IntPtr obj, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_model_unrealize_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_model_unrealize"); - private static void unrealize(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item) - { - Eina.Log.Debug("function efl_ui_list_view_model_unrealize was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ListViewLayoutItem _in_item = item; + private static void unrealize(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item) + { + Eina.Log.Debug("function efl_ui_list_view_model_unrealize was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ListViewLayoutItem _in_item = item; - try { - ((IListViewModel)wrapper).Unrealize( ref _in_item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((IListViewModel)wrapper).Unrealize(ref _in_item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + item = _in_item; - } else { - efl_ui_list_view_model_unrealize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref item); + + } + else + { + efl_ui_list_view_model_unrealize_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref item); + } } - } - private static efl_ui_list_view_model_unrealize_delegate efl_ui_list_view_model_unrealize_static_delegate; + + private static efl_ui_list_view_model_unrealize_delegate efl_ui_list_view_model_unrealize_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_pan.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_pan.eo.cs index 0ec2349..42be2a1 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_pan.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_pan.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary Efl_Ui_List_View pan class -[ListViewPanNativeInherit] +[Efl.Ui.ListViewPan.NativeMethods] public class ListViewPan : Efl.Ui.Pan, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ListViewPan)) - return Efl.Ui.ListViewPanNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ListViewPan)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_list_view_pan_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ListViewPan(Efl.Object parent= null - ) : - base(efl_ui_list_view_pan_class_get(), typeof(ListViewPan), parent) + ) : base(efl_ui_list_view_pan_class_get(), typeof(ListViewPan), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ListViewPan(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ListViewPan(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ListViewPan(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.ListViewPan.efl_ui_list_view_pan_class_get(); } -} -public class ListViewPanNativeInherit : Efl.Ui.PanNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ListViewPan.efl_ui_list_view_pan_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Pan.NativeMethods { - return Efl.Ui.ListViewPan.efl_ui_list_view_pan_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ListViewPan.efl_ui_list_view_pan_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_precise_layouter.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_precise_layouter.eo.cs deleted file mode 100644 index 2cfec6f..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_precise_layouter.eo.cs +++ /dev/null @@ -1,241 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[ListViewPreciseLayouterNativeInherit] -public class ListViewPreciseLayouter : Efl.Object, Efl.Eo.IWrapper,Efl.Ui.IListViewRelayout -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ListViewPreciseLayouter)) - return Efl.Ui.ListViewPreciseLayouterNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_list_view_precise_layouter_class_get(); - ///Creates a new instance. - ///Parent instance. - public ListViewPreciseLayouter(Efl.Object parent= null - ) : - base(efl_ui_list_view_precise_layouter_class_get(), typeof(ListViewPreciseLayouter), parent) - { - FinishInstantiation(); - } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - protected ListViewPreciseLayouter(System.IntPtr raw) : base(raw) - { - RegisterEventProxies(); - } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ListViewPreciseLayouter(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } - /// Model that is/will be - /// Efl model - /// - virtual public void SetModel( Efl.IModel model) { - Efl.Ui.IListViewRelayoutNativeInherit.efl_ui_list_view_relayout_model_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), model); - Eina.Error.RaiseIfUnhandledException(); - } - /// - /// The order to use - virtual public Eina.List GetElements() { - var _ret_var = Efl.Ui.IListViewRelayoutNativeInherit.efl_ui_list_view_relayout_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); - Eina.Error.RaiseIfUnhandledException(); - return new Eina.List(_ret_var, false, false); - } - /// - /// - /// - /// - /// - virtual public void LayoutDo( Efl.Ui.IListViewModel modeler, int first, EflUiListViewSegArray children) { - Efl.Ui.IListViewRelayoutNativeInherit.efl_ui_list_view_relayout_layout_do_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), modeler, first, children); - Eina.Error.RaiseIfUnhandledException(); - } - /// - /// - /// - virtual public void ContentCreated( ref Efl.Ui.ListViewLayoutItem item) { - Efl.Ui.ListViewLayoutItem.NativeStruct _in_item = item; - Efl.Ui.IListViewRelayoutNativeInherit.efl_ui_list_view_relayout_content_created_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref _in_item); - Eina.Error.RaiseIfUnhandledException(); - item = _in_item; - } - /// Model that is/will be -/// Efl model - public Efl.IModel Model { - set { SetModel( value); } - } - /// -/// The order to use - public Eina.List Elements { - get { return GetElements(); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.ListViewPreciseLayouter.efl_ui_list_view_precise_layouter_class_get(); - } -} -public class ListViewPreciseLayouterNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_list_view_relayout_model_set_static_delegate == null) - efl_ui_list_view_relayout_model_set_static_delegate = new efl_ui_list_view_relayout_model_set_delegate(model_set); - if (methods.FirstOrDefault(m => m.Name == "SetModel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_relayout_model_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_relayout_model_set_static_delegate)}); - if (efl_ui_list_view_relayout_elements_get_static_delegate == null) - efl_ui_list_view_relayout_elements_get_static_delegate = new efl_ui_list_view_relayout_elements_get_delegate(elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_relayout_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_relayout_elements_get_static_delegate)}); - if (efl_ui_list_view_relayout_layout_do_static_delegate == null) - efl_ui_list_view_relayout_layout_do_static_delegate = new efl_ui_list_view_relayout_layout_do_delegate(layout_do); - if (methods.FirstOrDefault(m => m.Name == "LayoutDo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_relayout_layout_do"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_relayout_layout_do_static_delegate)}); - if (efl_ui_list_view_relayout_content_created_static_delegate == null) - efl_ui_list_view_relayout_content_created_static_delegate = new efl_ui_list_view_relayout_content_created_delegate(content_created); - if (methods.FirstOrDefault(m => m.Name == "ContentCreated") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_relayout_content_created"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_relayout_content_created_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ListViewPreciseLayouter.efl_ui_list_view_precise_layouter_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.ListViewPreciseLayouter.efl_ui_list_view_precise_layouter_class_get(); - } - - - private delegate void efl_ui_list_view_relayout_model_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model); - - - public delegate void efl_ui_list_view_relayout_model_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_relayout_model_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_relayout_model_set"); - private static void model_set(System.IntPtr obj, System.IntPtr pd, Efl.IModel model) - { - Eina.Log.Debug("function efl_ui_list_view_relayout_model_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListViewPreciseLayouter)wrapper).SetModel( model); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_list_view_relayout_model_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model); - } - } - private static efl_ui_list_view_relayout_model_set_delegate efl_ui_list_view_relayout_model_set_static_delegate; - - - private delegate System.IntPtr efl_ui_list_view_relayout_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate System.IntPtr efl_ui_list_view_relayout_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_relayout_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_relayout_elements_get"); - private static System.IntPtr elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_view_relayout_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((ListViewPreciseLayouter)wrapper).GetElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var.Handle; - } else { - return efl_ui_list_view_relayout_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_list_view_relayout_elements_get_delegate efl_ui_list_view_relayout_elements_get_static_delegate; - - - private delegate void efl_ui_list_view_relayout_layout_do_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IListViewModel modeler, int first, EflUiListViewSegArray children); - - - public delegate void efl_ui_list_view_relayout_layout_do_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IListViewModel modeler, int first, EflUiListViewSegArray children); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_relayout_layout_do_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_relayout_layout_do"); - private static void layout_do(System.IntPtr obj, System.IntPtr pd, Efl.Ui.IListViewModel modeler, int first, EflUiListViewSegArray children) - { - Eina.Log.Debug("function efl_ui_list_view_relayout_layout_do was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ListViewPreciseLayouter)wrapper).LayoutDo( modeler, first, children); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_list_view_relayout_layout_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), modeler, first, children); - } - } - private static efl_ui_list_view_relayout_layout_do_delegate efl_ui_list_view_relayout_layout_do_static_delegate; - - - private delegate void efl_ui_list_view_relayout_content_created_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); - - - public delegate void efl_ui_list_view_relayout_content_created_api_delegate(System.IntPtr obj, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_relayout_content_created_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_relayout_content_created"); - private static void content_created(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item) - { - Eina.Log.Debug("function efl_ui_list_view_relayout_content_created was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ListViewLayoutItem _in_item = item; - - try { - ((ListViewPreciseLayouter)wrapper).ContentCreated( ref _in_item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - item = _in_item; - } else { - efl_ui_list_view_relayout_content_created_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref item); - } - } - private static efl_ui_list_view_relayout_content_created_delegate efl_ui_list_view_relayout_content_created_static_delegate; -} -} } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_relayout.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_relayout.eo.cs deleted file mode 100644 index f6010d3..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_relayout.eo.cs +++ /dev/null @@ -1,289 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[IListViewRelayoutNativeInherit] -public interface IListViewRelayout : - Efl.Eo.IWrapper, IDisposable -{ - /// Model that is/will be -/// Efl model -/// -void SetModel( Efl.IModel model); - /// -/// The order to use -Eina.List GetElements(); - /// -/// -/// -/// -/// -void LayoutDo( Efl.Ui.IListViewModel modeler, int first, EflUiListViewSegArray children); - /// -/// -/// -void ContentCreated( ref Efl.Ui.ListViewLayoutItem item); - /// Model that is/will be -/// Efl model - Efl.IModel Model { - set ; - } - /// -/// The order to use - Eina.List Elements { - get ; - } -} -/// -sealed public class IListViewRelayoutConcrete : - -IListViewRelayout - -{ - ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IListViewRelayoutConcrete)) - return Efl.Ui.IListViewRelayoutNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - private System.IntPtr handle; - ///Pointer to the native instance. - public System.IntPtr NativeHandle { - get { return handle; } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_list_view_relayout_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - private IListViewRelayoutConcrete(System.IntPtr raw) - { - handle = raw; - RegisterEventProxies(); - } - ///Destructor. - ~IListViewRelayoutConcrete() - { - Dispose(false); - } - ///Releases the underlying native instance. - void Dispose(bool disposing) - { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; - } - } - ///Releases the underlying native instance. - public void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } - /// Model that is/will be - /// Efl model - /// - public void SetModel( Efl.IModel model) { - Efl.Ui.IListViewRelayoutNativeInherit.efl_ui_list_view_relayout_model_set_ptr.Value.Delegate(this.NativeHandle, model); - Eina.Error.RaiseIfUnhandledException(); - } - /// - /// The order to use - public Eina.List GetElements() { - var _ret_var = Efl.Ui.IListViewRelayoutNativeInherit.efl_ui_list_view_relayout_elements_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return new Eina.List(_ret_var, false, false); - } - /// - /// - /// - /// - /// - public void LayoutDo( Efl.Ui.IListViewModel modeler, int first, EflUiListViewSegArray children) { - Efl.Ui.IListViewRelayoutNativeInherit.efl_ui_list_view_relayout_layout_do_ptr.Value.Delegate(this.NativeHandle, modeler, first, children); - Eina.Error.RaiseIfUnhandledException(); - } - /// - /// - /// - public void ContentCreated( ref Efl.Ui.ListViewLayoutItem item) { - Efl.Ui.ListViewLayoutItem.NativeStruct _in_item = item; - Efl.Ui.IListViewRelayoutNativeInherit.efl_ui_list_view_relayout_content_created_ptr.Value.Delegate(this.NativeHandle, ref _in_item); - Eina.Error.RaiseIfUnhandledException(); - item = _in_item; - } - /// Model that is/will be -/// Efl model - public Efl.IModel Model { - set { SetModel( value); } - } - /// -/// The order to use - public Eina.List Elements { - get { return GetElements(); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.IListViewRelayoutConcrete.efl_ui_list_view_relayout_interface_get(); - } -} -public class IListViewRelayoutNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_list_view_relayout_model_set_static_delegate == null) - efl_ui_list_view_relayout_model_set_static_delegate = new efl_ui_list_view_relayout_model_set_delegate(model_set); - if (methods.FirstOrDefault(m => m.Name == "SetModel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_relayout_model_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_relayout_model_set_static_delegate)}); - if (efl_ui_list_view_relayout_elements_get_static_delegate == null) - efl_ui_list_view_relayout_elements_get_static_delegate = new efl_ui_list_view_relayout_elements_get_delegate(elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_relayout_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_relayout_elements_get_static_delegate)}); - if (efl_ui_list_view_relayout_layout_do_static_delegate == null) - efl_ui_list_view_relayout_layout_do_static_delegate = new efl_ui_list_view_relayout_layout_do_delegate(layout_do); - if (methods.FirstOrDefault(m => m.Name == "LayoutDo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_relayout_layout_do"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_relayout_layout_do_static_delegate)}); - if (efl_ui_list_view_relayout_content_created_static_delegate == null) - efl_ui_list_view_relayout_content_created_static_delegate = new efl_ui_list_view_relayout_content_created_delegate(content_created); - if (methods.FirstOrDefault(m => m.Name == "ContentCreated") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_list_view_relayout_content_created"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_view_relayout_content_created_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IListViewRelayoutConcrete.efl_ui_list_view_relayout_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IListViewRelayoutConcrete.efl_ui_list_view_relayout_interface_get(); - } - - - private delegate void efl_ui_list_view_relayout_model_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model); - - - public delegate void efl_ui_list_view_relayout_model_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_relayout_model_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_relayout_model_set"); - private static void model_set(System.IntPtr obj, System.IntPtr pd, Efl.IModel model) - { - Eina.Log.Debug("function efl_ui_list_view_relayout_model_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IListViewRelayout)wrapper).SetModel( model); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_list_view_relayout_model_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model); - } - } - private static efl_ui_list_view_relayout_model_set_delegate efl_ui_list_view_relayout_model_set_static_delegate; - - - private delegate System.IntPtr efl_ui_list_view_relayout_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate System.IntPtr efl_ui_list_view_relayout_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_relayout_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_relayout_elements_get"); - private static System.IntPtr elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_view_relayout_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((IListViewRelayout)wrapper).GetElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var.Handle; - } else { - return efl_ui_list_view_relayout_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_list_view_relayout_elements_get_delegate efl_ui_list_view_relayout_elements_get_static_delegate; - - - private delegate void efl_ui_list_view_relayout_layout_do_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IListViewModel modeler, int first, EflUiListViewSegArray children); - - - public delegate void efl_ui_list_view_relayout_layout_do_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IListViewModel modeler, int first, EflUiListViewSegArray children); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_relayout_layout_do_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_relayout_layout_do"); - private static void layout_do(System.IntPtr obj, System.IntPtr pd, Efl.Ui.IListViewModel modeler, int first, EflUiListViewSegArray children) - { - Eina.Log.Debug("function efl_ui_list_view_relayout_layout_do was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IListViewRelayout)wrapper).LayoutDo( modeler, first, children); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_list_view_relayout_layout_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), modeler, first, children); - } - } - private static efl_ui_list_view_relayout_layout_do_delegate efl_ui_list_view_relayout_layout_do_static_delegate; - - - private delegate void efl_ui_list_view_relayout_content_created_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); - - - public delegate void efl_ui_list_view_relayout_content_created_api_delegate(System.IntPtr obj, ref Efl.Ui.ListViewLayoutItem.NativeStruct item); - public static Efl.Eo.FunctionWrapper efl_ui_list_view_relayout_content_created_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_list_view_relayout_content_created"); - private static void content_created(System.IntPtr obj, System.IntPtr pd, ref Efl.Ui.ListViewLayoutItem.NativeStruct item) - { - Eina.Log.Debug("function efl_ui_list_view_relayout_content_created was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ListViewLayoutItem _in_item = item; - - try { - ((IListViewRelayout)wrapper).ContentCreated( ref _in_item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - item = _in_item; - } else { - efl_ui_list_view_relayout_content_created_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref item); - } - } - private static efl_ui_list_view_relayout_content_created_delegate efl_ui_list_view_relayout_content_created_static_delegate; -} -} } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_types.eot.cs index c21e9a3..a4aa657 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_types.eot.cs @@ -3,38 +3,33 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// +namespace Efl { + +namespace Ui { + [StructLayout(LayoutKind.Sequential)] public struct ListViewLayoutItem { - /// - public Efl.Ui.Layout Layout; - /// - public Eina.Future Layout_request; - /// - public Efl.IModel Children; - /// - public int Index_offset; - /// - public System.IntPtr Tree_node; - /// - public Eina.Size2D Min; - /// - public Eina.Size2D Size; - /// - public Eina.Position2D Pos; + public Efl.Ui.Layout Layout; + public Eina.Future Layout_request; + public Efl.IModel Children; + public int Index_offset; + public System.IntPtr Tree_node; + public Eina.Size2D Min; + public Eina.Size2D Size; + public Eina.Position2D Pos; ///Constructor for ListViewLayoutItem. public ListViewLayoutItem( - Efl.Ui.Layout Layout=default(Efl.Ui.Layout), - Eina.Future Layout_request=default( Eina.Future), - Efl.IModel Children=default(Efl.IModel), - int Index_offset=default(int), - System.IntPtr Tree_node=default(System.IntPtr), - Eina.Size2D Min=default(Eina.Size2D), - Eina.Size2D Size=default(Eina.Size2D), - Eina.Position2D Pos=default(Eina.Position2D) ) + Efl.Ui.Layout Layout = default(Efl.Ui.Layout), + Eina.Future Layout_request = default( Eina.Future), + Efl.IModel Children = default(Efl.IModel), + int Index_offset = default(int), + System.IntPtr Tree_node = default(System.IntPtr), + Eina.Size2D Min = default(Eina.Size2D), + Eina.Size2D Size = default(Eina.Size2D), + Eina.Position2D Pos = default(Eina.Position2D) ) { this.Layout = Layout; this.Layout_request = Layout_request; @@ -108,9 +103,10 @@ public struct ListViewLayoutItem } -} } +} + +} -/// [StructLayout(LayoutKind.Sequential)] public struct EflUiListViewSegArray { @@ -146,3 +142,4 @@ public struct EflUiListViewSegArray } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_multi_selectable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_multi_selectable.eo.cs index 26935f3..c468618 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_multi_selectable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_multi_selectable.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI Multi selectable interface. The container have to control select property of multiple chidren. -[IMultiSelectableNativeInherit] +[Efl.Ui.IMultiSelectableConcrete.NativeMethods] public interface IMultiSelectable : Efl.Eo.IWrapper, IDisposable { @@ -15,8 +19,7 @@ public interface IMultiSelectable : Efl.Ui.SelectMode GetSelectMode(); /// The mode type for children selection. /// Type of selection of children -/// -void SetSelectMode( Efl.Ui.SelectMode mode); +void SetSelectMode(Efl.Ui.SelectMode mode); /// The mode type for children selection. /// Type of selection of children Efl.Ui.SelectMode SelectMode { @@ -31,169 +34,252 @@ IMultiSelectable { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IMultiSelectableConcrete)) - return Efl.Ui.IMultiSelectableNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IMultiSelectableConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_multi_selectable_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IMultiSelectableConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IMultiSelectableConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// The mode type for children selection. /// Type of selection of children public Efl.Ui.SelectMode GetSelectMode() { - var _ret_var = Efl.Ui.IMultiSelectableNativeInherit.efl_ui_select_mode_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The mode type for children selection. /// Type of selection of children - /// - public void SetSelectMode( Efl.Ui.SelectMode mode) { - Efl.Ui.IMultiSelectableNativeInherit.efl_ui_select_mode_set_ptr.Value.Delegate(this.NativeHandle, mode); + public void SetSelectMode(Efl.Ui.SelectMode mode) { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_set_ptr.Value.Delegate(this.NativeHandle,mode); Eina.Error.RaiseIfUnhandledException(); } /// The mode type for children selection. /// Type of selection of children public Efl.Ui.SelectMode SelectMode { get { return GetSelectMode(); } - set { SetSelectMode( value); } + set { SetSelectMode(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IMultiSelectableConcrete.efl_ui_multi_selectable_interface_get(); } -} -public class IMultiSelectableNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_select_mode_get_static_delegate == null) - efl_ui_select_mode_get_static_delegate = new efl_ui_select_mode_get_delegate(select_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_select_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_get_static_delegate)}); - if (efl_ui_select_mode_set_static_delegate == null) - efl_ui_select_mode_set_static_delegate = new efl_ui_select_mode_set_delegate(select_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelectMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IMultiSelectableConcrete.efl_ui_multi_selectable_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IMultiSelectableConcrete.efl_ui_multi_selectable_interface_get(); - } + 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_select_mode_get_static_delegate == null) + { + efl_ui_select_mode_get_static_delegate = new efl_ui_select_mode_get_delegate(select_mode_get); + } - private delegate Efl.Ui.SelectMode efl_ui_select_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSelectMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_get_static_delegate) }); + } + if (efl_ui_select_mode_set_static_delegate == null) + { + efl_ui_select_mode_set_static_delegate = new efl_ui_select_mode_set_delegate(select_mode_set); + } - public delegate Efl.Ui.SelectMode efl_ui_select_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_select_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_select_mode_get"); - private static Efl.Ui.SelectMode select_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_select_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.SelectMode _ret_var = default(Efl.Ui.SelectMode); - try { - _ret_var = ((IMultiSelectable)wrapper).GetSelectMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSelectMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_set_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.IMultiSelectableConcrete.efl_ui_multi_selectable_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.Ui.SelectMode efl_ui_select_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.SelectMode efl_ui_select_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_select_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_get"); + + private static Efl.Ui.SelectMode select_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_select_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.SelectMode _ret_var = default(Efl.Ui.SelectMode); + try + { + _ret_var = ((IMultiSelectable)wrapper).GetSelectMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_select_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_select_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_select_mode_get_delegate efl_ui_select_mode_get_static_delegate; + private static efl_ui_select_mode_get_delegate efl_ui_select_mode_get_static_delegate; - private delegate void efl_ui_select_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode); + + private delegate void efl_ui_select_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode); + + public delegate void efl_ui_select_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectMode mode); - public delegate void efl_ui_select_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectMode mode); - public static Efl.Eo.FunctionWrapper efl_ui_select_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_select_mode_set"); - private static void select_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode) - { - Eina.Log.Debug("function efl_ui_select_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IMultiSelectable)wrapper).SetSelectMode( mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_select_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_set"); + + private static void select_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode) + { + Eina.Log.Debug("function efl_ui_select_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IMultiSelectable)wrapper).SetSelectMode(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_select_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); } - } else { - efl_ui_select_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); } - } - private static efl_ui_select_mode_set_delegate efl_ui_select_mode_set_static_delegate; + + private static efl_ui_select_mode_set_delegate efl_ui_select_mode_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } -namespace Efl { namespace Ui { + +namespace Efl { + +namespace Ui { + /// Type of multi selectable object. public enum SelectMode { @@ -206,4 +292,8 @@ Multi = 2, /// Last value of select mode. child cannot be selected at all. None = 3, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar.eo.cs index 3b1fc98..6ae664b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar.eo.cs @@ -3,111 +3,147 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Navigation_Bar widget. /// Navigation_Bar widget provides a bar form useful for navigation. Navigation_Bar has a back button which is used to navigate to the previous content in the stack. -[NavigationBarNativeInherit] +[Efl.Ui.NavigationBar.NativeMethods] public class NavigationBar : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IContent,Efl.IText { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (NavigationBar)) - return Efl.Ui.NavigationBarNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(NavigationBar)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_navigation_bar_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public NavigationBar(Efl.Object parent - , System.String style = null) : - base(efl_ui_navigation_bar_class_get(), typeof(NavigationBar), parent) + , System.String style = null) : base(efl_ui_navigation_bar_class_get(), typeof(NavigationBar), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected NavigationBar(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected NavigationBar(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected NavigationBar(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Back button to navigate to the previous content in the stack. /// The back button works only if the Navigation_Bar widget is contained in the Stack widget(Efl.Ui.Stack class). e.g. The Navigation_Bar widget is set in the Navigation_Layout widget and the Navigation_Layout widget is pushed to the Stack widget. @@ -117,31 +153,33 @@ private static object ContentChangedEvtKey = new object(); { get { - return Efl.IPartNativeInherit.efl_part_get_ptr.Value.Delegate(NativeHandle, "back_button") as Efl.Ui.NavigationBarPartBackButton; + return GetPart("back_button") as Efl.Ui.NavigationBarPartBackButton; } } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -152,7 +190,7 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -160,183 +198,280 @@ private static object ContentChangedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.NavigationBar.efl_ui_navigation_bar_class_get(); } -} -public class NavigationBarNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.NavigationBar.efl_ui_navigation_bar_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.NavigationBar.efl_ui_navigation_bar_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((NavigationBar)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } + + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.NavigationBar.efl_ui_navigation_bar_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((NavigationBar)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((NavigationBar)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((NavigationBar)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((NavigationBar)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + private static efl_content_set_delegate efl_content_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((NavigationBar)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((NavigationBar)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((NavigationBar)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((NavigationBar)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((NavigationBar)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + + private static efl_text_set_delegate efl_text_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part.eo.cs index 216a784..bd02640 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI Navigation_Bar internal part class -[NavigationBarPartNativeInherit] +[Efl.Ui.NavigationBarPart.NativeMethods] public class NavigationBarPart : Efl.Ui.LayoutPartContent, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (NavigationBarPart)) - return Efl.Ui.NavigationBarPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(NavigationBarPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_navigation_bar_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public NavigationBarPart(Efl.Object parent= null - ) : - base(efl_ui_navigation_bar_part_class_get(), typeof(NavigationBarPart), parent) + ) : base(efl_ui_navigation_bar_part_class_get(), typeof(NavigationBarPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected NavigationBarPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected NavigationBarPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected NavigationBarPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.NavigationBarPart.efl_ui_navigation_bar_part_class_get(); } -} -public class NavigationBarPartNativeInherit : Efl.Ui.LayoutPartContentNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.NavigationBarPart.efl_ui_navigation_bar_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPartContent.NativeMethods { - return Efl.Ui.NavigationBarPart.efl_ui_navigation_bar_part_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.NavigationBarPart.efl_ui_navigation_bar_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part_back_button.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part_back_button.eo.cs index 708c9ae..11bc235 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part_back_button.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part_back_button.eo.cs @@ -3,635 +3,788 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl Ui Navigation_Bar internal part back button class -[NavigationBarPartBackButtonNativeInherit] +[Efl.Ui.NavigationBarPartBackButton.NativeMethods] public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IContent,Efl.IText,Efl.Gfx.IEntity,Efl.Ui.IClickable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (NavigationBarPartBackButton)) - return Efl.Ui.NavigationBarPartBackButtonNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(NavigationBarPartBackButton)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_navigation_bar_part_back_button_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public NavigationBarPartBackButton(Efl.Object parent= null - ) : - base(efl_ui_navigation_bar_part_back_button_class_get(), typeof(NavigationBarPartBackButton), parent) + ) : base(efl_ui_navigation_bar_part_back_button_class_get(), typeof(NavigationBarPartBackButton), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected NavigationBarPartBackButton(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected NavigationBarPartBackButton(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected NavigationBarPartBackButton(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object VisibilityChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) public event EventHandler VisibilityChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.AddHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_VisibilityChangedEvt_delegate)) { - eventHandlers.RemoveHandler(VisibilityChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event VisibilityChangedEvt. - public void On_VisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) + public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[VisibilityChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_VisibilityChangedEvt_delegate; - private void on_VisibilityChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityVisibilityChangedEvt_Args args = new Efl.Gfx.IEntityVisibilityChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_VisibilityChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PositionChangedEvtKey = new object(); /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) public event EventHandler PositionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.AddHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PositionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PositionChangedEvt. - public void On_PositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) + public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PositionChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PositionChangedEvt_delegate; - private void on_PositionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntityPositionChangedEvt_Args args = new Efl.Gfx.IEntityPositionChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PositionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object SizeChangedEvtKey = new object(); /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) public event EventHandler SizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.AddHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SizeChangedEvt. - public void On_SizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) + public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SizeChangedEvtKey]; + var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SizeChangedEvt_delegate; - private void on_SizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Gfx.IEntitySizeChangedEvt_Args args = new Efl.Gfx.IEntitySizeChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_SizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ClickedEvtKey = new object(); /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) + public void OnClickedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) + public void OnClickedDoubleEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) + public void OnClickedTripleEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) + public void OnRepeatedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); - evt_VisibilityChangedEvt_delegate = new Efl.EventCb(on_VisibilityChangedEvt_NativeCallback); - evt_PositionChangedEvt_delegate = new Efl.EventCb(on_PositionChangedEvt_NativeCallback); - evt_SizeChangedEvt_delegate = new Efl.EventCb(on_SizeChangedEvt_NativeCallback); - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -642,7 +795,7 @@ private static object RepeatedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -650,33 +803,31 @@ private static object RepeatedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the position of the given canvas object. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. virtual public Eina.Position2D GetPosition() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Moves the given canvas object to the given location inside its canvas' viewport. If unchanged this call may be entirely skipped, but if changed this will trigger move events, as well as potential pointer,in or pointer,out events. /// (Since EFL 1.22) /// A 2D coordinate in pixel units. - /// - virtual public void SetPosition( Eina.Position2D pos) { + virtual public void SetPosition(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the (rectangular) size of the given Evas object. /// (Since EFL 1.22) /// A 2D size in pixel units. virtual public Eina.Size2D GetSize() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -684,67 +835,64 @@ private static object RepeatedEvtKey = new object(); /// Note that setting the actual size of an object might be the job of its container, so this function might have no effect. Look at instead, when manipulating widgets. /// (Since EFL 1.22) /// A 2D size in pixel units. - /// - virtual public void SetSize( Eina.Size2D size) { + virtual public void SetSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. virtual public Eina.Rect GetGeometry() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. - /// - virtual public void SetGeometry( Eina.Rect rect) { + virtual public void SetGeometry(Eina.Rect rect) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect); + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_geometry_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves whether or not the given canvas object is visible. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise virtual public bool GetVisible() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Shows or hides this object. /// (Since EFL 1.22) /// true if to make the object visible, false otherwise - /// - virtual public void SetVisible( bool v) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), v); + virtual public void SetVisible(bool v) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_visible_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),v); Eina.Error.RaiseIfUnhandledException(); } /// Gets an object's scaling factor. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) virtual public double GetScale() { - var _ret_var = Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the scaling factor of an object. /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) - /// - virtual public void SetScale( double scale) { - Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale); + virtual public void SetScale(double scale) { + Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// The 2D position of a canvas object. /// The position is absolute, in pixels, relative to the top-left corner of the window, within its border decorations (application space). @@ -752,21 +900,21 @@ private static object RepeatedEvtKey = new object(); /// A 2D coordinate in pixel units. public Eina.Position2D Position { get { return GetPosition(); } - set { SetPosition( value); } + set { SetPosition(value); } } /// The 2D size of a canvas object. /// (Since EFL 1.22) /// A 2D size in pixel units. public Eina.Size2D Size { get { return GetSize(); } - set { SetSize( value); } + set { SetSize(value); } } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. public Eina.Rect Geometry { get { return GetGeometry(); } - set { SetGeometry( value); } + set { SetGeometry(value); } } /// The visibility of a canvas object. /// All canvas objects will become visible by default just before render. This means that it is not required to call after creating an object unless you want to create it without showing it. Note that this behavior is new since 1.21, and only applies to canvas objects created with the EO API (i.e. not the legacy C-only API). Other types of Gfx objects may or may not be visible by default. @@ -776,7 +924,7 @@ private static object RepeatedEvtKey = new object(); /// true if to make the object visible, false otherwise public bool Visible { get { return GetVisible(); } - set { SetVisible( value); } + set { SetVisible(value); } } /// The scaling factor of an object. /// This property is an individual scaling factor on the object (Edje or UI widget). This property (or Edje's global scaling factor, when applicable), will affect this object's part sizes. If scale is not zero, than the individual scaling will override any global scaling set, for the object obj's parts. Set it back to zero to get the effects of the global scaling again. @@ -786,461 +934,728 @@ private static object RepeatedEvtKey = new object(); /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) public double Scale { get { return GetScale(); } - set { SetScale( value); } + set { SetScale(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.NavigationBarPartBackButton.efl_ui_navigation_bar_part_back_button_class_get(); } -} -public class NavigationBarPartBackButtonNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_gfx_entity_position_get_static_delegate == null) - efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate)}); - if (efl_gfx_entity_position_set_static_delegate == null) - efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate)}); - if (efl_gfx_entity_size_get_static_delegate == null) - efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); - if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate)}); - if (efl_gfx_entity_size_set_static_delegate == null) - efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); - if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate)}); - if (efl_gfx_entity_geometry_get_static_delegate == null) - efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate)}); - if (efl_gfx_entity_geometry_set_static_delegate == null) - efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); - if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate)}); - if (efl_gfx_entity_visible_get_static_delegate == null) - efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); - if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate)}); - if (efl_gfx_entity_visible_set_static_delegate == null) - efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); - if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate)}); - if (efl_gfx_entity_scale_get_static_delegate == null) - efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate)}); - if (efl_gfx_entity_scale_set_static_delegate == null) - efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.NavigationBarPartBackButton.efl_ui_navigation_bar_part_back_button_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.NavigationBarPartBackButton.efl_ui_navigation_bar_part_back_button_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((NavigationBarPartBackButton)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((NavigationBarPartBackButton)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_entity_position_get_static_delegate == null) + { + efl_gfx_entity_position_get_static_delegate = new efl_gfx_entity_position_get_delegate(position_get); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_entity_position_set_static_delegate == null) + { + efl_gfx_entity_position_set_static_delegate = new efl_gfx_entity_position_set_delegate(position_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_position_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((NavigationBarPartBackButton)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_entity_size_get_static_delegate == null) + { + efl_gfx_entity_size_get_static_delegate = new efl_gfx_entity_size_get_delegate(size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_get_static_delegate) }); + } + + if (efl_gfx_entity_size_set_static_delegate == null) + { + efl_gfx_entity_size_set_static_delegate = new efl_gfx_entity_size_set_delegate(size_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_size_set_static_delegate) }); + } + + if (efl_gfx_entity_geometry_get_static_delegate == null) + { + efl_gfx_entity_geometry_get_static_delegate = new efl_gfx_entity_geometry_get_delegate(geometry_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_get_static_delegate) }); + } + + if (efl_gfx_entity_geometry_set_static_delegate == null) + { + efl_gfx_entity_geometry_set_static_delegate = new efl_gfx_entity_geometry_set_delegate(geometry_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_geometry_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_geometry_set_static_delegate) }); + } + + if (efl_gfx_entity_visible_get_static_delegate == null) + { + efl_gfx_entity_visible_get_static_delegate = new efl_gfx_entity_visible_get_delegate(visible_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_get_static_delegate) }); } + + if (efl_gfx_entity_visible_set_static_delegate == null) + { + efl_gfx_entity_visible_set_static_delegate = new efl_gfx_entity_visible_set_delegate(visible_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetVisible") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_visible_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_visible_set_static_delegate) }); + } + + if (efl_gfx_entity_scale_get_static_delegate == null) + { + efl_gfx_entity_scale_get_static_delegate = new efl_gfx_entity_scale_get_delegate(scale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_get_static_delegate) }); + } + + if (efl_gfx_entity_scale_set_static_delegate == null) + { + efl_gfx_entity_scale_set_static_delegate = new efl_gfx_entity_scale_set_delegate(scale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_entity_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_entity_scale_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.NavigationBarPartBackButton.efl_ui_navigation_bar_part_back_button_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((NavigationBarPartBackButton)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((NavigationBarPartBackButton)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((NavigationBarPartBackButton)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((NavigationBarPartBackButton)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_content_unset_delegate efl_content_unset_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((NavigationBarPartBackButton)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((NavigationBarPartBackButton)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_get"); - private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((NavigationBarPartBackButton)wrapper).GetPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((NavigationBarPartBackButton)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } + } + + private static efl_text_set_delegate efl_text_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_gfx_entity_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_get"); + + private static Eina.Position2D.NativeStruct position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((NavigationBarPartBackButton)wrapper).GetPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; + private static efl_gfx_entity_position_get_delegate efl_gfx_entity_position_get_static_delegate; - private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + private delegate void efl_gfx_entity_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public delegate void efl_gfx_entity_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_position_set"); - private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_gfx_entity_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; + public static Efl.Eo.FunctionWrapper efl_gfx_entity_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_position_set"); + + private static void position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_gfx_entity_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; - try { - ((NavigationBarPartBackButton)wrapper).SetPosition( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + try + { + ((NavigationBarPartBackButton)wrapper).SetPosition(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + } } - } - private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; + private static efl_gfx_entity_position_set_delegate efl_gfx_entity_position_set_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_get"); + + private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((NavigationBarPartBackButton)wrapper).GetSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_entity_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_get"); - private static Eina.Size2D.NativeStruct size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((NavigationBarPartBackButton)wrapper).GetSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; + private static efl_gfx_entity_size_get_delegate efl_gfx_entity_size_get_static_delegate; - private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + private delegate void efl_gfx_entity_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public delegate void efl_gfx_entity_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_size_set"); - private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_gfx_entity_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; + public static Efl.Eo.FunctionWrapper efl_gfx_entity_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_size_set"); + + private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_gfx_entity_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; - try { - ((NavigationBarPartBackButton)wrapper).SetSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + try + { + ((NavigationBarPartBackButton)wrapper).SetSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } } - } - private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; + private static efl_gfx_entity_size_set_delegate efl_gfx_entity_size_set_static_delegate; - private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_get"); + + private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((NavigationBarPartBackButton)wrapper).GetGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Rect.NativeStruct efl_gfx_entity_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_get"); - private static Eina.Rect.NativeStruct geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((NavigationBarPartBackButton)wrapper).GetGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; + private static efl_gfx_entity_geometry_get_delegate efl_gfx_entity_geometry_get_static_delegate; - private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + + private delegate void efl_gfx_entity_geometry_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect); + + public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); - public delegate void efl_gfx_entity_geometry_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_geometry_set"); - private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; + public static Efl.Eo.FunctionWrapper efl_gfx_entity_geometry_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_geometry_set"); + + private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; - try { - ((NavigationBarPartBackButton)wrapper).SetGeometry( _in_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); + try + { + ((NavigationBarPartBackButton)wrapper).SetGeometry(_in_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); + } } - } - private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; + private static efl_gfx_entity_geometry_set_delegate efl_gfx_entity_geometry_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_entity_visible_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_get"); + + private static bool visible_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((NavigationBarPartBackButton)wrapper).GetVisible(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_entity_visible_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_get"); - private static bool visible_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_visible_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((NavigationBarPartBackButton)wrapper).GetVisible(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_visible_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; + private static efl_gfx_entity_visible_get_delegate efl_gfx_entity_visible_get_static_delegate; - private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + + private delegate void efl_gfx_entity_visible_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + + public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public delegate void efl_gfx_entity_visible_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_visible_set"); - private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) - { - Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((NavigationBarPartBackButton)wrapper).SetVisible( v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); + public static Efl.Eo.FunctionWrapper efl_gfx_entity_visible_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_visible_set"); + + private static void visible_set(System.IntPtr obj, System.IntPtr pd, bool v) + { + Eina.Log.Debug("function efl_gfx_entity_visible_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((NavigationBarPartBackButton)wrapper).SetVisible(v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_visible_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); + } } - } - private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; + private static efl_gfx_entity_visible_set_delegate efl_gfx_entity_visible_set_static_delegate; - private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_gfx_entity_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_get"); + + private static double scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((NavigationBarPartBackButton)wrapper).GetScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_gfx_entity_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_get"); - private static double scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_entity_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((NavigationBarPartBackButton)wrapper).GetScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_entity_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; + private static efl_gfx_entity_scale_get_delegate efl_gfx_entity_scale_get_static_delegate; - private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + private delegate void efl_gfx_entity_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); - public delegate void efl_gfx_entity_scale_set_api_delegate(System.IntPtr obj, double scale); - public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_entity_scale_set"); - private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) - { - Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((NavigationBarPartBackButton)wrapper).SetScale( scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + public static Efl.Eo.FunctionWrapper efl_gfx_entity_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_entity_scale_set"); + + private static void scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_entity_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((NavigationBarPartBackButton)wrapper).SetScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_entity_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + } } - } - private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + + private static efl_gfx_entity_scale_set_delegate efl_gfx_entity_scale_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_layout.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_layout.eo.cs index 8c83745..191f2a5 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_layout.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_layout.eo.cs @@ -3,148 +3,185 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Navigation_Layout widget. /// Navigation_Layout widget provides a layout form useful for navigation. Navigation_Layout widget is used to be pushed to or popped from Stack widget(Efl.Ui.Stack class) as a content. -[NavigationLayoutNativeInherit] +[Efl.Ui.NavigationLayout.NativeMethods] public class NavigationLayout : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (NavigationLayout)) - return Efl.Ui.NavigationLayoutNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(NavigationLayout)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_navigation_layout_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public NavigationLayout(Efl.Object parent - , System.String style = null) : - base(efl_ui_navigation_layout_class_get(), typeof(NavigationLayout), parent) + , System.String style = null) : base(efl_ui_navigation_layout_class_get(), typeof(NavigationLayout), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected NavigationLayout(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected NavigationLayout(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected NavigationLayout(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// The bar object which is located at the top area as a title. e.g. Navigation_Bar widget(Efl.Ui.Navigation_Bar) can be used as bar. /// The bar object located at the top area of the Navigation Layout. virtual public Efl.Ui.LayoutBase GetBar() { - var _ret_var = Efl.Ui.NavigationLayoutNativeInherit.efl_ui_navigation_layout_bar_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.NavigationLayout.NativeMethods.efl_ui_navigation_layout_bar_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The bar object which is located at the top area as a title. e.g. Navigation_Bar widget(Efl.Ui.Navigation_Bar) can be used as bar. /// The bar object located at the top area of the Navigation Layout. - /// - virtual public void SetBar( Efl.Ui.LayoutBase value) { - Efl.Ui.NavigationLayoutNativeInherit.efl_ui_navigation_layout_bar_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetBar(Efl.Ui.LayoutBase value) { + Efl.Ui.NavigationLayout.NativeMethods.efl_ui_navigation_layout_bar_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -152,180 +189,278 @@ private static object ContentChangedEvtKey = new object(); /// The bar object located at the top area of the Navigation Layout. public Efl.Ui.LayoutBase Bar { get { return GetBar(); } - set { SetBar( value); } + set { SetBar(value); } } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.NavigationLayout.efl_ui_navigation_layout_class_get(); } -} -public class NavigationLayoutNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_navigation_layout_bar_get_static_delegate == null) - efl_ui_navigation_layout_bar_get_static_delegate = new efl_ui_navigation_layout_bar_get_delegate(bar_get); - if (methods.FirstOrDefault(m => m.Name == "GetBar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_navigation_layout_bar_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_navigation_layout_bar_get_static_delegate)}); - if (efl_ui_navigation_layout_bar_set_static_delegate == null) - efl_ui_navigation_layout_bar_set_static_delegate = new efl_ui_navigation_layout_bar_set_delegate(bar_set); - if (methods.FirstOrDefault(m => m.Name == "SetBar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_navigation_layout_bar_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_navigation_layout_bar_set_static_delegate)}); - if (efl_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.NavigationLayout.efl_ui_navigation_layout_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.NavigationLayout.efl_ui_navigation_layout_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_navigation_layout_bar_get_static_delegate == null) + { + efl_ui_navigation_layout_bar_get_static_delegate = new efl_ui_navigation_layout_bar_get_delegate(bar_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.LayoutBase efl_ui_navigation_layout_bar_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetBar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_navigation_layout_bar_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_navigation_layout_bar_get_static_delegate) }); + } + if (efl_ui_navigation_layout_bar_set_static_delegate == null) + { + efl_ui_navigation_layout_bar_set_static_delegate = new efl_ui_navigation_layout_bar_set_delegate(bar_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.LayoutBase efl_ui_navigation_layout_bar_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_navigation_layout_bar_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_navigation_layout_bar_get"); - private static Efl.Ui.LayoutBase bar_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_navigation_layout_bar_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.LayoutBase _ret_var = default(Efl.Ui.LayoutBase); - try { - _ret_var = ((NavigationLayout)wrapper).GetBar(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_navigation_layout_bar_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_navigation_layout_bar_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_navigation_layout_bar_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.NavigationLayout.efl_ui_navigation_layout_class_get(); } - } - private static efl_ui_navigation_layout_bar_get_delegate efl_ui_navigation_layout_bar_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_navigation_layout_bar_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.LayoutBase value); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.LayoutBase efl_ui_navigation_layout_bar_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.LayoutBase efl_ui_navigation_layout_bar_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_navigation_layout_bar_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.LayoutBase value); - public static Efl.Eo.FunctionWrapper efl_ui_navigation_layout_bar_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_navigation_layout_bar_set"); - private static void bar_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutBase value) - { - Eina.Log.Debug("function efl_ui_navigation_layout_bar_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((NavigationLayout)wrapper).SetBar( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_navigation_layout_bar_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_navigation_layout_bar_get"); + + private static Efl.Ui.LayoutBase bar_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_navigation_layout_bar_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.LayoutBase _ret_var = default(Efl.Ui.LayoutBase); + try + { + _ret_var = ((NavigationLayout)wrapper).GetBar(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_navigation_layout_bar_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_navigation_layout_bar_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } - } - private static efl_ui_navigation_layout_bar_set_delegate efl_ui_navigation_layout_bar_set_static_delegate; + private static efl_ui_navigation_layout_bar_get_delegate efl_ui_navigation_layout_bar_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_navigation_layout_bar_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.LayoutBase value); + + public delegate void efl_ui_navigation_layout_bar_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.LayoutBase value); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((NavigationLayout)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_navigation_layout_bar_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_navigation_layout_bar_set"); + + private static void bar_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutBase value) + { + Eina.Log.Debug("function efl_ui_navigation_layout_bar_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((NavigationLayout)wrapper).SetBar(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_navigation_layout_bar_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + private static efl_ui_navigation_layout_bar_set_delegate efl_ui_navigation_layout_bar_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((NavigationLayout)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((NavigationLayout)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((NavigationLayout)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((NavigationLayout)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((NavigationLayout)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_nstate.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_nstate.eo.cs index 9927385..232eed7 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_nstate.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_nstate.eo.cs @@ -3,318 +3,447 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI nstate class -[NstateNativeInherit] +[Efl.Ui.Nstate.NativeMethods] public class Nstate : Efl.Ui.Button, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Nstate)) - return Efl.Ui.NstateNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Nstate)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_nstate_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Nstate(Efl.Object parent - , System.String style = null) : - base(efl_ui_nstate_class_get(), typeof(Nstate), parent) + , System.String style = null) : base(efl_ui_nstate_class_get(), typeof(Nstate), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Nstate(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Nstate(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Nstate(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ChangedEvtKey = new object(); + /// Called when the value changed. public event EventHandler ChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_NSTATE_EVENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) { - eventHandlers.AddHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_NSTATE_EVENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedEvt. - public void On_ChangedEvt(EventArgs e) + public void OnChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedEvtKey]; + var key = "_EFL_UI_NSTATE_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedEvt_delegate; - private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Maximum number of states /// The number of states. virtual public int GetCount() { - var _ret_var = Efl.Ui.NstateNativeInherit.efl_ui_nstate_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Nstate.NativeMethods.efl_ui_nstate_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Maximum number of states /// The number of states. - /// - virtual public void SetCount( int nstate) { - Efl.Ui.NstateNativeInherit.efl_ui_nstate_count_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), nstate); + virtual public void SetCount(int nstate) { + Efl.Ui.Nstate.NativeMethods.efl_ui_nstate_count_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),nstate); Eina.Error.RaiseIfUnhandledException(); } /// Get the state value. /// The state. virtual public int GetValue() { - var _ret_var = Efl.Ui.NstateNativeInherit.efl_ui_nstate_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Nstate.NativeMethods.efl_ui_nstate_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the particular state given in (0...nstate}. /// The state. - /// - virtual public void SetValue( int state) { - Efl.Ui.NstateNativeInherit.efl_ui_nstate_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), state); + virtual public void SetValue(int state) { + Efl.Ui.Nstate.NativeMethods.efl_ui_nstate_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),state); Eina.Error.RaiseIfUnhandledException(); } /// Activate widget - /// virtual public void Activate() { - Efl.Ui.NstateNativeInherit.efl_ui_nstate_activate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Nstate.NativeMethods.efl_ui_nstate_activate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Maximum number of states /// The number of states. public int Count { get { return GetCount(); } - set { SetCount( value); } + set { SetCount(value); } } /// Get the state value. /// The state. public int Value { get { return GetValue(); } - set { SetValue( value); } + set { SetValue(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Nstate.efl_ui_nstate_class_get(); } -} -public class NstateNativeInherit : Efl.Ui.ButtonNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_nstate_count_get_static_delegate == null) - efl_ui_nstate_count_get_static_delegate = new efl_ui_nstate_count_get_delegate(count_get); - if (methods.FirstOrDefault(m => m.Name == "GetCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_nstate_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_nstate_count_get_static_delegate)}); - if (efl_ui_nstate_count_set_static_delegate == null) - efl_ui_nstate_count_set_static_delegate = new efl_ui_nstate_count_set_delegate(count_set); - if (methods.FirstOrDefault(m => m.Name == "SetCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_nstate_count_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_nstate_count_set_static_delegate)}); - if (efl_ui_nstate_value_get_static_delegate == null) - efl_ui_nstate_value_get_static_delegate = new efl_ui_nstate_value_get_delegate(value_get); - if (methods.FirstOrDefault(m => m.Name == "GetValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_nstate_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_nstate_value_get_static_delegate)}); - if (efl_ui_nstate_value_set_static_delegate == null) - efl_ui_nstate_value_set_static_delegate = new efl_ui_nstate_value_set_delegate(value_set); - if (methods.FirstOrDefault(m => m.Name == "SetValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_nstate_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_nstate_value_set_static_delegate)}); - if (efl_ui_nstate_activate_static_delegate == null) - efl_ui_nstate_activate_static_delegate = new efl_ui_nstate_activate_delegate(activate); - if (methods.FirstOrDefault(m => m.Name == "Activate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_nstate_activate"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_nstate_activate_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Nstate.efl_ui_nstate_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Button.NativeMethods { - return Efl.Ui.Nstate.efl_ui_nstate_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_nstate_count_get_static_delegate == null) + { + efl_ui_nstate_count_get_static_delegate = new efl_ui_nstate_count_get_delegate(count_get); + } - private delegate int efl_ui_nstate_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_nstate_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_nstate_count_get_static_delegate) }); + } + if (efl_ui_nstate_count_set_static_delegate == null) + { + efl_ui_nstate_count_set_static_delegate = new efl_ui_nstate_count_set_delegate(count_set); + } - public delegate int efl_ui_nstate_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_nstate_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_nstate_count_get"); - private static int count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_nstate_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Nstate)wrapper).GetCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_nstate_count_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_nstate_count_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_nstate_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_nstate_value_get_static_delegate == null) + { + efl_ui_nstate_value_get_static_delegate = new efl_ui_nstate_value_get_delegate(value_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_nstate_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_nstate_value_get_static_delegate) }); + } + + if (efl_ui_nstate_value_set_static_delegate == null) + { + efl_ui_nstate_value_set_static_delegate = new efl_ui_nstate_value_set_delegate(value_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_nstate_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_nstate_value_set_static_delegate) }); + } + + if (efl_ui_nstate_activate_static_delegate == null) + { + efl_ui_nstate_activate_static_delegate = new efl_ui_nstate_activate_delegate(activate); + } + + if (methods.FirstOrDefault(m => m.Name == "Activate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_nstate_activate"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_nstate_activate_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Nstate.efl_ui_nstate_class_get(); } - } - private static efl_ui_nstate_count_get_delegate efl_ui_nstate_count_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_nstate_count_set_delegate(System.IntPtr obj, System.IntPtr pd, int nstate); + + private delegate int efl_ui_nstate_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_ui_nstate_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_nstate_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_nstate_count_get"); + + private static int count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_nstate_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Nstate)wrapper).GetCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_nstate_count_set_api_delegate(System.IntPtr obj, int nstate); - public static Efl.Eo.FunctionWrapper efl_ui_nstate_count_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_nstate_count_set"); - private static void count_set(System.IntPtr obj, System.IntPtr pd, int nstate) - { - Eina.Log.Debug("function efl_ui_nstate_count_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Nstate)wrapper).SetCount( nstate); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_nstate_count_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), nstate); + else + { + return efl_ui_nstate_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_nstate_count_set_delegate efl_ui_nstate_count_set_static_delegate; + private static efl_ui_nstate_count_get_delegate efl_ui_nstate_count_get_static_delegate; - private delegate int efl_ui_nstate_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_nstate_count_set_delegate(System.IntPtr obj, System.IntPtr pd, int nstate); + + public delegate void efl_ui_nstate_count_set_api_delegate(System.IntPtr obj, int nstate); - public delegate int efl_ui_nstate_value_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_nstate_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_nstate_value_get"); - private static int value_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_nstate_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Nstate)wrapper).GetValue(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_nstate_count_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_nstate_count_set"); + + private static void count_set(System.IntPtr obj, System.IntPtr pd, int nstate) + { + Eina.Log.Debug("function efl_ui_nstate_count_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Nstate)wrapper).SetCount(nstate); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_nstate_count_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), nstate); } - return _ret_var; - } else { - return efl_ui_nstate_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_nstate_value_get_delegate efl_ui_nstate_value_get_static_delegate; + private static efl_ui_nstate_count_set_delegate efl_ui_nstate_count_set_static_delegate; - private delegate void efl_ui_nstate_value_set_delegate(System.IntPtr obj, System.IntPtr pd, int state); + + private delegate int efl_ui_nstate_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_ui_nstate_value_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_nstate_value_set_api_delegate(System.IntPtr obj, int state); - public static Efl.Eo.FunctionWrapper efl_ui_nstate_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_nstate_value_set"); - private static void value_set(System.IntPtr obj, System.IntPtr pd, int state) - { - Eina.Log.Debug("function efl_ui_nstate_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Nstate)wrapper).SetValue( state); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_nstate_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_nstate_value_get"); + + private static int value_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_nstate_value_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Nstate)wrapper).GetValue(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_nstate_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_nstate_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state); } - } - private static efl_ui_nstate_value_set_delegate efl_ui_nstate_value_set_static_delegate; + private static efl_ui_nstate_value_get_delegate efl_ui_nstate_value_get_static_delegate; - private delegate void efl_ui_nstate_activate_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_nstate_value_set_delegate(System.IntPtr obj, System.IntPtr pd, int state); + + public delegate void efl_ui_nstate_value_set_api_delegate(System.IntPtr obj, int state); + + public static Efl.Eo.FunctionWrapper efl_ui_nstate_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_nstate_value_set"); + + private static void value_set(System.IntPtr obj, System.IntPtr pd, int state) + { + Eina.Log.Debug("function efl_ui_nstate_value_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Nstate)wrapper).SetValue(state); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_nstate_activate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_nstate_activate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_nstate_activate"); - private static void activate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_nstate_activate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Nstate)wrapper).Activate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_nstate_activate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_nstate_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state); + } } - } - private static efl_ui_nstate_activate_delegate efl_ui_nstate_activate_static_delegate; + + private static efl_ui_nstate_value_set_delegate efl_ui_nstate_value_set_static_delegate; + + + private delegate void efl_ui_nstate_activate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_nstate_activate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_nstate_activate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_nstate_activate"); + + private static void activate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_nstate_activate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Nstate)wrapper).Activate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_nstate_activate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_nstate_activate_delegate efl_ui_nstate_activate_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_pager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_pager.eo.cs index 5c405d9..66f83f0 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_pager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_pager.eo.cs @@ -3,191 +3,191 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Pager widget /// A pager contains many pages in a linear fashion and allows users to scroll through pages. Each page is numbered according to linear order and one of the pages is marked as 'current page' and displayed in the middle. The way each page is displayed is defined by object, allowing users to adopt different types of transition. The most common use case of this widget is the home screen of mobile devices. -[PagerNativeInherit] +[Efl.Ui.Pager.NativeMethods] public class Pager : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IPack,Efl.IPackLinear { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Pager)) - return Efl.Ui.PagerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Pager)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_pager_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Pager(Efl.Object parent - , System.String style = null) : - base(efl_ui_pager_class_get(), typeof(Pager), parent) + , System.String style = null) : base(efl_ui_pager_class_get(), typeof(Pager), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Pager(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Pager(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Pager(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Set a page transition effect /// transition effect - /// - virtual public void SetTransition( Efl.Page.Transition transition) { - Efl.Ui.PagerNativeInherit.efl_ui_pager_transition_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), transition); + virtual public void SetTransition(Efl.Page.Transition transition) { + Efl.Ui.Pager.NativeMethods.efl_ui_pager_transition_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),transition); Eina.Error.RaiseIfUnhandledException(); } /// Set a page indicator /// indicator class - /// - virtual public void SetIndicator( Efl.Page.Indicator indicator) { - Efl.Ui.PagerNativeInherit.efl_ui_pager_indicator_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), indicator); + virtual public void SetIndicator(Efl.Page.Indicator indicator) { + Efl.Ui.Pager.NativeMethods.efl_ui_pager_indicator_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),indicator); Eina.Error.RaiseIfUnhandledException(); } /// Get the current page - /// virtual public int GetCurrentPage() { - var _ret_var = Efl.Ui.PagerNativeInherit.efl_ui_pager_current_page_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Pager.NativeMethods.efl_ui_pager_current_page_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set one page as current page - /// - /// - virtual public void SetCurrentPage( int index) { - Efl.Ui.PagerNativeInherit.efl_ui_pager_current_page_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public void SetCurrentPage(int index) { + Efl.Ui.Pager.NativeMethods.efl_ui_pager_current_page_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); } /// Pages can be scrolled back and forth by default. This property allows limiting the direction of scrolling, or blocking scroll gesture at all. - /// - /// - /// - virtual public void GetScrollBlock( out bool prev, out bool next) { - Efl.Ui.PagerNativeInherit.efl_ui_pager_scroll_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out prev, out next); + virtual public void GetScrollBlock(out bool prev, out bool next) { + Efl.Ui.Pager.NativeMethods.efl_ui_pager_scroll_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out prev, out next); Eina.Error.RaiseIfUnhandledException(); } /// Pages can be scrolled back and forth by default. This property allows limiting the direction of scrolling, or blocking scroll gesture at all. - /// - /// - /// - virtual public void SetScrollBlock( bool prev, bool next) { - Efl.Ui.PagerNativeInherit.efl_ui_pager_scroll_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), prev, next); + virtual public void SetScrollBlock(bool prev, bool next) { + Efl.Ui.Pager.NativeMethods.efl_ui_pager_scroll_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),prev, next); Eina.Error.RaiseIfUnhandledException(); } /// Pager is not scrolled after it's scrolled to the end by default. This property gives the option to make a loop through pages. - /// virtual public Efl.Ui.PagerLoop GetLoopMode() { - var _ret_var = Efl.Ui.PagerNativeInherit.efl_ui_pager_loop_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Pager.NativeMethods.efl_ui_pager_loop_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Pager is not scrolled after it's scrolled to the end by default. This property gives the option to make a loop through pages. - /// /// true on success, false otherwise - virtual public bool SetLoopMode( Efl.Ui.PagerLoop loop) { - var _ret_var = Efl.Ui.PagerNativeInherit.efl_ui_pager_loop_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), loop); + virtual public bool SetLoopMode(Efl.Ui.PagerLoop loop) { + var _ret_var = Efl.Ui.Pager.NativeMethods.efl_ui_pager_loop_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),loop); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// virtual public Eina.Size2D GetPageSize() { - var _ret_var = Efl.Ui.PagerNativeInherit.efl_ui_pager_page_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Pager.NativeMethods.efl_ui_pager_page_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// - /// - virtual public void SetPageSize( Eina.Size2D size) { + virtual public void SetPageSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Ui.PagerNativeInherit.efl_ui_pager_page_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Ui.Pager.NativeMethods.efl_ui_pager_page_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } - /// - /// virtual public int GetPadding() { - var _ret_var = Efl.Ui.PagerNativeInherit.efl_ui_pager_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Pager.NativeMethods.efl_ui_pager_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// - /// - virtual public void SetPadding( int padding) { - Efl.Ui.PagerNativeInherit.efl_ui_pager_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), padding); + virtual public void SetPadding(int padding) { + Efl.Ui.Pager.NativeMethods.efl_ui_pager_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),padding); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_horiz, out align_vert); + virtual public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert); + virtual public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pad_horiz, out pad_vert, out scalable); + virtual public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable); + virtual public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise virtual public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -195,15 +195,15 @@ public class Pager : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IPack,Efl.IPackLinea /// Use with caution. /// true on success, false otherwise virtual public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - virtual public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -213,8 +213,8 @@ public class Pager : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IPack,Efl.IPackLinea /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - virtual public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -222,21 +222,21 @@ public class Pager : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IPack,Efl.IPackLinea /// This is the same as (subobj, 0). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack. - /// false if subobj could not be packed - virtual public bool PackBegin( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// Item to pack at the beginning. + /// false if subobj could not be packed. + virtual public bool PackBegin(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Append object at the end of this container. + /// Append item at the end of this container. /// This is the same as (subobj, -1). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// Item to pack at the end. - /// false if subobj could not be packed - virtual public bool PackEnd( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// false if subobj could not be packed. + virtual public bool PackEnd(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -245,8 +245,8 @@ public class Pager : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IPack,Efl.IPackLinea /// Item to pack before existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackBefore( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -255,46 +255,54 @@ public class Pager : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IPack,Efl.IPackLinea /// Item to pack after existing. /// Item to refer to. /// false if existing could not be found or subobj could not be packed. - virtual public bool PackAfter( Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, existing); + virtual public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Inserts subobj at the specified index. - /// Valid range: -count to +count. -1 refers to the last element. Out of range indices will trigger an append. + /// Inserts subobj BEFORE the item at position index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). /// /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Item to pack at given index. - /// A position. + /// Item to pack. + /// Index of item to insert BEFORE. Valid range is -count to (count-1). /// false if subobj could not be packed. - virtual public bool PackAt( Efl.Gfx.IEntity subobj, int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, index); + virtual public bool PackAt(Efl.Gfx.IEntity subobj, int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Content at a given index in this container. - /// Index -1 refers to the last item. The valid range is -(count - 1) to (count - 1). - /// Index number + /// Content at a given index in this container. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will return the first item whereas index greater than count-1 will return the last item. + /// Index of the item to retrieve. Valid range is -count to (count-1). /// The object contained at the given index. - virtual public Efl.Gfx.IEntity GetPackContent( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity GetPackContent(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the index of a child in this container. /// An object contained in this pack. - /// -1 in case of failure, or the index of this item. - virtual public int GetPackIndex( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + /// -1 in case subobj is not a child of this object, or the index of this item in the range 0 to (count-1). + virtual public int GetPackIndex(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Pop out item at specified index. - /// Equivalent to unpack(content_at(index)). - /// Index number + /// Pop out (remove) the item at the specified index. + /// index ranges from -count to count-1, where positive numbers go from first item (0) to last item (count-1), and negative numbers go from last item (-1) to first item (-count). Where count is the number of items currently in the container. + /// + /// If index is less than -count, it will remove the first item whereas index greater than count-1 will remove the last item. + /// + /// Equivalent to ((index)). + /// Index of item to remove. Valid range is -count to (count-1). /// The child item if it could be removed. - virtual public Efl.Gfx.IEntity PackUnpackAt( int index) { - var _ret_var = Efl.IPackLinearNativeInherit.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -302,871 +310,1358 @@ public class Pager : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IPack,Efl.IPackLinea /// Page transition is in charge of displaying pages in a specific way and invoked every time page layout needs to be updated. /// transition effect public Efl.Page.Transition Transition { - set { SetTransition( value); } + set { SetTransition(value); } } /// Page indicator /// Page indicator, located on the top layer of pager widget, helps users to know the number of pages and the current page's index without scrolling. /// indicator class public Efl.Page.Indicator Indicator { - set { SetIndicator( value); } + set { SetIndicator(value); } } /// One page is selected as the current page and mainly displayed. -/// public int CurrentPage { get { return GetCurrentPage(); } - set { SetCurrentPage( value); } + set { SetCurrentPage(value); } } /// Pager is not scrolled after it's scrolled to the end by default. This property gives the option to make a loop through pages. -/// public Efl.Ui.PagerLoop LoopMode { get { return GetLoopMode(); } - set { SetLoopMode( value); } + set { SetLoopMode(value); } } - /// -/// - public Eina.Size2D PageSize { + public Eina.Size2D PageSize { get { return GetPageSize(); } - set { SetPageSize( value); } + set { SetPageSize(value); } } - /// -/// - public int Padding { + public int Padding { get { return GetPadding(); } - set { SetPadding( value); } + set { SetPadding(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Pager.efl_ui_pager_class_get(); } -} -public class PagerNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_pager_transition_set_static_delegate == null) - efl_ui_pager_transition_set_static_delegate = new efl_ui_pager_transition_set_delegate(transition_set); - if (methods.FirstOrDefault(m => m.Name == "SetTransition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_transition_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_transition_set_static_delegate)}); - if (efl_ui_pager_indicator_set_static_delegate == null) - efl_ui_pager_indicator_set_static_delegate = new efl_ui_pager_indicator_set_delegate(indicator_set); - if (methods.FirstOrDefault(m => m.Name == "SetIndicator") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_indicator_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_indicator_set_static_delegate)}); - if (efl_ui_pager_current_page_get_static_delegate == null) - efl_ui_pager_current_page_get_static_delegate = new efl_ui_pager_current_page_get_delegate(current_page_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrentPage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_current_page_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_current_page_get_static_delegate)}); - if (efl_ui_pager_current_page_set_static_delegate == null) - efl_ui_pager_current_page_set_static_delegate = new efl_ui_pager_current_page_set_delegate(current_page_set); - if (methods.FirstOrDefault(m => m.Name == "SetCurrentPage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_current_page_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_current_page_set_static_delegate)}); - if (efl_ui_pager_scroll_block_get_static_delegate == null) - efl_ui_pager_scroll_block_get_static_delegate = new efl_ui_pager_scroll_block_get_delegate(scroll_block_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_scroll_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_scroll_block_get_static_delegate)}); - if (efl_ui_pager_scroll_block_set_static_delegate == null) - efl_ui_pager_scroll_block_set_static_delegate = new efl_ui_pager_scroll_block_set_delegate(scroll_block_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_scroll_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_scroll_block_set_static_delegate)}); - if (efl_ui_pager_loop_mode_get_static_delegate == null) - efl_ui_pager_loop_mode_get_static_delegate = new efl_ui_pager_loop_mode_get_delegate(loop_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoopMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_loop_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_loop_mode_get_static_delegate)}); - if (efl_ui_pager_loop_mode_set_static_delegate == null) - efl_ui_pager_loop_mode_set_static_delegate = new efl_ui_pager_loop_mode_set_delegate(loop_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetLoopMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_loop_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_loop_mode_set_static_delegate)}); - if (efl_ui_pager_page_size_get_static_delegate == null) - efl_ui_pager_page_size_get_static_delegate = new efl_ui_pager_page_size_get_delegate(page_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetPageSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_page_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_page_size_get_static_delegate)}); - if (efl_ui_pager_page_size_set_static_delegate == null) - efl_ui_pager_page_size_set_static_delegate = new efl_ui_pager_page_size_set_delegate(page_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetPageSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_page_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_page_size_set_static_delegate)}); - if (efl_ui_pager_padding_get_static_delegate == null) - efl_ui_pager_padding_get_static_delegate = new efl_ui_pager_padding_get_delegate(padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_padding_get_static_delegate)}); - if (efl_ui_pager_padding_set_static_delegate == null) - efl_ui_pager_padding_set_static_delegate = new efl_ui_pager_padding_set_delegate(padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pager_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_padding_set_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - if (efl_pack_begin_static_delegate == null) - efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); - if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate)}); - if (efl_pack_end_static_delegate == null) - efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); - if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate)}); - if (efl_pack_before_static_delegate == null) - efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); - if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate)}); - if (efl_pack_after_static_delegate == null) - efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); - if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate)}); - if (efl_pack_at_static_delegate == null) - efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); - if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate)}); - if (efl_pack_content_get_static_delegate == null) - efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate)}); - if (efl_pack_index_get_static_delegate == null) - efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate)}); - if (efl_pack_unpack_at_static_delegate == null) - efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); - if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Pager.efl_ui_pager_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Pager.efl_ui_pager_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_pager_transition_set_static_delegate == null) + { + efl_ui_pager_transition_set_static_delegate = new efl_ui_pager_transition_set_delegate(transition_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTransition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_transition_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_transition_set_static_delegate) }); + } - private delegate void efl_ui_pager_transition_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Page.Transition transition); + if (efl_ui_pager_indicator_set_static_delegate == null) + { + efl_ui_pager_indicator_set_static_delegate = new efl_ui_pager_indicator_set_delegate(indicator_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetIndicator") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_indicator_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_indicator_set_static_delegate) }); + } - public delegate void efl_ui_pager_transition_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Page.Transition transition); - public static Efl.Eo.FunctionWrapper efl_ui_pager_transition_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_transition_set"); - private static void transition_set(System.IntPtr obj, System.IntPtr pd, Efl.Page.Transition transition) - { - Eina.Log.Debug("function efl_ui_pager_transition_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pager)wrapper).SetTransition( transition); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_pager_transition_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), transition); - } - } - private static efl_ui_pager_transition_set_delegate efl_ui_pager_transition_set_static_delegate; + if (efl_ui_pager_current_page_get_static_delegate == null) + { + efl_ui_pager_current_page_get_static_delegate = new efl_ui_pager_current_page_get_delegate(current_page_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCurrentPage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_current_page_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_current_page_get_static_delegate) }); + } - private delegate void efl_ui_pager_indicator_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Page.Indicator indicator); + if (efl_ui_pager_current_page_set_static_delegate == null) + { + efl_ui_pager_current_page_set_static_delegate = new efl_ui_pager_current_page_set_delegate(current_page_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCurrentPage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_current_page_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_current_page_set_static_delegate) }); + } - public delegate void efl_ui_pager_indicator_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Page.Indicator indicator); - public static Efl.Eo.FunctionWrapper efl_ui_pager_indicator_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_indicator_set"); - private static void indicator_set(System.IntPtr obj, System.IntPtr pd, Efl.Page.Indicator indicator) - { - Eina.Log.Debug("function efl_ui_pager_indicator_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pager)wrapper).SetIndicator( indicator); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_pager_indicator_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), indicator); - } - } - private static efl_ui_pager_indicator_set_delegate efl_ui_pager_indicator_set_static_delegate; + if (efl_ui_pager_scroll_block_get_static_delegate == null) + { + efl_ui_pager_scroll_block_get_static_delegate = new efl_ui_pager_scroll_block_get_delegate(scroll_block_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetScrollBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_scroll_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_scroll_block_get_static_delegate) }); + } - private delegate int efl_ui_pager_current_page_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_pager_scroll_block_set_static_delegate == null) + { + efl_ui_pager_scroll_block_set_static_delegate = new efl_ui_pager_scroll_block_set_delegate(scroll_block_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetScrollBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_scroll_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_scroll_block_set_static_delegate) }); + } - public delegate int efl_ui_pager_current_page_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_pager_current_page_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_current_page_get"); - private static int current_page_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_pager_current_page_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Pager)wrapper).GetCurrentPage(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_pager_loop_mode_get_static_delegate == null) + { + efl_ui_pager_loop_mode_get_static_delegate = new efl_ui_pager_loop_mode_get_delegate(loop_mode_get); } - return _ret_var; - } else { - return efl_ui_pager_current_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_pager_current_page_get_delegate efl_ui_pager_current_page_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoopMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_loop_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_loop_mode_get_static_delegate) }); + } - private delegate void efl_ui_pager_current_page_set_delegate(System.IntPtr obj, System.IntPtr pd, int index); + if (efl_ui_pager_loop_mode_set_static_delegate == null) + { + efl_ui_pager_loop_mode_set_static_delegate = new efl_ui_pager_loop_mode_set_delegate(loop_mode_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetLoopMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_loop_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_loop_mode_set_static_delegate) }); + } - public delegate void efl_ui_pager_current_page_set_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_ui_pager_current_page_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_current_page_set"); - private static void current_page_set(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_ui_pager_current_page_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pager)wrapper).SetCurrentPage( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_pager_current_page_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); - } - } - private static efl_ui_pager_current_page_set_delegate efl_ui_pager_current_page_set_static_delegate; + if (efl_ui_pager_page_size_get_static_delegate == null) + { + efl_ui_pager_page_size_get_static_delegate = new efl_ui_pager_page_size_get_delegate(page_size_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_page_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_page_size_get_static_delegate) }); + } - private delegate void efl_ui_pager_scroll_block_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool prev, [MarshalAs(UnmanagedType.U1)] out bool next); + if (efl_ui_pager_page_size_set_static_delegate == null) + { + efl_ui_pager_page_size_set_static_delegate = new efl_ui_pager_page_size_set_delegate(page_size_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_page_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_page_size_set_static_delegate) }); + } - public delegate void efl_ui_pager_scroll_block_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool prev, [MarshalAs(UnmanagedType.U1)] out bool next); - public static Efl.Eo.FunctionWrapper efl_ui_pager_scroll_block_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_scroll_block_get"); - private static void scroll_block_get(System.IntPtr obj, System.IntPtr pd, out bool prev, out bool next) - { - Eina.Log.Debug("function efl_ui_pager_scroll_block_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - prev = default(bool); next = default(bool); - try { - ((Pager)wrapper).GetScrollBlock( out prev, out next); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_pager_scroll_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out prev, out next); - } - } - private static efl_ui_pager_scroll_block_get_delegate efl_ui_pager_scroll_block_get_static_delegate; + if (efl_ui_pager_padding_get_static_delegate == null) + { + efl_ui_pager_padding_get_static_delegate = new efl_ui_pager_padding_get_delegate(padding_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_padding_get_static_delegate) }); + } - private delegate void efl_ui_pager_scroll_block_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool prev, [MarshalAs(UnmanagedType.U1)] bool next); + if (efl_ui_pager_padding_set_static_delegate == null) + { + efl_ui_pager_padding_set_static_delegate = new efl_ui_pager_padding_set_delegate(padding_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pager_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pager_padding_set_static_delegate) }); + } - public delegate void efl_ui_pager_scroll_block_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool prev, [MarshalAs(UnmanagedType.U1)] bool next); - public static Efl.Eo.FunctionWrapper efl_ui_pager_scroll_block_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_scroll_block_set"); - private static void scroll_block_set(System.IntPtr obj, System.IntPtr pd, bool prev, bool next) - { - Eina.Log.Debug("function efl_ui_pager_scroll_block_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pager)wrapper).SetScrollBlock( prev, next); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_pager_scroll_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), prev, next); - } - } - private static efl_ui_pager_scroll_block_set_delegate efl_ui_pager_scroll_block_set_static_delegate; + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } - private delegate Efl.Ui.PagerLoop efl_ui_pager_loop_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); + } - public delegate Efl.Ui.PagerLoop efl_ui_pager_loop_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_pager_loop_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_loop_mode_get"); - private static Efl.Ui.PagerLoop loop_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_pager_loop_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.PagerLoop _ret_var = default(Efl.Ui.PagerLoop); - try { - _ret_var = ((Pager)wrapper).GetLoopMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); } - return _ret_var; - } else { - return efl_ui_pager_loop_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_pager_loop_mode_get_delegate efl_ui_pager_loop_mode_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_pager_loop_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PagerLoop loop); + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_pager_loop_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.PagerLoop loop); - public static Efl.Eo.FunctionWrapper efl_ui_pager_loop_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_loop_mode_set"); - private static bool loop_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PagerLoop loop) - { - Eina.Log.Debug("function efl_ui_pager_loop_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pager)wrapper).SetLoopMode( loop); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); } - return _ret_var; - } else { - return efl_ui_pager_loop_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop); - } - } - private static efl_ui_pager_loop_mode_set_delegate efl_ui_pager_loop_mode_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } - private delegate Eina.Size2D.NativeStruct efl_ui_pager_page_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); + } - public delegate Eina.Size2D.NativeStruct efl_ui_pager_page_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_pager_page_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_page_size_get"); - private static Eina.Size2D.NativeStruct page_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_pager_page_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Pager)wrapper).GetPageSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); } - return _ret_var; - } else { - return efl_ui_pager_page_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_pager_page_size_get_delegate efl_ui_pager_page_size_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } - private delegate void efl_ui_pager_page_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); + } - public delegate void efl_ui_pager_page_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_ui_pager_page_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_page_size_set"); - private static void page_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_ui_pager_page_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; - - try { - ((Pager)wrapper).SetPageSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_pager_page_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - private static efl_ui_pager_page_size_set_delegate efl_ui_pager_page_size_set_static_delegate; + if (efl_pack_begin_static_delegate == null) + { + efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); + } + if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); + } - private delegate int efl_ui_pager_padding_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_end_static_delegate == null) + { + efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); + } + if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); + } - public delegate int efl_ui_pager_padding_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_pager_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_padding_get"); - private static int padding_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_pager_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Pager)wrapper).GetPadding(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_before_static_delegate == null) + { + efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); } - return _ret_var; - } else { - return efl_ui_pager_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_pager_padding_get_delegate efl_ui_pager_padding_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); + } - private delegate void efl_ui_pager_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, int padding); + if (efl_pack_after_static_delegate == null) + { + efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); + } + if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); + } - public delegate void efl_ui_pager_padding_set_api_delegate(System.IntPtr obj, int padding); - public static Efl.Eo.FunctionWrapper efl_ui_pager_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pager_padding_set"); - private static void padding_set(System.IntPtr obj, System.IntPtr pd, int padding) - { - Eina.Log.Debug("function efl_ui_pager_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pager)wrapper).SetPadding( padding); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_pager_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), padding); - } - } - private static efl_ui_pager_padding_set_delegate efl_ui_pager_padding_set_static_delegate; + if (efl_pack_at_static_delegate == null) + { + efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); + } + if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); + } - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + if (efl_pack_content_get_static_delegate == null) + { + efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((Pager)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + if (efl_pack_index_get_static_delegate == null) + { + efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + if (efl_pack_unpack_at_static_delegate == null) + { + efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); + } + if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); + } - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pager)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Pager.efl_ui_pager_class_get(); } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; - - - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_ui_pager_transition_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Page.Transition transition); + + + public delegate void efl_ui_pager_transition_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Page.Transition transition); + + public static Efl.Eo.FunctionWrapper efl_ui_pager_transition_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_transition_set"); + + private static void transition_set(System.IntPtr obj, System.IntPtr pd, Efl.Page.Transition transition) + { + Eina.Log.Debug("function efl_ui_pager_transition_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pager)wrapper).SetTransition(transition); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_pager_transition_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), transition); + } + } - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((Pager)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); + private static efl_ui_pager_transition_set_delegate efl_ui_pager_transition_set_static_delegate; + + + private delegate void efl_ui_pager_indicator_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Page.Indicator indicator); + + + public delegate void efl_ui_pager_indicator_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Page.Indicator indicator); + + public static Efl.Eo.FunctionWrapper efl_ui_pager_indicator_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_indicator_set"); + + private static void indicator_set(System.IntPtr obj, System.IntPtr pd, Efl.Page.Indicator indicator) + { + Eina.Log.Debug("function efl_ui_pager_indicator_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pager)wrapper).SetIndicator(indicator); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_pager_indicator_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), indicator); + } } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + private static efl_ui_pager_indicator_set_delegate efl_ui_pager_indicator_set_static_delegate; + + + private delegate int efl_ui_pager_current_page_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_ui_pager_current_page_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_pager_current_page_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_current_page_get"); + + private static int current_page_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_pager_current_page_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Pager)wrapper).GetCurrentPage(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + return _ret_var; + } + else + { + return efl_ui_pager_current_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Pager)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + private static efl_ui_pager_current_page_get_delegate efl_ui_pager_current_page_get_static_delegate; + + + private delegate void efl_ui_pager_current_page_set_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + + public delegate void efl_ui_pager_current_page_set_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_ui_pager_current_page_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_current_page_set"); + + private static void current_page_set(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_ui_pager_current_page_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pager)wrapper).SetCurrentPage(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_pager_current_page_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + private static efl_ui_pager_current_page_set_delegate efl_ui_pager_current_page_set_static_delegate; + + + private delegate void efl_ui_pager_scroll_block_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool prev, [MarshalAs(UnmanagedType.U1)] out bool next); + + + public delegate void efl_ui_pager_scroll_block_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool prev, [MarshalAs(UnmanagedType.U1)] out bool next); + + public static Efl.Eo.FunctionWrapper efl_ui_pager_scroll_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_scroll_block_get"); + + private static void scroll_block_get(System.IntPtr obj, System.IntPtr pd, out bool prev, out bool next) + { + Eina.Log.Debug("function efl_ui_pager_scroll_block_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + prev = default(bool); next = default(bool); + try + { + ((Pager)wrapper).GetScrollBlock(out prev, out next); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_pager_scroll_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out prev, out next); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_pager_scroll_block_get_delegate efl_ui_pager_scroll_block_get_static_delegate; + + + private delegate void efl_ui_pager_scroll_block_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool prev, [MarshalAs(UnmanagedType.U1)] bool next); + + + public delegate void efl_ui_pager_scroll_block_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool prev, [MarshalAs(UnmanagedType.U1)] bool next); + + public static Efl.Eo.FunctionWrapper efl_ui_pager_scroll_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_scroll_block_set"); + + private static void scroll_block_set(System.IntPtr obj, System.IntPtr pd, bool prev, bool next) + { + Eina.Log.Debug("function efl_ui_pager_scroll_block_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pager)wrapper).SetScrollBlock(prev, next); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_pager_scroll_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), prev, next); + } + } + private static efl_ui_pager_scroll_block_set_delegate efl_ui_pager_scroll_block_set_static_delegate; + + + private delegate Efl.Ui.PagerLoop efl_ui_pager_loop_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.PagerLoop efl_ui_pager_loop_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_pager_loop_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_loop_mode_get"); + + private static Efl.Ui.PagerLoop loop_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_pager_loop_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.PagerLoop _ret_var = default(Efl.Ui.PagerLoop); + try + { + _ret_var = ((Pager)wrapper).GetLoopMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pager)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + } + else + { + return efl_ui_pager_loop_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_pager_loop_mode_get_delegate efl_ui_pager_loop_mode_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_pager_loop_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PagerLoop loop); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_pager_loop_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.PagerLoop loop); + + public static Efl.Eo.FunctionWrapper efl_ui_pager_loop_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_loop_mode_set"); + + private static bool loop_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PagerLoop loop) + { + Eina.Log.Debug("function efl_ui_pager_loop_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pager)wrapper).SetLoopMode(loop); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pager)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_pager_loop_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop); + } } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_ui_pager_loop_mode_set_delegate efl_ui_pager_loop_mode_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_ui_pager_page_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_ui_pager_page_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_pager_page_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_page_size_get"); + + private static Eina.Size2D.NativeStruct page_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_pager_page_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Pager)wrapper).GetPageSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pager)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_ui_pager_page_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + private static efl_ui_pager_page_size_get_delegate efl_ui_pager_page_size_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + + private delegate void efl_ui_pager_page_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_ui_pager_page_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pager)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_pager_page_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_page_size_set"); + + private static void page_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_ui_pager_page_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; + + try + { + ((Pager)wrapper).SetPageSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_pager_page_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } - return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } - } - private static efl_pack_delegate efl_pack_static_delegate; + private static efl_ui_pager_page_size_set_delegate efl_ui_pager_page_size_set_static_delegate; + + + private delegate int efl_ui_pager_padding_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_ui_pager_padding_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_pager_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_padding_get"); + + private static int padding_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_pager_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Pager)wrapper).GetPadding(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_begin"); - private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_begin was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pager)wrapper).PackBegin( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_ui_pager_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + private static efl_ui_pager_padding_get_delegate efl_ui_pager_padding_get_static_delegate; + + + private delegate void efl_ui_pager_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, int padding); + + + public delegate void efl_ui_pager_padding_set_api_delegate(System.IntPtr obj, int padding); + + public static Efl.Eo.FunctionWrapper efl_ui_pager_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pager_padding_set"); + + private static void padding_set(System.IntPtr obj, System.IntPtr pd, int padding) + { + Eina.Log.Debug("function efl_ui_pager_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pager)wrapper).SetPadding(padding); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_pager_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), padding); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + private static efl_ui_pager_padding_set_delegate efl_ui_pager_padding_set_static_delegate; + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((Pager)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); + } + } + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pager)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_end"); - private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pager)wrapper).PackEnd( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((Pager)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); } - return _ret_var; - } else { - return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } - } - private static efl_pack_end_delegate efl_pack_end_static_delegate; + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Pager)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pager)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_before"); - private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_before was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pager)wrapper).PackBefore( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_before_delegate efl_pack_before_static_delegate; + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pager)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); + return _ret_var; + } + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pager)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity existing); - public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_after"); - private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_after was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pager)wrapper).PackAfter( subobj, existing); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_after_delegate efl_pack_after_static_delegate; + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pager)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); + return _ret_var; + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_delegate efl_pack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); + + private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_begin was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pager)wrapper).PackBegin(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_at"); - private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) - { - Eina.Log.Debug("function efl_pack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pager)wrapper).PackAt( subobj, index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + else + { + return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_at_delegate efl_pack_at_static_delegate; + private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); + + private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pager)wrapper).PackEnd(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + return _ret_var; + } + else + { + return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_end_delegate efl_pack_end_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); + + private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_before was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pager)wrapper).PackBefore(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_content_get"); - private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Pager)wrapper).GetPackContent( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + else + { + return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } } - } - private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + private static efl_pack_before_delegate efl_pack_before_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); + + private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_after was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pager)wrapper).PackAfter(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + return _ret_var; + } + else + { + return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } + + private static efl_pack_after_delegate efl_pack_after_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); + + private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) + { + Eina.Log.Debug("function efl_pack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pager)wrapper).PackAt(subobj, index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_index_get"); - private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_index_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Pager)wrapper).GetPackIndex( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + else + { + return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + } } - } - private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + private static efl_pack_at_delegate efl_pack_at_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); + + private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Pager)wrapper).GetPackContent(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + return _ret_var; + } + else + { + return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_at"); - private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_unpack_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Pager)wrapper).PackUnpackAt( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + + + private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); + + private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_index_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Pager)wrapper).GetPackIndex(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); } + } + + private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); + + private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_unpack_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Pager)wrapper).PackUnpackAt(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + + } + else + { + return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } } - } - private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } -namespace Efl { namespace Ui { +} + +} + +namespace Efl { + +namespace Ui { + /// Efl ui pager loop mode public enum PagerLoop { -/// Disabled = 0, -/// Enabled = 1, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_pan.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_pan.eo.cs index 4ca2a43..d93d002 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_pan.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_pan.eo.cs @@ -3,585 +3,783 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary pan class -[PanNativeInherit] +[Efl.Ui.Pan.NativeMethods] public class Pan : Efl.Canvas.Group, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Pan)) - return Efl.Ui.PanNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Pan)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_pan_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Pan(Efl.Object parent= null - ) : - base(efl_ui_pan_class_get(), typeof(Pan), parent) + ) : base(efl_ui_pan_class_get(), typeof(Pan), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Pan(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Pan(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Pan(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object PanContentChangedEvtKey = new object(); + /// Called when pan content changed public event EventHandler PanContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PAN_EVENT_PAN_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PanContentChangedEvt_delegate)) { - eventHandlers.AddHandler(PanContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PAN_EVENT_PAN_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PanContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PanContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event PanContentChangedEvt. - public void On_PanContentChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PanContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PanContentChangedEvt_delegate; - private void on_PanContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPanContentChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_PanContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_PAN_EVENT_PAN_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PanViewportChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when pan viewport changed public event EventHandler PanViewportChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PAN_EVENT_PAN_VIEWPORT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PanViewportChangedEvt_delegate)) { - eventHandlers.AddHandler(PanViewportChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PAN_EVENT_PAN_VIEWPORT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PanViewportChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PanViewportChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event PanViewportChangedEvt. - public void On_PanViewportChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PanViewportChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PanViewportChangedEvt_delegate; - private void on_PanViewportChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPanViewportChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_PanViewportChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_PAN_EVENT_PAN_VIEWPORT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PanPositionChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when pan position changed public event EventHandler PanPositionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PAN_EVENT_PAN_POSITION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PanPositionChangedEvt_delegate)) { - eventHandlers.AddHandler(PanPositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PAN_EVENT_PAN_POSITION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PanPositionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PanPositionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event PanPositionChangedEvt. - public void On_PanPositionChangedEvt(EventArgs e) + public void OnPanPositionChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PanPositionChangedEvtKey]; + var key = "_EFL_UI_PAN_EVENT_PAN_POSITION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PanPositionChangedEvt_delegate; - private void on_PanPositionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_PanPositionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ContentChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_PanContentChangedEvt_delegate = new Efl.EventCb(on_PanContentChangedEvt_NativeCallback); - evt_PanViewportChangedEvt_delegate = new Efl.EventCb(on_PanViewportChangedEvt_NativeCallback); - evt_PanPositionChangedEvt_delegate = new Efl.EventCb(on_PanPositionChangedEvt_NativeCallback); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Position - /// virtual public Eina.Position2D GetPanPosition() { - var _ret_var = Efl.Ui.PanNativeInherit.efl_ui_pan_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Pan.NativeMethods.efl_ui_pan_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Position - /// - /// - virtual public void SetPanPosition( Eina.Position2D position) { + virtual public void SetPanPosition(Eina.Position2D position) { Eina.Position2D.NativeStruct _in_position = position; - Efl.Ui.PanNativeInherit.efl_ui_pan_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_position); + Efl.Ui.Pan.NativeMethods.efl_ui_pan_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_position); Eina.Error.RaiseIfUnhandledException(); } /// Content size - /// virtual public Eina.Size2D GetContentSize() { - var _ret_var = Efl.Ui.PanNativeInherit.efl_ui_pan_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Pan.NativeMethods.efl_ui_pan_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The minimal position to scroll - /// virtual public Eina.Position2D GetPanPositionMin() { - var _ret_var = Efl.Ui.PanNativeInherit.efl_ui_pan_position_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Pan.NativeMethods.efl_ui_pan_position_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The maximal position to scroll - /// virtual public Eina.Position2D GetPanPositionMax() { - var _ret_var = Efl.Ui.PanNativeInherit.efl_ui_pan_position_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Pan.NativeMethods.efl_ui_pan_position_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Position -/// public Eina.Position2D PanPosition { get { return GetPanPosition(); } - set { SetPanPosition( value); } + set { SetPanPosition(value); } } /// Content size -/// public Eina.Size2D ContentSize { get { return GetContentSize(); } } /// The minimal position to scroll -/// public Eina.Position2D PanPositionMin { get { return GetPanPositionMin(); } } /// The maximal position to scroll -/// public Eina.Position2D PanPositionMax { get { return GetPanPositionMax(); } } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Pan.efl_ui_pan_class_get(); } -} -public class PanNativeInherit : Efl.Canvas.GroupNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_pan_position_get_static_delegate == null) - efl_ui_pan_position_get_static_delegate = new efl_ui_pan_position_get_delegate(pan_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPanPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pan_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_get_static_delegate)}); - if (efl_ui_pan_position_set_static_delegate == null) - efl_ui_pan_position_set_static_delegate = new efl_ui_pan_position_set_delegate(pan_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetPanPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pan_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_set_static_delegate)}); - if (efl_ui_pan_content_size_get_static_delegate == null) - efl_ui_pan_content_size_get_static_delegate = new efl_ui_pan_content_size_get_delegate(content_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pan_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_content_size_get_static_delegate)}); - if (efl_ui_pan_position_min_get_static_delegate == null) - efl_ui_pan_position_min_get_static_delegate = new efl_ui_pan_position_min_get_delegate(pan_position_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetPanPositionMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pan_position_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_min_get_static_delegate)}); - if (efl_ui_pan_position_max_get_static_delegate == null) - efl_ui_pan_position_max_get_static_delegate = new efl_ui_pan_position_max_get_delegate(pan_position_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetPanPositionMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pan_position_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_max_get_static_delegate)}); - if (efl_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Pan.efl_ui_pan_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Group.NativeMethods { - return Efl.Ui.Pan.efl_ui_pan_class_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_pan_position_get_static_delegate == null) + { + efl_ui_pan_position_get_static_delegate = new efl_ui_pan_position_get_delegate(pan_position_get); + } - private delegate Eina.Position2D.NativeStruct efl_ui_pan_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPanPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pan_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_get_static_delegate) }); + } + if (efl_ui_pan_position_set_static_delegate == null) + { + efl_ui_pan_position_set_static_delegate = new efl_ui_pan_position_set_delegate(pan_position_set); + } - public delegate Eina.Position2D.NativeStruct efl_ui_pan_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_pan_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pan_position_get"); - private static Eina.Position2D.NativeStruct pan_position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_pan_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Pan)wrapper).GetPanPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPanPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pan_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_pan_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_pan_position_get_delegate efl_ui_pan_position_get_static_delegate; + if (efl_ui_pan_content_size_get_static_delegate == null) + { + efl_ui_pan_content_size_get_static_delegate = new efl_ui_pan_content_size_get_delegate(content_size_get); + } - private delegate void efl_ui_pan_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct position); + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pan_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_content_size_get_static_delegate) }); + } + if (efl_ui_pan_position_min_get_static_delegate == null) + { + efl_ui_pan_position_min_get_static_delegate = new efl_ui_pan_position_min_get_delegate(pan_position_min_get); + } - public delegate void efl_ui_pan_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct position); - public static Efl.Eo.FunctionWrapper efl_ui_pan_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pan_position_set"); - private static void pan_position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct position) - { - Eina.Log.Debug("function efl_ui_pan_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_position = position; - - try { - ((Pan)wrapper).SetPanPosition( _in_position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_pan_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); - } - } - private static efl_ui_pan_position_set_delegate efl_ui_pan_position_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPanPositionMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pan_position_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_min_get_static_delegate) }); + } + if (efl_ui_pan_position_max_get_static_delegate == null) + { + efl_ui_pan_position_max_get_static_delegate = new efl_ui_pan_position_max_get_delegate(pan_position_max_get); + } - private delegate Eina.Size2D.NativeStruct efl_ui_pan_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPanPositionMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_pan_position_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_max_get_static_delegate) }); + } + if (efl_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - public delegate Eina.Size2D.NativeStruct efl_ui_pan_content_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_pan_content_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pan_content_size_get"); - private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_pan_content_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Pan)wrapper).GetContentSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_pan_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_pan_content_size_get_delegate efl_ui_pan_content_size_get_static_delegate; + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - private delegate Eina.Position2D.NativeStruct efl_ui_pan_position_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } - public delegate Eina.Position2D.NativeStruct efl_ui_pan_position_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_pan_position_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pan_position_min_get"); - private static Eina.Position2D.NativeStruct pan_position_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_pan_position_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Pan)wrapper).GetPanPositionMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_pan_position_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_pan_position_min_get_delegate efl_ui_pan_position_min_get_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Pan.efl_ui_pan_class_get(); + } - private delegate Eina.Position2D.NativeStruct efl_ui_pan_position_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.Position2D.NativeStruct efl_ui_pan_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_pan_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_pan_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pan_position_get"); + + private static Eina.Position2D.NativeStruct pan_position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_pan_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Pan)wrapper).GetPanPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Position2D.NativeStruct efl_ui_pan_position_max_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_pan_position_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_pan_position_max_get"); - private static Eina.Position2D.NativeStruct pan_position_max_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_pan_position_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Pan)wrapper).GetPanPositionMax(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_pan_position_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_pan_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_pan_position_max_get_delegate efl_ui_pan_position_max_get_static_delegate; + private static efl_ui_pan_position_get_delegate efl_ui_pan_position_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_pan_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct position); + + public delegate void efl_ui_pan_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct position); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Pan)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_pan_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pan_position_set"); + + private static void pan_position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct position) + { + Eina.Log.Debug("function efl_ui_pan_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_position = position; + + try + { + ((Pan)wrapper).SetPanPosition(_in_position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_pan_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); } + } + + private static efl_ui_pan_position_set_delegate efl_ui_pan_position_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_ui_pan_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_ui_pan_content_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_pan_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pan_content_size_get"); + + private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_pan_content_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Pan)wrapper).GetContentSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_pan_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + private static efl_ui_pan_content_size_get_delegate efl_ui_pan_content_size_get_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_pan_position_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_pan_position_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_pan_position_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pan_position_min_get"); + + private static Eina.Position2D.NativeStruct pan_position_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_pan_position_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Pan)wrapper).GetPanPositionMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + return _ret_var; + } + else + { + return efl_ui_pan_position_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_pan_position_min_get_delegate efl_ui_pan_position_min_get_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_pan_position_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_pan_position_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_pan_position_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_pan_position_max_get"); + + private static Eina.Position2D.NativeStruct pan_position_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_pan_position_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Pan)wrapper).GetPanPositionMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Pan)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_ui_pan_position_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_ui_pan_position_max_get_delegate efl_ui_pan_position_max_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Pan)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_content_get_delegate efl_content_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Pan)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Pan)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Pan)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_panel.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_panel.eo.cs index c1d81c2..82fe520 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_panel.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_panel.eo.cs @@ -3,1194 +3,1413 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary panel class -[PanelNativeInherit] +[Efl.Ui.Panel.NativeMethods] public class Panel : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IContent,Efl.Ui.IScrollable,Efl.Ui.IWidgetFocusManager,Efl.Ui.Focus.ILayer,Efl.Ui.Focus.IManager,Efl.Ui.Focus.IManagerSub,Elm.IInterfaceScrollable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Panel)) - return Efl.Ui.PanelNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Panel)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_panel_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Panel(Efl.Object parent - , System.String style = null) : - base(efl_ui_panel_class_get(), typeof(Panel), parent) + , System.String style = null) : base(efl_ui_panel_class_get(), typeof(Panel), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Panel(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Panel(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Panel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ToggledEvtKey = new object(); + /// Called when the hidden state was toggled public event EventHandler ToggledEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PANEL_EVENT_TOGGLED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ToggledEvt_delegate)) { - eventHandlers.AddHandler(ToggledEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PANEL_EVENT_TOGGLED"; - if (RemoveNativeEventHandler(key, this.evt_ToggledEvt_delegate)) { - eventHandlers.RemoveHandler(ToggledEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ToggledEvt. - public void On_ToggledEvt(EventArgs e) + public void OnToggledEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ToggledEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ToggledEvt_delegate; - private void on_ToggledEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ToggledEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_PANEL_EVENT_TOGGLED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStartEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when scroll operation starts public event EventHandler ScrollStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStartEvt. - public void On_ScrollStartEvt(EventArgs e) + public void OnScrollStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStartEvt_delegate; - private void on_ScrollStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling public event EventHandler ScrollEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollEvt_delegate)) { - eventHandlers.AddHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL"; - if (RemoveNativeEventHandler(key, this.evt_ScrollEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollEvt. - public void On_ScrollEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollEvt_delegate; - private void on_ScrollEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation stops public event EventHandler ScrollStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStopEvt. - public void On_ScrollStopEvt(EventArgs e) + public void OnScrollStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStopEvt_delegate; - private void on_ScrollStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling upwards public event EventHandler ScrollUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.AddHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollUpEvt. - public void On_ScrollUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollUpEvt_delegate; - private void on_ScrollUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling downwards public event EventHandler ScrollDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.AddHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDownEvt. - public void On_ScrollDownEvt(EventArgs e) + public void OnScrollDownEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDownEvt_delegate; - private void on_ScrollDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling left public event EventHandler ScrollLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.AddHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollLeftEvt. - public void On_ScrollLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollLeftEvt_delegate; - private void on_ScrollLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling right public event EventHandler ScrollRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.AddHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollRightEvt. - public void On_ScrollRightEvt(EventArgs e) + public void OnScrollRightEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollRightEvt_delegate; - private void on_ScrollRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the top edge public event EventHandler EdgeUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.AddHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_UP"; - if (RemoveNativeEventHandler(key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeUpEvt. - public void On_EdgeUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeUpEvt_delegate; - private void on_EdgeUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the bottom edge public event EventHandler EdgeDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.AddHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeDownEvt. - public void On_EdgeDownEvt(EventArgs e) + public void OnEdgeDownEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeDownEvt_delegate; - private void on_EdgeDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the left edge public event EventHandler EdgeLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.AddHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeLeftEvt. - public void On_EdgeLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeLeftEvt_delegate; - private void on_EdgeLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the right edge public event EventHandler EdgeRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.AddHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeRightEvt. - public void On_EdgeRightEvt(EventArgs e) + public void OnEdgeRightEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeRightEvt_delegate; - private void on_EdgeRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation starts public event EventHandler ScrollAnimStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStartEvt. - public void On_ScrollAnimStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStartEvt_delegate; - private void on_ScrollAnimStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation stopps public event EventHandler ScrollAnimStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStopEvt. - public void On_ScrollAnimStopEvt(EventArgs e) + public void OnScrollAnimStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStopEvt_delegate; - private void on_ScrollAnimStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag starts public event EventHandler ScrollDragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStartEvt. - public void On_ScrollDragStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStartEvt_delegate; - private void on_ScrollDragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDragStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag stops public event EventHandler ScrollDragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStopEvt. - public void On_ScrollDragStopEvt(EventArgs e) + public void OnScrollDragStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStopEvt_delegate; - private void on_ScrollDragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RedirectChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) public event EventHandler RedirectChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.AddHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.RemoveHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedirectChangedEvt. - public void On_RedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedirectChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedirectChangedEvt_delegate; - private void on_RedirectChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_RedirectChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FlushPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.AddHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (RemoveNativeEventHandler(key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.RemoveHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FlushPreEvt. - public void On_FlushPreEvt(EventArgs e) + public void OnFlushPreEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FlushPreEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FlushPreEvt_delegate; - private void on_FlushPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_FlushPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CoordsDirtyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.AddHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (RemoveNativeEventHandler(key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.RemoveHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CoordsDirtyEvt. - public void On_CoordsDirtyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CoordsDirtyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CoordsDirtyEvt_delegate; - private void on_CoordsDirtyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCoordsDirtyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_CoordsDirtyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ManagerFocusChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) public event EventHandler ManagerFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ManagerFocusChangedEvt. - public void On_ManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ManagerFocusChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ManagerFocusChangedEvt_delegate; - private void on_ManagerFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_ManagerFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DirtyLogicFreezeChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) public event EventHandler DirtyLogicFreezeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.AddHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DirtyLogicFreezeChangedEvt. - public void On_DirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DirtyLogicFreezeChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DirtyLogicFreezeChangedEvt_delegate; - private void on_DirtyLogicFreezeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_DirtyLogicFreezeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ChangedEvtKey = new object(); /// Called when content changed public event EventHandler ChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) { - eventHandlers.AddHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedEvt. - public void On_ChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedEvt_delegate; - private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ToggledEvt_delegate = new Efl.EventCb(on_ToggledEvt_NativeCallback); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); - evt_ScrollStartEvt_delegate = new Efl.EventCb(on_ScrollStartEvt_NativeCallback); - evt_ScrollEvt_delegate = new Efl.EventCb(on_ScrollEvt_NativeCallback); - evt_ScrollStopEvt_delegate = new Efl.EventCb(on_ScrollStopEvt_NativeCallback); - evt_ScrollUpEvt_delegate = new Efl.EventCb(on_ScrollUpEvt_NativeCallback); - evt_ScrollDownEvt_delegate = new Efl.EventCb(on_ScrollDownEvt_NativeCallback); - evt_ScrollLeftEvt_delegate = new Efl.EventCb(on_ScrollLeftEvt_NativeCallback); - evt_ScrollRightEvt_delegate = new Efl.EventCb(on_ScrollRightEvt_NativeCallback); - evt_EdgeUpEvt_delegate = new Efl.EventCb(on_EdgeUpEvt_NativeCallback); - evt_EdgeDownEvt_delegate = new Efl.EventCb(on_EdgeDownEvt_NativeCallback); - evt_EdgeLeftEvt_delegate = new Efl.EventCb(on_EdgeLeftEvt_NativeCallback); - evt_EdgeRightEvt_delegate = new Efl.EventCb(on_EdgeRightEvt_NativeCallback); - evt_ScrollAnimStartEvt_delegate = new Efl.EventCb(on_ScrollAnimStartEvt_NativeCallback); - evt_ScrollAnimStopEvt_delegate = new Efl.EventCb(on_ScrollAnimStopEvt_NativeCallback); - evt_ScrollDragStartEvt_delegate = new Efl.EventCb(on_ScrollDragStartEvt_NativeCallback); - evt_ScrollDragStopEvt_delegate = new Efl.EventCb(on_ScrollDragStopEvt_NativeCallback); - evt_RedirectChangedEvt_delegate = new Efl.EventCb(on_RedirectChangedEvt_NativeCallback); - evt_FlushPreEvt_delegate = new Efl.EventCb(on_FlushPreEvt_NativeCallback); - evt_CoordsDirtyEvt_delegate = new Efl.EventCb(on_CoordsDirtyEvt_NativeCallback); - evt_ManagerFocusChangedEvt_delegate = new Efl.EventCb(on_ManagerFocusChangedEvt_NativeCallback); - evt_DirtyLogicFreezeChangedEvt_delegate = new Efl.EventCb(on_DirtyLogicFreezeChangedEvt_NativeCallback); - evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Gets the orientation of the panel. /// The panel orientation. virtual public Efl.Ui.PanelOrient GetOrient() { - var _ret_var = Efl.Ui.PanelNativeInherit.efl_ui_panel_orient_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Panel.NativeMethods.efl_ui_panel_orient_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the orientation of the panel /// Sets from where the panel will (dis)appear. /// The panel orientation. - /// - virtual public void SetOrient( Efl.Ui.PanelOrient orient) { - Efl.Ui.PanelNativeInherit.efl_ui_panel_orient_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), orient); + virtual public void SetOrient(Efl.Ui.PanelOrient orient) { + Efl.Ui.Panel.NativeMethods.efl_ui_panel_orient_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),orient); Eina.Error.RaiseIfUnhandledException(); } /// Gets the state of the panel. /// If true, the panel will run the animation to disappear. virtual public bool GetHidden() { - var _ret_var = Efl.Ui.PanelNativeInherit.efl_ui_panel_hidden_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Panel.NativeMethods.efl_ui_panel_hidden_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the state of the panel. /// If true, the panel will run the animation to disappear. - /// - virtual public void SetHidden( bool hidden) { - Efl.Ui.PanelNativeInherit.efl_ui_panel_hidden_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hidden); + virtual public void SetHidden(bool hidden) { + Efl.Ui.Panel.NativeMethods.efl_ui_panel_hidden_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hidden); Eina.Error.RaiseIfUnhandledException(); } /// Gets the state of the scrollability. /// The scrollable state. virtual public bool GetScrollable() { - var _ret_var = Efl.Ui.PanelNativeInherit.efl_ui_panel_scrollable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Panel.NativeMethods.efl_ui_panel_scrollable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the scrollability of the panel. /// The scrollable state. - /// - virtual public void SetScrollable( bool scrollable) { - Efl.Ui.PanelNativeInherit.efl_ui_panel_scrollable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scrollable); + virtual public void SetScrollable(bool scrollable) { + Efl.Ui.Panel.NativeMethods.efl_ui_panel_scrollable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scrollable); Eina.Error.RaiseIfUnhandledException(); } /// Gets the size of the scrollable panel. /// Size ratio virtual public double GetScrollableContentSize() { - var _ret_var = Efl.Ui.PanelNativeInherit.efl_ui_panel_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Panel.NativeMethods.efl_ui_panel_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the size of the scrollable panel. /// Size ratio - /// - virtual public void SetScrollableContentSize( double ratio) { - Efl.Ui.PanelNativeInherit.efl_ui_panel_scrollable_content_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ratio); + virtual public void SetScrollableContentSize(double ratio) { + Efl.Ui.Panel.NativeMethods.efl_ui_panel_scrollable_content_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ratio); Eina.Error.RaiseIfUnhandledException(); } /// Toggle the hidden state of the panel from code - /// virtual public void Toggle() { - Efl.Ui.PanelNativeInherit.efl_ui_panel_toggle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Panel.NativeMethods.efl_ui_panel_toggle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1199,39 +1418,36 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// The logical root object for focus. /// The focus manager. - virtual public Efl.Ui.Focus.IManager FocusManagerCreate( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.IWidgetFocusManagerNativeInherit.efl_ui_widget_focus_manager_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods.efl_ui_widget_focus_manager_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable property /// true to set enable the layer false to disable it virtual public bool GetEnable() { - var _ret_var = Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_enable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_enable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable property /// true to set enable the layer false to disable it - /// - virtual public void SetEnable( bool v) { - Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_enable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), v); + virtual public void SetEnable(bool v) { + Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_enable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),v); Eina.Error.RaiseIfUnhandledException(); } /// Constructor for setting the behaviour of the layer /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically /// If true the focus will cycle in the layer, if false - /// - virtual public void GetBehaviour( out bool enable_on_visible, out bool cycle) { - Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out enable_on_visible, out cycle); + virtual public void GetBehaviour(out bool enable_on_visible, out bool cycle) { + Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out enable_on_visible, out cycle); Eina.Error.RaiseIfUnhandledException(); } /// Constructor for setting the behaviour of the layer /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically /// If true the focus will cycle in the layer, if false - /// - virtual public void SetBehaviour( bool enable_on_visible, bool cycle) { - Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enable_on_visible, cycle); + virtual public void SetBehaviour(bool enable_on_visible, bool cycle) { + Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enable_on_visible, cycle); Eina.Error.RaiseIfUnhandledException(); } /// The element which is currently focused by this manager @@ -1239,7 +1455,7 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// Currently focused element. virtual public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1247,9 +1463,8 @@ private static object ChangedEvtKey = new object(); /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. - /// - virtual public void SetManagerFocus( Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), focus); + virtual public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. @@ -1257,7 +1472,7 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// The redirect manager. virtual public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1265,9 +1480,8 @@ private static object ChangedEvtKey = new object(); /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. - /// - virtual public void SetRedirect( Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), redirect); + virtual public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. @@ -1275,7 +1489,7 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the border objects. virtual public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -1284,9 +1498,9 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. - virtual public Eina.Iterator GetViewportElements( Eina.Rect viewport) { + virtual public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_viewport); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -1295,7 +1509,7 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. virtual public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1304,8 +1518,8 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node - virtual public bool SetRoot( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1314,8 +1528,8 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. - virtual public Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction); + virtual public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1325,8 +1539,8 @@ private static object ChangedEvtKey = new object(); /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. - virtual public Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, child, logical); + virtual public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1335,8 +1549,8 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. - virtual public Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1345,8 +1559,8 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. - virtual public Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child); + virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); @@ -1357,24 +1571,22 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// Last object. virtual public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) - /// virtual public void ResetHistory() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) - /// virtual public void PopHistoryStack() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. @@ -1382,25 +1594,22 @@ private static object ChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. - /// - virtual public void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, entry); + virtual public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) - /// virtual public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) - /// virtual public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -1413,9 +1622,8 @@ private static object ChangedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void GetGravity( out double x, out double y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetGravity(out double x, out double y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -1428,41 +1636,37 @@ private static object ChangedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void SetGravity( double x, double y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetGravity(double x, double y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void GetBounceAllow( out bool horiz, out bool vert) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out horiz, out vert); + virtual public void GetBounceAllow(out bool horiz, out bool vert) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void SetBounceAllow( bool horiz, bool vert) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), horiz, vert); + virtual public void SetBounceAllow(bool horiz, bool vert) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. /// true if wheel is disabled, false otherwise virtual public bool GetWheelDisabled() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. /// true if wheel is disabled, false otherwise - /// - virtual public void SetWheelDisabled( bool disabled) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), disabled); + virtual public void SetWheelDisabled(bool disabled) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),disabled); Eina.Error.RaiseIfUnhandledException(); } /// Blocking of scrolling (per axis) @@ -1471,7 +1675,7 @@ private static object ChangedEvtKey = new object(); /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. /// Which axis (or axes) to block virtual public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1480,41 +1684,37 @@ private static object ChangedEvtKey = new object(); /// /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. /// Which axis (or axes) to block - /// - virtual public void SetMovementBlock( Efl.Ui.ScrollBlock block) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), block); + virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),block); Eina.Error.RaiseIfUnhandledException(); } /// Momentum animator /// true if disabled, false otherwise virtual public bool GetMomentumAnimatorDisabled() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Momentum animator /// true if disabled, false otherwise - /// - virtual public void SetMomentumAnimatorDisabled( bool disabled) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), disabled); + virtual public void SetMomentumAnimatorDisabled(bool disabled) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),disabled); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. /// Horizontal scrollbar policy /// Vertical scrollbar policy - /// - virtual public void GetPolicy( out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_policy_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out hbar, out vbar); + virtual public void GetPolicy(out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_policy_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out hbar, out vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. /// Horizontal scrollbar policy /// Vertical scrollbar policy - /// - virtual public void SetPolicy( Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_policy_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hbar, vbar); + virtual public void SetPolicy(Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_policy_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hbar, vbar); Eina.Error.RaiseIfUnhandledException(); } /// Currently visible content region @@ -1527,9 +1727,8 @@ private static object ChangedEvtKey = new object(); /// Y coordinate of the region /// Width of the region /// Height of the region - /// - virtual public void GetContentRegion( out int x, out int y, out int w, out int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y, out w, out h); + virtual public void GetContentRegion(out int x, out int y, out int w, out int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y, out w, out h); Eina.Error.RaiseIfUnhandledException(); } /// Currently visible content region @@ -1542,71 +1741,64 @@ private static object ChangedEvtKey = new object(); /// Y coordinate of the region /// Width of the region /// Height of the region - /// - virtual public void SetContentRegion( int x, int y, int w, int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, w, h); + virtual public void SetContentRegion(int x, int y, int w, int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, w, h); Eina.Error.RaiseIfUnhandledException(); } /// It decides whether the scrollable object propagates the events to content object or not. /// true if events are propagated, false otherwise virtual public bool GetContentEvents() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// It decides whether the scrollable object propagates the events to content object or not. /// true if events are propagated, false otherwise - /// - virtual public void SetContentEvents( bool repeat_events) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), repeat_events); + virtual public void SetContentEvents(bool repeat_events) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),repeat_events); Eina.Error.RaiseIfUnhandledException(); } /// Scroll page size relative to viewport size. /// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. /// The horizontal page relative size /// The vertical page relative size - /// - virtual public void GetPageSize( out int x, out int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetPageSize(out int x, out int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Scroll page size relative to viewport size. /// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. /// The horizontal page relative size /// The vertical page relative size - /// - virtual public void SetPageSize( int x, int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetPageSize(int x, int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Bounce animator /// true if bounce animation is disabled, false otherwise virtual public bool GetBounceAnimatorDisabled() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Bounce animator /// true if bounce animation is disabled, false otherwise - /// - virtual public void SetBounceAnimatorDisabled( bool disabled) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), disabled); + virtual public void SetBounceAnimatorDisabled(bool disabled) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),disabled); Eina.Error.RaiseIfUnhandledException(); } /// Page scroll limit /// Page limit horizontal /// Page limit vertical - /// - virtual public void GetPageScrollLimit( out int page_limit_h, out int page_limit_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out page_limit_h, out page_limit_v); + virtual public void GetPageScrollLimit(out int page_limit_h, out int page_limit_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out page_limit_h, out page_limit_v); Eina.Error.RaiseIfUnhandledException(); } /// Page scroll limit /// Page limit horizontal /// Page limit vertical - /// - virtual public void SetPageScrollLimit( int page_limit_h, int page_limit_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), page_limit_h, page_limit_v); + virtual public void SetPageScrollLimit(int page_limit_h, int page_limit_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),page_limit_h, page_limit_v); Eina.Error.RaiseIfUnhandledException(); } /// Page snapping behavior @@ -1615,9 +1807,8 @@ private static object ChangedEvtKey = new object(); /// Note: If obj is not set to have pages, nothing will happen after this call. /// Allow snap horizontally /// Allow snap vertically - /// - virtual public void GetPageSnapAllow( out bool horiz, out bool vert) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out horiz, out vert); + virtual public void GetPageSnapAllow(out bool horiz, out bool vert) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Page snapping behavior @@ -1626,9 +1817,8 @@ private static object ChangedEvtKey = new object(); /// Note: If obj is not set to have pages, nothing will happen after this call. /// Allow snap horizontally /// Allow snap vertically - /// - virtual public void SetPageSnapAllow( bool horiz, bool vert) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), horiz, vert); + virtual public void SetPageSnapAllow(bool horiz, bool vert) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Pagin property @@ -1636,9 +1826,8 @@ private static object ChangedEvtKey = new object(); /// Page relation vertical /// Page size horizontal /// Page size vertical - /// - virtual public void GetPaging( out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_paging_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); + virtual public void GetPaging(out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_paging_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); Eina.Error.RaiseIfUnhandledException(); } /// Pagin property @@ -1646,9 +1835,8 @@ private static object ChangedEvtKey = new object(); /// Page relation vertical /// Page size horizontal /// Page size vertical - /// - virtual public void SetPaging( double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_paging_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pagerel_h, pagerel_v, pagesize_h, pagesize_v); + virtual public void SetPaging(double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_paging_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pagerel_h, pagerel_v, pagesize_h, pagesize_v); Eina.Error.RaiseIfUnhandledException(); } /// Single direction scroll configuration @@ -1657,7 +1845,7 @@ private static object ChangedEvtKey = new object(); /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. /// The single direction scroll policy virtual public Elm.Scroller.SingleDirection GetSingleDirection() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_single_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_single_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1666,253 +1854,218 @@ private static object ChangedEvtKey = new object(); /// /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. /// The single direction scroll policy - /// - virtual public void SetSingleDirection( Elm.Scroller.SingleDirection single_dir) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_single_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), single_dir); + virtual public void SetSingleDirection(Elm.Scroller.SingleDirection single_dir) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_single_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),single_dir); Eina.Error.RaiseIfUnhandledException(); } /// Step size /// X coordinate /// Y coordinate - /// - virtual public void GetStepSize( out int x, out int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetStepSize(out int x, out int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Step size /// X coordinate /// Y coordinate - /// - virtual public void SetStepSize( int x, int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetStepSize(int x, int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The scrolling vertical loop - /// - virtual public void GetContentLoop( out bool loop_h, out bool loop_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_loop_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out loop_h, out loop_v); + virtual public void GetContentLoop(out bool loop_h, out bool loop_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_loop_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out loop_h, out loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The scrolling vertical loop - /// - virtual public void SetContentLoop( bool loop_h, bool loop_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_loop_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), loop_h, loop_v); + virtual public void SetContentLoop(bool loop_h, bool loop_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_loop_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),loop_h, loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the content has been moved up. /// The callback - /// - virtual public void SetScrollUpCb( ElmInterfaceScrollableCb scroll_up_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scroll_up_cb); + virtual public void SetScrollUpCb(ElmInterfaceScrollableCb scroll_up_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scroll_up_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the horizontal scrollbar is dragged. /// The callback - /// - virtual public void SetHbarDragCb( ElmInterfaceScrollableCb hbar_drag_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hbar_drag_cb); + virtual public void SetHbarDragCb(ElmInterfaceScrollableCb hbar_drag_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hbar_drag_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when dragging of the contents has started. /// The callback - /// - virtual public void SetDragStartCb( ElmInterfaceScrollableCb drag_start_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), drag_start_cb); + virtual public void SetDragStartCb(ElmInterfaceScrollableCb drag_start_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),drag_start_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when scrolling of the contents has started. /// The callback - /// - virtual public void SetScrollStartCb( ElmInterfaceScrollableCb scroll_start_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scroll_start_cb); + virtual public void SetScrollStartCb(ElmInterfaceScrollableCb scroll_start_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scroll_start_cb); Eina.Error.RaiseIfUnhandledException(); } /// Freeze property /// true if freeze, false otherwise - /// - virtual public void SetFreeze( bool freeze) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), freeze); + virtual public void SetFreeze(bool freeze) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),freeze); Eina.Error.RaiseIfUnhandledException(); } /// When the viewport is resized, the callback is called. /// The callback - /// - virtual public void SetContentViewportResizeCb( ElmInterfaceScrollableResizeCb viewport_resize_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), viewport_resize_cb); + virtual public void SetContentViewportResizeCb(ElmInterfaceScrollableResizeCb viewport_resize_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),viewport_resize_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the content has been moved to the left /// The callback - /// - virtual public void SetScrollLeftCb( ElmInterfaceScrollableCb scroll_left_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scroll_left_cb); + virtual public void SetScrollLeftCb(ElmInterfaceScrollableCb scroll_left_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scroll_left_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the vertical scrollbar is pressed. /// The callback - /// - virtual public void SetVbarPressCb( ElmInterfaceScrollableCb vbar_press_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), vbar_press_cb); + virtual public void SetVbarPressCb(ElmInterfaceScrollableCb vbar_press_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),vbar_press_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the horizontal scrollbar is pressed. /// The callback - /// - virtual public void SetHbarPressCb( ElmInterfaceScrollableCb hbar_press_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hbar_press_cb); + virtual public void SetHbarPressCb(ElmInterfaceScrollableCb hbar_press_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hbar_press_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the horizontal scrollbar is unpressed. /// The callback - /// - virtual public void SetHbarUnpressCb( ElmInterfaceScrollableCb hbar_unpress_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hbar_unpress_cb); + virtual public void SetHbarUnpressCb(ElmInterfaceScrollableCb hbar_unpress_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hbar_unpress_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when dragging of the contents has stopped. /// The callback - /// - virtual public void SetDragStopCb( ElmInterfaceScrollableCb drag_stop_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), drag_stop_cb); + virtual public void SetDragStopCb(ElmInterfaceScrollableCb drag_stop_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),drag_stop_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when scrolling of the contents has stopped. /// The callback - /// - virtual public void SetScrollStopCb( ElmInterfaceScrollableCb scroll_stop_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scroll_stop_cb); + virtual public void SetScrollStopCb(ElmInterfaceScrollableCb scroll_stop_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scroll_stop_cb); Eina.Error.RaiseIfUnhandledException(); } /// Extern pan /// Pan object - /// - virtual public void SetExternPan( Efl.Canvas.Object pan) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pan); + virtual public void SetExternPan(Efl.Canvas.Object pan) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pan); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the visible page changes. /// The callback - /// - virtual public void SetPageChangeCb( ElmInterfaceScrollableCb page_change_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), page_change_cb); + virtual public void SetPageChangeCb(ElmInterfaceScrollableCb page_change_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),page_change_cb); Eina.Error.RaiseIfUnhandledException(); } /// Hold property /// true if hold, false otherwise - /// - virtual public void SetHold( bool hold) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hold); + virtual public void SetHold(bool hold) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hold); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the scrolling animation has started. /// The callback - /// - virtual public void SetAnimateStartCb( ElmInterfaceScrollableCb animate_start_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), animate_start_cb); + virtual public void SetAnimateStartCb(ElmInterfaceScrollableCb animate_start_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),animate_start_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the content has been moved down. /// The callback - /// - virtual public void SetScrollDownCb( ElmInterfaceScrollableCb scroll_down_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scroll_down_cb); + virtual public void SetScrollDownCb(ElmInterfaceScrollableCb scroll_down_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scroll_down_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set scroll page size relative to viewport size. /// Page relation horizontal /// Page relation vertical - /// - virtual public void SetPageRelative( double h_pagerel, double v_pagerel) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_relative_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), h_pagerel, v_pagerel); + virtual public void SetPageRelative(double h_pagerel, double v_pagerel) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_relative_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),h_pagerel, v_pagerel); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the content has been moved. /// The callback - /// - virtual public void SetScrollCb( ElmInterfaceScrollableCb scroll_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scroll_cb); + virtual public void SetScrollCb(ElmInterfaceScrollableCb scroll_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scroll_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the scrolling animation has stopped. /// The callback - /// - virtual public void SetAnimateStopCb( ElmInterfaceScrollableCb animate_stop_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), animate_stop_cb); + virtual public void SetAnimateStopCb(ElmInterfaceScrollableCb animate_stop_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),animate_stop_cb); Eina.Error.RaiseIfUnhandledException(); } /// set the callback to run on minimal limit content /// The callback - /// - virtual public void SetContentMinLimitCb( ElmInterfaceScrollableMinLimitCb min_limit_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), min_limit_cb); + virtual public void SetContentMinLimitCb(ElmInterfaceScrollableMinLimitCb min_limit_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),min_limit_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the content has been moved to the right. /// The callback - /// - virtual public void SetScrollRightCb( ElmInterfaceScrollableCb scroll_right_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scroll_right_cb); + virtual public void SetScrollRightCb(ElmInterfaceScrollableCb scroll_right_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scroll_right_cb); Eina.Error.RaiseIfUnhandledException(); } /// Content property /// Content object - /// - virtual public void SetScrollableContent( Efl.Canvas.Object content) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + virtual public void SetScrollableContent(Efl.Canvas.Object content) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the left edge of the content has been reached. /// The callback - /// - virtual public void SetEdgeLeftCb( ElmInterfaceScrollableCb edge_left_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), edge_left_cb); + virtual public void SetEdgeLeftCb(ElmInterfaceScrollableCb edge_left_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),edge_left_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the horizontal scrollbar is dragged. /// The callback - /// - virtual public void SetVbarDragCb( ElmInterfaceScrollableCb vbar_drag_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), vbar_drag_cb); + virtual public void SetVbarDragCb(ElmInterfaceScrollableCb vbar_drag_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),vbar_drag_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the horizontal scrollbar is unpressed. /// The callback - /// - virtual public void SetVbarUnpressCb( ElmInterfaceScrollableCb vbar_unpress_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), vbar_unpress_cb); + virtual public void SetVbarUnpressCb(ElmInterfaceScrollableCb vbar_unpress_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),vbar_unpress_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the bottom edge of the content has been reached. /// The callback - /// - virtual public void SetEdgeBottomCb( ElmInterfaceScrollableCb edge_bottom_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), edge_bottom_cb); + virtual public void SetEdgeBottomCb(ElmInterfaceScrollableCb edge_bottom_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),edge_bottom_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the right edge of the content has been reached. /// The callback - /// - virtual public void SetEdgeRightCb( ElmInterfaceScrollableCb edge_right_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), edge_right_cb); + virtual public void SetEdgeRightCb(ElmInterfaceScrollableCb edge_right_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),edge_right_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the top edge of the content has been reached. /// The callback - /// - virtual public void SetEdgeTopCb( ElmInterfaceScrollableCb edge_top_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), edge_top_cb); + virtual public void SetEdgeTopCb(ElmInterfaceScrollableCb edge_top_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),edge_top_cb); Eina.Error.RaiseIfUnhandledException(); } /// Object property /// Edje object /// Evas object - /// - virtual public void SetObjects( Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_objects_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), edje_object, hit_rectangle); + virtual public void SetObjects(Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_objects_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),edje_object, hit_rectangle); Eina.Error.RaiseIfUnhandledException(); } /// Get scroll last page number. @@ -1921,9 +2074,8 @@ private static object ChangedEvtKey = new object(); /// See: , and . /// The horizontal page number /// The vertical page number - /// - virtual public void GetLastPage( out int pagenumber_h, out int pagenumber_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_last_page_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pagenumber_h, out pagenumber_v); + virtual public void GetLastPage(out int pagenumber_h, out int pagenumber_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_last_page_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pagenumber_h, out pagenumber_v); Eina.Error.RaiseIfUnhandledException(); } /// Get scroll current page number. @@ -1932,9 +2084,8 @@ private static object ChangedEvtKey = new object(); /// See: , and . /// The horizontal page number /// The vertical page number - /// - virtual public void GetCurrentPage( out int pagenumber_h, out int pagenumber_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_current_page_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pagenumber_h, out pagenumber_v); + virtual public void GetCurrentPage(out int pagenumber_h, out int pagenumber_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_current_page_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pagenumber_h, out pagenumber_v); Eina.Error.RaiseIfUnhandledException(); } /// Content viewport geometry @@ -1942,49 +2093,44 @@ private static object ChangedEvtKey = new object(); /// Y coordinate /// Width /// Height - /// - virtual public void GetContentViewportGeometry( out int x, out int y, out int w, out int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y, out w, out h); + virtual public void GetContentViewportGeometry(out int x, out int y, out int w, out int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y, out w, out h); Eina.Error.RaiseIfUnhandledException(); } /// Get the size of the content object /// This gets the size of the content object of the scroller. /// Width of the content object. /// Height of the content object. - /// - virtual public void GetContentSize( out int w, out int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out w, out h); + virtual public void GetContentSize(out int w, out int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out w, out h); Eina.Error.RaiseIfUnhandledException(); } /// Whether scrolling should loop around. /// True to enable looping. virtual public bool GetItemLoopEnabled() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether scrolling should loop around. /// True to enable looping. - /// - virtual public void SetItemLoopEnabled( bool enable) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enable); + virtual public void SetItemLoopEnabled(bool enable) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enable); Eina.Error.RaiseIfUnhandledException(); } /// Set the content position /// X coordinate /// Y coordinate /// Send signals to the theme corresponding to the scroll direction, or if an edge was reached. - /// - virtual public void SetContentPos( int x, int y, bool sig) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, sig); + virtual public void SetContentPos(int x, int y, bool sig) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, sig); Eina.Error.RaiseIfUnhandledException(); } /// Get content position /// X coordinate /// Y coordinate - /// - virtual public void GetContentPos( out int x, out int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetContentPos(out int x, out int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object by page number. @@ -1993,9 +2139,8 @@ private static object ChangedEvtKey = new object(); /// See . /// The horizontal page number /// The vertical page number - /// - virtual public void ShowPage( int pagenumber_h, int pagenumber_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_show_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pagenumber_h, pagenumber_v); + virtual public void ShowPage(int pagenumber_h, int pagenumber_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_show_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pagenumber_h, pagenumber_v); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object. @@ -2006,9 +2151,8 @@ private static object ChangedEvtKey = new object(); /// Y coordinate of the region /// Width of the region /// Height of the region - /// - virtual public void RegionBringIn( int x, int y, int w, int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_region_bring_in_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, w, h); + virtual public void RegionBringIn(int x, int y, int w, int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_region_bring_in_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, w, h); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object by page number. @@ -2017,9 +2161,8 @@ private static object ChangedEvtKey = new object(); /// /// The horizontal page number /// The vertical page number - /// - virtual public void PageBringIn( int pagenumber_h, int pagenumber_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_bring_in_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pagenumber_h, pagenumber_v); + virtual public void PageBringIn(int pagenumber_h, int pagenumber_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_bring_in_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pagenumber_h, pagenumber_v); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object @@ -2028,74 +2171,65 @@ private static object ChangedEvtKey = new object(); /// Y coordinate of the region /// Width of the region /// Height of the region - /// - virtual public void ShowContentRegion( int x, int y, int w, int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_region_show_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, w, h); + virtual public void ShowContentRegion(int x, int y, int w, int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_show_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, w, h); Eina.Error.RaiseIfUnhandledException(); } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size - /// - virtual public void ContentMinLimit( bool w, bool h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_min_limit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), w, h); + virtual public void ContentMinLimit(bool w, bool h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_min_limit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),w, h); Eina.Error.RaiseIfUnhandledException(); } - /// - /// - /// - /// - virtual public void SetWantedRegion( int x, int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetWantedRegion(int x, int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } - /// - /// - /// - /// - virtual public void CustomPanPosAdjust( int x, int y) { + virtual public void CustomPanPosAdjust(int x, int y) { var _in_x = Eina.PrimitiveConversion.ManagedToPointerAlloc(x); var _in_y = Eina.PrimitiveConversion.ManagedToPointerAlloc(y); - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_x, _in_y); + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_x, _in_y); Eina.Error.RaiseIfUnhandledException(); } /// Gets the orientation of the panel. /// The panel orientation. public Efl.Ui.PanelOrient Orient { get { return GetOrient(); } - set { SetOrient( value); } + set { SetOrient(value); } } /// Gets the state of the panel. /// If true, the panel will run the animation to disappear. public bool Hidden { get { return GetHidden(); } - set { SetHidden( value); } + set { SetHidden(value); } } /// Gets the state of the scrollability. /// The scrollable state. public bool Scrollable { get { return GetScrollable(); } - set { SetScrollable( value); } + set { SetScrollable(value); } } /// Gets the size of the scrollable panel. /// Size ratio public double ScrollableContentSize { get { return GetScrollableContentSize(); } - set { SetScrollableContentSize( value); } + set { SetScrollableContentSize(value); } } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// Enable property /// true to set enable the layer false to disable it public bool Enable { get { return GetEnable(); } - set { SetEnable( value); } + set { SetEnable(value); } } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. @@ -2103,7 +2237,7 @@ private static object ChangedEvtKey = new object(); /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } - set { SetManagerFocus( value); } + set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. @@ -2111,7 +2245,7 @@ private static object ChangedEvtKey = new object(); /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } - set { SetRedirect( value); } + set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See @@ -2126,13 +2260,13 @@ private static object ChangedEvtKey = new object(); /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } - set { SetRoot( value); } + set { SetRoot(value); } } /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. /// true if wheel is disabled, false otherwise public bool WheelDisabled { get { return GetWheelDisabled(); } - set { SetWheelDisabled( value); } + set { SetWheelDisabled(value); } } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. @@ -2141,25 +2275,25 @@ private static object ChangedEvtKey = new object(); /// Which axis (or axes) to block public Efl.Ui.ScrollBlock MovementBlock { get { return GetMovementBlock(); } - set { SetMovementBlock( value); } + set { SetMovementBlock(value); } } /// Momentum animator /// true if disabled, false otherwise public bool MomentumAnimatorDisabled { get { return GetMomentumAnimatorDisabled(); } - set { SetMomentumAnimatorDisabled( value); } + set { SetMomentumAnimatorDisabled(value); } } /// It decides whether the scrollable object propagates the events to content object or not. /// true if events are propagated, false otherwise public bool ContentEvents { get { return GetContentEvents(); } - set { SetContentEvents( value); } + set { SetContentEvents(value); } } /// Bounce animator /// true if bounce animation is disabled, false otherwise public bool BounceAnimatorDisabled { get { return GetBounceAnimatorDisabled(); } - set { SetBounceAnimatorDisabled( value); } + set { SetBounceAnimatorDisabled(value); } } /// Single direction scroll configuration /// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. @@ -2168,3345 +2302,5264 @@ private static object ChangedEvtKey = new object(); /// The single direction scroll policy public Elm.Scroller.SingleDirection SingleDirection { get { return GetSingleDirection(); } - set { SetSingleDirection( value); } + set { SetSingleDirection(value); } } /// Set the callback to run when the content has been moved up. /// The callback public ElmInterfaceScrollableCb ScrollUpCb { - set { SetScrollUpCb( value); } + set { SetScrollUpCb(value); } } /// Set the callback to run when the horizontal scrollbar is dragged. /// The callback public ElmInterfaceScrollableCb HbarDragCb { - set { SetHbarDragCb( value); } + set { SetHbarDragCb(value); } } /// Set the callback to run when dragging of the contents has started. /// The callback public ElmInterfaceScrollableCb DragStartCb { - set { SetDragStartCb( value); } + set { SetDragStartCb(value); } } /// Set the callback to run when scrolling of the contents has started. /// The callback public ElmInterfaceScrollableCb ScrollStartCb { - set { SetScrollStartCb( value); } + set { SetScrollStartCb(value); } } /// Freeze property /// true if freeze, false otherwise public bool Freeze { - set { SetFreeze( value); } + set { SetFreeze(value); } } /// When the viewport is resized, the callback is called. /// The callback public ElmInterfaceScrollableResizeCb ContentViewportResizeCb { - set { SetContentViewportResizeCb( value); } + set { SetContentViewportResizeCb(value); } } /// Set the callback to run when the content has been moved to the left /// The callback public ElmInterfaceScrollableCb ScrollLeftCb { - set { SetScrollLeftCb( value); } + set { SetScrollLeftCb(value); } } /// Set the callback to run when the vertical scrollbar is pressed. /// The callback public ElmInterfaceScrollableCb VbarPressCb { - set { SetVbarPressCb( value); } + set { SetVbarPressCb(value); } } /// Set the callback to run when the horizontal scrollbar is pressed. /// The callback public ElmInterfaceScrollableCb HbarPressCb { - set { SetHbarPressCb( value); } + set { SetHbarPressCb(value); } } /// Set the callback to run when the horizontal scrollbar is unpressed. /// The callback public ElmInterfaceScrollableCb HbarUnpressCb { - set { SetHbarUnpressCb( value); } + set { SetHbarUnpressCb(value); } } /// Set the callback to run when dragging of the contents has stopped. /// The callback public ElmInterfaceScrollableCb DragStopCb { - set { SetDragStopCb( value); } + set { SetDragStopCb(value); } } /// Set the callback to run when scrolling of the contents has stopped. /// The callback public ElmInterfaceScrollableCb ScrollStopCb { - set { SetScrollStopCb( value); } + set { SetScrollStopCb(value); } } /// Extern pan /// Pan object public Efl.Canvas.Object ExternPan { - set { SetExternPan( value); } + set { SetExternPan(value); } } /// Set the callback to run when the visible page changes. /// The callback public ElmInterfaceScrollableCb PageChangeCb { - set { SetPageChangeCb( value); } + set { SetPageChangeCb(value); } } /// Hold property /// true if hold, false otherwise public bool Hold { - set { SetHold( value); } + set { SetHold(value); } } /// Set the callback to run when the scrolling animation has started. /// The callback public ElmInterfaceScrollableCb AnimateStartCb { - set { SetAnimateStartCb( value); } + set { SetAnimateStartCb(value); } } /// Set the callback to run when the content has been moved down. /// The callback public ElmInterfaceScrollableCb ScrollDownCb { - set { SetScrollDownCb( value); } + set { SetScrollDownCb(value); } } /// Set the callback to run when the content has been moved. /// The callback public ElmInterfaceScrollableCb ScrollCb { - set { SetScrollCb( value); } + set { SetScrollCb(value); } } /// Set the callback to run when the scrolling animation has stopped. /// The callback public ElmInterfaceScrollableCb AnimateStopCb { - set { SetAnimateStopCb( value); } + set { SetAnimateStopCb(value); } } /// set the callback to run on minimal limit content /// The callback public ElmInterfaceScrollableMinLimitCb ContentMinLimitCb { - set { SetContentMinLimitCb( value); } + set { SetContentMinLimitCb(value); } } /// Set the callback to run when the content has been moved to the right. /// The callback public ElmInterfaceScrollableCb ScrollRightCb { - set { SetScrollRightCb( value); } + set { SetScrollRightCb(value); } } /// Content property /// Content object public Efl.Canvas.Object ScrollableContent { - set { SetScrollableContent( value); } + set { SetScrollableContent(value); } } /// Set the callback to run when the left edge of the content has been reached. /// The callback public ElmInterfaceScrollableCb EdgeLeftCb { - set { SetEdgeLeftCb( value); } + set { SetEdgeLeftCb(value); } } /// Set the callback to run when the horizontal scrollbar is dragged. /// The callback public ElmInterfaceScrollableCb VbarDragCb { - set { SetVbarDragCb( value); } + set { SetVbarDragCb(value); } } /// Set the callback to run when the horizontal scrollbar is unpressed. /// The callback public ElmInterfaceScrollableCb VbarUnpressCb { - set { SetVbarUnpressCb( value); } + set { SetVbarUnpressCb(value); } } /// Set the callback to run when the bottom edge of the content has been reached. /// The callback public ElmInterfaceScrollableCb EdgeBottomCb { - set { SetEdgeBottomCb( value); } + set { SetEdgeBottomCb(value); } } /// Set the callback to run when the right edge of the content has been reached. /// The callback public ElmInterfaceScrollableCb EdgeRightCb { - set { SetEdgeRightCb( value); } + set { SetEdgeRightCb(value); } } /// Set the callback to run when the top edge of the content has been reached. /// The callback public ElmInterfaceScrollableCb EdgeTopCb { - set { SetEdgeTopCb( value); } + set { SetEdgeTopCb(value); } } /// Whether scrolling should loop around. /// True to enable looping. public bool ItemLoopEnabled { get { return GetItemLoopEnabled(); } - set { SetItemLoopEnabled( value); } + set { SetItemLoopEnabled(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Panel.efl_ui_panel_class_get(); } -} -public class PanelNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_panel_orient_get_static_delegate == null) - efl_ui_panel_orient_get_static_delegate = new efl_ui_panel_orient_get_delegate(orient_get); - if (methods.FirstOrDefault(m => m.Name == "GetOrient") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panel_orient_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_orient_get_static_delegate)}); - if (efl_ui_panel_orient_set_static_delegate == null) - efl_ui_panel_orient_set_static_delegate = new efl_ui_panel_orient_set_delegate(orient_set); - if (methods.FirstOrDefault(m => m.Name == "SetOrient") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panel_orient_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_orient_set_static_delegate)}); - if (efl_ui_panel_hidden_get_static_delegate == null) - efl_ui_panel_hidden_get_static_delegate = new efl_ui_panel_hidden_get_delegate(hidden_get); - if (methods.FirstOrDefault(m => m.Name == "GetHidden") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panel_hidden_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_hidden_get_static_delegate)}); - if (efl_ui_panel_hidden_set_static_delegate == null) - efl_ui_panel_hidden_set_static_delegate = new efl_ui_panel_hidden_set_delegate(hidden_set); - if (methods.FirstOrDefault(m => m.Name == "SetHidden") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panel_hidden_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_hidden_set_static_delegate)}); - if (efl_ui_panel_scrollable_get_static_delegate == null) - efl_ui_panel_scrollable_get_static_delegate = new efl_ui_panel_scrollable_get_delegate(scrollable_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panel_scrollable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_scrollable_get_static_delegate)}); - if (efl_ui_panel_scrollable_set_static_delegate == null) - efl_ui_panel_scrollable_set_static_delegate = new efl_ui_panel_scrollable_set_delegate(scrollable_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panel_scrollable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_scrollable_set_static_delegate)}); - if (efl_ui_panel_scrollable_content_size_get_static_delegate == null) - efl_ui_panel_scrollable_content_size_get_static_delegate = new efl_ui_panel_scrollable_content_size_get_delegate(scrollable_content_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollableContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panel_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_scrollable_content_size_get_static_delegate)}); - if (efl_ui_panel_scrollable_content_size_set_static_delegate == null) - efl_ui_panel_scrollable_content_size_set_static_delegate = new efl_ui_panel_scrollable_content_size_set_delegate(scrollable_content_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollableContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panel_scrollable_content_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_scrollable_content_size_set_static_delegate)}); - if (efl_ui_panel_toggle_static_delegate == null) - efl_ui_panel_toggle_static_delegate = new efl_ui_panel_toggle_delegate(toggle); - if (methods.FirstOrDefault(m => m.Name == "Toggle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panel_toggle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_toggle_static_delegate)}); - if (efl_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_ui_widget_focus_manager_create_static_delegate == null) - efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); - if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate)}); - if (efl_ui_focus_layer_enable_get_static_delegate == null) - efl_ui_focus_layer_enable_get_static_delegate = new efl_ui_focus_layer_enable_get_delegate(enable_get); - if (methods.FirstOrDefault(m => m.Name == "GetEnable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_enable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_get_static_delegate)}); - if (efl_ui_focus_layer_enable_set_static_delegate == null) - efl_ui_focus_layer_enable_set_static_delegate = new efl_ui_focus_layer_enable_set_delegate(enable_set); - if (methods.FirstOrDefault(m => m.Name == "SetEnable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_enable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_set_static_delegate)}); - if (efl_ui_focus_layer_behaviour_get_static_delegate == null) - efl_ui_focus_layer_behaviour_get_static_delegate = new efl_ui_focus_layer_behaviour_get_delegate(behaviour_get); - if (methods.FirstOrDefault(m => m.Name == "GetBehaviour") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_behaviour_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_get_static_delegate)}); - if (efl_ui_focus_layer_behaviour_set_static_delegate == null) - efl_ui_focus_layer_behaviour_set_static_delegate = new efl_ui_focus_layer_behaviour_set_delegate(behaviour_set); - if (methods.FirstOrDefault(m => m.Name == "SetBehaviour") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_behaviour_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_set_static_delegate)}); - if (efl_ui_focus_manager_focus_get_static_delegate == null) - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate)}); - if (efl_ui_focus_manager_focus_set_static_delegate == null) - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate)}); - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate)}); - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate)}); - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate)}); - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate)}); - if (efl_ui_focus_manager_root_get_static_delegate == null) - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate)}); - if (efl_ui_focus_manager_root_set_static_delegate == null) - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate)}); - if (efl_ui_focus_manager_move_static_delegate == null) - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate)}); - if (efl_ui_focus_manager_request_move_static_delegate == null) - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate)}); - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate)}); - if (efl_ui_focus_manager_fetch_static_delegate == null) - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate)}); - if (efl_ui_focus_manager_logical_end_static_delegate == null) - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate)}); - if (efl_ui_focus_manager_reset_history_static_delegate == null) - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate)}); - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate)}); - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate)}); - if (elm_interface_scrollable_gravity_get_static_delegate == null) - elm_interface_scrollable_gravity_get_static_delegate = new elm_interface_scrollable_gravity_get_delegate(gravity_get); - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_get_static_delegate)}); - if (elm_interface_scrollable_gravity_set_static_delegate == null) - elm_interface_scrollable_gravity_set_static_delegate = new elm_interface_scrollable_gravity_set_delegate(gravity_set); - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_set_static_delegate)}); - if (elm_interface_scrollable_bounce_allow_get_static_delegate == null) - elm_interface_scrollable_bounce_allow_get_static_delegate = new elm_interface_scrollable_bounce_allow_get_delegate(bounce_allow_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounceAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_bounce_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_get_static_delegate)}); - if (elm_interface_scrollable_bounce_allow_set_static_delegate == null) - elm_interface_scrollable_bounce_allow_set_static_delegate = new elm_interface_scrollable_bounce_allow_set_delegate(bounce_allow_set); - if (methods.FirstOrDefault(m => m.Name == "SetBounceAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_bounce_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_set_static_delegate)}); - if (elm_interface_scrollable_wheel_disabled_get_static_delegate == null) - elm_interface_scrollable_wheel_disabled_get_static_delegate = new elm_interface_scrollable_wheel_disabled_get_delegate(wheel_disabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetWheelDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_wheel_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_get_static_delegate)}); - if (elm_interface_scrollable_wheel_disabled_set_static_delegate == null) - elm_interface_scrollable_wheel_disabled_set_static_delegate = new elm_interface_scrollable_wheel_disabled_set_delegate(wheel_disabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetWheelDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_wheel_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_set_static_delegate)}); - if (elm_interface_scrollable_movement_block_get_static_delegate == null) - elm_interface_scrollable_movement_block_get_static_delegate = new elm_interface_scrollable_movement_block_get_delegate(movement_block_get); - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_get_static_delegate)}); - if (elm_interface_scrollable_movement_block_set_static_delegate == null) - elm_interface_scrollable_movement_block_set_static_delegate = new elm_interface_scrollable_movement_block_set_delegate(movement_block_set); - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_set_static_delegate)}); - if (elm_interface_scrollable_momentum_animator_disabled_get_static_delegate == null) - elm_interface_scrollable_momentum_animator_disabled_get_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_get_delegate(momentum_animator_disabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetMomentumAnimatorDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_momentum_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_get_static_delegate)}); - if (elm_interface_scrollable_momentum_animator_disabled_set_static_delegate == null) - elm_interface_scrollable_momentum_animator_disabled_set_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_set_delegate(momentum_animator_disabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetMomentumAnimatorDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_momentum_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_set_static_delegate)}); - if (elm_interface_scrollable_policy_get_static_delegate == null) - elm_interface_scrollable_policy_get_static_delegate = new elm_interface_scrollable_policy_get_delegate(policy_get); - if (methods.FirstOrDefault(m => m.Name == "GetPolicy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_policy_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_get_static_delegate)}); - if (elm_interface_scrollable_policy_set_static_delegate == null) - elm_interface_scrollable_policy_set_static_delegate = new elm_interface_scrollable_policy_set_delegate(policy_set); - if (methods.FirstOrDefault(m => m.Name == "SetPolicy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_policy_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_set_static_delegate)}); - if (elm_interface_scrollable_content_region_get_static_delegate == null) - elm_interface_scrollable_content_region_get_static_delegate = new elm_interface_scrollable_content_region_get_delegate(content_region_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_region_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_get_static_delegate)}); - if (elm_interface_scrollable_content_region_set_static_delegate == null) - elm_interface_scrollable_content_region_set_static_delegate = new elm_interface_scrollable_content_region_set_delegate(content_region_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_set_static_delegate)}); - if (elm_interface_scrollable_content_events_get_static_delegate == null) - elm_interface_scrollable_content_events_get_static_delegate = new elm_interface_scrollable_content_events_get_delegate(content_events_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_events_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_get_static_delegate)}); - if (elm_interface_scrollable_content_events_set_static_delegate == null) - elm_interface_scrollable_content_events_set_static_delegate = new elm_interface_scrollable_content_events_set_delegate(content_events_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_events_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_set_static_delegate)}); - if (elm_interface_scrollable_page_size_get_static_delegate == null) - elm_interface_scrollable_page_size_get_static_delegate = new elm_interface_scrollable_page_size_get_delegate(page_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetPageSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_get_static_delegate)}); - if (elm_interface_scrollable_page_size_set_static_delegate == null) - elm_interface_scrollable_page_size_set_static_delegate = new elm_interface_scrollable_page_size_set_delegate(page_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetPageSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_set_static_delegate)}); - if (elm_interface_scrollable_bounce_animator_disabled_get_static_delegate == null) - elm_interface_scrollable_bounce_animator_disabled_get_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_get_delegate(bounce_animator_disabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounceAnimatorDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_bounce_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_get_static_delegate)}); - if (elm_interface_scrollable_bounce_animator_disabled_set_static_delegate == null) - elm_interface_scrollable_bounce_animator_disabled_set_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_set_delegate(bounce_animator_disabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetBounceAnimatorDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_bounce_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_set_static_delegate)}); - if (elm_interface_scrollable_page_scroll_limit_get_static_delegate == null) - elm_interface_scrollable_page_scroll_limit_get_static_delegate = new elm_interface_scrollable_page_scroll_limit_get_delegate(page_scroll_limit_get); - if (methods.FirstOrDefault(m => m.Name == "GetPageScrollLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_scroll_limit_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_get_static_delegate)}); - if (elm_interface_scrollable_page_scroll_limit_set_static_delegate == null) - elm_interface_scrollable_page_scroll_limit_set_static_delegate = new elm_interface_scrollable_page_scroll_limit_set_delegate(page_scroll_limit_set); - if (methods.FirstOrDefault(m => m.Name == "SetPageScrollLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_scroll_limit_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_set_static_delegate)}); - if (elm_interface_scrollable_page_snap_allow_get_static_delegate == null) - elm_interface_scrollable_page_snap_allow_get_static_delegate = new elm_interface_scrollable_page_snap_allow_get_delegate(page_snap_allow_get); - if (methods.FirstOrDefault(m => m.Name == "GetPageSnapAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_snap_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_get_static_delegate)}); - if (elm_interface_scrollable_page_snap_allow_set_static_delegate == null) - elm_interface_scrollable_page_snap_allow_set_static_delegate = new elm_interface_scrollable_page_snap_allow_set_delegate(page_snap_allow_set); - if (methods.FirstOrDefault(m => m.Name == "SetPageSnapAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_snap_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_set_static_delegate)}); - if (elm_interface_scrollable_paging_get_static_delegate == null) - elm_interface_scrollable_paging_get_static_delegate = new elm_interface_scrollable_paging_get_delegate(paging_get); - if (methods.FirstOrDefault(m => m.Name == "GetPaging") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_paging_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_get_static_delegate)}); - if (elm_interface_scrollable_paging_set_static_delegate == null) - elm_interface_scrollable_paging_set_static_delegate = new elm_interface_scrollable_paging_set_delegate(paging_set); - if (methods.FirstOrDefault(m => m.Name == "SetPaging") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_paging_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_set_static_delegate)}); - if (elm_interface_scrollable_single_direction_get_static_delegate == null) - elm_interface_scrollable_single_direction_get_static_delegate = new elm_interface_scrollable_single_direction_get_delegate(single_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetSingleDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_single_direction_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_get_static_delegate)}); - if (elm_interface_scrollable_single_direction_set_static_delegate == null) - elm_interface_scrollable_single_direction_set_static_delegate = new elm_interface_scrollable_single_direction_set_delegate(single_direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetSingleDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_single_direction_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_set_static_delegate)}); - if (elm_interface_scrollable_step_size_get_static_delegate == null) - elm_interface_scrollable_step_size_get_static_delegate = new elm_interface_scrollable_step_size_get_delegate(step_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_get_static_delegate)}); - if (elm_interface_scrollable_step_size_set_static_delegate == null) - elm_interface_scrollable_step_size_set_static_delegate = new elm_interface_scrollable_step_size_set_delegate(step_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_set_static_delegate)}); - if (elm_interface_scrollable_content_loop_get_static_delegate == null) - elm_interface_scrollable_content_loop_get_static_delegate = new elm_interface_scrollable_content_loop_get_delegate(content_loop_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentLoop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_loop_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_get_static_delegate)}); - if (elm_interface_scrollable_content_loop_set_static_delegate == null) - elm_interface_scrollable_content_loop_set_static_delegate = new elm_interface_scrollable_content_loop_set_delegate(content_loop_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentLoop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_loop_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_set_static_delegate)}); - if (elm_interface_scrollable_scroll_up_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_up_cb_set_static_delegate = new elm_interface_scrollable_scroll_up_cb_set_delegate(scroll_up_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollUpCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_up_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_up_cb_set_static_delegate)}); - if (elm_interface_scrollable_hbar_drag_cb_set_static_delegate == null) - elm_interface_scrollable_hbar_drag_cb_set_static_delegate = new elm_interface_scrollable_hbar_drag_cb_set_delegate(hbar_drag_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetHbarDragCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_hbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_drag_cb_set_static_delegate)}); - if (elm_interface_scrollable_drag_start_cb_set_static_delegate == null) - elm_interface_scrollable_drag_start_cb_set_static_delegate = new elm_interface_scrollable_drag_start_cb_set_delegate(drag_start_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetDragStartCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_drag_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_start_cb_set_static_delegate)}); - if (elm_interface_scrollable_scroll_start_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_start_cb_set_static_delegate = new elm_interface_scrollable_scroll_start_cb_set_delegate(scroll_start_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollStartCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_start_cb_set_static_delegate)}); - if (elm_interface_scrollable_freeze_set_static_delegate == null) - elm_interface_scrollable_freeze_set_static_delegate = new elm_interface_scrollable_freeze_set_delegate(freeze_set); - if (methods.FirstOrDefault(m => m.Name == "SetFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_freeze_set_static_delegate)}); - if (elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate == null) - elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate = new elm_interface_scrollable_content_viewport_resize_cb_set_delegate(content_viewport_resize_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentViewportResizeCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_viewport_resize_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate)}); - if (elm_interface_scrollable_scroll_left_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_left_cb_set_static_delegate = new elm_interface_scrollable_scroll_left_cb_set_delegate(scroll_left_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollLeftCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_left_cb_set_static_delegate)}); - if (elm_interface_scrollable_vbar_press_cb_set_static_delegate == null) - elm_interface_scrollable_vbar_press_cb_set_static_delegate = new elm_interface_scrollable_vbar_press_cb_set_delegate(vbar_press_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetVbarPressCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_vbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_press_cb_set_static_delegate)}); - if (elm_interface_scrollable_hbar_press_cb_set_static_delegate == null) - elm_interface_scrollable_hbar_press_cb_set_static_delegate = new elm_interface_scrollable_hbar_press_cb_set_delegate(hbar_press_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetHbarPressCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_hbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_press_cb_set_static_delegate)}); - if (elm_interface_scrollable_hbar_unpress_cb_set_static_delegate == null) - elm_interface_scrollable_hbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_hbar_unpress_cb_set_delegate(hbar_unpress_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetHbarUnpressCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_hbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_unpress_cb_set_static_delegate)}); - if (elm_interface_scrollable_drag_stop_cb_set_static_delegate == null) - elm_interface_scrollable_drag_stop_cb_set_static_delegate = new elm_interface_scrollable_drag_stop_cb_set_delegate(drag_stop_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetDragStopCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_drag_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_stop_cb_set_static_delegate)}); - if (elm_interface_scrollable_scroll_stop_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_stop_cb_set_static_delegate = new elm_interface_scrollable_scroll_stop_cb_set_delegate(scroll_stop_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollStopCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_stop_cb_set_static_delegate)}); - if (elm_interface_scrollable_extern_pan_set_static_delegate == null) - elm_interface_scrollable_extern_pan_set_static_delegate = new elm_interface_scrollable_extern_pan_set_delegate(extern_pan_set); - if (methods.FirstOrDefault(m => m.Name == "SetExternPan") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_extern_pan_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_extern_pan_set_static_delegate)}); - if (elm_interface_scrollable_page_change_cb_set_static_delegate == null) - elm_interface_scrollable_page_change_cb_set_static_delegate = new elm_interface_scrollable_page_change_cb_set_delegate(page_change_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetPageChangeCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_change_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_change_cb_set_static_delegate)}); - if (elm_interface_scrollable_hold_set_static_delegate == null) - elm_interface_scrollable_hold_set_static_delegate = new elm_interface_scrollable_hold_set_delegate(hold_set); - if (methods.FirstOrDefault(m => m.Name == "SetHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_hold_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hold_set_static_delegate)}); - if (elm_interface_scrollable_animate_start_cb_set_static_delegate == null) - elm_interface_scrollable_animate_start_cb_set_static_delegate = new elm_interface_scrollable_animate_start_cb_set_delegate(animate_start_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetAnimateStartCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_animate_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_start_cb_set_static_delegate)}); - if (elm_interface_scrollable_scroll_down_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_down_cb_set_static_delegate = new elm_interface_scrollable_scroll_down_cb_set_delegate(scroll_down_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollDownCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_down_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_down_cb_set_static_delegate)}); - if (elm_interface_scrollable_page_relative_set_static_delegate == null) - elm_interface_scrollable_page_relative_set_static_delegate = new elm_interface_scrollable_page_relative_set_delegate(page_relative_set); - if (methods.FirstOrDefault(m => m.Name == "SetPageRelative") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_relative_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_relative_set_static_delegate)}); - if (elm_interface_scrollable_scroll_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_cb_set_static_delegate = new elm_interface_scrollable_scroll_cb_set_delegate(scroll_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_cb_set_static_delegate)}); - if (elm_interface_scrollable_animate_stop_cb_set_static_delegate == null) - elm_interface_scrollable_animate_stop_cb_set_static_delegate = new elm_interface_scrollable_animate_stop_cb_set_delegate(animate_stop_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetAnimateStopCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_animate_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_stop_cb_set_static_delegate)}); - if (elm_interface_scrollable_content_min_limit_cb_set_static_delegate == null) - elm_interface_scrollable_content_min_limit_cb_set_static_delegate = new elm_interface_scrollable_content_min_limit_cb_set_delegate(content_min_limit_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentMinLimitCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_min_limit_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_cb_set_static_delegate)}); - if (elm_interface_scrollable_scroll_right_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_right_cb_set_static_delegate = new elm_interface_scrollable_scroll_right_cb_set_delegate(scroll_right_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollRightCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_right_cb_set_static_delegate)}); - if (elm_interface_scrollable_content_set_static_delegate == null) - elm_interface_scrollable_content_set_static_delegate = new elm_interface_scrollable_content_set_delegate(scrollable_content_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollableContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_set_static_delegate)}); - if (elm_interface_scrollable_edge_left_cb_set_static_delegate == null) - elm_interface_scrollable_edge_left_cb_set_static_delegate = new elm_interface_scrollable_edge_left_cb_set_delegate(edge_left_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetEdgeLeftCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_edge_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_left_cb_set_static_delegate)}); - if (elm_interface_scrollable_vbar_drag_cb_set_static_delegate == null) - elm_interface_scrollable_vbar_drag_cb_set_static_delegate = new elm_interface_scrollable_vbar_drag_cb_set_delegate(vbar_drag_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetVbarDragCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_vbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_drag_cb_set_static_delegate)}); - if (elm_interface_scrollable_vbar_unpress_cb_set_static_delegate == null) - elm_interface_scrollable_vbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_vbar_unpress_cb_set_delegate(vbar_unpress_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetVbarUnpressCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_vbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_unpress_cb_set_static_delegate)}); - if (elm_interface_scrollable_edge_bottom_cb_set_static_delegate == null) - elm_interface_scrollable_edge_bottom_cb_set_static_delegate = new elm_interface_scrollable_edge_bottom_cb_set_delegate(edge_bottom_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetEdgeBottomCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_edge_bottom_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_bottom_cb_set_static_delegate)}); - if (elm_interface_scrollable_edge_right_cb_set_static_delegate == null) - elm_interface_scrollable_edge_right_cb_set_static_delegate = new elm_interface_scrollable_edge_right_cb_set_delegate(edge_right_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetEdgeRightCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_edge_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_right_cb_set_static_delegate)}); - if (elm_interface_scrollable_edge_top_cb_set_static_delegate == null) - elm_interface_scrollable_edge_top_cb_set_static_delegate = new elm_interface_scrollable_edge_top_cb_set_delegate(edge_top_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetEdgeTopCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_edge_top_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_top_cb_set_static_delegate)}); - if (elm_interface_scrollable_objects_set_static_delegate == null) - elm_interface_scrollable_objects_set_static_delegate = new elm_interface_scrollable_objects_set_delegate(objects_set); - if (methods.FirstOrDefault(m => m.Name == "SetObjects") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_objects_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_objects_set_static_delegate)}); - if (elm_interface_scrollable_last_page_get_static_delegate == null) - elm_interface_scrollable_last_page_get_static_delegate = new elm_interface_scrollable_last_page_get_delegate(last_page_get); - if (methods.FirstOrDefault(m => m.Name == "GetLastPage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_last_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_last_page_get_static_delegate)}); - if (elm_interface_scrollable_current_page_get_static_delegate == null) - elm_interface_scrollable_current_page_get_static_delegate = new elm_interface_scrollable_current_page_get_delegate(current_page_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrentPage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_current_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_current_page_get_static_delegate)}); - if (elm_interface_scrollable_content_viewport_geometry_get_static_delegate == null) - elm_interface_scrollable_content_viewport_geometry_get_static_delegate = new elm_interface_scrollable_content_viewport_geometry_get_delegate(content_viewport_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentViewportGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_geometry_get_static_delegate)}); - if (elm_interface_scrollable_content_size_get_static_delegate == null) - elm_interface_scrollable_content_size_get_static_delegate = new elm_interface_scrollable_content_size_get_delegate(content_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_size_get_static_delegate)}); - if (elm_interface_scrollable_item_loop_enabled_get_static_delegate == null) - elm_interface_scrollable_item_loop_enabled_get_static_delegate = new elm_interface_scrollable_item_loop_enabled_get_delegate(item_loop_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetItemLoopEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_item_loop_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_get_static_delegate)}); - if (elm_interface_scrollable_item_loop_enabled_set_static_delegate == null) - elm_interface_scrollable_item_loop_enabled_set_static_delegate = new elm_interface_scrollable_item_loop_enabled_set_delegate(item_loop_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetItemLoopEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_item_loop_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_set_static_delegate)}); - if (elm_interface_scrollable_content_pos_set_static_delegate == null) - elm_interface_scrollable_content_pos_set_static_delegate = new elm_interface_scrollable_content_pos_set_delegate(content_pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_set_static_delegate)}); - if (elm_interface_scrollable_content_pos_get_static_delegate == null) - elm_interface_scrollable_content_pos_get_static_delegate = new elm_interface_scrollable_content_pos_get_delegate(content_pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_get_static_delegate)}); - if (elm_interface_scrollable_page_show_static_delegate == null) - elm_interface_scrollable_page_show_static_delegate = new elm_interface_scrollable_page_show_delegate(page_show); - if (methods.FirstOrDefault(m => m.Name == "ShowPage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_show_static_delegate)}); - if (elm_interface_scrollable_region_bring_in_static_delegate == null) - elm_interface_scrollable_region_bring_in_static_delegate = new elm_interface_scrollable_region_bring_in_delegate(region_bring_in); - if (methods.FirstOrDefault(m => m.Name == "RegionBringIn") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_region_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_region_bring_in_static_delegate)}); - if (elm_interface_scrollable_page_bring_in_static_delegate == null) - elm_interface_scrollable_page_bring_in_static_delegate = new elm_interface_scrollable_page_bring_in_delegate(page_bring_in); - if (methods.FirstOrDefault(m => m.Name == "PageBringIn") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_bring_in_static_delegate)}); - if (elm_interface_scrollable_content_region_show_static_delegate == null) - elm_interface_scrollable_content_region_show_static_delegate = new elm_interface_scrollable_content_region_show_delegate(content_region_show); - if (methods.FirstOrDefault(m => m.Name == "ShowContentRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_region_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_show_static_delegate)}); - if (elm_interface_scrollable_content_min_limit_static_delegate == null) - elm_interface_scrollable_content_min_limit_static_delegate = new elm_interface_scrollable_content_min_limit_delegate(content_min_limit); - if (methods.FirstOrDefault(m => m.Name == "ContentMinLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_min_limit"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_static_delegate)}); - if (elm_interface_scrollable_wanted_region_set_static_delegate == null) - elm_interface_scrollable_wanted_region_set_static_delegate = new elm_interface_scrollable_wanted_region_set_delegate(wanted_region_set); - if (methods.FirstOrDefault(m => m.Name == "SetWantedRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_wanted_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wanted_region_set_static_delegate)}); - if (elm_interface_scrollable_custom_pan_pos_adjust_static_delegate == null) - elm_interface_scrollable_custom_pan_pos_adjust_static_delegate = new elm_interface_scrollable_custom_pan_pos_adjust_delegate(custom_pan_pos_adjust); - if (methods.FirstOrDefault(m => m.Name == "CustomPanPosAdjust") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_custom_pan_pos_adjust"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_custom_pan_pos_adjust_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Panel.efl_ui_panel_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Panel.efl_ui_panel_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_panel_orient_get_static_delegate == null) + { + efl_ui_panel_orient_get_static_delegate = new efl_ui_panel_orient_get_delegate(orient_get); + } - private delegate Efl.Ui.PanelOrient efl_ui_panel_orient_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetOrient") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panel_orient_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_orient_get_static_delegate) }); + } + if (efl_ui_panel_orient_set_static_delegate == null) + { + efl_ui_panel_orient_set_static_delegate = new efl_ui_panel_orient_set_delegate(orient_set); + } - public delegate Efl.Ui.PanelOrient efl_ui_panel_orient_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_panel_orient_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panel_orient_get"); - private static Efl.Ui.PanelOrient orient_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panel_orient_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.PanelOrient _ret_var = default(Efl.Ui.PanelOrient); - try { - _ret_var = ((Panel)wrapper).GetOrient(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetOrient") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panel_orient_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_orient_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_panel_orient_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_panel_orient_get_delegate efl_ui_panel_orient_get_static_delegate; + if (efl_ui_panel_hidden_get_static_delegate == null) + { + efl_ui_panel_hidden_get_static_delegate = new efl_ui_panel_hidden_get_delegate(hidden_get); + } - private delegate void efl_ui_panel_orient_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PanelOrient orient); + if (methods.FirstOrDefault(m => m.Name == "GetHidden") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panel_hidden_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_hidden_get_static_delegate) }); + } + if (efl_ui_panel_hidden_set_static_delegate == null) + { + efl_ui_panel_hidden_set_static_delegate = new efl_ui_panel_hidden_set_delegate(hidden_set); + } - public delegate void efl_ui_panel_orient_set_api_delegate(System.IntPtr obj, Efl.Ui.PanelOrient orient); - public static Efl.Eo.FunctionWrapper efl_ui_panel_orient_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panel_orient_set"); - private static void orient_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PanelOrient orient) - { - Eina.Log.Debug("function efl_ui_panel_orient_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetOrient( orient); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_panel_orient_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), orient); - } - } - private static efl_ui_panel_orient_set_delegate efl_ui_panel_orient_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetHidden") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panel_hidden_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_hidden_set_static_delegate) }); + } + if (efl_ui_panel_scrollable_get_static_delegate == null) + { + efl_ui_panel_scrollable_get_static_delegate = new efl_ui_panel_scrollable_get_delegate(scrollable_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_panel_hidden_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetScrollable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panel_scrollable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_scrollable_get_static_delegate) }); + } + if (efl_ui_panel_scrollable_set_static_delegate == null) + { + efl_ui_panel_scrollable_set_static_delegate = new efl_ui_panel_scrollable_set_delegate(scrollable_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_panel_hidden_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_panel_hidden_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panel_hidden_get"); - private static bool hidden_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panel_hidden_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Panel)wrapper).GetHidden(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrollable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panel_scrollable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_scrollable_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_panel_hidden_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_panel_hidden_get_delegate efl_ui_panel_hidden_get_static_delegate; + if (efl_ui_panel_scrollable_content_size_get_static_delegate == null) + { + efl_ui_panel_scrollable_content_size_get_static_delegate = new efl_ui_panel_scrollable_content_size_get_delegate(scrollable_content_size_get); + } - private delegate void efl_ui_panel_hidden_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hidden); + if (methods.FirstOrDefault(m => m.Name == "GetScrollableContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panel_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_scrollable_content_size_get_static_delegate) }); + } + if (efl_ui_panel_scrollable_content_size_set_static_delegate == null) + { + efl_ui_panel_scrollable_content_size_set_static_delegate = new efl_ui_panel_scrollable_content_size_set_delegate(scrollable_content_size_set); + } - public delegate void efl_ui_panel_hidden_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hidden); - public static Efl.Eo.FunctionWrapper efl_ui_panel_hidden_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panel_hidden_set"); - private static void hidden_set(System.IntPtr obj, System.IntPtr pd, bool hidden) - { - Eina.Log.Debug("function efl_ui_panel_hidden_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetHidden( hidden); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_panel_hidden_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hidden); - } - } - private static efl_ui_panel_hidden_set_delegate efl_ui_panel_hidden_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScrollableContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panel_scrollable_content_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_scrollable_content_size_set_static_delegate) }); + } + if (efl_ui_panel_toggle_static_delegate == null) + { + efl_ui_panel_toggle_static_delegate = new efl_ui_panel_toggle_delegate(toggle); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_panel_scrollable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Toggle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panel_toggle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panel_toggle_static_delegate) }); + } + if (efl_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_panel_scrollable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panel_scrollable_get"); - private static bool scrollable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panel_scrollable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Panel)wrapper).GetScrollable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_panel_scrollable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_panel_scrollable_get_delegate efl_ui_panel_scrollable_get_static_delegate; + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - private delegate void efl_ui_panel_scrollable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scrollable); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } - public delegate void efl_ui_panel_scrollable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scrollable); - public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panel_scrollable_set"); - private static void scrollable_set(System.IntPtr obj, System.IntPtr pd, bool scrollable) - { - Eina.Log.Debug("function efl_ui_panel_scrollable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetScrollable( scrollable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_panel_scrollable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scrollable); - } - } - private static efl_ui_panel_scrollable_set_delegate efl_ui_panel_scrollable_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + if (efl_ui_widget_focus_manager_create_static_delegate == null) + { + efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); + } - private delegate double efl_ui_panel_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); + } + if (efl_ui_focus_layer_enable_get_static_delegate == null) + { + efl_ui_focus_layer_enable_get_static_delegate = new efl_ui_focus_layer_enable_get_delegate(enable_get); + } - public delegate double efl_ui_panel_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panel_scrollable_content_size_get"); - private static double scrollable_content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panel_scrollable_content_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Panel)wrapper).GetScrollableContentSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetEnable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_panel_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_panel_scrollable_content_size_get_delegate efl_ui_panel_scrollable_content_size_get_static_delegate; + if (efl_ui_focus_layer_enable_set_static_delegate == null) + { + efl_ui_focus_layer_enable_set_static_delegate = new efl_ui_focus_layer_enable_set_delegate(enable_set); + } - private delegate void efl_ui_panel_scrollable_content_size_set_delegate(System.IntPtr obj, System.IntPtr pd, double ratio); + if (methods.FirstOrDefault(m => m.Name == "SetEnable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_set_static_delegate) }); + } + if (efl_ui_focus_layer_behaviour_get_static_delegate == null) + { + efl_ui_focus_layer_behaviour_get_static_delegate = new efl_ui_focus_layer_behaviour_get_delegate(behaviour_get); + } - public delegate void efl_ui_panel_scrollable_content_size_set_api_delegate(System.IntPtr obj, double ratio); - public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_content_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panel_scrollable_content_size_set"); - private static void scrollable_content_size_set(System.IntPtr obj, System.IntPtr pd, double ratio) - { - Eina.Log.Debug("function efl_ui_panel_scrollable_content_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetScrollableContentSize( ratio); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_panel_scrollable_content_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ratio); - } - } - private static efl_ui_panel_scrollable_content_size_set_delegate efl_ui_panel_scrollable_content_size_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetBehaviour") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_get_static_delegate) }); + } + if (efl_ui_focus_layer_behaviour_set_static_delegate == null) + { + efl_ui_focus_layer_behaviour_set_static_delegate = new efl_ui_focus_layer_behaviour_set_delegate(behaviour_set); + } - private delegate void efl_ui_panel_toggle_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetBehaviour") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_set_static_delegate) }); + } + if (efl_ui_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } - public delegate void efl_ui_panel_toggle_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_panel_toggle_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panel_toggle"); - private static void toggle(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panel_toggle was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).Toggle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); } - } else { - efl_ui_panel_toggle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_panel_toggle_delegate efl_ui_panel_toggle_static_delegate; + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); + } + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Panel)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); + } + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Panel)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); + } + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Panel)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); } - return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + } + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_manager_create"); - private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((Panel)wrapper).FocusManagerCreate( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_layer_enable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + } + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_layer_enable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_enable_get"); - private static bool enable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_layer_enable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Panel)wrapper).GetEnable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_layer_enable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_layer_enable_get_delegate efl_ui_focus_layer_enable_get_static_delegate; + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); + } - private delegate void efl_ui_focus_layer_enable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + } - public delegate void efl_ui_focus_layer_enable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_enable_set"); - private static void enable_set(System.IntPtr obj, System.IntPtr pd, bool v) - { - Eina.Log.Debug("function efl_ui_focus_layer_enable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetEnable( v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_layer_enable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); - } - } - private static efl_ui_focus_layer_enable_set_delegate efl_ui_focus_layer_enable_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } - private delegate void efl_ui_focus_layer_behaviour_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); + } + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + } - public delegate void efl_ui_focus_layer_behaviour_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_behaviour_get"); - private static void behaviour_get(System.IntPtr obj, System.IntPtr pd, out bool enable_on_visible, out bool cycle) - { - Eina.Log.Debug("function efl_ui_focus_layer_behaviour_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - enable_on_visible = default(bool); cycle = default(bool); - try { - ((Panel)wrapper).GetBehaviour( out enable_on_visible, out cycle); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out enable_on_visible, out cycle); - } - } - private static efl_ui_focus_layer_behaviour_get_delegate efl_ui_focus_layer_behaviour_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + } - private delegate void efl_ui_focus_layer_behaviour_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + } + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + } - public delegate void efl_ui_focus_layer_behaviour_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_behaviour_set"); - private static void behaviour_set(System.IntPtr obj, System.IntPtr pd, bool enable_on_visible, bool cycle) - { - Eina.Log.Debug("function efl_ui_focus_layer_behaviour_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetBehaviour( enable_on_visible, cycle); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); } - } else { - efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable_on_visible, cycle); - } - } - private static efl_ui_focus_layer_behaviour_set_delegate efl_ui_focus_layer_behaviour_set_static_delegate; + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); + } + if (elm_interface_scrollable_gravity_get_static_delegate == null) + { + elm_interface_scrollable_gravity_get_static_delegate = new elm_interface_scrollable_gravity_get_delegate(gravity_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_get"); - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Panel)wrapper).GetManagerFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + if (elm_interface_scrollable_gravity_set_static_delegate == null) + { + elm_interface_scrollable_gravity_set_static_delegate = new elm_interface_scrollable_gravity_set_delegate(gravity_set); + } - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); + if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_set_static_delegate) }); + } + if (elm_interface_scrollable_bounce_allow_get_static_delegate == null) + { + elm_interface_scrollable_bounce_allow_get_static_delegate = new elm_interface_scrollable_bounce_allow_get_delegate(bounce_allow_get); + } - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_set"); - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetManagerFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetBounceAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_get_static_delegate) }); + } + if (elm_interface_scrollable_bounce_allow_set_static_delegate == null) + { + elm_interface_scrollable_bounce_allow_set_static_delegate = new elm_interface_scrollable_bounce_allow_set_delegate(bounce_allow_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetBounceAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_set_static_delegate) }); + } + if (elm_interface_scrollable_wheel_disabled_get_static_delegate == null) + { + elm_interface_scrollable_wheel_disabled_get_static_delegate = new elm_interface_scrollable_wheel_disabled_get_delegate(wheel_disabled_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_get"); - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((Panel)wrapper).GetRedirect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetWheelDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wheel_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + if (elm_interface_scrollable_wheel_disabled_set_static_delegate == null) + { + elm_interface_scrollable_wheel_disabled_set_static_delegate = new elm_interface_scrollable_wheel_disabled_set_delegate(wheel_disabled_set); + } - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + if (methods.FirstOrDefault(m => m.Name == "SetWheelDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wheel_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_set_static_delegate) }); + } + if (elm_interface_scrollable_movement_block_get_static_delegate == null) + { + elm_interface_scrollable_movement_block_get_static_delegate = new elm_interface_scrollable_movement_block_get_delegate(movement_block_get); + } - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_set"); - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetRedirect( redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_get_static_delegate) }); + } + if (elm_interface_scrollable_movement_block_set_static_delegate == null) + { + elm_interface_scrollable_movement_block_set_static_delegate = new elm_interface_scrollable_movement_block_set_delegate(movement_block_set); + } - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_set_static_delegate) }); + } + if (elm_interface_scrollable_momentum_animator_disabled_get_static_delegate == null) + { + elm_interface_scrollable_momentum_animator_disabled_get_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_get_delegate(momentum_animator_disabled_get); + } - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_border_elements_get"); - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Panel)wrapper).GetBorderElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMomentumAnimatorDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_momentum_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_get_static_delegate) }); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + if (elm_interface_scrollable_momentum_animator_disabled_set_static_delegate == null) + { + elm_interface_scrollable_momentum_animator_disabled_set_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_set_delegate(momentum_animator_disabled_set); + } - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + if (methods.FirstOrDefault(m => m.Name == "SetMomentumAnimatorDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_momentum_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_set_static_delegate) }); + } + if (elm_interface_scrollable_policy_get_static_delegate == null) + { + elm_interface_scrollable_policy_get_static_delegate = new elm_interface_scrollable_policy_get_delegate(policy_get); + } - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_viewport_elements_get"); - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Panel)wrapper).GetViewportElements( _in_viewport); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPolicy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_policy_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_get_static_delegate) }); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); - } - } - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + if (elm_interface_scrollable_policy_set_static_delegate == null) + { + elm_interface_scrollable_policy_set_static_delegate = new elm_interface_scrollable_policy_set_delegate(policy_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetPolicy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_policy_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_set_static_delegate) }); + } + if (elm_interface_scrollable_content_region_get_static_delegate == null) + { + elm_interface_scrollable_content_region_get_static_delegate = new elm_interface_scrollable_content_region_get_delegate(content_region_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_get"); - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Panel)wrapper).GetRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetContentRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + if (elm_interface_scrollable_content_region_set_static_delegate == null) + { + elm_interface_scrollable_content_region_set_static_delegate = new elm_interface_scrollable_content_region_set_delegate(content_region_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + if (methods.FirstOrDefault(m => m.Name == "SetContentRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_set_static_delegate) }); + } + if (elm_interface_scrollable_content_events_get_static_delegate == null) + { + elm_interface_scrollable_content_events_get_static_delegate = new elm_interface_scrollable_content_events_get_delegate(content_events_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_set"); - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Panel)wrapper).SetRoot( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetContentEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_events_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + if (elm_interface_scrollable_content_events_set_static_delegate == null) + { + elm_interface_scrollable_content_events_set_static_delegate = new elm_interface_scrollable_content_events_set_delegate(content_events_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + if (methods.FirstOrDefault(m => m.Name == "SetContentEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_events_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_set_static_delegate) }); + } + if (elm_interface_scrollable_page_size_get_static_delegate == null) + { + elm_interface_scrollable_page_size_get_static_delegate = new elm_interface_scrollable_page_size_get_delegate(page_size_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_move"); - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Panel)wrapper).Move( direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); - } - } - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + if (elm_interface_scrollable_page_size_set_static_delegate == null) + { + elm_interface_scrollable_page_size_set_static_delegate = new elm_interface_scrollable_page_size_set_delegate(page_size_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + if (methods.FirstOrDefault(m => m.Name == "SetPageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_set_static_delegate) }); + } + if (elm_interface_scrollable_bounce_animator_disabled_get_static_delegate == null) + { + elm_interface_scrollable_bounce_animator_disabled_get_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_get_delegate(bounce_animator_disabled_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_move"); - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Panel)wrapper).MoveRequest( direction, child, logical); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBounceAnimatorDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); - } - } - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + if (elm_interface_scrollable_bounce_animator_disabled_set_static_delegate == null) + { + elm_interface_scrollable_bounce_animator_disabled_set_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_set_delegate(bounce_animator_disabled_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + if (methods.FirstOrDefault(m => m.Name == "SetBounceAnimatorDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_set_static_delegate) }); + } + if (elm_interface_scrollable_page_scroll_limit_get_static_delegate == null) + { + elm_interface_scrollable_page_scroll_limit_get_static_delegate = new elm_interface_scrollable_page_scroll_limit_get_delegate(page_scroll_limit_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_subchild"); - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Panel)wrapper).RequestSubchild( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPageScrollLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_scroll_limit_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + if (elm_interface_scrollable_page_scroll_limit_set_static_delegate == null) + { + elm_interface_scrollable_page_scroll_limit_set_static_delegate = new elm_interface_scrollable_page_scroll_limit_set_delegate(page_scroll_limit_set); + } - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + if (methods.FirstOrDefault(m => m.Name == "SetPageScrollLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_scroll_limit_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_set_static_delegate) }); + } + if (elm_interface_scrollable_page_snap_allow_get_static_delegate == null) + { + elm_interface_scrollable_page_snap_allow_get_static_delegate = new elm_interface_scrollable_page_snap_allow_get_delegate(page_snap_allow_get); + } - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_fetch"); - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try { - _ret_var = ((Panel)wrapper).Fetch( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPageSnapAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_snap_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_get_static_delegate) }); } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); - } - } - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + if (elm_interface_scrollable_page_snap_allow_set_static_delegate == null) + { + elm_interface_scrollable_page_snap_allow_set_static_delegate = new elm_interface_scrollable_page_snap_allow_set_delegate(page_snap_allow_set); + } - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetPageSnapAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_snap_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_set_static_delegate) }); + } + if (elm_interface_scrollable_paging_get_static_delegate == null) + { + elm_interface_scrollable_paging_get_static_delegate = new elm_interface_scrollable_paging_get_delegate(paging_get); + } - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_logical_end"); - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try { - _ret_var = ((Panel)wrapper).LogicalEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPaging") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_paging_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + if (elm_interface_scrollable_paging_set_static_delegate == null) + { + elm_interface_scrollable_paging_set_static_delegate = new elm_interface_scrollable_paging_set_delegate(paging_set); + } - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetPaging") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_paging_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_set_static_delegate) }); + } + if (elm_interface_scrollable_single_direction_get_static_delegate == null) + { + elm_interface_scrollable_single_direction_get_static_delegate = new elm_interface_scrollable_single_direction_get_delegate(single_direction_get); + } - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_reset_history"); - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).ResetHistory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSingleDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_single_direction_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_get_static_delegate) }); } - } else { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + if (elm_interface_scrollable_single_direction_set_static_delegate == null) + { + elm_interface_scrollable_single_direction_set_static_delegate = new elm_interface_scrollable_single_direction_set_delegate(single_direction_set); + } - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetSingleDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_single_direction_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_set_static_delegate) }); + } + if (elm_interface_scrollable_step_size_get_static_delegate == null) + { + elm_interface_scrollable_step_size_get_static_delegate = new elm_interface_scrollable_step_size_get_delegate(step_size_get); + } - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_pop_history_stack"); - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).PopHistoryStack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_get_static_delegate) }); } - } else { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + if (elm_interface_scrollable_step_size_set_static_delegate == null) + { + elm_interface_scrollable_step_size_set_static_delegate = new elm_interface_scrollable_step_size_set_delegate(step_size_set); + } - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); + if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_set_static_delegate) }); + } + if (elm_interface_scrollable_content_loop_get_static_delegate == null) + { + elm_interface_scrollable_content_loop_get_static_delegate = new elm_interface_scrollable_content_loop_get_delegate(content_loop_get); + } - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetupOnFirstTouch( direction, entry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetContentLoop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_loop_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_get_static_delegate) }); } - } else { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); - } - } - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + if (elm_interface_scrollable_content_loop_set_static_delegate == null) + { + elm_interface_scrollable_content_loop_set_static_delegate = new elm_interface_scrollable_content_loop_set_delegate(content_loop_set); + } - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetContentLoop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_loop_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_set_static_delegate) }); + } + if (elm_interface_scrollable_scroll_up_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_up_cb_set_static_delegate = new elm_interface_scrollable_scroll_up_cb_set_delegate(scroll_up_cb_set); + } - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).FreezeDirtyLogic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrollUpCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_up_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_up_cb_set_static_delegate) }); } - } else { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + if (elm_interface_scrollable_hbar_drag_cb_set_static_delegate == null) + { + elm_interface_scrollable_hbar_drag_cb_set_static_delegate = new elm_interface_scrollable_hbar_drag_cb_set_delegate(hbar_drag_cb_set); + } - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetHbarDragCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_drag_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_drag_start_cb_set_static_delegate == null) + { + elm_interface_scrollable_drag_start_cb_set_static_delegate = new elm_interface_scrollable_drag_start_cb_set_delegate(drag_start_cb_set); + } - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).DirtyLogicUnfreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDragStartCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_drag_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_start_cb_set_static_delegate) }); } - } else { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; + if (elm_interface_scrollable_scroll_start_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_start_cb_set_static_delegate = new elm_interface_scrollable_scroll_start_cb_set_delegate(scroll_start_cb_set); + } - private delegate void elm_interface_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (methods.FirstOrDefault(m => m.Name == "SetScrollStartCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_start_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_freeze_set_static_delegate == null) + { + elm_interface_scrollable_freeze_set_static_delegate = new elm_interface_scrollable_freeze_set_delegate(freeze_set); + } - public delegate void elm_interface_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_gravity_get"); - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function elm_interface_scrollable_gravity_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((Panel)wrapper).GetGravity( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static elm_interface_scrollable_gravity_get_delegate elm_interface_scrollable_gravity_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_freeze_set_static_delegate) }); + } + if (elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate == null) + { + elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate = new elm_interface_scrollable_content_viewport_resize_cb_set_delegate(content_viewport_resize_cb_set); + } - private delegate void elm_interface_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + if (methods.FirstOrDefault(m => m.Name == "SetContentViewportResizeCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_viewport_resize_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_scroll_left_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_left_cb_set_static_delegate = new elm_interface_scrollable_scroll_left_cb_set_delegate(scroll_left_cb_set); + } - public delegate void elm_interface_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_gravity_set"); - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function elm_interface_scrollable_gravity_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetGravity( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrollLeftCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_left_cb_set_static_delegate) }); } - } else { - elm_interface_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static elm_interface_scrollable_gravity_set_delegate elm_interface_scrollable_gravity_set_static_delegate; + if (elm_interface_scrollable_vbar_press_cb_set_static_delegate == null) + { + elm_interface_scrollable_vbar_press_cb_set_static_delegate = new elm_interface_scrollable_vbar_press_cb_set_delegate(vbar_press_cb_set); + } - private delegate void elm_interface_scrollable_bounce_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + if (methods.FirstOrDefault(m => m.Name == "SetVbarPressCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_press_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_hbar_press_cb_set_static_delegate == null) + { + elm_interface_scrollable_hbar_press_cb_set_static_delegate = new elm_interface_scrollable_hbar_press_cb_set_delegate(hbar_press_cb_set); + } - public delegate void elm_interface_scrollable_bounce_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_bounce_allow_get"); - private static void bounce_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - horiz = default(bool); vert = default(bool); - try { - ((Panel)wrapper).GetBounceAllow( out horiz, out vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); - } - } - private static elm_interface_scrollable_bounce_allow_get_delegate elm_interface_scrollable_bounce_allow_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetHbarPressCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_press_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_hbar_unpress_cb_set_static_delegate == null) + { + elm_interface_scrollable_hbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_hbar_unpress_cb_set_delegate(hbar_unpress_cb_set); + } - private delegate void elm_interface_scrollable_bounce_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + if (methods.FirstOrDefault(m => m.Name == "SetHbarUnpressCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_unpress_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_drag_stop_cb_set_static_delegate == null) + { + elm_interface_scrollable_drag_stop_cb_set_static_delegate = new elm_interface_scrollable_drag_stop_cb_set_delegate(drag_stop_cb_set); + } - public delegate void elm_interface_scrollable_bounce_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_bounce_allow_set"); - private static void bounce_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetBounceAllow( horiz, vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetDragStopCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_drag_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_stop_cb_set_static_delegate) }); } - } else { - elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); - } - } - private static elm_interface_scrollable_bounce_allow_set_delegate elm_interface_scrollable_bounce_allow_set_static_delegate; + if (elm_interface_scrollable_scroll_stop_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_stop_cb_set_static_delegate = new elm_interface_scrollable_scroll_stop_cb_set_delegate(scroll_stop_cb_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool elm_interface_scrollable_wheel_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetScrollStopCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_stop_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_extern_pan_set_static_delegate == null) + { + elm_interface_scrollable_extern_pan_set_static_delegate = new elm_interface_scrollable_extern_pan_set_delegate(extern_pan_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool elm_interface_scrollable_wheel_disabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_wheel_disabled_get"); - private static bool wheel_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Panel)wrapper).GetWheelDisabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetExternPan") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_extern_pan_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_extern_pan_set_static_delegate) }); } - return _ret_var; - } else { - return elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static elm_interface_scrollable_wheel_disabled_get_delegate elm_interface_scrollable_wheel_disabled_get_static_delegate; + if (elm_interface_scrollable_page_change_cb_set_static_delegate == null) + { + elm_interface_scrollable_page_change_cb_set_static_delegate = new elm_interface_scrollable_page_change_cb_set_delegate(page_change_cb_set); + } - private delegate void elm_interface_scrollable_wheel_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + if (methods.FirstOrDefault(m => m.Name == "SetPageChangeCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_change_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_change_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_hold_set_static_delegate == null) + { + elm_interface_scrollable_hold_set_static_delegate = new elm_interface_scrollable_hold_set_delegate(hold_set); + } - public delegate void elm_interface_scrollable_wheel_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_wheel_disabled_set"); - private static void wheel_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetWheelDisabled( disabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - private static elm_interface_scrollable_wheel_disabled_set_delegate elm_interface_scrollable_wheel_disabled_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hold_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hold_set_static_delegate) }); + } + if (elm_interface_scrollable_animate_start_cb_set_static_delegate == null) + { + elm_interface_scrollable_animate_start_cb_set_static_delegate = new elm_interface_scrollable_animate_start_cb_set_delegate(animate_start_cb_set); + } - private delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetAnimateStartCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_animate_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_start_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_scroll_down_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_down_cb_set_static_delegate = new elm_interface_scrollable_scroll_down_cb_set_delegate(scroll_down_cb_set); + } - public delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_movement_block_get"); - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_movement_block_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try { - _ret_var = ((Panel)wrapper).GetMovementBlock(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrollDownCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_down_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_down_cb_set_static_delegate) }); } - return _ret_var; - } else { - return elm_interface_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static elm_interface_scrollable_movement_block_get_delegate elm_interface_scrollable_movement_block_get_static_delegate; + if (elm_interface_scrollable_page_relative_set_static_delegate == null) + { + elm_interface_scrollable_page_relative_set_static_delegate = new elm_interface_scrollable_page_relative_set_delegate(page_relative_set); + } - private delegate void elm_interface_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + if (methods.FirstOrDefault(m => m.Name == "SetPageRelative") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_relative_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_relative_set_static_delegate) }); + } + if (elm_interface_scrollable_scroll_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_cb_set_static_delegate = new elm_interface_scrollable_scroll_cb_set_delegate(scroll_cb_set); + } - public delegate void elm_interface_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_movement_block_set"); - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function elm_interface_scrollable_movement_block_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetMovementBlock( block); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); - } - } - private static elm_interface_scrollable_movement_block_set_delegate elm_interface_scrollable_movement_block_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScrollCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_animate_stop_cb_set_static_delegate == null) + { + elm_interface_scrollable_animate_stop_cb_set_static_delegate = new elm_interface_scrollable_animate_stop_cb_set_delegate(animate_stop_cb_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool elm_interface_scrollable_momentum_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetAnimateStopCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_animate_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_stop_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_content_min_limit_cb_set_static_delegate == null) + { + elm_interface_scrollable_content_min_limit_cb_set_static_delegate = new elm_interface_scrollable_content_min_limit_cb_set_delegate(content_min_limit_cb_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool elm_interface_scrollable_momentum_animator_disabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_momentum_animator_disabled_get"); - private static bool momentum_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Panel)wrapper).GetMomentumAnimatorDisabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContentMinLimitCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_min_limit_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_cb_set_static_delegate) }); } - return _ret_var; - } else { - return elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static elm_interface_scrollable_momentum_animator_disabled_get_delegate elm_interface_scrollable_momentum_animator_disabled_get_static_delegate; + if (elm_interface_scrollable_scroll_right_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_right_cb_set_static_delegate = new elm_interface_scrollable_scroll_right_cb_set_delegate(scroll_right_cb_set); + } - private delegate void elm_interface_scrollable_momentum_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + if (methods.FirstOrDefault(m => m.Name == "SetScrollRightCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_right_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_content_set_static_delegate == null) + { + elm_interface_scrollable_content_set_static_delegate = new elm_interface_scrollable_content_set_delegate(scrollable_content_set); + } - public delegate void elm_interface_scrollable_momentum_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_momentum_animator_disabled_set"); - private static void momentum_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetMomentumAnimatorDisabled( disabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - private static elm_interface_scrollable_momentum_animator_disabled_set_delegate elm_interface_scrollable_momentum_animator_disabled_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScrollableContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_set_static_delegate) }); + } + if (elm_interface_scrollable_edge_left_cb_set_static_delegate == null) + { + elm_interface_scrollable_edge_left_cb_set_static_delegate = new elm_interface_scrollable_edge_left_cb_set_delegate(edge_left_cb_set); + } - private delegate void elm_interface_scrollable_policy_get_delegate(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); + if (methods.FirstOrDefault(m => m.Name == "SetEdgeLeftCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_left_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_vbar_drag_cb_set_static_delegate == null) + { + elm_interface_scrollable_vbar_drag_cb_set_static_delegate = new elm_interface_scrollable_vbar_drag_cb_set_delegate(vbar_drag_cb_set); + } - public delegate void elm_interface_scrollable_policy_get_api_delegate(System.IntPtr obj, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_policy_get"); - private static void policy_get(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) - { - Eina.Log.Debug("function elm_interface_scrollable_policy_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - hbar = default(Elm.Scroller.Policy); vbar = default(Elm.Scroller.Policy); - try { - ((Panel)wrapper).GetPolicy( out hbar, out vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_policy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); - } - } - private static elm_interface_scrollable_policy_get_delegate elm_interface_scrollable_policy_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetVbarDragCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_drag_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_vbar_unpress_cb_set_static_delegate == null) + { + elm_interface_scrollable_vbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_vbar_unpress_cb_set_delegate(vbar_unpress_cb_set); + } - private delegate void elm_interface_scrollable_policy_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); + if (methods.FirstOrDefault(m => m.Name == "SetVbarUnpressCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_unpress_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_edge_bottom_cb_set_static_delegate == null) + { + elm_interface_scrollable_edge_bottom_cb_set_static_delegate = new elm_interface_scrollable_edge_bottom_cb_set_delegate(edge_bottom_cb_set); + } - public delegate void elm_interface_scrollable_policy_set_api_delegate(System.IntPtr obj, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_policy_set"); - private static void policy_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) - { - Eina.Log.Debug("function elm_interface_scrollable_policy_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetPolicy( hbar, vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetEdgeBottomCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_bottom_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_bottom_cb_set_static_delegate) }); } - } else { - elm_interface_scrollable_policy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); - } - } - private static elm_interface_scrollable_policy_set_delegate elm_interface_scrollable_policy_set_static_delegate; + if (elm_interface_scrollable_edge_right_cb_set_static_delegate == null) + { + elm_interface_scrollable_edge_right_cb_set_static_delegate = new elm_interface_scrollable_edge_right_cb_set_delegate(edge_right_cb_set); + } - private delegate void elm_interface_scrollable_content_region_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); + if (methods.FirstOrDefault(m => m.Name == "SetEdgeRightCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_right_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_edge_top_cb_set_static_delegate == null) + { + elm_interface_scrollable_edge_top_cb_set_static_delegate = new elm_interface_scrollable_edge_top_cb_set_delegate(edge_top_cb_set); + } - public delegate void elm_interface_scrollable_content_region_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_region_get"); - private static void content_region_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_region_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); w = default(int); h = default(int); - try { - ((Panel)wrapper).GetContentRegion( out x, out y, out w, out h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); - } - } - private static elm_interface_scrollable_content_region_get_delegate elm_interface_scrollable_content_region_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetEdgeTopCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_top_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_top_cb_set_static_delegate) }); + } + if (elm_interface_scrollable_objects_set_static_delegate == null) + { + elm_interface_scrollable_objects_set_static_delegate = new elm_interface_scrollable_objects_set_delegate(objects_set); + } - private delegate void elm_interface_scrollable_content_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + if (methods.FirstOrDefault(m => m.Name == "SetObjects") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_objects_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_objects_set_static_delegate) }); + } + if (elm_interface_scrollable_last_page_get_static_delegate == null) + { + elm_interface_scrollable_last_page_get_static_delegate = new elm_interface_scrollable_last_page_get_delegate(last_page_get); + } - public delegate void elm_interface_scrollable_content_region_set_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_region_set"); - private static void content_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_region_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetContentRegion( x, y, w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); - } - } - private static elm_interface_scrollable_content_region_set_delegate elm_interface_scrollable_content_region_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLastPage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_last_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_last_page_get_static_delegate) }); + } + if (elm_interface_scrollable_current_page_get_static_delegate == null) + { + elm_interface_scrollable_current_page_get_static_delegate = new elm_interface_scrollable_current_page_get_delegate(current_page_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool elm_interface_scrollable_content_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCurrentPage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_current_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_current_page_get_static_delegate) }); + } + if (elm_interface_scrollable_content_viewport_geometry_get_static_delegate == null) + { + elm_interface_scrollable_content_viewport_geometry_get_static_delegate = new elm_interface_scrollable_content_viewport_geometry_get_delegate(content_viewport_geometry_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool elm_interface_scrollable_content_events_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_events_get"); - private static bool content_events_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_content_events_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Panel)wrapper).GetContentEvents(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetContentViewportGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_geometry_get_static_delegate) }); } - return _ret_var; - } else { - return elm_interface_scrollable_content_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static elm_interface_scrollable_content_events_get_delegate elm_interface_scrollable_content_events_get_static_delegate; + if (elm_interface_scrollable_content_size_get_static_delegate == null) + { + elm_interface_scrollable_content_size_get_static_delegate = new elm_interface_scrollable_content_size_get_delegate(content_size_get); + } - private delegate void elm_interface_scrollable_content_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat_events); + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_size_get_static_delegate) }); + } + if (elm_interface_scrollable_item_loop_enabled_get_static_delegate == null) + { + elm_interface_scrollable_item_loop_enabled_get_static_delegate = new elm_interface_scrollable_item_loop_enabled_get_delegate(item_loop_enabled_get); + } - public delegate void elm_interface_scrollable_content_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat_events); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_events_set"); - private static void content_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat_events) - { - Eina.Log.Debug("function elm_interface_scrollable_content_events_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetContentEvents( repeat_events); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat_events); - } - } - private static elm_interface_scrollable_content_events_set_delegate elm_interface_scrollable_content_events_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetItemLoopEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_item_loop_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_get_static_delegate) }); + } + if (elm_interface_scrollable_item_loop_enabled_set_static_delegate == null) + { + elm_interface_scrollable_item_loop_enabled_set_static_delegate = new elm_interface_scrollable_item_loop_enabled_set_delegate(item_loop_enabled_set); + } - private delegate void elm_interface_scrollable_page_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + if (methods.FirstOrDefault(m => m.Name == "SetItemLoopEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_item_loop_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_set_static_delegate) }); + } + if (elm_interface_scrollable_content_pos_set_static_delegate == null) + { + elm_interface_scrollable_content_pos_set_static_delegate = new elm_interface_scrollable_content_pos_set_delegate(content_pos_set); + } - public delegate void elm_interface_scrollable_page_size_get_api_delegate(System.IntPtr obj, out int x, out int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_size_get"); - private static void page_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function elm_interface_scrollable_page_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); - try { - ((Panel)wrapper).GetPageSize( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_page_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static elm_interface_scrollable_page_size_get_delegate elm_interface_scrollable_page_size_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_set_static_delegate) }); + } + if (elm_interface_scrollable_content_pos_get_static_delegate == null) + { + elm_interface_scrollable_content_pos_get_static_delegate = new elm_interface_scrollable_content_pos_get_delegate(content_pos_get); + } - private delegate void elm_interface_scrollable_page_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_get_static_delegate) }); + } + if (elm_interface_scrollable_page_show_static_delegate == null) + { + elm_interface_scrollable_page_show_static_delegate = new elm_interface_scrollable_page_show_delegate(page_show); + } - public delegate void elm_interface_scrollable_page_size_set_api_delegate(System.IntPtr obj, int x, int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_size_set"); - private static void page_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function elm_interface_scrollable_page_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetPageSize( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ShowPage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_show_static_delegate) }); } - } else { - elm_interface_scrollable_page_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static elm_interface_scrollable_page_size_set_delegate elm_interface_scrollable_page_size_set_static_delegate; + if (elm_interface_scrollable_region_bring_in_static_delegate == null) + { + elm_interface_scrollable_region_bring_in_static_delegate = new elm_interface_scrollable_region_bring_in_delegate(region_bring_in); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool elm_interface_scrollable_bounce_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "RegionBringIn") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_region_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_region_bring_in_static_delegate) }); + } + if (elm_interface_scrollable_page_bring_in_static_delegate == null) + { + elm_interface_scrollable_page_bring_in_static_delegate = new elm_interface_scrollable_page_bring_in_delegate(page_bring_in); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool elm_interface_scrollable_bounce_animator_disabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_bounce_animator_disabled_get"); - private static bool bounce_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Panel)wrapper).GetBounceAnimatorDisabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PageBringIn") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_bring_in_static_delegate) }); } - return _ret_var; - } else { - return elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static elm_interface_scrollable_bounce_animator_disabled_get_delegate elm_interface_scrollable_bounce_animator_disabled_get_static_delegate; + if (elm_interface_scrollable_content_region_show_static_delegate == null) + { + elm_interface_scrollable_content_region_show_static_delegate = new elm_interface_scrollable_content_region_show_delegate(content_region_show); + } - private delegate void elm_interface_scrollable_bounce_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + if (methods.FirstOrDefault(m => m.Name == "ShowContentRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_show_static_delegate) }); + } + if (elm_interface_scrollable_content_min_limit_static_delegate == null) + { + elm_interface_scrollable_content_min_limit_static_delegate = new elm_interface_scrollable_content_min_limit_delegate(content_min_limit); + } - public delegate void elm_interface_scrollable_bounce_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_bounce_animator_disabled_set"); - private static void bounce_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetBounceAnimatorDisabled( disabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - private static elm_interface_scrollable_bounce_animator_disabled_set_delegate elm_interface_scrollable_bounce_animator_disabled_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ContentMinLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_min_limit"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_static_delegate) }); + } + + if (elm_interface_scrollable_wanted_region_set_static_delegate == null) + { + elm_interface_scrollable_wanted_region_set_static_delegate = new elm_interface_scrollable_wanted_region_set_delegate(wanted_region_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetWantedRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wanted_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wanted_region_set_static_delegate) }); + } - private delegate void elm_interface_scrollable_page_scroll_limit_get_delegate(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v); + if (elm_interface_scrollable_custom_pan_pos_adjust_static_delegate == null) + { + elm_interface_scrollable_custom_pan_pos_adjust_static_delegate = new elm_interface_scrollable_custom_pan_pos_adjust_delegate(custom_pan_pos_adjust); + } + if (methods.FirstOrDefault(m => m.Name == "CustomPanPosAdjust") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_custom_pan_pos_adjust"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_custom_pan_pos_adjust_static_delegate) }); + } - public delegate void elm_interface_scrollable_page_scroll_limit_get_api_delegate(System.IntPtr obj, out int page_limit_h, out int page_limit_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_scroll_limit_get"); - private static void page_scroll_limit_get(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - page_limit_h = default(int); page_limit_v = default(int); - try { - ((Panel)wrapper).GetPageScrollLimit( out page_limit_h, out page_limit_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out page_limit_h, out page_limit_v); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Panel.efl_ui_panel_class_get(); } - } - private static elm_interface_scrollable_page_scroll_limit_get_delegate elm_interface_scrollable_page_scroll_limit_get_static_delegate; - - private delegate void elm_interface_scrollable_page_scroll_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v); + #pragma warning disable CA1707, SA1300, SA1600 + + private delegate Efl.Ui.PanelOrient efl_ui_panel_orient_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_page_scroll_limit_set_api_delegate(System.IntPtr obj, int page_limit_h, int page_limit_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_scroll_limit_set"); - private static void page_scroll_limit_set(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetPageScrollLimit( page_limit_h, page_limit_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_limit_h, page_limit_v); - } - } - private static elm_interface_scrollable_page_scroll_limit_set_delegate elm_interface_scrollable_page_scroll_limit_set_static_delegate; + + public delegate Efl.Ui.PanelOrient efl_ui_panel_orient_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_panel_orient_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_orient_get"); - private delegate void elm_interface_scrollable_page_snap_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + private static Efl.Ui.PanelOrient orient_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_panel_orient_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.PanelOrient _ret_var = default(Efl.Ui.PanelOrient); + try + { + _ret_var = ((Panel)wrapper).GetOrient(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void elm_interface_scrollable_page_snap_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_snap_allow_get"); - private static void page_snap_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - horiz = default(bool); vert = default(bool); - try { - ((Panel)wrapper).GetPageSnapAllow( out horiz, out vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + } + else + { + return efl_ui_panel_orient_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_page_snap_allow_get_delegate elm_interface_scrollable_page_snap_allow_get_static_delegate; + private static efl_ui_panel_orient_get_delegate efl_ui_panel_orient_get_static_delegate; + + + private delegate void efl_ui_panel_orient_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PanelOrient orient); - private delegate void elm_interface_scrollable_page_snap_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public delegate void efl_ui_panel_orient_set_api_delegate(System.IntPtr obj, Efl.Ui.PanelOrient orient); + public static Efl.Eo.FunctionWrapper efl_ui_panel_orient_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_orient_set"); - public delegate void elm_interface_scrollable_page_snap_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_snap_allow_set"); - private static void page_snap_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetPageSnapAllow( horiz, vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void orient_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PanelOrient orient) + { + Eina.Log.Debug("function efl_ui_panel_orient_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetOrient(orient); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_panel_orient_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), orient); } - } else { - elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); } - } - private static elm_interface_scrollable_page_snap_allow_set_delegate elm_interface_scrollable_page_snap_allow_set_static_delegate; + private static efl_ui_panel_orient_set_delegate efl_ui_panel_orient_set_static_delegate; - private delegate void elm_interface_scrollable_paging_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_panel_hidden_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_panel_hidden_get_api_delegate(System.IntPtr obj); - public delegate void elm_interface_scrollable_paging_get_api_delegate(System.IntPtr obj, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_paging_get"); - private static void paging_get(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) - { - Eina.Log.Debug("function elm_interface_scrollable_paging_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pagerel_h = default(double); pagerel_v = default(double); pagesize_h = default(int); pagesize_v = default(int); - try { - ((Panel)wrapper).GetPaging( out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_paging_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); - } - } - private static elm_interface_scrollable_paging_get_delegate elm_interface_scrollable_paging_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_panel_hidden_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_hidden_get"); - private delegate void elm_interface_scrollable_paging_set_delegate(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); + private static bool hidden_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_panel_hidden_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panel)wrapper).GetHidden(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void elm_interface_scrollable_paging_set_api_delegate(System.IntPtr obj, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_paging_set"); - private static void paging_set(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) - { - Eina.Log.Debug("function elm_interface_scrollable_paging_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetPaging( pagerel_h, pagerel_v, pagesize_h, pagesize_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_paging_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagerel_h, pagerel_v, pagesize_h, pagesize_v); + } + else + { + return efl_ui_panel_hidden_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_paging_set_delegate elm_interface_scrollable_paging_set_static_delegate; + private static efl_ui_panel_hidden_get_delegate efl_ui_panel_hidden_get_static_delegate; - private delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_panel_hidden_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hidden); + + public delegate void efl_ui_panel_hidden_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hidden); - public delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_single_direction_get"); - private static Elm.Scroller.SingleDirection single_direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_single_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Elm.Scroller.SingleDirection _ret_var = default(Elm.Scroller.SingleDirection); - try { - _ret_var = ((Panel)wrapper).GetSingleDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_panel_hidden_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_hidden_set"); + + private static void hidden_set(System.IntPtr obj, System.IntPtr pd, bool hidden) + { + Eina.Log.Debug("function efl_ui_panel_hidden_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetHidden(hidden); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_panel_hidden_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hidden); } - return _ret_var; - } else { - return elm_interface_scrollable_single_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static elm_interface_scrollable_single_direction_get_delegate elm_interface_scrollable_single_direction_get_static_delegate; + private static efl_ui_panel_hidden_set_delegate efl_ui_panel_hidden_set_static_delegate; - private delegate void elm_interface_scrollable_single_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_panel_scrollable_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_panel_scrollable_get_api_delegate(System.IntPtr obj); - public delegate void elm_interface_scrollable_single_direction_set_api_delegate(System.IntPtr obj, Elm.Scroller.SingleDirection single_dir); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_single_direction_set"); - private static void single_direction_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir) - { - Eina.Log.Debug("function elm_interface_scrollable_single_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetSingleDirection( single_dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_single_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), single_dir); - } - } - private static elm_interface_scrollable_single_direction_set_delegate elm_interface_scrollable_single_direction_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_get"); - private delegate void elm_interface_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + private static bool scrollable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_panel_scrollable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panel)wrapper).GetScrollable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void elm_interface_scrollable_step_size_get_api_delegate(System.IntPtr obj, out int x, out int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_step_size_get"); - private static void step_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function elm_interface_scrollable_step_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); - try { - ((Panel)wrapper).GetStepSize( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + else + { + return efl_ui_panel_scrollable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_step_size_get_delegate elm_interface_scrollable_step_size_get_static_delegate; + private static efl_ui_panel_scrollable_get_delegate efl_ui_panel_scrollable_get_static_delegate; + + + private delegate void efl_ui_panel_scrollable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scrollable); - private delegate void elm_interface_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + public delegate void efl_ui_panel_scrollable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scrollable); + public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_set"); - public delegate void elm_interface_scrollable_step_size_set_api_delegate(System.IntPtr obj, int x, int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_step_size_set"); - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function elm_interface_scrollable_step_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetStepSize( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void scrollable_set(System.IntPtr obj, System.IntPtr pd, bool scrollable) + { + Eina.Log.Debug("function efl_ui_panel_scrollable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetScrollable(scrollable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_panel_scrollable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scrollable); } - } else { - elm_interface_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } - private static elm_interface_scrollable_step_size_set_delegate elm_interface_scrollable_step_size_set_static_delegate; + private static efl_ui_panel_scrollable_set_delegate efl_ui_panel_scrollable_set_static_delegate; - private delegate void elm_interface_scrollable_content_loop_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - + + private delegate double efl_ui_panel_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_content_loop_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_loop_get"); - private static void content_loop_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function elm_interface_scrollable_content_loop_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - loop_h = default(bool); loop_v = default(bool); - try { - ((Panel)wrapper).GetContentLoop( out loop_h, out loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_loop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); - } - } - private static elm_interface_scrollable_content_loop_get_delegate elm_interface_scrollable_content_loop_get_static_delegate; + + public delegate double efl_ui_panel_scrollable_content_size_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_content_size_get"); - private delegate void elm_interface_scrollable_content_loop_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + private static double scrollable_content_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_panel_scrollable_content_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Panel)wrapper).GetScrollableContentSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void elm_interface_scrollable_content_loop_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_loop_set"); - private static void content_loop_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function elm_interface_scrollable_content_loop_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetContentLoop( loop_h, loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_content_loop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + else + { + return efl_ui_panel_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_content_loop_set_delegate elm_interface_scrollable_content_loop_set_static_delegate; + private static efl_ui_panel_scrollable_content_size_get_delegate efl_ui_panel_scrollable_content_size_get_static_delegate; - private delegate void elm_interface_scrollable_scroll_up_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb); + + private delegate void efl_ui_panel_scrollable_content_size_set_delegate(System.IntPtr obj, System.IntPtr pd, double ratio); + + public delegate void efl_ui_panel_scrollable_content_size_set_api_delegate(System.IntPtr obj, double ratio); - public delegate void elm_interface_scrollable_scroll_up_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_up_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_up_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_up_cb_set"); - private static void scroll_up_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_up_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetScrollUpCb( scroll_up_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_up_cb); - } - } - private static elm_interface_scrollable_scroll_up_cb_set_delegate elm_interface_scrollable_scroll_up_cb_set_static_delegate; + public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_content_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_content_size_set"); + private static void scrollable_content_size_set(System.IntPtr obj, System.IntPtr pd, double ratio) + { + Eina.Log.Debug("function efl_ui_panel_scrollable_content_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetScrollableContentSize(ratio); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void elm_interface_scrollable_hbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb); + + } + else + { + efl_ui_panel_scrollable_content_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ratio); + } + } + private static efl_ui_panel_scrollable_content_size_set_delegate efl_ui_panel_scrollable_content_size_set_static_delegate; - public delegate void elm_interface_scrollable_hbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_drag_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_hbar_drag_cb_set"); - private static void hbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_hbar_drag_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetHbarDragCb( hbar_drag_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_drag_cb); - } - } - private static elm_interface_scrollable_hbar_drag_cb_set_delegate elm_interface_scrollable_hbar_drag_cb_set_static_delegate; + + private delegate void efl_ui_panel_toggle_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_panel_toggle_api_delegate(System.IntPtr obj); - private delegate void elm_interface_scrollable_drag_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb); + public static Efl.Eo.FunctionWrapper efl_ui_panel_toggle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_toggle"); + private static void toggle(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_panel_toggle was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).Toggle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_drag_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_start_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_drag_start_cb_set"); - private static void drag_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_drag_start_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetDragStartCb( drag_start_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_start_cb); + + } + else + { + efl_ui_panel_toggle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_drag_start_cb_set_delegate elm_interface_scrollable_drag_start_cb_set_static_delegate; + private static efl_ui_panel_toggle_delegate efl_ui_panel_toggle_static_delegate; - private delegate void elm_interface_scrollable_scroll_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public delegate void elm_interface_scrollable_scroll_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_start_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_start_cb_set"); - private static void scroll_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_start_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetScrollStartCb( scroll_start_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_start_cb); - } - } - private static elm_interface_scrollable_scroll_start_cb_set_delegate elm_interface_scrollable_scroll_start_cb_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); - private delegate void elm_interface_scrollable_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Panel)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void elm_interface_scrollable_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_freeze_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_freeze_set"); - private static void freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function elm_interface_scrollable_freeze_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetFreeze( freeze); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); + } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_content_get_delegate efl_content_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panel)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Panel)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); + + private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((Panel)wrapper).FocusManagerCreate(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + + private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_layer_enable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_layer_enable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_enable_get"); + + private static bool enable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_layer_enable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panel)wrapper).GetEnable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_layer_enable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_layer_enable_get_delegate efl_ui_focus_layer_enable_get_static_delegate; + + + private delegate void efl_ui_focus_layer_enable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + + + public delegate void efl_ui_focus_layer_enable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_enable_set"); + + private static void enable_set(System.IntPtr obj, System.IntPtr pd, bool v) + { + Eina.Log.Debug("function efl_ui_focus_layer_enable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetEnable(v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_layer_enable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); + } + } + + private static efl_ui_focus_layer_enable_set_delegate efl_ui_focus_layer_enable_set_static_delegate; + + + private delegate void efl_ui_focus_layer_behaviour_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); + + + public delegate void efl_ui_focus_layer_behaviour_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_behaviour_get"); + + private static void behaviour_get(System.IntPtr obj, System.IntPtr pd, out bool enable_on_visible, out bool cycle) + { + Eina.Log.Debug("function efl_ui_focus_layer_behaviour_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + enable_on_visible = default(bool); cycle = default(bool); + try + { + ((Panel)wrapper).GetBehaviour(out enable_on_visible, out cycle); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out enable_on_visible, out cycle); + } + } + + private static efl_ui_focus_layer_behaviour_get_delegate efl_ui_focus_layer_behaviour_get_static_delegate; + + + private delegate void efl_ui_focus_layer_behaviour_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); + + + public delegate void efl_ui_focus_layer_behaviour_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_behaviour_set"); + + private static void behaviour_set(System.IntPtr obj, System.IntPtr pd, bool enable_on_visible, bool cycle) + { + Eina.Log.Debug("function efl_ui_focus_layer_behaviour_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetBehaviour(enable_on_visible, cycle); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable_on_visible, cycle); + } + } + + private static efl_ui_focus_layer_behaviour_set_delegate efl_ui_focus_layer_behaviour_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); + + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Panel)wrapper).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + } + } + + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); + + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((Panel)wrapper).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); + + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); + } + } + + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); + + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Panel)wrapper).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; + + } + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); + + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Panel)wrapper).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; + + } + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } + } + + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); + + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Panel)wrapper).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); + + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panel)wrapper).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); + + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Panel)wrapper).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } + } + + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); + + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Panel)wrapper).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } + } + + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); + + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Panel)wrapper).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); + + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((Panel)wrapper).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); + + } + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } + } + + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); + + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((Panel)wrapper).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); + + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); + + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + } + } + + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); + + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; + + + private delegate void elm_interface_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void elm_interface_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_gravity_get"); + + private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function elm_interface_scrollable_gravity_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((Panel)wrapper).GetGravity(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static elm_interface_scrollable_gravity_get_delegate elm_interface_scrollable_gravity_get_static_delegate; + + + private delegate void elm_interface_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void elm_interface_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_gravity_set"); + + private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function elm_interface_scrollable_gravity_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetGravity(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static elm_interface_scrollable_gravity_set_delegate elm_interface_scrollable_gravity_set_static_delegate; + + + private delegate void elm_interface_scrollable_bounce_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + + public delegate void elm_interface_scrollable_bounce_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_allow_get"); + + private static void bounce_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((Panel)wrapper).GetBounceAllow(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + } + } + + private static elm_interface_scrollable_bounce_allow_get_delegate elm_interface_scrollable_bounce_allow_get_static_delegate; + + + private delegate void elm_interface_scrollable_bounce_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + + public delegate void elm_interface_scrollable_bounce_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_allow_set"); + + private static void bounce_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetBounceAllow(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + } + } + + private static elm_interface_scrollable_bounce_allow_set_delegate elm_interface_scrollable_bounce_allow_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool elm_interface_scrollable_wheel_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool elm_interface_scrollable_wheel_disabled_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wheel_disabled_get"); + + private static bool wheel_disabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panel)wrapper).GetWheelDisabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static elm_interface_scrollable_wheel_disabled_get_delegate elm_interface_scrollable_wheel_disabled_get_static_delegate; + + + private delegate void elm_interface_scrollable_wheel_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + + + public delegate void elm_interface_scrollable_wheel_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wheel_disabled_set"); + + private static void wheel_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) + { + Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetWheelDisabled(disabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); + } + } + + private static elm_interface_scrollable_wheel_disabled_set_delegate elm_interface_scrollable_wheel_disabled_set_static_delegate; + + + private delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_movement_block_get"); + + private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_movement_block_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); + try + { + _ret_var = ((Panel)wrapper).GetMovementBlock(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return elm_interface_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static elm_interface_scrollable_movement_block_get_delegate elm_interface_scrollable_movement_block_get_static_delegate; + + + private delegate void elm_interface_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + + public delegate void elm_interface_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_movement_block_set"); + + private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) + { + Eina.Log.Debug("function elm_interface_scrollable_movement_block_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetMovementBlock(block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); + } + } + + private static elm_interface_scrollable_movement_block_set_delegate elm_interface_scrollable_movement_block_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool elm_interface_scrollable_momentum_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool elm_interface_scrollable_momentum_animator_disabled_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_momentum_animator_disabled_get"); + + private static bool momentum_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panel)wrapper).GetMomentumAnimatorDisabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static elm_interface_scrollable_momentum_animator_disabled_get_delegate elm_interface_scrollable_momentum_animator_disabled_get_static_delegate; + + + private delegate void elm_interface_scrollable_momentum_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + + + public delegate void elm_interface_scrollable_momentum_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_momentum_animator_disabled_set"); + + private static void momentum_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) + { + Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetMomentumAnimatorDisabled(disabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); + } + } + + private static elm_interface_scrollable_momentum_animator_disabled_set_delegate elm_interface_scrollable_momentum_animator_disabled_set_static_delegate; + + + private delegate void elm_interface_scrollable_policy_get_delegate(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); + + + public delegate void elm_interface_scrollable_policy_get_api_delegate(System.IntPtr obj, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_policy_get"); + + private static void policy_get(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) + { + Eina.Log.Debug("function elm_interface_scrollable_policy_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + hbar = default(Elm.Scroller.Policy); vbar = default(Elm.Scroller.Policy); + try + { + ((Panel)wrapper).GetPolicy(out hbar, out vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_policy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); + } + } + + private static elm_interface_scrollable_policy_get_delegate elm_interface_scrollable_policy_get_static_delegate; + + + private delegate void elm_interface_scrollable_policy_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); + + + public delegate void elm_interface_scrollable_policy_set_api_delegate(System.IntPtr obj, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_policy_set"); + + private static void policy_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) + { + Eina.Log.Debug("function elm_interface_scrollable_policy_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetPolicy(hbar, vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_policy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + } + } + + private static elm_interface_scrollable_policy_set_delegate elm_interface_scrollable_policy_set_static_delegate; + + + private delegate void elm_interface_scrollable_content_region_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); + + + public delegate void elm_interface_scrollable_content_region_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_get"); + + private static void content_region_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_region_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); w = default(int); h = default(int); + try + { + ((Panel)wrapper).GetContentRegion(out x, out y, out w, out h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); + } + } + + private static elm_interface_scrollable_content_region_get_delegate elm_interface_scrollable_content_region_get_static_delegate; + + + private delegate void elm_interface_scrollable_content_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + + + public delegate void elm_interface_scrollable_content_region_set_api_delegate(System.IntPtr obj, int x, int y, int w, int h); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_set"); + + private static void content_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_region_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetContentRegion(x, y, w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); + } + } + + private static elm_interface_scrollable_content_region_set_delegate elm_interface_scrollable_content_region_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool elm_interface_scrollable_content_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool elm_interface_scrollable_content_events_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_events_get"); + + private static bool content_events_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_content_events_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panel)wrapper).GetContentEvents(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return elm_interface_scrollable_content_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static elm_interface_scrollable_content_events_get_delegate elm_interface_scrollable_content_events_get_static_delegate; + + + private delegate void elm_interface_scrollable_content_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat_events); + + + public delegate void elm_interface_scrollable_content_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat_events); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_events_set"); + + private static void content_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat_events) + { + Eina.Log.Debug("function elm_interface_scrollable_content_events_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetContentEvents(repeat_events); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat_events); + } + } + + private static elm_interface_scrollable_content_events_set_delegate elm_interface_scrollable_content_events_set_static_delegate; + + + private delegate void elm_interface_scrollable_page_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + + public delegate void elm_interface_scrollable_page_size_get_api_delegate(System.IntPtr obj, out int x, out int y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_size_get"); + + private static void page_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + { + Eina.Log.Debug("function elm_interface_scrollable_page_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); + try + { + ((Panel)wrapper).GetPageSize(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static elm_interface_scrollable_page_size_get_delegate elm_interface_scrollable_page_size_get_static_delegate; + + + private delegate void elm_interface_scrollable_page_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + + public delegate void elm_interface_scrollable_page_size_set_api_delegate(System.IntPtr obj, int x, int y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_size_set"); + + private static void page_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + { + Eina.Log.Debug("function elm_interface_scrollable_page_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetPageSize(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static elm_interface_scrollable_page_size_set_delegate elm_interface_scrollable_page_size_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool elm_interface_scrollable_bounce_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool elm_interface_scrollable_bounce_animator_disabled_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_animator_disabled_get"); + + private static bool bounce_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panel)wrapper).GetBounceAnimatorDisabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static elm_interface_scrollable_bounce_animator_disabled_get_delegate elm_interface_scrollable_bounce_animator_disabled_get_static_delegate; + + + private delegate void elm_interface_scrollable_bounce_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + + + public delegate void elm_interface_scrollable_bounce_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_animator_disabled_set"); + + private static void bounce_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) + { + Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetBounceAnimatorDisabled(disabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); + } + } + + private static elm_interface_scrollable_bounce_animator_disabled_set_delegate elm_interface_scrollable_bounce_animator_disabled_set_static_delegate; + + + private delegate void elm_interface_scrollable_page_scroll_limit_get_delegate(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v); + + + public delegate void elm_interface_scrollable_page_scroll_limit_get_api_delegate(System.IntPtr obj, out int page_limit_h, out int page_limit_v); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_scroll_limit_get"); + + private static void page_scroll_limit_get(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v) + { + Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + page_limit_h = default(int); page_limit_v = default(int); + try + { + ((Panel)wrapper).GetPageScrollLimit(out page_limit_h, out page_limit_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out page_limit_h, out page_limit_v); + } + } + + private static elm_interface_scrollable_page_scroll_limit_get_delegate elm_interface_scrollable_page_scroll_limit_get_static_delegate; + + + private delegate void elm_interface_scrollable_page_scroll_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v); + + + public delegate void elm_interface_scrollable_page_scroll_limit_set_api_delegate(System.IntPtr obj, int page_limit_h, int page_limit_v); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_scroll_limit_set"); + + private static void page_scroll_limit_set(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v) + { + Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetPageScrollLimit(page_limit_h, page_limit_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_limit_h, page_limit_v); + } + } + + private static elm_interface_scrollable_page_scroll_limit_set_delegate elm_interface_scrollable_page_scroll_limit_set_static_delegate; + + + private delegate void elm_interface_scrollable_page_snap_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + + public delegate void elm_interface_scrollable_page_snap_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_snap_allow_get"); + + private static void page_snap_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((Panel)wrapper).GetPageSnapAllow(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + } + } + + private static elm_interface_scrollable_page_snap_allow_get_delegate elm_interface_scrollable_page_snap_allow_get_static_delegate; + + + private delegate void elm_interface_scrollable_page_snap_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + + public delegate void elm_interface_scrollable_page_snap_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_snap_allow_set"); + + private static void page_snap_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetPageSnapAllow(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + } + } + + private static elm_interface_scrollable_page_snap_allow_set_delegate elm_interface_scrollable_page_snap_allow_set_static_delegate; + + + private delegate void elm_interface_scrollable_paging_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); + + + public delegate void elm_interface_scrollable_paging_get_api_delegate(System.IntPtr obj, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_paging_get"); + + private static void paging_get(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) + { + Eina.Log.Debug("function elm_interface_scrollable_paging_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pagerel_h = default(double); pagerel_v = default(double); pagesize_h = default(int); pagesize_v = default(int); + try + { + ((Panel)wrapper).GetPaging(out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_paging_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); + } + } + + private static elm_interface_scrollable_paging_get_delegate elm_interface_scrollable_paging_get_static_delegate; + + + private delegate void elm_interface_scrollable_paging_set_delegate(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); + + + public delegate void elm_interface_scrollable_paging_set_api_delegate(System.IntPtr obj, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_paging_set"); + + private static void paging_set(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) + { + Eina.Log.Debug("function elm_interface_scrollable_paging_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetPaging(pagerel_h, pagerel_v, pagesize_h, pagesize_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_paging_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagerel_h, pagerel_v, pagesize_h, pagesize_v); + } + } + + private static elm_interface_scrollable_paging_set_delegate elm_interface_scrollable_paging_set_static_delegate; + + + private delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_single_direction_get"); + + private static Elm.Scroller.SingleDirection single_direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_single_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Elm.Scroller.SingleDirection _ret_var = default(Elm.Scroller.SingleDirection); + try + { + _ret_var = ((Panel)wrapper).GetSingleDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return elm_interface_scrollable_single_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static elm_interface_scrollable_single_direction_get_delegate elm_interface_scrollable_single_direction_get_static_delegate; + + + private delegate void elm_interface_scrollable_single_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir); + + + public delegate void elm_interface_scrollable_single_direction_set_api_delegate(System.IntPtr obj, Elm.Scroller.SingleDirection single_dir); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_single_direction_set"); + + private static void single_direction_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir) + { + Eina.Log.Debug("function elm_interface_scrollable_single_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetSingleDirection(single_dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_single_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), single_dir); + } + } + + private static elm_interface_scrollable_single_direction_set_delegate elm_interface_scrollable_single_direction_set_static_delegate; + + + private delegate void elm_interface_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + + public delegate void elm_interface_scrollable_step_size_get_api_delegate(System.IntPtr obj, out int x, out int y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_step_size_get"); + + private static void step_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + { + Eina.Log.Debug("function elm_interface_scrollable_step_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); + try + { + ((Panel)wrapper).GetStepSize(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static elm_interface_scrollable_step_size_get_delegate elm_interface_scrollable_step_size_get_static_delegate; + + + private delegate void elm_interface_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + + public delegate void elm_interface_scrollable_step_size_set_api_delegate(System.IntPtr obj, int x, int y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_step_size_set"); + + private static void step_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + { + Eina.Log.Debug("function elm_interface_scrollable_step_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetStepSize(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static elm_interface_scrollable_step_size_set_delegate elm_interface_scrollable_step_size_set_static_delegate; + + + private delegate void elm_interface_scrollable_content_loop_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + + public delegate void elm_interface_scrollable_content_loop_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_loop_get"); + + private static void content_loop_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) + { + Eina.Log.Debug("function elm_interface_scrollable_content_loop_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + loop_h = default(bool); loop_v = default(bool); + try + { + ((Panel)wrapper).GetContentLoop(out loop_h, out loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_loop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + } + } + + private static elm_interface_scrollable_content_loop_get_delegate elm_interface_scrollable_content_loop_get_static_delegate; + + + private delegate void elm_interface_scrollable_content_loop_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + + public delegate void elm_interface_scrollable_content_loop_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_loop_set"); + + private static void content_loop_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) + { + Eina.Log.Debug("function elm_interface_scrollable_content_loop_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetContentLoop(loop_h, loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_loop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + } + } + + private static elm_interface_scrollable_content_loop_set_delegate elm_interface_scrollable_content_loop_set_static_delegate; + + + private delegate void elm_interface_scrollable_scroll_up_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb); + + + public delegate void elm_interface_scrollable_scroll_up_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_up_cb); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_up_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_up_cb_set"); + + private static void scroll_up_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_up_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetScrollUpCb(scroll_up_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_up_cb); + } + } + + private static elm_interface_scrollable_scroll_up_cb_set_delegate elm_interface_scrollable_scroll_up_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_hbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb); + + + public delegate void elm_interface_scrollable_hbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_drag_cb); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_drag_cb_set"); + + private static void hbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_hbar_drag_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetHbarDragCb(hbar_drag_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_drag_cb); + } } - } - private static elm_interface_scrollable_freeze_set_delegate elm_interface_scrollable_freeze_set_static_delegate; + private static elm_interface_scrollable_hbar_drag_cb_set_delegate elm_interface_scrollable_hbar_drag_cb_set_static_delegate; - private delegate void elm_interface_scrollable_content_viewport_resize_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb); + + private delegate void elm_interface_scrollable_drag_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb); + + public delegate void elm_interface_scrollable_drag_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_start_cb); - public delegate void elm_interface_scrollable_content_viewport_resize_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableResizeCb viewport_resize_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_resize_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_viewport_resize_cb_set"); - private static void content_viewport_resize_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_content_viewport_resize_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetContentViewportResizeCb( viewport_resize_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport_resize_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_drag_start_cb_set"); + + private static void drag_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_drag_start_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetDragStartCb(drag_start_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_start_cb); + } } - } - private static elm_interface_scrollable_content_viewport_resize_cb_set_delegate elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate; + private static elm_interface_scrollable_drag_start_cb_set_delegate elm_interface_scrollable_drag_start_cb_set_static_delegate; - private delegate void elm_interface_scrollable_scroll_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb); + + private delegate void elm_interface_scrollable_scroll_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb); + + + public delegate void elm_interface_scrollable_scroll_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_start_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_start_cb_set"); - public delegate void elm_interface_scrollable_scroll_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_left_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_left_cb_set"); - private static void scroll_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_left_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetScrollLeftCb( scroll_left_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_left_cb); + private static void scroll_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_start_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetScrollStartCb(scroll_start_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_start_cb); + } } - } - private static elm_interface_scrollable_scroll_left_cb_set_delegate elm_interface_scrollable_scroll_left_cb_set_static_delegate; + private static elm_interface_scrollable_scroll_start_cb_set_delegate elm_interface_scrollable_scroll_start_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); - private delegate void elm_interface_scrollable_vbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb); + + public delegate void elm_interface_scrollable_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_freeze_set"); - public delegate void elm_interface_scrollable_vbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_press_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_vbar_press_cb_set"); - private static void vbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_vbar_press_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetVbarPressCb( vbar_press_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_press_cb); + private static void freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) + { + Eina.Log.Debug("function elm_interface_scrollable_freeze_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetFreeze(freeze); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); + } } - } - private static elm_interface_scrollable_vbar_press_cb_set_delegate elm_interface_scrollable_vbar_press_cb_set_static_delegate; + private static elm_interface_scrollable_freeze_set_delegate elm_interface_scrollable_freeze_set_static_delegate; + + + private delegate void elm_interface_scrollable_content_viewport_resize_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb); + + + public delegate void elm_interface_scrollable_content_viewport_resize_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableResizeCb viewport_resize_cb); - private delegate void elm_interface_scrollable_hbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_resize_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_viewport_resize_cb_set"); + private static void content_viewport_resize_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_content_viewport_resize_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetContentViewportResizeCb(viewport_resize_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_hbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_press_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_hbar_press_cb_set"); - private static void hbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_hbar_press_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetHbarPressCb( hbar_press_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_press_cb); + + } + else + { + elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport_resize_cb); + } } - } - private static elm_interface_scrollable_hbar_press_cb_set_delegate elm_interface_scrollable_hbar_press_cb_set_static_delegate; + private static elm_interface_scrollable_content_viewport_resize_cb_set_delegate elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate; - private delegate void elm_interface_scrollable_hbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb); + + private delegate void elm_interface_scrollable_scroll_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb); + + public delegate void elm_interface_scrollable_scroll_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_left_cb); - public delegate void elm_interface_scrollable_hbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_unpress_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_hbar_unpress_cb_set"); - private static void hbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_hbar_unpress_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetHbarUnpressCb( hbar_unpress_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_unpress_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_left_cb_set"); + + private static void scroll_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_left_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetScrollLeftCb(scroll_left_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_left_cb); + } } - } - private static elm_interface_scrollable_hbar_unpress_cb_set_delegate elm_interface_scrollable_hbar_unpress_cb_set_static_delegate; + private static elm_interface_scrollable_scroll_left_cb_set_delegate elm_interface_scrollable_scroll_left_cb_set_static_delegate; - private delegate void elm_interface_scrollable_drag_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb); + + private delegate void elm_interface_scrollable_vbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb); + + + public delegate void elm_interface_scrollable_vbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_press_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_press_cb_set"); - public delegate void elm_interface_scrollable_drag_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_stop_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_drag_stop_cb_set"); - private static void drag_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_drag_stop_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetDragStopCb( drag_stop_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_stop_cb); + private static void vbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_vbar_press_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetVbarPressCb(vbar_press_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_press_cb); + } } - } - private static elm_interface_scrollable_drag_stop_cb_set_delegate elm_interface_scrollable_drag_stop_cb_set_static_delegate; + private static elm_interface_scrollable_vbar_press_cb_set_delegate elm_interface_scrollable_vbar_press_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_hbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb); - private delegate void elm_interface_scrollable_scroll_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb); + + public delegate void elm_interface_scrollable_hbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_press_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_press_cb_set"); - public delegate void elm_interface_scrollable_scroll_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_stop_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_stop_cb_set"); - private static void scroll_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_stop_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetScrollStopCb( scroll_stop_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_stop_cb); + private static void hbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_hbar_press_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetHbarPressCb(hbar_press_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_press_cb); + } } - } - private static elm_interface_scrollable_scroll_stop_cb_set_delegate elm_interface_scrollable_scroll_stop_cb_set_static_delegate; + private static elm_interface_scrollable_hbar_press_cb_set_delegate elm_interface_scrollable_hbar_press_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_hbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb); + + + public delegate void elm_interface_scrollable_hbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_unpress_cb); - private delegate void elm_interface_scrollable_extern_pan_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object pan); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_unpress_cb_set"); + private static void hbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_hbar_unpress_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetHbarUnpressCb(hbar_unpress_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_extern_pan_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object pan); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_extern_pan_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_extern_pan_set"); - private static void extern_pan_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object pan) - { - Eina.Log.Debug("function elm_interface_scrollable_extern_pan_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetExternPan( pan); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pan); + + } + else + { + elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_unpress_cb); + } } - } - private static elm_interface_scrollable_extern_pan_set_delegate elm_interface_scrollable_extern_pan_set_static_delegate; + private static elm_interface_scrollable_hbar_unpress_cb_set_delegate elm_interface_scrollable_hbar_unpress_cb_set_static_delegate; - private delegate void elm_interface_scrollable_page_change_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb); + + private delegate void elm_interface_scrollable_drag_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb); + + public delegate void elm_interface_scrollable_drag_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_stop_cb); - public delegate void elm_interface_scrollable_page_change_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb page_change_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_change_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_change_cb_set"); - private static void page_change_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_page_change_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetPageChangeCb( page_change_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_change_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_drag_stop_cb_set"); + + private static void drag_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_drag_stop_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetDragStopCb(drag_stop_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_stop_cb); + } } - } - private static elm_interface_scrollable_page_change_cb_set_delegate elm_interface_scrollable_page_change_cb_set_static_delegate; + private static elm_interface_scrollable_drag_stop_cb_set_delegate elm_interface_scrollable_drag_stop_cb_set_static_delegate; - private delegate void elm_interface_scrollable_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + private delegate void elm_interface_scrollable_scroll_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb); + + + public delegate void elm_interface_scrollable_scroll_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_stop_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_stop_cb_set"); - public delegate void elm_interface_scrollable_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hold_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_hold_set"); - private static void hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function elm_interface_scrollable_hold_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetHold( hold); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + private static void scroll_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_stop_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetScrollStopCb(scroll_stop_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_stop_cb); + } } - } - private static elm_interface_scrollable_hold_set_delegate elm_interface_scrollable_hold_set_static_delegate; + private static elm_interface_scrollable_scroll_stop_cb_set_delegate elm_interface_scrollable_scroll_stop_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_extern_pan_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pan); - private delegate void elm_interface_scrollable_animate_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb); + + public delegate void elm_interface_scrollable_extern_pan_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pan); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_extern_pan_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_extern_pan_set"); - public delegate void elm_interface_scrollable_animate_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_start_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_animate_start_cb_set"); - private static void animate_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_animate_start_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetAnimateStartCb( animate_start_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_start_cb); + private static void extern_pan_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object pan) + { + Eina.Log.Debug("function elm_interface_scrollable_extern_pan_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetExternPan(pan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pan); + } } - } - private static elm_interface_scrollable_animate_start_cb_set_delegate elm_interface_scrollable_animate_start_cb_set_static_delegate; + private static elm_interface_scrollable_extern_pan_set_delegate elm_interface_scrollable_extern_pan_set_static_delegate; + + + private delegate void elm_interface_scrollable_page_change_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb); + + + public delegate void elm_interface_scrollable_page_change_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb page_change_cb); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_change_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_change_cb_set"); + + private static void page_change_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_page_change_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetPageChangeCb(page_change_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_change_cb); + } + } + + private static elm_interface_scrollable_page_change_cb_set_delegate elm_interface_scrollable_page_change_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + + public delegate void elm_interface_scrollable_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hold_set"); + + private static void hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) + { + Eina.Log.Debug("function elm_interface_scrollable_hold_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetHold(hold); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + } + } + + private static elm_interface_scrollable_hold_set_delegate elm_interface_scrollable_hold_set_static_delegate; + + + private delegate void elm_interface_scrollable_animate_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb); + + + public delegate void elm_interface_scrollable_animate_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_start_cb); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_animate_start_cb_set"); + + private static void animate_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_animate_start_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetAnimateStartCb(animate_start_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_start_cb); + } + } + + private static elm_interface_scrollable_animate_start_cb_set_delegate elm_interface_scrollable_animate_start_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_scroll_down_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb); + + + public delegate void elm_interface_scrollable_scroll_down_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_down_cb); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_down_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_down_cb_set"); + + private static void scroll_down_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_down_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetScrollDownCb(scroll_down_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_down_cb); + } + } + + private static elm_interface_scrollable_scroll_down_cb_set_delegate elm_interface_scrollable_scroll_down_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_page_relative_set_delegate(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel); + + + public delegate void elm_interface_scrollable_page_relative_set_api_delegate(System.IntPtr obj, double h_pagerel, double v_pagerel); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_relative_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_relative_set"); + + private static void page_relative_set(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel) + { + Eina.Log.Debug("function elm_interface_scrollable_page_relative_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetPageRelative(h_pagerel, v_pagerel); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_relative_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), h_pagerel, v_pagerel); + } + } + + private static elm_interface_scrollable_page_relative_set_delegate elm_interface_scrollable_page_relative_set_static_delegate; + + + private delegate void elm_interface_scrollable_scroll_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb); + + + public delegate void elm_interface_scrollable_scroll_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_cb); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_cb_set"); + + private static void scroll_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetScrollCb(scroll_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_cb); + } + } + + private static elm_interface_scrollable_scroll_cb_set_delegate elm_interface_scrollable_scroll_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_animate_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb); + + + public delegate void elm_interface_scrollable_animate_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_stop_cb); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_animate_stop_cb_set"); + + private static void animate_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_animate_stop_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetAnimateStopCb(animate_stop_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_stop_cb); + } + } + + private static elm_interface_scrollable_animate_stop_cb_set_delegate elm_interface_scrollable_animate_stop_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_content_min_limit_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb); + + + public delegate void elm_interface_scrollable_content_min_limit_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableMinLimitCb min_limit_cb); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_min_limit_cb_set"); + + private static void content_min_limit_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_content_min_limit_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetContentMinLimitCb(min_limit_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min_limit_cb); + } + } + + private static elm_interface_scrollable_content_min_limit_cb_set_delegate elm_interface_scrollable_content_min_limit_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_scroll_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb); + + + public delegate void elm_interface_scrollable_scroll_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_right_cb); - private delegate void elm_interface_scrollable_scroll_down_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_right_cb_set"); + + private static void scroll_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_right_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetScrollRightCb(scroll_right_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_right_cb); + } + } + private static elm_interface_scrollable_scroll_right_cb_set_delegate elm_interface_scrollable_scroll_right_cb_set_static_delegate; - public delegate void elm_interface_scrollable_scroll_down_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_down_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_down_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_down_cb_set"); - private static void scroll_down_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_down_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetScrollDownCb( scroll_down_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_down_cb); - } - } - private static elm_interface_scrollable_scroll_down_cb_set_delegate elm_interface_scrollable_scroll_down_cb_set_static_delegate; + + private delegate void elm_interface_scrollable_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + public delegate void elm_interface_scrollable_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); - private delegate void elm_interface_scrollable_page_relative_set_delegate(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_set"); + private static void scrollable_content_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) + { + Eina.Log.Debug("function elm_interface_scrollable_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetScrollableContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_page_relative_set_api_delegate(System.IntPtr obj, double h_pagerel, double v_pagerel); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_relative_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_relative_set"); - private static void page_relative_set(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel) - { - Eina.Log.Debug("function elm_interface_scrollable_page_relative_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetPageRelative( h_pagerel, v_pagerel); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + elm_interface_scrollable_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } - } else { - elm_interface_scrollable_page_relative_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), h_pagerel, v_pagerel); } - } - private static elm_interface_scrollable_page_relative_set_delegate elm_interface_scrollable_page_relative_set_static_delegate; + private static elm_interface_scrollable_content_set_delegate elm_interface_scrollable_content_set_static_delegate; - private delegate void elm_interface_scrollable_scroll_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb); + + private delegate void elm_interface_scrollable_edge_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb); + + public delegate void elm_interface_scrollable_edge_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_left_cb); - public delegate void elm_interface_scrollable_scroll_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_cb_set"); - private static void scroll_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetScrollCb( scroll_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_cb); - } - } - private static elm_interface_scrollable_scroll_cb_set_delegate elm_interface_scrollable_scroll_cb_set_static_delegate; + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_left_cb_set"); + private static void edge_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_edge_left_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetEdgeLeftCb(edge_left_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void elm_interface_scrollable_animate_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb); + + } + else + { + elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_left_cb); + } + } + private static elm_interface_scrollable_edge_left_cb_set_delegate elm_interface_scrollable_edge_left_cb_set_static_delegate; - public delegate void elm_interface_scrollable_animate_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_stop_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_animate_stop_cb_set"); - private static void animate_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_animate_stop_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetAnimateStopCb( animate_stop_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_stop_cb); - } - } - private static elm_interface_scrollable_animate_stop_cb_set_delegate elm_interface_scrollable_animate_stop_cb_set_static_delegate; + + private delegate void elm_interface_scrollable_vbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb); + + public delegate void elm_interface_scrollable_vbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_drag_cb); - private delegate void elm_interface_scrollable_content_min_limit_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_drag_cb_set"); + private static void vbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_vbar_drag_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetVbarDragCb(vbar_drag_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_content_min_limit_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableMinLimitCb min_limit_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_min_limit_cb_set"); - private static void content_min_limit_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_content_min_limit_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetContentMinLimitCb( min_limit_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min_limit_cb); + + } + else + { + elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_drag_cb); + } } - } - private static elm_interface_scrollable_content_min_limit_cb_set_delegate elm_interface_scrollable_content_min_limit_cb_set_static_delegate; + private static elm_interface_scrollable_vbar_drag_cb_set_delegate elm_interface_scrollable_vbar_drag_cb_set_static_delegate; - private delegate void elm_interface_scrollable_scroll_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb); + + private delegate void elm_interface_scrollable_vbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb); + + public delegate void elm_interface_scrollable_vbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_unpress_cb); - public delegate void elm_interface_scrollable_scroll_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_right_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_right_cb_set"); - private static void scroll_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_right_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetScrollRightCb( scroll_right_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_right_cb); - } - } - private static elm_interface_scrollable_scroll_right_cb_set_delegate elm_interface_scrollable_scroll_right_cb_set_static_delegate; + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_unpress_cb_set"); + private static void vbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_vbar_unpress_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetVbarUnpressCb(vbar_unpress_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void elm_interface_scrollable_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); + + } + else + { + elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_unpress_cb); + } + } + private static elm_interface_scrollable_vbar_unpress_cb_set_delegate elm_interface_scrollable_vbar_unpress_cb_set_static_delegate; - public delegate void elm_interface_scrollable_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_set"); - private static void scrollable_content_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) - { - Eina.Log.Debug("function elm_interface_scrollable_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetScrollableContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static elm_interface_scrollable_content_set_delegate elm_interface_scrollable_content_set_static_delegate; + + private delegate void elm_interface_scrollable_edge_bottom_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb); + + public delegate void elm_interface_scrollable_edge_bottom_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_bottom_cb); - private delegate void elm_interface_scrollable_edge_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_bottom_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_bottom_cb_set"); + private static void edge_bottom_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_edge_bottom_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetEdgeBottomCb(edge_bottom_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_edge_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_left_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_edge_left_cb_set"); - private static void edge_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_left_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetEdgeLeftCb( edge_left_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_left_cb); + + } + else + { + elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_bottom_cb); + } } - } - private static elm_interface_scrollable_edge_left_cb_set_delegate elm_interface_scrollable_edge_left_cb_set_static_delegate; + private static elm_interface_scrollable_edge_bottom_cb_set_delegate elm_interface_scrollable_edge_bottom_cb_set_static_delegate; - private delegate void elm_interface_scrollable_vbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb); + + private delegate void elm_interface_scrollable_edge_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb); + + public delegate void elm_interface_scrollable_edge_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_right_cb); - public delegate void elm_interface_scrollable_vbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_drag_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_vbar_drag_cb_set"); - private static void vbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_vbar_drag_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetVbarDragCb( vbar_drag_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_drag_cb); - } - } - private static elm_interface_scrollable_vbar_drag_cb_set_delegate elm_interface_scrollable_vbar_drag_cb_set_static_delegate; + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_right_cb_set"); + private static void edge_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_edge_right_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetEdgeRightCb(edge_right_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void elm_interface_scrollable_vbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb); + + } + else + { + elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_right_cb); + } + } + private static elm_interface_scrollable_edge_right_cb_set_delegate elm_interface_scrollable_edge_right_cb_set_static_delegate; - public delegate void elm_interface_scrollable_vbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_unpress_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_vbar_unpress_cb_set"); - private static void vbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_vbar_unpress_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetVbarUnpressCb( vbar_unpress_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_unpress_cb); - } - } - private static elm_interface_scrollable_vbar_unpress_cb_set_delegate elm_interface_scrollable_vbar_unpress_cb_set_static_delegate; + + private delegate void elm_interface_scrollable_edge_top_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb); + + public delegate void elm_interface_scrollable_edge_top_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_top_cb); - private delegate void elm_interface_scrollable_edge_bottom_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_top_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_top_cb_set"); + private static void edge_top_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_edge_top_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetEdgeTopCb(edge_top_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_edge_bottom_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_bottom_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_bottom_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_edge_bottom_cb_set"); - private static void edge_bottom_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_bottom_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetEdgeBottomCb( edge_bottom_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_bottom_cb); + + } + else + { + elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_top_cb); + } } - } - private static elm_interface_scrollable_edge_bottom_cb_set_delegate elm_interface_scrollable_edge_bottom_cb_set_static_delegate; + private static elm_interface_scrollable_edge_top_cb_set_delegate elm_interface_scrollable_edge_top_cb_set_static_delegate; - private delegate void elm_interface_scrollable_edge_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb); + + private delegate void elm_interface_scrollable_objects_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object hit_rectangle); + + public delegate void elm_interface_scrollable_objects_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object hit_rectangle); - public delegate void elm_interface_scrollable_edge_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_right_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_edge_right_cb_set"); - private static void edge_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_right_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetEdgeRightCb( edge_right_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_right_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_objects_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_objects_set"); + + private static void objects_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) + { + Eina.Log.Debug("function elm_interface_scrollable_objects_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetObjects(edje_object, hit_rectangle); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_objects_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edje_object, hit_rectangle); + } } - } - private static elm_interface_scrollable_edge_right_cb_set_delegate elm_interface_scrollable_edge_right_cb_set_static_delegate; + private static elm_interface_scrollable_objects_set_delegate elm_interface_scrollable_objects_set_static_delegate; + + + private delegate void elm_interface_scrollable_last_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); - private delegate void elm_interface_scrollable_edge_top_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb); + + public delegate void elm_interface_scrollable_last_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_last_page_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_last_page_get"); - public delegate void elm_interface_scrollable_edge_top_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_top_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_top_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_edge_top_cb_set"); - private static void edge_top_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_top_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetEdgeTopCb( edge_top_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_top_cb); + private static void last_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) + { + Eina.Log.Debug("function elm_interface_scrollable_last_page_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pagenumber_h = default(int); pagenumber_v = default(int); + try + { + ((Panel)wrapper).GetLastPage(out pagenumber_h, out pagenumber_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_last_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); + } } - } - private static elm_interface_scrollable_edge_top_cb_set_delegate elm_interface_scrollable_edge_top_cb_set_static_delegate; + private static elm_interface_scrollable_last_page_get_delegate elm_interface_scrollable_last_page_get_static_delegate; + + + private delegate void elm_interface_scrollable_current_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); - private delegate void elm_interface_scrollable_objects_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object hit_rectangle); + + public delegate void elm_interface_scrollable_current_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_current_page_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_current_page_get"); - public delegate void elm_interface_scrollable_objects_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object hit_rectangle); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_objects_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_objects_set"); - private static void objects_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) - { - Eina.Log.Debug("function elm_interface_scrollable_objects_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetObjects( edje_object, hit_rectangle); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void current_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) + { + Eina.Log.Debug("function elm_interface_scrollable_current_page_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pagenumber_h = default(int); pagenumber_v = default(int); + try + { + ((Panel)wrapper).GetCurrentPage(out pagenumber_h, out pagenumber_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_current_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); } - } else { - elm_interface_scrollable_objects_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edje_object, hit_rectangle); } - } - private static elm_interface_scrollable_objects_set_delegate elm_interface_scrollable_objects_set_static_delegate; + private static elm_interface_scrollable_current_page_get_delegate elm_interface_scrollable_current_page_get_static_delegate; - private delegate void elm_interface_scrollable_last_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); + + private delegate void elm_interface_scrollable_content_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); + + + public delegate void elm_interface_scrollable_content_viewport_geometry_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_viewport_geometry_get"); - public delegate void elm_interface_scrollable_last_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_last_page_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_last_page_get"); - private static void last_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_last_page_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pagenumber_h = default(int); pagenumber_v = default(int); - try { - ((Panel)wrapper).GetLastPage( out pagenumber_h, out pagenumber_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_last_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); + private static void content_viewport_geometry_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_viewport_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); w = default(int); h = default(int); + try + { + ((Panel)wrapper).GetContentViewportGeometry(out x, out y, out w, out h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); + } } - } - private static elm_interface_scrollable_last_page_get_delegate elm_interface_scrollable_last_page_get_static_delegate; + private static elm_interface_scrollable_content_viewport_geometry_get_delegate elm_interface_scrollable_content_viewport_geometry_get_static_delegate; - private delegate void elm_interface_scrollable_current_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); + + private delegate void elm_interface_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int w, out int h); + + public delegate void elm_interface_scrollable_content_size_get_api_delegate(System.IntPtr obj, out int w, out int h); - public delegate void elm_interface_scrollable_current_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_current_page_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_current_page_get"); - private static void current_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_current_page_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pagenumber_h = default(int); pagenumber_v = default(int); - try { - ((Panel)wrapper).GetCurrentPage( out pagenumber_h, out pagenumber_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_current_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); - } - } - private static elm_interface_scrollable_current_page_get_delegate elm_interface_scrollable_current_page_get_static_delegate; + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_size_get"); + private static void content_size_get(System.IntPtr obj, System.IntPtr pd, out int w, out int h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + w = default(int); h = default(int); + try + { + ((Panel)wrapper).GetContentSize(out w, out h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out w, out h); + } + } - private delegate void elm_interface_scrollable_content_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); + private static elm_interface_scrollable_content_size_get_delegate elm_interface_scrollable_content_size_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool elm_interface_scrollable_item_loop_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_content_viewport_geometry_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_viewport_geometry_get"); - private static void content_viewport_geometry_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_viewport_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); w = default(int); h = default(int); - try { - ((Panel)wrapper).GetContentViewportGeometry( out x, out y, out w, out h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); - } - } - private static elm_interface_scrollable_content_viewport_geometry_get_delegate elm_interface_scrollable_content_viewport_geometry_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool elm_interface_scrollable_item_loop_enabled_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_item_loop_enabled_get"); - private delegate void elm_interface_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int w, out int h); + private static bool item_loop_enabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panel)wrapper).GetItemLoopEnabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void elm_interface_scrollable_content_size_get_api_delegate(System.IntPtr obj, out int w, out int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_size_get"); - private static void content_size_get(System.IntPtr obj, System.IntPtr pd, out int w, out int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - w = default(int); h = default(int); - try { - ((Panel)wrapper).GetContentSize( out w, out h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out w, out h); + } + else + { + return elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_content_size_get_delegate elm_interface_scrollable_content_size_get_static_delegate; + private static elm_interface_scrollable_item_loop_enabled_get_delegate elm_interface_scrollable_item_loop_enabled_get_static_delegate; + + + private delegate void elm_interface_scrollable_item_loop_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool elm_interface_scrollable_item_loop_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void elm_interface_scrollable_item_loop_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_item_loop_enabled_set"); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool elm_interface_scrollable_item_loop_enabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_item_loop_enabled_get"); - private static bool item_loop_enabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Panel)wrapper).GetItemLoopEnabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void item_loop_enabled_set(System.IntPtr obj, System.IntPtr pd, bool enable) + { + Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetItemLoopEnabled(enable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); } - return _ret_var; - } else { - return elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static elm_interface_scrollable_item_loop_enabled_get_delegate elm_interface_scrollable_item_loop_enabled_get_static_delegate; + private static elm_interface_scrollable_item_loop_enabled_set_delegate elm_interface_scrollable_item_loop_enabled_set_static_delegate; + + + private delegate void elm_interface_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); - private delegate void elm_interface_scrollable_item_loop_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + + public delegate void elm_interface_scrollable_content_pos_set_api_delegate(System.IntPtr obj, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_pos_set"); - public delegate void elm_interface_scrollable_item_loop_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_item_loop_enabled_set"); - private static void item_loop_enabled_set(System.IntPtr obj, System.IntPtr pd, bool enable) - { - Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetItemLoopEnabled( enable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); + private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, int x, int y, bool sig) + { + Eina.Log.Debug("function elm_interface_scrollable_content_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetContentPos(x, y, sig); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, sig); + } } - } - private static elm_interface_scrollable_item_loop_enabled_set_delegate elm_interface_scrollable_item_loop_enabled_set_static_delegate; + private static elm_interface_scrollable_content_pos_set_delegate elm_interface_scrollable_content_pos_set_static_delegate; + + + private delegate void elm_interface_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); - private delegate void elm_interface_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); + + public delegate void elm_interface_scrollable_content_pos_get_api_delegate(System.IntPtr obj, out int x, out int y); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_pos_get"); - public delegate void elm_interface_scrollable_content_pos_set_api_delegate(System.IntPtr obj, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_pos_set"); - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, int x, int y, bool sig) - { - Eina.Log.Debug("function elm_interface_scrollable_content_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetContentPos( x, y, sig); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, sig); + private static void content_pos_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + { + Eina.Log.Debug("function elm_interface_scrollable_content_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); + try + { + ((Panel)wrapper).GetContentPos(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } } - } - private static elm_interface_scrollable_content_pos_set_delegate elm_interface_scrollable_content_pos_set_static_delegate; + private static elm_interface_scrollable_content_pos_get_delegate elm_interface_scrollable_content_pos_get_static_delegate; - private delegate void elm_interface_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + private delegate void elm_interface_scrollable_page_show_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); + + + public delegate void elm_interface_scrollable_page_show_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_show_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_show"); - public delegate void elm_interface_scrollable_content_pos_get_api_delegate(System.IntPtr obj, out int x, out int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_pos_get"); - private static void content_pos_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function elm_interface_scrollable_content_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); - try { - ((Panel)wrapper).GetContentPos( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + private static void page_show(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) + { + Eina.Log.Debug("function elm_interface_scrollable_page_show was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).ShowPage(pagenumber_h, pagenumber_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); + } } - } - private static elm_interface_scrollable_content_pos_get_delegate elm_interface_scrollable_content_pos_get_static_delegate; + private static elm_interface_scrollable_page_show_delegate elm_interface_scrollable_page_show_static_delegate; - private delegate void elm_interface_scrollable_page_show_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); + + private delegate void elm_interface_scrollable_region_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + + public delegate void elm_interface_scrollable_region_bring_in_api_delegate(System.IntPtr obj, int x, int y, int w, int h); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_region_bring_in_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_region_bring_in"); + + private static void region_bring_in(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) + { + Eina.Log.Debug("function elm_interface_scrollable_region_bring_in was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).RegionBringIn(x, y, w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_page_show_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_show_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_show"); - private static void page_show(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_show was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Panel)wrapper).ShowPage( pagenumber_h, pagenumber_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_page_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); + else + { + elm_interface_scrollable_region_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); + } } - } - private static elm_interface_scrollable_page_show_delegate elm_interface_scrollable_page_show_static_delegate; + private static elm_interface_scrollable_region_bring_in_delegate elm_interface_scrollable_region_bring_in_static_delegate; + + + private delegate void elm_interface_scrollable_page_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); - private delegate void elm_interface_scrollable_region_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + + public delegate void elm_interface_scrollable_page_bring_in_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_bring_in_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_bring_in"); - public delegate void elm_interface_scrollable_region_bring_in_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_region_bring_in_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_region_bring_in"); - private static void region_bring_in(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) - { - Eina.Log.Debug("function elm_interface_scrollable_region_bring_in was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).RegionBringIn( x, y, w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_region_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); + private static void page_bring_in(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) + { + Eina.Log.Debug("function elm_interface_scrollable_page_bring_in was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).PageBringIn(pagenumber_h, pagenumber_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); + } } - } - private static elm_interface_scrollable_region_bring_in_delegate elm_interface_scrollable_region_bring_in_static_delegate; + private static elm_interface_scrollable_page_bring_in_delegate elm_interface_scrollable_page_bring_in_static_delegate; + + + private delegate void elm_interface_scrollable_content_region_show_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); - private delegate void elm_interface_scrollable_page_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); + + public delegate void elm_interface_scrollable_content_region_show_api_delegate(System.IntPtr obj, int x, int y, int w, int h); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_show_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_show"); + + private static void content_region_show(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_region_show was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).ShowContentRegion(x, y, w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_page_bring_in_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_bring_in_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_bring_in"); - private static void page_bring_in(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_bring_in was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Panel)wrapper).PageBringIn( pagenumber_h, pagenumber_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_page_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); + else + { + elm_interface_scrollable_content_region_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); + } } - } - private static elm_interface_scrollable_page_bring_in_delegate elm_interface_scrollable_page_bring_in_static_delegate; + private static elm_interface_scrollable_content_region_show_delegate elm_interface_scrollable_content_region_show_static_delegate; - private delegate void elm_interface_scrollable_content_region_show_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); - - - public delegate void elm_interface_scrollable_content_region_show_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_show_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_region_show"); - private static void content_region_show(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_region_show was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).ShowContentRegion( x, y, w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_region_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); - } - } - private static elm_interface_scrollable_content_region_show_delegate elm_interface_scrollable_content_region_show_static_delegate; - + + private delegate void elm_interface_scrollable_content_min_limit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - private delegate void elm_interface_scrollable_content_min_limit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + public delegate void elm_interface_scrollable_content_min_limit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_min_limit"); - public delegate void elm_interface_scrollable_content_min_limit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_min_limit"); - private static void content_min_limit(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_min_limit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).ContentMinLimit( w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void content_min_limit(System.IntPtr obj, System.IntPtr pd, bool w, bool h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_min_limit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).ContentMinLimit(w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_min_limit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); } - } else { - elm_interface_scrollable_content_min_limit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); } - } - private static elm_interface_scrollable_content_min_limit_delegate elm_interface_scrollable_content_min_limit_static_delegate; + private static elm_interface_scrollable_content_min_limit_delegate elm_interface_scrollable_content_min_limit_static_delegate; + + + private delegate void elm_interface_scrollable_wanted_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); - private delegate void elm_interface_scrollable_wanted_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + public delegate void elm_interface_scrollable_wanted_region_set_api_delegate(System.IntPtr obj, int x, int y); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wanted_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wanted_region_set"); - public delegate void elm_interface_scrollable_wanted_region_set_api_delegate(System.IntPtr obj, int x, int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wanted_region_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_wanted_region_set"); - private static void wanted_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function elm_interface_scrollable_wanted_region_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panel)wrapper).SetWantedRegion( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void wanted_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + { + Eina.Log.Debug("function elm_interface_scrollable_wanted_region_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panel)wrapper).SetWantedRegion(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } else { - elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } - private static elm_interface_scrollable_wanted_region_set_delegate elm_interface_scrollable_wanted_region_set_static_delegate; + private static elm_interface_scrollable_wanted_region_set_delegate elm_interface_scrollable_wanted_region_set_static_delegate; + + + private delegate void elm_interface_scrollable_custom_pan_pos_adjust_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y); - private delegate void elm_interface_scrollable_custom_pan_pos_adjust_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y); + + public delegate void elm_interface_scrollable_custom_pan_pos_adjust_api_delegate(System.IntPtr obj, System.IntPtr x, System.IntPtr y); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_custom_pan_pos_adjust_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_custom_pan_pos_adjust"); - public delegate void elm_interface_scrollable_custom_pan_pos_adjust_api_delegate(System.IntPtr obj, System.IntPtr x, System.IntPtr y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_custom_pan_pos_adjust_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_custom_pan_pos_adjust"); - private static void custom_pan_pos_adjust(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y) - { - Eina.Log.Debug("function elm_interface_scrollable_custom_pan_pos_adjust was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_x = Eina.PrimitiveConversion.PointerToManaged(x); + private static void custom_pan_pos_adjust(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y) + { + Eina.Log.Debug("function elm_interface_scrollable_custom_pan_pos_adjust was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_x = Eina.PrimitiveConversion.PointerToManaged(x); var _in_y = Eina.PrimitiveConversion.PointerToManaged(y); - try { - ((Panel)wrapper).CustomPanPosAdjust( _in_x, _in_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((Panel)wrapper).CustomPanPosAdjust(_in_x, _in_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } else { - elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } - private static elm_interface_scrollable_custom_pan_pos_adjust_delegate elm_interface_scrollable_custom_pan_pos_adjust_static_delegate; + + private static elm_interface_scrollable_custom_pan_pos_adjust_delegate elm_interface_scrollable_custom_pan_pos_adjust_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } -namespace Efl { namespace Ui { + +} + +namespace Efl { + +namespace Ui { + /// Panel orientation mode public enum PanelOrient { @@ -5519,8 +7572,15 @@ Left = 2, /// Panel (dis)appears from the right Right = 3, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Panel scroll information [StructLayout(LayoutKind.Sequential)] public struct PanelScrollInfo @@ -5531,8 +7591,8 @@ public struct PanelScrollInfo public double Rel_y; ///Constructor for PanelScrollInfo. public PanelScrollInfo( - double Rel_x=default(double), - double Rel_y=default(double) ) + double Rel_x = default(double), + double Rel_y = default(double) ) { this.Rel_x = Rel_x; this.Rel_y = Rel_y; @@ -5574,4 +7634,7 @@ public struct PanelScrollInfo } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_panes.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_panes.eo.cs index 2d86a76..2cb86e1 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_panes.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_panes.eo.cs @@ -3,524 +3,635 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary panes class -[PanesNativeInherit] +[Efl.Ui.Panes.NativeMethods] public class Panes : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.Ui.IClickable,Efl.Ui.IDirection { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Panes)) - return Efl.Ui.PanesNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Panes)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_panes_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Panes(Efl.Object parent - , System.String style = null) : - base(efl_ui_panes_class_get(), typeof(Panes), parent) + , System.String style = null) : base(efl_ui_panes_class_get(), typeof(Panes), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Panes(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Panes(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Panes(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object PressEvtKey = new object(); + /// Called when panes got pressed public event EventHandler PressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_ELM_PANES_EVENT_PRESS"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PressEvt_delegate)) { - eventHandlers.AddHandler(PressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_ELM_PANES_EVENT_PRESS"; - if (RemoveNativeEventHandler(key, this.evt_PressEvt_delegate)) { - eventHandlers.RemoveHandler(PressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event PressEvt. - public void On_PressEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressEvt_delegate; - private void on_PressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPressEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_PressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_ELM_PANES_EVENT_PRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnpressEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when panes are no longer pressed public event EventHandler UnpressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_ELM_PANES_EVENT_UNPRESS"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_UnpressEvt_delegate)) { - eventHandlers.AddHandler(UnpressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_ELM_PANES_EVENT_UNPRESS"; - if (RemoveNativeEventHandler(key, this.evt_UnpressEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event UnpressEvt. - public void On_UnpressEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressEvt_delegate; - private void on_UnpressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnUnpressEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_UnpressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_ELM_PANES_EVENT_UNPRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedDoubleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedTripleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRepeatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_PressEvt_delegate = new Efl.EventCb(on_PressEvt_NativeCallback); - evt_UnpressEvt_delegate = new Efl.EventCb(on_UnpressEvt_NativeCallback); - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// The second half of the panes widget (right or bottom) public Efl.Ui.PanesPart Second { get { - return Efl.IPartNativeInherit.efl_part_get_ptr.Value.Delegate(NativeHandle, "second") as Efl.Ui.PanesPart; + return GetPart("second") as Efl.Ui.PanesPart; } } /// The first half of the panes widget (left or top) @@ -528,7 +639,7 @@ private static object RepeatedEvtKey = new object(); { get { - return Efl.IPartNativeInherit.efl_part_get_ptr.Value.Delegate(NativeHandle, "first") as Efl.Ui.PanesPart; + return GetPart("first") as Efl.Ui.PanesPart; } } /// Set the split ratio between panes widget first and second parts. @@ -541,7 +652,7 @@ private static object RepeatedEvtKey = new object(); /// Note: This ratio will change when user drags the panes bar. /// Value between 0.0 and 1.0 representing split ratio between panes first and second parts. virtual public double GetSplitRatio() { - var _ret_var = Efl.Ui.PanesNativeInherit.efl_ui_panes_split_ratio_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Panes.NativeMethods.efl_ui_panes_split_ratio_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -554,25 +665,23 @@ private static object RepeatedEvtKey = new object(); /// /// Note: This ratio will change when user drags the panes bar. /// Value between 0.0 and 1.0 representing split ratio between panes first and second parts. - /// - virtual public void SetSplitRatio( double ratio) { - Efl.Ui.PanesNativeInherit.efl_ui_panes_split_ratio_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ratio); + virtual public void SetSplitRatio(double ratio) { + Efl.Ui.Panes.NativeMethods.efl_ui_panes_split_ratio_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ratio); Eina.Error.RaiseIfUnhandledException(); } /// Set whether the left and right panes can be resized by user interaction. /// By default panes' contents are resizable by user interaction. /// Use true to fix the left and right panes sizes and make them not to be resized by user interaction. Use false to make them resizable. virtual public bool GetFixed() { - var _ret_var = Efl.Ui.PanesNativeInherit.efl_ui_panes_fixed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Panes.NativeMethods.efl_ui_panes_fixed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set whether the left and right panes can be resized by user interaction. /// By default panes' contents are resizable by user interaction. /// Use true to fix the left and right panes sizes and make them not to be resized by user interaction. Use false to make them resizable. - /// - virtual public void SetFixed( bool kw_fixed) { - Efl.Ui.PanesNativeInherit.efl_ui_panes_fixed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_fixed); + virtual public void SetFixed(bool kw_fixed) { + Efl.Ui.Panes.NativeMethods.efl_ui_panes_fixed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_fixed); Eina.Error.RaiseIfUnhandledException(); } /// Control the direction of a given widget. @@ -581,7 +690,7 @@ private static object RepeatedEvtKey = new object(); /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. virtual public Efl.Ui.Dir GetDirection() { - var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -590,9 +699,8 @@ private static object RepeatedEvtKey = new object(); /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. - /// - virtual public void SetDirection( Efl.Ui.Dir dir) { - Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetDirection(Efl.Ui.Dir dir) { + Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// Set the split ratio between panes widget first and second parts. @@ -606,14 +714,14 @@ private static object RepeatedEvtKey = new object(); /// Value between 0.0 and 1.0 representing split ratio between panes first and second parts. public double SplitRatio { get { return GetSplitRatio(); } - set { SetSplitRatio( value); } + set { SetSplitRatio(value); } } /// Set whether the left and right panes can be resized by user interaction. /// By default panes' contents are resizable by user interaction. /// Use true to fix the left and right panes sizes and make them not to be resized by user interaction. Use false to make them resizable. public bool Fixed { get { return GetFixed(); } - set { SetFixed( value); } + set { SetFixed(value); } } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. @@ -622,200 +730,314 @@ private static object RepeatedEvtKey = new object(); /// Direction of the widget. public Efl.Ui.Dir Direction { get { return GetDirection(); } - set { SetDirection( value); } + set { SetDirection(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Panes.efl_ui_panes_class_get(); } -} -public class PanesNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_panes_split_ratio_get_static_delegate == null) - efl_ui_panes_split_ratio_get_static_delegate = new efl_ui_panes_split_ratio_get_delegate(split_ratio_get); - if (methods.FirstOrDefault(m => m.Name == "GetSplitRatio") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_split_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_split_ratio_get_static_delegate)}); - if (efl_ui_panes_split_ratio_set_static_delegate == null) - efl_ui_panes_split_ratio_set_static_delegate = new efl_ui_panes_split_ratio_set_delegate(split_ratio_set); - if (methods.FirstOrDefault(m => m.Name == "SetSplitRatio") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_split_ratio_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_split_ratio_set_static_delegate)}); - if (efl_ui_panes_fixed_get_static_delegate == null) - efl_ui_panes_fixed_get_static_delegate = new efl_ui_panes_fixed_get_delegate(fixed_get); - if (methods.FirstOrDefault(m => m.Name == "GetFixed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_fixed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_fixed_get_static_delegate)}); - if (efl_ui_panes_fixed_set_static_delegate == null) - efl_ui_panes_fixed_set_static_delegate = new efl_ui_panes_fixed_set_delegate(fixed_set); - if (methods.FirstOrDefault(m => m.Name == "SetFixed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_fixed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_fixed_set_static_delegate)}); - if (efl_ui_direction_get_static_delegate == null) - efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)}); - if (efl_ui_direction_set_static_delegate == null) - efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Panes.efl_ui_panes_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Panes.efl_ui_panes_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_panes_split_ratio_get_static_delegate == null) + { + efl_ui_panes_split_ratio_get_static_delegate = new efl_ui_panes_split_ratio_get_delegate(split_ratio_get); + } - private delegate double efl_ui_panes_split_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSplitRatio") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_split_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_split_ratio_get_static_delegate) }); + } + if (efl_ui_panes_split_ratio_set_static_delegate == null) + { + efl_ui_panes_split_ratio_set_static_delegate = new efl_ui_panes_split_ratio_set_delegate(split_ratio_set); + } - public delegate double efl_ui_panes_split_ratio_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_panes_split_ratio_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panes_split_ratio_get"); - private static double split_ratio_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panes_split_ratio_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Panes)wrapper).GetSplitRatio(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSplitRatio") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_split_ratio_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_split_ratio_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_panes_split_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_panes_fixed_get_static_delegate == null) + { + efl_ui_panes_fixed_get_static_delegate = new efl_ui_panes_fixed_get_delegate(fixed_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFixed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_fixed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_fixed_get_static_delegate) }); + } + + if (efl_ui_panes_fixed_set_static_delegate == null) + { + efl_ui_panes_fixed_set_static_delegate = new efl_ui_panes_fixed_set_delegate(fixed_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFixed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_fixed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_fixed_set_static_delegate) }); + } + + if (efl_ui_direction_get_static_delegate == null) + { + efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate) }); + } + + if (efl_ui_direction_set_static_delegate == null) + { + efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Panes.efl_ui_panes_class_get(); } - } - private static efl_ui_panes_split_ratio_get_delegate efl_ui_panes_split_ratio_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_panes_split_ratio_set_delegate(System.IntPtr obj, System.IntPtr pd, double ratio); + + private delegate double efl_ui_panes_split_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_panes_split_ratio_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_panes_split_ratio_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_split_ratio_get"); + + private static double split_ratio_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_panes_split_ratio_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Panes)wrapper).GetSplitRatio(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_panes_split_ratio_set_api_delegate(System.IntPtr obj, double ratio); - public static Efl.Eo.FunctionWrapper efl_ui_panes_split_ratio_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panes_split_ratio_set"); - private static void split_ratio_set(System.IntPtr obj, System.IntPtr pd, double ratio) - { - Eina.Log.Debug("function efl_ui_panes_split_ratio_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panes)wrapper).SetSplitRatio( ratio); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_panes_split_ratio_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ratio); + else + { + return efl_ui_panes_split_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_panes_split_ratio_set_delegate efl_ui_panes_split_ratio_set_static_delegate; + private static efl_ui_panes_split_ratio_get_delegate efl_ui_panes_split_ratio_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_panes_fixed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_panes_split_ratio_set_delegate(System.IntPtr obj, System.IntPtr pd, double ratio); + + public delegate void efl_ui_panes_split_ratio_set_api_delegate(System.IntPtr obj, double ratio); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_panes_fixed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_panes_fixed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panes_fixed_get"); - private static bool fixed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panes_fixed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Panes)wrapper).GetFixed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_panes_split_ratio_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_split_ratio_set"); + + private static void split_ratio_set(System.IntPtr obj, System.IntPtr pd, double ratio) + { + Eina.Log.Debug("function efl_ui_panes_split_ratio_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panes)wrapper).SetSplitRatio(ratio); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_panes_split_ratio_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ratio); } - return _ret_var; - } else { - return efl_ui_panes_fixed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_panes_fixed_get_delegate efl_ui_panes_fixed_get_static_delegate; + private static efl_ui_panes_split_ratio_set_delegate efl_ui_panes_split_ratio_set_static_delegate; - private delegate void efl_ui_panes_fixed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool kw_fixed); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_panes_fixed_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_panes_fixed_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_panes_fixed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool kw_fixed); - public static Efl.Eo.FunctionWrapper efl_ui_panes_fixed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panes_fixed_set"); - private static void fixed_set(System.IntPtr obj, System.IntPtr pd, bool kw_fixed) - { - Eina.Log.Debug("function efl_ui_panes_fixed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panes)wrapper).SetFixed( kw_fixed); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_panes_fixed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_fixed_get"); + + private static bool fixed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_panes_fixed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panes)wrapper).GetFixed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_panes_fixed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_panes_fixed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_fixed); } - } - private static efl_ui_panes_fixed_set_delegate efl_ui_panes_fixed_set_static_delegate; + private static efl_ui_panes_fixed_get_delegate efl_ui_panes_fixed_get_static_delegate; - private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_panes_fixed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool kw_fixed); + + public delegate void efl_ui_panes_fixed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool kw_fixed); - public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_get"); - private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); - try { - _ret_var = ((Panes)wrapper).GetDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_panes_fixed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_fixed_set"); + + private static void fixed_set(System.IntPtr obj, System.IntPtr pd, bool kw_fixed) + { + Eina.Log.Debug("function efl_ui_panes_fixed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panes)wrapper).SetFixed(kw_fixed); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_panes_fixed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_fixed); } + } + + private static efl_ui_panes_fixed_set_delegate efl_ui_panes_fixed_set_static_delegate; + + + private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_get"); + + private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); + try + { + _ret_var = ((Panes)wrapper).GetDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; - private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_set"); - private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Panes)wrapper).SetDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_set"); + + private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Panes)wrapper).SetDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - } else { - efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - } - private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; + + private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_panes_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_panes_part.eo.cs index 8630659..ca0c367 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_panes_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_panes_part.eo.cs @@ -3,239 +3,341 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary Panes internal part class -[PanesPartNativeInherit] +[Efl.Ui.PanesPart.NativeMethods] public class PanesPart : Efl.Ui.LayoutPartContent, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (PanesPart)) - return Efl.Ui.PanesPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(PanesPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_panes_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public PanesPart(Efl.Object parent= null - ) : - base(efl_ui_panes_part_class_get(), typeof(PanesPart), parent) + ) : base(efl_ui_panes_part_class_get(), typeof(PanesPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected PanesPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected PanesPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected PanesPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Allows the user to set size hints to be respected and ignored combined with a minimum size. If this flag is set, the minimum size set by is respected forcefully. /// If true minimum size is forced virtual public bool GetHintMinAllow() { - var _ret_var = Efl.Ui.PanesPartNativeInherit.efl_ui_panes_part_hint_min_allow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.PanesPart.NativeMethods.efl_ui_panes_part_hint_min_allow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Allows the user to set size hints to be respected and ignored combined with a minimum size. If this flag is set, the minimum size set by is respected forcefully. /// If true minimum size is forced - /// - virtual public void SetHintMinAllow( bool allow) { - Efl.Ui.PanesPartNativeInherit.efl_ui_panes_part_hint_min_allow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), allow); + virtual public void SetHintMinAllow(bool allow) { + Efl.Ui.PanesPart.NativeMethods.efl_ui_panes_part_hint_min_allow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),allow); Eina.Error.RaiseIfUnhandledException(); } /// Controls the relative minimum size of panes widget's part. /// If is also used along with , maximum value is set as minimum size to part. /// Value between 0.0 and 1.0 representing size proportion of first part's minimum size. virtual public double GetSplitRatioMin() { - var _ret_var = Efl.Ui.PanesPartNativeInherit.efl_ui_panes_part_split_ratio_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.PanesPart.NativeMethods.efl_ui_panes_part_split_ratio_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Controls the relative minimum size of panes widget's part. /// If is also used along with , maximum value is set as minimum size to part. /// Value between 0.0 and 1.0 representing size proportion of first part's minimum size. - /// - virtual public void SetSplitRatioMin( double size) { - Efl.Ui.PanesPartNativeInherit.efl_ui_panes_part_split_ratio_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), size); + virtual public void SetSplitRatioMin(double size) { + Efl.Ui.PanesPart.NativeMethods.efl_ui_panes_part_split_ratio_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),size); Eina.Error.RaiseIfUnhandledException(); } /// Allows the user to set size hints to be respected and ignored combined with a minimum size. If this flag is set, the minimum size set by is respected forcefully. /// If true minimum size is forced public bool HintMinAllow { get { return GetHintMinAllow(); } - set { SetHintMinAllow( value); } + set { SetHintMinAllow(value); } } /// Controls the relative minimum size of panes widget's part. /// If is also used along with , maximum value is set as minimum size to part. /// Value between 0.0 and 1.0 representing size proportion of first part's minimum size. public double SplitRatioMin { get { return GetSplitRatioMin(); } - set { SetSplitRatioMin( value); } + set { SetSplitRatioMin(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.PanesPart.efl_ui_panes_part_class_get(); } -} -public class PanesPartNativeInherit : Efl.Ui.LayoutPartContentNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPartContent.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_panes_part_hint_min_allow_get_static_delegate == null) - efl_ui_panes_part_hint_min_allow_get_static_delegate = new efl_ui_panes_part_hint_min_allow_get_delegate(hint_min_allow_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintMinAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_part_hint_min_allow_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_hint_min_allow_get_static_delegate)}); - if (efl_ui_panes_part_hint_min_allow_set_static_delegate == null) - efl_ui_panes_part_hint_min_allow_set_static_delegate = new efl_ui_panes_part_hint_min_allow_set_delegate(hint_min_allow_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintMinAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_part_hint_min_allow_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_hint_min_allow_set_static_delegate)}); - if (efl_ui_panes_part_split_ratio_min_get_static_delegate == null) - efl_ui_panes_part_split_ratio_min_get_static_delegate = new efl_ui_panes_part_split_ratio_min_get_delegate(split_ratio_min_get); - if (methods.FirstOrDefault(m => m.Name == "GetSplitRatioMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_part_split_ratio_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_split_ratio_min_get_static_delegate)}); - if (efl_ui_panes_part_split_ratio_min_set_static_delegate == null) - efl_ui_panes_part_split_ratio_min_set_static_delegate = new efl_ui_panes_part_split_ratio_min_set_delegate(split_ratio_min_set); - if (methods.FirstOrDefault(m => m.Name == "SetSplitRatioMin") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_part_split_ratio_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_split_ratio_min_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.PanesPart.efl_ui_panes_part_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.PanesPart.efl_ui_panes_part_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_panes_part_hint_min_allow_get_static_delegate == null) + { + efl_ui_panes_part_hint_min_allow_get_static_delegate = new efl_ui_panes_part_hint_min_allow_get_delegate(hint_min_allow_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_panes_part_hint_min_allow_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetHintMinAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_part_hint_min_allow_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_hint_min_allow_get_static_delegate) }); + } + if (efl_ui_panes_part_hint_min_allow_set_static_delegate == null) + { + efl_ui_panes_part_hint_min_allow_set_static_delegate = new efl_ui_panes_part_hint_min_allow_set_delegate(hint_min_allow_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_panes_part_hint_min_allow_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_panes_part_hint_min_allow_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panes_part_hint_min_allow_get"); - private static bool hint_min_allow_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panes_part_hint_min_allow_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((PanesPart)wrapper).GetHintMinAllow(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetHintMinAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_part_hint_min_allow_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_hint_min_allow_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_panes_part_hint_min_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_panes_part_split_ratio_min_get_static_delegate == null) + { + efl_ui_panes_part_split_ratio_min_get_static_delegate = new efl_ui_panes_part_split_ratio_min_get_delegate(split_ratio_min_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSplitRatioMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_part_split_ratio_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_split_ratio_min_get_static_delegate) }); + } + + if (efl_ui_panes_part_split_ratio_min_set_static_delegate == null) + { + efl_ui_panes_part_split_ratio_min_set_static_delegate = new efl_ui_panes_part_split_ratio_min_set_delegate(split_ratio_min_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSplitRatioMin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_part_split_ratio_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_split_ratio_min_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.PanesPart.efl_ui_panes_part_class_get(); } - } - private static efl_ui_panes_part_hint_min_allow_get_delegate efl_ui_panes_part_hint_min_allow_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_panes_part_hint_min_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allow); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_panes_part_hint_min_allow_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_panes_part_hint_min_allow_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_panes_part_hint_min_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allow); - public static Efl.Eo.FunctionWrapper efl_ui_panes_part_hint_min_allow_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panes_part_hint_min_allow_set"); - private static void hint_min_allow_set(System.IntPtr obj, System.IntPtr pd, bool allow) - { - Eina.Log.Debug("function efl_ui_panes_part_hint_min_allow_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((PanesPart)wrapper).SetHintMinAllow( allow); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_panes_part_hint_min_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allow); + public static Efl.Eo.FunctionWrapper efl_ui_panes_part_hint_min_allow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_part_hint_min_allow_get"); + + private static bool hint_min_allow_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_panes_part_hint_min_allow_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((PanesPart)wrapper).GetHintMinAllow(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_panes_part_hint_min_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_panes_part_hint_min_allow_set_delegate efl_ui_panes_part_hint_min_allow_set_static_delegate; + private static efl_ui_panes_part_hint_min_allow_get_delegate efl_ui_panes_part_hint_min_allow_get_static_delegate; - private delegate double efl_ui_panes_part_split_ratio_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_panes_part_hint_min_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allow); + + public delegate void efl_ui_panes_part_hint_min_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allow); - public delegate double efl_ui_panes_part_split_ratio_min_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_panes_part_split_ratio_min_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panes_part_split_ratio_min_get"); - private static double split_ratio_min_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panes_part_split_ratio_min_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((PanesPart)wrapper).GetSplitRatioMin(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_panes_part_hint_min_allow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_part_hint_min_allow_set"); + + private static void hint_min_allow_set(System.IntPtr obj, System.IntPtr pd, bool allow) + { + Eina.Log.Debug("function efl_ui_panes_part_hint_min_allow_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((PanesPart)wrapper).SetHintMinAllow(allow); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_panes_part_hint_min_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allow); } + } + + private static efl_ui_panes_part_hint_min_allow_set_delegate efl_ui_panes_part_hint_min_allow_set_static_delegate; + + + private delegate double efl_ui_panes_part_split_ratio_min_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_ui_panes_part_split_ratio_min_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_panes_part_split_ratio_min_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_part_split_ratio_min_get"); + + private static double split_ratio_min_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_panes_part_split_ratio_min_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((PanesPart)wrapper).GetSplitRatioMin(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_panes_part_split_ratio_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_panes_part_split_ratio_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_panes_part_split_ratio_min_get_delegate efl_ui_panes_part_split_ratio_min_get_static_delegate; + private static efl_ui_panes_part_split_ratio_min_get_delegate efl_ui_panes_part_split_ratio_min_get_static_delegate; - private delegate void efl_ui_panes_part_split_ratio_min_set_delegate(System.IntPtr obj, System.IntPtr pd, double size); + + private delegate void efl_ui_panes_part_split_ratio_min_set_delegate(System.IntPtr obj, System.IntPtr pd, double size); + + public delegate void efl_ui_panes_part_split_ratio_min_set_api_delegate(System.IntPtr obj, double size); - public delegate void efl_ui_panes_part_split_ratio_min_set_api_delegate(System.IntPtr obj, double size); - public static Efl.Eo.FunctionWrapper efl_ui_panes_part_split_ratio_min_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_panes_part_split_ratio_min_set"); - private static void split_ratio_min_set(System.IntPtr obj, System.IntPtr pd, double size) - { - Eina.Log.Debug("function efl_ui_panes_part_split_ratio_min_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((PanesPart)wrapper).SetSplitRatioMin( size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_panes_part_split_ratio_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + public static Efl.Eo.FunctionWrapper efl_ui_panes_part_split_ratio_min_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panes_part_split_ratio_min_set"); + + private static void split_ratio_min_set(System.IntPtr obj, System.IntPtr pd, double size) + { + Eina.Log.Debug("function efl_ui_panes_part_split_ratio_min_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((PanesPart)wrapper).SetSplitRatioMin(size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_panes_part_split_ratio_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } } - } - private static efl_ui_panes_part_split_ratio_min_set_delegate efl_ui_panes_part_split_ratio_min_set_static_delegate; + + private static efl_ui_panes_part_split_ratio_min_set_delegate efl_ui_panes_part_split_ratio_min_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_popup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_popup.eo.cs index 4db852c..7b8aca6 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_popup.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_popup.eo.cs @@ -3,507 +3,606 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// EFL UI popup class -[PopupNativeInherit] +[Efl.Ui.Popup.NativeMethods] public class Popup : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IContent,Efl.Ui.IWidgetFocusManager,Efl.Ui.Focus.ILayer,Efl.Ui.Focus.IManager { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Popup)) - return Efl.Ui.PopupNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Popup)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_popup_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Popup(Efl.Object parent - , System.String style = null) : - base(efl_ui_popup_class_get(), typeof(Popup), parent) + , System.String style = null) : base(efl_ui_popup_class_get(), typeof(Popup), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Popup(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Popup(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Popup(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object BackwallClickedEvtKey = new object(); + /// This is called whenever the user clicks back wall of popup. public event EventHandler BackwallClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_POPUP_EVENT_BACKWALL_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_BackwallClickedEvt_delegate)) { - eventHandlers.AddHandler(BackwallClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_POPUP_EVENT_BACKWALL_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_BackwallClickedEvt_delegate)) { - eventHandlers.RemoveHandler(BackwallClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event BackwallClickedEvt. - public void On_BackwallClickedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BackwallClickedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BackwallClickedEvt_delegate; - private void on_BackwallClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnBackwallClickedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_BackwallClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_POPUP_EVENT_BACKWALL_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object TimeoutEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// This is called when popup times out. public event EventHandler TimeoutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_POPUP_EVENT_TIMEOUT"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_TimeoutEvt_delegate)) { - eventHandlers.AddHandler(TimeoutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_POPUP_EVENT_TIMEOUT"; - if (RemoveNativeEventHandler(key, this.evt_TimeoutEvt_delegate)) { - eventHandlers.RemoveHandler(TimeoutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event TimeoutEvt. - public void On_TimeoutEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[TimeoutEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_TimeoutEvt_delegate; - private void on_TimeoutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnTimeoutEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_TimeoutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_POPUP_EVENT_TIMEOUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RedirectChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) public event EventHandler RedirectChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.AddHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.RemoveHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedirectChangedEvt. - public void On_RedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedirectChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedirectChangedEvt_delegate; - private void on_RedirectChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_RedirectChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FlushPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.AddHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (RemoveNativeEventHandler(key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.RemoveHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FlushPreEvt. - public void On_FlushPreEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FlushPreEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FlushPreEvt_delegate; - private void on_FlushPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFlushPreEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_FlushPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CoordsDirtyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.AddHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (RemoveNativeEventHandler(key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.RemoveHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CoordsDirtyEvt. - public void On_CoordsDirtyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CoordsDirtyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CoordsDirtyEvt_delegate; - private void on_CoordsDirtyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCoordsDirtyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_CoordsDirtyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ManagerFocusChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) public event EventHandler ManagerFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ManagerFocusChangedEvt. - public void On_ManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ManagerFocusChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ManagerFocusChangedEvt_delegate; - private void on_ManagerFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_ManagerFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DirtyLogicFreezeChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) public event EventHandler DirtyLogicFreezeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.AddHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DirtyLogicFreezeChangedEvt. - public void On_DirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DirtyLogicFreezeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DirtyLogicFreezeChangedEvt_delegate; - private void on_DirtyLogicFreezeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_DirtyLogicFreezeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_BackwallClickedEvt_delegate = new Efl.EventCb(on_BackwallClickedEvt_NativeCallback); - evt_TimeoutEvt_delegate = new Efl.EventCb(on_TimeoutEvt_NativeCallback); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); - evt_RedirectChangedEvt_delegate = new Efl.EventCb(on_RedirectChangedEvt_NativeCallback); - evt_FlushPreEvt_delegate = new Efl.EventCb(on_FlushPreEvt_NativeCallback); - evt_CoordsDirtyEvt_delegate = new Efl.EventCb(on_CoordsDirtyEvt_NativeCallback); - evt_ManagerFocusChangedEvt_delegate = new Efl.EventCb(on_ManagerFocusChangedEvt_NativeCallback); - evt_DirtyLogicFreezeChangedEvt_delegate = new Efl.EventCb(on_DirtyLogicFreezeChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// A backwall behind the popup. public Efl.Ui.PopupPartBackwall Backwall { get { - return Efl.IPartNativeInherit.efl_part_get_ptr.Value.Delegate(NativeHandle, "backwall") as Efl.Ui.PopupPartBackwall; + return GetPart("backwall") as Efl.Ui.PopupPartBackwall; } } /// Get the current popup alignment. /// Alignment type virtual public Efl.Ui.PopupAlign GetAlign() { - var _ret_var = Efl.Ui.PopupNativeInherit.efl_ui_popup_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Popup.NativeMethods.efl_ui_popup_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the popup alignment. /// Alignment type - /// - virtual public void SetAlign( Efl.Ui.PopupAlign type) { - Efl.Ui.PopupNativeInherit.efl_ui_popup_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetAlign(Efl.Ui.PopupAlign type) { + Efl.Ui.Popup.NativeMethods.efl_ui_popup_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Get the currently set timeout seconds. /// Timeout in seconds virtual public double GetTimeout() { - var _ret_var = Efl.Ui.PopupNativeInherit.efl_ui_popup_timeout_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Popup.NativeMethods.efl_ui_popup_timeout_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the timeout seconds. After timeout seconds, popup will be deleted automatically. /// Timeout in seconds - /// - virtual public void SetTimeout( double time) { - Efl.Ui.PopupNativeInherit.efl_ui_popup_timeout_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), time); + virtual public void SetTimeout(double time) { + Efl.Ui.Popup.NativeMethods.efl_ui_popup_timeout_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),time); Eina.Error.RaiseIfUnhandledException(); } /// get the current popup size. - /// virtual public Eina.Size2D GetPopupSize() { - var _ret_var = Efl.Ui.PopupNativeInherit.efl_ui_popup_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Popup.NativeMethods.efl_ui_popup_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the popup size. - /// - /// - virtual public void SetPopupSize( Eina.Size2D size) { + virtual public void SetPopupSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; - Efl.Ui.PopupNativeInherit.efl_ui_popup_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); + Efl.Ui.Popup.NativeMethods.efl_ui_popup_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_size); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -512,39 +611,36 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The logical root object for focus. /// The focus manager. - virtual public Efl.Ui.Focus.IManager FocusManagerCreate( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.IWidgetFocusManagerNativeInherit.efl_ui_widget_focus_manager_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods.efl_ui_widget_focus_manager_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable property /// true to set enable the layer false to disable it virtual public bool GetEnable() { - var _ret_var = Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_enable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_enable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable property /// true to set enable the layer false to disable it - /// - virtual public void SetEnable( bool v) { - Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_enable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), v); + virtual public void SetEnable(bool v) { + Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_enable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),v); Eina.Error.RaiseIfUnhandledException(); } /// Constructor for setting the behaviour of the layer /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically /// If true the focus will cycle in the layer, if false - /// - virtual public void GetBehaviour( out bool enable_on_visible, out bool cycle) { - Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out enable_on_visible, out cycle); + virtual public void GetBehaviour(out bool enable_on_visible, out bool cycle) { + Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out enable_on_visible, out cycle); Eina.Error.RaiseIfUnhandledException(); } /// Constructor for setting the behaviour of the layer /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically /// If true the focus will cycle in the layer, if false - /// - virtual public void SetBehaviour( bool enable_on_visible, bool cycle) { - Efl.Ui.Focus.ILayerNativeInherit.efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enable_on_visible, cycle); + virtual public void SetBehaviour(bool enable_on_visible, bool cycle) { + Efl.Ui.Focus.ILayerConcrete.NativeMethods.efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enable_on_visible, cycle); Eina.Error.RaiseIfUnhandledException(); } /// The element which is currently focused by this manager @@ -552,7 +648,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Currently focused element. virtual public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -560,9 +656,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. - /// - virtual public void SetManagerFocus( Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), focus); + virtual public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. @@ -570,7 +665,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The redirect manager. virtual public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -578,9 +673,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. - /// - virtual public void SetRedirect( Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), redirect); + virtual public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. @@ -588,7 +682,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the border objects. virtual public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -597,9 +691,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. - virtual public Eina.Iterator GetViewportElements( Eina.Rect viewport) { + virtual public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_viewport); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -608,7 +702,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. virtual public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -617,8 +711,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node - virtual public bool SetRoot( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -627,8 +721,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. - virtual public Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction); + virtual public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -638,8 +732,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. - virtual public Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, child, logical); + virtual public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -648,8 +742,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. - virtual public Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -658,8 +752,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. - virtual public Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child); + virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); @@ -670,24 +764,22 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Last object. virtual public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) - /// virtual public void ResetHistory() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) - /// virtual public void PopHistoryStack() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. @@ -695,57 +787,54 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. - /// - virtual public void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, entry); + virtual public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) - /// virtual public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) - /// virtual public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Get the current popup alignment. /// Alignment type public Efl.Ui.PopupAlign Align { get { return GetAlign(); } - set { SetAlign( value); } + set { SetAlign(value); } } /// Get the currently set timeout seconds. /// Timeout in seconds public double Timeout { get { return GetTimeout(); } - set { SetTimeout( value); } + set { SetTimeout(value); } } /// get the current popup size. -/// public Eina.Size2D PopupSize { get { return GetPopupSize(); } - set { SetPopupSize( value); } + set { SetPopupSize(value); } } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// Enable property /// true to set enable the layer false to disable it public bool Enable { get { return GetEnable(); } - set { SetEnable( value); } + set { SetEnable(value); } } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. @@ -753,7 +842,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } - set { SetManagerFocus( value); } + set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. @@ -761,7 +850,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } - set { SetRedirect( value); } + set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See @@ -776,950 +865,1509 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } - set { SetRoot( value); } + set { SetRoot(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Popup.efl_ui_popup_class_get(); } -} -public class PopupNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_popup_align_get_static_delegate == null) - efl_ui_popup_align_get_static_delegate = new efl_ui_popup_align_get_delegate(align_get); - if (methods.FirstOrDefault(m => m.Name == "GetAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_popup_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_align_get_static_delegate)}); - if (efl_ui_popup_align_set_static_delegate == null) - efl_ui_popup_align_set_static_delegate = new efl_ui_popup_align_set_delegate(align_set); - if (methods.FirstOrDefault(m => m.Name == "SetAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_popup_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_align_set_static_delegate)}); - if (efl_ui_popup_timeout_get_static_delegate == null) - efl_ui_popup_timeout_get_static_delegate = new efl_ui_popup_timeout_get_delegate(timeout_get); - if (methods.FirstOrDefault(m => m.Name == "GetTimeout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_popup_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_timeout_get_static_delegate)}); - if (efl_ui_popup_timeout_set_static_delegate == null) - efl_ui_popup_timeout_set_static_delegate = new efl_ui_popup_timeout_set_delegate(timeout_set); - if (methods.FirstOrDefault(m => m.Name == "SetTimeout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_popup_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_timeout_set_static_delegate)}); - if (efl_ui_popup_size_get_static_delegate == null) - efl_ui_popup_size_get_static_delegate = new efl_ui_popup_size_get_delegate(popup_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetPopupSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_popup_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_size_get_static_delegate)}); - if (efl_ui_popup_size_set_static_delegate == null) - efl_ui_popup_size_set_static_delegate = new efl_ui_popup_size_set_delegate(popup_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetPopupSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_popup_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_size_set_static_delegate)}); - if (efl_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_ui_widget_focus_manager_create_static_delegate == null) - efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); - if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate)}); - if (efl_ui_focus_layer_enable_get_static_delegate == null) - efl_ui_focus_layer_enable_get_static_delegate = new efl_ui_focus_layer_enable_get_delegate(enable_get); - if (methods.FirstOrDefault(m => m.Name == "GetEnable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_enable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_get_static_delegate)}); - if (efl_ui_focus_layer_enable_set_static_delegate == null) - efl_ui_focus_layer_enable_set_static_delegate = new efl_ui_focus_layer_enable_set_delegate(enable_set); - if (methods.FirstOrDefault(m => m.Name == "SetEnable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_enable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_set_static_delegate)}); - if (efl_ui_focus_layer_behaviour_get_static_delegate == null) - efl_ui_focus_layer_behaviour_get_static_delegate = new efl_ui_focus_layer_behaviour_get_delegate(behaviour_get); - if (methods.FirstOrDefault(m => m.Name == "GetBehaviour") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_behaviour_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_get_static_delegate)}); - if (efl_ui_focus_layer_behaviour_set_static_delegate == null) - efl_ui_focus_layer_behaviour_set_static_delegate = new efl_ui_focus_layer_behaviour_set_delegate(behaviour_set); - if (methods.FirstOrDefault(m => m.Name == "SetBehaviour") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_layer_behaviour_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_set_static_delegate)}); - if (efl_ui_focus_manager_focus_get_static_delegate == null) - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate)}); - if (efl_ui_focus_manager_focus_set_static_delegate == null) - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate)}); - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate)}); - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate)}); - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate)}); - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate)}); - if (efl_ui_focus_manager_root_get_static_delegate == null) - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate)}); - if (efl_ui_focus_manager_root_set_static_delegate == null) - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate)}); - if (efl_ui_focus_manager_move_static_delegate == null) - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate)}); - if (efl_ui_focus_manager_request_move_static_delegate == null) - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate)}); - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate)}); - if (efl_ui_focus_manager_fetch_static_delegate == null) - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate)}); - if (efl_ui_focus_manager_logical_end_static_delegate == null) - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate)}); - if (efl_ui_focus_manager_reset_history_static_delegate == null) - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate)}); - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate)}); - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Popup.efl_ui_popup_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Popup.efl_ui_popup_class_get(); - } - - - private delegate Efl.Ui.PopupAlign efl_ui_popup_align_get_delegate(System.IntPtr obj, System.IntPtr pd); - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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); - public delegate Efl.Ui.PopupAlign efl_ui_popup_align_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_popup_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_popup_align_get"); - private static Efl.Ui.PopupAlign align_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_popup_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.PopupAlign _ret_var = default(Efl.Ui.PopupAlign); - try { - _ret_var = ((Popup)wrapper).GetAlign(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_popup_align_get_static_delegate == null) + { + efl_ui_popup_align_get_static_delegate = new efl_ui_popup_align_get_delegate(align_get); } - return _ret_var; - } else { - return efl_ui_popup_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_popup_align_get_delegate efl_ui_popup_align_get_static_delegate; - - private delegate void efl_ui_popup_align_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign type); + if (methods.FirstOrDefault(m => m.Name == "GetAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_align_get_static_delegate) }); + } + if (efl_ui_popup_align_set_static_delegate == null) + { + efl_ui_popup_align_set_static_delegate = new efl_ui_popup_align_set_delegate(align_set); + } - public delegate void efl_ui_popup_align_set_api_delegate(System.IntPtr obj, Efl.Ui.PopupAlign type); - public static Efl.Eo.FunctionWrapper efl_ui_popup_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_popup_align_set"); - private static void align_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign type) - { - Eina.Log.Debug("function efl_ui_popup_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Popup)wrapper).SetAlign( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_popup_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); - } - } - private static efl_ui_popup_align_set_delegate efl_ui_popup_align_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_align_set_static_delegate) }); + } + if (efl_ui_popup_timeout_get_static_delegate == null) + { + efl_ui_popup_timeout_get_static_delegate = new efl_ui_popup_timeout_get_delegate(timeout_get); + } - private delegate double efl_ui_popup_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetTimeout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_timeout_get_static_delegate) }); + } + if (efl_ui_popup_timeout_set_static_delegate == null) + { + efl_ui_popup_timeout_set_static_delegate = new efl_ui_popup_timeout_set_delegate(timeout_set); + } - public delegate double efl_ui_popup_timeout_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_popup_timeout_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_popup_timeout_get"); - private static double timeout_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_popup_timeout_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Popup)wrapper).GetTimeout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetTimeout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_timeout_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_popup_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_popup_timeout_get_delegate efl_ui_popup_timeout_get_static_delegate; + if (efl_ui_popup_size_get_static_delegate == null) + { + efl_ui_popup_size_get_static_delegate = new efl_ui_popup_size_get_delegate(popup_size_get); + } - private delegate void efl_ui_popup_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double time); + if (methods.FirstOrDefault(m => m.Name == "GetPopupSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_size_get_static_delegate) }); + } + if (efl_ui_popup_size_set_static_delegate == null) + { + efl_ui_popup_size_set_static_delegate = new efl_ui_popup_size_set_delegate(popup_size_set); + } - public delegate void efl_ui_popup_timeout_set_api_delegate(System.IntPtr obj, double time); - public static Efl.Eo.FunctionWrapper efl_ui_popup_timeout_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_popup_timeout_set"); - private static void timeout_set(System.IntPtr obj, System.IntPtr pd, double time) - { - Eina.Log.Debug("function efl_ui_popup_timeout_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Popup)wrapper).SetTimeout( time); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_popup_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), time); - } - } - private static efl_ui_popup_timeout_set_delegate efl_ui_popup_timeout_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetPopupSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_size_set_static_delegate) }); + } + if (efl_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - private delegate Eina.Size2D.NativeStruct efl_ui_popup_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - public delegate Eina.Size2D.NativeStruct efl_ui_popup_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_popup_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_popup_size_get"); - private static Eina.Size2D.NativeStruct popup_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_popup_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Popup)wrapper).GetPopupSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_popup_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_popup_size_get_delegate efl_ui_popup_size_get_static_delegate; + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } - private delegate void efl_ui_popup_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + if (efl_ui_widget_focus_manager_create_static_delegate == null) + { + efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); + } - public delegate void efl_ui_popup_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - public static Efl.Eo.FunctionWrapper efl_ui_popup_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_popup_size_set"); - private static void popup_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_ui_popup_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_size = size; - - try { - ((Popup)wrapper).SetPopupSize( _in_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); } - } else { - efl_ui_popup_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - private static efl_ui_popup_size_set_delegate efl_ui_popup_size_set_static_delegate; + if (efl_ui_focus_layer_enable_get_static_delegate == null) + { + efl_ui_focus_layer_enable_get_static_delegate = new efl_ui_focus_layer_enable_get_delegate(enable_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetEnable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_get_static_delegate) }); + } + if (efl_ui_focus_layer_enable_set_static_delegate == null) + { + efl_ui_focus_layer_enable_set_static_delegate = new efl_ui_focus_layer_enable_set_delegate(enable_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Popup)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetEnable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + if (efl_ui_focus_layer_behaviour_get_static_delegate == null) + { + efl_ui_focus_layer_behaviour_get_static_delegate = new efl_ui_focus_layer_behaviour_get_delegate(behaviour_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + if (methods.FirstOrDefault(m => m.Name == "GetBehaviour") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_get_static_delegate) }); + } + if (efl_ui_focus_layer_behaviour_set_static_delegate == null) + { + efl_ui_focus_layer_behaviour_set_static_delegate = new efl_ui_focus_layer_behaviour_set_delegate(behaviour_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Popup)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBehaviour") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + if (efl_ui_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + } + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Popup)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + } + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_manager_create"); - private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((Popup)wrapper).FocusManagerCreate( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_layer_enable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + } + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_layer_enable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_enable_get"); - private static bool enable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_layer_enable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Popup)wrapper).GetEnable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_layer_enable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_layer_enable_get_delegate efl_ui_focus_layer_enable_get_static_delegate; + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + } - private delegate void efl_ui_focus_layer_enable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + } + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); + } - public delegate void efl_ui_focus_layer_enable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_enable_set"); - private static void enable_set(System.IntPtr obj, System.IntPtr pd, bool v) - { - Eina.Log.Debug("function efl_ui_focus_layer_enable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Popup)wrapper).SetEnable( v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_layer_enable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); - } - } - private static efl_ui_focus_layer_enable_set_delegate efl_ui_focus_layer_enable_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + } + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } - private delegate void efl_ui_focus_layer_behaviour_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + } + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } - public delegate void efl_ui_focus_layer_behaviour_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_behaviour_get"); - private static void behaviour_get(System.IntPtr obj, System.IntPtr pd, out bool enable_on_visible, out bool cycle) - { - Eina.Log.Debug("function efl_ui_focus_layer_behaviour_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - enable_on_visible = default(bool); cycle = default(bool); - try { - ((Popup)wrapper).GetBehaviour( out enable_on_visible, out cycle); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out enable_on_visible, out cycle); - } - } - private static efl_ui_focus_layer_behaviour_get_delegate efl_ui_focus_layer_behaviour_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + } + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + } - private delegate void efl_ui_focus_layer_behaviour_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + } + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); + } - public delegate void efl_ui_focus_layer_behaviour_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_layer_behaviour_set"); - private static void behaviour_set(System.IntPtr obj, System.IntPtr pd, bool enable_on_visible, bool cycle) - { - Eina.Log.Debug("function efl_ui_focus_layer_behaviour_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Popup)wrapper).SetBehaviour( enable_on_visible, cycle); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable_on_visible, cycle); - } - } - private static efl_ui_focus_layer_behaviour_set_delegate efl_ui_focus_layer_behaviour_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_get"); - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Popup)wrapper).GetManagerFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + } - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + } - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_set"); - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Popup)wrapper).SetManagerFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + } + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + } + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_get"); - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((Popup)wrapper).GetRedirect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Popup.efl_ui_popup_class_get(); + } - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + #pragma warning disable CA1707, SA1300, SA1600 + + private delegate Efl.Ui.PopupAlign efl_ui_popup_align_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_set"); - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Popup)wrapper).SetRedirect( redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + + public delegate Efl.Ui.PopupAlign efl_ui_popup_align_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_popup_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_align_get"); - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.PopupAlign align_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_popup_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.PopupAlign _ret_var = default(Efl.Ui.PopupAlign); + try + { + _ret_var = ((Popup)wrapper).GetAlign(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_border_elements_get"); - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Popup)wrapper).GetBorderElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_popup_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + private static efl_ui_popup_align_get_delegate efl_ui_popup_align_get_static_delegate; - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + private delegate void efl_ui_popup_align_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign type); + + public delegate void efl_ui_popup_align_set_api_delegate(System.IntPtr obj, Efl.Ui.PopupAlign type); - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_viewport_elements_get"); - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Popup)wrapper).GetViewportElements( _in_viewport); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_popup_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_align_set"); + + private static void align_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign type) + { + Eina.Log.Debug("function efl_ui_popup_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Popup)wrapper).SetAlign(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_popup_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); } - } - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + private static efl_ui_popup_align_set_delegate efl_ui_popup_align_set_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_ui_popup_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_popup_timeout_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_popup_timeout_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_timeout_get"); + + private static double timeout_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_popup_timeout_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Popup)wrapper).GetTimeout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_get"); - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Popup)wrapper).GetRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_ui_popup_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_popup_timeout_get_delegate efl_ui_popup_timeout_get_static_delegate; + + + private delegate void efl_ui_popup_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double time); + + + public delegate void efl_ui_popup_timeout_set_api_delegate(System.IntPtr obj, double time); + + public static Efl.Eo.FunctionWrapper efl_ui_popup_timeout_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_timeout_set"); + + private static void timeout_set(System.IntPtr obj, System.IntPtr pd, double time) + { + Eina.Log.Debug("function efl_ui_popup_timeout_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Popup)wrapper).SetTimeout(time); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_popup_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), time); + } + } + + private static efl_ui_popup_timeout_set_delegate efl_ui_popup_timeout_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_ui_popup_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_ui_popup_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_popup_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_size_get"); + + private static Eina.Size2D.NativeStruct popup_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_popup_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Popup)wrapper).GetPopupSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_popup_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + private static efl_ui_popup_size_get_delegate efl_ui_popup_size_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + + private delegate void efl_ui_popup_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + + public delegate void efl_ui_popup_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); + + public static Efl.Eo.FunctionWrapper efl_ui_popup_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_size_set"); + + private static void popup_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_ui_popup_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_size = size; + + try + { + ((Popup)wrapper).SetPopupSize(_in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_popup_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + } + } + + private static efl_ui_popup_size_set_delegate efl_ui_popup_size_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Popup)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_set"); - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Popup)wrapper).SetRoot( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_content_get_delegate efl_content_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Popup)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + + } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } } - } - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + private static efl_content_set_delegate efl_content_set_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Popup)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_move"); - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Popup)wrapper).Move( direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); + + private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((Popup)wrapper).FocusManagerCreate(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + + } + else + { + return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_layer_enable_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_layer_enable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_enable_get"); + + private static bool enable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_layer_enable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Popup)wrapper).GetEnable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_move"); - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Popup)wrapper).MoveRequest( direction, child, logical); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + else + { + return efl_ui_focus_layer_enable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + private static efl_ui_focus_layer_enable_get_delegate efl_ui_focus_layer_enable_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + + private delegate void efl_ui_focus_layer_enable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); + + public delegate void efl_ui_focus_layer_enable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_subchild"); - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Popup)wrapper).RequestSubchild( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_enable_set"); + + private static void enable_set(System.IntPtr obj, System.IntPtr pd, bool v) + { + Eina.Log.Debug("function efl_ui_focus_layer_enable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Popup)wrapper).SetEnable(v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_layer_enable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); } - } - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + private static efl_ui_focus_layer_enable_set_delegate efl_ui_focus_layer_enable_set_static_delegate; - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + + private delegate void efl_ui_focus_layer_behaviour_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); + + public delegate void efl_ui_focus_layer_behaviour_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_fetch"); - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try { - _ret_var = ((Popup)wrapper).Fetch( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_behaviour_get"); + + private static void behaviour_get(System.IntPtr obj, System.IntPtr pd, out bool enable_on_visible, out bool cycle) + { + Eina.Log.Debug("function efl_ui_focus_layer_behaviour_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + enable_on_visible = default(bool); cycle = default(bool); + try + { + ((Popup)wrapper).GetBehaviour(out enable_on_visible, out cycle); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out enable_on_visible, out cycle); } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); } - } - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + private static efl_ui_focus_layer_behaviour_get_delegate efl_ui_focus_layer_behaviour_get_static_delegate; - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_layer_behaviour_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); + + public delegate void efl_ui_focus_layer_behaviour_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_logical_end"); - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try { - _ret_var = ((Popup)wrapper).LogicalEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_behaviour_set"); + + private static void behaviour_set(System.IntPtr obj, System.IntPtr pd, bool enable_on_visible, bool cycle) + { + Eina.Log.Debug("function efl_ui_focus_layer_behaviour_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Popup)wrapper).SetBehaviour(enable_on_visible, cycle); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable_on_visible, cycle); } + } + + private static efl_ui_focus_layer_behaviour_set_delegate efl_ui_focus_layer_behaviour_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); + + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Popup)wrapper).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Popup)wrapper).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_reset_history"); - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Popup)wrapper).ResetHistory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + } } - } - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); + + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((Popup)wrapper).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); + + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Popup)wrapper).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_pop_history_stack"); - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Popup)wrapper).PopHistoryStack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); + } } - } - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Popup)wrapper).SetupOnFirstTouch( direction, entry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); + + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Popup)wrapper).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; + + } + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); + + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Popup)wrapper).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Popup)wrapper).FreezeDirtyLogic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } } - } - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Popup)wrapper).DirtyLogicUnfreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); + + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Popup)wrapper).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; + + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); + + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Popup)wrapper).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); + + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Popup)wrapper).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } + } + + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); + + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Popup)wrapper).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } + } + + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); + + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Popup)wrapper).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); + + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((Popup)wrapper).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); + + } + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } + } + + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); + + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((Popup)wrapper).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Popup)wrapper).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); + + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Popup)wrapper).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); + + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Popup)wrapper).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + } + } + + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); + + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Popup)wrapper).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Popup)wrapper).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } -namespace Efl { namespace Ui { + +} + +namespace Efl { + +namespace Ui { + /// Popup alignment type public enum PopupAlign { @@ -1736,4 +2384,8 @@ Top = 4, /// Popup aligned to bottom Bottom = 5, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_popup_part_backwall.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_popup_part_backwall.eo.cs index 3015bdb..06550d1 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_popup_part_backwall.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_popup_part_backwall.eo.cs @@ -3,65 +3,89 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI Popup internal part backwall class -[PopupPartBackwallNativeInherit] +[Efl.Ui.PopupPartBackwall.NativeMethods] public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (PopupPartBackwall)) - return Efl.Ui.PopupPartBackwallNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(PopupPartBackwall)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_popup_part_backwall_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public PopupPartBackwall(Efl.Object parent= null - ) : - base(efl_ui_popup_part_backwall_class_get(), typeof(PopupPartBackwall), parent) + ) : base(efl_ui_popup_part_backwall_class_get(), typeof(PopupPartBackwall), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected PopupPartBackwall(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected PopupPartBackwall(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected PopupPartBackwall(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Determine whether backwall is set to repeat events. /// Whether obj is to repeat events (true) or not (false). virtual public bool GetRepeatEvents() { - var _ret_var = Efl.Ui.PopupPartBackwallNativeInherit.efl_ui_popup_part_backwall_repeat_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.PopupPartBackwall.NativeMethods.efl_ui_popup_part_backwall_repeat_events_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -70,16 +94,15 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile /// /// If repeat is false, events occurring on obj will be processed only on it. /// Whether obj is to repeat events (true) or not (false). - /// - virtual public void SetRepeatEvents( bool repeat) { - Efl.Ui.PopupPartBackwallNativeInherit.efl_ui_popup_part_backwall_repeat_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), repeat); + virtual public void SetRepeatEvents(bool repeat) { + Efl.Ui.PopupPartBackwall.NativeMethods.efl_ui_popup_part_backwall_repeat_events_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),repeat); Eina.Error.RaiseIfUnhandledException(); } /// Get the mmaped file from where an object will fetch the real data (it must be an ). /// (Since EFL 1.22) /// The handle to the that will be used virtual public Eina.File GetMmap() { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -88,8 +111,8 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise - virtual public Eina.Error SetMmap( Eina.File f) { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public Eina.Error SetMmap(Eina.File f) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -98,7 +121,7 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile /// (Since EFL 1.22) /// The file path. virtual public System.String GetFile() { - var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -107,8 +130,8 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise - virtual public Eina.Error SetFile( System.String file) { - var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file); + virtual public Eina.Error SetFile(System.String file) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -119,7 +142,7 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. virtual public System.String GetKey() { - var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -127,16 +150,15 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. - /// - virtual public void SetKey( System.String key) { - Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public void SetKey(System.String key) { + Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. virtual public bool GetLoaded() { - var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -147,7 +169,7 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile /// (Since EFL 1.22) /// 0 on success, error code otherwise virtual public Eina.Error Load() { - var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -156,23 +178,22 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) - /// virtual public void Unload() { - Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Determine whether backwall is set to repeat events. /// Whether obj is to repeat events (true) or not (false). public bool RepeatEvents { get { return GetRepeatEvents(); } - set { SetRepeatEvents( value); } + set { SetRepeatEvents(value); } } /// Get the mmaped file from where an object will fetch the real data (it must be an ). /// (Since EFL 1.22) /// The handle to the that will be used public Eina.File Mmap { get { return GetMmap(); } - set { SetMmap( value); } + set { SetMmap(value); } } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. @@ -180,7 +201,7 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile /// The file path. public System.String File { get { return GetFile(); } - set { SetFile( value); } + set { SetFile(value); } } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -190,7 +211,7 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String Key { get { return GetKey(); } - set { SetKey( value); } + set { SetKey(value); } } /// Get the load state of the object. /// (Since EFL 1.22) @@ -202,339 +223,538 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IFile { return Efl.Ui.PopupPartBackwall.efl_ui_popup_part_backwall_class_get(); } -} -public class PopupPartBackwallNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_popup_part_backwall_repeat_events_get_static_delegate == null) - efl_ui_popup_part_backwall_repeat_events_get_static_delegate = new efl_ui_popup_part_backwall_repeat_events_get_delegate(repeat_events_get); - if (methods.FirstOrDefault(m => m.Name == "GetRepeatEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_popup_part_backwall_repeat_events_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_part_backwall_repeat_events_get_static_delegate)}); - if (efl_ui_popup_part_backwall_repeat_events_set_static_delegate == null) - efl_ui_popup_part_backwall_repeat_events_set_static_delegate = new efl_ui_popup_part_backwall_repeat_events_set_delegate(repeat_events_set); - if (methods.FirstOrDefault(m => m.Name == "SetRepeatEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_popup_part_backwall_repeat_events_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_part_backwall_repeat_events_set_static_delegate)}); - if (efl_file_mmap_get_static_delegate == null) - efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate)}); - if (efl_file_mmap_set_static_delegate == null) - efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate)}); - if (efl_file_get_static_delegate == null) - efl_file_get_static_delegate = new efl_file_get_delegate(file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate)}); - if (efl_file_set_static_delegate == null) - efl_file_set_static_delegate = new efl_file_set_delegate(file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate)}); - if (efl_file_key_get_static_delegate == null) - efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate)}); - if (efl_file_key_set_static_delegate == null) - efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate)}); - if (efl_file_loaded_get_static_delegate == null) - efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate)}); - if (efl_file_load_static_delegate == null) - efl_file_load_static_delegate = new efl_file_load_delegate(load); - if (methods.FirstOrDefault(m => m.Name == "Load") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate)}); - if (efl_file_unload_static_delegate == null) - efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); - if (methods.FirstOrDefault(m => m.Name == "Unload") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.PopupPartBackwall.efl_ui_popup_part_backwall_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.PopupPartBackwall.efl_ui_popup_part_backwall_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_popup_part_backwall_repeat_events_get_static_delegate == null) + { + efl_ui_popup_part_backwall_repeat_events_get_static_delegate = new efl_ui_popup_part_backwall_repeat_events_get_delegate(repeat_events_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRepeatEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_part_backwall_repeat_events_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_part_backwall_repeat_events_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_popup_part_backwall_repeat_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_popup_part_backwall_repeat_events_set_static_delegate == null) + { + efl_ui_popup_part_backwall_repeat_events_set_static_delegate = new efl_ui_popup_part_backwall_repeat_events_set_delegate(repeat_events_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRepeatEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_part_backwall_repeat_events_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_part_backwall_repeat_events_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_popup_part_backwall_repeat_events_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_popup_part_backwall_repeat_events_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_popup_part_backwall_repeat_events_get"); - private static bool repeat_events_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_popup_part_backwall_repeat_events_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((PopupPartBackwall)wrapper).GetRepeatEvents(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_mmap_get_static_delegate == null) + { + efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); } - return _ret_var; - } else { - return efl_ui_popup_part_backwall_repeat_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_popup_part_backwall_repeat_events_get_delegate efl_ui_popup_part_backwall_repeat_events_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) }); + } - private delegate void efl_ui_popup_part_backwall_repeat_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat); + if (efl_file_mmap_set_static_delegate == null) + { + efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) }); + } - public delegate void efl_ui_popup_part_backwall_repeat_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat); - public static Efl.Eo.FunctionWrapper efl_ui_popup_part_backwall_repeat_events_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_popup_part_backwall_repeat_events_set"); - private static void repeat_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat) - { - Eina.Log.Debug("function efl_ui_popup_part_backwall_repeat_events_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((PopupPartBackwall)wrapper).SetRepeatEvents( repeat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_popup_part_backwall_repeat_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat); - } - } - private static efl_ui_popup_part_backwall_repeat_events_set_delegate efl_ui_popup_part_backwall_repeat_events_set_static_delegate; + if (efl_file_get_static_delegate == null) + { + efl_file_get_static_delegate = new efl_file_get_delegate(file_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) }); + } - private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_set_static_delegate == null) + { + efl_file_set_static_delegate = new efl_file_set_delegate(file_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) }); + } - public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_get"); - private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_mmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.File _ret_var = default(Eina.File); - try { - _ret_var = ((PopupPartBackwall)wrapper).GetMmap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_key_get_static_delegate == null) + { + efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); } - return _ret_var; - } else { - return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) }); + } - private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + if (efl_file_key_set_static_delegate == null) + { + efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) }); + } - public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); - public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_set"); - private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) - { - Eina.Log.Debug("function efl_file_mmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((PopupPartBackwall)wrapper).SetMmap( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_loaded_get_static_delegate == null) + { + efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); } - return _ret_var; - } else { - return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_load_static_delegate == null) + { + efl_file_load_static_delegate = new efl_file_load_delegate(load); + } + if (methods.FirstOrDefault(m => m.Name == "Load") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_get"); - private static System.String file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((PopupPartBackwall)wrapper).GetFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_unload_static_delegate == null) + { + efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); } - return _ret_var; - } else { - return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (methods.FirstOrDefault(m => m.Name == "Unload") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; } - } - private static efl_file_get_delegate efl_file_get_static_delegate; + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.PopupPartBackwall.efl_ui_popup_part_backwall_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_popup_part_backwall_repeat_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_popup_part_backwall_repeat_events_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_popup_part_backwall_repeat_events_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_part_backwall_repeat_events_get"); + + private static bool repeat_events_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_popup_part_backwall_repeat_events_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((PopupPartBackwall)wrapper).GetRepeatEvents(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + } + else + { + return efl_ui_popup_part_backwall_repeat_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_ui_popup_part_backwall_repeat_events_get_delegate efl_ui_popup_part_backwall_repeat_events_get_static_delegate; + + + private delegate void efl_ui_popup_part_backwall_repeat_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat); + + + public delegate void efl_ui_popup_part_backwall_repeat_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat); + + public static Efl.Eo.FunctionWrapper efl_ui_popup_part_backwall_repeat_events_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_part_backwall_repeat_events_set"); + + private static void repeat_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat) + { + Eina.Log.Debug("function efl_ui_popup_part_backwall_repeat_events_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((PopupPartBackwall)wrapper).SetRepeatEvents(repeat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_set"); - private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) - { - Eina.Log.Debug("function efl_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((PopupPartBackwall)wrapper).SetFile( file); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_ui_popup_part_backwall_repeat_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat); } - return _ret_var; - } else { - return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); } - } - private static efl_file_set_delegate efl_file_set_static_delegate; + private static efl_ui_popup_part_backwall_repeat_events_set_delegate efl_ui_popup_part_backwall_repeat_events_set_static_delegate; + + + private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_get"); + + private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_mmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.File _ret_var = default(Eina.File); + try + { + _ret_var = ((PopupPartBackwall)wrapper).GetMmap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + + + private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + + + public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_set"); + + private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) + { + Eina.Log.Debug("function efl_file_mmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((PopupPartBackwall)wrapper).SetMmap(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((PopupPartBackwall)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } } - } - private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_get"); + + private static System.String file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((PopupPartBackwall)wrapper).GetFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + return _ret_var; + } + else + { + return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_file_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((PopupPartBackwall)wrapper).SetKey( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + private static efl_file_get_delegate efl_file_get_static_delegate; + + + private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + + public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_set"); + + private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) + { + Eina.Log.Debug("function efl_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((PopupPartBackwall)wrapper).SetFile(file); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); + } } - } - private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + private static efl_file_set_delegate efl_file_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_get"); + + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((PopupPartBackwall)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_loaded_get"); - private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_loaded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((PopupPartBackwall)wrapper).GetLoaded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + + + private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_file_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((PopupPartBackwall)wrapper).SetKey(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); } + } + + private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_loaded_get"); + + private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_loaded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((PopupPartBackwall)wrapper).GetLoaded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + + + private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_load"); + + private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_load was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((PopupPartBackwall)wrapper).Load(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_load"); - private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_load was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((PopupPartBackwall)wrapper).Load(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_file_load_delegate efl_file_load_static_delegate; + + + private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_file_unload_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_unload"); + + private static void unload(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_unload was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((PopupPartBackwall)wrapper).Unload(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_file_load_delegate efl_file_load_static_delegate; + private static efl_file_unload_delegate efl_file_unload_static_delegate; - private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_file_unload_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_unload"); - private static void unload(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_unload was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((PopupPartBackwall)wrapper).Unload(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_unload_delegate efl_file_unload_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar.eo.cs index 54e61ea..2ef1482 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar.eo.cs @@ -3,209 +3,253 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary progressbar class -[ProgressbarNativeInherit] +[Efl.Ui.Progressbar.NativeMethods] public class Progressbar : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IContent,Efl.IText,Efl.ITextMarkup,Efl.Access.IValue,Efl.Ui.IDirection,Efl.Ui.IFormat,Efl.Ui.IRangeDisplay { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Progressbar)) - return Efl.Ui.ProgressbarNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Progressbar)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_progressbar_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Progressbar(Efl.Object parent - , System.String style = null) : - base(efl_ui_progressbar_class_get(), typeof(Progressbar), parent) + , System.String style = null) : base(efl_ui_progressbar_class_get(), typeof(Progressbar), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Progressbar(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Progressbar(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Progressbar(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ChangedEvtKey = new object(); + /// Called when progressbar changed public event EventHandler ChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PROGRESSBAR_EVENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) { - eventHandlers.AddHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PROGRESSBAR_EVENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedEvt. - public void On_ChangedEvt(EventArgs e) + public void OnChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedEvtKey]; + var key = "_EFL_UI_PROGRESSBAR_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedEvt_delegate; - private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ContentChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Control whether a given progress bar widget is at "pulsing mode" or not. /// By default progress bars display values from low to high boundaries. There are situations however in which the progress of a given task is unknown. In these cases, you can set a progress bar widget to a "pulsing state" to give the user an idea that some computation is being done without showing the precise progress rate. In the default theme, it will animate the bar with content, switching constantly between filling it and back to non-filled in a loop. To start and stop this pulsing animation you need to explicitly call efl_ui_progressbar_pulse_set(). /// true to put obj in pulsing mode, false to put it back to its default one virtual public bool GetPulseMode() { - var _ret_var = Efl.Ui.ProgressbarNativeInherit.efl_ui_progressbar_pulse_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Progressbar.NativeMethods.efl_ui_progressbar_pulse_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control whether a given progress bar widget is at "pulsing mode" or not. /// By default progress bars display values from low to high boundaries. There are situations however in which the progress of a given task is unknown. In these cases, you can set a progress bar widget to a "pulsing state" to give the user an idea that some computation is being done without showing the precise progress rate. In the default theme, it will animate the bar with content, switching constantly between filling it and back to non-filled in a loop. To start and stop this pulsing animation you need to explicitly call efl_ui_progressbar_pulse_set(). /// true to put obj in pulsing mode, false to put it back to its default one - /// - virtual public void SetPulseMode( bool pulse) { - Efl.Ui.ProgressbarNativeInherit.efl_ui_progressbar_pulse_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pulse); + virtual public void SetPulseMode(bool pulse) { + Efl.Ui.Progressbar.NativeMethods.efl_ui_progressbar_pulse_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pulse); Eina.Error.RaiseIfUnhandledException(); } /// Get the pulsing state on a given progressbar widget. /// true, to start the pulsing animation, false to stop it virtual public bool GetPulse() { - var _ret_var = Efl.Ui.ProgressbarNativeInherit.efl_ui_progressbar_pulse_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Progressbar.NativeMethods.efl_ui_progressbar_pulse_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Start/stop a given progress bar "pulsing" animation, if its under that mode /// Note: This call won't do anything if obj is not under "pulsing mode". /// true, to start the pulsing animation, false to stop it - /// - virtual public void SetPulse( bool state) { - Efl.Ui.ProgressbarNativeInherit.efl_ui_progressbar_pulse_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), state); + virtual public void SetPulse(bool state) { + Efl.Ui.Progressbar.NativeMethods.efl_ui_progressbar_pulse_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),state); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -216,7 +260,7 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -224,39 +268,36 @@ private static object ContentChangedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Markup property /// The markup-text representation set to this text. virtual public System.String GetMarkup() { - var _ret_var = Efl.ITextMarkupNativeInherit.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Markup property /// The markup-text representation set to this text. - /// - virtual public void SetMarkup( System.String markup) { - Efl.ITextMarkupNativeInherit.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), markup); + virtual public void SetMarkup(System.String markup) { + Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),markup); Eina.Error.RaiseIfUnhandledException(); } /// Gets value displayed by a accessible widget. /// Value of widget casted to floating point number. /// string describing value in given context eg. small, enough - /// - virtual public void GetValueAndText( out double value, out System.String text) { - Efl.Access.IValueNativeInherit.efl_access_value_and_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out value, out text); + virtual public void GetValueAndText(out double value, out System.String text) { + Efl.Access.IValueConcrete.NativeMethods.efl_access_value_and_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out value, out text); Eina.Error.RaiseIfUnhandledException(); } /// Value and text property /// Value of widget casted to floating point number. /// string describing value in given context eg. small, enough /// true if setting widgets value has succeeded, otherwise false . - virtual public bool SetValueAndText( double value, System.String text) { - var _ret_var = Efl.Access.IValueNativeInherit.efl_access_value_and_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value, text); + virtual public bool SetValueAndText(double value, System.String text) { + var _ret_var = Efl.Access.IValueConcrete.NativeMethods.efl_access_value_and_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value, text); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -264,15 +305,14 @@ private static object ContentChangedEvtKey = new object(); /// Lower limit of the range /// Upper limit of the range /// Description of the range - /// - virtual public void GetRange( out double lower_limit, out double upper_limit, out System.String description) { - Efl.Access.IValueNativeInherit.efl_access_value_range_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out lower_limit, out upper_limit, out description); + virtual public void GetRange(out double lower_limit, out double upper_limit, out System.String description) { + Efl.Access.IValueConcrete.NativeMethods.efl_access_value_range_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out lower_limit, out upper_limit, out description); Eina.Error.RaiseIfUnhandledException(); } /// Gets an minimal incrementation value /// Minimal incrementation value virtual public double GetIncrement() { - var _ret_var = Efl.Access.IValueNativeInherit.efl_access_value_increment_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IValueConcrete.NativeMethods.efl_access_value_increment_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -282,7 +322,7 @@ private static object ContentChangedEvtKey = new object(); /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. virtual public Efl.Ui.Dir GetDirection() { - var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -291,17 +331,15 @@ private static object ContentChangedEvtKey = new object(); /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. - /// - virtual public void SetDirection( Efl.Ui.Dir dir) { - Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetDirection(Efl.Ui.Dir dir) { + Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// Set the format function pointer to format the string. /// The format function callback - /// - virtual public void SetFormatCb( Efl.Ui.FormatFuncCb func) { + virtual public void SetFormatCb(Efl.Ui.FormatFuncCb func) { GCHandle func_handle = GCHandle.Alloc(func); - Efl.Ui.IFormatNativeInherit.efl_ui_format_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), Efl.Ui.FormatFuncCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), Efl.Ui.FormatFuncCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); } /// Control the format string for a given units label @@ -310,7 +348,7 @@ private static object ContentChangedEvtKey = new object(); /// Note: The default format string is an integer percentage, as in $"%.0f %%". /// The format string for obj's units label. virtual public System.String GetFormatString() { - var _ret_var = Efl.Ui.IFormatNativeInherit.efl_ui_format_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -319,9 +357,8 @@ private static object ContentChangedEvtKey = new object(); /// /// Note: The default format string is an integer percentage, as in $"%.0f %%". /// The format string for obj's units label. - /// - virtual public void SetFormatString( System.String units) { - Efl.Ui.IFormatNativeInherit.efl_ui_format_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), units); + virtual public void SetFormatString(System.String units) { + Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),units); Eina.Error.RaiseIfUnhandledException(); } /// Control the range value (in percentage) on a given range widget @@ -330,7 +367,7 @@ private static object ContentChangedEvtKey = new object(); /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) virtual public double GetRangeValue() { - var _ret_var = Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -339,18 +376,16 @@ private static object ContentChangedEvtKey = new object(); /// /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) - /// - virtual public void SetRangeValue( double val) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetRangeValue(double val) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Get the minimum and maximum values of the given range widget. /// Note: If only one value is needed, the other pointer can be passed as null. /// The minimum value. /// The maximum value. - /// - virtual public void GetRangeMinMax( out double min, out double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out min, out max); + virtual public void GetRangeMinMax(out double min, out double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out min, out max); Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. @@ -363,9 +398,8 @@ private static object ContentChangedEvtKey = new object(); /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. - /// - virtual public void SetRangeMinMax( double min, double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), min, max); + virtual public void SetRangeMinMax(double min, double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),min, max); Eina.Error.RaiseIfUnhandledException(); } /// Control whether a given progress bar widget is at "pulsing mode" or not. @@ -373,26 +407,27 @@ private static object ContentChangedEvtKey = new object(); /// true to put obj in pulsing mode, false to put it back to its default one public bool PulseMode { get { return GetPulseMode(); } - set { SetPulseMode( value); } + set { SetPulseMode(value); } } /// Get the pulsing state on a given progressbar widget. /// true, to start the pulsing animation, false to stop it public bool Pulse { get { return GetPulse(); } - set { SetPulse( value); } + set { SetPulse(value); } } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// Markup property /// The markup-text representation set to this text. public System.String Markup { get { return GetMarkup(); } - set { SetMarkup( value); } + set { SetMarkup(value); } } /// Gets an minimal incrementation value /// Minimal incrementation value @@ -406,12 +441,12 @@ private static object ContentChangedEvtKey = new object(); /// Direction of the widget. public Efl.Ui.Dir Direction { get { return GetDirection(); } - set { SetDirection( value); } + set { SetDirection(value); } } /// Set the format function pointer to format the string. /// The format function callback public Efl.Ui.FormatFuncCb FormatCb { - set { SetFormatCb( value); } + set { SetFormatCb(value); } } /// Control the format string for a given units label /// If NULL is passed to format, it will hide obj's units area completely. If not, it'll set the <b>format string</b> for the units label text. The units label is provided as a floating point value, so the units text can display at most one floating point value. Note that the units label is optional. Use a format string such as "%1.2f meters" for example. @@ -420,7 +455,7 @@ private static object ContentChangedEvtKey = new object(); /// The format string for obj's units label. public System.String FormatString { get { return GetFormatString(); } - set { SetFormatString( value); } + set { SetFormatString(value); } } /// Control the range value (in percentage) on a given range widget /// Use this call to set range levels. @@ -429,718 +464,1138 @@ private static object ContentChangedEvtKey = new object(); /// The range value (must be between $0.0 and 1.0) public double RangeValue { get { return GetRangeValue(); } - set { SetRangeValue( value); } + set { SetRangeValue(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Progressbar.efl_ui_progressbar_class_get(); } -} -public class ProgressbarNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_progressbar_pulse_mode_get_static_delegate == null) - efl_ui_progressbar_pulse_mode_get_static_delegate = new efl_ui_progressbar_pulse_mode_get_delegate(pulse_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetPulseMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_progressbar_pulse_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_progressbar_pulse_mode_get_static_delegate)}); - if (efl_ui_progressbar_pulse_mode_set_static_delegate == null) - efl_ui_progressbar_pulse_mode_set_static_delegate = new efl_ui_progressbar_pulse_mode_set_delegate(pulse_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetPulseMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_progressbar_pulse_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_progressbar_pulse_mode_set_static_delegate)}); - if (efl_ui_progressbar_pulse_get_static_delegate == null) - efl_ui_progressbar_pulse_get_static_delegate = new efl_ui_progressbar_pulse_get_delegate(pulse_get); - if (methods.FirstOrDefault(m => m.Name == "GetPulse") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_progressbar_pulse_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_progressbar_pulse_get_static_delegate)}); - if (efl_ui_progressbar_pulse_set_static_delegate == null) - efl_ui_progressbar_pulse_set_static_delegate = new efl_ui_progressbar_pulse_set_delegate(pulse_set); - if (methods.FirstOrDefault(m => m.Name == "SetPulse") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_progressbar_pulse_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_progressbar_pulse_set_static_delegate)}); - if (efl_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_text_markup_get_static_delegate == null) - efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); - if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate)}); - if (efl_text_markup_set_static_delegate == null) - efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); - if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate)}); - if (efl_access_value_and_text_get_static_delegate == null) - efl_access_value_and_text_get_static_delegate = new efl_access_value_and_text_get_delegate(value_and_text_get); - if (methods.FirstOrDefault(m => m.Name == "GetValueAndText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_and_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_get_static_delegate)}); - if (efl_access_value_and_text_set_static_delegate == null) - efl_access_value_and_text_set_static_delegate = new efl_access_value_and_text_set_delegate(value_and_text_set); - if (methods.FirstOrDefault(m => m.Name == "SetValueAndText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_and_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_set_static_delegate)}); - if (efl_access_value_range_get_static_delegate == null) - efl_access_value_range_get_static_delegate = new efl_access_value_range_get_delegate(range_get); - if (methods.FirstOrDefault(m => m.Name == "GetRange") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_range_get_static_delegate)}); - if (efl_access_value_increment_get_static_delegate == null) - efl_access_value_increment_get_static_delegate = new efl_access_value_increment_get_delegate(increment_get); - if (methods.FirstOrDefault(m => m.Name == "GetIncrement") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_increment_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_increment_get_static_delegate)}); - if (efl_ui_direction_get_static_delegate == null) - efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)}); - if (efl_ui_direction_set_static_delegate == null) - efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)}); - if (efl_ui_format_cb_set_static_delegate == null) - efl_ui_format_cb_set_static_delegate = new efl_ui_format_cb_set_delegate(format_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormatCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_cb_set_static_delegate)}); - if (efl_ui_format_string_get_static_delegate == null) - efl_ui_format_string_get_static_delegate = new efl_ui_format_string_get_delegate(format_string_get); - if (methods.FirstOrDefault(m => m.Name == "GetFormatString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_get_static_delegate)}); - if (efl_ui_format_string_set_static_delegate == null) - efl_ui_format_string_set_static_delegate = new efl_ui_format_string_set_delegate(format_string_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormatString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_set_static_delegate)}); - if (efl_ui_range_value_get_static_delegate == null) - efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate)}); - if (efl_ui_range_value_set_static_delegate == null) - efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate)}); - if (efl_ui_range_min_max_get_static_delegate == null) - efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate)}); - if (efl_ui_range_min_max_set_static_delegate == null) - efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Progressbar.efl_ui_progressbar_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Progressbar.efl_ui_progressbar_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_progressbar_pulse_mode_get_static_delegate == null) + { + efl_ui_progressbar_pulse_mode_get_static_delegate = new efl_ui_progressbar_pulse_mode_get_delegate(pulse_mode_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPulseMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_progressbar_pulse_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_progressbar_pulse_mode_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_progressbar_pulse_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_progressbar_pulse_mode_set_static_delegate == null) + { + efl_ui_progressbar_pulse_mode_set_static_delegate = new efl_ui_progressbar_pulse_mode_set_delegate(pulse_mode_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPulseMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_progressbar_pulse_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_progressbar_pulse_mode_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_progressbar_pulse_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_progressbar_pulse_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_progressbar_pulse_mode_get"); - private static bool pulse_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_progressbar_pulse_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Progressbar)wrapper).GetPulseMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_progressbar_pulse_get_static_delegate == null) + { + efl_ui_progressbar_pulse_get_static_delegate = new efl_ui_progressbar_pulse_get_delegate(pulse_get); } - return _ret_var; - } else { - return efl_ui_progressbar_pulse_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_progressbar_pulse_mode_get_delegate efl_ui_progressbar_pulse_mode_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPulse") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_progressbar_pulse_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_progressbar_pulse_get_static_delegate) }); + } - private delegate void efl_ui_progressbar_pulse_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool pulse); + if (efl_ui_progressbar_pulse_set_static_delegate == null) + { + efl_ui_progressbar_pulse_set_static_delegate = new efl_ui_progressbar_pulse_set_delegate(pulse_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPulse") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_progressbar_pulse_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_progressbar_pulse_set_static_delegate) }); + } - public delegate void efl_ui_progressbar_pulse_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool pulse); - public static Efl.Eo.FunctionWrapper efl_ui_progressbar_pulse_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_progressbar_pulse_mode_set"); - private static void pulse_mode_set(System.IntPtr obj, System.IntPtr pd, bool pulse) - { - Eina.Log.Debug("function efl_ui_progressbar_pulse_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Progressbar)wrapper).SetPulseMode( pulse); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_progressbar_pulse_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pulse); - } - } - private static efl_ui_progressbar_pulse_mode_set_delegate efl_ui_progressbar_pulse_mode_set_static_delegate; + if (efl_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_progressbar_pulse_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_progressbar_pulse_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_progressbar_pulse_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_progressbar_pulse_get"); - private static bool pulse_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_progressbar_pulse_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Progressbar)wrapper).GetPulse(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); } - return _ret_var; - } else { - return efl_ui_progressbar_pulse_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_progressbar_pulse_get_delegate efl_ui_progressbar_pulse_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } - private delegate void efl_ui_progressbar_pulse_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool state); + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } - public delegate void efl_ui_progressbar_pulse_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool state); - public static Efl.Eo.FunctionWrapper efl_ui_progressbar_pulse_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_progressbar_pulse_set"); - private static void pulse_set(System.IntPtr obj, System.IntPtr pd, bool state) - { - Eina.Log.Debug("function efl_ui_progressbar_pulse_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Progressbar)wrapper).SetPulse( state); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_progressbar_pulse_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state); - } - } - private static efl_ui_progressbar_pulse_set_delegate efl_ui_progressbar_pulse_set_static_delegate; + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_markup_get_static_delegate == null) + { + efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Progressbar)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_markup_set_static_delegate == null) + { + efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + if (efl_access_value_and_text_get_static_delegate == null) + { + efl_access_value_and_text_get_static_delegate = new efl_access_value_and_text_get_delegate(value_and_text_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetValueAndText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_and_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Progressbar)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_access_value_and_text_set_static_delegate == null) + { + efl_access_value_and_text_set_static_delegate = new efl_access_value_and_text_set_delegate(value_and_text_set); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetValueAndText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_and_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_access_value_range_get_static_delegate == null) + { + efl_access_value_range_get_static_delegate = new efl_access_value_range_get_delegate(range_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_range_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Progressbar)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_access_value_increment_get_static_delegate == null) + { + efl_access_value_increment_get_static_delegate = new efl_access_value_increment_get_delegate(increment_get); } - return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetIncrement") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_increment_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_increment_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_direction_get_static_delegate == null) + { + efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Progressbar)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_direction_set_static_delegate == null) + { + efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); } - return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate) }); + } - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + if (efl_ui_format_cb_set_static_delegate == null) + { + efl_ui_format_cb_set_static_delegate = new efl_ui_format_cb_set_delegate(format_cb_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFormatCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_cb_set_static_delegate) }); + } - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Progressbar)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); - } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + if (efl_ui_format_string_get_static_delegate == null) + { + efl_ui_format_string_get_static_delegate = new efl_ui_format_string_get_delegate(format_string_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFormatString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_format_string_set_static_delegate == null) + { + efl_ui_format_string_set_static_delegate = new efl_ui_format_string_set_delegate(format_string_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFormatString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_get"); - private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_markup_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Progressbar)wrapper).GetMarkup(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_range_value_get_static_delegate == null) + { + efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); } - return _ret_var; - } else { - return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate) }); + } - private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + if (efl_ui_range_value_set_static_delegate == null) + { + efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate) }); + } - public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_markup_set"); - private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Progressbar)wrapper).SetMarkup( markup); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); - } - } - private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + if (efl_ui_range_min_max_get_static_delegate == null) + { + efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate) }); + } - private delegate void efl_access_value_and_text_get_delegate(System.IntPtr obj, System.IntPtr pd, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); + if (efl_ui_range_min_max_set_static_delegate == null) + { + efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Progressbar.efl_ui_progressbar_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_progressbar_pulse_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_progressbar_pulse_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_progressbar_pulse_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_progressbar_pulse_mode_get"); + + private static bool pulse_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_progressbar_pulse_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Progressbar)wrapper).GetPulseMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_access_value_and_text_get_api_delegate(System.IntPtr obj, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); - public static Efl.Eo.FunctionWrapper efl_access_value_and_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_and_text_get"); - private static void value_and_text_get(System.IntPtr obj, System.IntPtr pd, out double value, out System.String text) - { - Eina.Log.Debug("function efl_access_value_and_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - value = default(double); System.String _out_text = default(System.String); - - try { - ((Progressbar)wrapper).GetValueAndText( out value, out _out_text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - text = _out_text; - } else { - efl_access_value_and_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out value, out text); + else + { + return efl_ui_progressbar_pulse_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_value_and_text_get_delegate efl_access_value_and_text_get_static_delegate; + private static efl_ui_progressbar_pulse_mode_get_delegate efl_ui_progressbar_pulse_mode_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_value_and_text_set_delegate(System.IntPtr obj, System.IntPtr pd, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + private delegate void efl_ui_progressbar_pulse_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool pulse); + + public delegate void efl_ui_progressbar_pulse_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool pulse); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_value_and_text_set_api_delegate(System.IntPtr obj, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_access_value_and_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_and_text_set"); - private static bool value_and_text_set(System.IntPtr obj, System.IntPtr pd, double value, System.String text) - { - Eina.Log.Debug("function efl_access_value_and_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Progressbar)wrapper).SetValueAndText( value, text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_progressbar_pulse_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_progressbar_pulse_mode_set"); + + private static void pulse_mode_set(System.IntPtr obj, System.IntPtr pd, bool pulse) + { + Eina.Log.Debug("function efl_ui_progressbar_pulse_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Progressbar)wrapper).SetPulseMode(pulse); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_progressbar_pulse_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pulse); } - return _ret_var; - } else { - return efl_access_value_and_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value, text); } - } - private static efl_access_value_and_text_set_delegate efl_access_value_and_text_set_static_delegate; + private static efl_ui_progressbar_pulse_mode_set_delegate efl_ui_progressbar_pulse_mode_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_progressbar_pulse_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_progressbar_pulse_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_progressbar_pulse_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_progressbar_pulse_get"); + + private static bool pulse_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_progressbar_pulse_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Progressbar)wrapper).GetPulse(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_progressbar_pulse_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_access_value_range_get_delegate(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); + private static efl_ui_progressbar_pulse_get_delegate efl_ui_progressbar_pulse_get_static_delegate; + + private delegate void efl_ui_progressbar_pulse_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool state); - public delegate void efl_access_value_range_get_api_delegate(System.IntPtr obj, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); - public static Efl.Eo.FunctionWrapper efl_access_value_range_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_range_get"); - private static void range_get(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, out System.String description) - { - Eina.Log.Debug("function efl_access_value_range_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - lower_limit = default(double); upper_limit = default(double); System.String _out_description = default(System.String); + + public delegate void efl_ui_progressbar_pulse_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool state); + + public static Efl.Eo.FunctionWrapper efl_ui_progressbar_pulse_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_progressbar_pulse_set"); + + private static void pulse_set(System.IntPtr obj, System.IntPtr pd, bool state) + { + Eina.Log.Debug("function efl_ui_progressbar_pulse_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { - try { - ((Progressbar)wrapper).GetRange( out lower_limit, out upper_limit, out _out_description); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((Progressbar)wrapper).SetPulse(state); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_progressbar_pulse_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state); } - description = _out_description; - } else { - efl_access_value_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out lower_limit, out upper_limit, out description); } - } - private static efl_access_value_range_get_delegate efl_access_value_range_get_static_delegate; + private static efl_ui_progressbar_pulse_set_delegate efl_ui_progressbar_pulse_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Progressbar)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate double efl_access_value_increment_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_content_get_delegate efl_content_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Progressbar)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_access_value_increment_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_value_increment_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_increment_get"); - private static double increment_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_value_increment_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Progressbar)wrapper).GetIncrement(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + return _ret_var; + + } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Progressbar)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Progressbar)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_value_increment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_value_increment_get_delegate efl_access_value_increment_get_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_get"); - private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); - try { - _ret_var = ((Progressbar)wrapper).GetDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Progressbar)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + } + } + + private static efl_text_set_delegate efl_text_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); + + private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_markup_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Progressbar)wrapper).GetMarkup(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; - private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_set"); - private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Progressbar)wrapper).SetDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); + + private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Progressbar)wrapper).SetMarkup(markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); + } } - } - private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; + private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; - private delegate void efl_ui_format_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); + + private delegate void efl_access_value_and_text_get_delegate(System.IntPtr obj, System.IntPtr pd, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); + + public delegate void efl_access_value_and_text_get_api_delegate(System.IntPtr obj, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); - public delegate void efl_ui_format_cb_set_api_delegate(System.IntPtr obj, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_ui_format_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_cb_set"); - private static void format_cb_set(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_ui_format_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.FormatFuncCbWrapper func_wrapper = new Efl.Ui.FormatFuncCbWrapper(func, func_data, func_free_cb); - - try { - ((Progressbar)wrapper).SetFormatCb( func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_format_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + public static Efl.Eo.FunctionWrapper efl_access_value_and_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_and_text_get"); + + private static void value_and_text_get(System.IntPtr obj, System.IntPtr pd, out double value, out System.String text) + { + Eina.Log.Debug("function efl_access_value_and_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + value = default(double); System.String _out_text = default(System.String); + + try + { + ((Progressbar)wrapper).GetValueAndText(out value, out _out_text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + text = _out_text; + + } + else + { + efl_access_value_and_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out value, out text); + } } - } - private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate; + private static efl_access_value_and_text_get_delegate efl_access_value_and_text_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_value_and_text_set_delegate(System.IntPtr obj, System.IntPtr pd, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_value_and_text_set_api_delegate(System.IntPtr obj, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_access_value_and_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_and_text_set"); + + private static bool value_and_text_set(System.IntPtr obj, System.IntPtr pd, double value, System.String text) + { + Eina.Log.Debug("function efl_access_value_and_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Progressbar)wrapper).SetValueAndText(value, text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_format_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_access_value_and_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value, text); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_format_string_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_format_string_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_string_get"); - private static System.String format_string_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_format_string_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Progressbar)wrapper).GetFormatString(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_access_value_and_text_set_delegate efl_access_value_and_text_set_static_delegate; + + + private delegate void efl_access_value_range_get_delegate(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); + + + public delegate void efl_access_value_range_get_api_delegate(System.IntPtr obj, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); + + public static Efl.Eo.FunctionWrapper efl_access_value_range_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_range_get"); + + private static void range_get(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, out System.String description) + { + Eina.Log.Debug("function efl_access_value_range_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + lower_limit = default(double); upper_limit = default(double); System.String _out_description = default(System.String); + + try + { + ((Progressbar)wrapper).GetRange(out lower_limit, out upper_limit, out _out_description); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + description = _out_description; + + } + else + { + efl_access_value_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out lower_limit, out upper_limit, out description); } + } + + private static efl_access_value_range_get_delegate efl_access_value_range_get_static_delegate; + + + private delegate double efl_access_value_increment_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_access_value_increment_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_value_increment_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_increment_get"); + + private static double increment_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_value_increment_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Progressbar)wrapper).GetIncrement(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_value_increment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate; + private static efl_access_value_increment_get_delegate efl_access_value_increment_get_static_delegate; + + + private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_get"); + + private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); + try + { + _ret_var = ((Progressbar)wrapper).GetDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_format_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); + return _ret_var; + } + else + { + return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_ui_format_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); - public static Efl.Eo.FunctionWrapper efl_ui_format_string_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_string_set"); - private static void format_string_set(System.IntPtr obj, System.IntPtr pd, System.String units) - { - Eina.Log.Debug("function efl_ui_format_string_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Progressbar)wrapper).SetFormatString( units); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), units); + private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + + + private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + + public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_set"); + + private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Progressbar)wrapper).SetDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } } - } - private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate; + private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; - private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_format_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); + + public delegate void efl_ui_format_cb_set_api_delegate(System.IntPtr obj, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); - public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_get"); - private static double range_value_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_range_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Progressbar)wrapper).GetRangeValue(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_format_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_cb_set"); + + private static void format_cb_set(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_ui_format_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.FormatFuncCbWrapper func_wrapper = new Efl.Ui.FormatFuncCbWrapper(func, func_data, func_free_cb); + + try + { + ((Progressbar)wrapper).SetFormatCb(func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_format_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + } + } + + private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_format_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_format_string_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_format_string_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_string_get"); + + private static System.String format_string_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_format_string_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Progressbar)wrapper).GetFormatString(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; + private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate; - private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); + + private delegate void efl_ui_format_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); + + public delegate void efl_ui_format_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); - public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_set"); - private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) - { - Eina.Log.Debug("function efl_ui_range_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Progressbar)wrapper).SetRangeValue( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); - } - } - private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; + public static Efl.Eo.FunctionWrapper efl_ui_format_string_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_string_set"); + private static void format_string_set(System.IntPtr obj, System.IntPtr pd, System.String units) + { + Eina.Log.Debug("function efl_ui_format_string_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Progressbar)wrapper).SetFormatString(units); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), units); + } + } - private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate; + + + private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_get"); + + private static double range_value_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_range_value_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Progressbar)wrapper).GetRangeValue(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_get"); - private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - min = default(double); max = default(double); - try { - ((Progressbar)wrapper).GetRangeMinMax( out min, out max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); + } + else + { + return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; + private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; - private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); + + public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); - public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_set"); - private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Progressbar)wrapper).SetRangeMinMax( min, max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); + public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_set"); + + private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) + { + Eina.Log.Debug("function efl_ui_range_value_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Progressbar)wrapper).SetRangeValue(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } } - } - private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; + + private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; + + + private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + + + public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); + + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_get"); + + private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + min = default(double); max = default(double); + try + { + ((Progressbar)wrapper).GetRangeMinMax(out min, out max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); + } + } + + private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; + + + private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + + public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); + + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_set"); + + private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Progressbar)wrapper).SetRangeMinMax(min, max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); + } + } + + private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_legacy_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_legacy_part.eo.cs index 7ba9975..5dec7e5 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_legacy_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_legacy_part.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary progressbar internal part class -[ProgressbarLegacyPartNativeInherit] +[Efl.Ui.ProgressbarLegacyPart.NativeMethods] public class ProgressbarLegacyPart : Efl.Ui.LayoutPartContent, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ProgressbarLegacyPart)) - return Efl.Ui.ProgressbarLegacyPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ProgressbarLegacyPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_progressbar_legacy_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ProgressbarLegacyPart(Efl.Object parent= null - ) : - base(efl_ui_progressbar_legacy_part_class_get(), typeof(ProgressbarLegacyPart), parent) + ) : base(efl_ui_progressbar_legacy_part_class_get(), typeof(ProgressbarLegacyPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ProgressbarLegacyPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ProgressbarLegacyPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ProgressbarLegacyPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.ProgressbarLegacyPart.efl_ui_progressbar_legacy_part_class_get(); } -} -public class ProgressbarLegacyPartNativeInherit : Efl.Ui.LayoutPartContentNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ProgressbarLegacyPart.efl_ui_progressbar_legacy_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPartContent.NativeMethods { - return Efl.Ui.ProgressbarLegacyPart.efl_ui_progressbar_legacy_part_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ProgressbarLegacyPart.efl_ui_progressbar_legacy_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_part.eo.cs index 012e92f..1f51154 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_part.eo.cs @@ -3,68 +3,92 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary progressbar internal part class -[ProgressbarPartNativeInherit] +[Efl.Ui.ProgressbarPart.NativeMethods] public class ProgressbarPart : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.Ui.IRangeDisplay { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ProgressbarPart)) - return Efl.Ui.ProgressbarPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ProgressbarPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_progressbar_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ProgressbarPart(Efl.Object parent= null - ) : - base(efl_ui_progressbar_part_class_get(), typeof(ProgressbarPart), parent) + ) : base(efl_ui_progressbar_part_class_get(), typeof(ProgressbarPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ProgressbarPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ProgressbarPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ProgressbarPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Control the range value (in percentage) on a given range widget /// Use this call to set range levels. /// /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) virtual public double GetRangeValue() { - var _ret_var = Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -73,18 +97,16 @@ public class ProgressbarPart : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.Ui.IRangeD /// /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) - /// - virtual public void SetRangeValue( double val) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetRangeValue(double val) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Get the minimum and maximum values of the given range widget. /// Note: If only one value is needed, the other pointer can be passed as null. /// The minimum value. /// The maximum value. - /// - virtual public void GetRangeMinMax( out double min, out double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out min, out max); + virtual public void GetRangeMinMax(out double min, out double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out min, out max); Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. @@ -97,9 +119,8 @@ public class ProgressbarPart : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.Ui.IRangeD /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. - /// - virtual public void SetRangeMinMax( double min, double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), min, max); + virtual public void SetRangeMinMax(double min, double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),min, max); Eina.Error.RaiseIfUnhandledException(); } /// Control the range value (in percentage) on a given range widget @@ -109,142 +130,222 @@ public class ProgressbarPart : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.Ui.IRangeD /// The range value (must be between $0.0 and 1.0) public double RangeValue { get { return GetRangeValue(); } - set { SetRangeValue( value); } + set { SetRangeValue(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.ProgressbarPart.efl_ui_progressbar_part_class_get(); } -} -public class ProgressbarPartNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_range_value_get_static_delegate == null) - efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate)}); - if (efl_ui_range_value_set_static_delegate == null) - efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate)}); - if (efl_ui_range_min_max_get_static_delegate == null) - efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate)}); - if (efl_ui_range_min_max_set_static_delegate == null) - efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ProgressbarPart.efl_ui_progressbar_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.ProgressbarPart.efl_ui_progressbar_part_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_range_value_get_static_delegate == null) + { + efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); + } - private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate) }); + } + if (efl_ui_range_value_set_static_delegate == null) + { + efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); + } - public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_get"); - private static double range_value_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_range_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((ProgressbarPart)wrapper).GetRangeValue(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate) }); + } + + if (efl_ui_range_min_max_get_static_delegate == null) + { + efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate) }); + } + + if (efl_ui_range_min_max_set_static_delegate == null) + { + efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); } + + if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ProgressbarPart.efl_ui_progressbar_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_get"); + + private static double range_value_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_range_value_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((ProgressbarPart)wrapper).GetRangeValue(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; + private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; - private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); + + private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); + + public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); - public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_set"); - private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) - { - Eina.Log.Debug("function efl_ui_range_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ProgressbarPart)wrapper).SetRangeValue( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_set"); + + private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) + { + Eina.Log.Debug("function efl_ui_range_value_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ProgressbarPart)wrapper).SetRangeValue(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } } - } - private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; + private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; - private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + + private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + + public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); - public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_get"); - private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - min = default(double); max = default(double); - try { - ((ProgressbarPart)wrapper).GetRangeMinMax( out min, out max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_get"); + + private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + min = default(double); max = default(double); + try + { + ((ProgressbarPart)wrapper).GetRangeMinMax(out min, out max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); + } } - } - private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; + private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; - private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); - public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_set"); - private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ProgressbarPart)wrapper).SetRangeMinMax( min, max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_set"); + + private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ProgressbarPart)wrapper).SetRangeMinMax(min, max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); + } } - } - private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; + + private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind.eo.cs index 9ee71c9..e340a6e 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI Property_Bind interface. view object can have to manage the data, the interface can help loading and tracking child data from the model property. see see -[IPropertyBindNativeInherit] +[Efl.Ui.IPropertyBindConcrete.NativeMethods] public interface IPropertyBind : Efl.Eo.IWrapper, IDisposable { @@ -14,7 +18,7 @@ public interface IPropertyBind : /// key string for bind model property data /// Model property name /// 0 when it succeed, an error code otherwise. -Eina.Error PropertyBind( System.String key, System.String property); +Eina.Error PropertyBind(System.String key, System.String property); /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. event EventHandler PropertiesChangedEvt; /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. @@ -37,221 +41,303 @@ IPropertyBind { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IPropertyBindConcrete)) - return Efl.Ui.IPropertyBindNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IPropertyBindConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_property_bind_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IPropertyBindConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IPropertyBindConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object PropertiesChangedEvtKey = new object(); + /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. public event EventHandler PropertiesChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertiesChangedEvt_Args args = new Efl.Ui.IPropertyBindPropertiesChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.AddHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PropertiesChangedEvt. - public void On_PropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) + public void OnPropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertiesChangedEvtKey]; + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertiesChangedEvt_delegate; - private void on_PropertiesChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IPropertyBindPropertiesChangedEvt_Args args = new Efl.Ui.IPropertyBindPropertiesChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PropertiesChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PropertyBoundEvtKey = new object(); /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. public event EventHandler PropertyBoundEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertyBoundEvt_Args args = new Efl.Ui.IPropertyBindPropertyBoundEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PropertyBoundEvt_delegate)) { - eventHandlers.AddHandler(PropertyBoundEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; - if (RemoveNativeEventHandler(key, this.evt_PropertyBoundEvt_delegate)) { - eventHandlers.RemoveHandler(PropertyBoundEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PropertyBoundEvt. - public void On_PropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertyBoundEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertyBoundEvt_delegate; - private void on_PropertyBoundEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) { - Efl.Ui.IPropertyBindPropertyBoundEvt_Args args = new Efl.Ui.IPropertyBindPropertyBoundEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_PropertyBoundEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_PropertiesChangedEvt_delegate = new Efl.EventCb(on_PropertiesChangedEvt_NativeCallback); - evt_PropertyBoundEvt_delegate = new Efl.EventCb(on_PropertyBoundEvt_NativeCallback); + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); + } } /// bind property data with the given key string. when the data is ready or changed, bind the data to the key action and process promised work. /// key string for bind model property data /// Model property name /// 0 when it succeed, an error code otherwise. - public Eina.Error PropertyBind( System.String key, System.String property) { - var _ret_var = Efl.Ui.IPropertyBindNativeInherit.efl_ui_property_bind_ptr.Value.Delegate(this.NativeHandle, key, property); + public Eina.Error PropertyBind(System.String key, System.String property) { + var _ret_var = Efl.Ui.IPropertyBindConcrete.NativeMethods.efl_ui_property_bind_ptr.Value.Delegate(this.NativeHandle,key, property); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -259,55 +345,87 @@ private static object PropertyBoundEvtKey = new object(); { return Efl.Ui.IPropertyBindConcrete.efl_ui_property_bind_interface_get(); } -} -public class IPropertyBindNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_property_bind_static_delegate == null) - efl_ui_property_bind_static_delegate = new efl_ui_property_bind_delegate(property_bind); - if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_property_bind_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IPropertyBindConcrete.efl_ui_property_bind_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IPropertyBindConcrete.efl_ui_property_bind_interface_get(); - } + 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_property_bind_static_delegate == null) + { + efl_ui_property_bind_static_delegate = new efl_ui_property_bind_delegate(property_bind); + } + + if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_property_bind_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.IPropertyBindConcrete.efl_ui_property_bind_interface_get(); + } - private delegate Eina.Error efl_ui_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + #pragma warning disable CA1707, SA1300, SA1600 + + private delegate Eina.Error efl_ui_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + + public delegate Eina.Error efl_ui_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_ui_property_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_property_bind"); + + private static Eina.Error property_bind(System.IntPtr obj, System.IntPtr pd, System.String key, System.String property) + { + Eina.Log.Debug("function efl_ui_property_bind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((IPropertyBind)wrapper).PropertyBind(key, property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Error efl_ui_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); - public static Efl.Eo.FunctionWrapper efl_ui_property_bind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_property_bind"); - private static Eina.Error property_bind(System.IntPtr obj, System.IntPtr pd, System.String key, System.String property) - { - Eina.Log.Debug("function efl_ui_property_bind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((IPropertyBind)wrapper).PropertyBind( key, property); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, property); + + } + else + { + return efl_ui_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, property); + } } - } - private static efl_ui_property_bind_delegate efl_ui_property_bind_static_delegate; + + private static efl_ui_property_bind_delegate efl_ui_property_bind_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } -namespace Efl { namespace Ui { + +namespace Efl { + +namespace Ui { + /// EFL Ui property event data structure triggered when an object property change due to the interaction on the object. [StructLayout(LayoutKind.Sequential)] public struct PropertyEvent @@ -316,7 +434,7 @@ public struct PropertyEvent public Eina.Array Changed_properties; ///Constructor for PropertyEvent. public PropertyEvent( - Eina.Array Changed_properties=default(Eina.Array) ) + Eina.Array Changed_properties = default(Eina.Array) ) { this.Changed_properties = Changed_properties; } @@ -353,4 +471,7 @@ public struct PropertyEvent } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio.eo.cs index 1588d23..02a9e57 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio.eo.cs @@ -3,102 +3,126 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary radio class -[RadioNativeInherit] +[Efl.Ui.Radio.NativeMethods] public class Radio : Efl.Ui.Check, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Radio)) - return Efl.Ui.RadioNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Radio)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_radio_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Radio(Efl.Object parent - , System.String style = null) : - base(efl_ui_radio_class_get(), typeof(Radio), parent) + , System.String style = null) : base(efl_ui_radio_class_get(), typeof(Radio), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Radio(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Radio(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Radio(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Get the integer value that this radio object represents. /// This gets the value of the radio. /// The value to use if this radio object is selected. virtual public int GetStateValue() { - var _ret_var = Efl.Ui.RadioNativeInherit.efl_ui_radio_state_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Radio.NativeMethods.efl_ui_radio_state_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the integer value that this radio object represents. /// This sets the value of the radio. /// The value to use if this radio object is selected. - /// - virtual public void SetStateValue( int value) { - Efl.Ui.RadioNativeInherit.efl_ui_radio_state_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetStateValue(int value) { + Efl.Ui.Radio.NativeMethods.efl_ui_radio_state_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Set a convenience pointer to an integer, which changes when radio group value changes. /// This sets a pointer to an integer that in addition to the radio object state will also be modified directly. To stop setting the object pointed to, simply use NULL as the valuep argument. If valuep is not NULL then when called, the radio object state will also be modified to reflect the value of the integer valuep points to, just like calling elm_radio_value_set(). /// Pointer to the integer to modify - /// - virtual public void SetValuePointer( int valuep) { + virtual public void SetValuePointer(int valuep) { var _in_valuep = Eina.PrimitiveConversion.ManagedToPointerAlloc(valuep); - Efl.Ui.RadioNativeInherit.efl_ui_radio_value_pointer_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_valuep); + Efl.Ui.Radio.NativeMethods.efl_ui_radio_value_pointer_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_valuep); Eina.Error.RaiseIfUnhandledException(); } /// Get the selected radio object. /// The selected radio object virtual public Efl.Canvas.Object GetSelectedObject() { - var _ret_var = Efl.Ui.RadioNativeInherit.efl_ui_radio_selected_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Radio.NativeMethods.efl_ui_radio_selected_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Add this radio to a group of other radio objects /// Radio objects work in groups. Each member should have a different integer value assigned. In order to have them work as a group, they need to know about each other. This adds the given radio object to the group of which the group object indicated is a member. /// Any radio object whose group the obj is to join. - /// - virtual public void AddGroup( Efl.Ui.Radio group) { - Efl.Ui.RadioNativeInherit.efl_ui_radio_group_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), group); + virtual public void AddGroup(Efl.Ui.Radio group) { + Efl.Ui.Radio.NativeMethods.efl_ui_radio_group_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),group); Eina.Error.RaiseIfUnhandledException(); } /// Get the integer value that this radio object represents. @@ -106,13 +130,13 @@ public class Radio : Efl.Ui.Check, Efl.Eo.IWrapper /// The value to use if this radio object is selected. public int StateValue { get { return GetStateValue(); } - set { SetStateValue( value); } + set { SetStateValue(value); } } /// Set a convenience pointer to an integer, which changes when radio group value changes. /// This sets a pointer to an integer that in addition to the radio object state will also be modified directly. To stop setting the object pointed to, simply use NULL as the valuep argument. If valuep is not NULL then when called, the radio object state will also be modified to reflect the value of the integer valuep points to, just like calling elm_radio_value_set(). /// Pointer to the integer to modify public int ValuePointer { - set { SetValuePointer( value); } + set { SetValuePointer(value); } } /// Get the selected radio object. /// The selected radio object @@ -123,166 +147,263 @@ public class Radio : Efl.Ui.Check, Efl.Eo.IWrapper { return Efl.Ui.Radio.efl_ui_radio_class_get(); } -} -public class RadioNativeInherit : Efl.Ui.CheckNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_radio_state_value_get_static_delegate == null) - efl_ui_radio_state_value_get_static_delegate = new efl_ui_radio_state_value_get_delegate(state_value_get); - if (methods.FirstOrDefault(m => m.Name == "GetStateValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_radio_state_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_radio_state_value_get_static_delegate)}); - if (efl_ui_radio_state_value_set_static_delegate == null) - efl_ui_radio_state_value_set_static_delegate = new efl_ui_radio_state_value_set_delegate(state_value_set); - if (methods.FirstOrDefault(m => m.Name == "SetStateValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_radio_state_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_radio_state_value_set_static_delegate)}); - if (efl_ui_radio_value_pointer_set_static_delegate == null) - efl_ui_radio_value_pointer_set_static_delegate = new efl_ui_radio_value_pointer_set_delegate(value_pointer_set); - if (methods.FirstOrDefault(m => m.Name == "SetValuePointer") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_radio_value_pointer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_radio_value_pointer_set_static_delegate)}); - if (efl_ui_radio_selected_object_get_static_delegate == null) - efl_ui_radio_selected_object_get_static_delegate = new efl_ui_radio_selected_object_get_delegate(selected_object_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectedObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_radio_selected_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_radio_selected_object_get_static_delegate)}); - if (efl_ui_radio_group_add_static_delegate == null) - efl_ui_radio_group_add_static_delegate = new efl_ui_radio_group_add_delegate(group_add); - if (methods.FirstOrDefault(m => m.Name == "AddGroup") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_radio_group_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_radio_group_add_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Radio.efl_ui_radio_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Check.NativeMethods { - return Efl.Ui.Radio.efl_ui_radio_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_radio_state_value_get_static_delegate == null) + { + efl_ui_radio_state_value_get_static_delegate = new efl_ui_radio_state_value_get_delegate(state_value_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetStateValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_radio_state_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_radio_state_value_get_static_delegate) }); + } + + if (efl_ui_radio_state_value_set_static_delegate == null) + { + efl_ui_radio_state_value_set_static_delegate = new efl_ui_radio_state_value_set_delegate(state_value_set); + } - private delegate int efl_ui_radio_state_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetStateValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_radio_state_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_radio_state_value_set_static_delegate) }); + } + if (efl_ui_radio_value_pointer_set_static_delegate == null) + { + efl_ui_radio_value_pointer_set_static_delegate = new efl_ui_radio_value_pointer_set_delegate(value_pointer_set); + } - public delegate int efl_ui_radio_state_value_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_radio_state_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_radio_state_value_get"); - private static int state_value_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_radio_state_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Radio)wrapper).GetStateValue(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetValuePointer") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_radio_value_pointer_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_radio_value_pointer_set_static_delegate) }); } + + if (efl_ui_radio_selected_object_get_static_delegate == null) + { + efl_ui_radio_selected_object_get_static_delegate = new efl_ui_radio_selected_object_get_delegate(selected_object_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSelectedObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_radio_selected_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_radio_selected_object_get_static_delegate) }); + } + + if (efl_ui_radio_group_add_static_delegate == null) + { + efl_ui_radio_group_add_static_delegate = new efl_ui_radio_group_add_delegate(group_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddGroup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_radio_group_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_radio_group_add_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Radio.efl_ui_radio_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate int efl_ui_radio_state_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_ui_radio_state_value_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_radio_state_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_radio_state_value_get"); + + private static int state_value_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_radio_state_value_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Radio)wrapper).GetStateValue(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_radio_state_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_radio_state_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_radio_state_value_get_delegate efl_ui_radio_state_value_get_static_delegate; + private static efl_ui_radio_state_value_get_delegate efl_ui_radio_state_value_get_static_delegate; - private delegate void efl_ui_radio_state_value_set_delegate(System.IntPtr obj, System.IntPtr pd, int value); + + private delegate void efl_ui_radio_state_value_set_delegate(System.IntPtr obj, System.IntPtr pd, int value); + + public delegate void efl_ui_radio_state_value_set_api_delegate(System.IntPtr obj, int value); - public delegate void efl_ui_radio_state_value_set_api_delegate(System.IntPtr obj, int value); - public static Efl.Eo.FunctionWrapper efl_ui_radio_state_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_radio_state_value_set"); - private static void state_value_set(System.IntPtr obj, System.IntPtr pd, int value) - { - Eina.Log.Debug("function efl_ui_radio_state_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Radio)wrapper).SetStateValue( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_radio_state_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_radio_state_value_set"); + + private static void state_value_set(System.IntPtr obj, System.IntPtr pd, int value) + { + Eina.Log.Debug("function efl_ui_radio_state_value_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Radio)wrapper).SetStateValue(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_radio_state_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } - } else { - efl_ui_radio_state_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } - } - private static efl_ui_radio_state_value_set_delegate efl_ui_radio_state_value_set_static_delegate; + private static efl_ui_radio_state_value_set_delegate efl_ui_radio_state_value_set_static_delegate; - private delegate void efl_ui_radio_value_pointer_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr valuep); + + private delegate void efl_ui_radio_value_pointer_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr valuep); + + public delegate void efl_ui_radio_value_pointer_set_api_delegate(System.IntPtr obj, System.IntPtr valuep); - public delegate void efl_ui_radio_value_pointer_set_api_delegate(System.IntPtr obj, System.IntPtr valuep); - public static Efl.Eo.FunctionWrapper efl_ui_radio_value_pointer_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_radio_value_pointer_set"); - private static void value_pointer_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr valuep) - { - Eina.Log.Debug("function efl_ui_radio_value_pointer_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_valuep = Eina.PrimitiveConversion.PointerToManaged(valuep); + public static Efl.Eo.FunctionWrapper efl_ui_radio_value_pointer_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_radio_value_pointer_set"); + + private static void value_pointer_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr valuep) + { + Eina.Log.Debug("function efl_ui_radio_value_pointer_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_valuep = Eina.PrimitiveConversion.PointerToManaged(valuep); - try { - ((Radio)wrapper).SetValuePointer( _in_valuep); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((Radio)wrapper).SetValuePointer(_in_valuep); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_radio_value_pointer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), valuep); } - } else { - efl_ui_radio_value_pointer_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), valuep); } - } - private static efl_ui_radio_value_pointer_set_delegate efl_ui_radio_value_pointer_set_static_delegate; + private static efl_ui_radio_value_pointer_set_delegate efl_ui_radio_value_pointer_set_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_radio_selected_object_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_radio_selected_object_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_radio_selected_object_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_radio_selected_object_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_radio_selected_object_get"); + + private static Efl.Canvas.Object selected_object_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_radio_selected_object_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Radio)wrapper).GetSelectedObject(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_radio_selected_object_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_radio_selected_object_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_radio_selected_object_get"); - private static Efl.Canvas.Object selected_object_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_radio_selected_object_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Radio)wrapper).GetSelectedObject(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_radio_selected_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_radio_selected_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_radio_selected_object_get_delegate efl_ui_radio_selected_object_get_static_delegate; + private static efl_ui_radio_selected_object_get_delegate efl_ui_radio_selected_object_get_static_delegate; - private delegate void efl_ui_radio_group_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Radio group); + + private delegate void efl_ui_radio_group_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Radio group); + + public delegate void efl_ui_radio_group_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Radio group); - public delegate void efl_ui_radio_group_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Radio group); - public static Efl.Eo.FunctionWrapper efl_ui_radio_group_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_radio_group_add"); - private static void group_add(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Radio group) - { - Eina.Log.Debug("function efl_ui_radio_group_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Radio)wrapper).AddGroup( group); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_radio_group_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_radio_group_add"); + + private static void group_add(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Radio group) + { + Eina.Log.Debug("function efl_ui_radio_group_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Radio)wrapper).AddGroup(group); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_radio_group_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), group); } - } else { - efl_ui_radio_group_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), group); } - } - private static efl_ui_radio_group_add_delegate efl_ui_radio_group_add_static_delegate; + + private static efl_ui_radio_group_add_delegate efl_ui_radio_group_add_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_legacy_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_legacy_part.eo.cs index 8964978..33c0010 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_legacy_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_legacy_part.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary radio internal part class -[RadioLegacyPartNativeInherit] +[Efl.Ui.RadioLegacyPart.NativeMethods] public class RadioLegacyPart : Efl.Ui.LayoutPartContent, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (RadioLegacyPart)) - return Efl.Ui.RadioLegacyPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(RadioLegacyPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_radio_legacy_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public RadioLegacyPart(Efl.Object parent= null - ) : - base(efl_ui_radio_legacy_part_class_get(), typeof(RadioLegacyPart), parent) + ) : base(efl_ui_radio_legacy_part_class_get(), typeof(RadioLegacyPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected RadioLegacyPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected RadioLegacyPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected RadioLegacyPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.RadioLegacyPart.efl_ui_radio_legacy_part_class_get(); } -} -public class RadioLegacyPartNativeInherit : Efl.Ui.LayoutPartContentNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.RadioLegacyPart.efl_ui_radio_legacy_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPartContent.NativeMethods { - return Efl.Ui.RadioLegacyPart.efl_ui_radio_legacy_part_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.RadioLegacyPart.efl_ui_radio_legacy_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_range_display.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_range_display.eo.cs index 55a29be..16be452 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_range_display.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_range_display.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Interface that contains properties regarding the displaying of a range. -[IRangeDisplayNativeInherit] +[Efl.Ui.IRangeDisplayConcrete.NativeMethods] public interface IRangeDisplay : Efl.Eo.IWrapper, IDisposable { @@ -21,14 +25,12 @@ double GetRangeValue(); /// /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) -/// -void SetRangeValue( double val); +void SetRangeValue(double val); /// Get the minimum and maximum values of the given range widget. /// Note: If only one value is needed, the other pointer can be passed as null. /// The minimum value. /// The maximum value. -/// -void GetRangeMinMax( out double min, out double max); +void GetRangeMinMax(out double min, out double max); /// Set the minimum and maximum values for given range widget. /// Define the allowed range of values to be selected by the user. /// @@ -39,8 +41,7 @@ void GetRangeMinMax( out double min, out double max); /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. -/// -void SetRangeMinMax( double min, double max); +void SetRangeMinMax(double min, double max); /// Control the range value (in percentage) on a given range widget /// Use this call to set range levels. /// @@ -58,75 +59,110 @@ IRangeDisplay { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IRangeDisplayConcrete)) - return Efl.Ui.IRangeDisplayNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IRangeDisplayConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_range_display_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IRangeDisplayConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IRangeDisplayConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Control the range value (in percentage) on a given range widget /// Use this call to set range levels. /// /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) public double GetRangeValue() { - var _ret_var = Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -135,18 +171,16 @@ IRangeDisplay /// /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) - /// - public void SetRangeValue( double val) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_set_ptr.Value.Delegate(this.NativeHandle, val); + public void SetRangeValue(double val) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate(this.NativeHandle,val); Eina.Error.RaiseIfUnhandledException(); } /// Get the minimum and maximum values of the given range widget. /// Note: If only one value is needed, the other pointer can be passed as null. /// The minimum value. /// The maximum value. - /// - public void GetRangeMinMax( out double min, out double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_get_ptr.Value.Delegate(this.NativeHandle, out min, out max); + public void GetRangeMinMax(out double min, out double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_get_ptr.Value.Delegate(this.NativeHandle,out min, out max); Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. @@ -159,9 +193,8 @@ IRangeDisplay /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. - /// - public void SetRangeMinMax( double min, double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_set_ptr.Value.Delegate(this.NativeHandle, min, max); + public void SetRangeMinMax(double min, double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_set_ptr.Value.Delegate(this.NativeHandle,min, max); Eina.Error.RaiseIfUnhandledException(); } /// Control the range value (in percentage) on a given range widget @@ -171,141 +204,221 @@ IRangeDisplay /// The range value (must be between $0.0 and 1.0) public double RangeValue { get { return GetRangeValue(); } - set { SetRangeValue( value); } + set { SetRangeValue(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IRangeDisplayConcrete.efl_ui_range_display_interface_get(); } -} -public class IRangeDisplayNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_range_value_get_static_delegate == null) - efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate)}); - if (efl_ui_range_value_set_static_delegate == null) - efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate)}); - if (efl_ui_range_min_max_get_static_delegate == null) - efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate)}); - if (efl_ui_range_min_max_set_static_delegate == null) - efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IRangeDisplayConcrete.efl_ui_range_display_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IRangeDisplayConcrete.efl_ui_range_display_interface_get(); - } + 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_range_value_get_static_delegate == null) + { + efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); + } - private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate) }); + } + if (efl_ui_range_value_set_static_delegate == null) + { + efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); + } - public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_get"); - private static double range_value_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_range_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IRangeDisplay)wrapper).GetRangeValue(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate) }); + } + + if (efl_ui_range_min_max_get_static_delegate == null) + { + efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate) }); + } + + if (efl_ui_range_min_max_set_static_delegate == null) + { + efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_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.IRangeDisplayConcrete.efl_ui_range_display_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_get"); + + private static double range_value_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_range_value_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IRangeDisplay)wrapper).GetRangeValue(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; + private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; - private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); + + private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); + + public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); - public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_set"); - private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) - { - Eina.Log.Debug("function efl_ui_range_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IRangeDisplay)wrapper).SetRangeValue( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_set"); + + private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) + { + Eina.Log.Debug("function efl_ui_range_value_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IRangeDisplay)wrapper).SetRangeValue(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } - } else { - efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } - } - private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; + private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; - private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + + private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + + public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); - public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_get"); - private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - min = default(double); max = default(double); - try { - ((IRangeDisplay)wrapper).GetRangeMinMax( out min, out max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_get"); + + private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + min = default(double); max = default(double); + try + { + ((IRangeDisplay)wrapper).GetRangeMinMax(out min, out max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); } - } else { - efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); } - } - private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; + private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; - private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); - public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_set"); - private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IRangeDisplay)wrapper).SetRangeMinMax( min, max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_set"); + + private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IRangeDisplay)wrapper).SetRangeMinMax(min, max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); } - } else { - efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); } - } - private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; + + private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_range_interactive.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_range_interactive.eo.cs index 71ebc59..8c84381 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_range_interactive.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_range_interactive.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Interface that extends the normal displaying properties with usage properties. /// The properties defined here are used to manipulate the way a user interacts with a displayed range. -[IRangeInteractiveNativeInherit] +[Efl.Ui.IRangeInteractiveConcrete.NativeMethods] public interface IRangeInteractive : Efl.Ui.IRangeDisplay , Efl.Eo.IWrapper, IDisposable @@ -27,8 +31,7 @@ double GetRangeStep(); /// /// Warning: The step value should be bigger than 0. /// The step value. -/// -void SetRangeStep( double step); +void SetRangeStep(double step); /// Control the step used to increment or decrement values for given widget. /// This value will be incremented or decremented to the displayed value. /// @@ -49,68 +52,103 @@ IRangeInteractive , Efl.Ui.IRangeDisplay { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IRangeInteractiveConcrete)) - return Efl.Ui.IRangeInteractiveNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IRangeInteractiveConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_range_interactive_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IRangeInteractiveConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IRangeInteractiveConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Control the step used to increment or decrement values for given widget. /// This value will be incremented or decremented to the displayed value. /// @@ -119,7 +157,7 @@ IRangeInteractive /// Warning: The step value should be bigger than 0. /// The step value. public double GetRangeStep() { - var _ret_var = Efl.Ui.IRangeInteractiveNativeInherit.efl_ui_range_step_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -130,9 +168,8 @@ IRangeInteractive /// /// Warning: The step value should be bigger than 0. /// The step value. - /// - public void SetRangeStep( double step) { - Efl.Ui.IRangeInteractiveNativeInherit.efl_ui_range_step_set_ptr.Value.Delegate(this.NativeHandle, step); + public void SetRangeStep(double step) { + Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_set_ptr.Value.Delegate(this.NativeHandle,step); Eina.Error.RaiseIfUnhandledException(); } /// Control the range value (in percentage) on a given range widget @@ -141,7 +178,7 @@ IRangeInteractive /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) public double GetRangeValue() { - var _ret_var = Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -150,18 +187,16 @@ IRangeInteractive /// /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) - /// - public void SetRangeValue( double val) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_set_ptr.Value.Delegate(this.NativeHandle, val); + public void SetRangeValue(double val) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate(this.NativeHandle,val); Eina.Error.RaiseIfUnhandledException(); } /// Get the minimum and maximum values of the given range widget. /// Note: If only one value is needed, the other pointer can be passed as null. /// The minimum value. /// The maximum value. - /// - public void GetRangeMinMax( out double min, out double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_get_ptr.Value.Delegate(this.NativeHandle, out min, out max); + public void GetRangeMinMax(out double min, out double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_get_ptr.Value.Delegate(this.NativeHandle,out min, out max); Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. @@ -174,9 +209,8 @@ IRangeInteractive /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. - /// - public void SetRangeMinMax( double min, double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_set_ptr.Value.Delegate(this.NativeHandle, min, max); + public void SetRangeMinMax(double min, double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_set_ptr.Value.Delegate(this.NativeHandle,min, max); Eina.Error.RaiseIfUnhandledException(); } /// Control the step used to increment or decrement values for given widget. @@ -188,7 +222,7 @@ IRangeInteractive /// The step value. public double RangeStep { get { return GetRangeStep(); } - set { SetRangeStep( value); } + set { SetRangeStep(value); } } /// Control the range value (in percentage) on a given range widget /// Use this call to set range levels. @@ -197,198 +231,312 @@ IRangeInteractive /// The range value (must be between $0.0 and 1.0) public double RangeValue { get { return GetRangeValue(); } - set { SetRangeValue( value); } + set { SetRangeValue(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IRangeInteractiveConcrete.efl_ui_range_interactive_interface_get(); } -} -public class IRangeInteractiveNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_range_step_get_static_delegate == null) - efl_ui_range_step_get_static_delegate = new efl_ui_range_step_get_delegate(range_step_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeStep") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_get_static_delegate)}); - if (efl_ui_range_step_set_static_delegate == null) - efl_ui_range_step_set_static_delegate = new efl_ui_range_step_set_delegate(range_step_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeStep") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_set_static_delegate)}); - if (efl_ui_range_value_get_static_delegate == null) - efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate)}); - if (efl_ui_range_value_set_static_delegate == null) - efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate)}); - if (efl_ui_range_min_max_get_static_delegate == null) - efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate)}); - if (efl_ui_range_min_max_set_static_delegate == null) - efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IRangeInteractiveConcrete.efl_ui_range_interactive_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IRangeInteractiveConcrete.efl_ui_range_interactive_interface_get(); - } + 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_range_step_get_static_delegate == null) + { + efl_ui_range_step_get_static_delegate = new efl_ui_range_step_get_delegate(range_step_get); + } - private delegate double efl_ui_range_step_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetRangeStep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_get_static_delegate) }); + } + if (efl_ui_range_step_set_static_delegate == null) + { + efl_ui_range_step_set_static_delegate = new efl_ui_range_step_set_delegate(range_step_set); + } - public delegate double efl_ui_range_step_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_range_step_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_step_get"); - private static double range_step_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_range_step_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IRangeInteractive)wrapper).GetRangeStep(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetRangeStep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_range_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_range_value_get_static_delegate == null) + { + efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate) }); + } + + if (efl_ui_range_value_set_static_delegate == null) + { + efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate) }); + } + + if (efl_ui_range_min_max_get_static_delegate == null) + { + efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate) }); + } + + if (efl_ui_range_min_max_set_static_delegate == null) + { + efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_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.IRangeInteractiveConcrete.efl_ui_range_interactive_interface_get(); } - } - private static efl_ui_range_step_get_delegate efl_ui_range_step_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_range_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double step); + + private delegate double efl_ui_range_step_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_range_step_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_range_step_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_step_get"); + + private static double range_step_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_range_step_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IRangeInteractive)wrapper).GetRangeStep(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_range_step_set_api_delegate(System.IntPtr obj, double step); - public static Efl.Eo.FunctionWrapper efl_ui_range_step_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_step_set"); - private static void range_step_set(System.IntPtr obj, System.IntPtr pd, double step) - { - Eina.Log.Debug("function efl_ui_range_step_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IRangeInteractive)wrapper).SetRangeStep( step); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_range_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); + else + { + return efl_ui_range_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_range_step_set_delegate efl_ui_range_step_set_static_delegate; + private static efl_ui_range_step_get_delegate efl_ui_range_step_get_static_delegate; - private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_range_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double step); + + public delegate void efl_ui_range_step_set_api_delegate(System.IntPtr obj, double step); - public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_get"); - private static double range_value_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_range_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IRangeInteractive)wrapper).GetRangeValue(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_range_step_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_step_set"); + + private static void range_step_set(System.IntPtr obj, System.IntPtr pd, double step) + { + Eina.Log.Debug("function efl_ui_range_step_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IRangeInteractive)wrapper).SetRangeStep(step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_range_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); + } + } + + private static efl_ui_range_step_set_delegate efl_ui_range_step_set_static_delegate; + + + private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_get"); + + private static double range_value_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_range_value_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IRangeInteractive)wrapper).GetRangeValue(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; + private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; - private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); + + private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); + + public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); - public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_set"); - private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) - { - Eina.Log.Debug("function efl_ui_range_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IRangeInteractive)wrapper).SetRangeValue( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_set"); + + private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) + { + Eina.Log.Debug("function efl_ui_range_value_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IRangeInteractive)wrapper).SetRangeValue(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } - } else { - efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } - } - private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; + private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; - private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + + private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + + public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); - public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_get"); - private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - min = default(double); max = default(double); - try { - ((IRangeInteractive)wrapper).GetRangeMinMax( out min, out max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_get"); + + private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + min = default(double); max = default(double); + try + { + ((IRangeInteractive)wrapper).GetRangeMinMax(out min, out max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); } - } else { - efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); } - } - private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; + private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; - private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); - public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_set"); - private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IRangeInteractive)wrapper).SetRangeMinMax( min, max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_set"); + + private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IRangeInteractive)wrapper).SetRangeMinMax(min, max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); } - } else { - efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); } - } - private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; + + private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_relative_layout.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_relative_layout.eo.cs index a3abf8b..4d30bd1 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_relative_layout.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_relative_layout.eo.cs @@ -3,604 +3,860 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// The relative layout class. /// A relative layout calculates the size and position of all the children based on their relationship to each other. -[RelativeLayoutNativeInherit] +[Efl.Ui.RelativeLayout.NativeMethods] public class RelativeLayout : Efl.Ui.Widget, Efl.Eo.IWrapper,Efl.IPackLayout { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (RelativeLayout)) - return Efl.Ui.RelativeLayoutNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(RelativeLayout)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_relative_layout_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public RelativeLayout(Efl.Object parent - , System.String style = null) : - base(efl_ui_relative_layout_class_get(), typeof(RelativeLayout), parent) + , System.String style = null) : base(efl_ui_relative_layout_class_get(), typeof(RelativeLayout), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected RelativeLayout(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected RelativeLayout(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected RelativeLayout(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object LayoutUpdatedEvtKey = new object(); + /// Sent after the layout was updated. public event EventHandler LayoutUpdatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.AddHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (RemoveNativeEventHandler(key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.RemoveHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LayoutUpdatedEvt. - public void On_LayoutUpdatedEvt(EventArgs e) + public void OnLayoutUpdatedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LayoutUpdatedEvtKey]; + var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LayoutUpdatedEvt_delegate; - private void on_LayoutUpdatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_LayoutUpdatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_LayoutUpdatedEvt_delegate = new Efl.EventCb(on_LayoutUpdatedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Specifies the left side edge of the child relative to the target. By default, target is parent and relative is 0.0. /// The child to specify relation. /// The relative target. /// The ratio between left and right of the target, ranging from 0.0 to 1.0. - /// - virtual public void GetRelationLeft( Efl.Object child, out Efl.Object target, out double relative) { - Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_left_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, out target, out relative); + virtual public void GetRelationLeft(Efl.Object child, out Efl.Object target, out double relative) { + Efl.Ui.RelativeLayout.NativeMethods.efl_ui_relative_layout_relation_left_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, out target, out relative); Eina.Error.RaiseIfUnhandledException(); } /// Specifies the left side edge of the child relative to the target. By default, target is parent and relative is 0.0. /// The child to specify relation. /// The relative target. /// The ratio between left and right of the target, ranging from 0.0 to 1.0. - /// - virtual public void SetRelationLeft( Efl.Object child, Efl.Object target, double relative) { - Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_left_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, target, relative); + virtual public void SetRelationLeft(Efl.Object child, Efl.Object target, double relative) { + Efl.Ui.RelativeLayout.NativeMethods.efl_ui_relative_layout_relation_left_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, target, relative); Eina.Error.RaiseIfUnhandledException(); } /// Specifies the right side edge of the child relative to the target. By default, target is parent and relative is 1.0. /// The child to specify relation. /// The relative target. /// The ratio between left and right of the target, ranging from 0.0 to 1.0. - /// - virtual public void GetRelationRight( Efl.Object child, out Efl.Object target, out double relative) { - Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_right_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, out target, out relative); + virtual public void GetRelationRight(Efl.Object child, out Efl.Object target, out double relative) { + Efl.Ui.RelativeLayout.NativeMethods.efl_ui_relative_layout_relation_right_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, out target, out relative); Eina.Error.RaiseIfUnhandledException(); } /// Specifies the right side edge of the child relative to the target. By default, target is parent and relative is 1.0. /// The child to specify relation. /// The relative target. /// The ratio between left and right of the target, ranging from 0.0 to 1.0. - /// - virtual public void SetRelationRight( Efl.Object child, Efl.Object target, double relative) { - Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_right_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, target, relative); + virtual public void SetRelationRight(Efl.Object child, Efl.Object target, double relative) { + Efl.Ui.RelativeLayout.NativeMethods.efl_ui_relative_layout_relation_right_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, target, relative); Eina.Error.RaiseIfUnhandledException(); } /// Specifies the top side edge of the child relative to the target. By default, target is parent and relative is 0.0. /// The child to specify relation. /// The relative target. /// The ratio between top and bottom of the target, ranging from 0.0 to 1.0. - /// - virtual public void GetRelationTop( Efl.Object child, out Efl.Object target, out double relative) { - Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_top_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, out target, out relative); + virtual public void GetRelationTop(Efl.Object child, out Efl.Object target, out double relative) { + Efl.Ui.RelativeLayout.NativeMethods.efl_ui_relative_layout_relation_top_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, out target, out relative); Eina.Error.RaiseIfUnhandledException(); } /// Specifies the top side edge of the child relative to the target. By default, target is parent and relative is 0.0. /// The child to specify relation. /// The relative target. /// The ratio between top and bottom of the target, ranging from 0.0 to 1.0. - /// - virtual public void SetRelationTop( Efl.Object child, Efl.Object target, double relative) { - Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_top_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, target, relative); + virtual public void SetRelationTop(Efl.Object child, Efl.Object target, double relative) { + Efl.Ui.RelativeLayout.NativeMethods.efl_ui_relative_layout_relation_top_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, target, relative); Eina.Error.RaiseIfUnhandledException(); } /// Specifies the bottom side edge of the child relative to the target. By default, target is parent and relative is 1.0. /// The child to specify relation. /// The relative target. /// The ratio between top and bottom of the target, ranging from 0.0 to 1.0. - /// - virtual public void GetRelationBottom( Efl.Object child, out Efl.Object target, out double relative) { - Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_bottom_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, out target, out relative); + virtual public void GetRelationBottom(Efl.Object child, out Efl.Object target, out double relative) { + Efl.Ui.RelativeLayout.NativeMethods.efl_ui_relative_layout_relation_bottom_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, out target, out relative); Eina.Error.RaiseIfUnhandledException(); } /// Specifies the bottom side edge of the child relative to the target. By default, target is parent and relative is 1.0. /// The child to specify relation. /// The relative target. /// The ratio between top and bottom of the target, ranging from 0.0 to 1.0. - /// - virtual public void SetRelationBottom( Efl.Object child, Efl.Object target, double relative) { - Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_relation_bottom_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, target, relative); + virtual public void SetRelationBottom(Efl.Object child, Efl.Object target, double relative) { + Efl.Ui.RelativeLayout.NativeMethods.efl_ui_relative_layout_relation_bottom_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, target, relative); Eina.Error.RaiseIfUnhandledException(); } /// Remove all relations of the child. /// The child to unregister - /// - virtual public void Unregister( Efl.Object child) { - Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_unregister_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child); + virtual public void Unregister(Efl.Object child) { + Efl.Ui.RelativeLayout.NativeMethods.efl_ui_relative_layout_unregister_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child); Eina.Error.RaiseIfUnhandledException(); } /// Remove all relations from the registered children. - /// virtual public void UnregisterAll() { - Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_unregister_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.RelativeLayout.NativeMethods.efl_ui_relative_layout_unregister_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Begin iterating over this object's children. /// Iterator to object children. virtual public Eina.Iterator ChildrenIterate() { - var _ret_var = Efl.Ui.RelativeLayoutNativeInherit.efl_ui_relative_layout_children_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.RelativeLayout.NativeMethods.efl_ui_relative_layout_children_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } /// Requests EFL to call the method on this object. /// This may be called asynchronously. - /// virtual public void LayoutRequest() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Implementation of this container's layout algorithm. /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas. /// /// This can be overriden to implement custom layout behaviors. - /// virtual public void UpdateLayout() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Ui.RelativeLayout.efl_ui_relative_layout_class_get(); } -} -public class RelativeLayoutNativeInherit : Efl.Ui.WidgetNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_relative_layout_relation_left_get_static_delegate == null) - efl_ui_relative_layout_relation_left_get_static_delegate = new efl_ui_relative_layout_relation_left_get_delegate(relation_left_get); - if (methods.FirstOrDefault(m => m.Name == "GetRelationLeft") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_left_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_left_get_static_delegate)}); - if (efl_ui_relative_layout_relation_left_set_static_delegate == null) - efl_ui_relative_layout_relation_left_set_static_delegate = new efl_ui_relative_layout_relation_left_set_delegate(relation_left_set); - if (methods.FirstOrDefault(m => m.Name == "SetRelationLeft") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_left_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_left_set_static_delegate)}); - if (efl_ui_relative_layout_relation_right_get_static_delegate == null) - efl_ui_relative_layout_relation_right_get_static_delegate = new efl_ui_relative_layout_relation_right_get_delegate(relation_right_get); - if (methods.FirstOrDefault(m => m.Name == "GetRelationRight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_right_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_right_get_static_delegate)}); - if (efl_ui_relative_layout_relation_right_set_static_delegate == null) - efl_ui_relative_layout_relation_right_set_static_delegate = new efl_ui_relative_layout_relation_right_set_delegate(relation_right_set); - if (methods.FirstOrDefault(m => m.Name == "SetRelationRight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_right_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_right_set_static_delegate)}); - if (efl_ui_relative_layout_relation_top_get_static_delegate == null) - efl_ui_relative_layout_relation_top_get_static_delegate = new efl_ui_relative_layout_relation_top_get_delegate(relation_top_get); - if (methods.FirstOrDefault(m => m.Name == "GetRelationTop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_top_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_top_get_static_delegate)}); - if (efl_ui_relative_layout_relation_top_set_static_delegate == null) - efl_ui_relative_layout_relation_top_set_static_delegate = new efl_ui_relative_layout_relation_top_set_delegate(relation_top_set); - if (methods.FirstOrDefault(m => m.Name == "SetRelationTop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_top_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_top_set_static_delegate)}); - if (efl_ui_relative_layout_relation_bottom_get_static_delegate == null) - efl_ui_relative_layout_relation_bottom_get_static_delegate = new efl_ui_relative_layout_relation_bottom_get_delegate(relation_bottom_get); - if (methods.FirstOrDefault(m => m.Name == "GetRelationBottom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_bottom_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_bottom_get_static_delegate)}); - if (efl_ui_relative_layout_relation_bottom_set_static_delegate == null) - efl_ui_relative_layout_relation_bottom_set_static_delegate = new efl_ui_relative_layout_relation_bottom_set_delegate(relation_bottom_set); - if (methods.FirstOrDefault(m => m.Name == "SetRelationBottom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_relation_bottom_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_bottom_set_static_delegate)}); - if (efl_ui_relative_layout_unregister_static_delegate == null) - efl_ui_relative_layout_unregister_static_delegate = new efl_ui_relative_layout_unregister_delegate(unregister); - if (methods.FirstOrDefault(m => m.Name == "Unregister") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_unregister_static_delegate)}); - if (efl_ui_relative_layout_unregister_all_static_delegate == null) - efl_ui_relative_layout_unregister_all_static_delegate = new efl_ui_relative_layout_unregister_all_delegate(unregister_all); - if (methods.FirstOrDefault(m => m.Name == "UnregisterAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_unregister_all"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_unregister_all_static_delegate)}); - if (efl_ui_relative_layout_children_iterate_static_delegate == null) - efl_ui_relative_layout_children_iterate_static_delegate = new efl_ui_relative_layout_children_iterate_delegate(children_iterate); - if (methods.FirstOrDefault(m => m.Name == "ChildrenIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_relative_layout_children_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_children_iterate_static_delegate)}); - if (efl_pack_layout_request_static_delegate == null) - efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); - if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate)}); - if (efl_pack_layout_update_static_delegate == null) - efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Widget.NativeMethods { - return Efl.Ui.RelativeLayout.efl_ui_relative_layout_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.RelativeLayout.efl_ui_relative_layout_class_get(); - } - - - private delegate void efl_ui_relative_layout_relation_left_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Object target, out double relative); + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_relative_layout_relation_left_get_static_delegate == null) + { + efl_ui_relative_layout_relation_left_get_static_delegate = new efl_ui_relative_layout_relation_left_get_delegate(relation_left_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRelationLeft") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_relative_layout_relation_left_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_left_get_static_delegate) }); + } - public delegate void efl_ui_relative_layout_relation_left_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Object target, out double relative); - public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_left_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_relative_layout_relation_left_get"); - private static void relation_left_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative) - { - Eina.Log.Debug("function efl_ui_relative_layout_relation_left_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - target = default(Efl.Object); relative = default(double); - try { - ((RelativeLayout)wrapper).GetRelationLeft( child, out target, out relative); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_relative_layout_relation_left_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative); - } - } - private static efl_ui_relative_layout_relation_left_get_delegate efl_ui_relative_layout_relation_left_get_static_delegate; + if (efl_ui_relative_layout_relation_left_set_static_delegate == null) + { + efl_ui_relative_layout_relation_left_set_static_delegate = new efl_ui_relative_layout_relation_left_set_delegate(relation_left_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRelationLeft") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_relative_layout_relation_left_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_left_set_static_delegate) }); + } - private delegate void efl_ui_relative_layout_relation_left_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target, double relative); + if (efl_ui_relative_layout_relation_right_get_static_delegate == null) + { + efl_ui_relative_layout_relation_right_get_static_delegate = new efl_ui_relative_layout_relation_right_get_delegate(relation_right_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRelationRight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_relative_layout_relation_right_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_right_get_static_delegate) }); + } - public delegate void efl_ui_relative_layout_relation_left_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target, double relative); - public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_left_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_relative_layout_relation_left_set"); - private static void relation_left_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative) - { - Eina.Log.Debug("function efl_ui_relative_layout_relation_left_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((RelativeLayout)wrapper).SetRelationLeft( child, target, relative); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_relative_layout_relation_left_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative); - } - } - private static efl_ui_relative_layout_relation_left_set_delegate efl_ui_relative_layout_relation_left_set_static_delegate; + if (efl_ui_relative_layout_relation_right_set_static_delegate == null) + { + efl_ui_relative_layout_relation_right_set_static_delegate = new efl_ui_relative_layout_relation_right_set_delegate(relation_right_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRelationRight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_relative_layout_relation_right_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_right_set_static_delegate) }); + } - private delegate void efl_ui_relative_layout_relation_right_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Object target, out double relative); + if (efl_ui_relative_layout_relation_top_get_static_delegate == null) + { + efl_ui_relative_layout_relation_top_get_static_delegate = new efl_ui_relative_layout_relation_top_get_delegate(relation_top_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRelationTop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_relative_layout_relation_top_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_top_get_static_delegate) }); + } - public delegate void efl_ui_relative_layout_relation_right_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Object target, out double relative); - public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_right_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_relative_layout_relation_right_get"); - private static void relation_right_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative) - { - Eina.Log.Debug("function efl_ui_relative_layout_relation_right_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - target = default(Efl.Object); relative = default(double); - try { - ((RelativeLayout)wrapper).GetRelationRight( child, out target, out relative); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_relative_layout_relation_right_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative); - } - } - private static efl_ui_relative_layout_relation_right_get_delegate efl_ui_relative_layout_relation_right_get_static_delegate; + if (efl_ui_relative_layout_relation_top_set_static_delegate == null) + { + efl_ui_relative_layout_relation_top_set_static_delegate = new efl_ui_relative_layout_relation_top_set_delegate(relation_top_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRelationTop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_relative_layout_relation_top_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_top_set_static_delegate) }); + } - private delegate void efl_ui_relative_layout_relation_right_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target, double relative); + if (efl_ui_relative_layout_relation_bottom_get_static_delegate == null) + { + efl_ui_relative_layout_relation_bottom_get_static_delegate = new efl_ui_relative_layout_relation_bottom_get_delegate(relation_bottom_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRelationBottom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_relative_layout_relation_bottom_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_bottom_get_static_delegate) }); + } - public delegate void efl_ui_relative_layout_relation_right_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target, double relative); - public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_right_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_relative_layout_relation_right_set"); - private static void relation_right_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative) - { - Eina.Log.Debug("function efl_ui_relative_layout_relation_right_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((RelativeLayout)wrapper).SetRelationRight( child, target, relative); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_relative_layout_relation_right_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative); - } - } - private static efl_ui_relative_layout_relation_right_set_delegate efl_ui_relative_layout_relation_right_set_static_delegate; + if (efl_ui_relative_layout_relation_bottom_set_static_delegate == null) + { + efl_ui_relative_layout_relation_bottom_set_static_delegate = new efl_ui_relative_layout_relation_bottom_set_delegate(relation_bottom_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRelationBottom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_relative_layout_relation_bottom_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_relation_bottom_set_static_delegate) }); + } - private delegate void efl_ui_relative_layout_relation_top_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Object target, out double relative); + if (efl_ui_relative_layout_unregister_static_delegate == null) + { + efl_ui_relative_layout_unregister_static_delegate = new efl_ui_relative_layout_unregister_delegate(unregister); + } + if (methods.FirstOrDefault(m => m.Name == "Unregister") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_relative_layout_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_unregister_static_delegate) }); + } - public delegate void efl_ui_relative_layout_relation_top_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Object target, out double relative); - public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_top_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_relative_layout_relation_top_get"); - private static void relation_top_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative) - { - Eina.Log.Debug("function efl_ui_relative_layout_relation_top_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - target = default(Efl.Object); relative = default(double); - try { - ((RelativeLayout)wrapper).GetRelationTop( child, out target, out relative); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_relative_layout_relation_top_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative); - } - } - private static efl_ui_relative_layout_relation_top_get_delegate efl_ui_relative_layout_relation_top_get_static_delegate; + if (efl_ui_relative_layout_unregister_all_static_delegate == null) + { + efl_ui_relative_layout_unregister_all_static_delegate = new efl_ui_relative_layout_unregister_all_delegate(unregister_all); + } + if (methods.FirstOrDefault(m => m.Name == "UnregisterAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_relative_layout_unregister_all"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_unregister_all_static_delegate) }); + } - private delegate void efl_ui_relative_layout_relation_top_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target, double relative); + if (efl_ui_relative_layout_children_iterate_static_delegate == null) + { + efl_ui_relative_layout_children_iterate_static_delegate = new efl_ui_relative_layout_children_iterate_delegate(children_iterate); + } + if (methods.FirstOrDefault(m => m.Name == "ChildrenIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_relative_layout_children_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_relative_layout_children_iterate_static_delegate) }); + } - public delegate void efl_ui_relative_layout_relation_top_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target, double relative); - public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_top_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_relative_layout_relation_top_set"); - private static void relation_top_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative) - { - Eina.Log.Debug("function efl_ui_relative_layout_relation_top_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((RelativeLayout)wrapper).SetRelationTop( child, target, relative); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_relative_layout_relation_top_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative); - } - } - private static efl_ui_relative_layout_relation_top_set_delegate efl_ui_relative_layout_relation_top_set_static_delegate; + if (efl_pack_layout_request_static_delegate == null) + { + efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); + } + if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate) }); + } - private delegate void efl_ui_relative_layout_relation_bottom_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Object target, out double relative); + if (efl_pack_layout_update_static_delegate == null) + { + efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); + } + if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate) }); + } - public delegate void efl_ui_relative_layout_relation_bottom_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Object target, out double relative); - public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_bottom_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_relative_layout_relation_bottom_get"); - private static void relation_bottom_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative) - { - Eina.Log.Debug("function efl_ui_relative_layout_relation_bottom_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - target = default(Efl.Object); relative = default(double); - try { - ((RelativeLayout)wrapper).GetRelationBottom( child, out target, out relative); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_relative_layout_relation_bottom_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.RelativeLayout.efl_ui_relative_layout_class_get(); } - } - private static efl_ui_relative_layout_relation_bottom_get_delegate efl_ui_relative_layout_relation_bottom_get_static_delegate; - - - private delegate void efl_ui_relative_layout_relation_bottom_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target, double relative); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_ui_relative_layout_relation_left_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Object target, out double relative); + + + public delegate void efl_ui_relative_layout_relation_left_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Object target, out double relative); + + public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_left_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_relative_layout_relation_left_get"); + + private static void relation_left_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative) + { + Eina.Log.Debug("function efl_ui_relative_layout_relation_left_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + target = default(Efl.Object); relative = default(double); + try + { + ((RelativeLayout)wrapper).GetRelationLeft(child, out target, out relative); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_relative_layout_relation_left_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative); + } + } - public delegate void efl_ui_relative_layout_relation_bottom_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target, double relative); - public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_bottom_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_relative_layout_relation_bottom_set"); - private static void relation_bottom_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative) - { - Eina.Log.Debug("function efl_ui_relative_layout_relation_bottom_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((RelativeLayout)wrapper).SetRelationBottom( child, target, relative); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_relative_layout_relation_bottom_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative); + private static efl_ui_relative_layout_relation_left_get_delegate efl_ui_relative_layout_relation_left_get_static_delegate; + + + private delegate void efl_ui_relative_layout_relation_left_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object target, double relative); + + + public delegate void efl_ui_relative_layout_relation_left_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object target, double relative); + + public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_left_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_relative_layout_relation_left_set"); + + private static void relation_left_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative) + { + Eina.Log.Debug("function efl_ui_relative_layout_relation_left_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((RelativeLayout)wrapper).SetRelationLeft(child, target, relative); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_relative_layout_relation_left_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative); + } } - } - private static efl_ui_relative_layout_relation_bottom_set_delegate efl_ui_relative_layout_relation_bottom_set_static_delegate; + private static efl_ui_relative_layout_relation_left_set_delegate efl_ui_relative_layout_relation_left_set_static_delegate; + + + private delegate void efl_ui_relative_layout_relation_right_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Object target, out double relative); + + + public delegate void efl_ui_relative_layout_relation_right_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Object target, out double relative); + + public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_right_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_relative_layout_relation_right_get"); + + private static void relation_right_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative) + { + Eina.Log.Debug("function efl_ui_relative_layout_relation_right_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + target = default(Efl.Object); relative = default(double); + try + { + ((RelativeLayout)wrapper).GetRelationRight(child, out target, out relative); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_relative_layout_relation_right_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative); + } + } - private delegate void efl_ui_relative_layout_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child); + private static efl_ui_relative_layout_relation_right_get_delegate efl_ui_relative_layout_relation_right_get_static_delegate; + + + private delegate void efl_ui_relative_layout_relation_right_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object target, double relative); + + + public delegate void efl_ui_relative_layout_relation_right_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object target, double relative); + + public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_right_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_relative_layout_relation_right_set"); + + private static void relation_right_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative) + { + Eina.Log.Debug("function efl_ui_relative_layout_relation_right_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((RelativeLayout)wrapper).SetRelationRight(child, target, relative); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_relative_layout_relation_right_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative); + } + } + private static efl_ui_relative_layout_relation_right_set_delegate efl_ui_relative_layout_relation_right_set_static_delegate; + + + private delegate void efl_ui_relative_layout_relation_top_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Object target, out double relative); + + + public delegate void efl_ui_relative_layout_relation_top_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Object target, out double relative); + + public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_top_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_relative_layout_relation_top_get"); + + private static void relation_top_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative) + { + Eina.Log.Debug("function efl_ui_relative_layout_relation_top_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + target = default(Efl.Object); relative = default(double); + try + { + ((RelativeLayout)wrapper).GetRelationTop(child, out target, out relative); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_relative_layout_relation_top_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative); + } + } - public delegate void efl_ui_relative_layout_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object child); - public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_unregister_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_relative_layout_unregister"); - private static void unregister(System.IntPtr obj, System.IntPtr pd, Efl.Object child) - { - Eina.Log.Debug("function efl_ui_relative_layout_unregister was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((RelativeLayout)wrapper).Unregister( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_relative_layout_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + private static efl_ui_relative_layout_relation_top_get_delegate efl_ui_relative_layout_relation_top_get_static_delegate; + + + private delegate void efl_ui_relative_layout_relation_top_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object target, double relative); + + + public delegate void efl_ui_relative_layout_relation_top_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object target, double relative); + + public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_top_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_relative_layout_relation_top_set"); + + private static void relation_top_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative) + { + Eina.Log.Debug("function efl_ui_relative_layout_relation_top_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((RelativeLayout)wrapper).SetRelationTop(child, target, relative); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_relative_layout_relation_top_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative); + } } - } - private static efl_ui_relative_layout_unregister_delegate efl_ui_relative_layout_unregister_static_delegate; + private static efl_ui_relative_layout_relation_top_set_delegate efl_ui_relative_layout_relation_top_set_static_delegate; + + + private delegate void efl_ui_relative_layout_relation_bottom_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Object target, out double relative); + + + public delegate void efl_ui_relative_layout_relation_bottom_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Object target, out double relative); + + public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_bottom_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_relative_layout_relation_bottom_get"); + + private static void relation_bottom_get(System.IntPtr obj, System.IntPtr pd, Efl.Object child, out Efl.Object target, out double relative) + { + Eina.Log.Debug("function efl_ui_relative_layout_relation_bottom_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + target = default(Efl.Object); relative = default(double); + try + { + ((RelativeLayout)wrapper).GetRelationBottom(child, out target, out relative); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_relative_layout_relation_bottom_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, out target, out relative); + } + } - private delegate void efl_ui_relative_layout_unregister_all_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_relative_layout_relation_bottom_get_delegate efl_ui_relative_layout_relation_bottom_get_static_delegate; + + + private delegate void efl_ui_relative_layout_relation_bottom_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object target, double relative); + + + public delegate void efl_ui_relative_layout_relation_bottom_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object target, double relative); + + public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_relation_bottom_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_relative_layout_relation_bottom_set"); + + private static void relation_bottom_set(System.IntPtr obj, System.IntPtr pd, Efl.Object child, Efl.Object target, double relative) + { + Eina.Log.Debug("function efl_ui_relative_layout_relation_bottom_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((RelativeLayout)wrapper).SetRelationBottom(child, target, relative); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_relative_layout_relation_bottom_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, target, relative); + } + } + private static efl_ui_relative_layout_relation_bottom_set_delegate efl_ui_relative_layout_relation_bottom_set_static_delegate; + + + private delegate void efl_ui_relative_layout_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child); + + + public delegate void efl_ui_relative_layout_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child); + + public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_unregister_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_relative_layout_unregister"); + + private static void unregister(System.IntPtr obj, System.IntPtr pd, Efl.Object child) + { + Eina.Log.Debug("function efl_ui_relative_layout_unregister was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((RelativeLayout)wrapper).Unregister(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_relative_layout_unregister_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_unregister_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_relative_layout_unregister_all"); - private static void unregister_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_relative_layout_unregister_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((RelativeLayout)wrapper).UnregisterAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_relative_layout_unregister_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_ui_relative_layout_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } } - } - private static efl_ui_relative_layout_unregister_all_delegate efl_ui_relative_layout_unregister_all_static_delegate; + private static efl_ui_relative_layout_unregister_delegate efl_ui_relative_layout_unregister_static_delegate; + + + private delegate void efl_ui_relative_layout_unregister_all_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_relative_layout_unregister_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_unregister_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_relative_layout_unregister_all"); + + private static void unregister_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_relative_layout_unregister_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((RelativeLayout)wrapper).UnregisterAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_relative_layout_unregister_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate System.IntPtr efl_ui_relative_layout_children_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_relative_layout_unregister_all_delegate efl_ui_relative_layout_unregister_all_static_delegate; + + + private delegate System.IntPtr efl_ui_relative_layout_children_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_relative_layout_children_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_children_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_relative_layout_children_iterate"); + + private static System.IntPtr children_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_relative_layout_children_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((RelativeLayout)wrapper).ChildrenIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - public delegate System.IntPtr efl_ui_relative_layout_children_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_relative_layout_children_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_relative_layout_children_iterate"); - private static System.IntPtr children_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_relative_layout_children_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((RelativeLayout)wrapper).ChildrenIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_ui_relative_layout_children_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_relative_layout_children_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_relative_layout_children_iterate_delegate efl_ui_relative_layout_children_iterate_static_delegate; - - - private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_relative_layout_children_iterate_delegate efl_ui_relative_layout_children_iterate_static_delegate; + + + private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_request"); + + private static void layout_request(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_request was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((RelativeLayout)wrapper).LayoutRequest(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_request"); - private static void layout_request(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_request was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((RelativeLayout)wrapper).LayoutRequest(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + + + private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_update"); + + private static void layout_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((RelativeLayout)wrapper).UpdateLayout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; - private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_update"); - private static void layout_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((RelativeLayout)wrapper).UpdateLayout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup.eo.cs index 08f60de..e364cdc 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup.eo.cs @@ -3,79 +3,105 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// EFL UI Scroll Alert Popup class -[ScrollAlertPopupNativeInherit] +[Efl.Ui.ScrollAlertPopup.NativeMethods] public class ScrollAlertPopup : Efl.Ui.AlertPopup, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ScrollAlertPopup)) - return Efl.Ui.ScrollAlertPopupNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ScrollAlertPopup)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_scroll_alert_popup_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public ScrollAlertPopup(Efl.Object parent - , System.String style = null) : - base(efl_ui_scroll_alert_popup_class_get(), typeof(ScrollAlertPopup), parent) + , System.String style = null) : base(efl_ui_scroll_alert_popup_class_get(), typeof(ScrollAlertPopup), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ScrollAlertPopup(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ScrollAlertPopup(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ScrollAlertPopup(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Get the expandable max size of popup. /// If the given max_size is -1, then popup appears with its size. However, if the given max_size is bigger than 0 the popup size is up to the given max_size. If popup content's min size is bigger than the given max_size the scroller appears in the popup content area. /// A 2D max size in pixel units. virtual public Eina.Size2D GetExpandable() { - var _ret_var = Efl.Ui.ScrollAlertPopupNativeInherit.efl_ui_scroll_alert_popup_expandable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.ScrollAlertPopup.NativeMethods.efl_ui_scroll_alert_popup_expandable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the expandable max size of popup. /// If the given max_size is -1, then a popup appears with its size. However, if the given max_size is bigger than 0 the popup size is up to the given max_size. If popup content's min size is bigger than the given max_size the scroller appears in the popup content area. /// A 2D max size in pixel units. - /// - virtual public void SetExpandable( Eina.Size2D max_size) { + virtual public void SetExpandable(Eina.Size2D max_size) { Eina.Size2D.NativeStruct _in_max_size = max_size; - Efl.Ui.ScrollAlertPopupNativeInherit.efl_ui_scroll_alert_popup_expandable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_max_size); + Efl.Ui.ScrollAlertPopup.NativeMethods.efl_ui_scroll_alert_popup_expandable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_max_size); Eina.Error.RaiseIfUnhandledException(); } /// Get the expandable max size of popup. @@ -83,87 +109,133 @@ public class ScrollAlertPopup : Efl.Ui.AlertPopup, Efl.Eo.IWrapper /// A 2D max size in pixel units. public Eina.Size2D Expandable { get { return GetExpandable(); } - set { SetExpandable( value); } + set { SetExpandable(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.ScrollAlertPopup.efl_ui_scroll_alert_popup_class_get(); } -} -public class ScrollAlertPopupNativeInherit : Efl.Ui.AlertPopupNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_scroll_alert_popup_expandable_get_static_delegate == null) - efl_ui_scroll_alert_popup_expandable_get_static_delegate = new efl_ui_scroll_alert_popup_expandable_get_delegate(expandable_get); - if (methods.FirstOrDefault(m => m.Name == "GetExpandable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scroll_alert_popup_expandable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scroll_alert_popup_expandable_get_static_delegate)}); - if (efl_ui_scroll_alert_popup_expandable_set_static_delegate == null) - efl_ui_scroll_alert_popup_expandable_set_static_delegate = new efl_ui_scroll_alert_popup_expandable_set_delegate(expandable_set); - if (methods.FirstOrDefault(m => m.Name == "SetExpandable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scroll_alert_popup_expandable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scroll_alert_popup_expandable_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.AlertPopup.NativeMethods { - return Efl.Ui.ScrollAlertPopup.efl_ui_scroll_alert_popup_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.ScrollAlertPopup.efl_ui_scroll_alert_popup_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_scroll_alert_popup_expandable_get_static_delegate == null) + { + efl_ui_scroll_alert_popup_expandable_get_static_delegate = new efl_ui_scroll_alert_popup_expandable_get_delegate(expandable_get); + } - private delegate Eina.Size2D.NativeStruct efl_ui_scroll_alert_popup_expandable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetExpandable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scroll_alert_popup_expandable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scroll_alert_popup_expandable_get_static_delegate) }); + } + if (efl_ui_scroll_alert_popup_expandable_set_static_delegate == null) + { + efl_ui_scroll_alert_popup_expandable_set_static_delegate = new efl_ui_scroll_alert_popup_expandable_set_delegate(expandable_set); + } - public delegate Eina.Size2D.NativeStruct efl_ui_scroll_alert_popup_expandable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scroll_alert_popup_expandable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scroll_alert_popup_expandable_get"); - private static Eina.Size2D.NativeStruct expandable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scroll_alert_popup_expandable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((ScrollAlertPopup)wrapper).GetExpandable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetExpandable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scroll_alert_popup_expandable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scroll_alert_popup_expandable_set_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ScrollAlertPopup.efl_ui_scroll_alert_popup_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.Size2D.NativeStruct efl_ui_scroll_alert_popup_expandable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_ui_scroll_alert_popup_expandable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scroll_alert_popup_expandable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scroll_alert_popup_expandable_get"); + + private static Eina.Size2D.NativeStruct expandable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scroll_alert_popup_expandable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((ScrollAlertPopup)wrapper).GetExpandable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scroll_alert_popup_expandable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scroll_alert_popup_expandable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scroll_alert_popup_expandable_get_delegate efl_ui_scroll_alert_popup_expandable_get_static_delegate; + private static efl_ui_scroll_alert_popup_expandable_get_delegate efl_ui_scroll_alert_popup_expandable_get_static_delegate; - private delegate void efl_ui_scroll_alert_popup_expandable_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size); + + private delegate void efl_ui_scroll_alert_popup_expandable_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size); + + public delegate void efl_ui_scroll_alert_popup_expandable_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct max_size); - public delegate void efl_ui_scroll_alert_popup_expandable_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct max_size); - public static Efl.Eo.FunctionWrapper efl_ui_scroll_alert_popup_expandable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scroll_alert_popup_expandable_set"); - private static void expandable_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size) - { - Eina.Log.Debug("function efl_ui_scroll_alert_popup_expandable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_max_size = max_size; + public static Efl.Eo.FunctionWrapper efl_ui_scroll_alert_popup_expandable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scroll_alert_popup_expandable_set"); + + private static void expandable_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size) + { + Eina.Log.Debug("function efl_ui_scroll_alert_popup_expandable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_max_size = max_size; - try { - ((ScrollAlertPopup)wrapper).SetExpandable( _in_max_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((ScrollAlertPopup)wrapper).SetExpandable(_in_max_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scroll_alert_popup_expandable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max_size); } - } else { - efl_ui_scroll_alert_popup_expandable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max_size); } - } - private static efl_ui_scroll_alert_popup_expandable_set_delegate efl_ui_scroll_alert_popup_expandable_set_static_delegate; + + private static efl_ui_scroll_alert_popup_expandable_set_delegate efl_ui_scroll_alert_popup_expandable_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup_part.eo.cs index 2d7f3dd..3344db3 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup_part.eo.cs @@ -3,130 +3,165 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI Scroll Alert Popup internal part class -[ScrollAlertPopupPartNativeInherit] +[Efl.Ui.ScrollAlertPopupPart.NativeMethods] public class ScrollAlertPopupPart : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IContent,Efl.IText { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ScrollAlertPopupPart)) - return Efl.Ui.ScrollAlertPopupPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ScrollAlertPopupPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_scroll_alert_popup_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public ScrollAlertPopupPart(Efl.Object parent= null - ) : - base(efl_ui_scroll_alert_popup_part_class_get(), typeof(ScrollAlertPopupPart), parent) + ) : base(efl_ui_scroll_alert_popup_part_class_get(), typeof(ScrollAlertPopupPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ScrollAlertPopupPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ScrollAlertPopupPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ScrollAlertPopupPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -137,7 +172,7 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -145,183 +180,280 @@ private static object ContentChangedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.ScrollAlertPopupPart.efl_ui_scroll_alert_popup_part_class_get(); } -} -public class ScrollAlertPopupPartNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.ScrollAlertPopupPart.efl_ui_scroll_alert_popup_part_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.ScrollAlertPopupPart.efl_ui_scroll_alert_popup_part_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((ScrollAlertPopupPart)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } + + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ScrollAlertPopupPart.efl_ui_scroll_alert_popup_part_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((ScrollAlertPopupPart)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ScrollAlertPopupPart)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ScrollAlertPopupPart)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((ScrollAlertPopupPart)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + private static efl_content_set_delegate efl_content_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((ScrollAlertPopupPart)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((ScrollAlertPopupPart)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((ScrollAlertPopupPart)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ScrollAlertPopupPart)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ScrollAlertPopupPart)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + + private static efl_text_set_delegate efl_text_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_manager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_manager.eo.cs index 0f3b95d..45eef52 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_manager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_manager.eo.cs @@ -3,1078 +3,1318 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace Scroll { +namespace Efl { + +namespace Ui { + +namespace Scroll { + /// Efl ui scroll manager class -[ManagerNativeInherit] +[Efl.Ui.Scroll.Manager.NativeMethods] public class Manager : Efl.Object, Efl.Eo.IWrapper,Efl.Ui.II18n,Efl.Ui.IScrollable,Efl.Ui.IScrollableInteractive,Efl.Ui.IScrollbar { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Manager)) - return Efl.Ui.Scroll.ManagerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Manager)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_scroll_manager_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Manager(Efl.Object parent= null - ) : - base(efl_ui_scroll_manager_class_get(), typeof(Manager), parent) + ) : base(efl_ui_scroll_manager_class_get(), typeof(Manager), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Manager(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Manager(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Manager(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ScrollStartEvtKey = new object(); + /// Called when scroll operation starts public event EventHandler ScrollStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStartEvt. - public void On_ScrollStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStartEvt_delegate; - private void on_ScrollStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling public event EventHandler ScrollEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollEvt_delegate)) { - eventHandlers.AddHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL"; - if (RemoveNativeEventHandler(key, this.evt_ScrollEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollEvt. - public void On_ScrollEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollEvt_delegate; - private void on_ScrollEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation stops public event EventHandler ScrollStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStopEvt. - public void On_ScrollStopEvt(EventArgs e) + public void OnScrollStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStopEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStopEvt_delegate; - private void on_ScrollStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling upwards public event EventHandler ScrollUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.AddHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollUpEvt. - public void On_ScrollUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollUpEvt_delegate; - private void on_ScrollUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling downwards public event EventHandler ScrollDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.AddHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDownEvt. - public void On_ScrollDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDownEvt_delegate; - private void on_ScrollDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling left public event EventHandler ScrollLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.AddHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollLeftEvt. - public void On_ScrollLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollLeftEvt_delegate; - private void on_ScrollLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling right public event EventHandler ScrollRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.AddHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollRightEvt. - public void On_ScrollRightEvt(EventArgs e) + public void OnScrollRightEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollRightEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollRightEvt_delegate; - private void on_ScrollRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object EdgeUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the top edge public event EventHandler EdgeUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.AddHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_UP"; - if (RemoveNativeEventHandler(key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeUpEvt. - public void On_EdgeUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeUpEvt_delegate; - private void on_EdgeUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the bottom edge public event EventHandler EdgeDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.AddHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeDownEvt. - public void On_EdgeDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeDownEvt_delegate; - private void on_EdgeDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the left edge public event EventHandler EdgeLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.AddHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeLeftEvt. - public void On_EdgeLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeLeftEvt_delegate; - private void on_EdgeLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the right edge public event EventHandler EdgeRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.AddHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeRightEvt. - public void On_EdgeRightEvt(EventArgs e) + public void OnEdgeRightEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeRightEvtKey]; + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeRightEvt_delegate; - private void on_EdgeRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollAnimStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation starts public event EventHandler ScrollAnimStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStartEvt. - public void On_ScrollAnimStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStartEvt_delegate; - private void on_ScrollAnimStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation stopps public event EventHandler ScrollAnimStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStopEvt. - public void On_ScrollAnimStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStopEvt_delegate; - private void on_ScrollAnimStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag starts public event EventHandler ScrollDragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStartEvt. - public void On_ScrollDragStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStartEvt_delegate; - private void on_ScrollDragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDragStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag stops public event EventHandler ScrollDragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStopEvt. - public void On_ScrollDragStopEvt(EventArgs e) + public void OnScrollDragStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStopEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStopEvt_delegate; - private void on_ScrollDragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object BarPressEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar is pressed public event EventHandler BarPressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPressEvt_delegate)) { - eventHandlers.AddHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarPressEvt_delegate)) { - eventHandlers.RemoveHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPressEvt. - public void On_BarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) + public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPressEvt_delegate; - private void on_BarPressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarPressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarUnpressEvtKey = new object(); /// Called when bar is unpressed public event EventHandler BarUnpressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.AddHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.RemoveHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarUnpressEvt. - public void On_BarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) + public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarUnpressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarUnpressEvt_delegate; - private void on_BarUnpressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarUnpressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarDragEvtKey = new object(); /// Called when bar is dragged public event EventHandler BarDragEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarDragEvt_delegate)) { - eventHandlers.AddHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (RemoveNativeEventHandler(key, this.evt_BarDragEvt_delegate)) { - eventHandlers.RemoveHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarDragEvt. - public void On_BarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) + public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarDragEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarDragEvt_delegate; - private void on_BarDragEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarDragEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarSizeChangedEvtKey = new object(); /// Called when bar size is changed public event EventHandler BarSizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.AddHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarSizeChangedEvt. - public void On_BarSizeChangedEvt(EventArgs e) + public void OnBarSizeChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarSizeChangedEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarSizeChangedEvt_delegate; - private void on_BarSizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_BarSizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object BarPosChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar position is changed public event EventHandler BarPosChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.AddHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPosChangedEvt. - public void On_BarPosChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPosChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPosChangedEvt_delegate; - private void on_BarPosChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnBarPosChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_BarPosChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BarShowEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Callend when bar is shown public event EventHandler BarShowEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarShowEvt_delegate)) { - eventHandlers.AddHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (RemoveNativeEventHandler(key, this.evt_BarShowEvt_delegate)) { - eventHandlers.RemoveHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarShowEvt. - public void On_BarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) + public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarShowEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarShowEvt_delegate; - private void on_BarShowEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarShowEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarHideEvtKey = new object(); /// Called when bar is hidden public event EventHandler BarHideEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarHideEvt_delegate)) { - eventHandlers.AddHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (RemoveNativeEventHandler(key, this.evt_BarHideEvt_delegate)) { - eventHandlers.RemoveHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarHideEvt. - public void On_BarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarHideEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarHideEvt_delegate; - private void on_BarHideEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { - Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarHideEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ScrollStartEvt_delegate = new Efl.EventCb(on_ScrollStartEvt_NativeCallback); - evt_ScrollEvt_delegate = new Efl.EventCb(on_ScrollEvt_NativeCallback); - evt_ScrollStopEvt_delegate = new Efl.EventCb(on_ScrollStopEvt_NativeCallback); - evt_ScrollUpEvt_delegate = new Efl.EventCb(on_ScrollUpEvt_NativeCallback); - evt_ScrollDownEvt_delegate = new Efl.EventCb(on_ScrollDownEvt_NativeCallback); - evt_ScrollLeftEvt_delegate = new Efl.EventCb(on_ScrollLeftEvt_NativeCallback); - evt_ScrollRightEvt_delegate = new Efl.EventCb(on_ScrollRightEvt_NativeCallback); - evt_EdgeUpEvt_delegate = new Efl.EventCb(on_EdgeUpEvt_NativeCallback); - evt_EdgeDownEvt_delegate = new Efl.EventCb(on_EdgeDownEvt_NativeCallback); - evt_EdgeLeftEvt_delegate = new Efl.EventCb(on_EdgeLeftEvt_NativeCallback); - evt_EdgeRightEvt_delegate = new Efl.EventCb(on_EdgeRightEvt_NativeCallback); - evt_ScrollAnimStartEvt_delegate = new Efl.EventCb(on_ScrollAnimStartEvt_NativeCallback); - evt_ScrollAnimStopEvt_delegate = new Efl.EventCb(on_ScrollAnimStopEvt_NativeCallback); - evt_ScrollDragStartEvt_delegate = new Efl.EventCb(on_ScrollDragStartEvt_NativeCallback); - evt_ScrollDragStopEvt_delegate = new Efl.EventCb(on_ScrollDragStopEvt_NativeCallback); - evt_BarPressEvt_delegate = new Efl.EventCb(on_BarPressEvt_NativeCallback); - evt_BarUnpressEvt_delegate = new Efl.EventCb(on_BarUnpressEvt_NativeCallback); - evt_BarDragEvt_delegate = new Efl.EventCb(on_BarDragEvt_NativeCallback); - evt_BarSizeChangedEvt_delegate = new Efl.EventCb(on_BarSizeChangedEvt_NativeCallback); - evt_BarPosChangedEvt_delegate = new Efl.EventCb(on_BarPosChangedEvt_NativeCallback); - evt_BarShowEvt_delegate = new Efl.EventCb(on_BarShowEvt_NativeCallback); - evt_BarHideEvt_delegate = new Efl.EventCb(on_BarHideEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// This is the internal pan object managed by scroll manager. /// This property is protected as it is meant for scrollable object implementations only, to set and access the internal pan object. If pan is set to NULL, scrolling does not work. /// Pan object - /// - virtual public void SetPan( Efl.Ui.Pan pan) { - Efl.Ui.Scroll.ManagerNativeInherit.efl_ui_scroll_manager_pan_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pan); + virtual public void SetPan(Efl.Ui.Pan pan) { + Efl.Ui.Scroll.Manager.NativeMethods.efl_ui_scroll_manager_pan_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pan); Eina.Error.RaiseIfUnhandledException(); } /// Whether this object should be mirrored. /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). /// true for RTL, false for LTR (default). virtual public bool GetMirrored() { - var _ret_var = Efl.Ui.II18nNativeInherit.efl_ui_mirrored_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether this object should be mirrored. /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). /// true for RTL, false for LTR (default). - /// - virtual public void SetMirrored( bool rtl) { - Efl.Ui.II18nNativeInherit.efl_ui_mirrored_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), rtl); + virtual public void SetMirrored(bool rtl) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),rtl); Eina.Error.RaiseIfUnhandledException(); } /// Whether the property should be set automatically. @@ -1083,7 +1323,7 @@ private static object BarHideEvtKey = new object(); /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. /// Whether the widget uses automatic mirroring virtual public bool GetMirroredAutomatic() { - var _ret_var = Efl.Ui.II18nNativeInherit.efl_ui_mirrored_automatic_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1092,51 +1332,48 @@ private static object BarHideEvtKey = new object(); /// /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. /// Whether the widget uses automatic mirroring - /// - virtual public void SetMirroredAutomatic( bool automatic) { - Efl.Ui.II18nNativeInherit.efl_ui_mirrored_automatic_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), automatic); + virtual public void SetMirroredAutomatic(bool automatic) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),automatic); Eina.Error.RaiseIfUnhandledException(); } /// Gets the language for this object. /// The current language. virtual public System.String GetLanguage() { - var _ret_var = Efl.Ui.II18nNativeInherit.efl_ui_language_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the language for this object. /// The current language. - /// - virtual public void SetLanguage( System.String language) { - Efl.Ui.II18nNativeInherit.efl_ui_language_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), language); + virtual public void SetLanguage(System.String language) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),language); Eina.Error.RaiseIfUnhandledException(); } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. virtual public Eina.Position2D GetContentPos() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. - /// - virtual public void SetContentPos( Eina.Position2D pos) { + virtual public void SetContentPos(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// The content size /// The content size in pixels. virtual public Eina.Size2D GetContentSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The viewport geometry /// It is absolute geometry. virtual public Eina.Rect GetViewportGeometry() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1144,78 +1381,71 @@ private static object BarHideEvtKey = new object(); /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void GetBounceEnabled( out bool horiz, out bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out horiz, out vert); + virtual public void GetBounceEnabled(out bool horiz, out bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void SetBounceEnabled( bool horiz, bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), horiz, vert); + virtual public void SetBounceEnabled(bool horiz, bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise virtual public bool GetScrollFreeze() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise - /// - virtual public void SetScrollFreeze( bool freeze) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), freeze); + virtual public void SetScrollFreeze(bool freeze) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),freeze); Eina.Error.RaiseIfUnhandledException(); } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise virtual public bool GetScrollHold() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise - /// - virtual public void SetScrollHold( bool hold) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hold); + virtual public void SetScrollHold(bool hold) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hold); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void GetLooping( out bool loop_h, out bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out loop_h, out loop_v); + virtual public void GetLooping(out bool loop_h, out bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out loop_h, out loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void SetLooping( bool loop_h, bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), loop_h, loop_v); + virtual public void SetLooping(bool loop_h, bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),loop_h, loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block virtual public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block - /// - virtual public void SetMovementBlock( Efl.Ui.ScrollBlock block) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), block); + virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),block); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -1228,9 +1458,8 @@ private static object BarHideEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void GetGravity( out double x, out double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetGravity(out double x, out double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -1243,106 +1472,96 @@ private static object BarHideEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void SetGravity( double x, double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetGravity(double x, double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size - /// - virtual public void SetMatchContent( bool w, bool h) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), w, h); + virtual public void SetMatchContent(bool w, bool h) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),w, h); Eina.Error.RaiseIfUnhandledException(); } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels virtual public Eina.Position2D GetStepSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels - /// - virtual public void SetStepSize( Eina.Position2D step) { + virtual public void SetStepSize(Eina.Position2D step) { Eina.Position2D.NativeStruct _in_step = step; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_step); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_step); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object. /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. /// The position where to scroll. and The size user want to see /// Whether to scroll with animation or not - /// - virtual public void Scroll( Eina.Rect rect, bool animation) { + virtual public void Scroll(Eina.Rect rect, bool animation) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect, animation); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect, animation); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void GetBarMode( out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out hbar, out vbar); + virtual public void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out hbar, out vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void SetBarMode( Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hbar, vbar); + virtual public void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hbar, vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar size. It is calculated based on viewport size-content sizes. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarSize( out double width, out double height) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out width, out height); + virtual public void GetBarSize(out double width, out double height) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out width, out height); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarPosition( out double posx, out double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out posx, out posy); + virtual public void GetBarPosition(out double posx, out double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out posx, out posy); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void SetBarPosition( double posx, double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), posx, posy); + virtual public void SetBarPosition(double posx, double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),posx, posy); Eina.Error.RaiseIfUnhandledException(); } /// Update bar visibility. /// The object will call this function whenever the bar need to be shown or hidden. - /// virtual public void UpdateBarVisibility() { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This is the internal pan object managed by scroll manager. /// This property is protected as it is meant for scrollable object implementations only, to set and access the internal pan object. If pan is set to NULL, scrolling does not work. /// Pan object public Efl.Ui.Pan Pan { - set { SetPan( value); } + set { SetPan(value); } } /// Whether this object should be mirrored. /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). /// true for RTL, false for LTR (default). public bool Mirrored { get { return GetMirrored(); } - set { SetMirrored( value); } + set { SetMirrored(value); } } /// Whether the property should be set automatically. /// If enabled, the system or application configuration will be used to set the value of . @@ -1351,19 +1570,19 @@ private static object BarHideEvtKey = new object(); /// Whether the widget uses automatic mirroring public bool MirroredAutomatic { get { return GetMirroredAutomatic(); } - set { SetMirroredAutomatic( value); } + set { SetMirroredAutomatic(value); } } /// The (human) language for this object. /// The current language. public System.String Language { get { return GetLanguage(); } - set { SetLanguage( value); } + set { SetLanguage(value); } } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. public Eina.Position2D ContentPos { get { return GetContentPos(); } - set { SetContentPos( value); } + set { SetContentPos(value); } } /// The content size /// The content size in pixels. @@ -1379,986 +1598,1561 @@ private static object BarHideEvtKey = new object(); /// true if freeze, false otherwise public bool ScrollFreeze { get { return GetScrollFreeze(); } - set { SetScrollFreeze( value); } + set { SetScrollFreeze(value); } } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise public bool ScrollHold { get { return GetScrollHold(); } - set { SetScrollHold( value); } + set { SetScrollHold(value); } } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block public Efl.Ui.ScrollBlock MovementBlock { get { return GetMovementBlock(); } - set { SetMovementBlock( value); } + set { SetMovementBlock(value); } } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels public Eina.Position2D StepSize { get { return GetStepSize(); } - set { SetStepSize( value); } + set { SetStepSize(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Scroll.Manager.efl_ui_scroll_manager_class_get(); } -} -public class ManagerNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_scroll_manager_pan_set_static_delegate == null) - efl_ui_scroll_manager_pan_set_static_delegate = new efl_ui_scroll_manager_pan_set_delegate(pan_set); - if (methods.FirstOrDefault(m => m.Name == "SetPan") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scroll_manager_pan_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scroll_manager_pan_set_static_delegate)}); - if (efl_ui_mirrored_get_static_delegate == null) - efl_ui_mirrored_get_static_delegate = new efl_ui_mirrored_get_delegate(mirrored_get); - if (methods.FirstOrDefault(m => m.Name == "GetMirrored") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_get_static_delegate)}); - if (efl_ui_mirrored_set_static_delegate == null) - efl_ui_mirrored_set_static_delegate = new efl_ui_mirrored_set_delegate(mirrored_set); - if (methods.FirstOrDefault(m => m.Name == "SetMirrored") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_set_static_delegate)}); - if (efl_ui_mirrored_automatic_get_static_delegate == null) - efl_ui_mirrored_automatic_get_static_delegate = new efl_ui_mirrored_automatic_get_delegate(mirrored_automatic_get); - if (methods.FirstOrDefault(m => m.Name == "GetMirroredAutomatic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_get_static_delegate)}); - if (efl_ui_mirrored_automatic_set_static_delegate == null) - efl_ui_mirrored_automatic_set_static_delegate = new efl_ui_mirrored_automatic_set_delegate(mirrored_automatic_set); - if (methods.FirstOrDefault(m => m.Name == "SetMirroredAutomatic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_mirrored_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_set_static_delegate)}); - if (efl_ui_language_get_static_delegate == null) - efl_ui_language_get_static_delegate = new efl_ui_language_get_delegate(language_get); - if (methods.FirstOrDefault(m => m.Name == "GetLanguage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_get_static_delegate)}); - if (efl_ui_language_set_static_delegate == null) - efl_ui_language_set_static_delegate = new efl_ui_language_set_delegate(language_set); - if (methods.FirstOrDefault(m => m.Name == "SetLanguage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_set_static_delegate)}); - if (efl_ui_scrollable_content_pos_get_static_delegate == null) - efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate)}); - if (efl_ui_scrollable_content_pos_set_static_delegate == null) - efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate)}); - if (efl_ui_scrollable_content_size_get_static_delegate == null) - efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate)}); - if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) - efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) - efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) - efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) - efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) - efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) - efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) - efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate)}); - if (efl_ui_scrollable_looping_get_static_delegate == null) - efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); - if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate)}); - if (efl_ui_scrollable_looping_set_static_delegate == null) - efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); - if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate)}); - if (efl_ui_scrollable_movement_block_get_static_delegate == null) - efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate)}); - if (efl_ui_scrollable_movement_block_set_static_delegate == null) - efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate)}); - if (efl_ui_scrollable_gravity_get_static_delegate == null) - efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate)}); - if (efl_ui_scrollable_gravity_set_static_delegate == null) - efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate)}); - if (efl_ui_scrollable_match_content_set_static_delegate == null) - efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); - if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate)}); - if (efl_ui_scrollable_step_size_get_static_delegate == null) - efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate)}); - if (efl_ui_scrollable_step_size_set_static_delegate == null) - efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate)}); - if (efl_ui_scrollable_scroll_static_delegate == null) - efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); - if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) - efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) - efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate)}); - if (efl_ui_scrollbar_bar_size_get_static_delegate == null) - efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_get_static_delegate == null) - efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_set_static_delegate == null) - efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate)}); - if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) - efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Scroll.Manager.efl_ui_scroll_manager_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Ui.Scroll.Manager.efl_ui_scroll_manager_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_scroll_manager_pan_set_static_delegate == null) + { + efl_ui_scroll_manager_pan_set_static_delegate = new efl_ui_scroll_manager_pan_set_delegate(pan_set); + } - private delegate void efl_ui_scroll_manager_pan_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Pan pan); + if (methods.FirstOrDefault(m => m.Name == "SetPan") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scroll_manager_pan_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scroll_manager_pan_set_static_delegate) }); + } + if (efl_ui_mirrored_get_static_delegate == null) + { + efl_ui_mirrored_get_static_delegate = new efl_ui_mirrored_get_delegate(mirrored_get); + } - public delegate void efl_ui_scroll_manager_pan_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Pan pan); - public static Efl.Eo.FunctionWrapper efl_ui_scroll_manager_pan_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scroll_manager_pan_set"); - private static void pan_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Pan pan) - { - Eina.Log.Debug("function efl_ui_scroll_manager_pan_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetPan( pan); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scroll_manager_pan_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pan); - } - } - private static efl_ui_scroll_manager_pan_set_delegate efl_ui_scroll_manager_pan_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_get_static_delegate) }); + } + if (efl_ui_mirrored_set_static_delegate == null) + { + efl_ui_mirrored_set_static_delegate = new efl_ui_mirrored_set_delegate(mirrored_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_mirrored_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_set_static_delegate) }); + } + if (efl_ui_mirrored_automatic_get_static_delegate == null) + { + efl_ui_mirrored_automatic_get_static_delegate = new efl_ui_mirrored_automatic_get_delegate(mirrored_automatic_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_mirrored_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_get"); - private static bool mirrored_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_mirrored_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Manager)wrapper).GetMirrored(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_mirrored_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_mirrored_get_delegate efl_ui_mirrored_get_static_delegate; + if (efl_ui_mirrored_automatic_set_static_delegate == null) + { + efl_ui_mirrored_automatic_set_static_delegate = new efl_ui_mirrored_automatic_set_delegate(mirrored_automatic_set); + } - private delegate void efl_ui_mirrored_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool rtl); + if (methods.FirstOrDefault(m => m.Name == "SetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_set_static_delegate) }); + } + if (efl_ui_language_get_static_delegate == null) + { + efl_ui_language_get_static_delegate = new efl_ui_language_get_delegate(language_get); + } - public delegate void efl_ui_mirrored_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool rtl); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_set"); - private static void mirrored_set(System.IntPtr obj, System.IntPtr pd, bool rtl) - { - Eina.Log.Debug("function efl_ui_mirrored_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetMirrored( rtl); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_mirrored_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rtl); - } - } - private static efl_ui_mirrored_set_delegate efl_ui_mirrored_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_get_static_delegate) }); + } + if (efl_ui_language_set_static_delegate == null) + { + efl_ui_language_set_static_delegate = new efl_ui_language_set_delegate(language_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_mirrored_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_set_static_delegate) }); + } + if (efl_ui_scrollable_content_pos_get_static_delegate == null) + { + efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_mirrored_automatic_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_automatic_get"); - private static bool mirrored_automatic_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_mirrored_automatic_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Manager)wrapper).GetMirroredAutomatic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_mirrored_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_mirrored_automatic_get_delegate efl_ui_mirrored_automatic_get_static_delegate; + if (efl_ui_scrollable_content_pos_set_static_delegate == null) + { + efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); + } - private delegate void efl_ui_mirrored_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); + } + if (efl_ui_scrollable_content_size_get_static_delegate == null) + { + efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); + } - public delegate void efl_ui_mirrored_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_mirrored_automatic_set"); - private static void mirrored_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) - { - Eina.Log.Debug("function efl_ui_mirrored_automatic_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetMirroredAutomatic( automatic); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_mirrored_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); - } - } - private static efl_ui_mirrored_automatic_set_delegate efl_ui_mirrored_automatic_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); + } + if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) + { + efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_language_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); + } + if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_language_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_language_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_language_get"); - private static System.String language_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_language_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Manager)wrapper).GetLanguage(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_language_get_delegate efl_ui_language_get_static_delegate; + if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); + } - private delegate void efl_ui_language_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); + } + if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); + } - public delegate void efl_ui_language_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); - public static Efl.Eo.FunctionWrapper efl_ui_language_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_language_set"); - private static void language_set(System.IntPtr obj, System.IntPtr pd, System.String language) - { - Eina.Log.Debug("function efl_ui_language_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetLanguage( language); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), language); - } - } - private static efl_ui_language_set_delegate efl_ui_language_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); + } + if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); + } - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); + } + if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); + } - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_get"); - private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Manager)wrapper).GetContentPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; + if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); + } - private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); + } + if (efl_ui_scrollable_looping_get_static_delegate == null) + { + efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); + } - public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_set"); - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((Manager)wrapper).SetContentPos( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); } - } else { - efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; + if (efl_ui_scrollable_looping_set_static_delegate == null) + { + efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); + } - private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); + } + if (efl_ui_scrollable_movement_block_get_static_delegate == null) + { + efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); + } - public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_size_get"); - private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Manager)wrapper).GetContentSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; + if (efl_ui_scrollable_movement_block_set_static_delegate == null) + { + efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); + } - private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); + } + if (efl_ui_scrollable_gravity_get_static_delegate == null) + { + efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); + } - public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_viewport_geometry_get"); - private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Manager)wrapper).GetViewportGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; + if (efl_ui_scrollable_gravity_set_static_delegate == null) + { + efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); + } - private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); + } + if (efl_ui_scrollable_match_content_set_static_delegate == null) + { + efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); + } - public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_get"); - private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - horiz = default(bool); vert = default(bool); - try { - ((Manager)wrapper).GetBounceEnabled( out horiz, out vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); + } + + if (efl_ui_scrollable_step_size_get_static_delegate == null) + { + efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); + } + + if (efl_ui_scrollable_step_size_set_static_delegate == null) + { + efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_static_delegate == null) + { + efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); + } + + if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_size_get_static_delegate == null) + { + efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_position_get_static_delegate == null) + { + efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_position_set_static_delegate == null) + { + efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) + { + efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Scroll.Manager.efl_ui_scroll_manager_class_get(); } - } - private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + private delegate void efl_ui_scroll_manager_pan_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Pan pan); + + public delegate void efl_ui_scroll_manager_pan_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Pan pan); - public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_set"); - private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetBounceEnabled( horiz, vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + public static Efl.Eo.FunctionWrapper efl_ui_scroll_manager_pan_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scroll_manager_pan_set"); + + private static void pan_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Pan pan) + { + Eina.Log.Debug("function efl_ui_scroll_manager_pan_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetPan(pan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scroll_manager_pan_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pan); + } } - } - private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + private static efl_ui_scroll_manager_pan_set_delegate efl_ui_scroll_manager_pan_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_get"); - private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Manager)wrapper).GetScrollFreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_get"); + + private static bool mirrored_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Manager)wrapper).GetMirrored(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_mirrored_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_ui_mirrored_get_delegate efl_ui_mirrored_get_static_delegate; + + + private delegate void efl_ui_mirrored_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool rtl); + + + public delegate void efl_ui_mirrored_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool rtl); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_set"); + + private static void mirrored_set(System.IntPtr obj, System.IntPtr pd, bool rtl) + { + Eina.Log.Debug("function efl_ui_mirrored_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetMirrored(rtl); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_mirrored_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rtl); + } + } + + private static efl_ui_mirrored_set_delegate efl_ui_mirrored_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_automatic_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_get"); + + private static bool mirrored_automatic_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Manager)wrapper).GetMirroredAutomatic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_mirrored_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; + private static efl_ui_mirrored_automatic_get_delegate efl_ui_mirrored_automatic_get_static_delegate; - private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + private delegate void efl_ui_mirrored_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + + public delegate void efl_ui_mirrored_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); - public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_set"); - private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetScrollFreeze( freeze); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_set"); + + private static void mirrored_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetMirroredAutomatic(automatic); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_mirrored_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); + } } - } - private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; + private static efl_ui_mirrored_automatic_set_delegate efl_ui_mirrored_automatic_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_language_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_language_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_get"); - private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Manager)wrapper).GetScrollHold(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_language_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_get"); + + private static System.String language_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_language_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Manager)wrapper).GetLanguage(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_ui_language_get_delegate efl_ui_language_get_static_delegate; + + + private delegate void efl_ui_language_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + + public delegate void efl_ui_language_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + public static Efl.Eo.FunctionWrapper efl_ui_language_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_set"); + + private static void language_set(System.IntPtr obj, System.IntPtr pd, System.String language) + { + Eina.Log.Debug("function efl_ui_language_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetLanguage(language); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), language); + } + } + + private static efl_ui_language_set_delegate efl_ui_language_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); + + private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Manager)wrapper).GetContentPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; - private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_set"); - private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetScrollHold( hold); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); + + private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((Manager)wrapper).SetContentPos(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + } } - } - private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; + private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; - private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_get"); - private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - loop_h = default(bool); loop_v = default(bool); - try { - ((Manager)wrapper).GetLooping( out loop_h, out loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); + + private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Manager)wrapper).GetContentSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; - private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_set"); - private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetLooping( loop_h, loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); + + private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Manager)wrapper).GetViewportGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; - private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_get"); - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try { - _ret_var = ((Manager)wrapper).GetMovementBlock(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); + + private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((Manager)wrapper).GetBounceEnabled(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + } + } + + private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + + + private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + + public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); + + private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetBounceEnabled(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + } + } + + private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); + + private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Manager)wrapper).GetScrollFreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; + private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; - private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_set"); - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetMovementBlock( block); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); + + private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetScrollFreeze(freeze); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); + } } - } - private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; - private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_get"); - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((Manager)wrapper).GetGravity( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); + + private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Manager)wrapper).GetScrollHold(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; - private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_set"); - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetGravity( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); + + private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetScrollHold(hold); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + } } - } - private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; - private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_match_content_set"); - private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetMatchContent( w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); + + private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + loop_h = default(bool); loop_v = default(bool); + try + { + ((Manager)wrapper).GetLooping(out loop_h, out loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + } } - } - private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_get"); - private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Manager)wrapper).GetStepSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); + + private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetLooping(loop_h, loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); } + } + + private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + + + private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); + + private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); + try + { + _ret_var = ((Manager)wrapper).GetMovementBlock(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; + private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; - private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_set"); - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_step = step; + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); + + private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetMovementBlock(block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); + } + } + + private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); + + private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((Manager)wrapper).GetGravity(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); + + private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetGravity(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + + + private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + + public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); + + private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) + { + Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetMatchContent(w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + } + } + + private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); + + private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Manager)wrapper).GetStepSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; + + + private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + + public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); + + private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_step = step; - try { - ((Manager)wrapper).SetStepSize( _in_step); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((Manager)wrapper).SetStepSize(_in_step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } else { - efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } - private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; + private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; - private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll"); - private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); + + private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; - try { - ((Manager)wrapper).Scroll( _in_rect, animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((Manager)wrapper).Scroll(_in_rect, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } - } else { - efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } - } - private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; + private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; - private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_get"); - private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); - try { - ((Manager)wrapper).GetBarMode( out hbar, out vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_get"); + + private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); + try + { + ((Manager)wrapper).GetBarMode(out hbar, out vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); + } } - } - private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; + private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_set"); - private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetBarMode( hbar, vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_set"); + + private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetBarMode(hbar, vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + } } - } - private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; + private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; - private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_size_get"); - private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - width = default(double); height = default(double); - try { - ((Manager)wrapper).GetBarSize( out width, out height); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_size_get"); + + private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + width = default(double); height = default(double); + try + { + ((Manager)wrapper).GetBarSize(out width, out height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); + } } - } - private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; + private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_get"); - private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - posx = default(double); posy = default(double); - try { - ((Manager)wrapper).GetBarPosition( out posx, out posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_get"); + + private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + posx = default(double); posy = default(double); + try + { + ((Manager)wrapper).GetBarPosition(out posx, out posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); + } } - } - private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; + private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_set"); - private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).SetBarPosition( posx, posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_set"); + + private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).SetBarPosition(posx, posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); + } } - } - private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; + private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; - private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_visibility_update"); - private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Manager)wrapper).UpdateBarVisibility(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_visibility_update"); + + private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Manager)wrapper).UpdateBarVisibility(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + + private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable.eo.cs index c185a44..ee2cc0d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI scrollable interface -[IScrollableNativeInherit] +[Efl.Ui.IScrollableConcrete.NativeMethods] public interface IScrollable : Efl.Eo.IWrapper, IDisposable { @@ -48,822 +52,1003 @@ IScrollable { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IScrollableConcrete)) - return Efl.Ui.IScrollableNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IScrollableConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_scrollable_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IScrollableConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IScrollableConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ScrollStartEvtKey = new object(); + /// Called when scroll operation starts public event EventHandler ScrollStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStartEvt. - public void On_ScrollStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStartEvt_delegate; - private void on_ScrollStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling public event EventHandler ScrollEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollEvt_delegate)) { - eventHandlers.AddHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL"; - if (RemoveNativeEventHandler(key, this.evt_ScrollEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollEvt. - public void On_ScrollEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollEvt_delegate; - private void on_ScrollEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation stops public event EventHandler ScrollStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStopEvt. - public void On_ScrollStopEvt(EventArgs e) + public void OnScrollStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStopEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStopEvt_delegate; - private void on_ScrollStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling upwards public event EventHandler ScrollUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.AddHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollUpEvt. - public void On_ScrollUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollUpEvt_delegate; - private void on_ScrollUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling downwards public event EventHandler ScrollDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.AddHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDownEvt. - public void On_ScrollDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDownEvt_delegate; - private void on_ScrollDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling left public event EventHandler ScrollLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.AddHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollLeftEvt. - public void On_ScrollLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollLeftEvt_delegate; - private void on_ScrollLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling right public event EventHandler ScrollRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.AddHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollRightEvt. - public void On_ScrollRightEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollRightEvt_delegate; - private void on_ScrollRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollRightEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the top edge public event EventHandler EdgeUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.AddHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_UP"; - if (RemoveNativeEventHandler(key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeUpEvt. - public void On_EdgeUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeUpEvt_delegate; - private void on_EdgeUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the bottom edge public event EventHandler EdgeDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.AddHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeDownEvt. - public void On_EdgeDownEvt(EventArgs e) + public void OnEdgeDownEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeDownEvtKey]; + var key = "_EFL_UI_EVENT_EDGE_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeDownEvt_delegate; - private void on_EdgeDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object EdgeLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the left edge public event EventHandler EdgeLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.AddHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeLeftEvt. - public void On_EdgeLeftEvt(EventArgs e) + public void OnEdgeLeftEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeLeftEvtKey]; + var key = "_EFL_UI_EVENT_EDGE_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeLeftEvt_delegate; - private void on_EdgeLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object EdgeRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the right edge public event EventHandler EdgeRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.AddHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeRightEvt. - public void On_EdgeRightEvt(EventArgs e) + public void OnEdgeRightEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeRightEvtKey]; + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeRightEvt_delegate; - private void on_EdgeRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollAnimStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation starts public event EventHandler ScrollAnimStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStartEvt. - public void On_ScrollAnimStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStartEvt_delegate; - private void on_ScrollAnimStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation stopps public event EventHandler ScrollAnimStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStopEvt. - public void On_ScrollAnimStopEvt(EventArgs e) + public void OnScrollAnimStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStopEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStopEvt_delegate; - private void on_ScrollAnimStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollDragStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag starts public event EventHandler ScrollDragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStartEvt. - public void On_ScrollDragStartEvt(EventArgs e) + public void OnScrollDragStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStartEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStartEvt_delegate; - private void on_ScrollDragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollDragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag stops public event EventHandler ScrollDragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStopEvt. - public void On_ScrollDragStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStopEvt_delegate; - private void on_ScrollDragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDragStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ScrollStartEvt_delegate = new Efl.EventCb(on_ScrollStartEvt_NativeCallback); - evt_ScrollEvt_delegate = new Efl.EventCb(on_ScrollEvt_NativeCallback); - evt_ScrollStopEvt_delegate = new Efl.EventCb(on_ScrollStopEvt_NativeCallback); - evt_ScrollUpEvt_delegate = new Efl.EventCb(on_ScrollUpEvt_NativeCallback); - evt_ScrollDownEvt_delegate = new Efl.EventCb(on_ScrollDownEvt_NativeCallback); - evt_ScrollLeftEvt_delegate = new Efl.EventCb(on_ScrollLeftEvt_NativeCallback); - evt_ScrollRightEvt_delegate = new Efl.EventCb(on_ScrollRightEvt_NativeCallback); - evt_EdgeUpEvt_delegate = new Efl.EventCb(on_EdgeUpEvt_NativeCallback); - evt_EdgeDownEvt_delegate = new Efl.EventCb(on_EdgeDownEvt_NativeCallback); - evt_EdgeLeftEvt_delegate = new Efl.EventCb(on_EdgeLeftEvt_NativeCallback); - evt_EdgeRightEvt_delegate = new Efl.EventCb(on_EdgeRightEvt_NativeCallback); - evt_ScrollAnimStartEvt_delegate = new Efl.EventCb(on_ScrollAnimStartEvt_NativeCallback); - evt_ScrollAnimStopEvt_delegate = new Efl.EventCb(on_ScrollAnimStopEvt_NativeCallback); - evt_ScrollDragStartEvt_delegate = new Efl.EventCb(on_ScrollDragStartEvt_NativeCallback); - evt_ScrollDragStopEvt_delegate = new Efl.EventCb(on_ScrollDragStopEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } private static IntPtr GetEflClassStatic() { return Efl.Ui.IScrollableConcrete.efl_ui_scrollable_interface_get(); } -} -public class IScrollableNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IScrollableConcrete.efl_ui_scrollable_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IScrollableConcrete.efl_ui_scrollable_interface_get(); - } + /// 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(); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.IScrollableConcrete.efl_ui_scrollable_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } -namespace Efl { namespace Ui { + +} + +namespace Efl { + +namespace Ui { + /// Direction in which a scroller should be blocked. /// Note: These options may be effective only in case of thumbscroll (i.e. when scrolling by dragging). public enum ScrollBlock @@ -875,4 +1060,8 @@ Vertical = 1, /// Block horizontal movement. Horizontal = 2, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable_interactive.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable_interactive.eo.cs index f5a907b..0f8811a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable_interactive.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable_interactive.eo.cs @@ -3,10 +3,13 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[IScrollableInteractiveNativeInherit] +namespace Efl { + +namespace Ui { + +[Efl.Ui.IScrollableInteractiveConcrete.NativeMethods] public interface IScrollableInteractive : Efl.Ui.IScrollable , Efl.Eo.IWrapper, IDisposable @@ -16,8 +19,7 @@ public interface IScrollableInteractive : Eina.Position2D GetContentPos(); /// The content position /// The position is virtual value, (0, 0) starting at the top-left. -/// -void SetContentPos( Eina.Position2D pos); +void SetContentPos(Eina.Position2D pos); /// The content size /// The content size in pixels. Eina.Size2D GetContentSize(); @@ -28,38 +30,32 @@ Eina.Rect GetViewportGeometry(); /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. -/// -void GetBounceEnabled( out bool horiz, out bool vert); +void GetBounceEnabled(out bool horiz, out bool vert); /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. -/// -void SetBounceEnabled( bool horiz, bool vert); +void SetBounceEnabled(bool horiz, bool vert); /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise bool GetScrollFreeze(); /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise -/// -void SetScrollFreeze( bool freeze); +void SetScrollFreeze(bool freeze); /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise bool GetScrollHold(); /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise -/// -void SetScrollHold( bool hold); +void SetScrollHold(bool hold); /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop -/// -void GetLooping( out bool loop_h, out bool loop_v); +void GetLooping(out bool loop_h, out bool loop_v); /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop -/// -void SetLooping( bool loop_h, bool loop_v); +void SetLooping(bool loop_h, bool loop_v); /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block @@ -67,8 +63,7 @@ Efl.Ui.ScrollBlock GetMovementBlock(); /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block -/// -void SetMovementBlock( Efl.Ui.ScrollBlock block); +void SetMovementBlock(Efl.Ui.ScrollBlock block); /// Control scrolling gravity on the scrollable /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. /// @@ -79,8 +74,7 @@ void SetMovementBlock( Efl.Ui.ScrollBlock block); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity -/// -void GetGravity( out double x, out double y); +void GetGravity(out double x, out double y); /// Control scrolling gravity on the scrollable /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. /// @@ -91,14 +85,12 @@ void GetGravity( out double x, out double y); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity -/// -void SetGravity( double x, double y); +void SetGravity(double x, double y); /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size -/// -void SetMatchContent( bool w, bool h); +void SetMatchContent(bool w, bool h); /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels @@ -106,14 +98,12 @@ Eina.Position2D GetStepSize(); /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels -/// -void SetStepSize( Eina.Position2D step); +void SetStepSize(Eina.Position2D step); /// Show a specific virtual region within the scroller content object. /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. /// The position where to scroll. and The size user want to see /// Whether to scroll with animation or not -/// -void Scroll( Eina.Rect rect, bool animation); +void Scroll(Eina.Rect rect, bool animation); /// The content position /// The position is virtual value, (0, 0) starting at the top-left. Eina.Position2D ContentPos { @@ -157,831 +147,998 @@ void Scroll( Eina.Rect rect, bool animation); set ; } } -/// sealed public class IScrollableInteractiveConcrete : IScrollableInteractive , Efl.Ui.IScrollable { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IScrollableInteractiveConcrete)) - return Efl.Ui.IScrollableInteractiveNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IScrollableInteractiveConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_scrollable_interactive_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IScrollableInteractiveConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IScrollableInteractiveConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) - { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + private void Dispose(bool disposing) + { + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ScrollStartEvtKey = new object(); + /// Called when scroll operation starts public event EventHandler ScrollStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStartEvt. - public void On_ScrollStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStartEvt_delegate; - private void on_ScrollStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling public event EventHandler ScrollEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollEvt_delegate)) { - eventHandlers.AddHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL"; - if (RemoveNativeEventHandler(key, this.evt_ScrollEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollEvt. - public void On_ScrollEvt(EventArgs e) + public void OnScrollEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollEvt_delegate; - private void on_ScrollEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation stops public event EventHandler ScrollStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStopEvt. - public void On_ScrollStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStopEvt_delegate; - private void on_ScrollStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling upwards public event EventHandler ScrollUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.AddHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollUpEvt. - public void On_ScrollUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollUpEvt_delegate; - private void on_ScrollUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling downwards public event EventHandler ScrollDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.AddHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDownEvt. - public void On_ScrollDownEvt(EventArgs e) + public void OnScrollDownEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDownEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDownEvt_delegate; - private void on_ScrollDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling left public event EventHandler ScrollLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.AddHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollLeftEvt. - public void On_ScrollLeftEvt(EventArgs e) + public void OnScrollLeftEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollLeftEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollLeftEvt_delegate; - private void on_ScrollLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling right public event EventHandler ScrollRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.AddHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollRightEvt. - public void On_ScrollRightEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollRightEvt_delegate; - private void on_ScrollRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollRightEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the top edge public event EventHandler EdgeUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.AddHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_UP"; - if (RemoveNativeEventHandler(key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeUpEvt. - public void On_EdgeUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeUpEvt_delegate; - private void on_EdgeUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the bottom edge public event EventHandler EdgeDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.AddHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeDownEvt. - public void On_EdgeDownEvt(EventArgs e) + public void OnEdgeDownEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeDownEvtKey]; + var key = "_EFL_UI_EVENT_EDGE_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeDownEvt_delegate; - private void on_EdgeDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object EdgeLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the left edge public event EventHandler EdgeLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.AddHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeLeftEvt. - public void On_EdgeLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeLeftEvt_delegate; - private void on_EdgeLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the right edge public event EventHandler EdgeRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.AddHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeRightEvt. - public void On_EdgeRightEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeRightEvt_delegate; - private void on_EdgeRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeRightEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation starts public event EventHandler ScrollAnimStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStartEvt. - public void On_ScrollAnimStartEvt(EventArgs e) + public void OnScrollAnimStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStartEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStartEvt_delegate; - private void on_ScrollAnimStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollAnimStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation stopps public event EventHandler ScrollAnimStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStopEvt. - public void On_ScrollAnimStopEvt(EventArgs e) + public void OnScrollAnimStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStopEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStopEvt_delegate; - private void on_ScrollAnimStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollDragStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag starts public event EventHandler ScrollDragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStartEvt. - public void On_ScrollDragStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStartEvt_delegate; - private void on_ScrollDragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDragStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag stops public event EventHandler ScrollDragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStopEvt. - public void On_ScrollDragStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStopEvt_delegate; - private void on_ScrollDragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDragStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ScrollStartEvt_delegate = new Efl.EventCb(on_ScrollStartEvt_NativeCallback); - evt_ScrollEvt_delegate = new Efl.EventCb(on_ScrollEvt_NativeCallback); - evt_ScrollStopEvt_delegate = new Efl.EventCb(on_ScrollStopEvt_NativeCallback); - evt_ScrollUpEvt_delegate = new Efl.EventCb(on_ScrollUpEvt_NativeCallback); - evt_ScrollDownEvt_delegate = new Efl.EventCb(on_ScrollDownEvt_NativeCallback); - evt_ScrollLeftEvt_delegate = new Efl.EventCb(on_ScrollLeftEvt_NativeCallback); - evt_ScrollRightEvt_delegate = new Efl.EventCb(on_ScrollRightEvt_NativeCallback); - evt_EdgeUpEvt_delegate = new Efl.EventCb(on_EdgeUpEvt_NativeCallback); - evt_EdgeDownEvt_delegate = new Efl.EventCb(on_EdgeDownEvt_NativeCallback); - evt_EdgeLeftEvt_delegate = new Efl.EventCb(on_EdgeLeftEvt_NativeCallback); - evt_EdgeRightEvt_delegate = new Efl.EventCb(on_EdgeRightEvt_NativeCallback); - evt_ScrollAnimStartEvt_delegate = new Efl.EventCb(on_ScrollAnimStartEvt_NativeCallback); - evt_ScrollAnimStopEvt_delegate = new Efl.EventCb(on_ScrollAnimStopEvt_NativeCallback); - evt_ScrollDragStartEvt_delegate = new Efl.EventCb(on_ScrollDragStartEvt_NativeCallback); - evt_ScrollDragStopEvt_delegate = new Efl.EventCb(on_ScrollDragStopEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. public Eina.Position2D GetContentPos() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. - /// - public void SetContentPos( Eina.Position2D pos) { + public void SetContentPos(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(this.NativeHandle, _in_pos); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(this.NativeHandle,_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// The content size /// The content size in pixels. public Eina.Size2D GetContentSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The viewport geometry /// It is absolute geometry. public Eina.Rect GetViewportGeometry() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -989,78 +1146,71 @@ private static object ScrollDragStopEvtKey = new object(); /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - public void GetBounceEnabled( out bool horiz, out bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(this.NativeHandle, out horiz, out vert); + public void GetBounceEnabled(out bool horiz, out bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(this.NativeHandle,out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - public void SetBounceEnabled( bool horiz, bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(this.NativeHandle, horiz, vert); + public void SetBounceEnabled(bool horiz, bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(this.NativeHandle,horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise public bool GetScrollFreeze() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise - /// - public void SetScrollFreeze( bool freeze) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(this.NativeHandle, freeze); + public void SetScrollFreeze(bool freeze) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(this.NativeHandle,freeze); Eina.Error.RaiseIfUnhandledException(); } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise public bool GetScrollHold() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise - /// - public void SetScrollHold( bool hold) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(this.NativeHandle, hold); + public void SetScrollHold(bool hold) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(this.NativeHandle,hold); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - public void GetLooping( out bool loop_h, out bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_get_ptr.Value.Delegate(this.NativeHandle, out loop_h, out loop_v); + public void GetLooping(out bool loop_h, out bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate(this.NativeHandle,out loop_h, out loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - public void SetLooping( bool loop_h, bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_set_ptr.Value.Delegate(this.NativeHandle, loop_h, loop_v); + public void SetLooping(bool loop_h, bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate(this.NativeHandle,loop_h, loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block - /// - public void SetMovementBlock( Efl.Ui.ScrollBlock block) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(this.NativeHandle, block); + public void SetMovementBlock(Efl.Ui.ScrollBlock block) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(this.NativeHandle,block); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -1073,9 +1223,8 @@ private static object ScrollDragStopEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - public void GetGravity( out double x, out double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetGravity(out double x, out double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -1088,52 +1237,48 @@ private static object ScrollDragStopEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - public void SetGravity( double x, double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetGravity(double x, double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size - /// - public void SetMatchContent( bool w, bool h) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_match_content_set_ptr.Value.Delegate(this.NativeHandle, w, h); + public void SetMatchContent(bool w, bool h) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate(this.NativeHandle,w, h); Eina.Error.RaiseIfUnhandledException(); } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels public Eina.Position2D GetStepSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels - /// - public void SetStepSize( Eina.Position2D step) { + public void SetStepSize(Eina.Position2D step) { Eina.Position2D.NativeStruct _in_step = step; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_set_ptr.Value.Delegate(this.NativeHandle, _in_step); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate(this.NativeHandle,_in_step); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object. /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. /// The position where to scroll. and The size user want to see /// Whether to scroll with animation or not - /// - public void Scroll( Eina.Rect rect, bool animation) { + public void Scroll(Eina.Rect rect, bool animation) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_ptr.Value.Delegate(this.NativeHandle, _in_rect, animation); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate(this.NativeHandle,_in_rect, animation); Eina.Error.RaiseIfUnhandledException(); } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. public Eina.Position2D ContentPos { get { return GetContentPos(); } - set { SetContentPos( value); } + set { SetContentPos(value); } } /// The content size /// The content size in pixels. @@ -1149,618 +1294,970 @@ private static object ScrollDragStopEvtKey = new object(); /// true if freeze, false otherwise public bool ScrollFreeze { get { return GetScrollFreeze(); } - set { SetScrollFreeze( value); } + set { SetScrollFreeze(value); } } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise public bool ScrollHold { get { return GetScrollHold(); } - set { SetScrollHold( value); } + set { SetScrollHold(value); } } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block public Efl.Ui.ScrollBlock MovementBlock { get { return GetMovementBlock(); } - set { SetMovementBlock( value); } + set { SetMovementBlock(value); } } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels public Eina.Position2D StepSize { get { return GetStepSize(); } - set { SetStepSize( value); } + set { SetStepSize(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IScrollableInteractiveConcrete.efl_ui_scrollable_interactive_interface_get(); } -} -public class IScrollableInteractiveNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_scrollable_content_pos_get_static_delegate == null) - efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate)}); - if (efl_ui_scrollable_content_pos_set_static_delegate == null) - efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate)}); - if (efl_ui_scrollable_content_size_get_static_delegate == null) - efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate)}); - if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) - efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) - efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) - efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) - efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) - efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) - efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) - efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate)}); - if (efl_ui_scrollable_looping_get_static_delegate == null) - efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); - if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate)}); - if (efl_ui_scrollable_looping_set_static_delegate == null) - efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); - if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate)}); - if (efl_ui_scrollable_movement_block_get_static_delegate == null) - efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate)}); - if (efl_ui_scrollable_movement_block_set_static_delegate == null) - efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate)}); - if (efl_ui_scrollable_gravity_get_static_delegate == null) - efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate)}); - if (efl_ui_scrollable_gravity_set_static_delegate == null) - efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate)}); - if (efl_ui_scrollable_match_content_set_static_delegate == null) - efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); - if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate)}); - if (efl_ui_scrollable_step_size_get_static_delegate == null) - efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate)}); - if (efl_ui_scrollable_step_size_set_static_delegate == null) - efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate)}); - if (efl_ui_scrollable_scroll_static_delegate == null) - efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); - if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IScrollableInteractiveConcrete.efl_ui_scrollable_interactive_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IScrollableInteractiveConcrete.efl_ui_scrollable_interactive_interface_get(); - } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass + { + 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_scrollable_content_pos_get_static_delegate == null) + { + efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); + } - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_scrollable_content_pos_set_static_delegate == null) + { + efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); + } - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_get"); - private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((IScrollableInteractive)wrapper).GetContentPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_scrollable_content_size_get_static_delegate == null) + { + efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); + } + + if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) + { + efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); + } + + if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); + } + + if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); + } + + if (efl_ui_scrollable_looping_get_static_delegate == null) + { + efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); } + + if (efl_ui_scrollable_looping_set_static_delegate == null) + { + efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); + } + + if (efl_ui_scrollable_movement_block_get_static_delegate == null) + { + efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); + } + + if (efl_ui_scrollable_movement_block_set_static_delegate == null) + { + efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); + } + + if (efl_ui_scrollable_gravity_get_static_delegate == null) + { + efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); + } + + if (efl_ui_scrollable_gravity_set_static_delegate == null) + { + efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); + } + + if (efl_ui_scrollable_match_content_set_static_delegate == null) + { + efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); + } + + if (efl_ui_scrollable_step_size_get_static_delegate == null) + { + efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); + } + + if (efl_ui_scrollable_step_size_set_static_delegate == null) + { + efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_static_delegate == null) + { + efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); + } + + if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_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.IScrollableInteractiveConcrete.efl_ui_scrollable_interactive_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); + + private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((IScrollableInteractive)wrapper).GetContentPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; + private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; - private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_set"); - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); + + private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; - try { - ((IScrollableInteractive)wrapper).SetContentPos( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IScrollableInteractive)wrapper).SetContentPos(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - } else { - efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - } - private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; + private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); + + private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IScrollableInteractive)wrapper).GetContentSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_size_get"); - private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((IScrollableInteractive)wrapper).GetContentSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; + private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; - private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); + + private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((IScrollableInteractive)wrapper).GetViewportGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_viewport_geometry_get"); - private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((IScrollableInteractive)wrapper).GetViewportGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; + private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; - private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_get"); - private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - horiz = default(bool); vert = default(bool); - try { - ((IScrollableInteractive)wrapper).GetBounceEnabled( out horiz, out vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); + + private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((IScrollableInteractive)wrapper).GetBounceEnabled(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + } } - } - private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; - private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_set"); - private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IScrollableInteractive)wrapper).SetBounceEnabled( horiz, vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); + + private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IScrollableInteractive)wrapper).SetBounceEnabled(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + } } - } - private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); + + private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IScrollableInteractive)wrapper).GetScrollFreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_get"); - private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IScrollableInteractive)wrapper).GetScrollFreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; + private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; - private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_set"); - private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IScrollableInteractive)wrapper).SetScrollFreeze( freeze); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); + + private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IScrollableInteractive)wrapper).SetScrollFreeze(freeze); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); + } } - } - private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; + private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); + + private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IScrollableInteractive)wrapper).GetScrollHold(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_get"); - private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IScrollableInteractive)wrapper).GetScrollHold(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; - private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_set"); - private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IScrollableInteractive)wrapper).SetScrollHold( hold); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); + + private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IScrollableInteractive)wrapper).SetScrollHold(hold); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + } } - } - private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; + private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; - private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_get"); - private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - loop_h = default(bool); loop_v = default(bool); - try { - ((IScrollableInteractive)wrapper).GetLooping( out loop_h, out loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); + + private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + loop_h = default(bool); loop_v = default(bool); + try + { + ((IScrollableInteractive)wrapper).GetLooping(out loop_h, out loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + } } - } - private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; - private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_set"); - private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IScrollableInteractive)wrapper).SetLooping( loop_h, loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); + + private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IScrollableInteractive)wrapper).SetLooping(loop_h, loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + } } - } - private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; - private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); + + private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); + try + { + _ret_var = ((IScrollableInteractive)wrapper).GetMovementBlock(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_get"); - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try { - _ret_var = ((IScrollableInteractive)wrapper).GetMovementBlock(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; + private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; - private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_set"); - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IScrollableInteractive)wrapper).SetMovementBlock( block); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); + + private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IScrollableInteractive)wrapper).SetMovementBlock(block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); + } } - } - private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; - private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_get"); - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IScrollableInteractive)wrapper).GetGravity( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); + + private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IScrollableInteractive)wrapper).GetGravity(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } } - } - private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; - private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_set"); - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IScrollableInteractive)wrapper).SetGravity( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); + + private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IScrollableInteractive)wrapper).SetGravity(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } } - } - private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; - private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_match_content_set"); - private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IScrollableInteractive)wrapper).SetMatchContent( w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); + + private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) + { + Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IScrollableInteractive)wrapper).SetMatchContent(w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + } } - } - private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); + + private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((IScrollableInteractive)wrapper).GetStepSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_get"); - private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((IScrollableInteractive)wrapper).GetStepSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; + private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; - private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_set"); - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_step = step; + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); + + private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_step = step; - try { - ((IScrollableInteractive)wrapper).SetStepSize( _in_step); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IScrollableInteractive)wrapper).SetStepSize(_in_step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } else { - efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } - private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; + private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; - private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll"); - private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); + + private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; - try { - ((IScrollableInteractive)wrapper).Scroll( _in_rect, animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((IScrollableInteractive)wrapper).Scroll(_in_rect, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } - } else { - efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } - } - private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; + + private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollbar.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollbar.eo.cs index dee7af7..e50f2df 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollbar.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollbar.eo.cs @@ -3,41 +3,38 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[IScrollbarNativeInherit] +namespace Efl { + +namespace Ui { + +[Efl.Ui.IScrollbarConcrete.NativeMethods] public interface IScrollbar : Efl.Eo.IWrapper, IDisposable { /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar -/// -void GetBarMode( out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); +void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar -/// -void SetBarMode( Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); +void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); /// Scrollbar size. It is calculated based on viewport size-content sizes. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 -/// -void GetBarSize( out double width, out double height); +void GetBarSize(out double width, out double height); /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 -/// -void GetBarPosition( out double posx, out double posy); +void GetBarPosition(out double posx, out double posy); /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 -/// -void SetBarPosition( double posx, double posy); +void SetBarPosition(double posx, double posy); /// Update bar visibility. /// The object will call this function whenever the bar need to be shown or hidden. -/// void UpdateBarVisibility(); /// Called when bar is pressed event EventHandler BarPressEvt; @@ -79,690 +76,944 @@ public class IScrollbarBarHideEvt_Args : EventArgs { ///Actual event payload. public Efl.Ui.ScrollbarDirection arg { get; set; } } -/// sealed public class IScrollbarConcrete : IScrollbar { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IScrollbarConcrete)) - return Efl.Ui.IScrollbarNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IScrollbarConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_scrollbar_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IScrollbarConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IScrollbarConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object BarPressEvtKey = new object(); + /// Called when bar is pressed public event EventHandler BarPressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPressEvt_delegate)) { - eventHandlers.AddHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarPressEvt_delegate)) { - eventHandlers.RemoveHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPressEvt. - public void On_BarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) + public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPressEvt_delegate; - private void on_BarPressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarPressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarUnpressEvtKey = new object(); /// Called when bar is unpressed public event EventHandler BarUnpressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.AddHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.RemoveHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarUnpressEvt. - public void On_BarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) + public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarUnpressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarUnpressEvt_delegate; - private void on_BarUnpressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarUnpressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarDragEvtKey = new object(); /// Called when bar is dragged public event EventHandler BarDragEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarDragEvt_delegate)) { - eventHandlers.AddHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (RemoveNativeEventHandler(key, this.evt_BarDragEvt_delegate)) { - eventHandlers.RemoveHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarDragEvt. - public void On_BarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) + public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarDragEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarDragEvt_delegate; - private void on_BarDragEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarDragEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarSizeChangedEvtKey = new object(); /// Called when bar size is changed public event EventHandler BarSizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.AddHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarSizeChangedEvt. - public void On_BarSizeChangedEvt(EventArgs e) + public void OnBarSizeChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarSizeChangedEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarSizeChangedEvt_delegate; - private void on_BarSizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_BarSizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object BarPosChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar position is changed public event EventHandler BarPosChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.AddHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPosChangedEvt. - public void On_BarPosChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPosChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPosChangedEvt_delegate; - private void on_BarPosChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnBarPosChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_BarPosChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BarShowEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Callend when bar is shown public event EventHandler BarShowEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarShowEvt_delegate)) { - eventHandlers.AddHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (RemoveNativeEventHandler(key, this.evt_BarShowEvt_delegate)) { - eventHandlers.RemoveHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarShowEvt. - public void On_BarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) + public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarShowEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarShowEvt_delegate; - private void on_BarShowEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarShowEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarHideEvtKey = new object(); /// Called when bar is hidden public event EventHandler BarHideEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarHideEvt_delegate)) { - eventHandlers.AddHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (RemoveNativeEventHandler(key, this.evt_BarHideEvt_delegate)) { - eventHandlers.RemoveHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarHideEvt. - public void On_BarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarHideEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarHideEvt_delegate; - private void on_BarHideEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { - Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarHideEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_BarPressEvt_delegate = new Efl.EventCb(on_BarPressEvt_NativeCallback); - evt_BarUnpressEvt_delegate = new Efl.EventCb(on_BarUnpressEvt_NativeCallback); - evt_BarDragEvt_delegate = new Efl.EventCb(on_BarDragEvt_NativeCallback); - evt_BarSizeChangedEvt_delegate = new Efl.EventCb(on_BarSizeChangedEvt_NativeCallback); - evt_BarPosChangedEvt_delegate = new Efl.EventCb(on_BarPosChangedEvt_NativeCallback); - evt_BarShowEvt_delegate = new Efl.EventCb(on_BarShowEvt_NativeCallback); - evt_BarHideEvt_delegate = new Efl.EventCb(on_BarHideEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - public void GetBarMode( out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(this.NativeHandle, out hbar, out vbar); + public void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(this.NativeHandle,out hbar, out vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - public void SetBarMode( Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(this.NativeHandle, hbar, vbar); + public void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(this.NativeHandle,hbar, vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar size. It is calculated based on viewport size-content sizes. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - public void GetBarSize( out double width, out double height) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(this.NativeHandle, out width, out height); + public void GetBarSize(out double width, out double height) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(this.NativeHandle,out width, out height); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - public void GetBarPosition( out double posx, out double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(this.NativeHandle, out posx, out posy); + public void GetBarPosition(out double posx, out double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(this.NativeHandle,out posx, out posy); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - public void SetBarPosition( double posx, double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(this.NativeHandle, posx, posy); + public void SetBarPosition(double posx, double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(this.NativeHandle,posx, posy); Eina.Error.RaiseIfUnhandledException(); } /// Update bar visibility. /// The object will call this function whenever the bar need to be shown or hidden. - /// public void UpdateBarVisibility() { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Ui.IScrollbarConcrete.efl_ui_scrollbar_interface_get(); } -} -public class IScrollbarNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) - efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) - efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate)}); - if (efl_ui_scrollbar_bar_size_get_static_delegate == null) - efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_get_static_delegate == null) - efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_set_static_delegate == null) - efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate)}); - if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) - efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IScrollbarConcrete.efl_ui_scrollbar_interface_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IScrollbarConcrete.efl_ui_scrollbar_interface_get(); - } + 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_scrollbar_bar_mode_get_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); + } - private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate) }); + } + if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); + } - public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_get"); - private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); - try { - ((IScrollbar)wrapper).GetBarMode( out hbar, out vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); + if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_size_get_static_delegate == null) + { + efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_position_get_static_delegate == null) + { + efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_position_set_static_delegate == null) + { + efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) + { + efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_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.IScrollbarConcrete.efl_ui_scrollbar_interface_get(); } - } - private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_set"); - private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IScrollbar)wrapper).SetBarMode( hbar, vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_get"); + + private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); + try + { + ((IScrollbar)wrapper).GetBarMode(out hbar, out vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); + } } - } - private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; + private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_size_get"); - private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - width = default(double); height = default(double); - try { - ((IScrollbar)wrapper).GetBarSize( out width, out height); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_set"); + + private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IScrollbar)wrapper).SetBarMode(hbar, vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + } } - } - private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; + private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_get"); - private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - posx = default(double); posy = default(double); - try { - ((IScrollbar)wrapper).GetBarPosition( out posx, out posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_size_get"); + + private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + width = default(double); height = default(double); + try + { + ((IScrollbar)wrapper).GetBarSize(out width, out height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); + } } - } - private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; + private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_set"); - private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IScrollbar)wrapper).SetBarPosition( posx, posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_get"); + + private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + posx = default(double); posy = default(double); + try + { + ((IScrollbar)wrapper).GetBarPosition(out posx, out posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); + } } - } - private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; + private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_visibility_update"); - private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IScrollbar)wrapper).UpdateBarVisibility(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_set"); + + private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IScrollbar)wrapper).SetBarPosition(posx, posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); + } } - } - private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + + private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_visibility_update"); + + private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IScrollbar)wrapper).UpdateBarVisibility(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } -namespace Efl { namespace Ui { -/// +} + +} + +namespace Efl { + +namespace Ui { + public enum ScrollbarMode { /// Visible if necessary @@ -774,16 +1025,23 @@ Off = 2, /// For internal use only Last = 3, } -} } -namespace Efl { namespace Ui { -/// + +} + +} + +namespace Efl { + +namespace Ui { + public enum ScrollbarDirection { -/// Horizontal = 0, -/// Vertical = 1, -/// Last = 2, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroller.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroller.eo.cs index 2472803..d2467b0 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroller.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroller.eo.cs @@ -3,1390 +3,1693 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl ui scroller class -[ScrollerNativeInherit] +[Efl.Ui.Scroller.NativeMethods] public class Scroller : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IContent,Efl.Ui.IScrollable,Efl.Ui.IScrollableInteractive,Efl.Ui.IScrollbar,Efl.Ui.IWidgetFocusManager,Efl.Ui.Focus.IManager,Efl.Ui.Focus.IManagerSub { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Scroller)) - return Efl.Ui.ScrollerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Scroller)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_scroller_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Scroller(Efl.Object parent - , System.String style = null) : - base(efl_ui_scroller_class_get(), typeof(Scroller), parent) + , System.String style = null) : base(efl_ui_scroller_class_get(), typeof(Scroller), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Scroller(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Scroller(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Scroller(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStartEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when scroll operation starts public event EventHandler ScrollStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStartEvt. - public void On_ScrollStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStartEvt_delegate; - private void on_ScrollStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling public event EventHandler ScrollEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollEvt_delegate)) { - eventHandlers.AddHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL"; - if (RemoveNativeEventHandler(key, this.evt_ScrollEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollEvt. - public void On_ScrollEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollEvt_delegate; - private void on_ScrollEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation stops public event EventHandler ScrollStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStopEvt. - public void On_ScrollStopEvt(EventArgs e) + public void OnScrollStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStopEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStopEvt_delegate; - private void on_ScrollStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling upwards public event EventHandler ScrollUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.AddHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollUpEvt. - public void On_ScrollUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollUpEvt_delegate; - private void on_ScrollUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling downwards public event EventHandler ScrollDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.AddHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDownEvt. - public void On_ScrollDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDownEvt_delegate; - private void on_ScrollDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling left public event EventHandler ScrollLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.AddHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollLeftEvt. - public void On_ScrollLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollLeftEvt_delegate; - private void on_ScrollLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling right public event EventHandler ScrollRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.AddHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollRightEvt. - public void On_ScrollRightEvt(EventArgs e) + public void OnScrollRightEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollRightEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollRightEvt_delegate; - private void on_ScrollRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object EdgeUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the top edge public event EventHandler EdgeUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.AddHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_UP"; - if (RemoveNativeEventHandler(key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeUpEvt. - public void On_EdgeUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeUpEvt_delegate; - private void on_EdgeUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the bottom edge public event EventHandler EdgeDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.AddHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeDownEvt. - public void On_EdgeDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeDownEvt_delegate; - private void on_EdgeDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the left edge public event EventHandler EdgeLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.AddHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeLeftEvt. - public void On_EdgeLeftEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeLeftEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeLeftEvt_delegate; - private void on_EdgeLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeLeftEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the right edge public event EventHandler EdgeRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.AddHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeRightEvt. - public void On_EdgeRightEvt(EventArgs e) + public void OnEdgeRightEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeRightEvtKey]; + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeRightEvt_delegate; - private void on_EdgeRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollAnimStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation starts public event EventHandler ScrollAnimStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStartEvt. - public void On_ScrollAnimStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStartEvt_delegate; - private void on_ScrollAnimStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation stopps public event EventHandler ScrollAnimStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStopEvt. - public void On_ScrollAnimStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStopEvt_delegate; - private void on_ScrollAnimStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag starts public event EventHandler ScrollDragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStartEvt. - public void On_ScrollDragStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStartEvt_delegate; - private void on_ScrollDragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDragStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag stops public event EventHandler ScrollDragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStopEvt. - public void On_ScrollDragStopEvt(EventArgs e) + public void OnScrollDragStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStopEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStopEvt_delegate; - private void on_ScrollDragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object BarPressEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar is pressed public event EventHandler BarPressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPressEvt_delegate)) { - eventHandlers.AddHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarPressEvt_delegate)) { - eventHandlers.RemoveHandler(BarPressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPressEvt. - public void On_BarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) + public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPressEvt_delegate; - private void on_BarPressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarPressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarUnpressEvtKey = new object(); /// Called when bar is unpressed public event EventHandler BarUnpressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.AddHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - if (RemoveNativeEventHandler(key, this.evt_BarUnpressEvt_delegate)) { - eventHandlers.RemoveHandler(BarUnpressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarUnpressEvt. - public void On_BarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) + public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarUnpressEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarUnpressEvt_delegate; - private void on_BarUnpressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarUnpressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarDragEvtKey = new object(); /// Called when bar is dragged public event EventHandler BarDragEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarDragEvt_delegate)) { - eventHandlers.AddHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - if (RemoveNativeEventHandler(key, this.evt_BarDragEvt_delegate)) { - eventHandlers.RemoveHandler(BarDragEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarDragEvt. - public void On_BarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) + public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarDragEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarDragEvt_delegate; - private void on_BarDragEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarDragEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarSizeChangedEvtKey = new object(); /// Called when bar size is changed public event EventHandler BarSizeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.AddHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarSizeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarSizeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarSizeChangedEvt. - public void On_BarSizeChangedEvt(EventArgs e) + public void OnBarSizeChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarSizeChangedEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarSizeChangedEvt_delegate; - private void on_BarSizeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_BarSizeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object BarPosChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when bar position is changed public event EventHandler BarPosChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.AddHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BarPosChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BarPosChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarPosChangedEvt. - public void On_BarPosChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarPosChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarPosChangedEvt_delegate; - private void on_BarPosChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnBarPosChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_BarPosChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object BarShowEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Callend when bar is shown public event EventHandler BarShowEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarShowEvt_delegate)) { - eventHandlers.AddHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - if (RemoveNativeEventHandler(key, this.evt_BarShowEvt_delegate)) { - eventHandlers.RemoveHandler(BarShowEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarShowEvt. - public void On_BarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) + public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarShowEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarShowEvt_delegate; - private void on_BarShowEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarShowEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BarHideEvtKey = new object(); /// Called when bar is hidden public event EventHandler BarHideEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); + args.arg = default(Efl.Ui.ScrollbarDirection); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_BarHideEvt_delegate)) { - eventHandlers.AddHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - if (RemoveNativeEventHandler(key, this.evt_BarHideEvt_delegate)) { - eventHandlers.RemoveHandler(BarHideEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event BarHideEvt. - public void On_BarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) + public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BarHideEvtKey]; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BarHideEvt_delegate; - private void on_BarHideEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = default(Efl.Ui.ScrollbarDirection); - try { - On_BarHideEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object RedirectChangedEvtKey = new object(); /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) public event EventHandler RedirectChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.AddHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.RemoveHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedirectChangedEvt. - public void On_RedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedirectChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedirectChangedEvt_delegate; - private void on_RedirectChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_RedirectChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object FlushPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.AddHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (RemoveNativeEventHandler(key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.RemoveHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FlushPreEvt. - public void On_FlushPreEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FlushPreEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FlushPreEvt_delegate; - private void on_FlushPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFlushPreEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_FlushPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CoordsDirtyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.AddHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (RemoveNativeEventHandler(key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.RemoveHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CoordsDirtyEvt. - public void On_CoordsDirtyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CoordsDirtyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CoordsDirtyEvt_delegate; - private void on_CoordsDirtyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCoordsDirtyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_CoordsDirtyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ManagerFocusChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) public event EventHandler ManagerFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ManagerFocusChangedEvt. - public void On_ManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ManagerFocusChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ManagerFocusChangedEvt_delegate; - private void on_ManagerFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_ManagerFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DirtyLogicFreezeChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) public event EventHandler DirtyLogicFreezeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.AddHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DirtyLogicFreezeChangedEvt. - public void On_DirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DirtyLogicFreezeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DirtyLogicFreezeChangedEvt_delegate; - private void on_DirtyLogicFreezeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_DirtyLogicFreezeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); - evt_ScrollStartEvt_delegate = new Efl.EventCb(on_ScrollStartEvt_NativeCallback); - evt_ScrollEvt_delegate = new Efl.EventCb(on_ScrollEvt_NativeCallback); - evt_ScrollStopEvt_delegate = new Efl.EventCb(on_ScrollStopEvt_NativeCallback); - evt_ScrollUpEvt_delegate = new Efl.EventCb(on_ScrollUpEvt_NativeCallback); - evt_ScrollDownEvt_delegate = new Efl.EventCb(on_ScrollDownEvt_NativeCallback); - evt_ScrollLeftEvt_delegate = new Efl.EventCb(on_ScrollLeftEvt_NativeCallback); - evt_ScrollRightEvt_delegate = new Efl.EventCb(on_ScrollRightEvt_NativeCallback); - evt_EdgeUpEvt_delegate = new Efl.EventCb(on_EdgeUpEvt_NativeCallback); - evt_EdgeDownEvt_delegate = new Efl.EventCb(on_EdgeDownEvt_NativeCallback); - evt_EdgeLeftEvt_delegate = new Efl.EventCb(on_EdgeLeftEvt_NativeCallback); - evt_EdgeRightEvt_delegate = new Efl.EventCb(on_EdgeRightEvt_NativeCallback); - evt_ScrollAnimStartEvt_delegate = new Efl.EventCb(on_ScrollAnimStartEvt_NativeCallback); - evt_ScrollAnimStopEvt_delegate = new Efl.EventCb(on_ScrollAnimStopEvt_NativeCallback); - evt_ScrollDragStartEvt_delegate = new Efl.EventCb(on_ScrollDragStartEvt_NativeCallback); - evt_ScrollDragStopEvt_delegate = new Efl.EventCb(on_ScrollDragStopEvt_NativeCallback); - evt_BarPressEvt_delegate = new Efl.EventCb(on_BarPressEvt_NativeCallback); - evt_BarUnpressEvt_delegate = new Efl.EventCb(on_BarUnpressEvt_NativeCallback); - evt_BarDragEvt_delegate = new Efl.EventCb(on_BarDragEvt_NativeCallback); - evt_BarSizeChangedEvt_delegate = new Efl.EventCb(on_BarSizeChangedEvt_NativeCallback); - evt_BarPosChangedEvt_delegate = new Efl.EventCb(on_BarPosChangedEvt_NativeCallback); - evt_BarShowEvt_delegate = new Efl.EventCb(on_BarShowEvt_NativeCallback); - evt_BarHideEvt_delegate = new Efl.EventCb(on_BarHideEvt_NativeCallback); - evt_RedirectChangedEvt_delegate = new Efl.EventCb(on_RedirectChangedEvt_NativeCallback); - evt_FlushPreEvt_delegate = new Efl.EventCb(on_FlushPreEvt_NativeCallback); - evt_CoordsDirtyEvt_delegate = new Efl.EventCb(on_CoordsDirtyEvt_NativeCallback); - evt_ManagerFocusChangedEvt_delegate = new Efl.EventCb(on_ManagerFocusChangedEvt_NativeCallback); - evt_DirtyLogicFreezeChangedEvt_delegate = new Efl.EventCb(on_DirtyLogicFreezeChangedEvt_NativeCallback); - } - /// Swallowed sub-object contained in this object. + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) + { + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. virtual public Eina.Position2D GetContentPos() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. - /// - virtual public void SetContentPos( Eina.Position2D pos) { + virtual public void SetContentPos(Eina.Position2D pos) { Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos); Eina.Error.RaiseIfUnhandledException(); } /// The content size /// The content size in pixels. virtual public Eina.Size2D GetContentSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The viewport geometry /// It is absolute geometry. virtual public Eina.Rect GetViewportGeometry() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1394,78 +1697,71 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void GetBounceEnabled( out bool horiz, out bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out horiz, out vert); + virtual public void GetBounceEnabled(out bool horiz, out bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - virtual public void SetBounceEnabled( bool horiz, bool vert) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), horiz, vert); + virtual public void SetBounceEnabled(bool horiz, bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise virtual public bool GetScrollFreeze() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise - /// - virtual public void SetScrollFreeze( bool freeze) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), freeze); + virtual public void SetScrollFreeze(bool freeze) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),freeze); Eina.Error.RaiseIfUnhandledException(); } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise virtual public bool GetScrollHold() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise - /// - virtual public void SetScrollHold( bool hold) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hold); + virtual public void SetScrollHold(bool hold) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hold); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void GetLooping( out bool loop_h, out bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out loop_h, out loop_v); + virtual public void GetLooping(out bool loop_h, out bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out loop_h, out loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The Scrolling vertical loop - /// - virtual public void SetLooping( bool loop_h, bool loop_v) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), loop_h, loop_v); + virtual public void SetLooping(bool loop_h, bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),loop_h, loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block virtual public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block - /// - virtual public void SetMovementBlock( Efl.Ui.ScrollBlock block) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), block); + virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),block); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -1478,9 +1774,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void GetGravity( out double x, out double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetGravity(out double x, out double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -1493,92 +1788,82 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - virtual public void SetGravity( double x, double y) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetGravity(double x, double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size - /// - virtual public void SetMatchContent( bool w, bool h) { - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), w, h); + virtual public void SetMatchContent(bool w, bool h) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),w, h); Eina.Error.RaiseIfUnhandledException(); } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels virtual public Eina.Position2D GetStepSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels - /// - virtual public void SetStepSize( Eina.Position2D step) { + virtual public void SetStepSize(Eina.Position2D step) { Eina.Position2D.NativeStruct _in_step = step; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_step); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_step); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object. /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. /// The position where to scroll. and The size user want to see /// Whether to scroll with animation or not - /// - virtual public void Scroll( Eina.Rect rect, bool animation) { + virtual public void Scroll(Eina.Rect rect, bool animation) { Eina.Rect.NativeStruct _in_rect = rect; - Efl.Ui.IScrollableInteractiveNativeInherit.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect, animation); + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect, animation); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void GetBarMode( out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out hbar, out vbar); + virtual public void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out hbar, out vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// Horizontal scrollbar /// Vertical scrollbar - /// - virtual public void SetBarMode( Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hbar, vbar); + virtual public void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hbar, vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar size. It is calculated based on viewport size-content sizes. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarSize( out double width, out double height) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out width, out height); + virtual public void GetBarSize(out double width, out double height) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out width, out height); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void GetBarPosition( out double posx, out double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out posx, out posy); + virtual public void GetBarPosition(out double posx, out double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out posx, out posy); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar position. It is calculated based on current position-maximum positions. /// Value between 0.0 and 1.0 /// Value between 0.0 and 1.0 - /// - virtual public void SetBarPosition( double posx, double posy) { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), posx, posy); + virtual public void SetBarPosition(double posx, double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),posx, posy); Eina.Error.RaiseIfUnhandledException(); } /// Update bar visibility. /// The object will call this function whenever the bar need to be shown or hidden. - /// virtual public void UpdateBarVisibility() { - Efl.Ui.IScrollbarNativeInherit.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// If the widget needs a focus manager, this function will be called. @@ -1586,8 +1871,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The logical root object for focus. /// The focus manager. - virtual public Efl.Ui.Focus.IManager FocusManagerCreate( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.IWidgetFocusManagerNativeInherit.efl_ui_widget_focus_manager_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods.efl_ui_widget_focus_manager_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1596,7 +1881,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Currently focused element. virtual public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1604,9 +1889,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. - /// - virtual public void SetManagerFocus( Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), focus); + virtual public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. @@ -1614,7 +1898,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The redirect manager. virtual public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1622,9 +1906,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. - /// - virtual public void SetRedirect( Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), redirect); + virtual public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. @@ -1632,7 +1915,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the border objects. virtual public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -1641,9 +1924,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. - virtual public Eina.Iterator GetViewportElements( Eina.Rect viewport) { + virtual public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_viewport); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -1652,7 +1935,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. virtual public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1661,8 +1944,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node - virtual public bool SetRoot( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1671,8 +1954,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. - virtual public Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction); + virtual public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1682,8 +1965,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. - virtual public Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, child, logical); + virtual public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1692,8 +1975,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. - virtual public Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1702,8 +1985,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. - virtual public Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child); + virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); @@ -1714,24 +1997,22 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Last object. virtual public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) - /// virtual public void ResetHistory() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) - /// virtual public void PopHistoryStack() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. @@ -1739,39 +2020,37 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. - /// - virtual public void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, entry); + virtual public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) - /// virtual public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) - /// virtual public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// The content position /// The position is virtual value, (0, 0) starting at the top-left. public Eina.Position2D ContentPos { get { return GetContentPos(); } - set { SetContentPos( value); } + set { SetContentPos(value); } } /// The content size /// The content size in pixels. @@ -1787,27 +2066,27 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// true if freeze, false otherwise public bool ScrollFreeze { get { return GetScrollFreeze(); } - set { SetScrollFreeze( value); } + set { SetScrollFreeze(value); } } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise public bool ScrollHold { get { return GetScrollHold(); } - set { SetScrollHold( value); } + set { SetScrollHold(value); } } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block public Efl.Ui.ScrollBlock MovementBlock { get { return GetMovementBlock(); } - set { SetMovementBlock( value); } + set { SetMovementBlock(value); } } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels public Eina.Position2D StepSize { get { return GetStepSize(); } - set { SetStepSize( value); } + set { SetStepSize(value); } } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. @@ -1815,7 +2094,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } - set { SetManagerFocus( value); } + set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. @@ -1823,7 +2102,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } - set { SetRedirect( value); } + set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See @@ -1838,1399 +2117,2227 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } - set { SetRoot( value); } + set { SetRoot(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Scroller.efl_ui_scroller_class_get(); } -} -public class ScrollerNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_ui_scrollable_content_pos_get_static_delegate == null) - efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate)}); - if (efl_ui_scrollable_content_pos_set_static_delegate == null) - efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate)}); - if (efl_ui_scrollable_content_size_get_static_delegate == null) - efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate)}); - if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) - efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) - efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate)}); - if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) - efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) - efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate)}); - if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) - efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) - efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate)}); - if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) - efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate)}); - if (efl_ui_scrollable_looping_get_static_delegate == null) - efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); - if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate)}); - if (efl_ui_scrollable_looping_set_static_delegate == null) - efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); - if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate)}); - if (efl_ui_scrollable_movement_block_get_static_delegate == null) - efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate)}); - if (efl_ui_scrollable_movement_block_set_static_delegate == null) - efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate)}); - if (efl_ui_scrollable_gravity_get_static_delegate == null) - efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate)}); - if (efl_ui_scrollable_gravity_set_static_delegate == null) - efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate)}); - if (efl_ui_scrollable_match_content_set_static_delegate == null) - efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); - if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate)}); - if (efl_ui_scrollable_step_size_get_static_delegate == null) - efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate)}); - if (efl_ui_scrollable_step_size_set_static_delegate == null) - efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate)}); - if (efl_ui_scrollable_scroll_static_delegate == null) - efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); - if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) - efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate)}); - if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) - efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate)}); - if (efl_ui_scrollbar_bar_size_get_static_delegate == null) - efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_get_static_delegate == null) - efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate)}); - if (efl_ui_scrollbar_bar_position_set_static_delegate == null) - efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate)}); - if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) - efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate)}); - if (efl_ui_widget_focus_manager_create_static_delegate == null) - efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); - if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate)}); - if (efl_ui_focus_manager_focus_get_static_delegate == null) - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate)}); - if (efl_ui_focus_manager_focus_set_static_delegate == null) - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate)}); - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate)}); - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate)}); - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate)}); - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate)}); - if (efl_ui_focus_manager_root_get_static_delegate == null) - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate)}); - if (efl_ui_focus_manager_root_set_static_delegate == null) - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate)}); - if (efl_ui_focus_manager_move_static_delegate == null) - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate)}); - if (efl_ui_focus_manager_request_move_static_delegate == null) - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate)}); - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate)}); - if (efl_ui_focus_manager_fetch_static_delegate == null) - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate)}); - if (efl_ui_focus_manager_logical_end_static_delegate == null) - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate)}); - if (efl_ui_focus_manager_reset_history_static_delegate == null) - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate)}); - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate)}); - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Scroller.efl_ui_scroller_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Scroller.efl_ui_scroller_class_get(); - } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Scroller)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + if (efl_ui_scrollable_content_pos_get_static_delegate == null) + { + efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Scroller)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_scrollable_content_pos_set_static_delegate == null) + { + efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_scrollable_content_size_get_static_delegate == null) + { + efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Scroller)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) + { + efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); } - return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); + } - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); + } - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_get"); - private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Scroller)wrapper).GetContentPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); } - return _ret_var; - } else { - return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); + } - private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); + } - public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_pos_set"); - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - - try { - ((Scroller)wrapper).SetContentPos( _in_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); } - } else { - efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); + } - private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); + } - public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_content_size_get"); - private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Scroller)wrapper).GetContentSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); + } + + if (efl_ui_scrollable_looping_get_static_delegate == null) + { + efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); + } + + if (efl_ui_scrollable_looping_set_static_delegate == null) + { + efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); + } + + if (efl_ui_scrollable_movement_block_get_static_delegate == null) + { + efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); + } + + if (efl_ui_scrollable_movement_block_set_static_delegate == null) + { + efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); + } + + if (efl_ui_scrollable_gravity_get_static_delegate == null) + { + efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); + } + + if (efl_ui_scrollable_gravity_set_static_delegate == null) + { + efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); + } + + if (efl_ui_scrollable_match_content_set_static_delegate == null) + { + efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); + } + + if (efl_ui_scrollable_step_size_get_static_delegate == null) + { + efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); + } + + if (efl_ui_scrollable_step_size_set_static_delegate == null) + { + efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); } + + if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_static_delegate == null) + { + efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); + } + + if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_size_get_static_delegate == null) + { + efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_position_get_static_delegate == null) + { + efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_position_set_static_delegate == null) + { + efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) + { + efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate) }); + } + + if (efl_ui_widget_focus_manager_create_static_delegate == null) + { + efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); + } + + if (efl_ui_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + } + + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); + } + + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + } + + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); + } + + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + } + + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); + } + + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + } + + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + } + + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } + + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + } + + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } + + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + } + + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + } + + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + } + + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); + } + + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } + + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + } + + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } + + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); + } + + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + } + + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } + + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + } + + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + } + + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } + + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Scroller.efl_ui_scroller_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Scroller)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Scroller)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_viewport_geometry_get"); - private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Scroller)wrapper).GetViewportGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Scroller)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; + private static efl_content_unset_delegate efl_content_unset_static_delegate; - private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_get"); - private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - horiz = default(bool); vert = default(bool); - try { - ((Scroller)wrapper).GetBounceEnabled( out horiz, out vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); + + private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Scroller)wrapper).GetContentPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); } - } - private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; - private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_bounce_enabled_set"); - private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetBounceEnabled( horiz, vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); + + private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((Scroller)wrapper).SetContentPos(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } - } else { - efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); } - } - private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); + + private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Scroller)wrapper).GetContentSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_get"); - private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Scroller)wrapper).GetScrollFreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); + + private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Scroller)wrapper).GetViewportGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; + private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; + + + private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + + public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); + + private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((Scroller)wrapper).GetBounceEnabled(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + } + } + + private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + + + private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + + public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); + + private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetBounceEnabled(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + } + } + + private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); + + private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Scroller)wrapper).GetScrollFreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; + + + private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + + public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); + + private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetScrollFreeze(freeze); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); + } + } + + private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); + + private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Scroller)wrapper).GetScrollHold(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + + + private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + + public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); + + private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetScrollHold(hold); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + } + } + + private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; + + + private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + + public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); + + private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + loop_h = default(bool); loop_v = default(bool); + try + { + ((Scroller)wrapper).GetLooping(out loop_h, out loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + } + } + + private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + + + private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + + public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); + + private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetLooping(loop_h, loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + } + } + + private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + + + private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); + + private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); + try + { + _ret_var = ((Scroller)wrapper).GetMovementBlock(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; + + + private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + + public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); + + private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetMovementBlock(block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); + } + } + + private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); + private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((Scroller)wrapper).GetGravity(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_freeze_set"); - private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetScrollFreeze( freeze); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } else { - efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); } - } - private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; + private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_get"); - private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Scroller)wrapper).GetScrollHold(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); + + private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetGravity(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - return _ret_var; - } else { - return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; - private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll_hold_set"); - private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetScrollHold( hold); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); + + private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) + { + Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetMatchContent(w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); } - } else { - efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); } - } - private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; - - private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_get"); - private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - loop_h = default(bool); loop_v = default(bool); - try { - ((Scroller)wrapper).GetLooping( out loop_h, out loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); - } - } - private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); - private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Scroller)wrapper).GetStepSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_looping_set"); - private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetLooping( loop_h, loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + else + { + return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; - private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_get"); - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try { - _ret_var = ((Scroller)wrapper).GetMovementBlock(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); + + private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_step = step; + + try + { + ((Scroller)wrapper).SetStepSize(_in_step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - return _ret_var; - } else { - return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; + private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; - private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_movement_block_set"); - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetMovementBlock( block); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); + + private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + + try + { + ((Scroller)wrapper).Scroll(_in_rect, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } - } else { - efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); } - } - private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; - private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_get"); - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((Scroller)wrapper).GetGravity( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_get"); + + private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); + try + { + ((Scroller)wrapper).GetBarMode(out hbar, out vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); } - } else { - efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } - private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; - private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_gravity_set"); - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetGravity( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_set"); + + private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetBarMode(hbar, vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); } - } else { - efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } - private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; - private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_match_content_set"); - private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetMatchContent( w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_size_get"); + + private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + width = default(double); height = default(double); + try + { + ((Scroller)wrapper).GetBarSize(out width, out height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); } - } else { - efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); } - } - private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_get"); - private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _ret_var = default(Eina.Position2D); - try { - _ret_var = ((Scroller)wrapper).GetStepSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_get"); + + private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + posx = default(double); posy = default(double); + try + { + ((Scroller)wrapper).GetBarPosition(out posx, out posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); } - return _ret_var; - } else { - return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; + private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; - private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_step_size_set"); - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_step = step; - - try { - ((Scroller)wrapper).SetStepSize( _in_step); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_set"); + + private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetBarPosition(posx, posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); } - } else { - efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } - } - private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; + private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; - private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollable_scroll"); - private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - - try { - ((Scroller)wrapper).Scroll( _in_rect, animation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_visibility_update"); + + private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).UpdateBarVisibility(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } - } - private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; - - private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_get"); - private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); - try { - ((Scroller)wrapper).GetBarMode( out hbar, out vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); - } - } - private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); - private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((Scroller)wrapper).FocusManagerCreate(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_mode_set"); - private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetBarMode( hbar, vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + else + { + return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; + private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; - private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); + + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Scroller)wrapper).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_size_get"); - private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - width = default(double); height = default(double); - try { - ((Scroller)wrapper).GetBarSize( out width, out height); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); - public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_get"); - private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - posx = default(double); posy = default(double); - try { - ((Scroller)wrapper).GetBarPosition( out posx, out posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); } - } else { - efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); } - } - private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; - private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_position_set"); - private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetBarPosition( posx, posy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); + + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((Scroller)wrapper).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); } - } - private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; - private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); + + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_scrollbar_bar_visibility_update"); - private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Scroller)wrapper).UpdateBarVisibility(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); + } } - } - private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_manager_create"); - private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((Scroller)wrapper).FocusManagerCreate( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Scroller)wrapper).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_get"); - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Scroller)wrapper).GetManagerFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_set"); - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetManagerFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Scroller)wrapper).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_get"); - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((Scroller)wrapper).GetRedirect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } } - } - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_set"); - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetRedirect( redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Scroller)wrapper).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_border_elements_get"); - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Scroller)wrapper).GetBorderElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_viewport_elements_get"); - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Scroller)wrapper).GetViewportElements( _in_viewport); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); - } - } - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Scroller)wrapper).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_get"); - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Scroller)wrapper).GetRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); + + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Scroller)wrapper).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_set"); - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Scroller)wrapper).SetRoot( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + + } + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } } - } - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); + + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Scroller)wrapper).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_move"); - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Scroller)wrapper).Move( direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } } - } - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); + + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Scroller)wrapper).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_move"); - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Scroller)wrapper).MoveRequest( direction, child, logical); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); + + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((Scroller)wrapper).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_subchild"); - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Scroller)wrapper).RequestSubchild( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } } - } - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); + + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((Scroller)wrapper).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_fetch"); - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try { - _ret_var = ((Scroller)wrapper).Fetch( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_logical_end"); - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try { - _ret_var = ((Scroller)wrapper).LogicalEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_reset_history"); - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).ResetHistory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); + + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_pop_history_stack"); - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).PopHistoryStack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); + + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); } - } else { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).SetupOnFirstTouch( direction, entry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); + + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); } - } - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).FreezeDirtyLogic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Scroller)wrapper).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Scroller)wrapper).DirtyLogicUnfreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_selectable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_selectable.eo.cs index abdb00d..33d7b68 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_selectable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_selectable.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI selectable interface -[ISelectableNativeInherit] +[Efl.Ui.ISelectableConcrete.NativeMethods] public interface ISelectable : Efl.Eo.IWrapper, IDisposable { @@ -44,505 +48,629 @@ ISelectable { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ISelectableConcrete)) - return Efl.Ui.ISelectableNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ISelectableConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_selectable_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ISelectableConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ISelectableConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ItemSelectedEvtKey = new object(); + /// Called when selected public event EventHandler ItemSelectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.AddHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemSelectedEvt. - public void On_ItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemSelectedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemSelectedEvt_delegate; - private void on_ItemSelectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemSelectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ITEM_SELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ItemUnselectedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when no longer selected public event EventHandler ItemUnselectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.AddHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemUnselectedEvt. - public void On_ItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) + public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemUnselectedEvtKey]; + var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemUnselectedEvt_delegate; - private void on_ItemUnselectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemUnselectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object SelectionPasteEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when selection is pasted public event EventHandler SelectionPasteEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.AddHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (RemoveNativeEventHandler(key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionPasteEvt. - public void On_SelectionPasteEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionPasteEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionPasteEvt_delegate; - private void on_SelectionPasteEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionPasteEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionPasteEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_PASTE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionCopyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is copied public event EventHandler SelectionCopyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.AddHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCopyEvt. - public void On_SelectionCopyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCopyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCopyEvt_delegate; - private void on_SelectionCopyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionCopyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCopyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_COPY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionCutEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cut public event EventHandler SelectionCutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.AddHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCutEvt. - public void On_SelectionCutEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCutEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCutEvt_delegate; - private void on_SelectionCutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionCutEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_CUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called at selection start public event EventHandler SelectionStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.AddHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_START"; - if (RemoveNativeEventHandler(key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionStartEvt. - public void On_SelectionStartEvt(EventArgs e) + public void OnSelectionStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionStartEvtKey]; + var key = "_EFL_UI_EVENT_SELECTION_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionStartEvt_delegate; - private void on_SelectionStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object SelectionChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is changed public event EventHandler SelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionChangedEvt. - public void On_SelectionChangedEvt(EventArgs e) + public void OnSelectionChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionChangedEvtKey]; + var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionChangedEvt_delegate; - private void on_SelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object SelectionClearedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cleared public event EventHandler SelectionClearedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.AddHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionClearedEvt. - public void On_SelectionClearedEvt(EventArgs e) + public void OnSelectionClearedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionClearedEvtKey]; + var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionClearedEvt_delegate; - private void on_SelectionClearedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionClearedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ItemSelectedEvt_delegate = new Efl.EventCb(on_ItemSelectedEvt_NativeCallback); - evt_ItemUnselectedEvt_delegate = new Efl.EventCb(on_ItemUnselectedEvt_NativeCallback); - evt_SelectionPasteEvt_delegate = new Efl.EventCb(on_SelectionPasteEvt_NativeCallback); - evt_SelectionCopyEvt_delegate = new Efl.EventCb(on_SelectionCopyEvt_NativeCallback); - evt_SelectionCutEvt_delegate = new Efl.EventCb(on_SelectionCutEvt_NativeCallback); - evt_SelectionStartEvt_delegate = new Efl.EventCb(on_SelectionStartEvt_NativeCallback); - evt_SelectionChangedEvt_delegate = new Efl.EventCb(on_SelectionChangedEvt_NativeCallback); - evt_SelectionClearedEvt_delegate = new Efl.EventCb(on_SelectionClearedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } private static IntPtr GetEflClassStatic() { return Efl.Ui.ISelectableConcrete.efl_ui_selectable_interface_get(); } -} -public class ISelectableNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ISelectableConcrete.efl_ui_selectable_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.ISelectableConcrete.efl_ui_selectable_interface_get(); - } + /// 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(); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ISelectableConcrete.efl_ui_selectable_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_selection.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_selection.eo.cs index 1346844..d2ba7e0 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_selection.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_selection.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl Ui Selection class -[ISelectionNativeInherit] +[Efl.Ui.ISelectionConcrete.NativeMethods] public interface ISelection : Efl.Eo.IWrapper, IDisposable { @@ -16,25 +20,23 @@ public interface ISelection : /// Selection data /// Specified seat for multiple seats case. /// Future for tracking when the selection is lost - Eina.Future SetSelection( Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); + Eina.Future SetSelection(Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); /// Get the data from the object that has selection /// Selection Type /// Selection Format /// Data ready function pointer /// Specified seat for multiple seats case. -/// -void GetSelection( Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Efl.Ui.SelectionDataReady data_func, uint seat); +void GetSelection(Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Efl.Ui.SelectionDataReady data_func, uint seat); /// Clear the selection data from the object /// Selection Type /// Specified seat for multiple seats case. -/// -void ClearSelection( Efl.Ui.SelectionType type, uint seat); +void ClearSelection(Efl.Ui.SelectionType type, uint seat); /// Determine whether the selection data has owner /// Selection type /// Specified seat for multiple seats case. /// EINA_TRUE if there is object owns selection, otherwise EINA_FALSE -bool HasOwner( Efl.Ui.SelectionType type, uint seat); - System.Threading.Tasks.Task SetSelectionAsync( Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +bool HasOwner(Efl.Ui.SelectionType type, uint seat); + System.Threading.Tasks.Task SetSelectionAsync(Efl.Ui.SelectionType type,Efl.Ui.SelectionFormat format,Eina.Slice data,uint seat, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); /// Called when display server's selection has changed event EventHandler WmSelectionChangedEvt; } @@ -50,168 +52,234 @@ ISelection { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ISelectionConcrete)) - return Efl.Ui.ISelectionNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ISelectionConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_selection_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private ISelectionConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~ISelectionConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object WmSelectionChangedEvtKey = new object(); + /// Called when display server's selection has changed public event EventHandler WmSelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectionWmSelectionChangedEvt_Args args = new Efl.Ui.ISelectionWmSelectionChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WmSelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(WmSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_WmSelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(WmSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WmSelectionChangedEvt. - public void On_WmSelectionChangedEvt(Efl.Ui.ISelectionWmSelectionChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WmSelectionChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WmSelectionChangedEvt_delegate; - private void on_WmSelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnWmSelectionChangedEvt(Efl.Ui.ISelectionWmSelectionChangedEvt_Args e) { - Efl.Ui.ISelectionWmSelectionChangedEvt_Args args = new Efl.Ui.ISelectionWmSelectionChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_WmSelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_WmSelectionChangedEvt_delegate = new Efl.EventCb(on_WmSelectionChangedEvt_NativeCallback); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Set the selection data to the object /// Selection Type @@ -219,8 +287,8 @@ private static object WmSelectionChangedEvtKey = new object(); /// Selection data /// Specified seat for multiple seats case. /// Future for tracking when the selection is lost - public Eina.Future SetSelection( Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat) { - var _ret_var = Efl.Ui.ISelectionNativeInherit.efl_ui_selection_set_ptr.Value.Delegate(this.NativeHandle, type, format, data, seat); + public Eina.Future SetSelection(Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat) { + var _ret_var = Efl.Ui.ISelectionConcrete.NativeMethods.efl_ui_selection_set_ptr.Value.Delegate(this.NativeHandle,type, format, data, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -229,169 +297,247 @@ private static object WmSelectionChangedEvtKey = new object(); /// Selection Format /// Data ready function pointer /// Specified seat for multiple seats case. - /// - public void GetSelection( Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Efl.Ui.SelectionDataReady data_func, uint seat) { + public void GetSelection(Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Efl.Ui.SelectionDataReady data_func, uint seat) { GCHandle data_func_handle = GCHandle.Alloc(data_func); - Efl.Ui.ISelectionNativeInherit.efl_ui_selection_get_ptr.Value.Delegate(this.NativeHandle, type, format, GCHandle.ToIntPtr(data_func_handle), Efl.Ui.SelectionDataReadyWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); + Efl.Ui.ISelectionConcrete.NativeMethods.efl_ui_selection_get_ptr.Value.Delegate(this.NativeHandle,type, format, GCHandle.ToIntPtr(data_func_handle), Efl.Ui.SelectionDataReadyWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); Eina.Error.RaiseIfUnhandledException(); } /// Clear the selection data from the object /// Selection Type /// Specified seat for multiple seats case. - /// - public void ClearSelection( Efl.Ui.SelectionType type, uint seat) { - Efl.Ui.ISelectionNativeInherit.efl_ui_selection_clear_ptr.Value.Delegate(this.NativeHandle, type, seat); + public void ClearSelection(Efl.Ui.SelectionType type, uint seat) { + Efl.Ui.ISelectionConcrete.NativeMethods.efl_ui_selection_clear_ptr.Value.Delegate(this.NativeHandle,type, seat); Eina.Error.RaiseIfUnhandledException(); } /// Determine whether the selection data has owner /// Selection type /// Specified seat for multiple seats case. /// EINA_TRUE if there is object owns selection, otherwise EINA_FALSE - public bool HasOwner( Efl.Ui.SelectionType type, uint seat) { - var _ret_var = Efl.Ui.ISelectionNativeInherit.efl_ui_selection_has_owner_ptr.Value.Delegate(this.NativeHandle, type, seat); + public bool HasOwner(Efl.Ui.SelectionType type, uint seat) { + var _ret_var = Efl.Ui.ISelectionConcrete.NativeMethods.efl_ui_selection_has_owner_ptr.Value.Delegate(this.NativeHandle,type, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - public System.Threading.Tasks.Task SetSelectionAsync( Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task SetSelectionAsync(Efl.Ui.SelectionType type,Efl.Ui.SelectionFormat format,Eina.Slice data,uint seat, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = SetSelection( type, format, data, seat); + Eina.Future future = SetSelection( type, format, data, seat); return Efl.Eo.Globals.WrapAsync(future, token); } private static IntPtr GetEflClassStatic() { return Efl.Ui.ISelectionConcrete.efl_ui_selection_mixin_get(); } -} -public class ISelectionNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_selection_set_static_delegate == null) - efl_ui_selection_set_static_delegate = new efl_ui_selection_set_delegate(selection_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_set_static_delegate)}); - if (efl_ui_selection_get_static_delegate == null) - efl_ui_selection_get_static_delegate = new efl_ui_selection_get_delegate(selection_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_get_static_delegate)}); - if (efl_ui_selection_clear_static_delegate == null) - efl_ui_selection_clear_static_delegate = new efl_ui_selection_clear_delegate(selection_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_clear_static_delegate)}); - if (efl_ui_selection_has_owner_static_delegate == null) - efl_ui_selection_has_owner_static_delegate = new efl_ui_selection_has_owner_delegate(has_owner); - if (methods.FirstOrDefault(m => m.Name == "HasOwner") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_has_owner"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_has_owner_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ISelectionConcrete.efl_ui_selection_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.ISelectionConcrete.efl_ui_selection_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_selection_set_static_delegate == null) + { + efl_ui_selection_set_static_delegate = new efl_ui_selection_set_delegate(selection_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_ui_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); + if (methods.FirstOrDefault(m => m.Name == "SetSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_set_static_delegate) }); + } + if (efl_ui_selection_get_static_delegate == null) + { + efl_ui_selection_get_static_delegate = new efl_ui_selection_get_delegate(selection_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_ui_selection_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_set"); - private static Eina.Future selection_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((ISelectionConcrete)wrapper).SetSelection( type, format, data, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, format, data, seat); + + if (efl_ui_selection_clear_static_delegate == null) + { + efl_ui_selection_clear_static_delegate = new efl_ui_selection_clear_delegate(selection_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selection_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_clear_static_delegate) }); + } + + if (efl_ui_selection_has_owner_static_delegate == null) + { + efl_ui_selection_has_owner_static_delegate = new efl_ui_selection_has_owner_delegate(has_owner); + } + + if (methods.FirstOrDefault(m => m.Name == "HasOwner") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selection_has_owner"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_has_owner_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.ISelectionConcrete.efl_ui_selection_mixin_get(); } - } - private static efl_ui_selection_set_delegate efl_ui_selection_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_selection_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_ui_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_ui_selection_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); - public delegate void efl_ui_selection_get_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_get"); - private static void selection_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.SelectionDataReadyWrapper data_func_wrapper = new Efl.Ui.SelectionDataReadyWrapper(data_func, data_func_data, data_func_free_cb); - - try { - ((ISelectionConcrete)wrapper).GetSelection( type, format, data_func_wrapper.ManagedCb, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_selection_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selection_set"); + + private static Eina.Future selection_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat) + { + Eina.Log.Debug("function efl_ui_selection_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((ISelectionConcrete)wrapper).SetSelection(type, format, data, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, format, data, seat); } - } else { - efl_ui_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, format, data_func_data, data_func, data_func_free_cb, seat); } - } - private static efl_ui_selection_get_delegate efl_ui_selection_get_static_delegate; + private static efl_ui_selection_set_delegate efl_ui_selection_set_static_delegate; - private delegate void efl_ui_selection_clear_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat); + + private delegate void efl_ui_selection_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat); + + public delegate void efl_ui_selection_get_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat); + + public static Efl.Eo.FunctionWrapper efl_ui_selection_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selection_get"); + + private static void selection_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat) + { + Eina.Log.Debug("function efl_ui_selection_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.SelectionDataReadyWrapper data_func_wrapper = new Efl.Ui.SelectionDataReadyWrapper(data_func, data_func_data, data_func_free_cb); + + try + { + ((ISelectionConcrete)wrapper).GetSelection(type, format, data_func_wrapper.ManagedCb, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_selection_clear_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_clear"); - private static void selection_clear(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((ISelectionConcrete)wrapper).ClearSelection( type, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_selection_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, seat); + else + { + efl_ui_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, format, data_func_data, data_func, data_func_free_cb, seat); + } } - } - private static efl_ui_selection_clear_delegate efl_ui_selection_clear_static_delegate; + private static efl_ui_selection_get_delegate efl_ui_selection_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_selection_has_owner_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat); + + private delegate void efl_ui_selection_clear_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat); + + public delegate void efl_ui_selection_clear_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, uint seat); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_selection_has_owner_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_has_owner_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_has_owner"); - private static bool has_owner(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_has_owner was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ISelectionConcrete)wrapper).HasOwner( type, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_selection_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selection_clear"); + + private static void selection_clear(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat) + { + Eina.Log.Debug("function efl_ui_selection_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ISelectionConcrete)wrapper).ClearSelection(type, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_selection_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, seat); + } + } + + private static efl_ui_selection_clear_delegate efl_ui_selection_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_selection_has_owner_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_selection_has_owner_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, uint seat); + + public static Efl.Eo.FunctionWrapper efl_ui_selection_has_owner_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selection_has_owner"); + + private static bool has_owner(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat) + { + Eina.Log.Debug("function efl_ui_selection_has_owner was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ISelectionConcrete)wrapper).HasOwner(type, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_selection_has_owner_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, seat); + + } + else + { + return efl_ui_selection_has_owner_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, seat); + } } - } - private static efl_ui_selection_has_owner_delegate efl_ui_selection_has_owner_static_delegate; + + private static efl_ui_selection_has_owner_delegate efl_ui_selection_has_owner_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_selection_manager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_selection_manager.eo.cs deleted file mode 100644 index c574147..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_selection_manager.eo.cs +++ /dev/null @@ -1,604 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[SelectionManagerNativeInherit] -public class SelectionManager : Efl.Object, Efl.Eo.IWrapper -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (SelectionManager)) - return Efl.Ui.SelectionManagerNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_selection_manager_class_get(); - ///Creates a new instance. - ///Parent instance. - public SelectionManager(Efl.Object parent= null - ) : - base(efl_ui_selection_manager_class_get(), typeof(SelectionManager), parent) - { - FinishInstantiation(); - } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - protected SelectionManager(System.IntPtr raw) : base(raw) - { - RegisterEventProxies(); - } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected SelectionManager(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } - /// Set selection - /// Seleciton owner - /// Selection type - /// Selection format - /// Selection data - /// Specified seat for multiple seats case. - /// Future for tracking when the selection is lost - virtual public Eina.Future SetSelection( Efl.Object owner, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat) { - var _ret_var = Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_selection_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), owner, type, format, data, seat); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Get selection - /// Seleciton owner - /// Selection type - /// Selection Format - /// Data ready function pointer - /// Specified seat for multiple seats case. - /// - virtual public void GetSelection( Efl.Object request, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Efl.Ui.SelectionDataReady data_func, uint seat) { - GCHandle data_func_handle = GCHandle.Alloc(data_func); - Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_selection_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), request, type, format, GCHandle.ToIntPtr(data_func_handle), Efl.Ui.SelectionDataReadyWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); - Eina.Error.RaiseIfUnhandledException(); - } - /// - /// Seleciton owner - /// Selection type - /// Specified seat for multiple seats case. - /// - virtual public void ClearSelection( Efl.Object owner, Efl.Ui.SelectionType type, uint seat) { - Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_selection_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), owner, type, seat); - Eina.Error.RaiseIfUnhandledException(); - } - /// Check if the request object has selection or not - /// Request object - /// Selection type - /// Specified seat for multiple seats case. - /// EINA_TRUE if the request object has selection, otherwise, EINA_FALSE - virtual public bool SelectionHasOwner( Efl.Object request, Efl.Ui.SelectionType type, uint seat) { - var _ret_var = Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_selection_has_owner_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), request, type, seat); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// This starts a drag and drop process at the drag side. During dragging, there are three events emitted as belows: - EFL_UI_DND_EVENT_DRAG_POS - EFL_UI_DND_EVENT_DRAG_ACCEPT - EFL_UI_DND_EVENT_DRAG_DONE - /// Drag object - /// Data format - /// Data to transfer - /// Action when data is transferred - /// Function pointer to create icon - /// Specified seat for multiple seats case. - /// - virtual public void DragStart( Efl.Object drag_obj, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, Efl.Dnd.DragIconCreate icon_func, uint seat) { - GCHandle icon_func_handle = GCHandle.Alloc(icon_func); - Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_drag_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), drag_obj, format, data, action, GCHandle.ToIntPtr(icon_func_handle), Efl.Dnd.DragIconCreateWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); - Eina.Error.RaiseIfUnhandledException(); - } - /// This sets the action for the drag - /// Drag object - /// Drag action - /// Specified seat for multiple seats case. - /// - virtual public void SetDragAction( Efl.Object drag_obj, Efl.Ui.SelectionAction action, uint seat) { - Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_drag_action_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), drag_obj, action, seat); - Eina.Error.RaiseIfUnhandledException(); - } - /// This cancels the on-going drag - /// Drag object - /// Specified seat for multiple seats case. - /// - virtual public void DragCancel( Efl.Object drag_obj, uint seat) { - Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_drag_cancel_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), drag_obj, seat); - Eina.Error.RaiseIfUnhandledException(); - } - /// This registers a drag for items in a container. Many items can be dragged at a time. During dragging, there are three events emitted: - EFL_UI_DND_EVENT_DRAG_POS - EFL_UI_DND_EVENT_DRAG_ACCEPT - EFL_UI_DND_EVENT_DRAG_DONE. - /// Container object - /// Time since mouse down happens to drag starts - /// animation duration - /// Data and its format - /// Item to determine drag start - /// Icon used during drag - /// Icons used for animations - /// Specified seat for multiple seats case - /// - virtual public void AddContainerDragItem( Efl.Object cont, double time_to_drag, double anim_duration, Efl.Dnd.DragDataGet data_func, Efl.Dnd.ItemGet item_func, Efl.Dnd.DragIconCreate icon_func, Efl.Dnd.DragIconListCreate icon_list_func, uint seat) { - GCHandle data_func_handle = GCHandle.Alloc(data_func); - GCHandle item_func_handle = GCHandle.Alloc(item_func); - GCHandle icon_func_handle = GCHandle.Alloc(icon_func); - GCHandle icon_list_func_handle = GCHandle.Alloc(icon_list_func); - Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_container_drag_item_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cont, time_to_drag, anim_duration, GCHandle.ToIntPtr(data_func_handle), Efl.Dnd.DragDataGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(item_func_handle), Efl.Dnd.ItemGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(icon_func_handle), Efl.Dnd.DragIconCreateWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(icon_list_func_handle), Efl.Dnd.DragIconListCreateWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); - Eina.Error.RaiseIfUnhandledException(); - } - /// Remove drag function of items in the container object. - /// Container object - /// Specified seat for multiple seats case - /// true on success, false otherwise - virtual public bool DelContainerDragItem( Efl.Object cont, uint seat) { - var _ret_var = Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_container_drag_item_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cont, seat); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Add a dropable target. There are four events emitted: - EFL_UI_DND_DROP_DRAG_ENTER - EFL_UI_DND_DROP_DRAG_LEAVE - EFL_UI_DND_DROP_DRAG_POS - EFL_UI_DND_DROP_DRAG_DROP. - /// Drop target - /// Accepted data format - /// Specified seat for multiple seats case. - /// true on success, false otherwise - virtual public bool AddDropTarget( Efl.Object target_obj, Efl.Ui.SelectionFormat format, uint seat) { - var _ret_var = Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_drop_target_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), target_obj, format, seat); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Remove a dropable target - /// Drop target - /// Accepted data format - /// Specified seat for multiple seats case. - /// - virtual public void DelDropTarget( Efl.Object target_obj, Efl.Ui.SelectionFormat format, uint seat) { - Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_drop_target_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), target_obj, format, seat); - Eina.Error.RaiseIfUnhandledException(); - } - /// Add dropable target for a container in which items can drop to it - /// Container object - /// Accepted data formats - /// Get item at specific position - /// Specified seat for multiple seats case. - /// - virtual public void AddContainerDropItem( Efl.Object cont, Efl.Ui.SelectionFormat format, Efl.Dnd.ItemGet item_func, uint seat) { - GCHandle item_func_handle = GCHandle.Alloc(item_func); - Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_container_drop_item_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cont, format, GCHandle.ToIntPtr(item_func_handle), Efl.Dnd.ItemGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); - Eina.Error.RaiseIfUnhandledException(); - } - /// Remove dropable target for the container - /// Container object - /// Specified seat for multiple seats case. - /// true on success, false otherwise - virtual public bool DelContainerDropItem( Efl.Object cont, uint seat) { - var _ret_var = Efl.Ui.SelectionManagerNativeInherit.efl_ui_selection_manager_container_drop_item_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cont, seat); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - public System.Threading.Tasks.Task SetSelectionAsync( Efl.Object owner, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) - { - Eina.Future future = SetSelection( owner, type, format, data, seat); - return Efl.Eo.Globals.WrapAsync(future, token); - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.SelectionManager.efl_ui_selection_manager_class_get(); - } -} -public class SelectionManagerNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_selection_manager_selection_set_static_delegate == null) - efl_ui_selection_manager_selection_set_static_delegate = new efl_ui_selection_manager_selection_set_delegate(selection_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_selection_set_static_delegate)}); - if (efl_ui_selection_manager_selection_get_static_delegate == null) - efl_ui_selection_manager_selection_get_static_delegate = new efl_ui_selection_manager_selection_get_delegate(selection_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_selection_get_static_delegate)}); - if (efl_ui_selection_manager_selection_clear_static_delegate == null) - efl_ui_selection_manager_selection_clear_static_delegate = new efl_ui_selection_manager_selection_clear_delegate(selection_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_selection_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_selection_clear_static_delegate)}); - if (efl_ui_selection_manager_selection_has_owner_static_delegate == null) - efl_ui_selection_manager_selection_has_owner_static_delegate = new efl_ui_selection_manager_selection_has_owner_delegate(selection_has_owner); - if (methods.FirstOrDefault(m => m.Name == "SelectionHasOwner") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_selection_has_owner"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_selection_has_owner_static_delegate)}); - if (efl_ui_selection_manager_drag_start_static_delegate == null) - efl_ui_selection_manager_drag_start_static_delegate = new efl_ui_selection_manager_drag_start_delegate(drag_start); - if (methods.FirstOrDefault(m => m.Name == "DragStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_drag_start"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_drag_start_static_delegate)}); - if (efl_ui_selection_manager_drag_action_set_static_delegate == null) - efl_ui_selection_manager_drag_action_set_static_delegate = new efl_ui_selection_manager_drag_action_set_delegate(drag_action_set); - if (methods.FirstOrDefault(m => m.Name == "SetDragAction") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_drag_action_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_drag_action_set_static_delegate)}); - if (efl_ui_selection_manager_drag_cancel_static_delegate == null) - efl_ui_selection_manager_drag_cancel_static_delegate = new efl_ui_selection_manager_drag_cancel_delegate(drag_cancel); - if (methods.FirstOrDefault(m => m.Name == "DragCancel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_drag_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_drag_cancel_static_delegate)}); - if (efl_ui_selection_manager_container_drag_item_add_static_delegate == null) - efl_ui_selection_manager_container_drag_item_add_static_delegate = new efl_ui_selection_manager_container_drag_item_add_delegate(container_drag_item_add); - if (methods.FirstOrDefault(m => m.Name == "AddContainerDragItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_container_drag_item_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_container_drag_item_add_static_delegate)}); - if (efl_ui_selection_manager_container_drag_item_del_static_delegate == null) - efl_ui_selection_manager_container_drag_item_del_static_delegate = new efl_ui_selection_manager_container_drag_item_del_delegate(container_drag_item_del); - if (methods.FirstOrDefault(m => m.Name == "DelContainerDragItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_container_drag_item_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_container_drag_item_del_static_delegate)}); - if (efl_ui_selection_manager_drop_target_add_static_delegate == null) - efl_ui_selection_manager_drop_target_add_static_delegate = new efl_ui_selection_manager_drop_target_add_delegate(drop_target_add); - if (methods.FirstOrDefault(m => m.Name == "AddDropTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_drop_target_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_drop_target_add_static_delegate)}); - if (efl_ui_selection_manager_drop_target_del_static_delegate == null) - efl_ui_selection_manager_drop_target_del_static_delegate = new efl_ui_selection_manager_drop_target_del_delegate(drop_target_del); - if (methods.FirstOrDefault(m => m.Name == "DelDropTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_drop_target_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_drop_target_del_static_delegate)}); - if (efl_ui_selection_manager_container_drop_item_add_static_delegate == null) - efl_ui_selection_manager_container_drop_item_add_static_delegate = new efl_ui_selection_manager_container_drop_item_add_delegate(container_drop_item_add); - if (methods.FirstOrDefault(m => m.Name == "AddContainerDropItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_container_drop_item_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_container_drop_item_add_static_delegate)}); - if (efl_ui_selection_manager_container_drop_item_del_static_delegate == null) - efl_ui_selection_manager_container_drop_item_del_static_delegate = new efl_ui_selection_manager_container_drop_item_del_delegate(container_drop_item_del); - if (methods.FirstOrDefault(m => m.Name == "DelContainerDropItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_manager_container_drop_item_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_manager_container_drop_item_del_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.SelectionManager.efl_ui_selection_manager_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.SelectionManager.efl_ui_selection_manager_class_get(); - } - - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_ui_selection_manager_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object owner, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); - - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_ui_selection_manager_selection_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object owner, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_selection_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_selection_set"); - private static Eina.Future selection_set(System.IntPtr obj, System.IntPtr pd, Efl.Object owner, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_selection_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((SelectionManager)wrapper).SetSelection( owner, type, format, data, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_selection_manager_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), owner, type, format, data, seat); - } - } - private static efl_ui_selection_manager_selection_set_delegate efl_ui_selection_manager_selection_set_static_delegate; - - - private delegate void efl_ui_selection_manager_selection_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object request, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat); - - - public delegate void efl_ui_selection_manager_selection_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object request, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_selection_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_selection_get"); - private static void selection_get(System.IntPtr obj, System.IntPtr pd, Efl.Object request, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_selection_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.SelectionDataReadyWrapper data_func_wrapper = new Efl.Ui.SelectionDataReadyWrapper(data_func, data_func_data, data_func_free_cb); - - try { - ((SelectionManager)wrapper).GetSelection( request, type, format, data_func_wrapper.ManagedCb, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_selection_manager_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), request, type, format, data_func_data, data_func, data_func_free_cb, seat); - } - } - private static efl_ui_selection_manager_selection_get_delegate efl_ui_selection_manager_selection_get_static_delegate; - - - private delegate void efl_ui_selection_manager_selection_clear_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object owner, Efl.Ui.SelectionType type, uint seat); - - - public delegate void efl_ui_selection_manager_selection_clear_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object owner, Efl.Ui.SelectionType type, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_selection_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_selection_clear"); - private static void selection_clear(System.IntPtr obj, System.IntPtr pd, Efl.Object owner, Efl.Ui.SelectionType type, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_selection_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((SelectionManager)wrapper).ClearSelection( owner, type, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_selection_manager_selection_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), owner, type, seat); - } - } - private static efl_ui_selection_manager_selection_clear_delegate efl_ui_selection_manager_selection_clear_static_delegate; - - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_selection_manager_selection_has_owner_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object request, Efl.Ui.SelectionType type, uint seat); - - - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_selection_manager_selection_has_owner_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object request, Efl.Ui.SelectionType type, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_selection_has_owner_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_selection_has_owner"); - private static bool selection_has_owner(System.IntPtr obj, System.IntPtr pd, Efl.Object request, Efl.Ui.SelectionType type, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_selection_has_owner was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((SelectionManager)wrapper).SelectionHasOwner( request, type, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_selection_manager_selection_has_owner_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), request, type, seat); - } - } - private static efl_ui_selection_manager_selection_has_owner_delegate efl_ui_selection_manager_selection_has_owner_static_delegate; - - - private delegate void efl_ui_selection_manager_drag_start_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object drag_obj, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat); - - - public delegate void efl_ui_selection_manager_drag_start_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object drag_obj, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_drag_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_drag_start"); - private static void drag_start(System.IntPtr obj, System.IntPtr pd, Efl.Object drag_obj, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_drag_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Dnd.DragIconCreateWrapper icon_func_wrapper = new Efl.Dnd.DragIconCreateWrapper(icon_func, icon_func_data, icon_func_free_cb); - - try { - ((SelectionManager)wrapper).DragStart( drag_obj, format, data, action, icon_func_wrapper.ManagedCb, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_selection_manager_drag_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_obj, format, data, action, icon_func_data, icon_func, icon_func_free_cb, seat); - } - } - private static efl_ui_selection_manager_drag_start_delegate efl_ui_selection_manager_drag_start_static_delegate; - - - private delegate void efl_ui_selection_manager_drag_action_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object drag_obj, Efl.Ui.SelectionAction action, uint seat); - - - public delegate void efl_ui_selection_manager_drag_action_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object drag_obj, Efl.Ui.SelectionAction action, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_drag_action_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_drag_action_set"); - private static void drag_action_set(System.IntPtr obj, System.IntPtr pd, Efl.Object drag_obj, Efl.Ui.SelectionAction action, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_drag_action_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((SelectionManager)wrapper).SetDragAction( drag_obj, action, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_selection_manager_drag_action_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_obj, action, seat); - } - } - private static efl_ui_selection_manager_drag_action_set_delegate efl_ui_selection_manager_drag_action_set_static_delegate; - - - private delegate void efl_ui_selection_manager_drag_cancel_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object drag_obj, uint seat); - - - public delegate void efl_ui_selection_manager_drag_cancel_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object drag_obj, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_drag_cancel_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_drag_cancel"); - private static void drag_cancel(System.IntPtr obj, System.IntPtr pd, Efl.Object drag_obj, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_drag_cancel was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((SelectionManager)wrapper).DragCancel( drag_obj, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_selection_manager_drag_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_obj, seat); - } - } - private static efl_ui_selection_manager_drag_cancel_delegate efl_ui_selection_manager_drag_cancel_static_delegate; - - - private delegate void efl_ui_selection_manager_container_drag_item_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object cont, double time_to_drag, double anim_duration, IntPtr data_func_data, Efl.Dnd.DragDataGetInternal data_func, EinaFreeCb data_func_free_cb, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, IntPtr icon_list_func_data, Efl.Dnd.DragIconListCreateInternal icon_list_func, EinaFreeCb icon_list_func_free_cb, uint seat); - - - public delegate void efl_ui_selection_manager_container_drag_item_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object cont, double time_to_drag, double anim_duration, IntPtr data_func_data, Efl.Dnd.DragDataGetInternal data_func, EinaFreeCb data_func_free_cb, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, IntPtr icon_list_func_data, Efl.Dnd.DragIconListCreateInternal icon_list_func, EinaFreeCb icon_list_func_free_cb, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_container_drag_item_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_container_drag_item_add"); - private static void container_drag_item_add(System.IntPtr obj, System.IntPtr pd, Efl.Object cont, double time_to_drag, double anim_duration, IntPtr data_func_data, Efl.Dnd.DragDataGetInternal data_func, EinaFreeCb data_func_free_cb, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, IntPtr icon_list_func_data, Efl.Dnd.DragIconListCreateInternal icon_list_func, EinaFreeCb icon_list_func_free_cb, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_container_drag_item_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Dnd.DragDataGetWrapper data_func_wrapper = new Efl.Dnd.DragDataGetWrapper(data_func, data_func_data, data_func_free_cb); - Efl.Dnd.ItemGetWrapper item_func_wrapper = new Efl.Dnd.ItemGetWrapper(item_func, item_func_data, item_func_free_cb); - Efl.Dnd.DragIconCreateWrapper icon_func_wrapper = new Efl.Dnd.DragIconCreateWrapper(icon_func, icon_func_data, icon_func_free_cb); - Efl.Dnd.DragIconListCreateWrapper icon_list_func_wrapper = new Efl.Dnd.DragIconListCreateWrapper(icon_list_func, icon_list_func_data, icon_list_func_free_cb); - - try { - ((SelectionManager)wrapper).AddContainerDragItem( cont, time_to_drag, anim_duration, data_func_wrapper.ManagedCb, item_func_wrapper.ManagedCb, icon_func_wrapper.ManagedCb, icon_list_func_wrapper.ManagedCb, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_selection_manager_container_drag_item_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cont, time_to_drag, anim_duration, data_func_data, data_func, data_func_free_cb, item_func_data, item_func, item_func_free_cb, icon_func_data, icon_func, icon_func_free_cb, icon_list_func_data, icon_list_func, icon_list_func_free_cb, seat); - } - } - private static efl_ui_selection_manager_container_drag_item_add_delegate efl_ui_selection_manager_container_drag_item_add_static_delegate; - - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_selection_manager_container_drag_item_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object cont, uint seat); - - - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_selection_manager_container_drag_item_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object cont, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_container_drag_item_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_container_drag_item_del"); - private static bool container_drag_item_del(System.IntPtr obj, System.IntPtr pd, Efl.Object cont, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_container_drag_item_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((SelectionManager)wrapper).DelContainerDragItem( cont, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_selection_manager_container_drag_item_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cont, seat); - } - } - private static efl_ui_selection_manager_container_drag_item_del_delegate efl_ui_selection_manager_container_drag_item_del_static_delegate; - - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_selection_manager_drop_target_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target_obj, Efl.Ui.SelectionFormat format, uint seat); - - - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_selection_manager_drop_target_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target_obj, Efl.Ui.SelectionFormat format, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_drop_target_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_drop_target_add"); - private static bool drop_target_add(System.IntPtr obj, System.IntPtr pd, Efl.Object target_obj, Efl.Ui.SelectionFormat format, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_drop_target_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((SelectionManager)wrapper).AddDropTarget( target_obj, format, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_selection_manager_drop_target_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), target_obj, format, seat); - } - } - private static efl_ui_selection_manager_drop_target_add_delegate efl_ui_selection_manager_drop_target_add_static_delegate; - - - private delegate void efl_ui_selection_manager_drop_target_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target_obj, Efl.Ui.SelectionFormat format, uint seat); - - - public delegate void efl_ui_selection_manager_drop_target_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object target_obj, Efl.Ui.SelectionFormat format, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_drop_target_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_drop_target_del"); - private static void drop_target_del(System.IntPtr obj, System.IntPtr pd, Efl.Object target_obj, Efl.Ui.SelectionFormat format, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_drop_target_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((SelectionManager)wrapper).DelDropTarget( target_obj, format, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_selection_manager_drop_target_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), target_obj, format, seat); - } - } - private static efl_ui_selection_manager_drop_target_del_delegate efl_ui_selection_manager_drop_target_del_static_delegate; - - - private delegate void efl_ui_selection_manager_container_drop_item_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object cont, Efl.Ui.SelectionFormat format, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, uint seat); - - - public delegate void efl_ui_selection_manager_container_drop_item_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object cont, Efl.Ui.SelectionFormat format, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_container_drop_item_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_container_drop_item_add"); - private static void container_drop_item_add(System.IntPtr obj, System.IntPtr pd, Efl.Object cont, Efl.Ui.SelectionFormat format, IntPtr item_func_data, Efl.Dnd.ItemGetInternal item_func, EinaFreeCb item_func_free_cb, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_container_drop_item_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Dnd.ItemGetWrapper item_func_wrapper = new Efl.Dnd.ItemGetWrapper(item_func, item_func_data, item_func_free_cb); - - try { - ((SelectionManager)wrapper).AddContainerDropItem( cont, format, item_func_wrapper.ManagedCb, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_selection_manager_container_drop_item_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cont, format, item_func_data, item_func, item_func_free_cb, seat); - } - } - private static efl_ui_selection_manager_container_drop_item_add_delegate efl_ui_selection_manager_container_drop_item_add_static_delegate; - - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_selection_manager_container_drop_item_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object cont, uint seat); - - - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_selection_manager_container_drop_item_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object cont, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_manager_container_drop_item_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_manager_container_drop_item_del"); - private static bool container_drop_item_del(System.IntPtr obj, System.IntPtr pd, Efl.Object cont, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_manager_container_drop_item_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((SelectionManager)wrapper).DelContainerDropItem( cont, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_selection_manager_container_drop_item_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cont, seat); - } - } - private static efl_ui_selection_manager_container_drop_item_del_delegate efl_ui_selection_manager_container_drop_item_del_static_delegate; -} -} } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_selection_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_selection_types.eot.cs index 774a9bb..15a1cec 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_selection_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_selection_types.eot.cs @@ -3,15 +3,17 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// +namespace Efl { + +namespace Ui { + /// Object which requested for the selection /// Selection data -/// -public delegate void SelectionDataReady( Efl.Object obj, ref Efl.Ui.SelectionData seldata); -public delegate void SelectionDataReadyInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object obj, ref Efl.Ui.SelectionData.NativeStruct seldata); -internal class SelectionDataReadyWrapper +public delegate void SelectionDataReady(Efl.Object obj, ref Efl.Ui.SelectionData seldata); +public delegate void SelectionDataReadyInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object obj, ref Efl.Ui.SelectionData.NativeStruct seldata); +internal class SelectionDataReadyWrapper : IDisposable { private SelectionDataReadyInternal _cb; @@ -27,26 +29,49 @@ internal class SelectionDataReadyWrapper ~SelectionDataReadyWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); } - internal void ManagedCb( Efl.Object obj, ref Efl.Ui.SelectionData seldata) + internal void ManagedCb(Efl.Object obj,ref Efl.Ui.SelectionData seldata) { Efl.Ui.SelectionData.NativeStruct _in_seldata = seldata; - _cb(_cb_data, obj, ref _in_seldata); + _cb(_cb_data, obj, ref _in_seldata); Eina.Error.RaiseIfUnhandledException(); seldata = _in_seldata; } - internal static void Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object obj, ref Efl.Ui.SelectionData.NativeStruct seldata) + internal static void Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object obj, ref Efl.Ui.SelectionData.NativeStruct seldata) { GCHandle handle = GCHandle.FromIntPtr(cb_data); SelectionDataReady cb = (SelectionDataReady)handle.Target; Efl.Ui.SelectionData _in_seldata = seldata; try { - cb( obj, ref _in_seldata); + cb(obj, ref _in_seldata); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); @@ -54,8 +79,14 @@ internal class SelectionDataReadyWrapper seldata = _in_seldata; } } -} } -namespace Efl { namespace Ui { +} + +} + +namespace Efl { + +namespace Ui { + /// Selection type public enum SelectionType { @@ -68,8 +99,15 @@ Dnd = 2, /// Clipboard selection (ctrl+C) Clipboard = 3, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Selection format public enum SelectionFormat { @@ -88,8 +126,15 @@ Vcard = 8, /// Raw HTML-like data (eg. webkit) Html = 16, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Defines the kind of action associated with the drop data public enum SelectionAction { @@ -110,8 +155,15 @@ Link = 6, /// Describe the data Description = 7, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Structure holding the info about selected data [StructLayout(LayoutKind.Sequential)] public struct SelectionData @@ -128,11 +180,11 @@ public struct SelectionData public Efl.Object Item; ///Constructor for SelectionData. public SelectionData( - Eina.Position2D Pos=default(Eina.Position2D), - Efl.Ui.SelectionFormat Format=default(Efl.Ui.SelectionFormat), - Eina.Slice Content=default(Eina.Slice), - Efl.Ui.SelectionAction Action=default(Efl.Ui.SelectionAction), - Efl.Object Item=default(Efl.Object) ) + Eina.Position2D Pos = default(Eina.Position2D), + Efl.Ui.SelectionFormat Format = default(Efl.Ui.SelectionFormat), + Eina.Slice Content = default(Eina.Slice), + Efl.Ui.SelectionAction Action = default(Efl.Ui.SelectionAction), + Efl.Object Item = default(Efl.Object) ) { this.Pos = Pos; this.Format = Format; @@ -194,9 +246,14 @@ public struct SelectionData } -} } -namespace Efl { namespace Ui { -/// +} + +} + +namespace Efl { + +namespace Ui { + [StructLayout(LayoutKind.Sequential)] public struct SelectionChanged { @@ -210,10 +267,10 @@ public struct SelectionChanged public bool Exist; ///Constructor for SelectionChanged. public SelectionChanged( - Efl.Ui.SelectionType Type=default(Efl.Ui.SelectionType), - int Seat=default(int), - System.IntPtr Display=default(System.IntPtr), - bool Exist=default(bool) ) + Efl.Ui.SelectionType Type = default(Efl.Ui.SelectionType), + int Seat = default(int), + System.IntPtr Display = default(System.IntPtr), + bool Exist = default(bool) ) { this.Type = Type; this.Seat = Seat; @@ -265,4 +322,7 @@ public struct SelectionChanged } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_size_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_size_model.eo.cs deleted file mode 100644 index 0148659..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_size_model.eo.cs +++ /dev/null @@ -1,91 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Ui { -/// Class to be used to store object item size for List/Grid View. -/// This model provide the following properties that can be retrived by : - "self.width" and "self.height" define the size of this object from the point of view of the that use it. It only apply on children and not on the top root object. - "item.width" and "item.height" define all the children size and is available only on that do have children. - "total.width" and "total.height" define the accumulated size used by all the children. Only vertical list accumulation logic is implemented at this point. -[SizeModelNativeInherit] -public class SizeModel : Efl.CompositeModel, Efl.Eo.IWrapper -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (SizeModel)) - return Efl.Ui.SizeModelNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_size_model_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Model that is/will be See - ///Position of this object in the parent model. See - public SizeModel(Efl.Object parent - , Efl.IModel model, uint? index = null) : - base(efl_ui_size_model_class_get(), typeof(SizeModel), parent) - { - if (Efl.Eo.Globals.ParamHelperCheck(model)) - SetModel(Efl.Eo.Globals.GetParamHelper(model)); - if (Efl.Eo.Globals.ParamHelperCheck(index)) - SetIndex(Efl.Eo.Globals.GetParamHelper(index)); - FinishInstantiation(); - } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - protected SizeModel(System.IntPtr raw) : base(raw) - { - RegisterEventProxies(); - } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected SizeModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.SizeModel.efl_ui_size_model_class_get(); - } -} -public class SizeModelNativeInherit : Efl.CompositeModelNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.SizeModel.efl_ui_size_model_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.SizeModel.efl_ui_size_model_class_get(); - } -} -} } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_slider.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_slider.eo.cs index c5657aa..7e14b7f 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_slider.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_slider.eo.cs @@ -3,258 +3,316 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary slider class -[SliderNativeInherit] +[Efl.Ui.Slider.NativeMethods] public class Slider : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.Access.IValue,Efl.Ui.IDirection,Efl.Ui.IRangeDisplay,Efl.Ui.IRangeInteractive { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Slider)) - return Efl.Ui.SliderNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Slider)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_slider_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Slider(Efl.Object parent - , System.String style = null) : - base(efl_ui_slider_class_get(), typeof(Slider), parent) + , System.String style = null) : base(efl_ui_slider_class_get(), typeof(Slider), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Slider(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Slider(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Slider(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ChangedEvtKey = new object(); + /// Called when slider changed public event EventHandler ChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SLIDER_EVENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) { - eventHandlers.AddHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SLIDER_EVENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedEvt. - public void On_ChangedEvt(EventArgs e) + public void OnChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedEvtKey]; + var key = "_EFL_UI_SLIDER_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedEvt_delegate; - private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DelayChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when delay changed public event EventHandler DelayChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SLIDER_EVENT_DELAY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DelayChangedEvt_delegate)) { - eventHandlers.AddHandler(DelayChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SLIDER_EVENT_DELAY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DelayChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DelayChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DelayChangedEvt. - public void On_DelayChangedEvt(EventArgs e) + public void OnDelayChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DelayChangedEvtKey]; + var key = "_EFL_UI_SLIDER_EVENT_DELAY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DelayChangedEvt_delegate; - private void on_DelayChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_DelayChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object SliderDragStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when slider drag started public event EventHandler SliderDragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_SliderDragStartEvt_delegate)) { - eventHandlers.AddHandler(SliderDragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_SliderDragStartEvt_delegate)) { - eventHandlers.RemoveHandler(SliderDragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event SliderDragStartEvt. - public void On_SliderDragStartEvt(EventArgs e) + public void OnSliderDragStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SliderDragStartEvtKey]; + var key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SliderDragStartEvt_delegate; - private void on_SliderDragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SliderDragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object SliderDragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when slider drag stopped public event EventHandler SliderDragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_SliderDragStopEvt_delegate)) { - eventHandlers.AddHandler(SliderDragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_SliderDragStopEvt_delegate)) { - eventHandlers.RemoveHandler(SliderDragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event SliderDragStopEvt. - public void On_SliderDragStopEvt(EventArgs e) + public void OnSliderDragStopEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SliderDragStopEvtKey]; + var key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SliderDragStopEvt_delegate; - private void on_SliderDragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SliderDragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback); - evt_DelayChangedEvt_delegate = new Efl.EventCb(on_DelayChangedEvt_NativeCallback); - evt_SliderDragStartEvt_delegate = new Efl.EventCb(on_SliderDragStartEvt_NativeCallback); - evt_SliderDragStopEvt_delegate = new Efl.EventCb(on_SliderDragStopEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Gets value displayed by a accessible widget. /// Value of widget casted to floating point number. /// string describing value in given context eg. small, enough - /// - virtual public void GetValueAndText( out double value, out System.String text) { - Efl.Access.IValueNativeInherit.efl_access_value_and_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out value, out text); + virtual public void GetValueAndText(out double value, out System.String text) { + Efl.Access.IValueConcrete.NativeMethods.efl_access_value_and_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out value, out text); Eina.Error.RaiseIfUnhandledException(); } /// Value and text property /// Value of widget casted to floating point number. /// string describing value in given context eg. small, enough /// true if setting widgets value has succeeded, otherwise false . - virtual public bool SetValueAndText( double value, System.String text) { - var _ret_var = Efl.Access.IValueNativeInherit.efl_access_value_and_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value, text); + virtual public bool SetValueAndText(double value, System.String text) { + var _ret_var = Efl.Access.IValueConcrete.NativeMethods.efl_access_value_and_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value, text); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -262,15 +320,14 @@ private static object SliderDragStopEvtKey = new object(); /// Lower limit of the range /// Upper limit of the range /// Description of the range - /// - virtual public void GetRange( out double lower_limit, out double upper_limit, out System.String description) { - Efl.Access.IValueNativeInherit.efl_access_value_range_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out lower_limit, out upper_limit, out description); + virtual public void GetRange(out double lower_limit, out double upper_limit, out System.String description) { + Efl.Access.IValueConcrete.NativeMethods.efl_access_value_range_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out lower_limit, out upper_limit, out description); Eina.Error.RaiseIfUnhandledException(); } /// Gets an minimal incrementation value /// Minimal incrementation value virtual public double GetIncrement() { - var _ret_var = Efl.Access.IValueNativeInherit.efl_access_value_increment_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IValueConcrete.NativeMethods.efl_access_value_increment_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -280,7 +337,7 @@ private static object SliderDragStopEvtKey = new object(); /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. virtual public Efl.Ui.Dir GetDirection() { - var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -289,9 +346,8 @@ private static object SliderDragStopEvtKey = new object(); /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. - /// - virtual public void SetDirection( Efl.Ui.Dir dir) { - Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetDirection(Efl.Ui.Dir dir) { + Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// Control the range value (in percentage) on a given range widget @@ -300,7 +356,7 @@ private static object SliderDragStopEvtKey = new object(); /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) virtual public double GetRangeValue() { - var _ret_var = Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -309,18 +365,16 @@ private static object SliderDragStopEvtKey = new object(); /// /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) - /// - virtual public void SetRangeValue( double val) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetRangeValue(double val) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Get the minimum and maximum values of the given range widget. /// Note: If only one value is needed, the other pointer can be passed as null. /// The minimum value. /// The maximum value. - /// - virtual public void GetRangeMinMax( out double min, out double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out min, out max); + virtual public void GetRangeMinMax(out double min, out double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out min, out max); Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. @@ -333,9 +387,8 @@ private static object SliderDragStopEvtKey = new object(); /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. - /// - virtual public void SetRangeMinMax( double min, double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), min, max); + virtual public void SetRangeMinMax(double min, double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),min, max); Eina.Error.RaiseIfUnhandledException(); } /// Control the step used to increment or decrement values for given widget. @@ -346,7 +399,7 @@ private static object SliderDragStopEvtKey = new object(); /// Warning: The step value should be bigger than 0. /// The step value. virtual public double GetRangeStep() { - var _ret_var = Efl.Ui.IRangeInteractiveNativeInherit.efl_ui_range_step_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -357,9 +410,8 @@ private static object SliderDragStopEvtKey = new object(); /// /// Warning: The step value should be bigger than 0. /// The step value. - /// - virtual public void SetRangeStep( double step) { - Efl.Ui.IRangeInteractiveNativeInherit.efl_ui_range_step_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), step); + virtual public void SetRangeStep(double step) { + Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),step); Eina.Error.RaiseIfUnhandledException(); } /// Gets an minimal incrementation value @@ -374,7 +426,7 @@ private static object SliderDragStopEvtKey = new object(); /// Direction of the widget. public Efl.Ui.Dir Direction { get { return GetDirection(); } - set { SetDirection( value); } + set { SetDirection(value); } } /// Control the range value (in percentage) on a given range widget /// Use this call to set range levels. @@ -383,7 +435,7 @@ private static object SliderDragStopEvtKey = new object(); /// The range value (must be between $0.0 and 1.0) public double RangeValue { get { return GetRangeValue(); } - set { SetRangeValue( value); } + set { SetRangeValue(value); } } /// Control the step used to increment or decrement values for given widget. /// This value will be incremented or decremented to the displayed value. @@ -394,374 +446,590 @@ private static object SliderDragStopEvtKey = new object(); /// The step value. public double RangeStep { get { return GetRangeStep(); } - set { SetRangeStep( value); } + set { SetRangeStep(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Slider.efl_ui_slider_class_get(); } -} -public class SliderNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_access_value_and_text_get_static_delegate == null) - efl_access_value_and_text_get_static_delegate = new efl_access_value_and_text_get_delegate(value_and_text_get); - if (methods.FirstOrDefault(m => m.Name == "GetValueAndText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_and_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_get_static_delegate)}); - if (efl_access_value_and_text_set_static_delegate == null) - efl_access_value_and_text_set_static_delegate = new efl_access_value_and_text_set_delegate(value_and_text_set); - if (methods.FirstOrDefault(m => m.Name == "SetValueAndText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_and_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_set_static_delegate)}); - if (efl_access_value_range_get_static_delegate == null) - efl_access_value_range_get_static_delegate = new efl_access_value_range_get_delegate(range_get); - if (methods.FirstOrDefault(m => m.Name == "GetRange") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_range_get_static_delegate)}); - if (efl_access_value_increment_get_static_delegate == null) - efl_access_value_increment_get_static_delegate = new efl_access_value_increment_get_delegate(increment_get); - if (methods.FirstOrDefault(m => m.Name == "GetIncrement") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_increment_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_increment_get_static_delegate)}); - if (efl_ui_direction_get_static_delegate == null) - efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)}); - if (efl_ui_direction_set_static_delegate == null) - efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)}); - if (efl_ui_range_value_get_static_delegate == null) - efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate)}); - if (efl_ui_range_value_set_static_delegate == null) - efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate)}); - if (efl_ui_range_min_max_get_static_delegate == null) - efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate)}); - if (efl_ui_range_min_max_set_static_delegate == null) - efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_static_delegate)}); - if (efl_ui_range_step_get_static_delegate == null) - efl_ui_range_step_get_static_delegate = new efl_ui_range_step_get_delegate(range_step_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeStep") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_get_static_delegate)}); - if (efl_ui_range_step_set_static_delegate == null) - efl_ui_range_step_set_static_delegate = new efl_ui_range_step_set_delegate(range_step_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeStep") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Slider.efl_ui_slider_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Slider.efl_ui_slider_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_access_value_and_text_get_static_delegate == null) + { + efl_access_value_and_text_get_static_delegate = new efl_access_value_and_text_get_delegate(value_and_text_get); + } - private delegate void efl_access_value_and_text_get_delegate(System.IntPtr obj, System.IntPtr pd, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); + if (methods.FirstOrDefault(m => m.Name == "GetValueAndText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_and_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_get_static_delegate) }); + } + if (efl_access_value_and_text_set_static_delegate == null) + { + efl_access_value_and_text_set_static_delegate = new efl_access_value_and_text_set_delegate(value_and_text_set); + } - public delegate void efl_access_value_and_text_get_api_delegate(System.IntPtr obj, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); - public static Efl.Eo.FunctionWrapper efl_access_value_and_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_and_text_get"); - private static void value_and_text_get(System.IntPtr obj, System.IntPtr pd, out double value, out System.String text) - { - Eina.Log.Debug("function efl_access_value_and_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - value = default(double); System.String _out_text = default(System.String); - - try { - ((Slider)wrapper).GetValueAndText( out value, out _out_text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetValueAndText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_and_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_set_static_delegate) }); } - text = _out_text; - } else { - efl_access_value_and_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out value, out text); + + if (efl_access_value_range_get_static_delegate == null) + { + efl_access_value_range_get_static_delegate = new efl_access_value_range_get_delegate(range_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_range_get_static_delegate) }); + } + + if (efl_access_value_increment_get_static_delegate == null) + { + efl_access_value_increment_get_static_delegate = new efl_access_value_increment_get_delegate(increment_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetIncrement") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_increment_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_increment_get_static_delegate) }); + } + + if (efl_ui_direction_get_static_delegate == null) + { + efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate) }); + } + + if (efl_ui_direction_set_static_delegate == null) + { + efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate) }); + } + + if (efl_ui_range_value_get_static_delegate == null) + { + efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate) }); + } + + if (efl_ui_range_value_set_static_delegate == null) + { + efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate) }); + } + + if (efl_ui_range_min_max_get_static_delegate == null) + { + efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate) }); + } + + if (efl_ui_range_min_max_set_static_delegate == null) + { + efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_static_delegate) }); + } + + if (efl_ui_range_step_get_static_delegate == null) + { + efl_ui_range_step_get_static_delegate = new efl_ui_range_step_get_delegate(range_step_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeStep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_get_static_delegate) }); + } + + if (efl_ui_range_step_set_static_delegate == null) + { + efl_ui_range_step_set_static_delegate = new efl_ui_range_step_set_delegate(range_step_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRangeStep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Slider.efl_ui_slider_class_get(); } - } - private static efl_access_value_and_text_get_delegate efl_access_value_and_text_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_value_and_text_set_delegate(System.IntPtr obj, System.IntPtr pd, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + private delegate void efl_access_value_and_text_get_delegate(System.IntPtr obj, System.IntPtr pd, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); + + public delegate void efl_access_value_and_text_get_api_delegate(System.IntPtr obj, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_value_and_text_set_api_delegate(System.IntPtr obj, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_access_value_and_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_and_text_set"); - private static bool value_and_text_set(System.IntPtr obj, System.IntPtr pd, double value, System.String text) - { - Eina.Log.Debug("function efl_access_value_and_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Slider)wrapper).SetValueAndText( value, text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_value_and_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_and_text_get"); + + private static void value_and_text_get(System.IntPtr obj, System.IntPtr pd, out double value, out System.String text) + { + Eina.Log.Debug("function efl_access_value_and_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + value = default(double); System.String _out_text = default(System.String); + + try + { + ((Slider)wrapper).GetValueAndText(out value, out _out_text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + text = _out_text; + + } + else + { + efl_access_value_and_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out value, out text); } + } + + private static efl_access_value_and_text_get_delegate efl_access_value_and_text_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_value_and_text_set_delegate(System.IntPtr obj, System.IntPtr pd, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_value_and_text_set_api_delegate(System.IntPtr obj, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_access_value_and_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_and_text_set"); + + private static bool value_and_text_set(System.IntPtr obj, System.IntPtr pd, double value, System.String text) + { + Eina.Log.Debug("function efl_access_value_and_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Slider)wrapper).SetValueAndText(value, text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_value_and_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value, text); + + } + else + { + return efl_access_value_and_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value, text); + } } - } - private static efl_access_value_and_text_set_delegate efl_access_value_and_text_set_static_delegate; + private static efl_access_value_and_text_set_delegate efl_access_value_and_text_set_static_delegate; - private delegate void efl_access_value_range_get_delegate(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); + + private delegate void efl_access_value_range_get_delegate(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); + + public delegate void efl_access_value_range_get_api_delegate(System.IntPtr obj, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); - public delegate void efl_access_value_range_get_api_delegate(System.IntPtr obj, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); - public static Efl.Eo.FunctionWrapper efl_access_value_range_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_range_get"); - private static void range_get(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, out System.String description) - { - Eina.Log.Debug("function efl_access_value_range_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - lower_limit = default(double); upper_limit = default(double); System.String _out_description = default(System.String); + public static Efl.Eo.FunctionWrapper efl_access_value_range_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_range_get"); + + private static void range_get(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, out System.String description) + { + Eina.Log.Debug("function efl_access_value_range_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + lower_limit = default(double); upper_limit = default(double); System.String _out_description = default(System.String); - try { - ((Slider)wrapper).GetRange( out lower_limit, out upper_limit, out _out_description); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((Slider)wrapper).GetRange(out lower_limit, out upper_limit, out _out_description); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + description = _out_description; - } else { - efl_access_value_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out lower_limit, out upper_limit, out description); + + } + else + { + efl_access_value_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out lower_limit, out upper_limit, out description); + } } - } - private static efl_access_value_range_get_delegate efl_access_value_range_get_static_delegate; + private static efl_access_value_range_get_delegate efl_access_value_range_get_static_delegate; - private delegate double efl_access_value_increment_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_access_value_increment_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_access_value_increment_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_value_increment_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_increment_get"); + + private static double increment_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_value_increment_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Slider)wrapper).GetIncrement(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_access_value_increment_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_value_increment_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_increment_get"); - private static double increment_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_value_increment_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Slider)wrapper).GetIncrement(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_value_increment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_value_increment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_value_increment_get_delegate efl_access_value_increment_get_static_delegate; + private static efl_access_value_increment_get_delegate efl_access_value_increment_get_static_delegate; - private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_get"); + + private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); + try + { + _ret_var = ((Slider)wrapper).GetDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_get"); - private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); - try { - _ret_var = ((Slider)wrapper).GetDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; - private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_set"); - private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Slider)wrapper).SetDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_set"); + + private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Slider)wrapper).SetDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } } - } - private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; + private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; - private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_get"); + + private static double range_value_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_range_value_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Slider)wrapper).GetRangeValue(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_get"); - private static double range_value_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_range_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Slider)wrapper).GetRangeValue(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; + private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; - private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); + + private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); + + public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); - public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_set"); - private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) - { - Eina.Log.Debug("function efl_ui_range_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Slider)wrapper).SetRangeValue( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_set"); + + private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) + { + Eina.Log.Debug("function efl_ui_range_value_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Slider)wrapper).SetRangeValue(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } } - } - private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; + private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; - private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + + private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + + public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); - public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_get"); - private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - min = default(double); max = default(double); - try { - ((Slider)wrapper).GetRangeMinMax( out min, out max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_get"); + + private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + min = default(double); max = default(double); + try + { + ((Slider)wrapper).GetRangeMinMax(out min, out max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); + } } - } - private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; + private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; - private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); - public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_set"); - private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Slider)wrapper).SetRangeMinMax( min, max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_set"); + + private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Slider)wrapper).SetRangeMinMax(min, max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); + } } - } - private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; + private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; - private delegate double efl_ui_range_step_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_ui_range_step_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_range_step_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_range_step_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_step_get"); + + private static double range_step_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_range_step_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Slider)wrapper).GetRangeStep(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_ui_range_step_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_range_step_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_step_get"); - private static double range_step_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_range_step_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Slider)wrapper).GetRangeStep(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_range_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_range_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_range_step_get_delegate efl_ui_range_step_get_static_delegate; + private static efl_ui_range_step_get_delegate efl_ui_range_step_get_static_delegate; - private delegate void efl_ui_range_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double step); + + private delegate void efl_ui_range_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double step); + + public delegate void efl_ui_range_step_set_api_delegate(System.IntPtr obj, double step); - public delegate void efl_ui_range_step_set_api_delegate(System.IntPtr obj, double step); - public static Efl.Eo.FunctionWrapper efl_ui_range_step_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_step_set"); - private static void range_step_set(System.IntPtr obj, System.IntPtr pd, double step) - { - Eina.Log.Debug("function efl_ui_range_step_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Slider)wrapper).SetRangeStep( step); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); + public static Efl.Eo.FunctionWrapper efl_ui_range_step_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_step_set"); + + private static void range_step_set(System.IntPtr obj, System.IntPtr pd, double step) + { + Eina.Log.Debug("function efl_ui_range_step_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Slider)wrapper).SetRangeStep(step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); + } } - } - private static efl_ui_range_step_set_delegate efl_ui_range_step_set_static_delegate; + + private static efl_ui_range_step_set_delegate efl_ui_range_step_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_slider_interval.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_slider_interval.eo.cs index 7631aab..c320e34 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_slider_interval.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_slider_interval.eo.cs @@ -3,158 +3,229 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// An interval slider. /// This is a slider with two indicators. -[SliderIntervalNativeInherit] +[Efl.Ui.SliderInterval.NativeMethods] public class SliderInterval : Efl.Ui.Slider, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (SliderInterval)) - return Efl.Ui.SliderIntervalNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(SliderInterval)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_slider_interval_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public SliderInterval(Efl.Object parent - , System.String style = null) : - base(efl_ui_slider_interval_class_get(), typeof(SliderInterval), parent) + , System.String style = null) : base(efl_ui_slider_interval_class_get(), typeof(SliderInterval), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected SliderInterval(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected SliderInterval(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected SliderInterval(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Sets up position of two indicators at start and end position. /// interval minimum value /// interval maximum value - /// - virtual public void GetIntervalValue( out double from, out double to) { - Efl.Ui.SliderIntervalNativeInherit.efl_ui_slider_interval_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out from, out to); + virtual public void GetIntervalValue(out double from, out double to) { + Efl.Ui.SliderInterval.NativeMethods.efl_ui_slider_interval_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out from, out to); Eina.Error.RaiseIfUnhandledException(); } /// Sets up position of two indicators at start and end position. /// interval minimum value /// interval maximum value - /// - virtual public void SetIntervalValue( double from, double to) { - Efl.Ui.SliderIntervalNativeInherit.efl_ui_slider_interval_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), from, to); + virtual public void SetIntervalValue(double from, double to) { + Efl.Ui.SliderInterval.NativeMethods.efl_ui_slider_interval_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from, to); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { return Efl.Ui.SliderInterval.efl_ui_slider_interval_class_get(); } -} -public class SliderIntervalNativeInherit : Efl.Ui.SliderNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_slider_interval_value_get_static_delegate == null) - efl_ui_slider_interval_value_get_static_delegate = new efl_ui_slider_interval_value_get_delegate(interval_value_get); - if (methods.FirstOrDefault(m => m.Name == "GetIntervalValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_slider_interval_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_slider_interval_value_get_static_delegate)}); - if (efl_ui_slider_interval_value_set_static_delegate == null) - efl_ui_slider_interval_value_set_static_delegate = new efl_ui_slider_interval_value_set_delegate(interval_value_set); - if (methods.FirstOrDefault(m => m.Name == "SetIntervalValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_slider_interval_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_slider_interval_value_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.SliderInterval.efl_ui_slider_interval_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Slider.NativeMethods { - return Efl.Ui.SliderInterval.efl_ui_slider_interval_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_slider_interval_value_get_static_delegate == null) + { + efl_ui_slider_interval_value_get_static_delegate = new efl_ui_slider_interval_value_get_delegate(interval_value_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetIntervalValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_slider_interval_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_slider_interval_value_get_static_delegate) }); + } - private delegate void efl_ui_slider_interval_value_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from, out double to); + if (efl_ui_slider_interval_value_set_static_delegate == null) + { + efl_ui_slider_interval_value_set_static_delegate = new efl_ui_slider_interval_value_set_delegate(interval_value_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetIntervalValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_slider_interval_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_slider_interval_value_set_static_delegate) }); + } - public delegate void efl_ui_slider_interval_value_get_api_delegate(System.IntPtr obj, out double from, out double to); - public static Efl.Eo.FunctionWrapper efl_ui_slider_interval_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_slider_interval_value_get"); - private static void interval_value_get(System.IntPtr obj, System.IntPtr pd, out double from, out double to) - { - Eina.Log.Debug("function efl_ui_slider_interval_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - from = default(double); to = default(double); - try { - ((SliderInterval)wrapper).GetIntervalValue( out from, out to); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.SliderInterval.efl_ui_slider_interval_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_ui_slider_interval_value_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from, out double to); + + + public delegate void efl_ui_slider_interval_value_get_api_delegate(System.IntPtr obj, out double from, out double to); + + public static Efl.Eo.FunctionWrapper efl_ui_slider_interval_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_slider_interval_value_get"); + + private static void interval_value_get(System.IntPtr obj, System.IntPtr pd, out double from, out double to) + { + Eina.Log.Debug("function efl_ui_slider_interval_value_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + from = default(double); to = default(double); + try + { + ((SliderInterval)wrapper).GetIntervalValue(out from, out to); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_slider_interval_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from, out to); } - } else { - efl_ui_slider_interval_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from, out to); } - } - private static efl_ui_slider_interval_value_get_delegate efl_ui_slider_interval_value_get_static_delegate; + private static efl_ui_slider_interval_value_get_delegate efl_ui_slider_interval_value_get_static_delegate; - private delegate void efl_ui_slider_interval_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double from, double to); + + private delegate void efl_ui_slider_interval_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double from, double to); + + public delegate void efl_ui_slider_interval_value_set_api_delegate(System.IntPtr obj, double from, double to); - public delegate void efl_ui_slider_interval_value_set_api_delegate(System.IntPtr obj, double from, double to); - public static Efl.Eo.FunctionWrapper efl_ui_slider_interval_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_slider_interval_value_set"); - private static void interval_value_set(System.IntPtr obj, System.IntPtr pd, double from, double to) - { - Eina.Log.Debug("function efl_ui_slider_interval_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((SliderInterval)wrapper).SetIntervalValue( from, to); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_slider_interval_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_slider_interval_value_set"); + + private static void interval_value_set(System.IntPtr obj, System.IntPtr pd, double from, double to) + { + Eina.Log.Debug("function efl_ui_slider_interval_value_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((SliderInterval)wrapper).SetIntervalValue(from, to); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_slider_interval_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to); } - } else { - efl_ui_slider_interval_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to); } - } - private static efl_ui_slider_interval_value_set_delegate efl_ui_slider_interval_value_set_static_delegate; + + private static efl_ui_slider_interval_value_set_delegate efl_ui_slider_interval_value_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_spin.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_spin.eo.cs index 6128a7b..21c4c5d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_spin.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_spin.eo.cs @@ -3,199 +3,250 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// A Spin. /// This is a widget which allows the user to increase or decrease numeric values using user interactions. It's a basic type of widget for choosing and displaying values. -[SpinNativeInherit] +[Efl.Ui.Spin.NativeMethods] public class Spin : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.Access.IValue,Efl.Ui.IFormat,Efl.Ui.IRangeDisplay,Efl.Ui.IRangeInteractive { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Spin)) - return Efl.Ui.SpinNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Spin)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_spin_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Spin(Efl.Object parent - , System.String style = null) : - base(efl_ui_spin_class_get(), typeof(Spin), parent) + , System.String style = null) : base(efl_ui_spin_class_get(), typeof(Spin), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Spin(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Spin(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Spin(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ChangedEvtKey = new object(); + /// Called when spin changed public event EventHandler ChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SPIN_EVENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) { - eventHandlers.AddHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SPIN_EVENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedEvt. - public void On_ChangedEvt(EventArgs e) + public void OnChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedEvt_delegate; - private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SPIN_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object MinReachedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when spin value reached min public event EventHandler MinReachedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SPIN_EVENT_MIN_REACHED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_MinReachedEvt_delegate)) { - eventHandlers.AddHandler(MinReachedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SPIN_EVENT_MIN_REACHED"; - if (RemoveNativeEventHandler(key, this.evt_MinReachedEvt_delegate)) { - eventHandlers.RemoveHandler(MinReachedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event MinReachedEvt. - public void On_MinReachedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[MinReachedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_MinReachedEvt_delegate; - private void on_MinReachedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnMinReachedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_MinReachedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SPIN_EVENT_MIN_REACHED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object MaxReachedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when spin value reached max public event EventHandler MaxReachedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SPIN_EVENT_MAX_REACHED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_MaxReachedEvt_delegate)) { - eventHandlers.AddHandler(MaxReachedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SPIN_EVENT_MAX_REACHED"; - if (RemoveNativeEventHandler(key, this.evt_MaxReachedEvt_delegate)) { - eventHandlers.RemoveHandler(MaxReachedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event MaxReachedEvt. - public void On_MaxReachedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[MaxReachedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_MaxReachedEvt_delegate; - private void on_MaxReachedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnMaxReachedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_MaxReachedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_SPIN_EVENT_MAX_REACHED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback); - evt_MinReachedEvt_delegate = new Efl.EventCb(on_MinReachedEvt_NativeCallback); - evt_MaxReachedEvt_delegate = new Efl.EventCb(on_MaxReachedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Control special string to display in the place of the numerical value. /// It's useful for cases when a user should select an item that is better indicated by a label than a value. For example, weekdays or months. @@ -203,7 +254,7 @@ private static object MaxReachedEvtKey = new object(); /// Note: If another label was previously set to value, it will be replaced by the new label. /// The array of special values, or NULL if none virtual public Eina.Array GetSpecialValue() { - var _ret_var = Efl.Ui.SpinNativeInherit.efl_ui_spin_special_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Spin.NativeMethods.efl_ui_spin_special_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Array(_ret_var, false, false); } @@ -212,26 +263,24 @@ private static object MaxReachedEvtKey = new object(); /// /// Note: If another label was previously set to value, it will be replaced by the new label. /// The array of special values, or NULL if none - /// - virtual public void SetSpecialValue( Eina.Array values) { + virtual public void SetSpecialValue(Eina.Array values) { var _in_values = values.Handle; - Efl.Ui.SpinNativeInherit.efl_ui_spin_special_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_values); + Efl.Ui.Spin.NativeMethods.efl_ui_spin_special_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_values); Eina.Error.RaiseIfUnhandledException(); } /// Gets value displayed by a accessible widget. /// Value of widget casted to floating point number. /// string describing value in given context eg. small, enough - /// - virtual public void GetValueAndText( out double value, out System.String text) { - Efl.Access.IValueNativeInherit.efl_access_value_and_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out value, out text); + virtual public void GetValueAndText(out double value, out System.String text) { + Efl.Access.IValueConcrete.NativeMethods.efl_access_value_and_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out value, out text); Eina.Error.RaiseIfUnhandledException(); } /// Value and text property /// Value of widget casted to floating point number. /// string describing value in given context eg. small, enough /// true if setting widgets value has succeeded, otherwise false . - virtual public bool SetValueAndText( double value, System.String text) { - var _ret_var = Efl.Access.IValueNativeInherit.efl_access_value_and_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value, text); + virtual public bool SetValueAndText(double value, System.String text) { + var _ret_var = Efl.Access.IValueConcrete.NativeMethods.efl_access_value_and_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value, text); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -239,24 +288,22 @@ private static object MaxReachedEvtKey = new object(); /// Lower limit of the range /// Upper limit of the range /// Description of the range - /// - virtual public void GetRange( out double lower_limit, out double upper_limit, out System.String description) { - Efl.Access.IValueNativeInherit.efl_access_value_range_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out lower_limit, out upper_limit, out description); + virtual public void GetRange(out double lower_limit, out double upper_limit, out System.String description) { + Efl.Access.IValueConcrete.NativeMethods.efl_access_value_range_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out lower_limit, out upper_limit, out description); Eina.Error.RaiseIfUnhandledException(); } /// Gets an minimal incrementation value /// Minimal incrementation value virtual public double GetIncrement() { - var _ret_var = Efl.Access.IValueNativeInherit.efl_access_value_increment_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IValueConcrete.NativeMethods.efl_access_value_increment_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the format function pointer to format the string. /// The format function callback - /// - virtual public void SetFormatCb( Efl.Ui.FormatFuncCb func) { + virtual public void SetFormatCb(Efl.Ui.FormatFuncCb func) { GCHandle func_handle = GCHandle.Alloc(func); - Efl.Ui.IFormatNativeInherit.efl_ui_format_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), Efl.Ui.FormatFuncCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), Efl.Ui.FormatFuncCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); } /// Control the format string for a given units label @@ -265,7 +312,7 @@ private static object MaxReachedEvtKey = new object(); /// Note: The default format string is an integer percentage, as in $"%.0f %%". /// The format string for obj's units label. virtual public System.String GetFormatString() { - var _ret_var = Efl.Ui.IFormatNativeInherit.efl_ui_format_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -274,9 +321,8 @@ private static object MaxReachedEvtKey = new object(); /// /// Note: The default format string is an integer percentage, as in $"%.0f %%". /// The format string for obj's units label. - /// - virtual public void SetFormatString( System.String units) { - Efl.Ui.IFormatNativeInherit.efl_ui_format_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), units); + virtual public void SetFormatString(System.String units) { + Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),units); Eina.Error.RaiseIfUnhandledException(); } /// Control the range value (in percentage) on a given range widget @@ -285,7 +331,7 @@ private static object MaxReachedEvtKey = new object(); /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) virtual public double GetRangeValue() { - var _ret_var = Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -294,18 +340,16 @@ private static object MaxReachedEvtKey = new object(); /// /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. /// The range value (must be between $0.0 and 1.0) - /// - virtual public void SetRangeValue( double val) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), val); + virtual public void SetRangeValue(double val) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val); Eina.Error.RaiseIfUnhandledException(); } /// Get the minimum and maximum values of the given range widget. /// Note: If only one value is needed, the other pointer can be passed as null. /// The minimum value. /// The maximum value. - /// - virtual public void GetRangeMinMax( out double min, out double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out min, out max); + virtual public void GetRangeMinMax(out double min, out double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out min, out max); Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. @@ -318,9 +362,8 @@ private static object MaxReachedEvtKey = new object(); /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. - /// - virtual public void SetRangeMinMax( double min, double max) { - Efl.Ui.IRangeDisplayNativeInherit.efl_ui_range_min_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), min, max); + virtual public void SetRangeMinMax(double min, double max) { + Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_min_max_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),min, max); Eina.Error.RaiseIfUnhandledException(); } /// Control the step used to increment or decrement values for given widget. @@ -331,7 +374,7 @@ private static object MaxReachedEvtKey = new object(); /// Warning: The step value should be bigger than 0. /// The step value. virtual public double GetRangeStep() { - var _ret_var = Efl.Ui.IRangeInteractiveNativeInherit.efl_ui_range_step_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -342,9 +385,8 @@ private static object MaxReachedEvtKey = new object(); /// /// Warning: The step value should be bigger than 0. /// The step value. - /// - virtual public void SetRangeStep( double step) { - Efl.Ui.IRangeInteractiveNativeInherit.efl_ui_range_step_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), step); + virtual public void SetRangeStep(double step) { + Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),step); Eina.Error.RaiseIfUnhandledException(); } /// Control special string to display in the place of the numerical value. @@ -354,7 +396,7 @@ private static object MaxReachedEvtKey = new object(); /// The array of special values, or NULL if none public Eina.Array SpecialValue { get { return GetSpecialValue(); } - set { SetSpecialValue( value); } + set { SetSpecialValue(value); } } /// Gets an minimal incrementation value /// Minimal incrementation value @@ -364,7 +406,7 @@ private static object MaxReachedEvtKey = new object(); /// Set the format function pointer to format the string. /// The format function callback public Efl.Ui.FormatFuncCb FormatCb { - set { SetFormatCb( value); } + set { SetFormatCb(value); } } /// Control the format string for a given units label /// If NULL is passed to format, it will hide obj's units area completely. If not, it'll set the <b>format string</b> for the units label text. The units label is provided as a floating point value, so the units text can display at most one floating point value. Note that the units label is optional. Use a format string such as "%1.2f meters" for example. @@ -373,7 +415,7 @@ private static object MaxReachedEvtKey = new object(); /// The format string for obj's units label. public System.String FormatString { get { return GetFormatString(); } - set { SetFormatString( value); } + set { SetFormatString(value); } } /// Control the range value (in percentage) on a given range widget /// Use this call to set range levels. @@ -382,7 +424,7 @@ private static object MaxReachedEvtKey = new object(); /// The range value (must be between $0.0 and 1.0) public double RangeValue { get { return GetRangeValue(); } - set { SetRangeValue( value); } + set { SetRangeValue(value); } } /// Control the step used to increment or decrement values for given widget. /// This value will be incremented or decremented to the displayed value. @@ -393,465 +435,735 @@ private static object MaxReachedEvtKey = new object(); /// The step value. public double RangeStep { get { return GetRangeStep(); } - set { SetRangeStep( value); } + set { SetRangeStep(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Spin.efl_ui_spin_class_get(); } -} -public class SpinNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_spin_special_value_get_static_delegate == null) - efl_ui_spin_special_value_get_static_delegate = new efl_ui_spin_special_value_get_delegate(special_value_get); - if (methods.FirstOrDefault(m => m.Name == "GetSpecialValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_spin_special_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_special_value_get_static_delegate)}); - if (efl_ui_spin_special_value_set_static_delegate == null) - efl_ui_spin_special_value_set_static_delegate = new efl_ui_spin_special_value_set_delegate(special_value_set); - if (methods.FirstOrDefault(m => m.Name == "SetSpecialValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_spin_special_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_special_value_set_static_delegate)}); - if (efl_access_value_and_text_get_static_delegate == null) - efl_access_value_and_text_get_static_delegate = new efl_access_value_and_text_get_delegate(value_and_text_get); - if (methods.FirstOrDefault(m => m.Name == "GetValueAndText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_and_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_get_static_delegate)}); - if (efl_access_value_and_text_set_static_delegate == null) - efl_access_value_and_text_set_static_delegate = new efl_access_value_and_text_set_delegate(value_and_text_set); - if (methods.FirstOrDefault(m => m.Name == "SetValueAndText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_and_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_set_static_delegate)}); - if (efl_access_value_range_get_static_delegate == null) - efl_access_value_range_get_static_delegate = new efl_access_value_range_get_delegate(range_get); - if (methods.FirstOrDefault(m => m.Name == "GetRange") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_range_get_static_delegate)}); - if (efl_access_value_increment_get_static_delegate == null) - efl_access_value_increment_get_static_delegate = new efl_access_value_increment_get_delegate(increment_get); - if (methods.FirstOrDefault(m => m.Name == "GetIncrement") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_value_increment_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_increment_get_static_delegate)}); - if (efl_ui_format_cb_set_static_delegate == null) - efl_ui_format_cb_set_static_delegate = new efl_ui_format_cb_set_delegate(format_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormatCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_cb_set_static_delegate)}); - if (efl_ui_format_string_get_static_delegate == null) - efl_ui_format_string_get_static_delegate = new efl_ui_format_string_get_delegate(format_string_get); - if (methods.FirstOrDefault(m => m.Name == "GetFormatString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_get_static_delegate)}); - if (efl_ui_format_string_set_static_delegate == null) - efl_ui_format_string_set_static_delegate = new efl_ui_format_string_set_delegate(format_string_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormatString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_set_static_delegate)}); - if (efl_ui_range_value_get_static_delegate == null) - efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate)}); - if (efl_ui_range_value_set_static_delegate == null) - efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate)}); - if (efl_ui_range_min_max_get_static_delegate == null) - efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate)}); - if (efl_ui_range_min_max_set_static_delegate == null) - efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_static_delegate)}); - if (efl_ui_range_step_get_static_delegate == null) - efl_ui_range_step_get_static_delegate = new efl_ui_range_step_get_delegate(range_step_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeStep") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_get_static_delegate)}); - if (efl_ui_range_step_set_static_delegate == null) - efl_ui_range_step_set_static_delegate = new efl_ui_range_step_set_delegate(range_step_set); - if (methods.FirstOrDefault(m => m.Name == "SetRangeStep") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_range_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Spin.efl_ui_spin_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Spin.efl_ui_spin_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_spin_special_value_get_static_delegate == null) + { + efl_ui_spin_special_value_get_static_delegate = new efl_ui_spin_special_value_get_delegate(special_value_get); + } - private delegate System.IntPtr efl_ui_spin_special_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetSpecialValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_special_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_special_value_get_static_delegate) }); + } + if (efl_ui_spin_special_value_set_static_delegate == null) + { + efl_ui_spin_special_value_set_static_delegate = new efl_ui_spin_special_value_set_delegate(special_value_set); + } - public delegate System.IntPtr efl_ui_spin_special_value_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_spin_special_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_spin_special_value_get"); - private static System.IntPtr special_value_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_spin_special_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Array _ret_var = default(Eina.Array); - try { - _ret_var = ((Spin)wrapper).GetSpecialValue(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSpecialValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_special_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_special_value_set_static_delegate) }); + } + + if (efl_access_value_and_text_get_static_delegate == null) + { + efl_access_value_and_text_get_static_delegate = new efl_access_value_and_text_get_delegate(value_and_text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetValueAndText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_and_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_get_static_delegate) }); + } + + if (efl_access_value_and_text_set_static_delegate == null) + { + efl_access_value_and_text_set_static_delegate = new efl_access_value_and_text_set_delegate(value_and_text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetValueAndText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_and_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_and_text_set_static_delegate) }); + } + + if (efl_access_value_range_get_static_delegate == null) + { + efl_access_value_range_get_static_delegate = new efl_access_value_range_get_delegate(range_get); } + + if (methods.FirstOrDefault(m => m.Name == "GetRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_range_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_range_get_static_delegate) }); + } + + if (efl_access_value_increment_get_static_delegate == null) + { + efl_access_value_increment_get_static_delegate = new efl_access_value_increment_get_delegate(increment_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetIncrement") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_value_increment_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_value_increment_get_static_delegate) }); + } + + if (efl_ui_format_cb_set_static_delegate == null) + { + efl_ui_format_cb_set_static_delegate = new efl_ui_format_cb_set_delegate(format_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFormatCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_cb_set_static_delegate) }); + } + + if (efl_ui_format_string_get_static_delegate == null) + { + efl_ui_format_string_get_static_delegate = new efl_ui_format_string_get_delegate(format_string_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFormatString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_get_static_delegate) }); + } + + if (efl_ui_format_string_set_static_delegate == null) + { + efl_ui_format_string_set_static_delegate = new efl_ui_format_string_set_delegate(format_string_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFormatString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_set_static_delegate) }); + } + + if (efl_ui_range_value_get_static_delegate == null) + { + efl_ui_range_value_get_static_delegate = new efl_ui_range_value_get_delegate(range_value_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_get_static_delegate) }); + } + + if (efl_ui_range_value_set_static_delegate == null) + { + efl_ui_range_value_set_static_delegate = new efl_ui_range_value_set_delegate(range_value_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRangeValue") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_value_set_static_delegate) }); + } + + if (efl_ui_range_min_max_get_static_delegate == null) + { + efl_ui_range_min_max_get_static_delegate = new efl_ui_range_min_max_get_delegate(range_min_max_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_get_static_delegate) }); + } + + if (efl_ui_range_min_max_set_static_delegate == null) + { + efl_ui_range_min_max_set_static_delegate = new efl_ui_range_min_max_set_delegate(range_min_max_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRangeMinMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_min_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_min_max_set_static_delegate) }); + } + + if (efl_ui_range_step_get_static_delegate == null) + { + efl_ui_range_step_get_static_delegate = new efl_ui_range_step_get_delegate(range_step_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeStep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_get_static_delegate) }); + } + + if (efl_ui_range_step_set_static_delegate == null) + { + efl_ui_range_step_set_static_delegate = new efl_ui_range_step_set_delegate(range_step_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRangeStep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Spin.efl_ui_spin_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate System.IntPtr efl_ui_spin_special_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_spin_special_value_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_spin_special_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_special_value_get"); + + private static System.IntPtr special_value_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_spin_special_value_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Array _ret_var = default(Eina.Array); + try + { + _ret_var = ((Spin)wrapper).GetSpecialValue(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - } else { - return efl_ui_spin_special_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_spin_special_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_spin_special_value_get_delegate efl_ui_spin_special_value_get_static_delegate; + private static efl_ui_spin_special_value_get_delegate efl_ui_spin_special_value_get_static_delegate; - private delegate void efl_ui_spin_special_value_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr values); + + private delegate void efl_ui_spin_special_value_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr values); + + + public delegate void efl_ui_spin_special_value_set_api_delegate(System.IntPtr obj, System.IntPtr values); + public static Efl.Eo.FunctionWrapper efl_ui_spin_special_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_special_value_set"); - public delegate void efl_ui_spin_special_value_set_api_delegate(System.IntPtr obj, System.IntPtr values); - public static Efl.Eo.FunctionWrapper efl_ui_spin_special_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_spin_special_value_set"); - private static void special_value_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr values) - { - Eina.Log.Debug("function efl_ui_spin_special_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_values = new Eina.Array(values, false, false); + private static void special_value_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr values) + { + Eina.Log.Debug("function efl_ui_spin_special_value_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_values = new Eina.Array(values, false, false); - try { - ((Spin)wrapper).SetSpecialValue( _in_values); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_spin_special_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), values); + try + { + ((Spin)wrapper).SetSpecialValue(_in_values); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_spin_special_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), values); + } } - } - private static efl_ui_spin_special_value_set_delegate efl_ui_spin_special_value_set_static_delegate; + private static efl_ui_spin_special_value_set_delegate efl_ui_spin_special_value_set_static_delegate; - private delegate void efl_access_value_and_text_get_delegate(System.IntPtr obj, System.IntPtr pd, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); + + private delegate void efl_access_value_and_text_get_delegate(System.IntPtr obj, System.IntPtr pd, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); + + + public delegate void efl_access_value_and_text_get_api_delegate(System.IntPtr obj, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); + public static Efl.Eo.FunctionWrapper efl_access_value_and_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_and_text_get"); - public delegate void efl_access_value_and_text_get_api_delegate(System.IntPtr obj, out double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String text); - public static Efl.Eo.FunctionWrapper efl_access_value_and_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_and_text_get"); - private static void value_and_text_get(System.IntPtr obj, System.IntPtr pd, out double value, out System.String text) - { - Eina.Log.Debug("function efl_access_value_and_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - value = default(double); System.String _out_text = default(System.String); + private static void value_and_text_get(System.IntPtr obj, System.IntPtr pd, out double value, out System.String text) + { + Eina.Log.Debug("function efl_access_value_and_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + value = default(double); System.String _out_text = default(System.String); - try { - ((Spin)wrapper).GetValueAndText( out value, out _out_text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((Spin)wrapper).GetValueAndText(out value, out _out_text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + text = _out_text; - } else { - efl_access_value_and_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out value, out text); + + } + else + { + efl_access_value_and_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out value, out text); + } } - } - private static efl_access_value_and_text_get_delegate efl_access_value_and_text_get_static_delegate; + private static efl_access_value_and_text_get_delegate efl_access_value_and_text_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_value_and_text_set_delegate(System.IntPtr obj, System.IntPtr pd, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_value_and_text_set_delegate(System.IntPtr obj, System.IntPtr pd, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_value_and_text_set_api_delegate(System.IntPtr obj, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_access_value_and_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_and_text_set"); + + private static bool value_and_text_set(System.IntPtr obj, System.IntPtr pd, double value, System.String text) + { + Eina.Log.Debug("function efl_access_value_and_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Spin)wrapper).SetValueAndText(value, text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_value_and_text_set_api_delegate(System.IntPtr obj, double value, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_access_value_and_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_and_text_set"); - private static bool value_and_text_set(System.IntPtr obj, System.IntPtr pd, double value, System.String text) - { - Eina.Log.Debug("function efl_access_value_and_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Spin)wrapper).SetValueAndText( value, text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_value_and_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value, text); + + } + else + { + return efl_access_value_and_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value, text); + } } - } - private static efl_access_value_and_text_set_delegate efl_access_value_and_text_set_static_delegate; + private static efl_access_value_and_text_set_delegate efl_access_value_and_text_set_static_delegate; - private delegate void efl_access_value_range_get_delegate(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); + + private delegate void efl_access_value_range_get_delegate(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); + + public delegate void efl_access_value_range_get_api_delegate(System.IntPtr obj, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); - public delegate void efl_access_value_range_get_api_delegate(System.IntPtr obj, out double lower_limit, out double upper_limit, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String description); - public static Efl.Eo.FunctionWrapper efl_access_value_range_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_range_get"); - private static void range_get(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, out System.String description) - { - Eina.Log.Debug("function efl_access_value_range_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - lower_limit = default(double); upper_limit = default(double); System.String _out_description = default(System.String); + public static Efl.Eo.FunctionWrapper efl_access_value_range_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_range_get"); + + private static void range_get(System.IntPtr obj, System.IntPtr pd, out double lower_limit, out double upper_limit, out System.String description) + { + Eina.Log.Debug("function efl_access_value_range_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + lower_limit = default(double); upper_limit = default(double); System.String _out_description = default(System.String); - try { - ((Spin)wrapper).GetRange( out lower_limit, out upper_limit, out _out_description); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((Spin)wrapper).GetRange(out lower_limit, out upper_limit, out _out_description); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + description = _out_description; - } else { - efl_access_value_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out lower_limit, out upper_limit, out description); + + } + else + { + efl_access_value_range_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out lower_limit, out upper_limit, out description); + } } - } - private static efl_access_value_range_get_delegate efl_access_value_range_get_static_delegate; + private static efl_access_value_range_get_delegate efl_access_value_range_get_static_delegate; - private delegate double efl_access_value_increment_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_access_value_increment_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_access_value_increment_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_value_increment_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_value_increment_get"); + + private static double increment_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_value_increment_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Spin)wrapper).GetIncrement(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_access_value_increment_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_value_increment_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_value_increment_get"); - private static double increment_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_value_increment_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Spin)wrapper).GetIncrement(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_value_increment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_value_increment_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_value_increment_get_delegate efl_access_value_increment_get_static_delegate; + private static efl_access_value_increment_get_delegate efl_access_value_increment_get_static_delegate; - private delegate void efl_ui_format_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); + + private delegate void efl_ui_format_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); + + public delegate void efl_ui_format_cb_set_api_delegate(System.IntPtr obj, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); - public delegate void efl_ui_format_cb_set_api_delegate(System.IntPtr obj, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_ui_format_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_cb_set"); - private static void format_cb_set(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_ui_format_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.FormatFuncCbWrapper func_wrapper = new Efl.Ui.FormatFuncCbWrapper(func, func_data, func_free_cb); + public static Efl.Eo.FunctionWrapper efl_ui_format_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_cb_set"); + + private static void format_cb_set(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_ui_format_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.FormatFuncCbWrapper func_wrapper = new Efl.Ui.FormatFuncCbWrapper(func, func_data, func_free_cb); - try { - ((Spin)wrapper).SetFormatCb( func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_format_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + try + { + ((Spin)wrapper).SetFormatCb(func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_format_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); + } } - } - private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate; + private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_format_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_format_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_format_string_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_format_string_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_string_get"); + + private static System.String format_string_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_format_string_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Spin)wrapper).GetFormatString(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_format_string_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_format_string_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_string_get"); - private static System.String format_string_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_format_string_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Spin)wrapper).GetFormatString(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate; + private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate; - private delegate void efl_ui_format_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); + + private delegate void efl_ui_format_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); + + public delegate void efl_ui_format_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); - public delegate void efl_ui_format_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); - public static Efl.Eo.FunctionWrapper efl_ui_format_string_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_string_set"); - private static void format_string_set(System.IntPtr obj, System.IntPtr pd, System.String units) - { - Eina.Log.Debug("function efl_ui_format_string_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Spin)wrapper).SetFormatString( units); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), units); + public static Efl.Eo.FunctionWrapper efl_ui_format_string_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_string_set"); + + private static void format_string_set(System.IntPtr obj, System.IntPtr pd, System.String units) + { + Eina.Log.Debug("function efl_ui_format_string_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Spin)wrapper).SetFormatString(units); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), units); + } } - } - private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate; + private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate; - private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_ui_range_value_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_get"); + + private static double range_value_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_range_value_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Spin)wrapper).GetRangeValue(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_ui_range_value_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_get"); - private static double range_value_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_range_value_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Spin)wrapper).GetRangeValue(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_range_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; + private static efl_ui_range_value_get_delegate efl_ui_range_value_get_static_delegate; + + + private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); - private delegate void efl_ui_range_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double val); + + public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); + public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_value_set"); - public delegate void efl_ui_range_value_set_api_delegate(System.IntPtr obj, double val); - public static Efl.Eo.FunctionWrapper efl_ui_range_value_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_value_set"); - private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) - { - Eina.Log.Debug("function efl_ui_range_value_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Spin)wrapper).SetRangeValue( val); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + private static void range_value_set(System.IntPtr obj, System.IntPtr pd, double val) + { + Eina.Log.Debug("function efl_ui_range_value_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Spin)wrapper).SetRangeValue(val); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + } } - } - private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; + private static efl_ui_range_value_set_delegate efl_ui_range_value_set_static_delegate; - private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + + private delegate void efl_ui_range_min_max_get_delegate(System.IntPtr obj, System.IntPtr pd, out double min, out double max); + + public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); - public delegate void efl_ui_range_min_max_get_api_delegate(System.IntPtr obj, out double min, out double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_get"); - private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - min = default(double); max = default(double); - try { - ((Spin)wrapper).GetRangeMinMax( out min, out max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_get"); + + private static void range_min_max_get(System.IntPtr obj, System.IntPtr pd, out double min, out double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + min = default(double); max = default(double); + try + { + ((Spin)wrapper).GetRangeMinMax(out min, out max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out min, out max); + } } - } - private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; + private static efl_ui_range_min_max_get_delegate efl_ui_range_min_max_get_static_delegate; - private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + private delegate void efl_ui_range_min_max_set_delegate(System.IntPtr obj, System.IntPtr pd, double min, double max); + + public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); - public delegate void efl_ui_range_min_max_set_api_delegate(System.IntPtr obj, double min, double max); - public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_min_max_set"); - private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) - { - Eina.Log.Debug("function efl_ui_range_min_max_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Spin)wrapper).SetRangeMinMax( min, max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); + public static Efl.Eo.FunctionWrapper efl_ui_range_min_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_min_max_set"); + + private static void range_min_max_set(System.IntPtr obj, System.IntPtr pd, double min, double max) + { + Eina.Log.Debug("function efl_ui_range_min_max_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Spin)wrapper).SetRangeMinMax(min, max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_min_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min, max); + } } - } - private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; + private static efl_ui_range_min_max_set_delegate efl_ui_range_min_max_set_static_delegate; - private delegate double efl_ui_range_step_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_ui_range_step_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_range_step_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_range_step_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_step_get"); + + private static double range_step_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_range_step_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Spin)wrapper).GetRangeStep(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate double efl_ui_range_step_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_range_step_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_step_get"); - private static double range_step_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_range_step_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Spin)wrapper).GetRangeStep(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_range_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_range_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_range_step_get_delegate efl_ui_range_step_get_static_delegate; + private static efl_ui_range_step_get_delegate efl_ui_range_step_get_static_delegate; - private delegate void efl_ui_range_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double step); + + private delegate void efl_ui_range_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double step); + + public delegate void efl_ui_range_step_set_api_delegate(System.IntPtr obj, double step); - public delegate void efl_ui_range_step_set_api_delegate(System.IntPtr obj, double step); - public static Efl.Eo.FunctionWrapper efl_ui_range_step_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_range_step_set"); - private static void range_step_set(System.IntPtr obj, System.IntPtr pd, double step) - { - Eina.Log.Debug("function efl_ui_range_step_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Spin)wrapper).SetRangeStep( step); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_range_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); + public static Efl.Eo.FunctionWrapper efl_ui_range_step_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_step_set"); + + private static void range_step_set(System.IntPtr obj, System.IntPtr pd, double step) + { + Eina.Log.Debug("function efl_ui_range_step_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Spin)wrapper).SetRangeStep(step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); + } } - } - private static efl_ui_range_step_set_delegate efl_ui_range_step_set_static_delegate; + + private static efl_ui_range_step_set_delegate efl_ui_range_step_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } -namespace Efl { namespace Ui { + +} + +namespace Efl { + +namespace Ui { + /// Special value [StructLayout(LayoutKind.Sequential)] public struct SpinSpecialValue @@ -862,8 +1174,8 @@ public struct SpinSpecialValue public System.String Label; ///Constructor for SpinSpecialValue. public SpinSpecialValue( - double Value=default(double), - System.String Label=default(System.String) ) + double Value = default(double), + System.String Label = default(System.String) ) { this.Value = Value; this.Label = Label; @@ -905,4 +1217,7 @@ public struct SpinSpecialValue } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_spin_button.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_spin_button.eo.cs index cca197d..d8ba0d7 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_spin_button.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_spin_button.eo.cs @@ -3,109 +3,144 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// A Button Spin. /// This is a widget which allows the user to increase or decrease numeric values using the arrow buttons or to edit values directly by clicking over them and inputting new ones. -[SpinButtonNativeInherit] +[Efl.Ui.SpinButton.NativeMethods] public class SpinButton : Efl.Ui.Spin, Efl.Eo.IWrapper,Efl.Ui.IDirection,Efl.Ui.Focus.IComposition { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (SpinButton)) - return Efl.Ui.SpinButtonNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(SpinButton)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_spin_button_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public SpinButton(Efl.Object parent - , System.String style = null) : - base(efl_ui_spin_button_class_get(), typeof(SpinButton), parent) + , System.String style = null) : base(efl_ui_spin_button_class_get(), typeof(SpinButton), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected SpinButton(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected SpinButton(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected SpinButton(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object DelayChangedEvtKey = new object(); + /// Called when spin delay is changed. public event EventHandler DelayChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SPIN_BUTTON_EVENT_DELAY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DelayChangedEvt_delegate)) { - eventHandlers.AddHandler(DelayChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SPIN_BUTTON_EVENT_DELAY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DelayChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DelayChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DelayChangedEvt. - public void On_DelayChangedEvt(EventArgs e) + public void OnDelayChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DelayChangedEvtKey]; + var key = "_EFL_UI_SPIN_BUTTON_EVENT_DELAY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DelayChangedEvt_delegate; - private void on_DelayChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_DelayChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_DelayChangedEvt_delegate = new Efl.EventCb(on_DelayChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Control whether the spin should circulate value when it reaches its minimum or maximum value. /// Disabled by default. If disabled, when the user tries to increment the value but displayed value plus step value is bigger than maximum value, the new value will be the maximum value. The same happens when the user tries to decrement it but the value less step is less than minimum value. In this case, the new displayed value will be the minimum value. @@ -117,7 +152,7 @@ private static object DelayChangedEvtKey = new object(); /// When the user decrements the value (using left or bottom arrow), it will display $50. /// true to enable circulate or false to disable it. virtual public bool GetCirculate() { - var _ret_var = Efl.Ui.SpinButtonNativeInherit.efl_ui_spin_button_circulate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_circulate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -130,25 +165,23 @@ private static object DelayChangedEvtKey = new object(); /// /// When the user decrements the value (using left or bottom arrow), it will display $50. /// true to enable circulate or false to disable it. - /// - virtual public void SetCirculate( bool circulate) { - Efl.Ui.SpinButtonNativeInherit.efl_ui_spin_button_circulate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), circulate); + virtual public void SetCirculate(bool circulate) { + Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_circulate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),circulate); Eina.Error.RaiseIfUnhandledException(); } /// Control whether the spin can be directly edited by the user. /// Spin objects can have editing disabled, in which case they can only be changed by using arrows. This is useful for situations where you don't want your users to write their own value. It's especially useful when using special values. The user can see the real values instead of special label when editing. /// true to allow users to edit it or false to don't allow users to edit it directly. virtual public bool GetEditable() { - var _ret_var = Efl.Ui.SpinButtonNativeInherit.efl_ui_spin_button_editable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_editable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control whether the spin can be directly edited by the user. /// Spin objects can have editing disabled, in which case they can only be changed by using arrows. This is useful for situations where you don't want your users to write their own value. It's especially useful when using special values. The user can see the real values instead of special label when editing. /// true to allow users to edit it or false to don't allow users to edit it directly. - /// - virtual public void SetEditable( bool editable) { - Efl.Ui.SpinButtonNativeInherit.efl_ui_spin_button_editable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), editable); + virtual public void SetEditable(bool editable) { + Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_editable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),editable); Eina.Error.RaiseIfUnhandledException(); } /// Control the direction of a given widget. @@ -157,7 +190,7 @@ private static object DelayChangedEvtKey = new object(); /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. virtual public Efl.Ui.Dir GetDirection() { - var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -166,9 +199,8 @@ private static object DelayChangedEvtKey = new object(); /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. - /// - virtual public void SetDirection( Efl.Ui.Dir dir) { - Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetDirection(Efl.Ui.Dir dir) { + Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// Set the order of elements that will be used for composition @@ -181,7 +213,7 @@ private static object DelayChangedEvtKey = new object(); /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order. /// The order to use virtual public Eina.List GetCompositionElements() { - var _ret_var = Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, false); } @@ -194,38 +226,34 @@ private static object DelayChangedEvtKey = new object(); /// /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order. /// The order to use - /// - virtual public void SetCompositionElements( Eina.List logical_order) { + virtual public void SetCompositionElements(Eina.List logical_order) { var _in_logical_order = logical_order.Handle; logical_order.Own = false; - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_elements_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_logical_order); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_elements_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_logical_order); Eina.Error.RaiseIfUnhandledException(); } /// Set to true if all children should be registered as logicals /// true or false virtual public bool GetLogicalMode() { - var _ret_var = Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set to true if all children should be registered as logicals /// true or false - /// - virtual public void SetLogicalMode( bool logical_mode) { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), logical_mode); + virtual public void SetLogicalMode(bool logical_mode) { + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),logical_mode); Eina.Error.RaiseIfUnhandledException(); } /// Mark this widget as dirty, the children can be considered to be changed after that call - /// virtual public void Dirty() { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_dirty_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_dirty_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// A call to prepare the children of this element, called if marked as dirty /// You can use this function to call composition_elements. - /// virtual public void Prepare() { - Efl.Ui.Focus.ICompositionNativeInherit.efl_ui_focus_composition_prepare_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.ICompositionConcrete.NativeMethods.efl_ui_focus_composition_prepare_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Control whether the spin should circulate value when it reaches its minimum or maximum value. @@ -239,14 +267,14 @@ logical_order.Own = false; /// true to enable circulate or false to disable it. public bool Circulate { get { return GetCirculate(); } - set { SetCirculate( value); } + set { SetCirculate(value); } } /// Control whether the spin can be directly edited by the user. /// Spin objects can have editing disabled, in which case they can only be changed by using arrows. This is useful for situations where you don't want your users to write their own value. It's especially useful when using special values. The user can see the real values instead of special label when editing. /// true to allow users to edit it or false to don't allow users to edit it directly. public bool Editable { get { return GetEditable(); } - set { SetEditable( value); } + set { SetEditable(value); } } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. @@ -255,7 +283,7 @@ logical_order.Own = false; /// Direction of the widget. public Efl.Ui.Dir Direction { get { return GetDirection(); } - set { SetDirection( value); } + set { SetDirection(value); } } /// Set the order of elements that will be used for composition /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx. @@ -268,377 +296,593 @@ logical_order.Own = false; /// The order to use public Eina.List CompositionElements { get { return GetCompositionElements(); } - set { SetCompositionElements( value); } + set { SetCompositionElements(value); } } /// Set to true if all children should be registered as logicals /// true or false public bool LogicalMode { get { return GetLogicalMode(); } - set { SetLogicalMode( value); } + set { SetLogicalMode(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.SpinButton.efl_ui_spin_button_class_get(); } -} -public class SpinButtonNativeInherit : Efl.Ui.SpinNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_spin_button_circulate_get_static_delegate == null) - efl_ui_spin_button_circulate_get_static_delegate = new efl_ui_spin_button_circulate_get_delegate(circulate_get); - if (methods.FirstOrDefault(m => m.Name == "GetCirculate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_spin_button_circulate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_circulate_get_static_delegate)}); - if (efl_ui_spin_button_circulate_set_static_delegate == null) - efl_ui_spin_button_circulate_set_static_delegate = new efl_ui_spin_button_circulate_set_delegate(circulate_set); - if (methods.FirstOrDefault(m => m.Name == "SetCirculate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_spin_button_circulate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_circulate_set_static_delegate)}); - if (efl_ui_spin_button_editable_get_static_delegate == null) - efl_ui_spin_button_editable_get_static_delegate = new efl_ui_spin_button_editable_get_delegate(editable_get); - if (methods.FirstOrDefault(m => m.Name == "GetEditable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_spin_button_editable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_editable_get_static_delegate)}); - if (efl_ui_spin_button_editable_set_static_delegate == null) - efl_ui_spin_button_editable_set_static_delegate = new efl_ui_spin_button_editable_set_delegate(editable_set); - if (methods.FirstOrDefault(m => m.Name == "SetEditable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_spin_button_editable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_editable_set_static_delegate)}); - if (efl_ui_direction_get_static_delegate == null) - efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)}); - if (efl_ui_direction_set_static_delegate == null) - efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)}); - if (efl_ui_focus_composition_elements_get_static_delegate == null) - efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetCompositionElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_get_static_delegate)}); - if (efl_ui_focus_composition_elements_set_static_delegate == null) - efl_ui_focus_composition_elements_set_static_delegate = new efl_ui_focus_composition_elements_set_delegate(composition_elements_set); - if (methods.FirstOrDefault(m => m.Name == "SetCompositionElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_elements_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_set_static_delegate)}); - if (efl_ui_focus_composition_logical_mode_get_static_delegate == null) - efl_ui_focus_composition_logical_mode_get_static_delegate = new efl_ui_focus_composition_logical_mode_get_delegate(logical_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetLogicalMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_logical_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_get_static_delegate)}); - if (efl_ui_focus_composition_logical_mode_set_static_delegate == null) - efl_ui_focus_composition_logical_mode_set_static_delegate = new efl_ui_focus_composition_logical_mode_set_delegate(logical_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetLogicalMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_logical_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_set_static_delegate)}); - if (efl_ui_focus_composition_dirty_static_delegate == null) - efl_ui_focus_composition_dirty_static_delegate = new efl_ui_focus_composition_dirty_delegate(dirty); - if (methods.FirstOrDefault(m => m.Name == "Dirty") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_dirty"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_dirty_static_delegate)}); - if (efl_ui_focus_composition_prepare_static_delegate == null) - efl_ui_focus_composition_prepare_static_delegate = new efl_ui_focus_composition_prepare_delegate(prepare); - if (methods.FirstOrDefault(m => m.Name == "Prepare") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_composition_prepare"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_prepare_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.SpinButton.efl_ui_spin_button_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Spin.NativeMethods { - return Efl.Ui.SpinButton.efl_ui_spin_button_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_spin_button_circulate_get_static_delegate == null) + { + efl_ui_spin_button_circulate_get_static_delegate = new efl_ui_spin_button_circulate_get_delegate(circulate_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCirculate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_circulate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_circulate_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_spin_button_circulate_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_spin_button_circulate_set_static_delegate == null) + { + efl_ui_spin_button_circulate_set_static_delegate = new efl_ui_spin_button_circulate_set_delegate(circulate_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCirculate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_circulate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_circulate_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_spin_button_circulate_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_spin_button_circulate_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_spin_button_circulate_get"); - private static bool circulate_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_spin_button_circulate_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((SpinButton)wrapper).GetCirculate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_spin_button_editable_get_static_delegate == null) + { + efl_ui_spin_button_editable_get_static_delegate = new efl_ui_spin_button_editable_get_delegate(editable_get); } - return _ret_var; - } else { - return efl_ui_spin_button_circulate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_spin_button_circulate_get_delegate efl_ui_spin_button_circulate_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetEditable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_editable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_editable_get_static_delegate) }); + } - private delegate void efl_ui_spin_button_circulate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool circulate); + if (efl_ui_spin_button_editable_set_static_delegate == null) + { + efl_ui_spin_button_editable_set_static_delegate = new efl_ui_spin_button_editable_set_delegate(editable_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEditable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_editable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_editable_set_static_delegate) }); + } - public delegate void efl_ui_spin_button_circulate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool circulate); - public static Efl.Eo.FunctionWrapper efl_ui_spin_button_circulate_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_spin_button_circulate_set"); - private static void circulate_set(System.IntPtr obj, System.IntPtr pd, bool circulate) - { - Eina.Log.Debug("function efl_ui_spin_button_circulate_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((SpinButton)wrapper).SetCirculate( circulate); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_spin_button_circulate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), circulate); - } - } - private static efl_ui_spin_button_circulate_set_delegate efl_ui_spin_button_circulate_set_static_delegate; + if (efl_ui_direction_get_static_delegate == null) + { + efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_spin_button_editable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_direction_set_static_delegate == null) + { + efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_spin_button_editable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_spin_button_editable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_spin_button_editable_get"); - private static bool editable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_spin_button_editable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((SpinButton)wrapper).GetEditable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_composition_elements_get_static_delegate == null) + { + efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get); } - return _ret_var; - } else { - return efl_ui_spin_button_editable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_spin_button_editable_get_delegate efl_ui_spin_button_editable_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetCompositionElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_get_static_delegate) }); + } - private delegate void efl_ui_spin_button_editable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool editable); + if (efl_ui_focus_composition_elements_set_static_delegate == null) + { + efl_ui_focus_composition_elements_set_static_delegate = new efl_ui_focus_composition_elements_set_delegate(composition_elements_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCompositionElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_elements_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_elements_set_static_delegate) }); + } - public delegate void efl_ui_spin_button_editable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool editable); - public static Efl.Eo.FunctionWrapper efl_ui_spin_button_editable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_spin_button_editable_set"); - private static void editable_set(System.IntPtr obj, System.IntPtr pd, bool editable) - { - Eina.Log.Debug("function efl_ui_spin_button_editable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((SpinButton)wrapper).SetEditable( editable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_spin_button_editable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), editable); - } - } - private static efl_ui_spin_button_editable_set_delegate efl_ui_spin_button_editable_set_static_delegate; + if (efl_ui_focus_composition_logical_mode_get_static_delegate == null) + { + efl_ui_focus_composition_logical_mode_get_static_delegate = new efl_ui_focus_composition_logical_mode_get_delegate(logical_mode_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLogicalMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_logical_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_get_static_delegate) }); + } - private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_composition_logical_mode_set_static_delegate == null) + { + efl_ui_focus_composition_logical_mode_set_static_delegate = new efl_ui_focus_composition_logical_mode_set_delegate(logical_mode_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetLogicalMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_logical_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_logical_mode_set_static_delegate) }); + } - public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_get"); - private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); - try { - _ret_var = ((SpinButton)wrapper).GetDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_composition_dirty_static_delegate == null) + { + efl_ui_focus_composition_dirty_static_delegate = new efl_ui_focus_composition_dirty_delegate(dirty); } - return _ret_var; - } else { - return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Dirty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_dirty"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_dirty_static_delegate) }); + } - private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + if (efl_ui_focus_composition_prepare_static_delegate == null) + { + efl_ui_focus_composition_prepare_static_delegate = new efl_ui_focus_composition_prepare_delegate(prepare); + } + if (methods.FirstOrDefault(m => m.Name == "Prepare") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_composition_prepare"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_composition_prepare_static_delegate) }); + } - public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_set"); - private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((SpinButton)wrapper).SetDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.SpinButton.efl_ui_spin_button_class_get(); } - } - private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; - - private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_spin_button_circulate_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_spin_button_circulate_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_spin_button_circulate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_circulate_get"); + + private static bool circulate_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_spin_button_circulate_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((SpinButton)wrapper).GetCirculate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate System.IntPtr efl_ui_focus_composition_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_elements_get"); - private static System.IntPtr composition_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((SpinButton)wrapper).GetCompositionElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_ui_focus_composition_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_spin_button_circulate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_composition_elements_get_delegate efl_ui_focus_composition_elements_get_static_delegate; + private static efl_ui_spin_button_circulate_get_delegate efl_ui_spin_button_circulate_get_static_delegate; + + + private delegate void efl_ui_spin_button_circulate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool circulate); + + + public delegate void efl_ui_spin_button_circulate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool circulate); + + public static Efl.Eo.FunctionWrapper efl_ui_spin_button_circulate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_circulate_set"); + + private static void circulate_set(System.IntPtr obj, System.IntPtr pd, bool circulate) + { + Eina.Log.Debug("function efl_ui_spin_button_circulate_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((SpinButton)wrapper).SetCirculate(circulate); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_composition_elements_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order); + + } + else + { + efl_ui_spin_button_circulate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), circulate); + } + } + private static efl_ui_spin_button_circulate_set_delegate efl_ui_spin_button_circulate_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_spin_button_editable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_spin_button_editable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_spin_button_editable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_editable_get"); + + private static bool editable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_spin_button_editable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((SpinButton)wrapper).GetEditable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_focus_composition_elements_set_api_delegate(System.IntPtr obj, System.IntPtr logical_order); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_elements_set"); - private static void composition_elements_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order) - { - Eina.Log.Debug("function efl_ui_focus_composition_elements_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_logical_order = new Eina.List(logical_order, true, false); - - try { - ((SpinButton)wrapper).SetCompositionElements( _in_logical_order); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_elements_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_order); + return _ret_var; + + } + else + { + return efl_ui_spin_button_editable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_composition_elements_set_delegate efl_ui_focus_composition_elements_set_static_delegate; + private static efl_ui_spin_button_editable_get_delegate efl_ui_spin_button_editable_get_static_delegate; + + + private delegate void efl_ui_spin_button_editable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool editable); + + + public delegate void efl_ui_spin_button_editable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool editable); + + public static Efl.Eo.FunctionWrapper efl_ui_spin_button_editable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_editable_set"); + + private static void editable_set(System.IntPtr obj, System.IntPtr pd, bool editable) + { + Eina.Log.Debug("function efl_ui_spin_button_editable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((SpinButton)wrapper).SetEditable(editable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_composition_logical_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_ui_spin_button_editable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), editable); + } + } + private static efl_ui_spin_button_editable_set_delegate efl_ui_spin_button_editable_set_static_delegate; + + + private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_get"); + + private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); + try + { + _ret_var = ((SpinButton)wrapper).GetDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_composition_logical_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_logical_mode_get"); - private static bool logical_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((SpinButton)wrapper).GetLogicalMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_composition_logical_mode_get_delegate efl_ui_focus_composition_logical_mode_get_static_delegate; + private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + + + private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + + public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_set"); + + private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((SpinButton)wrapper).SetDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_composition_logical_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool logical_mode); + + } + else + { + efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } + private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_focus_composition_elements_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_elements_get"); + + private static System.IntPtr composition_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((SpinButton)wrapper).GetCompositionElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_focus_composition_logical_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool logical_mode); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_logical_mode_set"); - private static void logical_mode_set(System.IntPtr obj, System.IntPtr pd, bool logical_mode) - { - Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((SpinButton)wrapper).SetLogicalMode( logical_mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_mode); + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_ui_focus_composition_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_composition_logical_mode_set_delegate efl_ui_focus_composition_logical_mode_set_static_delegate; + private static efl_ui_focus_composition_elements_get_delegate efl_ui_focus_composition_elements_get_static_delegate; - private delegate void efl_ui_focus_composition_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_composition_elements_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order); + + public delegate void efl_ui_focus_composition_elements_set_api_delegate(System.IntPtr obj, System.IntPtr logical_order); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_elements_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_elements_set"); + + private static void composition_elements_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr logical_order) + { + Eina.Log.Debug("function efl_ui_focus_composition_elements_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_logical_order = new Eina.List(logical_order, true, false); + + try + { + ((SpinButton)wrapper).SetCompositionElements(_in_logical_order); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_focus_composition_dirty_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_dirty_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_dirty"); - private static void dirty(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_dirty was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((SpinButton)wrapper).Dirty(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_ui_focus_composition_elements_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_order); + } } - } - private static efl_ui_focus_composition_dirty_delegate efl_ui_focus_composition_dirty_static_delegate; + private static efl_ui_focus_composition_elements_set_delegate efl_ui_focus_composition_elements_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_composition_logical_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_composition_logical_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_logical_mode_get"); + + private static bool logical_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((SpinButton)wrapper).GetLogicalMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_composition_prepare_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_focus_composition_logical_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_composition_logical_mode_get_delegate efl_ui_focus_composition_logical_mode_get_static_delegate; + + + private delegate void efl_ui_focus_composition_logical_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool logical_mode); + + + public delegate void efl_ui_focus_composition_logical_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool logical_mode); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_logical_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_logical_mode_set"); + + private static void logical_mode_set(System.IntPtr obj, System.IntPtr pd, bool logical_mode) + { + Eina.Log.Debug("function efl_ui_focus_composition_logical_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((SpinButton)wrapper).SetLogicalMode(logical_mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_focus_composition_prepare_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_prepare_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_composition_prepare"); - private static void prepare(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_composition_prepare was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((SpinButton)wrapper).Prepare(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_composition_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_ui_focus_composition_logical_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), logical_mode); + } } - } - private static efl_ui_focus_composition_prepare_delegate efl_ui_focus_composition_prepare_static_delegate; + + private static efl_ui_focus_composition_logical_mode_set_delegate efl_ui_focus_composition_logical_mode_set_static_delegate; + + + private delegate void efl_ui_focus_composition_dirty_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_composition_dirty_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_dirty_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_dirty"); + + private static void dirty(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_dirty was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((SpinButton)wrapper).Dirty(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_dirty_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_composition_dirty_delegate efl_ui_focus_composition_dirty_static_delegate; + + + private delegate void efl_ui_focus_composition_prepare_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_composition_prepare_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_composition_prepare_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_composition_prepare"); + + private static void prepare(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_composition_prepare was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((SpinButton)wrapper).Prepare(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_composition_prepare_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_composition_prepare_delegate efl_ui_focus_composition_prepare_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_stack.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_stack.eo.cs index 8bdbb7d..b6c3b7a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_stack.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_stack.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + ///Event argument wrapper for event . public class StackLoadedEvt_Args : EventArgs { ///Actual event payload. @@ -27,317 +31,402 @@ public class StackDeactivatedEvt_Args : EventArgs { } /// Stack widget. /// Stack widget arranges objects in stack structure by pushing and poping them. -[StackNativeInherit] +[Efl.Ui.Stack.NativeMethods] public class Stack : Efl.Ui.LayoutBase, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Stack)) - return Efl.Ui.StackNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Stack)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_stack_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Stack(Efl.Object parent - , System.String style = null) : - base(efl_ui_stack_class_get(), typeof(Stack), parent) + , System.String style = null) : base(efl_ui_stack_class_get(), typeof(Stack), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Stack(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Stack(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Stack(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object LoadedEvtKey = new object(); + /// Called when content is loaded right before transition. public event EventHandler LoadedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.StackLoadedEvt_Args args = new Efl.Ui.StackLoadedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_STACK_EVENT_LOADED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_LoadedEvt_delegate)) { - eventHandlers.AddHandler(LoadedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_STACK_EVENT_LOADED"; - if (RemoveNativeEventHandler(key, this.evt_LoadedEvt_delegate)) { - eventHandlers.RemoveHandler(LoadedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event LoadedEvt. - public void On_LoadedEvt(Efl.Ui.StackLoadedEvt_Args e) + public void OnLoadedEvt(Efl.Ui.StackLoadedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LoadedEvtKey]; + var key = "_EFL_UI_STACK_EVENT_LOADED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LoadedEvt_delegate; - private void on_LoadedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.StackLoadedEvt_Args args = new Efl.Ui.StackLoadedEvt_Args(); - args.arg = evt.Info;; - try { - On_LoadedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object UnloadedEvtKey = new object(); /// Called when content is unloaded right after being deactivated. public event EventHandler UnloadedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.StackUnloadedEvt_Args args = new Efl.Ui.StackUnloadedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_STACK_EVENT_UNLOADED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_UnloadedEvt_delegate)) { - eventHandlers.AddHandler(UnloadedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_STACK_EVENT_UNLOADED"; - if (RemoveNativeEventHandler(key, this.evt_UnloadedEvt_delegate)) { - eventHandlers.RemoveHandler(UnloadedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event UnloadedEvt. - public void On_UnloadedEvt(Efl.Ui.StackUnloadedEvt_Args e) + public void OnUnloadedEvt(Efl.Ui.StackUnloadedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnloadedEvtKey]; + var key = "_EFL_UI_STACK_EVENT_UNLOADED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnloadedEvt_delegate; - private void on_UnloadedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.StackUnloadedEvt_Args args = new Efl.Ui.StackUnloadedEvt_Args(); - args.arg = evt.Info;; - try { - On_UnloadedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ActivatedEvtKey = new object(); /// Called when content is activated right after transition. public event EventHandler ActivatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.StackActivatedEvt_Args args = new Efl.Ui.StackActivatedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_STACK_EVENT_ACTIVATED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ActivatedEvt_delegate)) { - eventHandlers.AddHandler(ActivatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_STACK_EVENT_ACTIVATED"; - if (RemoveNativeEventHandler(key, this.evt_ActivatedEvt_delegate)) { - eventHandlers.RemoveHandler(ActivatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ActivatedEvt. - public void On_ActivatedEvt(Efl.Ui.StackActivatedEvt_Args e) + public void OnActivatedEvt(Efl.Ui.StackActivatedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ActivatedEvtKey]; + var key = "_EFL_UI_STACK_EVENT_ACTIVATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ActivatedEvt_delegate; - private void on_ActivatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.StackActivatedEvt_Args args = new Efl.Ui.StackActivatedEvt_Args(); - args.arg = evt.Info;; - try { - On_ActivatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object DeactivatedEvtKey = new object(); /// Called when content is deactivated right after transition. public event EventHandler DeactivatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.StackDeactivatedEvt_Args args = new Efl.Ui.StackDeactivatedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_STACK_EVENT_DEACTIVATED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DeactivatedEvt_delegate)) { - eventHandlers.AddHandler(DeactivatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_STACK_EVENT_DEACTIVATED"; - if (RemoveNativeEventHandler(key, this.evt_DeactivatedEvt_delegate)) { - eventHandlers.RemoveHandler(DeactivatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DeactivatedEvt. - public void On_DeactivatedEvt(Efl.Ui.StackDeactivatedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DeactivatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DeactivatedEvt_delegate; - private void on_DeactivatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDeactivatedEvt(Efl.Ui.StackDeactivatedEvt_Args e) { - Efl.Ui.StackDeactivatedEvt_Args args = new Efl.Ui.StackDeactivatedEvt_Args(); - args.arg = evt.Info;; - try { - On_DeactivatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_STACK_EVENT_DEACTIVATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_LoadedEvt_delegate = new Efl.EventCb(on_LoadedEvt_NativeCallback); - evt_UnloadedEvt_delegate = new Efl.EventCb(on_UnloadedEvt_NativeCallback); - evt_ActivatedEvt_delegate = new Efl.EventCb(on_ActivatedEvt_NativeCallback); - evt_DeactivatedEvt_delegate = new Efl.EventCb(on_DeactivatedEvt_NativeCallback); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Pushes a new object to the top of the stack and shows it. /// The pushed object which becomes the top content of the stack. - /// - virtual public void Push( Efl.Canvas.Object content) { - Efl.Ui.StackNativeInherit.efl_ui_stack_push_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + virtual public void Push(Efl.Canvas.Object content) { + Efl.Ui.Stack.NativeMethods.efl_ui_stack_push_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); } /// Pops the top content from the stack and deletes it. /// The top content which is removed from the stack. virtual public Efl.Canvas.Object Pop() { - var _ret_var = Efl.Ui.StackNativeInherit.efl_ui_stack_pop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Stack.NativeMethods.efl_ui_stack_pop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Inserts an object before the given base content in the stack. /// content is inserted before this base_content. /// The inserted object in the stack. - /// - virtual public void InsertBefore( Efl.Canvas.Object base_content, Efl.Canvas.Object content) { - Efl.Ui.StackNativeInherit.efl_ui_stack_insert_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), base_content, content); + virtual public void InsertBefore(Efl.Canvas.Object base_content, Efl.Canvas.Object content) { + Efl.Ui.Stack.NativeMethods.efl_ui_stack_insert_before_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),base_content, content); Eina.Error.RaiseIfUnhandledException(); } /// Inserts an object after the given base content in the stack. /// content is inserted after this base_content. /// The inserted object in the stack. - /// - virtual public void InsertAfter( Efl.Canvas.Object base_content, Efl.Canvas.Object content) { - Efl.Ui.StackNativeInherit.efl_ui_stack_insert_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), base_content, content); + virtual public void InsertAfter(Efl.Canvas.Object base_content, Efl.Canvas.Object content) { + Efl.Ui.Stack.NativeMethods.efl_ui_stack_insert_after_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),base_content, content); Eina.Error.RaiseIfUnhandledException(); } /// Inserts an object at the given place in the stack. /// The index of the inserted object in the stack. index begins from bottom to top of the stack. index of the bottom content is 0. /// The inserted object in the stack. - /// - virtual public void InsertAt( int index, Efl.Canvas.Object content) { - Efl.Ui.StackNativeInherit.efl_ui_stack_insert_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index, content); + virtual public void InsertAt(int index, Efl.Canvas.Object content) { + Efl.Ui.Stack.NativeMethods.efl_ui_stack_insert_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index, content); Eina.Error.RaiseIfUnhandledException(); } /// Removes the given content in the stack. /// The removed content from the stack. - /// - virtual public void Remove( Efl.Canvas.Object content) { - Efl.Ui.StackNativeInherit.efl_ui_stack_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + virtual public void Remove(Efl.Canvas.Object content) { + Efl.Ui.Stack.NativeMethods.efl_ui_stack_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); } /// Removes a content matched to the given index in the stack. /// The index of the removed object in the stack. index begins from bottom to top of the stack. index of the bottom content is 0. - /// - virtual public void RemoveAt( int index) { - Efl.Ui.StackNativeInherit.efl_ui_stack_remove_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public void RemoveAt(int index) { + Efl.Ui.Stack.NativeMethods.efl_ui_stack_remove_at_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); } /// Gets the index of the given content in the stack. The index begins from bottom to top of the stack. The index of the bottom content is 0. /// The content matched to the index to be returned in the stack. /// The index of content in the stack. - virtual public int GetIndex( Efl.Canvas.Object content) { - var _ret_var = Efl.Ui.StackNativeInherit.efl_ui_stack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + virtual public int GetIndex(Efl.Canvas.Object content) { + var _ret_var = Efl.Ui.Stack.NativeMethods.efl_ui_stack_index_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the content matched to the given index in the stack. /// The index of the content to be returned in the stack. /// The content matched to index in the stack. - virtual public Efl.Canvas.Object GetContent( int index) { - var _ret_var = Efl.Ui.StackNativeInherit.efl_ui_stack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public Efl.Canvas.Object GetContent(int index) { + var _ret_var = Efl.Ui.Stack.NativeMethods.efl_ui_stack_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the top content in the stack. /// The top content in the stack. virtual public Efl.Canvas.Object Top() { - var _ret_var = Efl.Ui.StackNativeInherit.efl_ui_stack_top_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Stack.NativeMethods.efl_ui_stack_top_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -345,311 +434,496 @@ private static object DeactivatedEvtKey = new object(); { return Efl.Ui.Stack.efl_ui_stack_class_get(); } -} -public class StackNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_stack_push_static_delegate == null) - efl_ui_stack_push_static_delegate = new efl_ui_stack_push_delegate(push); - if (methods.FirstOrDefault(m => m.Name == "Push") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_stack_push"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_push_static_delegate)}); - if (efl_ui_stack_pop_static_delegate == null) - efl_ui_stack_pop_static_delegate = new efl_ui_stack_pop_delegate(pop); - if (methods.FirstOrDefault(m => m.Name == "Pop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_stack_pop"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_pop_static_delegate)}); - if (efl_ui_stack_insert_before_static_delegate == null) - efl_ui_stack_insert_before_static_delegate = new efl_ui_stack_insert_before_delegate(insert_before); - if (methods.FirstOrDefault(m => m.Name == "InsertBefore") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_stack_insert_before"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_insert_before_static_delegate)}); - if (efl_ui_stack_insert_after_static_delegate == null) - efl_ui_stack_insert_after_static_delegate = new efl_ui_stack_insert_after_delegate(insert_after); - if (methods.FirstOrDefault(m => m.Name == "InsertAfter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_stack_insert_after"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_insert_after_static_delegate)}); - if (efl_ui_stack_insert_at_static_delegate == null) - efl_ui_stack_insert_at_static_delegate = new efl_ui_stack_insert_at_delegate(insert_at); - if (methods.FirstOrDefault(m => m.Name == "InsertAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_stack_insert_at"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_insert_at_static_delegate)}); - if (efl_ui_stack_remove_static_delegate == null) - efl_ui_stack_remove_static_delegate = new efl_ui_stack_remove_delegate(remove); - if (methods.FirstOrDefault(m => m.Name == "Remove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_stack_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_remove_static_delegate)}); - if (efl_ui_stack_remove_at_static_delegate == null) - efl_ui_stack_remove_at_static_delegate = new efl_ui_stack_remove_at_delegate(remove_at); - if (methods.FirstOrDefault(m => m.Name == "RemoveAt") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_stack_remove_at"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_remove_at_static_delegate)}); - if (efl_ui_stack_index_get_static_delegate == null) - efl_ui_stack_index_get_static_delegate = new efl_ui_stack_index_get_delegate(index_get); - if (methods.FirstOrDefault(m => m.Name == "GetIndex") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_stack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_index_get_static_delegate)}); - if (efl_ui_stack_content_get_static_delegate == null) - efl_ui_stack_content_get_static_delegate = new efl_ui_stack_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_stack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_content_get_static_delegate)}); - if (efl_ui_stack_top_static_delegate == null) - efl_ui_stack_top_static_delegate = new efl_ui_stack_top_delegate(top); - if (methods.FirstOrDefault(m => m.Name == "Top") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_stack_top"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_top_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Stack.efl_ui_stack_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Stack.efl_ui_stack_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_stack_push_static_delegate == null) + { + efl_ui_stack_push_static_delegate = new efl_ui_stack_push_delegate(push); + } - private delegate void efl_ui_stack_push_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); + if (methods.FirstOrDefault(m => m.Name == "Push") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_stack_push"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_push_static_delegate) }); + } + if (efl_ui_stack_pop_static_delegate == null) + { + efl_ui_stack_pop_static_delegate = new efl_ui_stack_pop_delegate(pop); + } - public delegate void efl_ui_stack_push_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); - public static Efl.Eo.FunctionWrapper efl_ui_stack_push_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_stack_push"); - private static void push(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) - { - Eina.Log.Debug("function efl_ui_stack_push was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Stack)wrapper).Push( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_stack_push_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_ui_stack_push_delegate efl_ui_stack_push_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Pop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_stack_pop"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_pop_static_delegate) }); + } + if (efl_ui_stack_insert_before_static_delegate == null) + { + efl_ui_stack_insert_before_static_delegate = new efl_ui_stack_insert_before_delegate(insert_before); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_stack_pop_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "InsertBefore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_stack_insert_before"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_insert_before_static_delegate) }); + } + if (efl_ui_stack_insert_after_static_delegate == null) + { + efl_ui_stack_insert_after_static_delegate = new efl_ui_stack_insert_after_delegate(insert_after); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_stack_pop_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_stack_pop_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_stack_pop"); - private static Efl.Canvas.Object pop(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_stack_pop was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Stack)wrapper).Pop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "InsertAfter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_stack_insert_after"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_insert_after_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_stack_pop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_stack_insert_at_static_delegate == null) + { + efl_ui_stack_insert_at_static_delegate = new efl_ui_stack_insert_at_delegate(insert_at); + } + + if (methods.FirstOrDefault(m => m.Name == "InsertAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_stack_insert_at"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_insert_at_static_delegate) }); + } + + if (efl_ui_stack_remove_static_delegate == null) + { + efl_ui_stack_remove_static_delegate = new efl_ui_stack_remove_delegate(remove); + } + + if (methods.FirstOrDefault(m => m.Name == "Remove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_stack_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_remove_static_delegate) }); + } + + if (efl_ui_stack_remove_at_static_delegate == null) + { + efl_ui_stack_remove_at_static_delegate = new efl_ui_stack_remove_at_delegate(remove_at); + } + + if (methods.FirstOrDefault(m => m.Name == "RemoveAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_stack_remove_at"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_remove_at_static_delegate) }); + } + + if (efl_ui_stack_index_get_static_delegate == null) + { + efl_ui_stack_index_get_static_delegate = new efl_ui_stack_index_get_delegate(index_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_stack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_index_get_static_delegate) }); + } + + if (efl_ui_stack_content_get_static_delegate == null) + { + efl_ui_stack_content_get_static_delegate = new efl_ui_stack_content_get_delegate(content_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_stack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_content_get_static_delegate) }); + } + + if (efl_ui_stack_top_static_delegate == null) + { + efl_ui_stack_top_static_delegate = new efl_ui_stack_top_delegate(top); + } + + if (methods.FirstOrDefault(m => m.Name == "Top") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_stack_top"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_stack_top_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Stack.efl_ui_stack_class_get(); } - } - private static efl_ui_stack_pop_delegate efl_ui_stack_pop_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_stack_insert_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object base_content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); + + private delegate void efl_ui_stack_push_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + public delegate void efl_ui_stack_push_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); - public delegate void efl_ui_stack_insert_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object base_content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); - public static Efl.Eo.FunctionWrapper efl_ui_stack_insert_before_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_stack_insert_before"); - private static void insert_before(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object base_content, Efl.Canvas.Object content) - { - Eina.Log.Debug("function efl_ui_stack_insert_before was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Stack)wrapper).InsertBefore( base_content, content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_stack_insert_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), base_content, content); + public static Efl.Eo.FunctionWrapper efl_ui_stack_push_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_stack_push"); + + private static void push(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) + { + Eina.Log.Debug("function efl_ui_stack_push was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Stack)wrapper).Push(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_stack_push_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } } - } - private static efl_ui_stack_insert_before_delegate efl_ui_stack_insert_before_static_delegate; + private static efl_ui_stack_push_delegate efl_ui_stack_push_static_delegate; - private delegate void efl_ui_stack_insert_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object base_content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_stack_pop_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_stack_pop_api_delegate(System.IntPtr obj); - public delegate void efl_ui_stack_insert_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object base_content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); - public static Efl.Eo.FunctionWrapper efl_ui_stack_insert_after_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_stack_insert_after"); - private static void insert_after(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object base_content, Efl.Canvas.Object content) - { - Eina.Log.Debug("function efl_ui_stack_insert_after was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Stack)wrapper).InsertAfter( base_content, content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_stack_insert_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), base_content, content); + public static Efl.Eo.FunctionWrapper efl_ui_stack_pop_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_stack_pop"); + + private static Efl.Canvas.Object pop(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_stack_pop was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Stack)wrapper).Pop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_stack_pop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_stack_insert_after_delegate efl_ui_stack_insert_after_static_delegate; + private static efl_ui_stack_pop_delegate efl_ui_stack_pop_static_delegate; - private delegate void efl_ui_stack_insert_at_delegate(System.IntPtr obj, System.IntPtr pd, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); + + private delegate void efl_ui_stack_insert_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object base_content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + public delegate void efl_ui_stack_insert_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object base_content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); - public delegate void efl_ui_stack_insert_at_api_delegate(System.IntPtr obj, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); - public static Efl.Eo.FunctionWrapper efl_ui_stack_insert_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_stack_insert_at"); - private static void insert_at(System.IntPtr obj, System.IntPtr pd, int index, Efl.Canvas.Object content) - { - Eina.Log.Debug("function efl_ui_stack_insert_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Stack)wrapper).InsertAt( index, content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_stack_insert_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index, content); + public static Efl.Eo.FunctionWrapper efl_ui_stack_insert_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_stack_insert_before"); + + private static void insert_before(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object base_content, Efl.Canvas.Object content) + { + Eina.Log.Debug("function efl_ui_stack_insert_before was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Stack)wrapper).InsertBefore(base_content, content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_stack_insert_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), base_content, content); + } } - } - private static efl_ui_stack_insert_at_delegate efl_ui_stack_insert_at_static_delegate; + private static efl_ui_stack_insert_before_delegate efl_ui_stack_insert_before_static_delegate; - private delegate void efl_ui_stack_remove_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); + + private delegate void efl_ui_stack_insert_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object base_content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + public delegate void efl_ui_stack_insert_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object base_content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); - public delegate void efl_ui_stack_remove_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); - public static Efl.Eo.FunctionWrapper efl_ui_stack_remove_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_stack_remove"); - private static void remove(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) - { - Eina.Log.Debug("function efl_ui_stack_remove was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Stack)wrapper).Remove( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_stack_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + public static Efl.Eo.FunctionWrapper efl_ui_stack_insert_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_stack_insert_after"); + + private static void insert_after(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object base_content, Efl.Canvas.Object content) + { + Eina.Log.Debug("function efl_ui_stack_insert_after was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Stack)wrapper).InsertAfter(base_content, content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_stack_insert_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), base_content, content); + } } - } - private static efl_ui_stack_remove_delegate efl_ui_stack_remove_static_delegate; + private static efl_ui_stack_insert_after_delegate efl_ui_stack_insert_after_static_delegate; - private delegate void efl_ui_stack_remove_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + private delegate void efl_ui_stack_insert_at_delegate(System.IntPtr obj, System.IntPtr pd, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + public delegate void efl_ui_stack_insert_at_api_delegate(System.IntPtr obj, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); - public delegate void efl_ui_stack_remove_at_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_ui_stack_remove_at_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_stack_remove_at"); - private static void remove_at(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_ui_stack_remove_at was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Stack)wrapper).RemoveAt( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_stack_remove_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + public static Efl.Eo.FunctionWrapper efl_ui_stack_insert_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_stack_insert_at"); + + private static void insert_at(System.IntPtr obj, System.IntPtr pd, int index, Efl.Canvas.Object content) + { + Eina.Log.Debug("function efl_ui_stack_insert_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Stack)wrapper).InsertAt(index, content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_stack_insert_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index, content); + } } - } - private static efl_ui_stack_remove_at_delegate efl_ui_stack_remove_at_static_delegate; + private static efl_ui_stack_insert_at_delegate efl_ui_stack_insert_at_static_delegate; - private delegate int efl_ui_stack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); + + private delegate void efl_ui_stack_remove_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + public delegate void efl_ui_stack_remove_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); - public delegate int efl_ui_stack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); - public static Efl.Eo.FunctionWrapper efl_ui_stack_index_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_stack_index_get"); - private static int index_get(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) - { - Eina.Log.Debug("function efl_ui_stack_index_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Stack)wrapper).GetIndex( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_stack_remove_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_stack_remove"); + + private static void remove(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) + { + Eina.Log.Debug("function efl_ui_stack_remove was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Stack)wrapper).Remove(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_stack_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } - return _ret_var; - } else { - return efl_ui_stack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } - } - private static efl_ui_stack_index_get_delegate efl_ui_stack_index_get_static_delegate; + private static efl_ui_stack_remove_delegate efl_ui_stack_remove_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_stack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + private delegate void efl_ui_stack_remove_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + public delegate void efl_ui_stack_remove_at_api_delegate(System.IntPtr obj, int index); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_stack_content_get_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_ui_stack_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_stack_content_get"); - private static Efl.Canvas.Object content_get(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_ui_stack_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Stack)wrapper).GetContent( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_stack_remove_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_stack_remove_at"); + + private static void remove_at(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_ui_stack_remove_at was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Stack)wrapper).RemoveAt(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_stack_remove_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + + private static efl_ui_stack_remove_at_delegate efl_ui_stack_remove_at_static_delegate; + + + private delegate int efl_ui_stack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + + public delegate int efl_ui_stack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + public static Efl.Eo.FunctionWrapper efl_ui_stack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_stack_index_get"); + + private static int index_get(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) + { + Eina.Log.Debug("function efl_ui_stack_index_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Stack)wrapper).GetIndex(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_stack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + + } + else + { + return efl_ui_stack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } } - } - private static efl_ui_stack_content_get_delegate efl_ui_stack_content_get_static_delegate; + private static efl_ui_stack_index_get_delegate efl_ui_stack_index_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_stack_top_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_stack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_stack_content_get_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_ui_stack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_stack_content_get"); + + private static Efl.Canvas.Object content_get(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_ui_stack_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Stack)wrapper).GetContent(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_stack_top_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_stack_top_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_stack_top"); - private static Efl.Canvas.Object top(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_stack_top was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Stack)wrapper).Top(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_ui_stack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + + private static efl_ui_stack_content_get_delegate efl_ui_stack_content_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_stack_top_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_stack_top_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_stack_top_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_stack_top"); + + private static Efl.Canvas.Object top(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_stack_top was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Stack)wrapper).Top(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_stack_top_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_stack_top_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_stack_top_delegate efl_ui_stack_top_static_delegate; + + private static efl_ui_stack_top_delegate efl_ui_stack_top_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } -namespace Efl { namespace Ui { +} +} + +} + +namespace Efl { + +namespace Ui { + /// Information of loaded event. [StructLayout(LayoutKind.Sequential)] public struct StackEventLoaded @@ -658,7 +932,7 @@ public struct StackEventLoaded public Efl.Canvas.Object Content; ///Constructor for StackEventLoaded. public StackEventLoaded( - Efl.Canvas.Object Content=default(Efl.Canvas.Object) ) + Efl.Canvas.Object Content = default(Efl.Canvas.Object) ) { this.Content = Content; } @@ -696,8 +970,14 @@ public struct StackEventLoaded } -} } -namespace Efl { namespace Ui { +} + +} + +namespace Efl { + +namespace Ui { + /// Information of unloaded event. [StructLayout(LayoutKind.Sequential)] public struct StackEventUnloaded @@ -706,7 +986,7 @@ public struct StackEventUnloaded public Efl.Canvas.Object Content; ///Constructor for StackEventUnloaded. public StackEventUnloaded( - Efl.Canvas.Object Content=default(Efl.Canvas.Object) ) + Efl.Canvas.Object Content = default(Efl.Canvas.Object) ) { this.Content = Content; } @@ -744,8 +1024,14 @@ public struct StackEventUnloaded } -} } -namespace Efl { namespace Ui { +} + +} + +namespace Efl { + +namespace Ui { + /// Information of activated event. [StructLayout(LayoutKind.Sequential)] public struct StackEventActivated @@ -754,7 +1040,7 @@ public struct StackEventActivated public Efl.Canvas.Object Content; ///Constructor for StackEventActivated. public StackEventActivated( - Efl.Canvas.Object Content=default(Efl.Canvas.Object) ) + Efl.Canvas.Object Content = default(Efl.Canvas.Object) ) { this.Content = Content; } @@ -792,8 +1078,14 @@ public struct StackEventActivated } -} } -namespace Efl { namespace Ui { +} + +} + +namespace Efl { + +namespace Ui { + /// Information of deactivated event. [StructLayout(LayoutKind.Sequential)] public struct StackEventDeactivated @@ -802,7 +1094,7 @@ public struct StackEventDeactivated public Efl.Canvas.Object Content; ///Constructor for StackEventDeactivated. public StackEventDeactivated( - Efl.Canvas.Object Content=default(Efl.Canvas.Object) ) + Efl.Canvas.Object Content = default(Efl.Canvas.Object) ) { this.Content = Content; } @@ -840,4 +1132,7 @@ public struct StackEventDeactivated } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_state_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_state_model.eo.cs deleted file mode 100644 index 63a3b9c..0000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_state_model.eo.cs +++ /dev/null @@ -1,90 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; -namespace Efl { namespace Ui { -/// Efl model handling visibility, enable and selected state -[StateModelNativeInherit] -public class StateModel : Efl.BooleanModel, Efl.Eo.IWrapper -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (StateModel)) - return Efl.Ui.StateModelNativeInherit.GetEflClassStatic(); - else - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_state_model_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Model that is/will be See - ///Position of this object in the parent model. See - public StateModel(Efl.Object parent - , Efl.IModel model, uint? index = null) : - base(efl_ui_state_model_class_get(), typeof(StateModel), parent) - { - if (Efl.Eo.Globals.ParamHelperCheck(model)) - SetModel(Efl.Eo.Globals.GetParamHelper(model)); - if (Efl.Eo.Globals.ParamHelperCheck(index)) - SetIndex(Efl.Eo.Globals.GetParamHelper(index)); - FinishInstantiation(); - } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - protected StateModel(System.IntPtr raw) : base(raw) - { - RegisterEventProxies(); - } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected StateModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) - { - var other = obj as Efl.Object; - if (other == null) - return false; - return this.NativeHandle == other.NativeHandle; - } - ///Gets the hash code for this object based on the native pointer it points to. - public override int GetHashCode() - { - return this.NativeHandle.ToInt32(); - } - ///Turns the native pointer into a string representation. - public override String ToString() - { - return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.StateModel.efl_ui_state_model_class_get(); - } -} -public class StateModelNativeInherit : Efl.BooleanModelNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.StateModel.efl_ui_state_model_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.StateModel.efl_ui_state_model_class_get(); - } -} -} } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_bar.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_bar.eo.cs index 7fb4415..4977211 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_bar.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_bar.eo.cs @@ -3,706 +3,907 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Tab Bar class -[TabBarNativeInherit] +[Efl.Ui.TabBar.NativeMethods] public class TabBar : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.Ui.IClickable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TabBar)) - return Efl.Ui.TabBarNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TabBar)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_tab_bar_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public TabBar(Efl.Object parent - , System.String style = null) : - base(efl_ui_tab_bar_class_get(), typeof(TabBar), parent) + , System.String style = null) : base(efl_ui_tab_bar_class_get(), typeof(TabBar), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TabBar(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TabBar(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TabBar(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ClickedEvtKey = new object(); + /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) + public void OnClickedDoubleEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) + public void OnClickedTripleEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRepeatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// - /// virtual public int GetCurrentTab() { - var _ret_var = Efl.Ui.TabBarNativeInherit.efl_ui_tab_bar_current_tab_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.TabBar.NativeMethods.efl_ui_tab_bar_current_tab_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// - /// - virtual public void SetCurrentTab( int index) { - Efl.Ui.TabBarNativeInherit.efl_ui_tab_bar_current_tab_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public void SetCurrentTab(int index) { + Efl.Ui.TabBar.NativeMethods.efl_ui_tab_bar_current_tab_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); } - /// - /// virtual public uint TabCount() { - var _ret_var = Efl.Ui.TabBarNativeInherit.efl_ui_tab_bar_tab_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.TabBar.NativeMethods.efl_ui_tab_bar_tab_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// - /// - /// - /// - virtual public void AddTab( int index, System.String label, System.String icon) { - Efl.Ui.TabBarNativeInherit.efl_ui_tab_bar_tab_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index, label, icon); + virtual public void AddTab(int index, System.String label, System.String icon) { + Efl.Ui.TabBar.NativeMethods.efl_ui_tab_bar_tab_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index, label, icon); Eina.Error.RaiseIfUnhandledException(); } - /// - /// - /// - virtual public void TabRemove( int index) { - Efl.Ui.TabBarNativeInherit.efl_ui_tab_bar_tab_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index); + virtual public void TabRemove(int index) { + Efl.Ui.TabBar.NativeMethods.efl_ui_tab_bar_tab_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index); Eina.Error.RaiseIfUnhandledException(); } - /// - /// - /// - /// - virtual public void SetTabLabel( int index, System.String label) { - Efl.Ui.TabBarNativeInherit.efl_ui_tab_bar_tab_label_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index, label); + virtual public void SetTabLabel(int index, System.String label) { + Efl.Ui.TabBar.NativeMethods.efl_ui_tab_bar_tab_label_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index, label); Eina.Error.RaiseIfUnhandledException(); } - /// - /// - /// - /// - virtual public void SetTabIcon( int index, System.String icon) { - Efl.Ui.TabBarNativeInherit.efl_ui_tab_bar_tab_icon_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), index, icon); + virtual public void SetTabIcon(int index, System.String icon) { + Efl.Ui.TabBar.NativeMethods.efl_ui_tab_bar_tab_icon_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),index, icon); Eina.Error.RaiseIfUnhandledException(); } - /// -/// - public int CurrentTab { + public int CurrentTab { get { return GetCurrentTab(); } - set { SetCurrentTab( value); } + set { SetCurrentTab(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.TabBar.efl_ui_tab_bar_class_get(); } -} -public class TabBarNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_tab_bar_current_tab_get_static_delegate == null) - efl_ui_tab_bar_current_tab_get_static_delegate = new efl_ui_tab_bar_current_tab_get_delegate(current_tab_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrentTab") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tab_bar_current_tab_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_current_tab_get_static_delegate)}); - if (efl_ui_tab_bar_current_tab_set_static_delegate == null) - efl_ui_tab_bar_current_tab_set_static_delegate = new efl_ui_tab_bar_current_tab_set_delegate(current_tab_set); - if (methods.FirstOrDefault(m => m.Name == "SetCurrentTab") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tab_bar_current_tab_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_current_tab_set_static_delegate)}); - if (efl_ui_tab_bar_tab_count_static_delegate == null) - efl_ui_tab_bar_tab_count_static_delegate = new efl_ui_tab_bar_tab_count_delegate(tab_count); - if (methods.FirstOrDefault(m => m.Name == "TabCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tab_bar_tab_count"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_tab_count_static_delegate)}); - if (efl_ui_tab_bar_tab_add_static_delegate == null) - efl_ui_tab_bar_tab_add_static_delegate = new efl_ui_tab_bar_tab_add_delegate(tab_add); - if (methods.FirstOrDefault(m => m.Name == "AddTab") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tab_bar_tab_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_tab_add_static_delegate)}); - if (efl_ui_tab_bar_tab_remove_static_delegate == null) - efl_ui_tab_bar_tab_remove_static_delegate = new efl_ui_tab_bar_tab_remove_delegate(tab_remove); - if (methods.FirstOrDefault(m => m.Name == "TabRemove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tab_bar_tab_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_tab_remove_static_delegate)}); - if (efl_ui_tab_bar_tab_label_set_static_delegate == null) - efl_ui_tab_bar_tab_label_set_static_delegate = new efl_ui_tab_bar_tab_label_set_delegate(tab_label_set); - if (methods.FirstOrDefault(m => m.Name == "SetTabLabel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tab_bar_tab_label_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_tab_label_set_static_delegate)}); - if (efl_ui_tab_bar_tab_icon_set_static_delegate == null) - efl_ui_tab_bar_tab_icon_set_static_delegate = new efl_ui_tab_bar_tab_icon_set_delegate(tab_icon_set); - if (methods.FirstOrDefault(m => m.Name == "SetTabIcon") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tab_bar_tab_icon_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_tab_icon_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TabBar.efl_ui_tab_bar_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TabBar.efl_ui_tab_bar_class_get(); - } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_tab_bar_current_tab_get_static_delegate == null) + { + efl_ui_tab_bar_current_tab_get_static_delegate = new efl_ui_tab_bar_current_tab_get_delegate(current_tab_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCurrentTab") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_bar_current_tab_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_current_tab_get_static_delegate) }); + } - private delegate int efl_ui_tab_bar_current_tab_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_tab_bar_current_tab_set_static_delegate == null) + { + efl_ui_tab_bar_current_tab_set_static_delegate = new efl_ui_tab_bar_current_tab_set_delegate(current_tab_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCurrentTab") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_bar_current_tab_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_current_tab_set_static_delegate) }); + } - public delegate int efl_ui_tab_bar_current_tab_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_current_tab_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tab_bar_current_tab_get"); - private static int current_tab_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_tab_bar_current_tab_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((TabBar)wrapper).GetCurrentTab(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_tab_bar_tab_count_static_delegate == null) + { + efl_ui_tab_bar_tab_count_static_delegate = new efl_ui_tab_bar_tab_count_delegate(tab_count); } - return _ret_var; - } else { - return efl_ui_tab_bar_current_tab_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (methods.FirstOrDefault(m => m.Name == "TabCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_bar_tab_count"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_tab_count_static_delegate) }); + } + + if (efl_ui_tab_bar_tab_add_static_delegate == null) + { + efl_ui_tab_bar_tab_add_static_delegate = new efl_ui_tab_bar_tab_add_delegate(tab_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddTab") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_bar_tab_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_tab_add_static_delegate) }); + } + + if (efl_ui_tab_bar_tab_remove_static_delegate == null) + { + efl_ui_tab_bar_tab_remove_static_delegate = new efl_ui_tab_bar_tab_remove_delegate(tab_remove); + } + + if (methods.FirstOrDefault(m => m.Name == "TabRemove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_bar_tab_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_tab_remove_static_delegate) }); + } + + if (efl_ui_tab_bar_tab_label_set_static_delegate == null) + { + efl_ui_tab_bar_tab_label_set_static_delegate = new efl_ui_tab_bar_tab_label_set_delegate(tab_label_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTabLabel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_bar_tab_label_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_tab_label_set_static_delegate) }); + } + + if (efl_ui_tab_bar_tab_icon_set_static_delegate == null) + { + efl_ui_tab_bar_tab_icon_set_static_delegate = new efl_ui_tab_bar_tab_icon_set_delegate(tab_icon_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTabIcon") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_bar_tab_icon_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_bar_tab_icon_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TabBar.efl_ui_tab_bar_class_get(); } - } - private static efl_ui_tab_bar_current_tab_get_delegate efl_ui_tab_bar_current_tab_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_tab_bar_current_tab_set_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + private delegate int efl_ui_tab_bar_current_tab_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_ui_tab_bar_current_tab_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_tab_bar_current_tab_set_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_current_tab_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tab_bar_current_tab_set"); - private static void current_tab_set(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_ui_tab_bar_current_tab_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((TabBar)wrapper).SetCurrentTab( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_tab_bar_current_tab_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_current_tab_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tab_bar_current_tab_get"); + + private static int current_tab_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_tab_bar_current_tab_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((TabBar)wrapper).GetCurrentTab(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_tab_bar_current_tab_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_tab_bar_current_tab_set_delegate efl_ui_tab_bar_current_tab_set_static_delegate; + private static efl_ui_tab_bar_current_tab_get_delegate efl_ui_tab_bar_current_tab_get_static_delegate; - private delegate uint efl_ui_tab_bar_tab_count_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_tab_bar_current_tab_set_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + public delegate void efl_ui_tab_bar_current_tab_set_api_delegate(System.IntPtr obj, int index); - public delegate uint efl_ui_tab_bar_tab_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_tab_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tab_bar_tab_count"); - private static uint tab_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_tab_bar_tab_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((TabBar)wrapper).TabCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_current_tab_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tab_bar_current_tab_set"); + + private static void current_tab_set(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_ui_tab_bar_current_tab_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((TabBar)wrapper).SetCurrentTab(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_ui_tab_bar_current_tab_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + + private static efl_ui_tab_bar_current_tab_set_delegate efl_ui_tab_bar_current_tab_set_static_delegate; + + + private delegate uint efl_ui_tab_bar_tab_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate uint efl_ui_tab_bar_tab_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_tab_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tab_bar_tab_count"); + + private static uint tab_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_tab_bar_tab_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((TabBar)wrapper).TabCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_tab_bar_tab_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_tab_bar_tab_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_tab_bar_tab_count_delegate efl_ui_tab_bar_tab_count_static_delegate; + private static efl_ui_tab_bar_tab_count_delegate efl_ui_tab_bar_tab_count_static_delegate; - private delegate void efl_ui_tab_bar_tab_add_delegate(System.IntPtr obj, System.IntPtr pd, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon); + + private delegate void efl_ui_tab_bar_tab_add_delegate(System.IntPtr obj, System.IntPtr pd, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon); + + public delegate void efl_ui_tab_bar_tab_add_api_delegate(System.IntPtr obj, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon); - public delegate void efl_ui_tab_bar_tab_add_api_delegate(System.IntPtr obj, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon); - public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_tab_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tab_bar_tab_add"); - private static void tab_add(System.IntPtr obj, System.IntPtr pd, int index, System.String label, System.String icon) - { - Eina.Log.Debug("function efl_ui_tab_bar_tab_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((TabBar)wrapper).AddTab( index, label, icon); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_tab_bar_tab_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index, label, icon); + public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_tab_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tab_bar_tab_add"); + + private static void tab_add(System.IntPtr obj, System.IntPtr pd, int index, System.String label, System.String icon) + { + Eina.Log.Debug("function efl_ui_tab_bar_tab_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((TabBar)wrapper).AddTab(index, label, icon); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_tab_bar_tab_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index, label, icon); + } } - } - private static efl_ui_tab_bar_tab_add_delegate efl_ui_tab_bar_tab_add_static_delegate; + private static efl_ui_tab_bar_tab_add_delegate efl_ui_tab_bar_tab_add_static_delegate; - private delegate void efl_ui_tab_bar_tab_remove_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + private delegate void efl_ui_tab_bar_tab_remove_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + public delegate void efl_ui_tab_bar_tab_remove_api_delegate(System.IntPtr obj, int index); - public delegate void efl_ui_tab_bar_tab_remove_api_delegate(System.IntPtr obj, int index); - public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_tab_remove_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tab_bar_tab_remove"); - private static void tab_remove(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_ui_tab_bar_tab_remove was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((TabBar)wrapper).TabRemove( index); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_tab_bar_tab_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_tab_remove_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tab_bar_tab_remove"); + + private static void tab_remove(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_ui_tab_bar_tab_remove was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((TabBar)wrapper).TabRemove(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_tab_bar_tab_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } } - } - private static efl_ui_tab_bar_tab_remove_delegate efl_ui_tab_bar_tab_remove_static_delegate; + private static efl_ui_tab_bar_tab_remove_delegate efl_ui_tab_bar_tab_remove_static_delegate; - private delegate void efl_ui_tab_bar_tab_label_set_delegate(System.IntPtr obj, System.IntPtr pd, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label); + + private delegate void efl_ui_tab_bar_tab_label_set_delegate(System.IntPtr obj, System.IntPtr pd, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label); + + public delegate void efl_ui_tab_bar_tab_label_set_api_delegate(System.IntPtr obj, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label); - public delegate void efl_ui_tab_bar_tab_label_set_api_delegate(System.IntPtr obj, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label); - public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_tab_label_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tab_bar_tab_label_set"); - private static void tab_label_set(System.IntPtr obj, System.IntPtr pd, int index, System.String label) - { - Eina.Log.Debug("function efl_ui_tab_bar_tab_label_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((TabBar)wrapper).SetTabLabel( index, label); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_tab_bar_tab_label_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index, label); + public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_tab_label_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tab_bar_tab_label_set"); + + private static void tab_label_set(System.IntPtr obj, System.IntPtr pd, int index, System.String label) + { + Eina.Log.Debug("function efl_ui_tab_bar_tab_label_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((TabBar)wrapper).SetTabLabel(index, label); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_tab_bar_tab_label_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index, label); + } } - } - private static efl_ui_tab_bar_tab_label_set_delegate efl_ui_tab_bar_tab_label_set_static_delegate; + private static efl_ui_tab_bar_tab_label_set_delegate efl_ui_tab_bar_tab_label_set_static_delegate; - private delegate void efl_ui_tab_bar_tab_icon_set_delegate(System.IntPtr obj, System.IntPtr pd, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon); + + private delegate void efl_ui_tab_bar_tab_icon_set_delegate(System.IntPtr obj, System.IntPtr pd, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon); + + public delegate void efl_ui_tab_bar_tab_icon_set_api_delegate(System.IntPtr obj, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon); - public delegate void efl_ui_tab_bar_tab_icon_set_api_delegate(System.IntPtr obj, int index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon); - public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_tab_icon_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tab_bar_tab_icon_set"); - private static void tab_icon_set(System.IntPtr obj, System.IntPtr pd, int index, System.String icon) - { - Eina.Log.Debug("function efl_ui_tab_bar_tab_icon_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((TabBar)wrapper).SetTabIcon( index, icon); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_tab_bar_tab_icon_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index, icon); + public static Efl.Eo.FunctionWrapper efl_ui_tab_bar_tab_icon_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tab_bar_tab_icon_set"); + + private static void tab_icon_set(System.IntPtr obj, System.IntPtr pd, int index, System.String icon) + { + Eina.Log.Debug("function efl_ui_tab_bar_tab_icon_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((TabBar)wrapper).SetTabIcon(index, icon); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_tab_bar_tab_icon_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index, icon); + } } - } - private static efl_ui_tab_bar_tab_icon_set_delegate efl_ui_tab_bar_tab_icon_set_static_delegate; + + private static efl_ui_tab_bar_tab_icon_set_delegate efl_ui_tab_bar_tab_icon_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page.eo.cs index cc19843..707b5ab 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page.eo.cs @@ -3,315 +3,435 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + ///Event argument wrapper for event . public class TabPageTabChangedEvt_Args : EventArgs { ///Actual event payload. public Efl.Ui.TabPageTabChangedEvent arg { get; set; } } /// Tab Page class -[TabPageNativeInherit] +[Efl.Ui.TabPage.NativeMethods] public class TabPage : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IContent { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TabPage)) - return Efl.Ui.TabPageNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TabPage)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_tab_page_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public TabPage(Efl.Object parent - , System.String style = null) : - base(efl_ui_tab_page_class_get(), typeof(TabPage), parent) + , System.String style = null) : base(efl_ui_tab_page_class_get(), typeof(TabPage), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TabPage(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TabPage(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TabPage(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object TabChangedEvtKey = new object(); + /// Called when tab changed public event EventHandler TabChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TabPageTabChangedEvt_Args args = new Efl.Ui.TabPageTabChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TAB_PAGE_EVENT_TAB_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_TabChangedEvt_delegate)) { - eventHandlers.AddHandler(TabChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TAB_PAGE_EVENT_TAB_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_TabChangedEvt_delegate)) { - eventHandlers.RemoveHandler(TabChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event TabChangedEvt. - public void On_TabChangedEvt(Efl.Ui.TabPageTabChangedEvt_Args e) + public void OnTabChangedEvt(Efl.Ui.TabPageTabChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[TabChangedEvtKey]; + var key = "_EFL_UI_TAB_PAGE_EVENT_TAB_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_TabChangedEvt_delegate; - private void on_TabChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TabPageTabChangedEvt_Args args = new Efl.Ui.TabPageTabChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_TabChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ContentChangedEvtKey = new object(); /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_TabChangedEvt_delegate = new Efl.EventCb(on_TabChangedEvt_NativeCallback); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// - public Efl.Ui.TabPagePartTab Tab + public Efl.Ui.TabPagePartTab Tab { get { - return Efl.IPartNativeInherit.efl_part_get_ptr.Value.Delegate(NativeHandle, "tab") as Efl.Ui.TabPagePartTab; + return GetPart("tab") as Efl.Ui.TabPagePartTab; } } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.TabPage.efl_ui_tab_page_class_get(); } -} -public class TabPageNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TabPage.efl_ui_tab_page_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TabPage.efl_ui_tab_page_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((TabPage)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TabPage.efl_ui_tab_page_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((TabPage)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((TabPage)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((TabPage)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((TabPage)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((TabPage)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } -namespace Efl { namespace Ui { -/// + +} + +namespace Efl { + +namespace Ui { + public enum TabPageTabChanged { /// Label changed @@ -319,17 +439,23 @@ Label = 0, /// Icon changed Icon = 1, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Information of changed event [StructLayout(LayoutKind.Sequential)] public struct TabPageTabChangedEvent { - /// - public Efl.Ui.TabPageTabChanged Changed_info; + public Efl.Ui.TabPageTabChanged Changed_info; ///Constructor for TabPageTabChangedEvent. public TabPageTabChangedEvent( - Efl.Ui.TabPageTabChanged Changed_info=default(Efl.Ui.TabPageTabChanged) ) + Efl.Ui.TabPageTabChanged Changed_info = default(Efl.Ui.TabPageTabChanged) ) { this.Changed_info = Changed_info; } @@ -366,4 +492,7 @@ public struct TabPageTabChangedEvent } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page_part_tab.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page_part_tab.eo.cs index 57389ec..69dfc43 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page_part_tab.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page_part_tab.eo.cs @@ -3,73 +3,92 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Tab_Page internal part class -[TabPagePartTabNativeInherit] +[Efl.Ui.TabPagePartTab.NativeMethods] public class TabPagePartTab : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IText { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TabPagePartTab)) - return Efl.Ui.TabPagePartTabNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TabPagePartTab)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_tab_page_part_tab_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public TabPagePartTab(Efl.Object parent= null - ) : - base(efl_ui_tab_page_part_tab_class_get(), typeof(TabPagePartTab), parent) + ) : base(efl_ui_tab_page_part_tab_class_get(), typeof(TabPagePartTab), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TabPagePartTab(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TabPagePartTab(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TabPagePartTab(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } - /// - /// + virtual public System.String GetIcon() { - var _ret_var = Efl.Ui.TabPagePartTabNativeInherit.efl_ui_tab_page_part_tab_icon_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.TabPagePartTab.NativeMethods.efl_ui_tab_page_part_tab_icon_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// - /// - virtual public void SetIcon( System.String path) { - Efl.Ui.TabPagePartTabNativeInherit.efl_ui_tab_page_part_tab_icon_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), path); + virtual public void SetIcon(System.String path) { + Efl.Ui.TabPagePartTab.NativeMethods.efl_ui_tab_page_part_tab_icon_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),path); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the text string currently being displayed by the given text object. @@ -79,7 +98,7 @@ public class TabPagePartTab : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IText /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -87,152 +106,229 @@ public class TabPagePartTab : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IText /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } - /// -/// - public System.String Icon { + public System.String Icon { get { return GetIcon(); } - set { SetIcon( value); } + set { SetIcon(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.TabPagePartTab.efl_ui_tab_page_part_tab_class_get(); } -} -public class TabPagePartTabNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_tab_page_part_tab_icon_get_static_delegate == null) - efl_ui_tab_page_part_tab_icon_get_static_delegate = new efl_ui_tab_page_part_tab_icon_get_delegate(icon_get); - if (methods.FirstOrDefault(m => m.Name == "GetIcon") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tab_page_part_tab_icon_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_page_part_tab_icon_get_static_delegate)}); - if (efl_ui_tab_page_part_tab_icon_set_static_delegate == null) - efl_ui_tab_page_part_tab_icon_set_static_delegate = new efl_ui_tab_page_part_tab_icon_set_delegate(icon_set); - if (methods.FirstOrDefault(m => m.Name == "SetIcon") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tab_page_part_tab_icon_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_page_part_tab_icon_set_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TabPagePartTab.efl_ui_tab_page_part_tab_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TabPagePartTab.efl_ui_tab_page_part_tab_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_tab_page_part_tab_icon_get_static_delegate == null) + { + efl_ui_tab_page_part_tab_icon_get_static_delegate = new efl_ui_tab_page_part_tab_icon_get_delegate(icon_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_tab_page_part_tab_icon_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetIcon") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_page_part_tab_icon_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_page_part_tab_icon_get_static_delegate) }); + } + if (efl_ui_tab_page_part_tab_icon_set_static_delegate == null) + { + efl_ui_tab_page_part_tab_icon_set_static_delegate = new efl_ui_tab_page_part_tab_icon_set_delegate(icon_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_tab_page_part_tab_icon_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_tab_page_part_tab_icon_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tab_page_part_tab_icon_get"); - private static System.String icon_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_tab_page_part_tab_icon_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((TabPagePartTab)wrapper).GetIcon(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetIcon") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_page_part_tab_icon_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_page_part_tab_icon_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_tab_page_part_tab_icon_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } + + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TabPagePartTab.efl_ui_tab_page_part_tab_class_get(); } - } - private static efl_ui_tab_page_part_tab_icon_get_delegate efl_ui_tab_page_part_tab_icon_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_tab_page_part_tab_icon_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String path); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_tab_page_part_tab_icon_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_tab_page_part_tab_icon_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_tab_page_part_tab_icon_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String path); - public static Efl.Eo.FunctionWrapper efl_ui_tab_page_part_tab_icon_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tab_page_part_tab_icon_set"); - private static void icon_set(System.IntPtr obj, System.IntPtr pd, System.String path) - { - Eina.Log.Debug("function efl_ui_tab_page_part_tab_icon_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((TabPagePartTab)wrapper).SetIcon( path); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_tab_page_part_tab_icon_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), path); + public static Efl.Eo.FunctionWrapper efl_ui_tab_page_part_tab_icon_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tab_page_part_tab_icon_get"); + + private static System.String icon_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_tab_page_part_tab_icon_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((TabPagePartTab)wrapper).GetIcon(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_tab_page_part_tab_icon_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_tab_page_part_tab_icon_set_delegate efl_ui_tab_page_part_tab_icon_set_static_delegate; + private static efl_ui_tab_page_part_tab_icon_get_delegate efl_ui_tab_page_part_tab_icon_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_tab_page_part_tab_icon_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String path); + + public delegate void efl_ui_tab_page_part_tab_icon_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String path); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((TabPagePartTab)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_tab_page_part_tab_icon_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tab_page_part_tab_icon_set"); + + private static void icon_set(System.IntPtr obj, System.IntPtr pd, System.String path) + { + Eina.Log.Debug("function efl_ui_tab_page_part_tab_icon_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((TabPagePartTab)wrapper).SetIcon(path); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_tab_page_part_tab_icon_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), path); } + } + + private static efl_ui_tab_page_part_tab_icon_set_delegate efl_ui_tab_page_part_tab_icon_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((TabPagePartTab)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((TabPagePartTab)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((TabPagePartTab)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + } } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + + private static efl_text_set_delegate efl_text_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_pager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_pager.eo.cs index f728884..102b88e 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_pager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_pager.eo.cs @@ -3,162 +3,228 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Tab Pager class -[TabPagerNativeInherit] +[Efl.Ui.TabPager.NativeMethods] public class TabPager : Efl.Ui.Pager, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TabPager)) - return Efl.Ui.TabPagerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TabPager)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_tab_pager_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public TabPager(Efl.Object parent - , System.String style = null) : - base(efl_ui_tab_pager_class_get(), typeof(TabPager), parent) + , System.String style = null) : base(efl_ui_tab_pager_class_get(), typeof(TabPager), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TabPager(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TabPager(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TabPager(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } - /// - /// + virtual public Efl.Canvas.Object GetTabBar() { - var _ret_var = Efl.Ui.TabPagerNativeInherit.efl_ui_tab_pager_tab_bar_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.TabPager.NativeMethods.efl_ui_tab_pager_tab_bar_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// - /// - /// - virtual public void SetTabBar( Efl.Canvas.Object tab_bar) { - Efl.Ui.TabPagerNativeInherit.efl_ui_tab_pager_tab_bar_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), tab_bar); + virtual public void SetTabBar(Efl.Canvas.Object tab_bar) { + Efl.Ui.TabPager.NativeMethods.efl_ui_tab_pager_tab_bar_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),tab_bar); Eina.Error.RaiseIfUnhandledException(); } - /// -/// - public Efl.Canvas.Object TabBar { + public Efl.Canvas.Object TabBar { get { return GetTabBar(); } - set { SetTabBar( value); } + set { SetTabBar(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.TabPager.efl_ui_tab_pager_class_get(); } -} -public class TabPagerNativeInherit : Efl.Ui.PagerNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_tab_pager_tab_bar_get_static_delegate == null) - efl_ui_tab_pager_tab_bar_get_static_delegate = new efl_ui_tab_pager_tab_bar_get_delegate(tab_bar_get); - if (methods.FirstOrDefault(m => m.Name == "GetTabBar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tab_pager_tab_bar_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_pager_tab_bar_get_static_delegate)}); - if (efl_ui_tab_pager_tab_bar_set_static_delegate == null) - efl_ui_tab_pager_tab_bar_set_static_delegate = new efl_ui_tab_pager_tab_bar_set_delegate(tab_bar_set); - if (methods.FirstOrDefault(m => m.Name == "SetTabBar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tab_pager_tab_bar_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_pager_tab_bar_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Pager.NativeMethods { - return Efl.Ui.TabPager.efl_ui_tab_pager_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TabPager.efl_ui_tab_pager_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_tab_pager_tab_bar_get_static_delegate == null) + { + efl_ui_tab_pager_tab_bar_get_static_delegate = new efl_ui_tab_pager_tab_bar_get_delegate(tab_bar_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_tab_pager_tab_bar_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetTabBar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_pager_tab_bar_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_pager_tab_bar_get_static_delegate) }); + } + if (efl_ui_tab_pager_tab_bar_set_static_delegate == null) + { + efl_ui_tab_pager_tab_bar_set_static_delegate = new efl_ui_tab_pager_tab_bar_set_delegate(tab_bar_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_tab_pager_tab_bar_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_tab_pager_tab_bar_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tab_pager_tab_bar_get"); - private static Efl.Canvas.Object tab_bar_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_tab_pager_tab_bar_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((TabPager)wrapper).GetTabBar(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetTabBar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tab_pager_tab_bar_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tab_pager_tab_bar_set_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TabPager.efl_ui_tab_pager_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_tab_pager_tab_bar_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_tab_pager_tab_bar_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_tab_pager_tab_bar_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tab_pager_tab_bar_get"); + + private static Efl.Canvas.Object tab_bar_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_tab_pager_tab_bar_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((TabPager)wrapper).GetTabBar(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_tab_pager_tab_bar_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_tab_pager_tab_bar_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_tab_pager_tab_bar_get_delegate efl_ui_tab_pager_tab_bar_get_static_delegate; + private static efl_ui_tab_pager_tab_bar_get_delegate efl_ui_tab_pager_tab_bar_get_static_delegate; - private delegate void efl_ui_tab_pager_tab_bar_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object tab_bar); + + private delegate void efl_ui_tab_pager_tab_bar_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object tab_bar); + + public delegate void efl_ui_tab_pager_tab_bar_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object tab_bar); - public delegate void efl_ui_tab_pager_tab_bar_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object tab_bar); - public static Efl.Eo.FunctionWrapper efl_ui_tab_pager_tab_bar_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tab_pager_tab_bar_set"); - private static void tab_bar_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object tab_bar) - { - Eina.Log.Debug("function efl_ui_tab_pager_tab_bar_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((TabPager)wrapper).SetTabBar( tab_bar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_tab_pager_tab_bar_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tab_pager_tab_bar_set"); + + private static void tab_bar_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object tab_bar) + { + Eina.Log.Debug("function efl_ui_tab_pager_tab_bar_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((TabPager)wrapper).SetTabBar(tab_bar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_tab_pager_tab_bar_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), tab_bar); } - } else { - efl_ui_tab_pager_tab_bar_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), tab_bar); } - } - private static efl_ui_tab_pager_tab_bar_set_delegate efl_ui_tab_pager_tab_bar_set_static_delegate; + + private static efl_ui_tab_pager_tab_bar_set_delegate efl_ui_tab_pager_tab_bar_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_table.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_table.eo.cs index 1a1bec5..9217813 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_table.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_table.eo.cs @@ -3,226 +3,277 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI table class -[TableNativeInherit] +[Efl.Ui.Table.NativeMethods] public class Table : Efl.Ui.Widget, Efl.Eo.IWrapper,Efl.IContainer,Efl.IPack,Efl.IPackLayout,Efl.IPackTable,Efl.Ui.IDirection { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Table)) - return Efl.Ui.TableNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Table)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_table_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Table(Efl.Object parent - , System.String style = null) : - base(efl_ui_table_class_get(), typeof(Table), parent) + , System.String style = null) : base(efl_ui_table_class_get(), typeof(Table), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Table(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Table(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Table(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentAddedEvtKey = new object(); + /// Sent after a new item was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.AddHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ContentAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. - public void On_ContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) + public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentAddedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentAddedEvt_delegate; - private void on_ContentAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentAddedEvt_Args args = new Efl.IContainerContentAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ContentRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after an item was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.AddHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_ContentRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. - public void On_ContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) + public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentRemovedEvtKey]; + var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentRemovedEvt_delegate; - private void on_ContentRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.IContainerContentRemovedEvt_Args args = new Efl.IContainerContentRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object LayoutUpdatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Sent after the layout was updated. public event EventHandler LayoutUpdatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.AddHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - if (RemoveNativeEventHandler(key, this.evt_LayoutUpdatedEvt_delegate)) { - eventHandlers.RemoveHandler(LayoutUpdatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LayoutUpdatedEvt. - public void On_LayoutUpdatedEvt(EventArgs e) + public void OnLayoutUpdatedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LayoutUpdatedEvtKey]; + var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LayoutUpdatedEvt_delegate; - private void on_LayoutUpdatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_LayoutUpdatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentAddedEvt_delegate = new Efl.EventCb(on_ContentAddedEvt_NativeCallback); - evt_ContentRemovedEvt_delegate = new Efl.EventCb(on_ContentRemovedEvt_NativeCallback); - evt_LayoutUpdatedEvt_delegate = new Efl.EventCb(on_LayoutUpdatedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Control homogeneous mode. /// This will enable the homogeneous mode where cells are of the same weight and of the same min size which is determined by maximum min size of cells. /// true if the box is homogeneous horizontally, false otherwise /// true if the box is homogeneous vertically, false otherwise - /// - virtual public void GetHomogeneous( out bool homogeneoush, out bool homogeneousv) { - Efl.Ui.TableNativeInherit.efl_ui_table_homogeneous_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out homogeneoush, out homogeneousv); + virtual public void GetHomogeneous(out bool homogeneoush, out bool homogeneousv) { + Efl.Ui.Table.NativeMethods.efl_ui_table_homogeneous_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out homogeneoush, out homogeneousv); Eina.Error.RaiseIfUnhandledException(); } /// Control homogeneous mode. /// This will enable the homogeneous mode where cells are of the same weight and of the same min size which is determined by maximum min size of cells. /// true if the box is homogeneous horizontally, false otherwise /// true if the box is homogeneous vertically, false otherwise - /// - virtual public void SetHomogeneous( bool homogeneoush, bool homogeneousv) { - Efl.Ui.TableNativeInherit.efl_ui_table_homogeneous_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), homogeneoush, homogeneousv); + virtual public void SetHomogeneous(bool homogeneoush, bool homogeneousv) { + Efl.Ui.Table.NativeMethods.efl_ui_table_homogeneous_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),homogeneoush, homogeneousv); Eina.Error.RaiseIfUnhandledException(); } /// Begin iterating over this object's contents. /// (Since EFL 1.22) /// Iterator to object content virtual public Eina.Iterator ContentIterate() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -230,48 +281,44 @@ private static object LayoutUpdatedEvtKey = new object(); /// (Since EFL 1.22) /// Number of packed UI elements virtual public int ContentCount() { - var _ret_var = Efl.IContainerNativeInherit.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContainerConcrete.NativeMethods.efl_content_count_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void GetPackAlign( out double align_horiz, out double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out align_horiz, out align_vert); + virtual public void GetPackAlign(out double align_horiz, out double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment - /// - virtual public void SetPackAlign( double align_horiz, double align_vert) { - Efl.IPackNativeInherit.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), align_horiz, align_vert); + virtual public void SetPackAlign(double align_horiz, double align_vert) { + Efl.IPackConcrete.NativeMethods.efl_pack_align_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),align_horiz, align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void GetPackPadding( out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out pad_horiz, out pad_vert, out scalable); + virtual public void GetPackPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out pad_horiz, out pad_vert, out scalable); Eina.Error.RaiseIfUnhandledException(); } /// Padding between items contained in this object. /// Horizontal padding /// Vertical padding /// true if scalable, false otherwise - /// - virtual public void SetPackPadding( double pad_horiz, double pad_vert, bool scalable) { - Efl.IPackNativeInherit.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), pad_horiz, pad_vert, scalable); + virtual public void SetPackPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.IPackConcrete.NativeMethods.efl_pack_padding_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// Removes all packed contents, and unreferences them. /// true on success, false otherwise virtual public bool ClearPack() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -279,15 +326,15 @@ private static object LayoutUpdatedEvtKey = new object(); /// Use with caution. /// true on success, false otherwise virtual public bool UnpackAll() { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Removes an existing item from the container, without deleting it. /// The unpacked object. /// false if subobj wasn't a child or can't be removed - virtual public bool Unpack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -297,25 +344,23 @@ private static object LayoutUpdatedEvtKey = new object(); /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. /// An object to pack. /// false if subobj could not be packed. - virtual public bool DoPack( Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackNativeInherit.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj); + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Requests EFL to call the method on this object. /// This may be called asynchronously. - /// virtual public void LayoutRequest() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_request_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Implementation of this container's layout algorithm. /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas. /// /// This can be overriden to implement custom layout behaviors. - /// virtual public void UpdateLayout() { - Efl.IPackLayoutNativeInherit.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Position and span of the subobj in this container, may be modified to move the subobj @@ -325,71 +370,65 @@ private static object LayoutUpdatedEvtKey = new object(); /// Column span /// Row span /// Returns false if item is not a child - virtual public bool GetTablePosition( Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, out col, out row, out colspan, out rowspan); + virtual public bool GetTablePosition(Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, out col, out row, out colspan, out rowspan); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Combines and /// Number of columns /// Number of rows - /// - virtual public void GetTableSize( out int cols, out int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out cols, out rows); + virtual public void GetTableSize(out int cols, out int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out cols, out rows); Eina.Error.RaiseIfUnhandledException(); } /// Combines and /// Number of columns /// Number of rows - /// - virtual public void SetTableSize( int cols, int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cols, rows); + virtual public void SetTableSize(int cols, int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cols, rows); Eina.Error.RaiseIfUnhandledException(); } /// Gird columns property /// Number of columns virtual public int GetTableColumns() { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_columns_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_columns_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies limit for linear adds - if direction is horizontal /// Number of columns - /// - virtual public void SetTableColumns( int cols) { - Efl.IPackTableNativeInherit.efl_pack_table_columns_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cols); + virtual public void SetTableColumns(int cols) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_columns_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cols); Eina.Error.RaiseIfUnhandledException(); } /// Table rows property /// Number of rows virtual public int GetTableRows() { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_rows_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_rows_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specifies limit for linear adds - if direction is vertical /// Number of rows - /// - virtual public void SetTableRows( int rows) { - Efl.IPackTableNativeInherit.efl_pack_table_rows_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), rows); + virtual public void SetTableRows(int rows) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_rows_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),rows); Eina.Error.RaiseIfUnhandledException(); } /// Primary and secondary up/left/right/down directions for linear apis. /// Default is horizontal and vertical. This overrides . /// Primary direction /// Secondary direction - /// - virtual public void GetTableDirection( out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) { - Efl.IPackTableNativeInherit.efl_pack_table_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out primary, out secondary); + virtual public void GetTableDirection(out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out primary, out secondary); Eina.Error.RaiseIfUnhandledException(); } /// Primary and secondary up/left/right/down directions for linear apis. /// Default is horizontal and vertical. This overrides . /// Primary direction /// Secondary direction - /// - virtual public void SetTableDirection( Efl.Ui.Dir primary, Efl.Ui.Dir secondary) { - Efl.IPackTableNativeInherit.efl_pack_table_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), primary, secondary); + virtual public void SetTableDirection(Efl.Ui.Dir primary, Efl.Ui.Dir secondary) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),primary, secondary); Eina.Error.RaiseIfUnhandledException(); } /// Pack object at a given location in the table. @@ -400,8 +439,8 @@ private static object LayoutUpdatedEvtKey = new object(); /// 0 means 1, -1 means /// 0 means 1, -1 means /// true on success, false otherwise - virtual public bool PackTable( Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), subobj, col, row, colspan, rowspan); + virtual public bool PackTable(Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),subobj, col, row, colspan, rowspan); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -410,8 +449,8 @@ private static object LayoutUpdatedEvtKey = new object(); /// Row number /// If true get objects spanning over this cell. /// Iterator to table contents - virtual public Eina.Iterator GetTableContents( int col, int row, bool below) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_contents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), col, row, below); + virtual public Eina.Iterator GetTableContents(int col, int row, bool below) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_contents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),col, row, below); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -419,8 +458,8 @@ private static object LayoutUpdatedEvtKey = new object(); /// Column number /// Row number /// Child object - virtual public Efl.Gfx.IEntity GetTableContent( int col, int row) { - var _ret_var = Efl.IPackTableNativeInherit.efl_pack_table_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), col, row); + virtual public Efl.Gfx.IEntity GetTableContent(int col, int row) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),col, row); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -430,7 +469,7 @@ private static object LayoutUpdatedEvtKey = new object(); /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. virtual public Efl.Ui.Dir GetDirection() { - var _ret_var = Efl.Ui.IDirectionNativeInherit.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -439,22 +478,21 @@ private static object LayoutUpdatedEvtKey = new object(); /// /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. - /// - virtual public void SetDirection( Efl.Ui.Dir dir) { - Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void SetDirection(Efl.Ui.Dir dir) { + Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// Gird columns property /// Number of columns public int TableColumns { get { return GetTableColumns(); } - set { SetTableColumns( value); } + set { SetTableColumns(value); } } /// Table rows property /// Number of rows public int TableRows { get { return GetTableRows(); } - set { SetTableRows( value); } + set { SetTableRows(value); } } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. @@ -463,826 +501,1314 @@ private static object LayoutUpdatedEvtKey = new object(); /// Direction of the widget. public Efl.Ui.Dir Direction { get { return GetDirection(); } - set { SetDirection( value); } + set { SetDirection(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Table.efl_ui_table_class_get(); } -} -public class TableNativeInherit : Efl.Ui.WidgetNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Widget.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_table_homogeneous_get_static_delegate == null) - efl_ui_table_homogeneous_get_static_delegate = new efl_ui_table_homogeneous_get_delegate(homogeneous_get); - if (methods.FirstOrDefault(m => m.Name == "GetHomogeneous") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_table_homogeneous_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_table_homogeneous_get_static_delegate)}); - if (efl_ui_table_homogeneous_set_static_delegate == null) - efl_ui_table_homogeneous_set_static_delegate = new efl_ui_table_homogeneous_set_delegate(homogeneous_set); - if (methods.FirstOrDefault(m => m.Name == "SetHomogeneous") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_table_homogeneous_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_table_homogeneous_set_static_delegate)}); - if (efl_content_iterate_static_delegate == null) - efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); - if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate)}); - if (efl_content_count_static_delegate == null) - efl_content_count_static_delegate = new efl_content_count_delegate(content_count); - if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate)}); - if (efl_pack_align_get_static_delegate == null) - efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate)}); - if (efl_pack_align_set_static_delegate == null) - efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate)}); - if (efl_pack_padding_get_static_delegate == null) - efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate)}); - if (efl_pack_padding_set_static_delegate == null) - efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); - if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate)}); - if (efl_pack_clear_static_delegate == null) - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate)}); - if (efl_pack_unpack_all_static_delegate == null) - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate)}); - if (efl_pack_unpack_static_delegate == null) - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate)}); - if (efl_pack_static_delegate == null) - efl_pack_static_delegate = new efl_pack_delegate(pack); - if (methods.FirstOrDefault(m => m.Name == "DoPack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate)}); - if (efl_pack_layout_request_static_delegate == null) - efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); - if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate)}); - if (efl_pack_layout_update_static_delegate == null) - efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate)}); - if (efl_pack_table_position_get_static_delegate == null) - efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate)}); - if (efl_pack_table_size_get_static_delegate == null) - efl_pack_table_size_get_static_delegate = new efl_pack_table_size_get_delegate(table_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_get_static_delegate)}); - if (efl_pack_table_size_set_static_delegate == null) - efl_pack_table_size_set_static_delegate = new efl_pack_table_size_set_delegate(table_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_set_static_delegate)}); - if (efl_pack_table_columns_get_static_delegate == null) - efl_pack_table_columns_get_static_delegate = new efl_pack_table_columns_get_delegate(table_columns_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableColumns") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_columns_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_get_static_delegate)}); - if (efl_pack_table_columns_set_static_delegate == null) - efl_pack_table_columns_set_static_delegate = new efl_pack_table_columns_set_delegate(table_columns_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableColumns") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_columns_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_set_static_delegate)}); - if (efl_pack_table_rows_get_static_delegate == null) - efl_pack_table_rows_get_static_delegate = new efl_pack_table_rows_get_delegate(table_rows_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableRows") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_rows_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_get_static_delegate)}); - if (efl_pack_table_rows_set_static_delegate == null) - efl_pack_table_rows_set_static_delegate = new efl_pack_table_rows_set_delegate(table_rows_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableRows") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_rows_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_set_static_delegate)}); - if (efl_pack_table_direction_get_static_delegate == null) - efl_pack_table_direction_get_static_delegate = new efl_pack_table_direction_get_delegate(table_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_get_static_delegate)}); - if (efl_pack_table_direction_set_static_delegate == null) - efl_pack_table_direction_set_static_delegate = new efl_pack_table_direction_set_delegate(table_direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetTableDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_set_static_delegate)}); - if (efl_pack_table_static_delegate == null) - efl_pack_table_static_delegate = new efl_pack_table_delegate(pack_table); - if (methods.FirstOrDefault(m => m.Name == "PackTable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_static_delegate)}); - if (efl_pack_table_contents_get_static_delegate == null) - efl_pack_table_contents_get_static_delegate = new efl_pack_table_contents_get_delegate(table_contents_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableContents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_contents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_contents_get_static_delegate)}); - if (efl_pack_table_content_get_static_delegate == null) - efl_pack_table_content_get_static_delegate = new efl_pack_table_content_get_delegate(table_content_get); - if (methods.FirstOrDefault(m => m.Name == "GetTableContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_pack_table_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_content_get_static_delegate)}); - if (efl_ui_direction_get_static_delegate == null) - efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate)}); - if (efl_ui_direction_set_static_delegate == null) - efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Table.efl_ui_table_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Table.efl_ui_table_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_table_homogeneous_get_static_delegate == null) + { + efl_ui_table_homogeneous_get_static_delegate = new efl_ui_table_homogeneous_get_delegate(homogeneous_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetHomogeneous") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_table_homogeneous_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_table_homogeneous_get_static_delegate) }); + } - private delegate void efl_ui_table_homogeneous_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool homogeneoush, [MarshalAs(UnmanagedType.U1)] out bool homogeneousv); + if (efl_ui_table_homogeneous_set_static_delegate == null) + { + efl_ui_table_homogeneous_set_static_delegate = new efl_ui_table_homogeneous_set_delegate(homogeneous_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetHomogeneous") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_table_homogeneous_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_table_homogeneous_set_static_delegate) }); + } - public delegate void efl_ui_table_homogeneous_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool homogeneoush, [MarshalAs(UnmanagedType.U1)] out bool homogeneousv); - public static Efl.Eo.FunctionWrapper efl_ui_table_homogeneous_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_table_homogeneous_get"); - private static void homogeneous_get(System.IntPtr obj, System.IntPtr pd, out bool homogeneoush, out bool homogeneousv) - { - Eina.Log.Debug("function efl_ui_table_homogeneous_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - homogeneoush = default(bool); homogeneousv = default(bool); - try { - ((Table)wrapper).GetHomogeneous( out homogeneoush, out homogeneousv); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_table_homogeneous_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out homogeneoush, out homogeneousv); - } - } - private static efl_ui_table_homogeneous_get_delegate efl_ui_table_homogeneous_get_static_delegate; + if (efl_content_iterate_static_delegate == null) + { + efl_content_iterate_static_delegate = new efl_content_iterate_delegate(content_iterate); + } + if (methods.FirstOrDefault(m => m.Name == "ContentIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_content_iterate_static_delegate) }); + } - private delegate void efl_ui_table_homogeneous_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool homogeneoush, [MarshalAs(UnmanagedType.U1)] bool homogeneousv); + if (efl_content_count_static_delegate == null) + { + efl_content_count_static_delegate = new efl_content_count_delegate(content_count); + } + if (methods.FirstOrDefault(m => m.Name == "ContentCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_count"), func = Marshal.GetFunctionPointerForDelegate(efl_content_count_static_delegate) }); + } - public delegate void efl_ui_table_homogeneous_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool homogeneoush, [MarshalAs(UnmanagedType.U1)] bool homogeneousv); - public static Efl.Eo.FunctionWrapper efl_ui_table_homogeneous_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_table_homogeneous_set"); - private static void homogeneous_set(System.IntPtr obj, System.IntPtr pd, bool homogeneoush, bool homogeneousv) - { - Eina.Log.Debug("function efl_ui_table_homogeneous_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Table)wrapper).SetHomogeneous( homogeneoush, homogeneousv); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_table_homogeneous_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), homogeneoush, homogeneousv); - } - } - private static efl_ui_table_homogeneous_set_delegate efl_ui_table_homogeneous_set_static_delegate; + if (efl_pack_align_get_static_delegate == null) + { + efl_pack_align_get_static_delegate = new efl_pack_align_get_delegate(pack_align_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_get_static_delegate) }); + } - private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_align_set_static_delegate == null) + { + efl_pack_align_set_static_delegate = new efl_pack_align_set_delegate(pack_align_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPackAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_align_set_static_delegate) }); + } - public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_iterate"); - private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Table)wrapper).ContentIterate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_padding_get_static_delegate == null) + { + efl_pack_padding_get_static_delegate = new efl_pack_padding_get_delegate(pack_padding_get); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_get_static_delegate) }); + } - private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_padding_set_static_delegate == null) + { + efl_pack_padding_set_static_delegate = new efl_pack_padding_set_delegate(pack_padding_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPackPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_padding_set_static_delegate) }); + } - public delegate int efl_content_count_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_count"); - private static int content_count(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_count was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Table)wrapper).ContentCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); } - return _ret_var; - } else { - return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_count_delegate efl_content_count_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } - private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); + } - public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_get"); - private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_pack_align_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - align_horiz = default(double); align_vert = default(double); - try { - ((Table)wrapper).GetPackAlign( out align_horiz, out align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } - private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); + } - public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_align_set"); - private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_pack_align_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Table)wrapper).SetPackAlign( align_horiz, align_vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); - } - } - private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + if (efl_pack_layout_request_static_delegate == null) + { + efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); + } + if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate) }); + } - private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + if (efl_pack_layout_update_static_delegate == null) + { + efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); + } + if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate) }); + } - public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_get"); - private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try { - ((Table)wrapper).GetPackPadding( out pad_horiz, out pad_vert, out scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); - } - } - private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + if (efl_pack_table_position_get_static_delegate == null) + { + efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate) }); + } - private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + if (efl_pack_table_size_get_static_delegate == null) + { + efl_pack_table_size_get_static_delegate = new efl_pack_table_size_get_delegate(table_size_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTableSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_get_static_delegate) }); + } - public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_padding_set"); - private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_pack_padding_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Table)wrapper).SetPackPadding( pad_horiz, pad_vert, scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); - } - } - private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + if (efl_pack_table_size_set_static_delegate == null) + { + efl_pack_table_size_set_static_delegate = new efl_pack_table_size_set_delegate(table_size_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetTableSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_size_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_table_columns_get_static_delegate == null) + { + efl_pack_table_columns_get_static_delegate = new efl_pack_table_columns_get_delegate(table_columns_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTableColumns") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_columns_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_clear"); - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Table)wrapper).ClearPack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_table_columns_set_static_delegate == null) + { + efl_pack_table_columns_set_static_delegate = new efl_pack_table_columns_set_delegate(table_columns_set); } - return _ret_var; - } else { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetTableColumns") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_columns_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_columns_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_table_rows_get_static_delegate == null) + { + efl_pack_table_rows_get_static_delegate = new efl_pack_table_rows_get_delegate(table_rows_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTableRows") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_rows_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack_all"); - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Table)wrapper).UnpackAll(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_table_rows_set_static_delegate == null) + { + efl_pack_table_rows_set_static_delegate = new efl_pack_table_rows_set_delegate(table_rows_set); } - return _ret_var; - } else { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetTableRows") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_rows_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_rows_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (efl_pack_table_direction_get_static_delegate == null) + { + efl_pack_table_direction_get_static_delegate = new efl_pack_table_direction_get_delegate(table_direction_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTableDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_unpack"); - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Table)wrapper).Unpack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_table_direction_set_static_delegate == null) + { + efl_pack_table_direction_set_static_delegate = new efl_pack_table_direction_set_delegate(table_direction_set); } - return _ret_var; - } else { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetTableDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_direction_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); + if (efl_pack_table_static_delegate == null) + { + efl_pack_table_static_delegate = new efl_pack_table_delegate(pack_table); + } + if (methods.FirstOrDefault(m => m.Name == "PackTable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj); - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack"); - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Table)wrapper).DoPack( subobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_pack_table_contents_get_static_delegate == null) + { + efl_pack_table_contents_get_static_delegate = new efl_pack_table_contents_get_delegate(table_contents_get); } - return _ret_var; - } else { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - private static efl_pack_delegate efl_pack_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetTableContents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_contents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_contents_get_static_delegate) }); + } - private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_pack_table_content_get_static_delegate == null) + { + efl_pack_table_content_get_static_delegate = new efl_pack_table_content_get_delegate(table_content_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTableContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_content_get_static_delegate) }); + } - public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_request"); - private static void layout_request(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_request was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Table)wrapper).LayoutRequest(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + if (efl_ui_direction_get_static_delegate == null) + { + efl_ui_direction_get_static_delegate = new efl_ui_direction_get_delegate(direction_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_get_static_delegate) }); + } - private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_direction_set_static_delegate == null) + { + efl_ui_direction_set_static_delegate = new efl_ui_direction_set_delegate(direction_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_direction_set_static_delegate) }); + } - public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_layout_update"); - private static void layout_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Table)wrapper).UpdateLayout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Table.efl_ui_table_class_get(); } - } - private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_ui_table_homogeneous_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool homogeneoush, [MarshalAs(UnmanagedType.U1)] out bool homogeneousv); + + + public delegate void efl_ui_table_homogeneous_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool homogeneoush, [MarshalAs(UnmanagedType.U1)] out bool homogeneousv); + + public static Efl.Eo.FunctionWrapper efl_ui_table_homogeneous_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_table_homogeneous_get"); + + private static void homogeneous_get(System.IntPtr obj, System.IntPtr pd, out bool homogeneoush, out bool homogeneousv) + { + Eina.Log.Debug("function efl_ui_table_homogeneous_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + homogeneoush = default(bool); homogeneousv = default(bool); + try + { + ((Table)wrapper).GetHomogeneous(out homogeneoush, out homogeneousv); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_table_homogeneous_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out homogeneoush, out homogeneousv); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + private static efl_ui_table_homogeneous_get_delegate efl_ui_table_homogeneous_get_static_delegate; + + + private delegate void efl_ui_table_homogeneous_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool homogeneoush, [MarshalAs(UnmanagedType.U1)] bool homogeneousv); + + + public delegate void efl_ui_table_homogeneous_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool homogeneoush, [MarshalAs(UnmanagedType.U1)] bool homogeneousv); + + public static Efl.Eo.FunctionWrapper efl_ui_table_homogeneous_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_table_homogeneous_set"); + + private static void homogeneous_set(System.IntPtr obj, System.IntPtr pd, bool homogeneoush, bool homogeneousv) + { + Eina.Log.Debug("function efl_ui_table_homogeneous_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Table)wrapper).SetHomogeneous(homogeneoush, homogeneousv); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_table_homogeneous_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), homogeneoush, homogeneousv); + } + } + private static efl_ui_table_homogeneous_set_delegate efl_ui_table_homogeneous_set_static_delegate; + + + private delegate System.IntPtr efl_content_iterate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_content_iterate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_iterate"); + + private static System.IntPtr content_iterate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Table)wrapper).ContentIterate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_position_get"); - private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) - { - Eina.Log.Debug("function efl_pack_table_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); - try { - _ret_var = ((Table)wrapper).GetTablePosition( subobj, out col, out row, out colspan, out rowspan); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); + else + { + return efl_content_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + private static efl_content_iterate_delegate efl_content_iterate_static_delegate; + + + private delegate int efl_content_count_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_content_count_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_count_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_count"); + + private static int content_count(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_count was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Table)wrapper).ContentCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); - + return _ret_var; - public delegate void efl_pack_table_size_get_api_delegate(System.IntPtr obj, out int cols, out int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_size_get"); - private static void table_size_get(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows) - { - Eina.Log.Debug("function efl_pack_table_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - cols = default(int); rows = default(int); - try { - ((Table)wrapper).GetTableSize( out cols, out rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cols, out rows); + } + else + { + return efl_content_count_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_size_get_delegate efl_pack_table_size_get_static_delegate; + private static efl_content_count_delegate efl_content_count_static_delegate; + + + private delegate void efl_pack_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); + + + public delegate void efl_pack_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_get"); + + private static void pack_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) + { + Eina.Log.Debug("function efl_pack_align_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + align_horiz = default(double); align_vert = default(double); + try + { + ((Table)wrapper).GetPackAlign(out align_horiz, out align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); + } + } - private delegate void efl_pack_table_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols, int rows); - + private static efl_pack_align_get_delegate efl_pack_align_get_static_delegate; + + + private delegate void efl_pack_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); + + + public delegate void efl_pack_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); + + public static Efl.Eo.FunctionWrapper efl_pack_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_align_set"); + + private static void pack_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) + { + Eina.Log.Debug("function efl_pack_align_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Table)wrapper).SetPackAlign(align_horiz, align_vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); + } + } - public delegate void efl_pack_table_size_set_api_delegate(System.IntPtr obj, int cols, int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_size_set"); - private static void table_size_set(System.IntPtr obj, System.IntPtr pd, int cols, int rows) - { - Eina.Log.Debug("function efl_pack_table_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Table)wrapper).SetTableSize( cols, rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols, rows); + private static efl_pack_align_set_delegate efl_pack_align_set_static_delegate; + + + private delegate void efl_pack_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + + public delegate void efl_pack_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_get"); + + private static void pack_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); + try + { + ((Table)wrapper).GetPackPadding(out pad_horiz, out pad_vert, out scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); + } } - } - private static efl_pack_table_size_set_delegate efl_pack_table_size_set_static_delegate; + private static efl_pack_padding_get_delegate efl_pack_padding_get_static_delegate; + + + private delegate void efl_pack_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + + public delegate void efl_pack_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); + + public static Efl.Eo.FunctionWrapper efl_pack_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_padding_set"); + + private static void pack_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) + { + Eina.Log.Debug("function efl_pack_padding_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Table)wrapper).SetPackPadding(pad_horiz, pad_vert, scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); + } + } - private delegate int efl_pack_table_columns_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_pack_padding_set_delegate efl_pack_padding_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Table)wrapper).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_pack_table_columns_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_table_columns_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_columns_get"); - private static int table_columns_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_table_columns_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Table)wrapper).GetTableColumns(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_table_columns_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_columns_get_delegate efl_pack_table_columns_get_static_delegate; - - private delegate void efl_pack_table_columns_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols); + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Table)wrapper).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_pack_table_columns_set_api_delegate(System.IntPtr obj, int cols); - public static Efl.Eo.FunctionWrapper efl_pack_table_columns_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_columns_set"); - private static void table_columns_set(System.IntPtr obj, System.IntPtr pd, int cols) - { - Eina.Log.Debug("function efl_pack_table_columns_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Table)wrapper).SetTableColumns( cols); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_columns_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols); + } + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_columns_set_delegate efl_pack_table_columns_set_static_delegate; + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Table)wrapper).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate int efl_pack_table_rows_get_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - public delegate int efl_pack_table_rows_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_pack_table_rows_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_rows_get"); - private static int table_rows_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_table_rows_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Table)wrapper).GetTableRows(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_table_rows_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } } - } - private static efl_pack_table_rows_get_delegate efl_pack_table_rows_get_static_delegate; + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Table)wrapper).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_pack_table_rows_set_delegate(System.IntPtr obj, System.IntPtr pd, int rows); + return _ret_var; + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } - public delegate void efl_pack_table_rows_set_api_delegate(System.IntPtr obj, int rows); - public static Efl.Eo.FunctionWrapper efl_pack_table_rows_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_rows_set"); - private static void table_rows_set(System.IntPtr obj, System.IntPtr pd, int rows) - { - Eina.Log.Debug("function efl_pack_table_rows_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Table)wrapper).SetTableRows( rows); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_rows_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rows); + private static efl_pack_delegate efl_pack_static_delegate; + + + private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_request"); + + private static void layout_request(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_request was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Table)wrapper).LayoutRequest(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_rows_set_delegate efl_pack_table_rows_set_static_delegate; + private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + + + private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_update"); + + private static void layout_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Table)wrapper).UpdateLayout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_pack_table_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_position_get"); + + private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) + { + Eina.Log.Debug("function efl_pack_table_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((Table)wrapper).GetTablePosition(subobj, out col, out row, out colspan, out rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_pack_table_direction_get_api_delegate(System.IntPtr obj, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); - public static Efl.Eo.FunctionWrapper efl_pack_table_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_direction_get"); - private static void table_direction_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) - { - Eina.Log.Debug("function efl_pack_table_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - primary = default(Efl.Ui.Dir); secondary = default(Efl.Ui.Dir); - try { - ((Table)wrapper).GetTableDirection( out primary, out secondary); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out primary, out secondary); + } + else + { + return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); + } + } + + private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + + + private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); + + + public delegate void efl_pack_table_size_get_api_delegate(System.IntPtr obj, out int cols, out int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_size_get"); + + private static void table_size_get(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows) + { + Eina.Log.Debug("function efl_pack_table_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + cols = default(int); rows = default(int); + try + { + ((Table)wrapper).GetTableSize(out cols, out rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cols, out rows); + } } - } - private static efl_pack_table_direction_get_delegate efl_pack_table_direction_get_static_delegate; + private static efl_pack_table_size_get_delegate efl_pack_table_size_get_static_delegate; + + + private delegate void efl_pack_table_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols, int rows); + + + public delegate void efl_pack_table_size_set_api_delegate(System.IntPtr obj, int cols, int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_size_set"); + + private static void table_size_set(System.IntPtr obj, System.IntPtr pd, int cols, int rows) + { + Eina.Log.Debug("function efl_pack_table_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Table)wrapper).SetTableSize(cols, rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols, rows); + } + } - private delegate void efl_pack_table_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + private static efl_pack_table_size_set_delegate efl_pack_table_size_set_static_delegate; + + + private delegate int efl_pack_table_columns_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_pack_table_columns_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_table_columns_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_columns_get"); + + private static int table_columns_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_table_columns_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Table)wrapper).GetTableColumns(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_pack_table_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); - public static Efl.Eo.FunctionWrapper efl_pack_table_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_direction_set"); - private static void table_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary) - { - Eina.Log.Debug("function efl_pack_table_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Table)wrapper).SetTableDirection( primary, secondary); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_pack_table_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), primary, secondary); + } + else + { + return efl_pack_table_columns_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_direction_set_delegate efl_pack_table_direction_set_static_delegate; + private static efl_pack_table_columns_get_delegate efl_pack_table_columns_get_static_delegate; + + + private delegate void efl_pack_table_columns_set_delegate(System.IntPtr obj, System.IntPtr pd, int cols); + + + public delegate void efl_pack_table_columns_set_api_delegate(System.IntPtr obj, int cols); + + public static Efl.Eo.FunctionWrapper efl_pack_table_columns_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_columns_set"); + + private static void table_columns_set(System.IntPtr obj, System.IntPtr pd, int cols) + { + Eina.Log.Debug("function efl_pack_table_columns_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Table)wrapper).SetTableColumns(cols); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_pack_table_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + + } + else + { + efl_pack_table_columns_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cols); + } + } + private static efl_pack_table_columns_set_delegate efl_pack_table_columns_set_static_delegate; + + + private delegate int efl_pack_table_rows_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_pack_table_rows_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_table_rows_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_rows_get"); + + private static int table_rows_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_table_rows_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Table)wrapper).GetTableRows(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_pack_table_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table"); - private static bool pack_table(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) - { - Eina.Log.Debug("function efl_pack_table was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Table)wrapper).PackTable( subobj, col, row, colspan, rowspan); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_pack_table_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, row, colspan, rowspan); + else + { + return efl_pack_table_rows_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_pack_table_delegate efl_pack_table_static_delegate; + private static efl_pack_table_rows_get_delegate efl_pack_table_rows_get_static_delegate; + + + private delegate void efl_pack_table_rows_set_delegate(System.IntPtr obj, System.IntPtr pd, int rows); + + + public delegate void efl_pack_table_rows_set_api_delegate(System.IntPtr obj, int rows); + + public static Efl.Eo.FunctionWrapper efl_pack_table_rows_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_rows_set"); + + private static void table_rows_set(System.IntPtr obj, System.IntPtr pd, int rows) + { + Eina.Log.Debug("function efl_pack_table_rows_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Table)wrapper).SetTableRows(rows); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate System.IntPtr efl_pack_table_contents_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); + + } + else + { + efl_pack_table_rows_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rows); + } + } + private static efl_pack_table_rows_set_delegate efl_pack_table_rows_set_static_delegate; + + + private delegate void efl_pack_table_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + + + public delegate void efl_pack_table_direction_get_api_delegate(System.IntPtr obj, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary); + + public static Efl.Eo.FunctionWrapper efl_pack_table_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_direction_get"); + + private static void table_direction_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.Dir primary, out Efl.Ui.Dir secondary) + { + Eina.Log.Debug("function efl_pack_table_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + primary = default(Efl.Ui.Dir); secondary = default(Efl.Ui.Dir); + try + { + ((Table)wrapper).GetTableDirection(out primary, out secondary); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out primary, out secondary); + } + } - public delegate System.IntPtr efl_pack_table_contents_get_api_delegate(System.IntPtr obj, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); - public static Efl.Eo.FunctionWrapper efl_pack_table_contents_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_contents_get"); - private static System.IntPtr table_contents_get(System.IntPtr obj, System.IntPtr pd, int col, int row, bool below) - { - Eina.Log.Debug("function efl_pack_table_contents_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Table)wrapper).GetTableContents( col, row, below); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_pack_table_direction_get_delegate efl_pack_table_direction_get_static_delegate; + + + private delegate void efl_pack_table_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + + + public delegate void efl_pack_table_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir primary, Efl.Ui.Dir secondary); + + public static Efl.Eo.FunctionWrapper efl_pack_table_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_direction_set"); + + private static void table_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir primary, Efl.Ui.Dir secondary) + { + Eina.Log.Debug("function efl_pack_table_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Table)wrapper).SetTableDirection(primary, secondary); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), primary, secondary); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_pack_table_contents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row, below); } - } - private static efl_pack_table_contents_get_delegate efl_pack_table_contents_get_static_delegate; + private static efl_pack_table_direction_set_delegate efl_pack_table_direction_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table"); + + private static bool pack_table(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int row, int colspan, int rowspan) + { + Eina.Log.Debug("function efl_pack_table was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Table)wrapper).PackTable(subobj, col, row, colspan, rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_pack_table_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row); + return _ret_var; + + } + else + { + return efl_pack_table_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, row, colspan, rowspan); + } + } + private static efl_pack_table_delegate efl_pack_table_static_delegate; + + + private delegate System.IntPtr efl_pack_table_contents_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); + + + public delegate System.IntPtr efl_pack_table_contents_get_api_delegate(System.IntPtr obj, int col, int row, [MarshalAs(UnmanagedType.U1)] bool below); + + public static Efl.Eo.FunctionWrapper efl_pack_table_contents_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_contents_get"); + + private static System.IntPtr table_contents_get(System.IntPtr obj, System.IntPtr pd, int col, int row, bool below) + { + Eina.Log.Debug("function efl_pack_table_contents_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Table)wrapper).GetTableContents(col, row, below); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_pack_table_content_get_api_delegate(System.IntPtr obj, int col, int row); - public static Efl.Eo.FunctionWrapper efl_pack_table_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_pack_table_content_get"); - private static Efl.Gfx.IEntity table_content_get(System.IntPtr obj, System.IntPtr pd, int col, int row) - { - Eina.Log.Debug("function efl_pack_table_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Table)wrapper).GetTableContent( col, row); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_pack_table_contents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row, below); + } + } + + private static efl_pack_table_contents_get_delegate efl_pack_table_contents_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_table_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int col, int row); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_table_content_get_api_delegate(System.IntPtr obj, int col, int row); + + public static Efl.Eo.FunctionWrapper efl_pack_table_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_content_get"); + + private static Efl.Gfx.IEntity table_content_get(System.IntPtr obj, System.IntPtr pd, int col, int row) + { + Eina.Log.Debug("function efl_pack_table_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Table)wrapper).GetTableContent(col, row); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_pack_table_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row); + + } + else + { + return efl_pack_table_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), col, row); + } } - } - private static efl_pack_table_content_get_delegate efl_pack_table_content_get_static_delegate; + private static efl_pack_table_content_get_delegate efl_pack_table_content_get_static_delegate; + + + private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_get"); + + private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); + try + { + _ret_var = ((Table)wrapper).GetDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.Ui.Dir efl_ui_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + + } + else + { + return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + + + private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + + + public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); + + public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_direction_set"); + + private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) + { + Eina.Log.Debug("function efl_ui_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Table)wrapper).SetDirection(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Ui.Dir efl_ui_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_get"); - private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); - try { - _ret_var = ((Table)wrapper).GetDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - return _ret_var; - } else { - return efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_direction_get_delegate efl_ui_direction_get_static_delegate; + private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; - private delegate void efl_ui_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_direction_set_api_delegate(System.IntPtr obj, Efl.Ui.Dir dir); - public static Efl.Eo.FunctionWrapper efl_ui_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_direction_set"); - private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) - { - Eina.Log.Debug("function efl_ui_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Table)wrapper).SetDirection( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_ui_direction_set_delegate efl_ui_direction_set_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_table_static.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_table_static.eo.cs index ffb614e..927dfa7 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_table_static.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_table_static.eo.cs @@ -3,85 +3,121 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI table static class -[TableStaticNativeInherit] +[Efl.Ui.TableStatic.NativeMethods] public class TableStatic : Efl.Ui.Table, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TableStatic)) - return Efl.Ui.TableStaticNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TableStatic)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_table_static_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public TableStatic(Efl.Object parent - , System.String style = null) : - base(efl_ui_table_static_class_get(), typeof(TableStatic), parent) + , System.String style = null) : base(efl_ui_table_static_class_get(), typeof(TableStatic), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TableStatic(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TableStatic(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TableStatic(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.TableStatic.efl_ui_table_static_class_get(); } -} -public class TableStaticNativeInherit : Efl.Ui.TableNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Table.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TableStatic.efl_ui_table_static_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TableStatic.efl_ui_table_static_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TableStatic.efl_ui_table_static_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_tags.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_tags.eo.cs index bb76347..141c424 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_tags.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_tags.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + ///Event argument wrapper for event . public class TagsItemSelectedEvt_Args : EventArgs { ///Actual event payload. @@ -36,470 +40,602 @@ public class TagsExpandStateChangedEvt_Args : EventArgs { public int arg { get; set; } } /// A widget displaying a list of tags. The user can remove tags by clicking on each tag "close" button and add new tags by typing text in the text entry at the end of the list. -[TagsNativeInherit] +[Efl.Ui.Tags.NativeMethods] public class Tags : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Ui.IFormat { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Tags)) - return Efl.Ui.TagsNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Tags)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_tags_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Tags(Efl.Object parent - , System.String style = null) : - base(efl_ui_tags_class_get(), typeof(Tags), parent) + , System.String style = null) : base(efl_ui_tags_class_get(), typeof(Tags), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Tags(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Tags(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Tags(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ItemSelectedEvtKey = new object(); + /// Called when item was selected public event EventHandler ItemSelectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TagsItemSelectedEvt_Args args = new Efl.Ui.TagsItemSelectedEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TAGS_EVENT_ITEM_SELECTED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.AddHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TAGS_EVENT_ITEM_SELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ItemSelectedEvt. - public void On_ItemSelectedEvt(Efl.Ui.TagsItemSelectedEvt_Args e) + public void OnItemSelectedEvt(Efl.Ui.TagsItemSelectedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemSelectedEvtKey]; + var key = "_EFL_UI_TAGS_EVENT_ITEM_SELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemSelectedEvt_delegate; - private void on_ItemSelectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TagsItemSelectedEvt_Args args = new Efl.Ui.TagsItemSelectedEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_ItemSelectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); } } - -private static object ItemAddedEvtKey = new object(); /// Called when item was added public event EventHandler ItemAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TagsItemAddedEvt_Args args = new Efl.Ui.TagsItemAddedEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TAGS_EVENT_ITEM_ADDED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ItemAddedEvt_delegate)) { - eventHandlers.AddHandler(ItemAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TAGS_EVENT_ITEM_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_ItemAddedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ItemAddedEvt. - public void On_ItemAddedEvt(Efl.Ui.TagsItemAddedEvt_Args e) + public void OnItemAddedEvt(Efl.Ui.TagsItemAddedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemAddedEvtKey]; + var key = "_EFL_UI_TAGS_EVENT_ITEM_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemAddedEvt_delegate; - private void on_ItemAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TagsItemAddedEvt_Args args = new Efl.Ui.TagsItemAddedEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_ItemAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); } } - -private static object ItemDeletedEvtKey = new object(); /// Called when item was deleted public event EventHandler ItemDeletedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TagsItemDeletedEvt_Args args = new Efl.Ui.TagsItemDeletedEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TAGS_EVENT_ITEM_DELETED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ItemDeletedEvt_delegate)) { - eventHandlers.AddHandler(ItemDeletedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TAGS_EVENT_ITEM_DELETED"; - if (RemoveNativeEventHandler(key, this.evt_ItemDeletedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemDeletedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ItemDeletedEvt. - public void On_ItemDeletedEvt(Efl.Ui.TagsItemDeletedEvt_Args e) + public void OnItemDeletedEvt(Efl.Ui.TagsItemDeletedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemDeletedEvtKey]; + var key = "_EFL_UI_TAGS_EVENT_ITEM_DELETED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemDeletedEvt_delegate; - private void on_ItemDeletedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TagsItemDeletedEvt_Args args = new Efl.Ui.TagsItemDeletedEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_ItemDeletedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); } } - -private static object ItemClickedEvtKey = new object(); /// Called when item was clicked public event EventHandler ItemClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TagsItemClickedEvt_Args args = new Efl.Ui.TagsItemClickedEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TAGS_EVENT_ITEM_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ItemClickedEvt_delegate)) { - eventHandlers.AddHandler(ItemClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TAGS_EVENT_ITEM_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ItemClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ItemClickedEvt. - public void On_ItemClickedEvt(Efl.Ui.TagsItemClickedEvt_Args e) + public void OnItemClickedEvt(Efl.Ui.TagsItemClickedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemClickedEvtKey]; + var key = "_EFL_UI_TAGS_EVENT_ITEM_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemClickedEvt_delegate; - private void on_ItemClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TagsItemClickedEvt_Args args = new Efl.Ui.TagsItemClickedEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_ItemClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); } } - -private static object ItemLongpressedEvtKey = new object(); /// Called when item got a longpress public event EventHandler ItemLongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TagsItemLongpressedEvt_Args args = new Efl.Ui.TagsItemLongpressedEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TAGS_EVENT_ITEM_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ItemLongpressedEvt_delegate)) { - eventHandlers.AddHandler(ItemLongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TAGS_EVENT_ITEM_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_ItemLongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemLongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ItemLongpressedEvt. - public void On_ItemLongpressedEvt(Efl.Ui.TagsItemLongpressedEvt_Args e) + public void OnItemLongpressedEvt(Efl.Ui.TagsItemLongpressedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemLongpressedEvtKey]; + var key = "_EFL_UI_TAGS_EVENT_ITEM_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemLongpressedEvt_delegate; - private void on_ItemLongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TagsItemLongpressedEvt_Args args = new Efl.Ui.TagsItemLongpressedEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_ItemLongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); } } - -private static object ExpandedEvtKey = new object(); /// Called when expanded public event EventHandler ExpandedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TAGS_EVENT_EXPANDED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ExpandedEvt_delegate)) { - eventHandlers.AddHandler(ExpandedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TAGS_EVENT_EXPANDED"; - if (RemoveNativeEventHandler(key, this.evt_ExpandedEvt_delegate)) { - eventHandlers.RemoveHandler(ExpandedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ExpandedEvt. - public void On_ExpandedEvt(EventArgs e) + public void OnExpandedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ExpandedEvtKey]; + var key = "_EFL_UI_TAGS_EVENT_EXPANDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ExpandedEvt_delegate; - private void on_ExpandedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ExpandedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ContractedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when contracted public event EventHandler ContractedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TAGS_EVENT_CONTRACTED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ContractedEvt_delegate)) { - eventHandlers.AddHandler(ContractedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TAGS_EVENT_CONTRACTED"; - if (RemoveNativeEventHandler(key, this.evt_ContractedEvt_delegate)) { - eventHandlers.RemoveHandler(ContractedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ContractedEvt. - public void On_ContractedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContractedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContractedEvt_delegate; - private void on_ContractedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContractedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ContractedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_TAGS_EVENT_CONTRACTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ExpandStateChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when expanded state changed public event EventHandler ExpandStateChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TagsExpandStateChangedEvt_Args args = new Efl.Ui.TagsExpandStateChangedEvt_Args(); + args.arg = evt.Info.ToInt32(); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TAGS_EVENT_EXPAND_STATE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ExpandStateChangedEvt_delegate)) { - eventHandlers.AddHandler(ExpandStateChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TAGS_EVENT_EXPAND_STATE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ExpandStateChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ExpandStateChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ExpandStateChangedEvt. - public void On_ExpandStateChangedEvt(Efl.Ui.TagsExpandStateChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ExpandStateChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ExpandStateChangedEvt_delegate; - private void on_ExpandStateChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnExpandStateChangedEvt(Efl.Ui.TagsExpandStateChangedEvt_Args e) { - Efl.Ui.TagsExpandStateChangedEvt_Args args = new Efl.Ui.TagsExpandStateChangedEvt_Args(); - args.arg = evt.Info.ToInt32(); - try { - On_ExpandStateChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_TAGS_EVENT_EXPAND_STATE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ItemSelectedEvt_delegate = new Efl.EventCb(on_ItemSelectedEvt_NativeCallback); - evt_ItemAddedEvt_delegate = new Efl.EventCb(on_ItemAddedEvt_NativeCallback); - evt_ItemDeletedEvt_delegate = new Efl.EventCb(on_ItemDeletedEvt_NativeCallback); - evt_ItemClickedEvt_delegate = new Efl.EventCb(on_ItemClickedEvt_NativeCallback); - evt_ItemLongpressedEvt_delegate = new Efl.EventCb(on_ItemLongpressedEvt_NativeCallback); - evt_ExpandedEvt_delegate = new Efl.EventCb(on_ExpandedEvt_NativeCallback); - evt_ContractedEvt_delegate = new Efl.EventCb(on_ContractedEvt_NativeCallback); - evt_ExpandStateChangedEvt_delegate = new Efl.EventCb(on_ExpandStateChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Control if the tag list is to be editable by the user or not. /// If true, the user can add/delete tags to the tag list, if not, the tag list is non-editable. virtual public bool GetEditable() { - var _ret_var = Efl.Ui.TagsNativeInherit.efl_ui_tags_editable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Tags.NativeMethods.efl_ui_tags_editable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control if the tag list is to be editable by the user or not. /// If true, the user can add/delete tags to the tag list, if not, the tag list is non-editable. - /// - virtual public void SetEditable( bool editable) { - Efl.Ui.TagsNativeInherit.efl_ui_tags_editable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), editable); + virtual public void SetEditable(bool editable) { + Efl.Ui.Tags.NativeMethods.efl_ui_tags_editable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),editable); Eina.Error.RaiseIfUnhandledException(); } /// Control whether the tag list is expanded or not. /// In the expanded state, all tags will be displayed. Otherwise, only a single line of tags will be displayed with a marker to indicate that there is more content. /// The expanded state. Set this to true to allow multiple lines of tags. Set to false for a single line. virtual public bool GetExpanded() { - var _ret_var = Efl.Ui.TagsNativeInherit.efl_ui_tags_expanded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Tags.NativeMethods.efl_ui_tags_expanded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control whether the tag list is expanded or not. /// In the expanded state, all tags will be displayed. Otherwise, only a single line of tags will be displayed with a marker to indicate that there is more content. /// The expanded state. Set this to true to allow multiple lines of tags. Set to false for a single line. - /// - virtual public void SetExpanded( bool expanded) { - Efl.Ui.TagsNativeInherit.efl_ui_tags_expanded_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), expanded); + virtual public void SetExpanded(bool expanded) { + Efl.Ui.Tags.NativeMethods.efl_ui_tags_expanded_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),expanded); Eina.Error.RaiseIfUnhandledException(); } /// List of tags in the tag list. Tags can be added and removed by the user using the UI, and by the program by modifying this property. /// The array of items, or NULL if none. virtual public Eina.Array GetItems() { - var _ret_var = Efl.Ui.TagsNativeInherit.efl_ui_tags_items_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Tags.NativeMethods.efl_ui_tags_items_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Array(_ret_var, false, false); } /// List of tags in the tag list. Tags can be added and removed by the user using the UI, and by the program by modifying this property. /// The array of items, or NULL if none. - /// - virtual public void SetItems( Eina.Array items) { + virtual public void SetItems(Eina.Array items) { var _in_items = items.Handle; - Efl.Ui.TagsNativeInherit.efl_ui_tags_items_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_items); + Efl.Ui.Tags.NativeMethods.efl_ui_tags_items_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_items); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the text string currently being displayed by the given text object. @@ -509,7 +645,7 @@ private static object ExpandStateChangedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -517,17 +653,15 @@ private static object ExpandStateChangedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Set the format function pointer to format the string. /// The format function callback - /// - virtual public void SetFormatCb( Efl.Ui.FormatFuncCb func) { + virtual public void SetFormatCb(Efl.Ui.FormatFuncCb func) { GCHandle func_handle = GCHandle.Alloc(func); - Efl.Ui.IFormatNativeInherit.efl_ui_format_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), Efl.Ui.FormatFuncCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); + Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), Efl.Ui.FormatFuncCbWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); } /// Control the format string for a given units label @@ -536,7 +670,7 @@ private static object ExpandStateChangedEvtKey = new object(); /// Note: The default format string is an integer percentage, as in $"%.0f %%". /// The format string for obj's units label. virtual public System.String GetFormatString() { - var _ret_var = Efl.Ui.IFormatNativeInherit.efl_ui_format_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -545,34 +679,33 @@ private static object ExpandStateChangedEvtKey = new object(); /// /// Note: The default format string is an integer percentage, as in $"%.0f %%". /// The format string for obj's units label. - /// - virtual public void SetFormatString( System.String units) { - Efl.Ui.IFormatNativeInherit.efl_ui_format_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), units); + virtual public void SetFormatString(System.String units) { + Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),units); Eina.Error.RaiseIfUnhandledException(); } /// Control if the tag list is to be editable by the user or not. /// If true, the user can add/delete tags to the tag list, if not, the tag list is non-editable. public bool Editable { get { return GetEditable(); } - set { SetEditable( value); } + set { SetEditable(value); } } /// Control whether the tag list is expanded or not. /// In the expanded state, all tags will be displayed. Otherwise, only a single line of tags will be displayed with a marker to indicate that there is more content. /// The expanded state. Set this to true to allow multiple lines of tags. Set to false for a single line. public bool Expanded { get { return GetExpanded(); } - set { SetExpanded( value); } + set { SetExpanded(value); } } /// List of tags in the tag list. Tags can be added and removed by the user using the UI, and by the program by modifying this property. /// The array of items, or NULL if none. public Eina.Array Items { get { return GetItems(); } - set { SetItems( value); } + set { SetItems(value); } } /// Set the format function pointer to format the string. /// The format function callback public Efl.Ui.FormatFuncCb FormatCb { - set { SetFormatCb( value); } + set { SetFormatCb(value); } } /// Control the format string for a given units label /// If NULL is passed to format, it will hide obj's units area completely. If not, it'll set the <b>format string</b> for the units label text. The units label is provided as a floating point value, so the units text can display at most one floating point value. Note that the units label is optional. Use a format string such as "%1.2f meters" for example. @@ -581,344 +714,543 @@ private static object ExpandStateChangedEvtKey = new object(); /// The format string for obj's units label. public System.String FormatString { get { return GetFormatString(); } - set { SetFormatString( value); } + set { SetFormatString(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Tags.efl_ui_tags_class_get(); } -} -public class TagsNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_tags_editable_get_static_delegate == null) - efl_ui_tags_editable_get_static_delegate = new efl_ui_tags_editable_get_delegate(editable_get); - if (methods.FirstOrDefault(m => m.Name == "GetEditable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tags_editable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_editable_get_static_delegate)}); - if (efl_ui_tags_editable_set_static_delegate == null) - efl_ui_tags_editable_set_static_delegate = new efl_ui_tags_editable_set_delegate(editable_set); - if (methods.FirstOrDefault(m => m.Name == "SetEditable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tags_editable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_editable_set_static_delegate)}); - if (efl_ui_tags_expanded_get_static_delegate == null) - efl_ui_tags_expanded_get_static_delegate = new efl_ui_tags_expanded_get_delegate(expanded_get); - if (methods.FirstOrDefault(m => m.Name == "GetExpanded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tags_expanded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_expanded_get_static_delegate)}); - if (efl_ui_tags_expanded_set_static_delegate == null) - efl_ui_tags_expanded_set_static_delegate = new efl_ui_tags_expanded_set_delegate(expanded_set); - if (methods.FirstOrDefault(m => m.Name == "SetExpanded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tags_expanded_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_expanded_set_static_delegate)}); - if (efl_ui_tags_items_get_static_delegate == null) - efl_ui_tags_items_get_static_delegate = new efl_ui_tags_items_get_delegate(items_get); - if (methods.FirstOrDefault(m => m.Name == "GetItems") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tags_items_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_items_get_static_delegate)}); - if (efl_ui_tags_items_set_static_delegate == null) - efl_ui_tags_items_set_static_delegate = new efl_ui_tags_items_set_delegate(items_set); - if (methods.FirstOrDefault(m => m.Name == "SetItems") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_tags_items_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_items_set_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_ui_format_cb_set_static_delegate == null) - efl_ui_format_cb_set_static_delegate = new efl_ui_format_cb_set_delegate(format_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormatCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_cb_set_static_delegate)}); - if (efl_ui_format_string_get_static_delegate == null) - efl_ui_format_string_get_static_delegate = new efl_ui_format_string_get_delegate(format_string_get); - if (methods.FirstOrDefault(m => m.Name == "GetFormatString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_get_static_delegate)}); - if (efl_ui_format_string_set_static_delegate == null) - efl_ui_format_string_set_static_delegate = new efl_ui_format_string_set_delegate(format_string_set); - if (methods.FirstOrDefault(m => m.Name == "SetFormatString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_format_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Tags.efl_ui_tags_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Tags.efl_ui_tags_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_tags_editable_get_static_delegate == null) + { + efl_ui_tags_editable_get_static_delegate = new efl_ui_tags_editable_get_delegate(editable_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_tags_editable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetEditable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tags_editable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_editable_get_static_delegate) }); + } + if (efl_ui_tags_editable_set_static_delegate == null) + { + efl_ui_tags_editable_set_static_delegate = new efl_ui_tags_editable_set_delegate(editable_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_tags_editable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_tags_editable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tags_editable_get"); - private static bool editable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_tags_editable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Tags)wrapper).GetEditable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetEditable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tags_editable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_editable_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_tags_editable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_tags_expanded_get_static_delegate == null) + { + efl_ui_tags_expanded_get_static_delegate = new efl_ui_tags_expanded_get_delegate(expanded_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetExpanded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tags_expanded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_expanded_get_static_delegate) }); + } + + if (efl_ui_tags_expanded_set_static_delegate == null) + { + efl_ui_tags_expanded_set_static_delegate = new efl_ui_tags_expanded_set_delegate(expanded_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetExpanded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tags_expanded_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_expanded_set_static_delegate) }); + } + + if (efl_ui_tags_items_get_static_delegate == null) + { + efl_ui_tags_items_get_static_delegate = new efl_ui_tags_items_get_delegate(items_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetItems") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tags_items_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_items_get_static_delegate) }); + } + + if (efl_ui_tags_items_set_static_delegate == null) + { + efl_ui_tags_items_set_static_delegate = new efl_ui_tags_items_set_delegate(items_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetItems") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_tags_items_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_tags_items_set_static_delegate) }); + } + + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } + + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } + + if (efl_ui_format_cb_set_static_delegate == null) + { + efl_ui_format_cb_set_static_delegate = new efl_ui_format_cb_set_delegate(format_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFormatCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_cb_set_static_delegate) }); + } + + if (efl_ui_format_string_get_static_delegate == null) + { + efl_ui_format_string_get_static_delegate = new efl_ui_format_string_get_delegate(format_string_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFormatString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_get_static_delegate) }); + } + + if (efl_ui_format_string_set_static_delegate == null) + { + efl_ui_format_string_set_static_delegate = new efl_ui_format_string_set_delegate(format_string_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFormatString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_format_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_format_string_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Tags.efl_ui_tags_class_get(); } - } - private static efl_ui_tags_editable_get_delegate efl_ui_tags_editable_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_tags_editable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool editable); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_tags_editable_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_tags_editable_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_tags_editable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool editable); - public static Efl.Eo.FunctionWrapper efl_ui_tags_editable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tags_editable_set"); - private static void editable_set(System.IntPtr obj, System.IntPtr pd, bool editable) - { - Eina.Log.Debug("function efl_ui_tags_editable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Tags)wrapper).SetEditable( editable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_tags_editable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), editable); + public static Efl.Eo.FunctionWrapper efl_ui_tags_editable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tags_editable_get"); + + private static bool editable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_tags_editable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Tags)wrapper).GetEditable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_tags_editable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_tags_editable_set_delegate efl_ui_tags_editable_set_static_delegate; + private static efl_ui_tags_editable_get_delegate efl_ui_tags_editable_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_tags_expanded_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_tags_editable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool editable); + + public delegate void efl_ui_tags_editable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool editable); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_tags_expanded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_tags_expanded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tags_expanded_get"); - private static bool expanded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_tags_expanded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Tags)wrapper).GetExpanded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_tags_editable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tags_editable_set"); + + private static void editable_set(System.IntPtr obj, System.IntPtr pd, bool editable) + { + Eina.Log.Debug("function efl_ui_tags_editable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Tags)wrapper).SetEditable(editable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_tags_editable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), editable); } - return _ret_var; - } else { - return efl_ui_tags_expanded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_tags_expanded_get_delegate efl_ui_tags_expanded_get_static_delegate; + private static efl_ui_tags_editable_set_delegate efl_ui_tags_editable_set_static_delegate; - private delegate void efl_ui_tags_expanded_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool expanded); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_tags_expanded_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_tags_expanded_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_tags_expanded_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool expanded); - public static Efl.Eo.FunctionWrapper efl_ui_tags_expanded_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tags_expanded_set"); - private static void expanded_set(System.IntPtr obj, System.IntPtr pd, bool expanded) - { - Eina.Log.Debug("function efl_ui_tags_expanded_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Tags)wrapper).SetExpanded( expanded); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_tags_expanded_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), expanded); + public static Efl.Eo.FunctionWrapper efl_ui_tags_expanded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tags_expanded_get"); + + private static bool expanded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_tags_expanded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Tags)wrapper).GetExpanded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_tags_expanded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_tags_expanded_set_delegate efl_ui_tags_expanded_set_static_delegate; + private static efl_ui_tags_expanded_get_delegate efl_ui_tags_expanded_get_static_delegate; - private delegate System.IntPtr efl_ui_tags_items_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_tags_expanded_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool expanded); + + public delegate void efl_ui_tags_expanded_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool expanded); - public delegate System.IntPtr efl_ui_tags_items_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_tags_items_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tags_items_get"); - private static System.IntPtr items_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_tags_items_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Array _ret_var = default(Eina.Array); - try { - _ret_var = ((Tags)wrapper).GetItems(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_tags_expanded_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tags_expanded_set"); + + private static void expanded_set(System.IntPtr obj, System.IntPtr pd, bool expanded) + { + Eina.Log.Debug("function efl_ui_tags_expanded_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Tags)wrapper).SetExpanded(expanded); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_tags_expanded_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), expanded); } + } + + private static efl_ui_tags_expanded_set_delegate efl_ui_tags_expanded_set_static_delegate; + + + private delegate System.IntPtr efl_ui_tags_items_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_tags_items_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_tags_items_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tags_items_get"); + + private static System.IntPtr items_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_tags_items_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Array _ret_var = default(Eina.Array); + try + { + _ret_var = ((Tags)wrapper).GetItems(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - } else { - return efl_ui_tags_items_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_tags_items_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_tags_items_get_delegate efl_ui_tags_items_get_static_delegate; + private static efl_ui_tags_items_get_delegate efl_ui_tags_items_get_static_delegate; - private delegate void efl_ui_tags_items_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr items); + + private delegate void efl_ui_tags_items_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr items); + + public delegate void efl_ui_tags_items_set_api_delegate(System.IntPtr obj, System.IntPtr items); - public delegate void efl_ui_tags_items_set_api_delegate(System.IntPtr obj, System.IntPtr items); - public static Efl.Eo.FunctionWrapper efl_ui_tags_items_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_tags_items_set"); - private static void items_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr items) - { - Eina.Log.Debug("function efl_ui_tags_items_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_items = new Eina.Array(items, false, false); + public static Efl.Eo.FunctionWrapper efl_ui_tags_items_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_tags_items_set"); + + private static void items_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr items) + { + Eina.Log.Debug("function efl_ui_tags_items_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_items = new Eina.Array(items, false, false); - try { - ((Tags)wrapper).SetItems( _in_items); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((Tags)wrapper).SetItems(_in_items); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_tags_items_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), items); } - } else { - efl_ui_tags_items_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), items); } - } - private static efl_ui_tags_items_set_delegate efl_ui_tags_items_set_static_delegate; + private static efl_ui_tags_items_set_delegate efl_ui_tags_items_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Tags)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Tags)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Tags)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Tags)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + } } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + private static efl_text_set_delegate efl_text_set_static_delegate; - private delegate void efl_ui_format_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); + + private delegate void efl_ui_format_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); + + public delegate void efl_ui_format_cb_set_api_delegate(System.IntPtr obj, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); - public delegate void efl_ui_format_cb_set_api_delegate(System.IntPtr obj, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb); - public static Efl.Eo.FunctionWrapper efl_ui_format_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_cb_set"); - private static void format_cb_set(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb) - { - Eina.Log.Debug("function efl_ui_format_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.FormatFuncCbWrapper func_wrapper = new Efl.Ui.FormatFuncCbWrapper(func, func_data, func_free_cb); + public static Efl.Eo.FunctionWrapper efl_ui_format_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_cb_set"); + + private static void format_cb_set(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, Efl.Ui.FormatFuncCbInternal func, EinaFreeCb func_free_cb) + { + Eina.Log.Debug("function efl_ui_format_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.FormatFuncCbWrapper func_wrapper = new Efl.Ui.FormatFuncCbWrapper(func, func_data, func_free_cb); - try { - ((Tags)wrapper).SetFormatCb( func_wrapper.ManagedCb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + try + { + ((Tags)wrapper).SetFormatCb(func_wrapper.ManagedCb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_format_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); } - } else { - efl_ui_format_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb); } - } - private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate; + private static efl_ui_format_cb_set_delegate efl_ui_format_cb_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_format_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_format_string_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_format_string_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_format_string_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_string_get"); + + private static System.String format_string_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_format_string_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Tags)wrapper).GetFormatString(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_format_string_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_format_string_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_string_get"); - private static System.String format_string_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_format_string_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Tags)wrapper).GetFormatString(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_format_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate; + private static efl_ui_format_string_get_delegate efl_ui_format_string_get_static_delegate; - private delegate void efl_ui_format_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); + + private delegate void efl_ui_format_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); + + public delegate void efl_ui_format_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); - public delegate void efl_ui_format_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String units); - public static Efl.Eo.FunctionWrapper efl_ui_format_string_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_format_string_set"); - private static void format_string_set(System.IntPtr obj, System.IntPtr pd, System.String units) - { - Eina.Log.Debug("function efl_ui_format_string_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Tags)wrapper).SetFormatString( units); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), units); + public static Efl.Eo.FunctionWrapper efl_ui_format_string_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_format_string_set"); + + private static void format_string_set(System.IntPtr obj, System.IntPtr pd, System.String units) + { + Eina.Log.Debug("function efl_ui_format_string_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Tags)wrapper).SetFormatString(units); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_format_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), units); + } } - } - private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate; + + private static efl_ui_format_string_set_delegate efl_ui_format_string_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text.eo.cs index 1c957c6..18eacfd 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + ///Event argument wrapper for event . public class TextChangedUserEvt_Args : EventArgs { ///Actual event payload. @@ -41,1745 +45,2134 @@ public class TextAnchorUpEvt_Args : EventArgs { public Elm.EntryAnchorInfo arg { get; set; } } /// Efl UI text class -[TextNativeInherit] +[Efl.Ui.Text.NativeMethods] public class Text : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IText,Efl.ITextFont,Efl.ITextFormat,Efl.ITextInteractive,Efl.ITextStyle,Efl.Access.IText,Efl.Access.Editable.IText,Efl.Ui.IClickable,Efl.Ui.ISelectable { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Text)) - return Efl.Ui.TextNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Text)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_text_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Text(Efl.Object parent - , System.String style = null) : - base(efl_ui_text_class_get(), typeof(Text), parent) + , System.String style = null) : base(efl_ui_text_class_get(), typeof(Text), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Text(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Text(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Text(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ChangedEvtKey = new object(); + /// Called when entry changes public event EventHandler ChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) { - eventHandlers.AddHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedEvt. - public void On_ChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedEvt_delegate; - private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_TEXT_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ChangedUserEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The text object has changed due to user interaction public event EventHandler ChangedUserEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TextChangedUserEvt_Args args = new Efl.Ui.TextChangedUserEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_CHANGED_USER"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedUserEvt_delegate)) { - eventHandlers.AddHandler(ChangedUserEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_CHANGED_USER"; - if (RemoveNativeEventHandler(key, this.evt_ChangedUserEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedUserEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedUserEvt. - public void On_ChangedUserEvt(Efl.Ui.TextChangedUserEvt_Args e) + public void OnChangedUserEvt(Efl.Ui.TextChangedUserEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedUserEvtKey]; + var key = "_EFL_UI_TEXT_EVENT_CHANGED_USER"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedUserEvt_delegate; - private void on_ChangedUserEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TextChangedUserEvt_Args args = new Efl.Ui.TextChangedUserEvt_Args(); - args.arg = evt.Info;; - try { - On_ChangedUserEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ValidateEvtKey = new object(); /// Called when validating public event EventHandler ValidateEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TextValidateEvt_Args args = new Efl.Ui.TextValidateEvt_Args(); + args.arg = default(Elm.ValidateContent); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_VALIDATE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ValidateEvt_delegate)) { - eventHandlers.AddHandler(ValidateEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_VALIDATE"; - if (RemoveNativeEventHandler(key, this.evt_ValidateEvt_delegate)) { - eventHandlers.RemoveHandler(ValidateEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ValidateEvt. - public void On_ValidateEvt(Efl.Ui.TextValidateEvt_Args e) + public void OnValidateEvt(Efl.Ui.TextValidateEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ValidateEvtKey]; + var key = "_EFL_UI_TEXT_EVENT_VALIDATE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ValidateEvt_delegate; - private void on_ValidateEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TextValidateEvt_Args args = new Efl.Ui.TextValidateEvt_Args(); - args.arg = default(Elm.ValidateContent); - try { - On_ValidateEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ContextOpenEvtKey = new object(); /// Called when context menu was opened public event EventHandler ContextOpenEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_CONTEXT_OPEN"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ContextOpenEvt_delegate)) { - eventHandlers.AddHandler(ContextOpenEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_CONTEXT_OPEN"; - if (RemoveNativeEventHandler(key, this.evt_ContextOpenEvt_delegate)) { - eventHandlers.RemoveHandler(ContextOpenEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ContextOpenEvt. - public void On_ContextOpenEvt(EventArgs e) + public void OnContextOpenEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContextOpenEvtKey]; + var key = "_EFL_UI_TEXT_EVENT_CONTEXT_OPEN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContextOpenEvt_delegate; - private void on_ContextOpenEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ContextOpenEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object PreeditChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when entry preedit changed public event EventHandler PreeditChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_PREEDIT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PreeditChangedEvt_delegate)) { - eventHandlers.AddHandler(PreeditChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_PREEDIT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PreeditChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PreeditChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event PreeditChangedEvt. - public void On_PreeditChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PreeditChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PreeditChangedEvt_delegate; - private void on_PreeditChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPreeditChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_PreeditChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_TEXT_EVENT_PREEDIT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PressEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when entry pressed public event EventHandler PressEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_PRESS"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PressEvt_delegate)) { - eventHandlers.AddHandler(PressEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_PRESS"; - if (RemoveNativeEventHandler(key, this.evt_PressEvt_delegate)) { - eventHandlers.RemoveHandler(PressEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event PressEvt. - public void On_PressEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressEvt_delegate; - private void on_PressEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPressEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_PressEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_TEXT_EVENT_PRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RedoRequestEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when redo is requested public event EventHandler RedoRequestEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_REDO_REQUEST"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedoRequestEvt_delegate)) { - eventHandlers.AddHandler(RedoRequestEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_REDO_REQUEST"; - if (RemoveNativeEventHandler(key, this.evt_RedoRequestEvt_delegate)) { - eventHandlers.RemoveHandler(RedoRequestEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedoRequestEvt. - public void On_RedoRequestEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedoRequestEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedoRequestEvt_delegate; - private void on_RedoRequestEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRedoRequestEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_RedoRequestEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_TEXT_EVENT_REDO_REQUEST"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UndoRequestEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when undo is requested public event EventHandler UndoRequestEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_UNDO_REQUEST"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_UndoRequestEvt_delegate)) { - eventHandlers.AddHandler(UndoRequestEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_UNDO_REQUEST"; - if (RemoveNativeEventHandler(key, this.evt_UndoRequestEvt_delegate)) { - eventHandlers.RemoveHandler(UndoRequestEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event UndoRequestEvt. - public void On_UndoRequestEvt(EventArgs e) + public void OnUndoRequestEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UndoRequestEvtKey]; + var key = "_EFL_UI_TEXT_EVENT_UNDO_REQUEST"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UndoRequestEvt_delegate; - private void on_UndoRequestEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_UndoRequestEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object AbortedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when entry is aborted public event EventHandler AbortedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_ABORTED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AbortedEvt_delegate)) { - eventHandlers.AddHandler(AbortedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_ABORTED"; - if (RemoveNativeEventHandler(key, this.evt_AbortedEvt_delegate)) { - eventHandlers.RemoveHandler(AbortedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AbortedEvt. - public void On_AbortedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AbortedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AbortedEvt_delegate; - private void on_AbortedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnAbortedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_AbortedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_TEXT_EVENT_ABORTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object AnchorDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called on anchor down public event EventHandler AnchorDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TextAnchorDownEvt_Args args = new Efl.Ui.TextAnchorDownEvt_Args(); + args.arg = default(Elm.EntryAnchorInfo); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_ANCHOR_DOWN"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AnchorDownEvt_delegate)) { - eventHandlers.AddHandler(AnchorDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_ANCHOR_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_AnchorDownEvt_delegate)) { - eventHandlers.RemoveHandler(AnchorDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AnchorDownEvt. - public void On_AnchorDownEvt(Efl.Ui.TextAnchorDownEvt_Args e) + public void OnAnchorDownEvt(Efl.Ui.TextAnchorDownEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AnchorDownEvtKey]; + var key = "_EFL_UI_TEXT_EVENT_ANCHOR_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AnchorDownEvt_delegate; - private void on_AnchorDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TextAnchorDownEvt_Args args = new Efl.Ui.TextAnchorDownEvt_Args(); - args.arg = default(Elm.EntryAnchorInfo); - try { - On_AnchorDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object AnchorHoverOpenedEvtKey = new object(); /// Called when hover opened public event EventHandler AnchorHoverOpenedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TextAnchorHoverOpenedEvt_Args args = new Efl.Ui.TextAnchorHoverOpenedEvt_Args(); + args.arg = default(Elm.EntryAnchorHoverInfo); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_ANCHOR_HOVER_OPENED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AnchorHoverOpenedEvt_delegate)) { - eventHandlers.AddHandler(AnchorHoverOpenedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_ANCHOR_HOVER_OPENED"; - if (RemoveNativeEventHandler(key, this.evt_AnchorHoverOpenedEvt_delegate)) { - eventHandlers.RemoveHandler(AnchorHoverOpenedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AnchorHoverOpenedEvt. - public void On_AnchorHoverOpenedEvt(Efl.Ui.TextAnchorHoverOpenedEvt_Args e) + public void OnAnchorHoverOpenedEvt(Efl.Ui.TextAnchorHoverOpenedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AnchorHoverOpenedEvtKey]; + var key = "_EFL_UI_TEXT_EVENT_ANCHOR_HOVER_OPENED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AnchorHoverOpenedEvt_delegate; - private void on_AnchorHoverOpenedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TextAnchorHoverOpenedEvt_Args args = new Efl.Ui.TextAnchorHoverOpenedEvt_Args(); - args.arg = default(Elm.EntryAnchorHoverInfo); - try { - On_AnchorHoverOpenedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object AnchorInEvtKey = new object(); /// Called on anchor in public event EventHandler AnchorInEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TextAnchorInEvt_Args args = new Efl.Ui.TextAnchorInEvt_Args(); + args.arg = default(Elm.EntryAnchorInfo); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_ANCHOR_IN"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AnchorInEvt_delegate)) { - eventHandlers.AddHandler(AnchorInEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_ANCHOR_IN"; - if (RemoveNativeEventHandler(key, this.evt_AnchorInEvt_delegate)) { - eventHandlers.RemoveHandler(AnchorInEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AnchorInEvt. - public void On_AnchorInEvt(Efl.Ui.TextAnchorInEvt_Args e) + public void OnAnchorInEvt(Efl.Ui.TextAnchorInEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AnchorInEvtKey]; + var key = "_EFL_UI_TEXT_EVENT_ANCHOR_IN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AnchorInEvt_delegate; - private void on_AnchorInEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TextAnchorInEvt_Args args = new Efl.Ui.TextAnchorInEvt_Args(); - args.arg = default(Elm.EntryAnchorInfo); - try { - On_AnchorInEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object AnchorOutEvtKey = new object(); /// Called on anchor out public event EventHandler AnchorOutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TextAnchorOutEvt_Args args = new Efl.Ui.TextAnchorOutEvt_Args(); + args.arg = default(Elm.EntryAnchorInfo); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_ANCHOR_OUT"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AnchorOutEvt_delegate)) { - eventHandlers.AddHandler(AnchorOutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_ANCHOR_OUT"; - if (RemoveNativeEventHandler(key, this.evt_AnchorOutEvt_delegate)) { - eventHandlers.RemoveHandler(AnchorOutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AnchorOutEvt. - public void On_AnchorOutEvt(Efl.Ui.TextAnchorOutEvt_Args e) + public void OnAnchorOutEvt(Efl.Ui.TextAnchorOutEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AnchorOutEvtKey]; + var key = "_EFL_UI_TEXT_EVENT_ANCHOR_OUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AnchorOutEvt_delegate; - private void on_AnchorOutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TextAnchorOutEvt_Args args = new Efl.Ui.TextAnchorOutEvt_Args(); - args.arg = default(Elm.EntryAnchorInfo); - try { - On_AnchorOutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object AnchorUpEvtKey = new object(); /// called on anchor up public event EventHandler AnchorUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.TextAnchorUpEvt_Args args = new Efl.Ui.TextAnchorUpEvt_Args(); + args.arg = default(Elm.EntryAnchorInfo); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_ANCHOR_UP"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AnchorUpEvt_delegate)) { - eventHandlers.AddHandler(AnchorUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_ANCHOR_UP"; - if (RemoveNativeEventHandler(key, this.evt_AnchorUpEvt_delegate)) { - eventHandlers.RemoveHandler(AnchorUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AnchorUpEvt. - public void On_AnchorUpEvt(Efl.Ui.TextAnchorUpEvt_Args e) + public void OnAnchorUpEvt(Efl.Ui.TextAnchorUpEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AnchorUpEvtKey]; + var key = "_EFL_UI_TEXT_EVENT_ANCHOR_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AnchorUpEvt_delegate; - private void on_AnchorUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.TextAnchorUpEvt_Args args = new Efl.Ui.TextAnchorUpEvt_Args(); - args.arg = default(Elm.EntryAnchorInfo); - try { - On_AnchorUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object CursorChangedManualEvtKey = new object(); /// Called on manual cursor change public event EventHandler CursorChangedManualEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TEXT_EVENT_CURSOR_CHANGED_MANUAL"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CursorChangedManualEvt_delegate)) { - eventHandlers.AddHandler(CursorChangedManualEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TEXT_EVENT_CURSOR_CHANGED_MANUAL"; - if (RemoveNativeEventHandler(key, this.evt_CursorChangedManualEvt_delegate)) { - eventHandlers.RemoveHandler(CursorChangedManualEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CursorChangedManualEvt. - public void On_CursorChangedManualEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CursorChangedManualEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CursorChangedManualEvt_delegate; - private void on_CursorChangedManualEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCursorChangedManualEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_CursorChangedManualEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_TEXT_EVENT_CURSOR_CHANGED_MANUAL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object TextSelectionChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The selection on the object has changed. Query using public event EventHandler TextSelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_TEXT_INTERACTIVE_EVENT_TEXT_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_TextSelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(TextSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_TEXT_INTERACTIVE_EVENT_TEXT_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_TextSelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(TextSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event TextSelectionChangedEvt. - public void On_TextSelectionChangedEvt(EventArgs e) + public void OnTextSelectionChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[TextSelectionChangedEvtKey]; + var key = "_EFL_TEXT_INTERACTIVE_EVENT_TEXT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_TextSelectionChangedEvt_delegate; - private void on_TextSelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_TextSelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object AccessTextCaretMovedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Caret moved public event EventHandler AccessTextCaretMovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessTextCaretMovedEvt_delegate)) { - eventHandlers.AddHandler(AccessTextCaretMovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED"; - if (RemoveNativeEventHandler(key, this.evt_AccessTextCaretMovedEvt_delegate)) { - eventHandlers.RemoveHandler(AccessTextCaretMovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AccessTextCaretMovedEvt. - public void On_AccessTextCaretMovedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AccessTextCaretMovedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AccessTextCaretMovedEvt_delegate; - private void on_AccessTextCaretMovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnAccessTextCaretMovedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_AccessTextCaretMovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object AccessTextInsertedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Text was inserted public event EventHandler AccessTextInsertedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.ITextAccessTextInsertedEvt_Args args = new Efl.Access.ITextAccessTextInsertedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_INSERTED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessTextInsertedEvt_delegate)) { - eventHandlers.AddHandler(AccessTextInsertedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_INSERTED"; - if (RemoveNativeEventHandler(key, this.evt_AccessTextInsertedEvt_delegate)) { - eventHandlers.RemoveHandler(AccessTextInsertedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AccessTextInsertedEvt. - public void On_AccessTextInsertedEvt(Efl.Access.ITextAccessTextInsertedEvt_Args e) + public void OnAccessTextInsertedEvt(Efl.Access.ITextAccessTextInsertedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AccessTextInsertedEvtKey]; + var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_INSERTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AccessTextInsertedEvt_delegate; - private void on_AccessTextInsertedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.ITextAccessTextInsertedEvt_Args args = new Efl.Access.ITextAccessTextInsertedEvt_Args(); - args.arg = evt.Info;; - try { - On_AccessTextInsertedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object AccessTextRemovedEvtKey = new object(); /// Text was removed public event EventHandler AccessTextRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.ITextAccessTextRemovedEvt_Args args = new Efl.Access.ITextAccessTextRemovedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessTextRemovedEvt_delegate)) { - eventHandlers.AddHandler(AccessTextRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_AccessTextRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(AccessTextRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AccessTextRemovedEvt. - public void On_AccessTextRemovedEvt(Efl.Access.ITextAccessTextRemovedEvt_Args e) + public void OnAccessTextRemovedEvt(Efl.Access.ITextAccessTextRemovedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AccessTextRemovedEvtKey]; + var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AccessTextRemovedEvt_delegate; - private void on_AccessTextRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.ITextAccessTextRemovedEvt_Args args = new Efl.Access.ITextAccessTextRemovedEvt_Args(); - args.arg = evt.Info;; - try { - On_AccessTextRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object AccessTextSelectionChangedEvtKey = new object(); /// Text selection has changed public event EventHandler AccessTextSelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessTextSelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(AccessTextSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_AccessTextSelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(AccessTextSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AccessTextSelectionChangedEvt. - public void On_AccessTextSelectionChangedEvt(EventArgs e) + public void OnAccessTextSelectionChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AccessTextSelectionChangedEvtKey]; + var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AccessTextSelectionChangedEvt_delegate; - private void on_AccessTextSelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_AccessTextSelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ClickedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object is clicked public event EventHandler ClickedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedEvt_delegate)) { - eventHandlers.AddHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED"; - if (RemoveNativeEventHandler(key, this.evt_ClickedEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedEvt. - public void On_ClickedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedEvt_delegate; - private void on_ClickedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedDoubleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a double click public event EventHandler ClickedDoubleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.AddHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedDoubleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedDoubleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedDoubleEvt. - public void On_ClickedDoubleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedDoubleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedDoubleEvt_delegate; - private void on_ClickedDoubleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedDoubleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedDoubleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_DOUBLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedTripleEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a triple click public event EventHandler ClickedTripleEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.AddHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; - if (RemoveNativeEventHandler(key, this.evt_ClickedTripleEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedTripleEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedTripleEvt. - public void On_ClickedTripleEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedTripleEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedTripleEvt_delegate; - private void on_ClickedTripleEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnClickedTripleEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ClickedTripleEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_CLICKED_TRIPLE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ClickedRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when object receives a right click public event EventHandler ClickedRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.AddHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_CLICKED_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ClickedRightEvt_delegate)) { - eventHandlers.RemoveHandler(ClickedRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ClickedRightEvt. - public void On_ClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) + public void OnClickedRightEvt(Efl.Ui.IClickableClickedRightEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ClickedRightEvtKey]; + var key = "_EFL_UI_EVENT_CLICKED_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ClickedRightEvt_delegate; - private void on_ClickedRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IClickableClickedRightEvt_Args args = new Efl.Ui.IClickableClickedRightEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ClickedRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object PressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is pressed public event EventHandler PressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_PRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PressedEvt_delegate)) { - eventHandlers.AddHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_PRESSED"; - if (RemoveNativeEventHandler(key, this.evt_PressedEvt_delegate)) { - eventHandlers.RemoveHandler(PressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PressedEvt. - public void On_PressedEvt(Efl.Ui.IClickablePressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PressedEvt_delegate; - private void on_PressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_PressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object is no longer pressed public event EventHandler UnpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_UNPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.AddHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_UNPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_UnpressedEvt_delegate)) { - eventHandlers.RemoveHandler(UnpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event UnpressedEvt. - public void On_UnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnpressedEvt_delegate; - private void on_UnpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_UnpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LongpressedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives a long press public event EventHandler LongpressedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.AddHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_LONGPRESSED"; - if (RemoveNativeEventHandler(key, this.evt_LongpressedEvt_delegate)) { - eventHandlers.RemoveHandler(LongpressedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event LongpressedEvt. - public void On_LongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LongpressedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LongpressedEvt_delegate; - private void on_LongpressedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_LongpressedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RepeatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when the object receives repeated presses/clicks public event EventHandler RepeatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_REPEATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.AddHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_REPEATED"; - if (RemoveNativeEventHandler(key, this.evt_RepeatedEvt_delegate)) { - eventHandlers.RemoveHandler(RepeatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RepeatedEvt. - public void On_RepeatedEvt(EventArgs e) + public void OnRepeatedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RepeatedEvtKey]; + var key = "_EFL_UI_EVENT_REPEATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RepeatedEvt_delegate; - private void on_RepeatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_RepeatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ItemSelectedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selected public event EventHandler ItemSelectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.AddHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemSelectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemSelectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemSelectedEvt. - public void On_ItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemSelectedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemSelectedEvt_delegate; - private void on_ItemSelectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemSelectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ITEM_SELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ItemUnselectedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when no longer selected public event EventHandler ItemUnselectedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.AddHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - if (RemoveNativeEventHandler(key, this.evt_ItemUnselectedEvt_delegate)) { - eventHandlers.RemoveHandler(ItemUnselectedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ItemUnselectedEvt. - public void On_ItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ItemUnselectedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ItemUnselectedEvt_delegate; - private void on_ItemUnselectedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ItemUnselectedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionPasteEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when selection is pasted public event EventHandler SelectionPasteEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.AddHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - if (RemoveNativeEventHandler(key, this.evt_SelectionPasteEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionPasteEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionPasteEvt. - public void On_SelectionPasteEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionPasteEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionPasteEvt_delegate; - private void on_SelectionPasteEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionPasteEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionPasteEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_PASTE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionCopyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is copied public event EventHandler SelectionCopyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.AddHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_COPY"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCopyEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCopyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCopyEvt. - public void On_SelectionCopyEvt(EventArgs e) + public void OnSelectionCopyEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCopyEvtKey]; + var key = "_EFL_UI_EVENT_SELECTION_COPY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCopyEvt_delegate; - private void on_SelectionCopyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCopyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object SelectionCutEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cut public event EventHandler SelectionCutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.AddHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CUT"; - if (RemoveNativeEventHandler(key, this.evt_SelectionCutEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionCutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionCutEvt. - public void On_SelectionCutEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionCutEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionCutEvt_delegate; - private void on_SelectionCutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionCutEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionCutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_CUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called at selection start public event EventHandler SelectionStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.AddHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_START"; - if (RemoveNativeEventHandler(key, this.evt_SelectionStartEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionStartEvt. - public void On_SelectionStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionStartEvt_delegate; - private void on_SelectionStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is changed public event EventHandler SelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionChangedEvt. - public void On_SelectionChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionChangedEvt_delegate; - private void on_SelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSelectionChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_SelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SelectionClearedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when selection is cleared public event EventHandler SelectionClearedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.AddHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - if (RemoveNativeEventHandler(key, this.evt_SelectionClearedEvt_delegate)) { - eventHandlers.RemoveHandler(SelectionClearedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SelectionClearedEvt. - public void On_SelectionClearedEvt(EventArgs e) + public void OnSelectionClearedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SelectionClearedEvtKey]; + var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SelectionClearedEvt_delegate; - private void on_SelectionClearedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_SelectionClearedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback); - evt_ChangedUserEvt_delegate = new Efl.EventCb(on_ChangedUserEvt_NativeCallback); - evt_ValidateEvt_delegate = new Efl.EventCb(on_ValidateEvt_NativeCallback); - evt_ContextOpenEvt_delegate = new Efl.EventCb(on_ContextOpenEvt_NativeCallback); - evt_PreeditChangedEvt_delegate = new Efl.EventCb(on_PreeditChangedEvt_NativeCallback); - evt_PressEvt_delegate = new Efl.EventCb(on_PressEvt_NativeCallback); - evt_RedoRequestEvt_delegate = new Efl.EventCb(on_RedoRequestEvt_NativeCallback); - evt_UndoRequestEvt_delegate = new Efl.EventCb(on_UndoRequestEvt_NativeCallback); - evt_AbortedEvt_delegate = new Efl.EventCb(on_AbortedEvt_NativeCallback); - evt_AnchorDownEvt_delegate = new Efl.EventCb(on_AnchorDownEvt_NativeCallback); - evt_AnchorHoverOpenedEvt_delegate = new Efl.EventCb(on_AnchorHoverOpenedEvt_NativeCallback); - evt_AnchorInEvt_delegate = new Efl.EventCb(on_AnchorInEvt_NativeCallback); - evt_AnchorOutEvt_delegate = new Efl.EventCb(on_AnchorOutEvt_NativeCallback); - evt_AnchorUpEvt_delegate = new Efl.EventCb(on_AnchorUpEvt_NativeCallback); - evt_CursorChangedManualEvt_delegate = new Efl.EventCb(on_CursorChangedManualEvt_NativeCallback); - evt_TextSelectionChangedEvt_delegate = new Efl.EventCb(on_TextSelectionChangedEvt_NativeCallback); - evt_AccessTextCaretMovedEvt_delegate = new Efl.EventCb(on_AccessTextCaretMovedEvt_NativeCallback); - evt_AccessTextInsertedEvt_delegate = new Efl.EventCb(on_AccessTextInsertedEvt_NativeCallback); - evt_AccessTextRemovedEvt_delegate = new Efl.EventCb(on_AccessTextRemovedEvt_NativeCallback); - evt_AccessTextSelectionChangedEvt_delegate = new Efl.EventCb(on_AccessTextSelectionChangedEvt_NativeCallback); - evt_ClickedEvt_delegate = new Efl.EventCb(on_ClickedEvt_NativeCallback); - evt_ClickedDoubleEvt_delegate = new Efl.EventCb(on_ClickedDoubleEvt_NativeCallback); - evt_ClickedTripleEvt_delegate = new Efl.EventCb(on_ClickedTripleEvt_NativeCallback); - evt_ClickedRightEvt_delegate = new Efl.EventCb(on_ClickedRightEvt_NativeCallback); - evt_PressedEvt_delegate = new Efl.EventCb(on_PressedEvt_NativeCallback); - evt_UnpressedEvt_delegate = new Efl.EventCb(on_UnpressedEvt_NativeCallback); - evt_LongpressedEvt_delegate = new Efl.EventCb(on_LongpressedEvt_NativeCallback); - evt_RepeatedEvt_delegate = new Efl.EventCb(on_RepeatedEvt_NativeCallback); - evt_ItemSelectedEvt_delegate = new Efl.EventCb(on_ItemSelectedEvt_NativeCallback); - evt_ItemUnselectedEvt_delegate = new Efl.EventCb(on_ItemUnselectedEvt_NativeCallback); - evt_SelectionPasteEvt_delegate = new Efl.EventCb(on_SelectionPasteEvt_NativeCallback); - evt_SelectionCopyEvt_delegate = new Efl.EventCb(on_SelectionCopyEvt_NativeCallback); - evt_SelectionCutEvt_delegate = new Efl.EventCb(on_SelectionCutEvt_NativeCallback); - evt_SelectionStartEvt_delegate = new Efl.EventCb(on_SelectionStartEvt_NativeCallback); - evt_SelectionChangedEvt_delegate = new Efl.EventCb(on_SelectionChangedEvt_NativeCallback); - evt_SelectionClearedEvt_delegate = new Efl.EventCb(on_SelectionClearedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Get the scrollable state of the entry /// Normally the entry is not scrollable. This gets the scrollable state of the entry. /// true if it is to be scrollable, false otherwise. virtual public bool GetScrollable() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_scrollable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_scrollable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable or disable scrolling in entry /// Normally the entry is not scrollable unless you enable it with this call. /// true if it is to be scrollable, false otherwise. - /// - virtual public void SetScrollable( bool scroll) { - Efl.Ui.TextNativeInherit.efl_ui_text_scrollable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scroll); + virtual public void SetScrollable(bool scroll) { + Efl.Ui.Text.NativeMethods.efl_ui_text_scrollable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scroll); Eina.Error.RaiseIfUnhandledException(); } /// Get the attribute to show the input panel in case of only an user's explicit Mouse Up event. /// If true, the input panel will be shown in case of only Mouse up event. (Focus event will be ignored.) virtual public bool GetInputPanelShowOnDemand() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_show_on_demand_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_show_on_demand_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the attribute to show the input panel in case of only a user's explicit Mouse Up event. It doesn't request to show the input panel even though it has focus. /// If true, the input panel will be shown in case of only Mouse up event. (Focus event will be ignored.) - /// - virtual public void SetInputPanelShowOnDemand( bool ondemand) { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_show_on_demand_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ondemand); + virtual public void SetInputPanelShowOnDemand(bool ondemand) { + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_show_on_demand_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ondemand); Eina.Error.RaiseIfUnhandledException(); } /// This returns whether the entry's contextual (longpress) menu is disabled. /// If true, the menu is disabled. virtual public bool GetContextMenuDisabled() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_context_menu_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_context_menu_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This disables the entry's contextual (longpress) menu. /// If true, the menu is disabled. - /// - virtual public void SetContextMenuDisabled( bool disabled) { - Efl.Ui.TextNativeInherit.efl_ui_text_context_menu_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), disabled); + virtual public void SetContextMenuDisabled(bool disabled) { + Efl.Ui.Text.NativeMethods.efl_ui_text_context_menu_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),disabled); Eina.Error.RaiseIfUnhandledException(); } /// Getting elm_entry text paste/drop mode. /// Normally the entry allows both text and images to be pasted. This gets the copy & paste mode of the entry. /// Format for copy & paste. virtual public Efl.Ui.SelectionFormat GetCnpMode() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_cnp_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_cnp_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1788,250 +2181,227 @@ private static object SelectionClearedEvtKey = new object(); /// /// Note: This only changes the behaviour of text. /// Format for copy & paste. - /// - virtual public void SetCnpMode( Efl.Ui.SelectionFormat format) { - Efl.Ui.TextNativeInherit.efl_ui_text_cnp_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), format); + virtual public void SetCnpMode(Efl.Ui.SelectionFormat format) { + Efl.Ui.Text.NativeMethods.efl_ui_text_cnp_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),format); Eina.Error.RaiseIfUnhandledException(); } /// Get the language mode of the input panel. /// Language to be set to the input panel. virtual public Elm.Input.Panel.Lang GetInputPanelLanguage() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_language_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_language_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the language mode of the input panel. /// This API can be used if you want to show the alphabet keyboard mode. /// Language to be set to the input panel. - /// - virtual public void SetInputPanelLanguage( Elm.Input.Panel.Lang lang) { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_language_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), lang); + virtual public void SetInputPanelLanguage(Elm.Input.Panel.Lang lang) { + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_language_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),lang); Eina.Error.RaiseIfUnhandledException(); } /// This returns whether the entry's selection handlers are disabled. /// If true, the selection handlers are disabled. virtual public bool GetSelectionHandlerDisabled() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_selection_handler_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_selection_handler_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This disables the entry's selection handlers. /// If true, the selection handlers are disabled. - /// - virtual public void SetSelectionHandlerDisabled( bool disabled) { - Efl.Ui.TextNativeInherit.efl_ui_text_selection_handler_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), disabled); + virtual public void SetSelectionHandlerDisabled(bool disabled) { + Efl.Ui.Text.NativeMethods.efl_ui_text_selection_handler_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),disabled); Eina.Error.RaiseIfUnhandledException(); } /// Get the input panel layout variation of the entry /// Layout variation type. virtual public int GetInputPanelLayoutVariation() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_layout_variation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_layout_variation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the input panel layout variation of the entry /// Layout variation type. - /// - virtual public void SetInputPanelLayoutVariation( int variation) { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_layout_variation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), variation); + virtual public void SetInputPanelLayoutVariation(int variation) { + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_layout_variation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),variation); Eina.Error.RaiseIfUnhandledException(); } /// Get the autocapitalization type on the immodule. /// The type of autocapitalization. virtual public Elm.Autocapital.Type GetAutocapitalType() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_autocapital_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_autocapital_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the autocapitalization type on the immodule. /// The type of autocapitalization. - /// - virtual public void SetAutocapitalType( Elm.Autocapital.Type autocapital_type) { - Efl.Ui.TextNativeInherit.efl_ui_text_autocapital_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), autocapital_type); + virtual public void SetAutocapitalType(Elm.Autocapital.Type autocapital_type) { + Efl.Ui.Text.NativeMethods.efl_ui_text_autocapital_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),autocapital_type); Eina.Error.RaiseIfUnhandledException(); } /// Get whether the entry is set to password mode. /// If true, password mode is enabled. virtual public bool GetPasswordMode() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_password_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_password_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the entry to password mode. /// In password mode entries are implicitly single line and the display of any text inside them is replaced with asterisks (*). /// If true, password mode is enabled. - /// - virtual public void SetPasswordMode( bool password) { - Efl.Ui.TextNativeInherit.efl_ui_text_password_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), password); + virtual public void SetPasswordMode(bool password) { + Efl.Ui.Text.NativeMethods.efl_ui_text_password_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),password); Eina.Error.RaiseIfUnhandledException(); } /// Get whether the return key on the input panel should be disabled or not. /// The state to put in in: true for disabled, false for enabled. virtual public bool GetInputPanelReturnKeyDisabled() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_return_key_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_return_key_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the return key on the input panel to be disabled. /// The state to put in in: true for disabled, false for enabled. - /// - virtual public void SetInputPanelReturnKeyDisabled( bool disabled) { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_return_key_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), disabled); + virtual public void SetInputPanelReturnKeyDisabled(bool disabled) { + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_return_key_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),disabled); Eina.Error.RaiseIfUnhandledException(); } /// Get whether the entry allows predictive text. /// Whether the entry should allow predictive text. virtual public bool GetPredictionAllow() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_prediction_allow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_prediction_allow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set whether the entry should allow predictive text. /// Whether the entry should allow predictive text. - /// - virtual public void SetPredictionAllow( bool prediction) { - Efl.Ui.TextNativeInherit.efl_ui_text_prediction_allow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), prediction); + virtual public void SetPredictionAllow(bool prediction) { + Efl.Ui.Text.NativeMethods.efl_ui_text_prediction_allow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),prediction); Eina.Error.RaiseIfUnhandledException(); } /// Gets the value of input hint. /// Input hint. virtual public Elm.Input.Hints GetInputHint() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_input_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_input_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the input hint which allows input methods to fine-tune their behavior. /// Input hint. - /// - virtual public void SetInputHint( Elm.Input.Hints hints) { - Efl.Ui.TextNativeInherit.efl_ui_text_input_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hints); + virtual public void SetInputHint(Elm.Input.Hints hints) { + Efl.Ui.Text.NativeMethods.efl_ui_text_input_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hints); Eina.Error.RaiseIfUnhandledException(); } /// Get the input panel layout of the entry. /// Layout type. virtual public Elm.Input.Panel.Layout GetInputPanelLayout() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_layout_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_layout_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the input panel layout of the entry. /// Layout type. - /// - virtual public void SetInputPanelLayout( Elm.Input.Panel.Layout layout) { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_layout_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), layout); + virtual public void SetInputPanelLayout(Elm.Input.Panel.Layout layout) { + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_layout_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),layout); Eina.Error.RaiseIfUnhandledException(); } /// Get the "return" key type. /// The type of "return" key on the input panel. virtual public Elm.Input.Panel.ReturnKey.Type GetInputPanelReturnKeyType() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_return_key_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_return_key_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the "return" key type. This type is used to set string or icon on the "return" key of the input panel. /// An input panel displays the string or icon associated with this type. /// The type of "return" key on the input panel. - /// - virtual public void SetInputPanelReturnKeyType( Elm.Input.Panel.ReturnKey.Type return_key_type) { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_return_key_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), return_key_type); + virtual public void SetInputPanelReturnKeyType(Elm.Input.Panel.ReturnKey.Type return_key_type) { + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_return_key_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),return_key_type); Eina.Error.RaiseIfUnhandledException(); } /// Get the attribute to show the input panel automatically. /// If true, the input panel is appeared when entry is clicked or has a focus. virtual public bool GetInputPanelEnabled() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the attribute to show the input panel automatically. /// If true, the input panel is appeared when entry is clicked or has a focus. - /// - virtual public void SetInputPanelEnabled( bool enabled) { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enabled); + virtual public void SetInputPanelEnabled(bool enabled) { + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enabled); Eina.Error.RaiseIfUnhandledException(); } /// Set whether the return key on the input panel is disabled automatically when entry has no text. /// If enabled is true, the return key on input panel is disabled when the entry has no text. The return key on the input panel is automatically enabled when the entry has text. The default value is false. /// If enabled is true, the return key is automatically disabled when the entry has no text. - /// - virtual public void SetInputPanelReturnKeyAutoenabled( bool enabled) { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_return_key_autoenabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enabled); + virtual public void SetInputPanelReturnKeyAutoenabled(bool enabled) { + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_return_key_autoenabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enabled); Eina.Error.RaiseIfUnhandledException(); } /// The factory that provides item in the text e.g. "emoticon/happy" or "href=file://image.jpg" etc. /// Factory to create items virtual public Efl.Canvas.ITextFactory GetItemFactory() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_item_factory_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_item_factory_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The factory that provides item in the text e.g. "emoticon/happy" or "href=file://image.jpg" etc. /// Factory to create items - /// - virtual public void SetItemFactory( Efl.Canvas.ITextFactory item_factory) { - Efl.Ui.TextNativeInherit.efl_ui_text_item_factory_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), item_factory); + virtual public void SetItemFactory(Efl.Canvas.ITextFactory item_factory) { + Efl.Ui.Text.NativeMethods.efl_ui_text_item_factory_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),item_factory); Eina.Error.RaiseIfUnhandledException(); } /// Show the input panel (virtual keyboard) based on the input panel property of entry such as layout, autocapital types and so on. /// Note that input panel is shown or hidden automatically according to the focus state of entry widget. This API can be used in the case of manually controlling by using (en, false). - /// virtual public void ShowInputPanel() { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_show_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_show_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This executes a "copy" action on the selected text in the entry. - /// virtual public void SelectionCopy() { - Efl.Ui.TextNativeInherit.efl_ui_text_selection_copy_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Text.NativeMethods.efl_ui_text_selection_copy_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This clears and frees the items in a entry's contextual (longpress) menu. /// See also . - /// virtual public void ClearContextMenu() { - Efl.Ui.TextNativeInherit.efl_ui_text_context_menu_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Text.NativeMethods.efl_ui_text_context_menu_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Set the input panel-specific data to deliver to the input panel. /// This API is used by applications to deliver specific data to the input panel. The data format MUST be negotiated by both application and the input panel. The size and format of data are defined by the input panel. /// The specific data to be set to the input panel. /// The length of data, in bytes, to send to the input panel. - /// - virtual public void SetInputPanelImdata( System.IntPtr data, int len) { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_imdata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), data, len); + virtual public void SetInputPanelImdata(System.IntPtr data, int len) { + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_imdata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),data, len); Eina.Error.RaiseIfUnhandledException(); } /// Get the specific data of the current input panel. /// The specific data to be obtained from the input panel. /// The length of data. - /// - virtual public void GetInputPanelImdata( ref System.IntPtr data, out int len) { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_imdata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref data, out len); + virtual public void GetInputPanelImdata(ref System.IntPtr data, out int len) { + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_imdata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref data, out len); Eina.Error.RaiseIfUnhandledException(); } /// This executes a "paste" action in the entry. - /// virtual public void SelectionPaste() { - Efl.Ui.TextNativeInherit.efl_ui_text_selection_paste_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Text.NativeMethods.efl_ui_text_selection_paste_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Hide the input panel (virtual keyboard). /// Note that input panel is shown or hidden automatically according to the focus state of entry widget. This API can be used in the case of manually controlling by using (en, false) - /// virtual public void HideInputPanel() { - Efl.Ui.TextNativeInherit.efl_ui_text_input_panel_hide_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Text.NativeMethods.efl_ui_text_input_panel_hide_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This ends a selection within the entry as though the user had just released the mouse button while making a selection. - /// virtual public void CursorSelectionEnd() { - Efl.Ui.TextNativeInherit.efl_ui_text_cursor_selection_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Text.NativeMethods.efl_ui_text_cursor_selection_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This executes a "cut" action on the selected text in the entry. - /// virtual public void SelectionCut() { - Efl.Ui.TextNativeInherit.efl_ui_text_selection_cut_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Text.NativeMethods.efl_ui_text_selection_cut_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This adds an item to the entry's contextual menu. @@ -2043,15 +2413,14 @@ private static object SelectionClearedEvtKey = new object(); /// The item's icon type. /// The callback to execute when the item is clicked. /// The data to associate with the item for related functions. - /// - virtual public void AddContextMenuItem( System.String label, System.String icon_file, Elm.Icon.Type icon_type, EvasSmartCb func, System.IntPtr data) { - Efl.Ui.TextNativeInherit.efl_ui_text_context_menu_item_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), label, icon_file, icon_type, func, data); + virtual public void AddContextMenuItem(System.String label, System.String icon_file, Elm.Icon.Type icon_type, EvasSmartCb func, System.IntPtr data) { + Efl.Ui.Text.NativeMethods.efl_ui_text_context_menu_item_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),label, icon_file, icon_type, func, data); Eina.Error.RaiseIfUnhandledException(); } /// Creates and returns a new cursor for the text. /// Text cursor virtual public Efl.TextCursorCursor NewCursor() { - var _ret_var = Efl.Ui.TextNativeInherit.efl_ui_text_cursor_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_cursor_new_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2059,7 +2428,7 @@ private static object SelectionClearedEvtKey = new object(); /// (Since EFL 1.22) /// The handle to the that will be used virtual public Eina.File GetMmap() { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2068,8 +2437,8 @@ private static object SelectionClearedEvtKey = new object(); /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise - virtual public Eina.Error SetMmap( Eina.File f) { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public Eina.Error SetMmap(Eina.File f) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2078,7 +2447,7 @@ private static object SelectionClearedEvtKey = new object(); /// (Since EFL 1.22) /// The file path. virtual public System.String GetFile() { - var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2087,8 +2456,8 @@ private static object SelectionClearedEvtKey = new object(); /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise - virtual public Eina.Error SetFile( System.String file) { - var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file); + virtual public Eina.Error SetFile(System.String file) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2099,7 +2468,7 @@ private static object SelectionClearedEvtKey = new object(); /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. virtual public System.String GetKey() { - var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2107,16 +2476,15 @@ private static object SelectionClearedEvtKey = new object(); /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. - /// - virtual public void SetKey( System.String key) { - Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public void SetKey(System.String key) { + Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. virtual public bool GetLoaded() { - var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2127,7 +2495,7 @@ private static object SelectionClearedEvtKey = new object(); /// (Since EFL 1.22) /// 0 on success, error code otherwise virtual public Eina.Error Load() { - var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2136,9 +2504,8 @@ private static object SelectionClearedEvtKey = new object(); /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) - /// virtual public void Unload() { - Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the text string currently being displayed by the given text object. @@ -2148,7 +2515,7 @@ private static object SelectionClearedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2156,9 +2523,8 @@ private static object SelectionClearedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Retrieve the font family and size in use on a given text object. @@ -2167,9 +2533,8 @@ private static object SelectionClearedEvtKey = new object(); /// See also . /// The font family name or filename. /// The font size, in points. - /// - virtual public void GetFont( out System.String font, out Efl.Font.Size size) { - Efl.ITextFontNativeInherit.efl_text_font_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out font, out size); + virtual public void GetFont(out System.String font, out Efl.Font.Size size) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out font, out size); Eina.Error.RaiseIfUnhandledException(); } /// Set the font family, filename and size for a given text object. @@ -2178,16 +2543,15 @@ private static object SelectionClearedEvtKey = new object(); /// See also , . /// The font family name or filename. /// The font size, in points. - /// - virtual public void SetFont( System.String font, Efl.Font.Size size) { - Efl.ITextFontNativeInherit.efl_text_font_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), font, size); + virtual public void SetFont(System.String font, Efl.Font.Size size) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),font, size); Eina.Error.RaiseIfUnhandledException(); } /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. virtual public System.String GetFontSource() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2196,279 +2560,260 @@ private static object SelectionClearedEvtKey = new object(); /// /// See also . /// The font file's path. - /// - virtual public void SetFontSource( System.String font_source) { - Efl.ITextFontNativeInherit.efl_text_font_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), font_source); + virtual public void SetFontSource(System.String font_source) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),font_source); Eina.Error.RaiseIfUnhandledException(); } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks virtual public System.String GetFontFallbacks() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_fallbacks_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks - /// - virtual public void SetFontFallbacks( System.String font_fallbacks) { - Efl.ITextFontNativeInherit.efl_text_font_fallbacks_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), font_fallbacks); + virtual public void SetFontFallbacks(System.String font_fallbacks) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),font_fallbacks); Eina.Error.RaiseIfUnhandledException(); } /// Type of weight of the displayed font /// Default is . /// Font weight virtual public Efl.TextFontWeight GetFontWeight() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_weight_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of weight of the displayed font /// Default is . /// Font weight - /// - virtual public void SetFontWeight( Efl.TextFontWeight font_weight) { - Efl.ITextFontNativeInherit.efl_text_font_weight_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), font_weight); + virtual public void SetFontWeight(Efl.TextFontWeight font_weight) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),font_weight); Eina.Error.RaiseIfUnhandledException(); } /// Type of slant of the displayed font /// Default is . /// Font slant virtual public Efl.TextFontSlant GetFontSlant() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_slant_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of slant of the displayed font /// Default is . /// Font slant - /// - virtual public void SetFontSlant( Efl.TextFontSlant style) { - Efl.ITextFontNativeInherit.efl_text_font_slant_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), style); + virtual public void SetFontSlant(Efl.TextFontSlant style) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),style); Eina.Error.RaiseIfUnhandledException(); } /// Type of width of the displayed font /// Default is . /// Font width virtual public Efl.TextFontWidth GetFontWidth() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_width_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of width of the displayed font /// Default is . /// Font width - /// - virtual public void SetFontWidth( Efl.TextFontWidth width) { - Efl.ITextFontNativeInherit.efl_text_font_width_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), width); + virtual public void SetFontWidth(Efl.TextFontWidth width) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),width); Eina.Error.RaiseIfUnhandledException(); } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language virtual public System.String GetFontLang() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_lang_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language - /// - virtual public void SetFontLang( System.String lang) { - Efl.ITextFontNativeInherit.efl_text_font_lang_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), lang); + virtual public void SetFontLang(System.String lang) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),lang); Eina.Error.RaiseIfUnhandledException(); } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable virtual public Efl.TextFontBitmapScalable GetFontBitmapScalable() { - var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_bitmap_scalable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable - /// - virtual public void SetFontBitmapScalable( Efl.TextFontBitmapScalable scalable) { - Efl.ITextFontNativeInherit.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scalable); + virtual public void SetFontBitmapScalable(Efl.TextFontBitmapScalable scalable) { + Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scalable); Eina.Error.RaiseIfUnhandledException(); } /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value virtual public double GetEllipsis() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_ellipsis_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_ellipsis_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value - /// - virtual public void SetEllipsis( double value) { - Efl.ITextFormatNativeInherit.efl_text_ellipsis_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetEllipsis(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_ellipsis_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Wrap mode for use in the text /// Wrap mode virtual public Efl.TextFormatWrap GetWrap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_wrap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_wrap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Wrap mode for use in the text /// Wrap mode - /// - virtual public void SetWrap( Efl.TextFormatWrap wrap) { - Efl.ITextFormatNativeInherit.efl_text_wrap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), wrap); + virtual public void SetWrap(Efl.TextFormatWrap wrap) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_wrap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),wrap); Eina.Error.RaiseIfUnhandledException(); } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise virtual public bool GetMultiline() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_multiline_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_multiline_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise - /// - virtual public void SetMultiline( bool enabled) { - Efl.ITextFormatNativeInherit.efl_text_multiline_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enabled); + virtual public void SetMultiline(bool enabled) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_multiline_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enabled); Eina.Error.RaiseIfUnhandledException(); } /// Horizontal alignment of text /// Alignment type virtual public Efl.TextFormatHorizontalAlignmentAutoType GetHalignAutoType() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_halign_auto_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_auto_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Horizontal alignment of text /// Alignment type - /// - virtual public void SetHalignAutoType( Efl.TextFormatHorizontalAlignmentAutoType value) { - Efl.ITextFormatNativeInherit.efl_text_halign_auto_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetHalignAutoType(Efl.TextFormatHorizontalAlignmentAutoType value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_auto_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Horizontal alignment of text /// Horizontal alignment value virtual public double GetHalign() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_halign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Horizontal alignment of text /// Horizontal alignment value - /// - virtual public void SetHalign( double value) { - Efl.ITextFormatNativeInherit.efl_text_halign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetHalign(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_halign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Vertical alignment of text /// Vertical alignment value virtual public double GetValign() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_valign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_valign_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Vertical alignment of text /// Vertical alignment value - /// - virtual public void SetValign( double value) { - Efl.ITextFormatNativeInherit.efl_text_valign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetValign(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_valign_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value virtual public double GetLinegap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_linegap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_linegap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value - /// - virtual public void SetLinegap( double value) { - Efl.ITextFormatNativeInherit.efl_text_linegap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetLinegap(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_linegap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value virtual public double GetLinerelgap() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_linerelgap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_linerelgap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value - /// - virtual public void SetLinerelgap( double value) { - Efl.ITextFormatNativeInherit.efl_text_linerelgap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetLinerelgap(double value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_linerelgap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Tabstops value /// Tapstops value virtual public int GetTabstops() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_tabstops_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_tabstops_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Tabstops value /// Tapstops value - /// - virtual public void SetTabstops( int value) { - Efl.ITextFormatNativeInherit.efl_text_tabstops_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), value); + virtual public void SetTabstops(int value) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_tabstops_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),value); Eina.Error.RaiseIfUnhandledException(); } /// Whether text is a password /// true if the text is a password, false otherwise virtual public bool GetPassword() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_password_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_password_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether text is a password /// true if the text is a password, false otherwise - /// - virtual public void SetPassword( bool enabled) { - Efl.ITextFormatNativeInherit.efl_text_password_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enabled); + virtual public void SetPassword(bool enabled) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_password_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enabled); Eina.Error.RaiseIfUnhandledException(); } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character virtual public System.String GetReplacementChar() { - var _ret_var = Efl.ITextFormatNativeInherit.efl_text_replacement_char_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextFormatConcrete.NativeMethods.efl_text_replacement_char_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character - /// - virtual public void SetReplacementChar( System.String repch) { - Efl.ITextFormatNativeInherit.efl_text_replacement_char_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), repch); + virtual public void SetReplacementChar(System.String repch) { + Efl.ITextFormatConcrete.NativeMethods.efl_text_replacement_char_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),repch); Eina.Error.RaiseIfUnhandledException(); } /// Whether or not selection is allowed on this object /// true if enabled, false otherwise virtual public bool GetSelectionAllowed() { - var _ret_var = Efl.ITextInteractiveNativeInherit.efl_text_interactive_selection_allowed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_selection_allowed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether or not selection is allowed on this object /// true if enabled, false otherwise - /// - virtual public void SetSelectionAllowed( bool allowed) { - Efl.ITextInteractiveNativeInherit.efl_text_interactive_selection_allowed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), allowed); + virtual public void SetSelectionAllowed(bool allowed) { + Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_selection_allowed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),allowed); Eina.Error.RaiseIfUnhandledException(); } /// The cursors used for selection handling. @@ -2477,31 +2822,28 @@ private static object SelectionClearedEvtKey = new object(); /// You are allowed to retain and modify them. Modifying them modifies the selection of the object. /// The start of the selection /// The end of the selection - /// - virtual public void GetSelectionCursors( out Efl.TextCursorCursor start, out Efl.TextCursorCursor end) { - Efl.ITextInteractiveNativeInherit.efl_text_interactive_selection_cursors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out start, out end); + virtual public void GetSelectionCursors(out Efl.TextCursorCursor start, out Efl.TextCursorCursor end) { + Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_selection_cursors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out start, out end); Eina.Error.RaiseIfUnhandledException(); } /// Whether the entry is editable. /// By default text interactives are editable. However setting this property to false will make it so that key input will be disregarded. /// If true, user input will be inserted in the entry, if not, the entry is read-only and no user input is allowed. virtual public bool GetEditable() { - var _ret_var = Efl.ITextInteractiveNativeInherit.efl_text_interactive_editable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_editable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether the entry is editable. /// By default text interactives are editable. However setting this property to false will make it so that key input will be disregarded. /// If true, user input will be inserted in the entry, if not, the entry is read-only and no user input is allowed. - /// - virtual public void SetEditable( bool editable) { - Efl.ITextInteractiveNativeInherit.efl_text_interactive_editable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), editable); + virtual public void SetEditable(bool editable) { + Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_editable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),editable); Eina.Error.RaiseIfUnhandledException(); } /// Clears the selection. - /// virtual public void SelectNone() { - Efl.ITextInteractiveNativeInherit.efl_text_interactive_select_none_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.ITextInteractiveConcrete.NativeMethods.efl_text_interactive_select_none_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Color of text, excluding style @@ -2509,9 +2851,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void GetNormalColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_normal_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetNormalColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_normal_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of text, excluding style @@ -2519,23 +2860,21 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void SetNormalColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_normal_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetNormalColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_normal_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Enable or disable backing type /// Backing type virtual public Efl.TextStyleBackingType GetBackingType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_backing_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Enable or disable backing type /// Backing type - /// - virtual public void SetBackingType( Efl.TextStyleBackingType type) { - Efl.ITextStyleNativeInherit.efl_text_backing_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetBackingType(Efl.TextStyleBackingType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Backing color @@ -2543,9 +2882,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void GetBackingColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_backing_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetBackingColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Backing color @@ -2553,23 +2891,21 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void SetBackingColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_backing_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetBackingColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_backing_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Sets an underline style on the text /// Underline type virtual public Efl.TextStyleUnderlineType GetUnderlineType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets an underline style on the text /// Underline type - /// - virtual public void SetUnderlineType( Efl.TextStyleUnderlineType type) { - Efl.ITextStyleNativeInherit.efl_text_underline_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetUnderlineType(Efl.TextStyleUnderlineType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Color of normal underline style @@ -2577,9 +2913,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void GetUnderlineColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetUnderlineColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of normal underline style @@ -2587,23 +2922,21 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void SetUnderlineColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetUnderlineColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Height of underline style /// Height virtual public double GetUnderlineHeight() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_height_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_height_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Height of underline style /// Height - /// - virtual public void SetUnderlineHeight( double height) { - Efl.ITextStyleNativeInherit.efl_text_underline_height_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), height); + virtual public void SetUnderlineHeight(double height) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_height_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),height); Eina.Error.RaiseIfUnhandledException(); } /// Color of dashed underline style @@ -2611,9 +2944,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void GetUnderlineDashedColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetUnderlineDashedColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of dashed underline style @@ -2621,37 +2953,34 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void SetUnderlineDashedColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetUnderlineDashedColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Width of dashed underline style /// Width virtual public int GetUnderlineDashedWidth() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_dashed_width_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_width_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Width of dashed underline style /// Width - /// - virtual public void SetUnderlineDashedWidth( int width) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_width_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), width); + virtual public void SetUnderlineDashedWidth(int width) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_width_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),width); Eina.Error.RaiseIfUnhandledException(); } /// Gap of dashed underline style /// Gap virtual public int GetUnderlineDashedGap() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_underline_dashed_gap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_gap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gap of dashed underline style /// Gap - /// - virtual public void SetUnderlineDashedGap( int gap) { - Efl.ITextStyleNativeInherit.efl_text_underline_dashed_gap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), gap); + virtual public void SetUnderlineDashedGap(int gap) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline_dashed_gap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),gap); Eina.Error.RaiseIfUnhandledException(); } /// Color of underline2 style @@ -2659,9 +2988,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void GetUnderline2Color( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline2_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetUnderline2Color(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline2_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of underline2 style @@ -2669,23 +2997,21 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void SetUnderline2Color( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_underline2_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetUnderline2Color(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_underline2_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Type of strikethrough style /// Strikethrough type virtual public Efl.TextStyleStrikethroughType GetStrikethroughType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_strikethrough_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of strikethrough style /// Strikethrough type - /// - virtual public void SetStrikethroughType( Efl.TextStyleStrikethroughType type) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetStrikethroughType(Efl.TextStyleStrikethroughType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Color of strikethrough_style @@ -2693,9 +3019,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void GetStrikethroughColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetStrikethroughColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of strikethrough_style @@ -2703,23 +3028,21 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void SetStrikethroughColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_strikethrough_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetStrikethroughColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_strikethrough_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Type of effect used for the displayed text /// Effect type virtual public Efl.TextStyleEffectType GetEffectType() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_effect_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_effect_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type of effect used for the displayed text /// Effect type - /// - virtual public void SetEffectType( Efl.TextStyleEffectType type) { - Efl.ITextStyleNativeInherit.efl_text_effect_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetEffectType(Efl.TextStyleEffectType type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_effect_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Color of outline effect @@ -2727,9 +3050,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void GetOutlineColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_outline_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetOutlineColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_outline_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of outline effect @@ -2737,23 +3059,21 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void SetOutlineColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_outline_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetOutlineColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_outline_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Direction of shadow effect /// Shadow direction virtual public Efl.TextStyleShadowDirection GetShadowDirection() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_shadow_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Direction of shadow effect /// Shadow direction - /// - virtual public void SetShadowDirection( Efl.TextStyleShadowDirection type) { - Efl.ITextStyleNativeInherit.efl_text_shadow_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetShadowDirection(Efl.TextStyleShadowDirection type) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Color of shadow effect @@ -2761,9 +3081,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void GetShadowColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_shadow_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetShadowColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of shadow effect @@ -2771,9 +3090,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void SetShadowColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_shadow_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetShadowColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_shadow_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Color of glow effect @@ -2781,9 +3099,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void GetGlowColor( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetGlowColor(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Color of glow effect @@ -2791,9 +3108,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void SetGlowColor( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetGlowColor(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Second color of the glow effect @@ -2801,9 +3117,8 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void GetGlow2Color( out byte r, out byte g, out byte b, out byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow2_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetGlow2Color(out byte r, out byte g, out byte b, out byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow2_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Second color of the glow effect @@ -2811,32 +3126,30 @@ private static object SelectionClearedEvtKey = new object(); /// Green component /// Blue component /// Alpha component - /// - virtual public void SetGlow2Color( byte r, byte g, byte b, byte a) { - Efl.ITextStyleNativeInherit.efl_text_glow2_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetGlow2Color(byte r, byte g, byte b, byte a) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_glow2_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Program that applies a special filter /// See . /// Filter code virtual public System.String GetGfxFilter() { - var _ret_var = Efl.ITextStyleNativeInherit.efl_text_gfx_filter_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextStyleConcrete.NativeMethods.efl_text_gfx_filter_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Program that applies a special filter /// See . /// Filter code - /// - virtual public void SetGfxFilter( System.String code) { - Efl.ITextStyleNativeInherit.efl_text_gfx_filter_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), code); + virtual public void SetGfxFilter(System.String code) { + Efl.ITextStyleConcrete.NativeMethods.efl_text_gfx_filter_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),code); Eina.Error.RaiseIfUnhandledException(); } /// Gets single character present in accessible widget's text at given offset. /// Position in text. /// Character at offset. 0 when out-of bounds offset has been given. Codepoints between DC80 and DCFF indicates that string includes invalid UTF8 chars. - virtual public Eina.Unicode GetCharacter( int offset) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_character_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), offset); + virtual public Eina.Unicode GetCharacter(int offset) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_character_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2845,10 +3158,10 @@ private static object SelectionClearedEvtKey = new object(); /// Offset indicating start of string according to given granularity. -1 in case of error. /// Offset indicating end of string according to given granularity. -1 in case of error. /// Newly allocated UTF-8 encoded string. Must be free by a user. - virtual public System.String GetString( Efl.Access.TextGranularity granularity, int start_offset, int end_offset) { + virtual public System.String GetString(Efl.Access.TextGranularity granularity, int start_offset, int end_offset) { var _in_start_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(start_offset); var _in_end_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(end_offset); - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), granularity, _in_start_offset, _in_end_offset); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_string_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),granularity, _in_start_offset, _in_end_offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2856,23 +3169,23 @@ private static object SelectionClearedEvtKey = new object(); /// Position in text. /// End offset of text. /// UTF-8 encoded text. - virtual public System.String GetAccessText( int start_offset, int end_offset) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), start_offset, end_offset); + virtual public System.String GetAccessText(int start_offset, int end_offset) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),start_offset, end_offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets offset position of caret (cursor) /// Offset virtual public int GetCaretOffset() { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_caret_offset_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_caret_offset_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Caret offset property /// Offset /// true if caret was successfully moved, false otherwise. - virtual public bool SetCaretOffset( int offset) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_caret_offset_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), offset); + virtual public bool SetCaretOffset(int offset) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_caret_offset_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2882,10 +3195,10 @@ private static object SelectionClearedEvtKey = new object(); /// Position in text to which given attribute is set. /// Value of text attribute. Should be free() /// true if attribute name is set, false otherwise - virtual public bool GetAttribute( System.String name, int start_offset, int end_offset, out System.String value) { + virtual public bool GetAttribute(System.String name, int start_offset, int end_offset, out System.String value) { var _in_start_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(start_offset); var _in_end_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(end_offset); - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_attribute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, _in_start_offset, _in_end_offset, out value); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_attribute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, _in_start_offset, _in_end_offset, out value); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2893,17 +3206,17 @@ private static object SelectionClearedEvtKey = new object(); /// Start offset /// End offset /// List of text attributes - virtual public Eina.List GetTextAttributes( int start_offset, int end_offset) { + virtual public Eina.List GetTextAttributes(int start_offset, int end_offset) { var _in_start_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(start_offset); var _in_end_offset = Eina.PrimitiveConversion.ManagedToPointerAlloc(end_offset); - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_attributes_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_start_offset, _in_end_offset); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_attributes_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_start_offset, _in_end_offset); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, true); } /// Default attributes /// List of default attributes virtual public Eina.List GetDefaultAttributes() { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_default_attributes_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_default_attributes_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, true); } @@ -2912,9 +3225,9 @@ private static object SelectionClearedEvtKey = new object(); /// If true, x and y values will be relative to screen origin, otherwise relative to canvas /// Extents rectangle /// true if character extents, false otherwise - virtual public bool GetCharacterExtents( int offset, bool screen_coords, out Eina.Rect rect) { + virtual public bool GetCharacterExtents(int offset, bool screen_coords, out Eina.Rect rect) { var _out_rect = new Eina.Rect.NativeStruct(); - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_character_extents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), offset, screen_coords, out _out_rect); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_character_extents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),offset, screen_coords, out _out_rect); Eina.Error.RaiseIfUnhandledException(); rect = _out_rect; return _ret_var; @@ -2922,7 +3235,7 @@ private static object SelectionClearedEvtKey = new object(); /// Character count /// Character count virtual public int GetCharacterCount() { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_character_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_character_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2931,8 +3244,8 @@ private static object SelectionClearedEvtKey = new object(); /// X coordinate /// Y coordinate /// Offset - virtual public int GetOffsetAtPoint( bool screen_coords, int x, int y) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_offset_at_point_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), screen_coords, x, y); + virtual public int GetOffsetAtPoint(bool screen_coords, int x, int y) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_offset_at_point_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),screen_coords, x, y); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2942,9 +3255,9 @@ private static object SelectionClearedEvtKey = new object(); /// xclip /// yclip /// List of ranges - virtual public Eina.List GetBoundedRanges( bool screen_coords, Eina.Rect rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip) { + virtual public Eina.List GetBoundedRanges(bool screen_coords, Eina.Rect rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip) { Eina.Rect.NativeStruct _in_rect = rect; - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_bounded_ranges_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), screen_coords, _in_rect, xclip, yclip); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_bounded_ranges_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),screen_coords, _in_rect, xclip, yclip); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, true); } @@ -2954,9 +3267,9 @@ private static object SelectionClearedEvtKey = new object(); /// End offset /// Range rectangle /// true if range extents, false otherwise - virtual public bool GetRangeExtents( bool screen_coords, int start_offset, int end_offset, out Eina.Rect rect) { + virtual public bool GetRangeExtents(bool screen_coords, int start_offset, int end_offset, out Eina.Rect rect) { var _out_rect = new Eina.Rect.NativeStruct(); - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_range_extents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), screen_coords, start_offset, end_offset, out _out_rect); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_range_extents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),screen_coords, start_offset, end_offset, out _out_rect); Eina.Error.RaiseIfUnhandledException(); rect = _out_rect; return _ret_var; @@ -2964,7 +3277,7 @@ private static object SelectionClearedEvtKey = new object(); /// Selection count property /// Selection counter virtual public int GetSelectionsCount() { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_selections_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_selections_count_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2972,9 +3285,8 @@ private static object SelectionClearedEvtKey = new object(); /// Selection number for identification /// Selection start offset /// Selection end offset - /// - virtual public void GetAccessSelection( int selection_number, out int start_offset, out int end_offset) { - Efl.Access.ITextNativeInherit.efl_access_text_access_selection_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), selection_number, out start_offset, out end_offset); + virtual public void GetAccessSelection(int selection_number, out int start_offset, out int end_offset) { + Efl.Access.ITextConcrete.NativeMethods.efl_access_text_access_selection_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),selection_number, out start_offset, out end_offset); Eina.Error.RaiseIfUnhandledException(); } /// Selection property @@ -2982,8 +3294,8 @@ private static object SelectionClearedEvtKey = new object(); /// Selection start offset /// Selection end offset /// true if selection was set, false otherwise - virtual public bool SetAccessSelection( int selection_number, int start_offset, int end_offset) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_access_selection_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), selection_number, start_offset, end_offset); + virtual public bool SetAccessSelection(int selection_number, int start_offset, int end_offset) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_access_selection_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),selection_number, start_offset, end_offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2991,24 +3303,24 @@ private static object SelectionClearedEvtKey = new object(); /// Start selection from this offset /// End selection at this offset /// true if selection was added, false otherwise - virtual public bool AddSelection( int start_offset, int end_offset) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_selection_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), start_offset, end_offset); + virtual public bool AddSelection(int start_offset, int end_offset) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_selection_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),start_offset, end_offset); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Remove selection /// Selection number to be removed /// true if selection was removed, false otherwise - virtual public bool SelectionRemove( int selection_number) { - var _ret_var = Efl.Access.ITextNativeInherit.efl_access_text_selection_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), selection_number); + virtual public bool SelectionRemove(int selection_number) { + var _ret_var = Efl.Access.ITextConcrete.NativeMethods.efl_access_text_selection_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),selection_number); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Editable content property /// Content /// true if setting the value succeeded, false otherwise - virtual public bool SetTextContent( System.String kw_string) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_string); + virtual public bool SetTextContent(System.String kw_string) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_string); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -3016,8 +3328,8 @@ private static object SelectionClearedEvtKey = new object(); /// String to be inserted /// Position to insert string /// true if insert succeeded, false otherwise - virtual public bool Insert( System.String kw_string, int position) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_insert_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_string, position); + virtual public bool Insert(System.String kw_string, int position) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_insert_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_string, position); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -3025,8 +3337,8 @@ private static object SelectionClearedEvtKey = new object(); /// Start position to copy /// End position to copy /// true if copy succeeded, false otherwise - virtual public bool Copy( int start, int end) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_copy_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), start, end); + virtual public bool Copy(int start, int end) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_copy_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),start, end); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -3034,8 +3346,8 @@ private static object SelectionClearedEvtKey = new object(); /// Start position to cut /// End position to cut /// true if cut succeeded, false otherwise - virtual public bool Cut( int start, int end) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_cut_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), start, end); + virtual public bool Cut(int start, int end) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_cut_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),start, end); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -3043,16 +3355,16 @@ private static object SelectionClearedEvtKey = new object(); /// Start position to delete /// End position to delete /// true if delete succeeded, false otherwise - virtual public bool Delete( int start, int end) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_delete_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), start, end); + virtual public bool Delete(int start, int end) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_delete_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),start, end); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Paste text at given position /// Position to insert text /// true if paste succeeded, false otherwise - virtual public bool Paste( int position) { - var _ret_var = Efl.Access.Editable.ITextNativeInherit.efl_access_editable_text_paste_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), position); + virtual public bool Paste(int position) { + var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_paste_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),position); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -3061,111 +3373,111 @@ private static object SelectionClearedEvtKey = new object(); /// true if it is to be scrollable, false otherwise. public bool Scrollable { get { return GetScrollable(); } - set { SetScrollable( value); } + set { SetScrollable(value); } } /// Get the attribute to show the input panel in case of only an user's explicit Mouse Up event. /// If true, the input panel will be shown in case of only Mouse up event. (Focus event will be ignored.) public bool InputPanelShowOnDemand { get { return GetInputPanelShowOnDemand(); } - set { SetInputPanelShowOnDemand( value); } + set { SetInputPanelShowOnDemand(value); } } /// This returns whether the entry's contextual (longpress) menu is disabled. /// If true, the menu is disabled. public bool ContextMenuDisabled { get { return GetContextMenuDisabled(); } - set { SetContextMenuDisabled( value); } + set { SetContextMenuDisabled(value); } } /// Getting elm_entry text paste/drop mode. /// Normally the entry allows both text and images to be pasted. This gets the copy & paste mode of the entry. /// Format for copy & paste. public Efl.Ui.SelectionFormat CnpMode { get { return GetCnpMode(); } - set { SetCnpMode( value); } + set { SetCnpMode(value); } } /// Get the language mode of the input panel. /// Language to be set to the input panel. public Elm.Input.Panel.Lang InputPanelLanguage { get { return GetInputPanelLanguage(); } - set { SetInputPanelLanguage( value); } + set { SetInputPanelLanguage(value); } } /// This returns whether the entry's selection handlers are disabled. /// If true, the selection handlers are disabled. public bool SelectionHandlerDisabled { get { return GetSelectionHandlerDisabled(); } - set { SetSelectionHandlerDisabled( value); } + set { SetSelectionHandlerDisabled(value); } } /// Get the input panel layout variation of the entry /// Layout variation type. public int InputPanelLayoutVariation { get { return GetInputPanelLayoutVariation(); } - set { SetInputPanelLayoutVariation( value); } + set { SetInputPanelLayoutVariation(value); } } /// Get the autocapitalization type on the immodule. /// The type of autocapitalization. public Elm.Autocapital.Type AutocapitalType { get { return GetAutocapitalType(); } - set { SetAutocapitalType( value); } + set { SetAutocapitalType(value); } } /// Get whether the entry is set to password mode. /// If true, password mode is enabled. public bool PasswordMode { get { return GetPasswordMode(); } - set { SetPasswordMode( value); } + set { SetPasswordMode(value); } } /// Get whether the return key on the input panel should be disabled or not. /// The state to put in in: true for disabled, false for enabled. public bool InputPanelReturnKeyDisabled { get { return GetInputPanelReturnKeyDisabled(); } - set { SetInputPanelReturnKeyDisabled( value); } + set { SetInputPanelReturnKeyDisabled(value); } } /// Get whether the entry allows predictive text. /// Whether the entry should allow predictive text. public bool PredictionAllow { get { return GetPredictionAllow(); } - set { SetPredictionAllow( value); } + set { SetPredictionAllow(value); } } /// Gets the value of input hint. /// Input hint. public Elm.Input.Hints InputHint { get { return GetInputHint(); } - set { SetInputHint( value); } + set { SetInputHint(value); } } /// Get the input panel layout of the entry. /// Layout type. public Elm.Input.Panel.Layout InputPanelLayout { get { return GetInputPanelLayout(); } - set { SetInputPanelLayout( value); } + set { SetInputPanelLayout(value); } } /// Get the "return" key type. /// The type of "return" key on the input panel. public Elm.Input.Panel.ReturnKey.Type InputPanelReturnKeyType { get { return GetInputPanelReturnKeyType(); } - set { SetInputPanelReturnKeyType( value); } + set { SetInputPanelReturnKeyType(value); } } /// Get the attribute to show the input panel automatically. /// If true, the input panel is appeared when entry is clicked or has a focus. public bool InputPanelEnabled { get { return GetInputPanelEnabled(); } - set { SetInputPanelEnabled( value); } + set { SetInputPanelEnabled(value); } } /// Set whether the return key on the input panel is disabled automatically when entry has no text. /// If enabled is true, the return key on input panel is disabled when the entry has no text. The return key on the input panel is automatically enabled when the entry has text. The default value is false. /// If enabled is true, the return key is automatically disabled when the entry has no text. public bool InputPanelReturnKeyAutoenabled { - set { SetInputPanelReturnKeyAutoenabled( value); } + set { SetInputPanelReturnKeyAutoenabled(value); } } /// The factory that provides item in the text e.g. "emoticon/happy" or "href=file://image.jpg" etc. /// Factory to create items public Efl.Canvas.ITextFactory ItemFactory { get { return GetItemFactory(); } - set { SetItemFactory( value); } + set { SetItemFactory(value); } } /// Get the mmaped file from where an object will fetch the real data (it must be an ). /// (Since EFL 1.22) /// The handle to the that will be used public Eina.File Mmap { get { return GetMmap(); } - set { SetMmap( value); } + set { SetMmap(value); } } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. @@ -3173,7 +3485,7 @@ private static object SelectionClearedEvtKey = new object(); /// The file path. public System.String File { get { return GetFile(); } - set { SetFile( value); } + set { SetFile(value); } } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -3183,7 +3495,7 @@ private static object SelectionClearedEvtKey = new object(); /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String Key { get { return GetKey(); } - set { SetKey( value); } + set { SetKey(value); } } /// Get the load state of the object. /// (Since EFL 1.22) @@ -3196,192 +3508,192 @@ private static object SelectionClearedEvtKey = new object(); /// The font file's path. public System.String FontSource { get { return GetFontSource(); } - set { SetFontSource( value); } + set { SetFontSource(value); } } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks public System.String FontFallbacks { get { return GetFontFallbacks(); } - set { SetFontFallbacks( value); } + set { SetFontFallbacks(value); } } /// Type of weight of the displayed font /// Default is . /// Font weight public Efl.TextFontWeight FontWeight { get { return GetFontWeight(); } - set { SetFontWeight( value); } + set { SetFontWeight(value); } } /// Type of slant of the displayed font /// Default is . /// Font slant public Efl.TextFontSlant FontSlant { get { return GetFontSlant(); } - set { SetFontSlant( value); } + set { SetFontSlant(value); } } /// Type of width of the displayed font /// Default is . /// Font width public Efl.TextFontWidth FontWidth { get { return GetFontWidth(); } - set { SetFontWidth( value); } + set { SetFontWidth(value); } } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language public System.String FontLang { get { return GetFontLang(); } - set { SetFontLang( value); } + set { SetFontLang(value); } } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable public Efl.TextFontBitmapScalable FontBitmapScalable { get { return GetFontBitmapScalable(); } - set { SetFontBitmapScalable( value); } + set { SetFontBitmapScalable(value); } } /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value public double Ellipsis { get { return GetEllipsis(); } - set { SetEllipsis( value); } + set { SetEllipsis(value); } } /// Wrap mode for use in the text /// Wrap mode public Efl.TextFormatWrap Wrap { get { return GetWrap(); } - set { SetWrap( value); } + set { SetWrap(value); } } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise public bool Multiline { get { return GetMultiline(); } - set { SetMultiline( value); } + set { SetMultiline(value); } } /// Horizontal alignment of text /// Alignment type public Efl.TextFormatHorizontalAlignmentAutoType HalignAutoType { get { return GetHalignAutoType(); } - set { SetHalignAutoType( value); } + set { SetHalignAutoType(value); } } /// Horizontal alignment of text /// Horizontal alignment value public double Halign { get { return GetHalign(); } - set { SetHalign( value); } + set { SetHalign(value); } } /// Vertical alignment of text /// Vertical alignment value public double Valign { get { return GetValign(); } - set { SetValign( value); } + set { SetValign(value); } } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value public double Linegap { get { return GetLinegap(); } - set { SetLinegap( value); } + set { SetLinegap(value); } } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value public double Linerelgap { get { return GetLinerelgap(); } - set { SetLinerelgap( value); } + set { SetLinerelgap(value); } } /// Tabstops value /// Tapstops value public int Tabstops { get { return GetTabstops(); } - set { SetTabstops( value); } + set { SetTabstops(value); } } /// Whether text is a password /// true if the text is a password, false otherwise public bool Password { get { return GetPassword(); } - set { SetPassword( value); } + set { SetPassword(value); } } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character public System.String ReplacementChar { get { return GetReplacementChar(); } - set { SetReplacementChar( value); } + set { SetReplacementChar(value); } } /// Whether or not selection is allowed on this object /// true if enabled, false otherwise public bool SelectionAllowed { get { return GetSelectionAllowed(); } - set { SetSelectionAllowed( value); } + set { SetSelectionAllowed(value); } } /// Whether the entry is editable. /// By default text interactives are editable. However setting this property to false will make it so that key input will be disregarded. /// If true, user input will be inserted in the entry, if not, the entry is read-only and no user input is allowed. public bool Editable { get { return GetEditable(); } - set { SetEditable( value); } + set { SetEditable(value); } } /// Enable or disable backing type /// Backing type public Efl.TextStyleBackingType BackingType { get { return GetBackingType(); } - set { SetBackingType( value); } + set { SetBackingType(value); } } /// Sets an underline style on the text /// Underline type public Efl.TextStyleUnderlineType UnderlineType { get { return GetUnderlineType(); } - set { SetUnderlineType( value); } + set { SetUnderlineType(value); } } /// Height of underline style /// Height public double UnderlineHeight { get { return GetUnderlineHeight(); } - set { SetUnderlineHeight( value); } + set { SetUnderlineHeight(value); } } /// Width of dashed underline style /// Width public int UnderlineDashedWidth { get { return GetUnderlineDashedWidth(); } - set { SetUnderlineDashedWidth( value); } + set { SetUnderlineDashedWidth(value); } } /// Gap of dashed underline style /// Gap public int UnderlineDashedGap { get { return GetUnderlineDashedGap(); } - set { SetUnderlineDashedGap( value); } + set { SetUnderlineDashedGap(value); } } /// Type of strikethrough style /// Strikethrough type public Efl.TextStyleStrikethroughType StrikethroughType { get { return GetStrikethroughType(); } - set { SetStrikethroughType( value); } + set { SetStrikethroughType(value); } } /// Type of effect used for the displayed text /// Effect type public Efl.TextStyleEffectType EffectType { get { return GetEffectType(); } - set { SetEffectType( value); } + set { SetEffectType(value); } } /// Direction of shadow effect /// Shadow direction public Efl.TextStyleShadowDirection ShadowDirection { get { return GetShadowDirection(); } - set { SetShadowDirection( value); } + set { SetShadowDirection(value); } } /// Program that applies a special filter /// See . /// Filter code public System.String GfxFilter { get { return GetGfxFilter(); } - set { SetGfxFilter( value); } + set { SetGfxFilter(value); } } /// Caret offset property /// Offset public int CaretOffset { get { return GetCaretOffset(); } - set { SetCaretOffset( value); } + set { SetCaretOffset(value); } } /// Default attributes /// List of default attributes @@ -3401,4627 +3713,7376 @@ private static object SelectionClearedEvtKey = new object(); /// Editable content property /// Content public System.String TextContent { - set { SetTextContent( value); } + set { SetTextContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Text.efl_ui_text_class_get(); } -} -public class TextNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_text_scrollable_get_static_delegate == null) - efl_ui_text_scrollable_get_static_delegate = new efl_ui_text_scrollable_get_delegate(scrollable_get); - if (methods.FirstOrDefault(m => m.Name == "GetScrollable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_scrollable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_scrollable_get_static_delegate)}); - if (efl_ui_text_scrollable_set_static_delegate == null) - efl_ui_text_scrollable_set_static_delegate = new efl_ui_text_scrollable_set_delegate(scrollable_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_scrollable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_scrollable_set_static_delegate)}); - if (efl_ui_text_input_panel_show_on_demand_get_static_delegate == null) - efl_ui_text_input_panel_show_on_demand_get_static_delegate = new efl_ui_text_input_panel_show_on_demand_get_delegate(input_panel_show_on_demand_get); - if (methods.FirstOrDefault(m => m.Name == "GetInputPanelShowOnDemand") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_show_on_demand_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_show_on_demand_get_static_delegate)}); - if (efl_ui_text_input_panel_show_on_demand_set_static_delegate == null) - efl_ui_text_input_panel_show_on_demand_set_static_delegate = new efl_ui_text_input_panel_show_on_demand_set_delegate(input_panel_show_on_demand_set); - if (methods.FirstOrDefault(m => m.Name == "SetInputPanelShowOnDemand") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_show_on_demand_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_show_on_demand_set_static_delegate)}); - if (efl_ui_text_context_menu_disabled_get_static_delegate == null) - efl_ui_text_context_menu_disabled_get_static_delegate = new efl_ui_text_context_menu_disabled_get_delegate(context_menu_disabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetContextMenuDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_context_menu_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_context_menu_disabled_get_static_delegate)}); - if (efl_ui_text_context_menu_disabled_set_static_delegate == null) - efl_ui_text_context_menu_disabled_set_static_delegate = new efl_ui_text_context_menu_disabled_set_delegate(context_menu_disabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetContextMenuDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_context_menu_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_context_menu_disabled_set_static_delegate)}); - if (efl_ui_text_cnp_mode_get_static_delegate == null) - efl_ui_text_cnp_mode_get_static_delegate = new efl_ui_text_cnp_mode_get_delegate(cnp_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetCnpMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_cnp_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_cnp_mode_get_static_delegate)}); - if (efl_ui_text_cnp_mode_set_static_delegate == null) - efl_ui_text_cnp_mode_set_static_delegate = new efl_ui_text_cnp_mode_set_delegate(cnp_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetCnpMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_cnp_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_cnp_mode_set_static_delegate)}); - if (efl_ui_text_input_panel_language_get_static_delegate == null) - efl_ui_text_input_panel_language_get_static_delegate = new efl_ui_text_input_panel_language_get_delegate(input_panel_language_get); - if (methods.FirstOrDefault(m => m.Name == "GetInputPanelLanguage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_language_get_static_delegate)}); - if (efl_ui_text_input_panel_language_set_static_delegate == null) - efl_ui_text_input_panel_language_set_static_delegate = new efl_ui_text_input_panel_language_set_delegate(input_panel_language_set); - if (methods.FirstOrDefault(m => m.Name == "SetInputPanelLanguage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_language_set_static_delegate)}); - if (efl_ui_text_selection_handler_disabled_get_static_delegate == null) - efl_ui_text_selection_handler_disabled_get_static_delegate = new efl_ui_text_selection_handler_disabled_get_delegate(selection_handler_disabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectionHandlerDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_selection_handler_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_selection_handler_disabled_get_static_delegate)}); - if (efl_ui_text_selection_handler_disabled_set_static_delegate == null) - efl_ui_text_selection_handler_disabled_set_static_delegate = new efl_ui_text_selection_handler_disabled_set_delegate(selection_handler_disabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelectionHandlerDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_selection_handler_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_selection_handler_disabled_set_static_delegate)}); - if (efl_ui_text_input_panel_layout_variation_get_static_delegate == null) - efl_ui_text_input_panel_layout_variation_get_static_delegate = new efl_ui_text_input_panel_layout_variation_get_delegate(input_panel_layout_variation_get); - if (methods.FirstOrDefault(m => m.Name == "GetInputPanelLayoutVariation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_layout_variation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_layout_variation_get_static_delegate)}); - if (efl_ui_text_input_panel_layout_variation_set_static_delegate == null) - efl_ui_text_input_panel_layout_variation_set_static_delegate = new efl_ui_text_input_panel_layout_variation_set_delegate(input_panel_layout_variation_set); - if (methods.FirstOrDefault(m => m.Name == "SetInputPanelLayoutVariation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_layout_variation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_layout_variation_set_static_delegate)}); - if (efl_ui_text_autocapital_type_get_static_delegate == null) - efl_ui_text_autocapital_type_get_static_delegate = new efl_ui_text_autocapital_type_get_delegate(autocapital_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutocapitalType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_autocapital_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_autocapital_type_get_static_delegate)}); - if (efl_ui_text_autocapital_type_set_static_delegate == null) - efl_ui_text_autocapital_type_set_static_delegate = new efl_ui_text_autocapital_type_set_delegate(autocapital_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetAutocapitalType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_autocapital_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_autocapital_type_set_static_delegate)}); - if (efl_ui_text_password_mode_get_static_delegate == null) - efl_ui_text_password_mode_get_static_delegate = new efl_ui_text_password_mode_get_delegate(password_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetPasswordMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_password_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_password_mode_get_static_delegate)}); - if (efl_ui_text_password_mode_set_static_delegate == null) - efl_ui_text_password_mode_set_static_delegate = new efl_ui_text_password_mode_set_delegate(password_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetPasswordMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_password_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_password_mode_set_static_delegate)}); - if (efl_ui_text_input_panel_return_key_disabled_get_static_delegate == null) - efl_ui_text_input_panel_return_key_disabled_get_static_delegate = new efl_ui_text_input_panel_return_key_disabled_get_delegate(input_panel_return_key_disabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetInputPanelReturnKeyDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_return_key_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_return_key_disabled_get_static_delegate)}); - if (efl_ui_text_input_panel_return_key_disabled_set_static_delegate == null) - efl_ui_text_input_panel_return_key_disabled_set_static_delegate = new efl_ui_text_input_panel_return_key_disabled_set_delegate(input_panel_return_key_disabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetInputPanelReturnKeyDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_return_key_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_return_key_disabled_set_static_delegate)}); - if (efl_ui_text_prediction_allow_get_static_delegate == null) - efl_ui_text_prediction_allow_get_static_delegate = new efl_ui_text_prediction_allow_get_delegate(prediction_allow_get); - if (methods.FirstOrDefault(m => m.Name == "GetPredictionAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_prediction_allow_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_prediction_allow_get_static_delegate)}); - if (efl_ui_text_prediction_allow_set_static_delegate == null) - efl_ui_text_prediction_allow_set_static_delegate = new efl_ui_text_prediction_allow_set_delegate(prediction_allow_set); - if (methods.FirstOrDefault(m => m.Name == "SetPredictionAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_prediction_allow_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_prediction_allow_set_static_delegate)}); - if (efl_ui_text_input_hint_get_static_delegate == null) - efl_ui_text_input_hint_get_static_delegate = new efl_ui_text_input_hint_get_delegate(input_hint_get); - if (methods.FirstOrDefault(m => m.Name == "GetInputHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_hint_get_static_delegate)}); - if (efl_ui_text_input_hint_set_static_delegate == null) - efl_ui_text_input_hint_set_static_delegate = new efl_ui_text_input_hint_set_delegate(input_hint_set); - if (methods.FirstOrDefault(m => m.Name == "SetInputHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_hint_set_static_delegate)}); - if (efl_ui_text_input_panel_layout_get_static_delegate == null) - efl_ui_text_input_panel_layout_get_static_delegate = new efl_ui_text_input_panel_layout_get_delegate(input_panel_layout_get); - if (methods.FirstOrDefault(m => m.Name == "GetInputPanelLayout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_layout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_layout_get_static_delegate)}); - if (efl_ui_text_input_panel_layout_set_static_delegate == null) - efl_ui_text_input_panel_layout_set_static_delegate = new efl_ui_text_input_panel_layout_set_delegate(input_panel_layout_set); - if (methods.FirstOrDefault(m => m.Name == "SetInputPanelLayout") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_layout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_layout_set_static_delegate)}); - if (efl_ui_text_input_panel_return_key_type_get_static_delegate == null) - efl_ui_text_input_panel_return_key_type_get_static_delegate = new efl_ui_text_input_panel_return_key_type_get_delegate(input_panel_return_key_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetInputPanelReturnKeyType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_return_key_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_return_key_type_get_static_delegate)}); - if (efl_ui_text_input_panel_return_key_type_set_static_delegate == null) - efl_ui_text_input_panel_return_key_type_set_static_delegate = new efl_ui_text_input_panel_return_key_type_set_delegate(input_panel_return_key_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetInputPanelReturnKeyType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_return_key_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_return_key_type_set_static_delegate)}); - if (efl_ui_text_input_panel_enabled_get_static_delegate == null) - efl_ui_text_input_panel_enabled_get_static_delegate = new efl_ui_text_input_panel_enabled_get_delegate(input_panel_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetInputPanelEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_enabled_get_static_delegate)}); - if (efl_ui_text_input_panel_enabled_set_static_delegate == null) - efl_ui_text_input_panel_enabled_set_static_delegate = new efl_ui_text_input_panel_enabled_set_delegate(input_panel_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetInputPanelEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_enabled_set_static_delegate)}); - if (efl_ui_text_input_panel_return_key_autoenabled_set_static_delegate == null) - efl_ui_text_input_panel_return_key_autoenabled_set_static_delegate = new efl_ui_text_input_panel_return_key_autoenabled_set_delegate(input_panel_return_key_autoenabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetInputPanelReturnKeyAutoenabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_return_key_autoenabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_return_key_autoenabled_set_static_delegate)}); - if (efl_ui_text_item_factory_get_static_delegate == null) - efl_ui_text_item_factory_get_static_delegate = new efl_ui_text_item_factory_get_delegate(item_factory_get); - if (methods.FirstOrDefault(m => m.Name == "GetItemFactory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_item_factory_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_item_factory_get_static_delegate)}); - if (efl_ui_text_item_factory_set_static_delegate == null) - efl_ui_text_item_factory_set_static_delegate = new efl_ui_text_item_factory_set_delegate(item_factory_set); - if (methods.FirstOrDefault(m => m.Name == "SetItemFactory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_item_factory_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_item_factory_set_static_delegate)}); - if (efl_ui_text_input_panel_show_static_delegate == null) - efl_ui_text_input_panel_show_static_delegate = new efl_ui_text_input_panel_show_delegate(input_panel_show); - if (methods.FirstOrDefault(m => m.Name == "ShowInputPanel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_show"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_show_static_delegate)}); - if (efl_ui_text_selection_copy_static_delegate == null) - efl_ui_text_selection_copy_static_delegate = new efl_ui_text_selection_copy_delegate(selection_copy); - if (methods.FirstOrDefault(m => m.Name == "SelectionCopy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_selection_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_selection_copy_static_delegate)}); - if (efl_ui_text_context_menu_clear_static_delegate == null) - efl_ui_text_context_menu_clear_static_delegate = new efl_ui_text_context_menu_clear_delegate(context_menu_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearContextMenu") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_context_menu_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_context_menu_clear_static_delegate)}); - if (efl_ui_text_input_panel_imdata_set_static_delegate == null) - efl_ui_text_input_panel_imdata_set_static_delegate = new efl_ui_text_input_panel_imdata_set_delegate(input_panel_imdata_set); - if (methods.FirstOrDefault(m => m.Name == "SetInputPanelImdata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_imdata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_imdata_set_static_delegate)}); - if (efl_ui_text_input_panel_imdata_get_static_delegate == null) - efl_ui_text_input_panel_imdata_get_static_delegate = new efl_ui_text_input_panel_imdata_get_delegate(input_panel_imdata_get); - if (methods.FirstOrDefault(m => m.Name == "GetInputPanelImdata") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_imdata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_imdata_get_static_delegate)}); - if (efl_ui_text_selection_paste_static_delegate == null) - efl_ui_text_selection_paste_static_delegate = new efl_ui_text_selection_paste_delegate(selection_paste); - if (methods.FirstOrDefault(m => m.Name == "SelectionPaste") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_selection_paste"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_selection_paste_static_delegate)}); - if (efl_ui_text_input_panel_hide_static_delegate == null) - efl_ui_text_input_panel_hide_static_delegate = new efl_ui_text_input_panel_hide_delegate(input_panel_hide); - if (methods.FirstOrDefault(m => m.Name == "HideInputPanel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_input_panel_hide"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_hide_static_delegate)}); - if (efl_ui_text_cursor_selection_end_static_delegate == null) - efl_ui_text_cursor_selection_end_static_delegate = new efl_ui_text_cursor_selection_end_delegate(cursor_selection_end); - if (methods.FirstOrDefault(m => m.Name == "CursorSelectionEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_cursor_selection_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_cursor_selection_end_static_delegate)}); - if (efl_ui_text_selection_cut_static_delegate == null) - efl_ui_text_selection_cut_static_delegate = new efl_ui_text_selection_cut_delegate(selection_cut); - if (methods.FirstOrDefault(m => m.Name == "SelectionCut") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_selection_cut"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_selection_cut_static_delegate)}); - if (efl_ui_text_context_menu_item_add_static_delegate == null) - efl_ui_text_context_menu_item_add_static_delegate = new efl_ui_text_context_menu_item_add_delegate(context_menu_item_add); - if (methods.FirstOrDefault(m => m.Name == "AddContextMenuItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_context_menu_item_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_context_menu_item_add_static_delegate)}); - if (efl_ui_text_cursor_new_static_delegate == null) - efl_ui_text_cursor_new_static_delegate = new efl_ui_text_cursor_new_delegate(cursor_new); - if (methods.FirstOrDefault(m => m.Name == "NewCursor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_cursor_new"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_cursor_new_static_delegate)}); - if (efl_file_mmap_get_static_delegate == null) - efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate)}); - if (efl_file_mmap_set_static_delegate == null) - efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate)}); - if (efl_file_get_static_delegate == null) - efl_file_get_static_delegate = new efl_file_get_delegate(file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate)}); - if (efl_file_set_static_delegate == null) - efl_file_set_static_delegate = new efl_file_set_delegate(file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate)}); - if (efl_file_key_get_static_delegate == null) - efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate)}); - if (efl_file_key_set_static_delegate == null) - efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate)}); - if (efl_file_loaded_get_static_delegate == null) - efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate)}); - if (efl_file_load_static_delegate == null) - efl_file_load_static_delegate = new efl_file_load_delegate(load); - if (methods.FirstOrDefault(m => m.Name == "Load") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate)}); - if (efl_file_unload_static_delegate == null) - efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); - if (methods.FirstOrDefault(m => m.Name == "Unload") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_text_font_get_static_delegate == null) - efl_text_font_get_static_delegate = new efl_text_font_get_delegate(font_get); - if (methods.FirstOrDefault(m => m.Name == "GetFont") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_get_static_delegate)}); - if (efl_text_font_set_static_delegate == null) - efl_text_font_set_static_delegate = new efl_text_font_set_delegate(font_set); - if (methods.FirstOrDefault(m => m.Name == "SetFont") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_set_static_delegate)}); - if (efl_text_font_source_get_static_delegate == null) - efl_text_font_source_get_static_delegate = new efl_text_font_source_get_delegate(font_source_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_get_static_delegate)}); - if (efl_text_font_source_set_static_delegate == null) - efl_text_font_source_set_static_delegate = new efl_text_font_source_set_delegate(font_source_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_set_static_delegate)}); - if (efl_text_font_fallbacks_get_static_delegate == null) - efl_text_font_fallbacks_get_static_delegate = new efl_text_font_fallbacks_get_delegate(font_fallbacks_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontFallbacks") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_fallbacks_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_get_static_delegate)}); - if (efl_text_font_fallbacks_set_static_delegate == null) - efl_text_font_fallbacks_set_static_delegate = new efl_text_font_fallbacks_set_delegate(font_fallbacks_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontFallbacks") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_fallbacks_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_set_static_delegate)}); - if (efl_text_font_weight_get_static_delegate == null) - efl_text_font_weight_get_static_delegate = new efl_text_font_weight_get_delegate(font_weight_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_get_static_delegate)}); - if (efl_text_font_weight_set_static_delegate == null) - efl_text_font_weight_set_static_delegate = new efl_text_font_weight_set_delegate(font_weight_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontWeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_set_static_delegate)}); - if (efl_text_font_slant_get_static_delegate == null) - efl_text_font_slant_get_static_delegate = new efl_text_font_slant_get_delegate(font_slant_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontSlant") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_slant_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_get_static_delegate)}); - if (efl_text_font_slant_set_static_delegate == null) - efl_text_font_slant_set_static_delegate = new efl_text_font_slant_set_delegate(font_slant_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontSlant") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_slant_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_set_static_delegate)}); - if (efl_text_font_width_get_static_delegate == null) - efl_text_font_width_get_static_delegate = new efl_text_font_width_get_delegate(font_width_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_get_static_delegate)}); - if (efl_text_font_width_set_static_delegate == null) - efl_text_font_width_set_static_delegate = new efl_text_font_width_set_delegate(font_width_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_set_static_delegate)}); - if (efl_text_font_lang_get_static_delegate == null) - efl_text_font_lang_get_static_delegate = new efl_text_font_lang_get_delegate(font_lang_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontLang") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_lang_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_get_static_delegate)}); - if (efl_text_font_lang_set_static_delegate == null) - efl_text_font_lang_set_static_delegate = new efl_text_font_lang_set_delegate(font_lang_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontLang") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_lang_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_set_static_delegate)}); - if (efl_text_font_bitmap_scalable_get_static_delegate == null) - efl_text_font_bitmap_scalable_get_static_delegate = new efl_text_font_bitmap_scalable_get_delegate(font_bitmap_scalable_get); - if (methods.FirstOrDefault(m => m.Name == "GetFontBitmapScalable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_bitmap_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_get_static_delegate)}); - if (efl_text_font_bitmap_scalable_set_static_delegate == null) - efl_text_font_bitmap_scalable_set_static_delegate = new efl_text_font_bitmap_scalable_set_delegate(font_bitmap_scalable_set); - if (methods.FirstOrDefault(m => m.Name == "SetFontBitmapScalable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_bitmap_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_set_static_delegate)}); - if (efl_text_ellipsis_get_static_delegate == null) - efl_text_ellipsis_get_static_delegate = new efl_text_ellipsis_get_delegate(ellipsis_get); - if (methods.FirstOrDefault(m => m.Name == "GetEllipsis") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_ellipsis_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_get_static_delegate)}); - if (efl_text_ellipsis_set_static_delegate == null) - efl_text_ellipsis_set_static_delegate = new efl_text_ellipsis_set_delegate(ellipsis_set); - if (methods.FirstOrDefault(m => m.Name == "SetEllipsis") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_ellipsis_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_set_static_delegate)}); - if (efl_text_wrap_get_static_delegate == null) - efl_text_wrap_get_static_delegate = new efl_text_wrap_get_delegate(wrap_get); - if (methods.FirstOrDefault(m => m.Name == "GetWrap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_wrap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_get_static_delegate)}); - if (efl_text_wrap_set_static_delegate == null) - efl_text_wrap_set_static_delegate = new efl_text_wrap_set_delegate(wrap_set); - if (methods.FirstOrDefault(m => m.Name == "SetWrap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_wrap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_set_static_delegate)}); - if (efl_text_multiline_get_static_delegate == null) - efl_text_multiline_get_static_delegate = new efl_text_multiline_get_delegate(multiline_get); - if (methods.FirstOrDefault(m => m.Name == "GetMultiline") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_multiline_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_get_static_delegate)}); - if (efl_text_multiline_set_static_delegate == null) - efl_text_multiline_set_static_delegate = new efl_text_multiline_set_delegate(multiline_set); - if (methods.FirstOrDefault(m => m.Name == "SetMultiline") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_multiline_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_set_static_delegate)}); - if (efl_text_halign_auto_type_get_static_delegate == null) - efl_text_halign_auto_type_get_static_delegate = new efl_text_halign_auto_type_get_delegate(halign_auto_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetHalignAutoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_auto_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_get_static_delegate)}); - if (efl_text_halign_auto_type_set_static_delegate == null) - efl_text_halign_auto_type_set_static_delegate = new efl_text_halign_auto_type_set_delegate(halign_auto_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetHalignAutoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_auto_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_set_static_delegate)}); - if (efl_text_halign_get_static_delegate == null) - efl_text_halign_get_static_delegate = new efl_text_halign_get_delegate(halign_get); - if (methods.FirstOrDefault(m => m.Name == "GetHalign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_get_static_delegate)}); - if (efl_text_halign_set_static_delegate == null) - efl_text_halign_set_static_delegate = new efl_text_halign_set_delegate(halign_set); - if (methods.FirstOrDefault(m => m.Name == "SetHalign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_halign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_set_static_delegate)}); - if (efl_text_valign_get_static_delegate == null) - efl_text_valign_get_static_delegate = new efl_text_valign_get_delegate(valign_get); - if (methods.FirstOrDefault(m => m.Name == "GetValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_get_static_delegate)}); - if (efl_text_valign_set_static_delegate == null) - efl_text_valign_set_static_delegate = new efl_text_valign_set_delegate(valign_set); - if (methods.FirstOrDefault(m => m.Name == "SetValign") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_set_static_delegate)}); - if (efl_text_linegap_get_static_delegate == null) - efl_text_linegap_get_static_delegate = new efl_text_linegap_get_delegate(linegap_get); - if (methods.FirstOrDefault(m => m.Name == "GetLinegap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linegap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_get_static_delegate)}); - if (efl_text_linegap_set_static_delegate == null) - efl_text_linegap_set_static_delegate = new efl_text_linegap_set_delegate(linegap_set); - if (methods.FirstOrDefault(m => m.Name == "SetLinegap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linegap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_set_static_delegate)}); - if (efl_text_linerelgap_get_static_delegate == null) - efl_text_linerelgap_get_static_delegate = new efl_text_linerelgap_get_delegate(linerelgap_get); - if (methods.FirstOrDefault(m => m.Name == "GetLinerelgap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linerelgap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_get_static_delegate)}); - if (efl_text_linerelgap_set_static_delegate == null) - efl_text_linerelgap_set_static_delegate = new efl_text_linerelgap_set_delegate(linerelgap_set); - if (methods.FirstOrDefault(m => m.Name == "SetLinerelgap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_linerelgap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_set_static_delegate)}); - if (efl_text_tabstops_get_static_delegate == null) - efl_text_tabstops_get_static_delegate = new efl_text_tabstops_get_delegate(tabstops_get); - if (methods.FirstOrDefault(m => m.Name == "GetTabstops") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_tabstops_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_get_static_delegate)}); - if (efl_text_tabstops_set_static_delegate == null) - efl_text_tabstops_set_static_delegate = new efl_text_tabstops_set_delegate(tabstops_set); - if (methods.FirstOrDefault(m => m.Name == "SetTabstops") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_tabstops_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_set_static_delegate)}); - if (efl_text_password_get_static_delegate == null) - efl_text_password_get_static_delegate = new efl_text_password_get_delegate(password_get); - if (methods.FirstOrDefault(m => m.Name == "GetPassword") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_password_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_get_static_delegate)}); - if (efl_text_password_set_static_delegate == null) - efl_text_password_set_static_delegate = new efl_text_password_set_delegate(password_set); - if (methods.FirstOrDefault(m => m.Name == "SetPassword") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_password_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_set_static_delegate)}); - if (efl_text_replacement_char_get_static_delegate == null) - efl_text_replacement_char_get_static_delegate = new efl_text_replacement_char_get_delegate(replacement_char_get); - if (methods.FirstOrDefault(m => m.Name == "GetReplacementChar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_replacement_char_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_get_static_delegate)}); - if (efl_text_replacement_char_set_static_delegate == null) - efl_text_replacement_char_set_static_delegate = new efl_text_replacement_char_set_delegate(replacement_char_set); - if (methods.FirstOrDefault(m => m.Name == "SetReplacementChar") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_replacement_char_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_set_static_delegate)}); - if (efl_text_interactive_selection_allowed_get_static_delegate == null) - efl_text_interactive_selection_allowed_get_static_delegate = new efl_text_interactive_selection_allowed_get_delegate(selection_allowed_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectionAllowed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_selection_allowed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_allowed_get_static_delegate)}); - if (efl_text_interactive_selection_allowed_set_static_delegate == null) - efl_text_interactive_selection_allowed_set_static_delegate = new efl_text_interactive_selection_allowed_set_delegate(selection_allowed_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelectionAllowed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_selection_allowed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_allowed_set_static_delegate)}); - if (efl_text_interactive_selection_cursors_get_static_delegate == null) - efl_text_interactive_selection_cursors_get_static_delegate = new efl_text_interactive_selection_cursors_get_delegate(selection_cursors_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectionCursors") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_selection_cursors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_cursors_get_static_delegate)}); - if (efl_text_interactive_editable_get_static_delegate == null) - efl_text_interactive_editable_get_static_delegate = new efl_text_interactive_editable_get_delegate(editable_get); - if (methods.FirstOrDefault(m => m.Name == "GetEditable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_editable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_editable_get_static_delegate)}); - if (efl_text_interactive_editable_set_static_delegate == null) - efl_text_interactive_editable_set_static_delegate = new efl_text_interactive_editable_set_delegate(editable_set); - if (methods.FirstOrDefault(m => m.Name == "SetEditable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_editable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_editable_set_static_delegate)}); - if (efl_text_interactive_select_none_static_delegate == null) - efl_text_interactive_select_none_static_delegate = new efl_text_interactive_select_none_delegate(select_none); - if (methods.FirstOrDefault(m => m.Name == "SelectNone") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_interactive_select_none"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_select_none_static_delegate)}); - if (efl_text_normal_color_get_static_delegate == null) - efl_text_normal_color_get_static_delegate = new efl_text_normal_color_get_delegate(normal_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetNormalColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_normal_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_get_static_delegate)}); - if (efl_text_normal_color_set_static_delegate == null) - efl_text_normal_color_set_static_delegate = new efl_text_normal_color_set_delegate(normal_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetNormalColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_normal_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_set_static_delegate)}); - if (efl_text_backing_type_get_static_delegate == null) - efl_text_backing_type_get_static_delegate = new efl_text_backing_type_get_delegate(backing_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetBackingType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_get_static_delegate)}); - if (efl_text_backing_type_set_static_delegate == null) - efl_text_backing_type_set_static_delegate = new efl_text_backing_type_set_delegate(backing_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetBackingType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_set_static_delegate)}); - if (efl_text_backing_color_get_static_delegate == null) - efl_text_backing_color_get_static_delegate = new efl_text_backing_color_get_delegate(backing_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetBackingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_get_static_delegate)}); - if (efl_text_backing_color_set_static_delegate == null) - efl_text_backing_color_set_static_delegate = new efl_text_backing_color_set_delegate(backing_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetBackingColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_backing_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_set_static_delegate)}); - if (efl_text_underline_type_get_static_delegate == null) - efl_text_underline_type_get_static_delegate = new efl_text_underline_type_get_delegate(underline_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_get_static_delegate)}); - if (efl_text_underline_type_set_static_delegate == null) - efl_text_underline_type_set_static_delegate = new efl_text_underline_type_set_delegate(underline_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_set_static_delegate)}); - if (efl_text_underline_color_get_static_delegate == null) - efl_text_underline_color_get_static_delegate = new efl_text_underline_color_get_delegate(underline_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_get_static_delegate)}); - if (efl_text_underline_color_set_static_delegate == null) - efl_text_underline_color_set_static_delegate = new efl_text_underline_color_set_delegate(underline_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_set_static_delegate)}); - if (efl_text_underline_height_get_static_delegate == null) - efl_text_underline_height_get_static_delegate = new efl_text_underline_height_get_delegate(underline_height_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineHeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_height_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_get_static_delegate)}); - if (efl_text_underline_height_set_static_delegate == null) - efl_text_underline_height_set_static_delegate = new efl_text_underline_height_set_delegate(underline_height_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineHeight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_height_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_set_static_delegate)}); - if (efl_text_underline_dashed_color_get_static_delegate == null) - efl_text_underline_dashed_color_get_static_delegate = new efl_text_underline_dashed_color_get_delegate(underline_dashed_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_get_static_delegate)}); - if (efl_text_underline_dashed_color_set_static_delegate == null) - efl_text_underline_dashed_color_set_static_delegate = new efl_text_underline_dashed_color_set_delegate(underline_dashed_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_set_static_delegate)}); - if (efl_text_underline_dashed_width_get_static_delegate == null) - efl_text_underline_dashed_width_get_static_delegate = new efl_text_underline_dashed_width_get_delegate(underline_dashed_width_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_get_static_delegate)}); - if (efl_text_underline_dashed_width_set_static_delegate == null) - efl_text_underline_dashed_width_set_static_delegate = new efl_text_underline_dashed_width_set_delegate(underline_dashed_width_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedWidth") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_set_static_delegate)}); - if (efl_text_underline_dashed_gap_get_static_delegate == null) - efl_text_underline_dashed_gap_get_static_delegate = new efl_text_underline_dashed_gap_get_delegate(underline_dashed_gap_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedGap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_gap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_get_static_delegate)}); - if (efl_text_underline_dashed_gap_set_static_delegate == null) - efl_text_underline_dashed_gap_set_static_delegate = new efl_text_underline_dashed_gap_set_delegate(underline_dashed_gap_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedGap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline_dashed_gap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_set_static_delegate)}); - if (efl_text_underline2_color_get_static_delegate == null) - efl_text_underline2_color_get_static_delegate = new efl_text_underline2_color_get_delegate(underline2_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetUnderline2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_get_static_delegate)}); - if (efl_text_underline2_color_set_static_delegate == null) - efl_text_underline2_color_set_static_delegate = new efl_text_underline2_color_set_delegate(underline2_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetUnderline2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_underline2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_set_static_delegate)}); - if (efl_text_strikethrough_type_get_static_delegate == null) - efl_text_strikethrough_type_get_static_delegate = new efl_text_strikethrough_type_get_delegate(strikethrough_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_get_static_delegate)}); - if (efl_text_strikethrough_type_set_static_delegate == null) - efl_text_strikethrough_type_set_static_delegate = new efl_text_strikethrough_type_set_delegate(strikethrough_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_set_static_delegate)}); - if (efl_text_strikethrough_color_get_static_delegate == null) - efl_text_strikethrough_color_get_static_delegate = new efl_text_strikethrough_color_get_delegate(strikethrough_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_get_static_delegate)}); - if (efl_text_strikethrough_color_set_static_delegate == null) - efl_text_strikethrough_color_set_static_delegate = new efl_text_strikethrough_color_set_delegate(strikethrough_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_strikethrough_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_set_static_delegate)}); - if (efl_text_effect_type_get_static_delegate == null) - efl_text_effect_type_get_static_delegate = new efl_text_effect_type_get_delegate(effect_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetEffectType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_effect_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_get_static_delegate)}); - if (efl_text_effect_type_set_static_delegate == null) - efl_text_effect_type_set_static_delegate = new efl_text_effect_type_set_delegate(effect_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetEffectType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_effect_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_set_static_delegate)}); - if (efl_text_outline_color_get_static_delegate == null) - efl_text_outline_color_get_static_delegate = new efl_text_outline_color_get_delegate(outline_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetOutlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_outline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_get_static_delegate)}); - if (efl_text_outline_color_set_static_delegate == null) - efl_text_outline_color_set_static_delegate = new efl_text_outline_color_set_delegate(outline_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetOutlineColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_outline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_set_static_delegate)}); - if (efl_text_shadow_direction_get_static_delegate == null) - efl_text_shadow_direction_get_static_delegate = new efl_text_shadow_direction_get_delegate(shadow_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetShadowDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_get_static_delegate)}); - if (efl_text_shadow_direction_set_static_delegate == null) - efl_text_shadow_direction_set_static_delegate = new efl_text_shadow_direction_set_delegate(shadow_direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetShadowDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_set_static_delegate)}); - if (efl_text_shadow_color_get_static_delegate == null) - efl_text_shadow_color_get_static_delegate = new efl_text_shadow_color_get_delegate(shadow_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetShadowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_get_static_delegate)}); - if (efl_text_shadow_color_set_static_delegate == null) - efl_text_shadow_color_set_static_delegate = new efl_text_shadow_color_set_delegate(shadow_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetShadowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_shadow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_set_static_delegate)}); - if (efl_text_glow_color_get_static_delegate == null) - efl_text_glow_color_get_static_delegate = new efl_text_glow_color_get_delegate(glow_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetGlowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_get_static_delegate)}); - if (efl_text_glow_color_set_static_delegate == null) - efl_text_glow_color_set_static_delegate = new efl_text_glow_color_set_delegate(glow_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetGlowColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_set_static_delegate)}); - if (efl_text_glow2_color_get_static_delegate == null) - efl_text_glow2_color_get_static_delegate = new efl_text_glow2_color_get_delegate(glow2_color_get); - if (methods.FirstOrDefault(m => m.Name == "GetGlow2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_get_static_delegate)}); - if (efl_text_glow2_color_set_static_delegate == null) - efl_text_glow2_color_set_static_delegate = new efl_text_glow2_color_set_delegate(glow2_color_set); - if (methods.FirstOrDefault(m => m.Name == "SetGlow2Color") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_glow2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_set_static_delegate)}); - if (efl_text_gfx_filter_get_static_delegate == null) - efl_text_gfx_filter_get_static_delegate = new efl_text_gfx_filter_get_delegate(gfx_filter_get); - if (methods.FirstOrDefault(m => m.Name == "GetGfxFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_gfx_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_get_static_delegate)}); - if (efl_text_gfx_filter_set_static_delegate == null) - efl_text_gfx_filter_set_static_delegate = new efl_text_gfx_filter_set_delegate(gfx_filter_set); - if (methods.FirstOrDefault(m => m.Name == "SetGfxFilter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_gfx_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_set_static_delegate)}); - if (efl_access_text_character_get_static_delegate == null) - efl_access_text_character_get_static_delegate = new efl_access_text_character_get_delegate(character_get); - if (methods.FirstOrDefault(m => m.Name == "GetCharacter") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_character_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_get_static_delegate)}); - if (efl_access_text_string_get_static_delegate == null) - efl_access_text_string_get_static_delegate = new efl_access_text_string_get_delegate(string_get); - if (methods.FirstOrDefault(m => m.Name == "GetString") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_string_get_static_delegate)}); - if (efl_access_text_get_static_delegate == null) - efl_access_text_get_static_delegate = new efl_access_text_get_delegate(access_text_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccessText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_get_static_delegate)}); - if (efl_access_text_caret_offset_get_static_delegate == null) - efl_access_text_caret_offset_get_static_delegate = new efl_access_text_caret_offset_get_delegate(caret_offset_get); - if (methods.FirstOrDefault(m => m.Name == "GetCaretOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_caret_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_caret_offset_get_static_delegate)}); - if (efl_access_text_caret_offset_set_static_delegate == null) - efl_access_text_caret_offset_set_static_delegate = new efl_access_text_caret_offset_set_delegate(caret_offset_set); - if (methods.FirstOrDefault(m => m.Name == "SetCaretOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_caret_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_caret_offset_set_static_delegate)}); - if (efl_access_text_attribute_get_static_delegate == null) - efl_access_text_attribute_get_static_delegate = new efl_access_text_attribute_get_delegate(attribute_get); - if (methods.FirstOrDefault(m => m.Name == "GetAttribute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_attribute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_attribute_get_static_delegate)}); - if (efl_access_text_attributes_get_static_delegate == null) - efl_access_text_attributes_get_static_delegate = new efl_access_text_attributes_get_delegate(text_attributes_get); - if (methods.FirstOrDefault(m => m.Name == "GetTextAttributes") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_attributes_get_static_delegate)}); - if (efl_access_text_default_attributes_get_static_delegate == null) - efl_access_text_default_attributes_get_static_delegate = new efl_access_text_default_attributes_get_delegate(default_attributes_get); - if (methods.FirstOrDefault(m => m.Name == "GetDefaultAttributes") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_default_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_default_attributes_get_static_delegate)}); - if (efl_access_text_character_extents_get_static_delegate == null) - efl_access_text_character_extents_get_static_delegate = new efl_access_text_character_extents_get_delegate(character_extents_get); - if (methods.FirstOrDefault(m => m.Name == "GetCharacterExtents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_character_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_extents_get_static_delegate)}); - if (efl_access_text_character_count_get_static_delegate == null) - efl_access_text_character_count_get_static_delegate = new efl_access_text_character_count_get_delegate(character_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetCharacterCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_character_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_count_get_static_delegate)}); - if (efl_access_text_offset_at_point_get_static_delegate == null) - efl_access_text_offset_at_point_get_static_delegate = new efl_access_text_offset_at_point_get_delegate(offset_at_point_get); - if (methods.FirstOrDefault(m => m.Name == "GetOffsetAtPoint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_offset_at_point_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_offset_at_point_get_static_delegate)}); - if (efl_access_text_bounded_ranges_get_static_delegate == null) - efl_access_text_bounded_ranges_get_static_delegate = new efl_access_text_bounded_ranges_get_delegate(bounded_ranges_get); - if (methods.FirstOrDefault(m => m.Name == "GetBoundedRanges") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_bounded_ranges_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_bounded_ranges_get_static_delegate)}); - if (efl_access_text_range_extents_get_static_delegate == null) - efl_access_text_range_extents_get_static_delegate = new efl_access_text_range_extents_get_delegate(range_extents_get); - if (methods.FirstOrDefault(m => m.Name == "GetRangeExtents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_range_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_range_extents_get_static_delegate)}); - if (efl_access_text_selections_count_get_static_delegate == null) - efl_access_text_selections_count_get_static_delegate = new efl_access_text_selections_count_get_delegate(selections_count_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelectionsCount") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_selections_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selections_count_get_static_delegate)}); - if (efl_access_text_access_selection_get_static_delegate == null) - efl_access_text_access_selection_get_static_delegate = new efl_access_text_access_selection_get_delegate(access_selection_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccessSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_access_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_access_selection_get_static_delegate)}); - if (efl_access_text_access_selection_set_static_delegate == null) - efl_access_text_access_selection_set_static_delegate = new efl_access_text_access_selection_set_delegate(access_selection_set); - if (methods.FirstOrDefault(m => m.Name == "SetAccessSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_access_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_access_selection_set_static_delegate)}); - if (efl_access_text_selection_add_static_delegate == null) - efl_access_text_selection_add_static_delegate = new efl_access_text_selection_add_delegate(selection_add); - if (methods.FirstOrDefault(m => m.Name == "AddSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_selection_add"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selection_add_static_delegate)}); - if (efl_access_text_selection_remove_static_delegate == null) - efl_access_text_selection_remove_static_delegate = new efl_access_text_selection_remove_delegate(selection_remove); - if (methods.FirstOrDefault(m => m.Name == "SelectionRemove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_text_selection_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selection_remove_static_delegate)}); - if (efl_access_editable_text_content_set_static_delegate == null) - efl_access_editable_text_content_set_static_delegate = new efl_access_editable_text_content_set_delegate(text_content_set); - if (methods.FirstOrDefault(m => m.Name == "SetTextContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_content_set_static_delegate)}); - if (efl_access_editable_text_insert_static_delegate == null) - efl_access_editable_text_insert_static_delegate = new efl_access_editable_text_insert_delegate(insert); - if (methods.FirstOrDefault(m => m.Name == "Insert") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_insert_static_delegate)}); - if (efl_access_editable_text_copy_static_delegate == null) - efl_access_editable_text_copy_static_delegate = new efl_access_editable_text_copy_delegate(copy); - if (methods.FirstOrDefault(m => m.Name == "Copy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_copy_static_delegate)}); - if (efl_access_editable_text_cut_static_delegate == null) - efl_access_editable_text_cut_static_delegate = new efl_access_editable_text_cut_delegate(cut); - if (methods.FirstOrDefault(m => m.Name == "Cut") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_cut"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_cut_static_delegate)}); - if (efl_access_editable_text_delete_static_delegate == null) - efl_access_editable_text_delete_static_delegate = new efl_access_editable_text_delete_delegate(kw_delete); - if (methods.FirstOrDefault(m => m.Name == "Delete") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_delete"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_delete_static_delegate)}); - if (efl_access_editable_text_paste_static_delegate == null) - efl_access_editable_text_paste_static_delegate = new efl_access_editable_text_paste_delegate(paste); - if (methods.FirstOrDefault(m => m.Name == "Paste") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_editable_text_paste"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_paste_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Text.efl_ui_text_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Text.efl_ui_text_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_text_scrollable_get_static_delegate == null) + { + efl_ui_text_scrollable_get_static_delegate = new efl_ui_text_scrollable_get_delegate(scrollable_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_scrollable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetScrollable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_scrollable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_scrollable_get_static_delegate) }); + } + if (efl_ui_text_scrollable_set_static_delegate == null) + { + efl_ui_text_scrollable_set_static_delegate = new efl_ui_text_scrollable_set_delegate(scrollable_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_scrollable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_scrollable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_scrollable_get"); - private static bool scrollable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_scrollable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetScrollable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScrollable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_scrollable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_scrollable_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_scrollable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_scrollable_get_delegate efl_ui_text_scrollable_get_static_delegate; + if (efl_ui_text_input_panel_show_on_demand_get_static_delegate == null) + { + efl_ui_text_input_panel_show_on_demand_get_static_delegate = new efl_ui_text_input_panel_show_on_demand_get_delegate(input_panel_show_on_demand_get); + } - private delegate void efl_ui_text_scrollable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scroll); + if (methods.FirstOrDefault(m => m.Name == "GetInputPanelShowOnDemand") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_show_on_demand_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_show_on_demand_get_static_delegate) }); + } + if (efl_ui_text_input_panel_show_on_demand_set_static_delegate == null) + { + efl_ui_text_input_panel_show_on_demand_set_static_delegate = new efl_ui_text_input_panel_show_on_demand_set_delegate(input_panel_show_on_demand_set); + } - public delegate void efl_ui_text_scrollable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scroll); - public static Efl.Eo.FunctionWrapper efl_ui_text_scrollable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_scrollable_set"); - private static void scrollable_set(System.IntPtr obj, System.IntPtr pd, bool scroll) - { - Eina.Log.Debug("function efl_ui_text_scrollable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetScrollable( scroll); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetInputPanelShowOnDemand") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_show_on_demand_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_show_on_demand_set_static_delegate) }); } - } else { - efl_ui_text_scrollable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll); - } - } - private static efl_ui_text_scrollable_set_delegate efl_ui_text_scrollable_set_static_delegate; + if (efl_ui_text_context_menu_disabled_get_static_delegate == null) + { + efl_ui_text_context_menu_disabled_get_static_delegate = new efl_ui_text_context_menu_disabled_get_delegate(context_menu_disabled_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_input_panel_show_on_demand_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContextMenuDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_context_menu_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_context_menu_disabled_get_static_delegate) }); + } + if (efl_ui_text_context_menu_disabled_set_static_delegate == null) + { + efl_ui_text_context_menu_disabled_set_static_delegate = new efl_ui_text_context_menu_disabled_set_delegate(context_menu_disabled_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_input_panel_show_on_demand_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_show_on_demand_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_show_on_demand_get"); - private static bool input_panel_show_on_demand_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_input_panel_show_on_demand_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetInputPanelShowOnDemand(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContextMenuDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_context_menu_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_context_menu_disabled_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_input_panel_show_on_demand_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_input_panel_show_on_demand_get_delegate efl_ui_text_input_panel_show_on_demand_get_static_delegate; + if (efl_ui_text_cnp_mode_get_static_delegate == null) + { + efl_ui_text_cnp_mode_get_static_delegate = new efl_ui_text_cnp_mode_get_delegate(cnp_mode_get); + } - private delegate void efl_ui_text_input_panel_show_on_demand_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool ondemand); + if (methods.FirstOrDefault(m => m.Name == "GetCnpMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_cnp_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_cnp_mode_get_static_delegate) }); + } + if (efl_ui_text_cnp_mode_set_static_delegate == null) + { + efl_ui_text_cnp_mode_set_static_delegate = new efl_ui_text_cnp_mode_set_delegate(cnp_mode_set); + } - public delegate void efl_ui_text_input_panel_show_on_demand_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool ondemand); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_show_on_demand_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_show_on_demand_set"); - private static void input_panel_show_on_demand_set(System.IntPtr obj, System.IntPtr pd, bool ondemand) - { - Eina.Log.Debug("function efl_ui_text_input_panel_show_on_demand_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetInputPanelShowOnDemand( ondemand); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCnpMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_cnp_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_cnp_mode_set_static_delegate) }); } - } else { - efl_ui_text_input_panel_show_on_demand_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ondemand); - } - } - private static efl_ui_text_input_panel_show_on_demand_set_delegate efl_ui_text_input_panel_show_on_demand_set_static_delegate; + if (efl_ui_text_input_panel_language_get_static_delegate == null) + { + efl_ui_text_input_panel_language_get_static_delegate = new efl_ui_text_input_panel_language_get_delegate(input_panel_language_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_context_menu_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetInputPanelLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_language_get_static_delegate) }); + } + if (efl_ui_text_input_panel_language_set_static_delegate == null) + { + efl_ui_text_input_panel_language_set_static_delegate = new efl_ui_text_input_panel_language_set_delegate(input_panel_language_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_context_menu_disabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_context_menu_disabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_context_menu_disabled_get"); - private static bool context_menu_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_context_menu_disabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetContextMenuDisabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetInputPanelLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_language_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_context_menu_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_context_menu_disabled_get_delegate efl_ui_text_context_menu_disabled_get_static_delegate; + if (efl_ui_text_selection_handler_disabled_get_static_delegate == null) + { + efl_ui_text_selection_handler_disabled_get_static_delegate = new efl_ui_text_selection_handler_disabled_get_delegate(selection_handler_disabled_get); + } - private delegate void efl_ui_text_context_menu_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + if (methods.FirstOrDefault(m => m.Name == "GetSelectionHandlerDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_selection_handler_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_selection_handler_disabled_get_static_delegate) }); + } + if (efl_ui_text_selection_handler_disabled_set_static_delegate == null) + { + efl_ui_text_selection_handler_disabled_set_static_delegate = new efl_ui_text_selection_handler_disabled_set_delegate(selection_handler_disabled_set); + } - public delegate void efl_ui_text_context_menu_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public static Efl.Eo.FunctionWrapper efl_ui_text_context_menu_disabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_context_menu_disabled_set"); - private static void context_menu_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function efl_ui_text_context_menu_disabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetContextMenuDisabled( disabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetSelectionHandlerDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_selection_handler_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_selection_handler_disabled_set_static_delegate) }); } - } else { - efl_ui_text_context_menu_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - private static efl_ui_text_context_menu_disabled_set_delegate efl_ui_text_context_menu_disabled_set_static_delegate; + if (efl_ui_text_input_panel_layout_variation_get_static_delegate == null) + { + efl_ui_text_input_panel_layout_variation_get_static_delegate = new efl_ui_text_input_panel_layout_variation_get_delegate(input_panel_layout_variation_get); + } - private delegate Efl.Ui.SelectionFormat efl_ui_text_cnp_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetInputPanelLayoutVariation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_layout_variation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_layout_variation_get_static_delegate) }); + } + if (efl_ui_text_input_panel_layout_variation_set_static_delegate == null) + { + efl_ui_text_input_panel_layout_variation_set_static_delegate = new efl_ui_text_input_panel_layout_variation_set_delegate(input_panel_layout_variation_set); + } - public delegate Efl.Ui.SelectionFormat efl_ui_text_cnp_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_cnp_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_cnp_mode_get"); - private static Efl.Ui.SelectionFormat cnp_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_cnp_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.SelectionFormat _ret_var = default(Efl.Ui.SelectionFormat); - try { - _ret_var = ((Text)wrapper).GetCnpMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetInputPanelLayoutVariation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_layout_variation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_layout_variation_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_cnp_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_cnp_mode_get_delegate efl_ui_text_cnp_mode_get_static_delegate; + if (efl_ui_text_autocapital_type_get_static_delegate == null) + { + efl_ui_text_autocapital_type_get_static_delegate = new efl_ui_text_autocapital_type_get_delegate(autocapital_type_get); + } - private delegate void efl_ui_text_cnp_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format); + if (methods.FirstOrDefault(m => m.Name == "GetAutocapitalType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_autocapital_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_autocapital_type_get_static_delegate) }); + } + if (efl_ui_text_autocapital_type_set_static_delegate == null) + { + efl_ui_text_autocapital_type_set_static_delegate = new efl_ui_text_autocapital_type_set_delegate(autocapital_type_set); + } - public delegate void efl_ui_text_cnp_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format); - public static Efl.Eo.FunctionWrapper efl_ui_text_cnp_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_cnp_mode_set"); - private static void cnp_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format) - { - Eina.Log.Debug("function efl_ui_text_cnp_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetCnpMode( format); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetAutocapitalType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_autocapital_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_autocapital_type_set_static_delegate) }); } - } else { - efl_ui_text_cnp_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format); - } - } - private static efl_ui_text_cnp_mode_set_delegate efl_ui_text_cnp_mode_set_static_delegate; + if (efl_ui_text_password_mode_get_static_delegate == null) + { + efl_ui_text_password_mode_get_static_delegate = new efl_ui_text_password_mode_get_delegate(password_mode_get); + } - private delegate Elm.Input.Panel.Lang efl_ui_text_input_panel_language_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPasswordMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_password_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_password_mode_get_static_delegate) }); + } + if (efl_ui_text_password_mode_set_static_delegate == null) + { + efl_ui_text_password_mode_set_static_delegate = new efl_ui_text_password_mode_set_delegate(password_mode_set); + } - public delegate Elm.Input.Panel.Lang efl_ui_text_input_panel_language_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_language_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_language_get"); - private static Elm.Input.Panel.Lang input_panel_language_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_input_panel_language_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Elm.Input.Panel.Lang _ret_var = default(Elm.Input.Panel.Lang); - try { - _ret_var = ((Text)wrapper).GetInputPanelLanguage(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPasswordMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_password_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_password_mode_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_input_panel_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_input_panel_language_get_delegate efl_ui_text_input_panel_language_get_static_delegate; + if (efl_ui_text_input_panel_return_key_disabled_get_static_delegate == null) + { + efl_ui_text_input_panel_return_key_disabled_get_static_delegate = new efl_ui_text_input_panel_return_key_disabled_get_delegate(input_panel_return_key_disabled_get); + } - private delegate void efl_ui_text_input_panel_language_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.Lang lang); + if (methods.FirstOrDefault(m => m.Name == "GetInputPanelReturnKeyDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_return_key_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_return_key_disabled_get_static_delegate) }); + } + if (efl_ui_text_input_panel_return_key_disabled_set_static_delegate == null) + { + efl_ui_text_input_panel_return_key_disabled_set_static_delegate = new efl_ui_text_input_panel_return_key_disabled_set_delegate(input_panel_return_key_disabled_set); + } - public delegate void efl_ui_text_input_panel_language_set_api_delegate(System.IntPtr obj, Elm.Input.Panel.Lang lang); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_language_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_language_set"); - private static void input_panel_language_set(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.Lang lang) - { - Eina.Log.Debug("function efl_ui_text_input_panel_language_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetInputPanelLanguage( lang); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetInputPanelReturnKeyDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_return_key_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_return_key_disabled_set_static_delegate) }); } - } else { - efl_ui_text_input_panel_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang); - } - } - private static efl_ui_text_input_panel_language_set_delegate efl_ui_text_input_panel_language_set_static_delegate; + if (efl_ui_text_prediction_allow_get_static_delegate == null) + { + efl_ui_text_prediction_allow_get_static_delegate = new efl_ui_text_prediction_allow_get_delegate(prediction_allow_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_selection_handler_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPredictionAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_prediction_allow_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_prediction_allow_get_static_delegate) }); + } + if (efl_ui_text_prediction_allow_set_static_delegate == null) + { + efl_ui_text_prediction_allow_set_static_delegate = new efl_ui_text_prediction_allow_set_delegate(prediction_allow_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_selection_handler_disabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_selection_handler_disabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_selection_handler_disabled_get"); - private static bool selection_handler_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_selection_handler_disabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetSelectionHandlerDisabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPredictionAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_prediction_allow_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_prediction_allow_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_selection_handler_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_selection_handler_disabled_get_delegate efl_ui_text_selection_handler_disabled_get_static_delegate; + if (efl_ui_text_input_hint_get_static_delegate == null) + { + efl_ui_text_input_hint_get_static_delegate = new efl_ui_text_input_hint_get_delegate(input_hint_get); + } - private delegate void efl_ui_text_selection_handler_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + if (methods.FirstOrDefault(m => m.Name == "GetInputHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_hint_get_static_delegate) }); + } + if (efl_ui_text_input_hint_set_static_delegate == null) + { + efl_ui_text_input_hint_set_static_delegate = new efl_ui_text_input_hint_set_delegate(input_hint_set); + } - public delegate void efl_ui_text_selection_handler_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public static Efl.Eo.FunctionWrapper efl_ui_text_selection_handler_disabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_selection_handler_disabled_set"); - private static void selection_handler_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function efl_ui_text_selection_handler_disabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetSelectionHandlerDisabled( disabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetInputHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_hint_set_static_delegate) }); } - } else { - efl_ui_text_selection_handler_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - private static efl_ui_text_selection_handler_disabled_set_delegate efl_ui_text_selection_handler_disabled_set_static_delegate; + if (efl_ui_text_input_panel_layout_get_static_delegate == null) + { + efl_ui_text_input_panel_layout_get_static_delegate = new efl_ui_text_input_panel_layout_get_delegate(input_panel_layout_get); + } - private delegate int efl_ui_text_input_panel_layout_variation_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetInputPanelLayout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_layout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_layout_get_static_delegate) }); + } + if (efl_ui_text_input_panel_layout_set_static_delegate == null) + { + efl_ui_text_input_panel_layout_set_static_delegate = new efl_ui_text_input_panel_layout_set_delegate(input_panel_layout_set); + } - public delegate int efl_ui_text_input_panel_layout_variation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_layout_variation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_layout_variation_get"); - private static int input_panel_layout_variation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_input_panel_layout_variation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Text)wrapper).GetInputPanelLayoutVariation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetInputPanelLayout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_layout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_layout_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_input_panel_layout_variation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_input_panel_layout_variation_get_delegate efl_ui_text_input_panel_layout_variation_get_static_delegate; + if (efl_ui_text_input_panel_return_key_type_get_static_delegate == null) + { + efl_ui_text_input_panel_return_key_type_get_static_delegate = new efl_ui_text_input_panel_return_key_type_get_delegate(input_panel_return_key_type_get); + } - private delegate void efl_ui_text_input_panel_layout_variation_set_delegate(System.IntPtr obj, System.IntPtr pd, int variation); + if (methods.FirstOrDefault(m => m.Name == "GetInputPanelReturnKeyType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_return_key_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_return_key_type_get_static_delegate) }); + } + if (efl_ui_text_input_panel_return_key_type_set_static_delegate == null) + { + efl_ui_text_input_panel_return_key_type_set_static_delegate = new efl_ui_text_input_panel_return_key_type_set_delegate(input_panel_return_key_type_set); + } - public delegate void efl_ui_text_input_panel_layout_variation_set_api_delegate(System.IntPtr obj, int variation); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_layout_variation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_layout_variation_set"); - private static void input_panel_layout_variation_set(System.IntPtr obj, System.IntPtr pd, int variation) - { - Eina.Log.Debug("function efl_ui_text_input_panel_layout_variation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetInputPanelLayoutVariation( variation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetInputPanelReturnKeyType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_return_key_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_return_key_type_set_static_delegate) }); } - } else { - efl_ui_text_input_panel_layout_variation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), variation); - } - } - private static efl_ui_text_input_panel_layout_variation_set_delegate efl_ui_text_input_panel_layout_variation_set_static_delegate; + if (efl_ui_text_input_panel_enabled_get_static_delegate == null) + { + efl_ui_text_input_panel_enabled_get_static_delegate = new efl_ui_text_input_panel_enabled_get_delegate(input_panel_enabled_get); + } - private delegate Elm.Autocapital.Type efl_ui_text_autocapital_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetInputPanelEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_enabled_get_static_delegate) }); + } + if (efl_ui_text_input_panel_enabled_set_static_delegate == null) + { + efl_ui_text_input_panel_enabled_set_static_delegate = new efl_ui_text_input_panel_enabled_set_delegate(input_panel_enabled_set); + } - public delegate Elm.Autocapital.Type efl_ui_text_autocapital_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_autocapital_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_autocapital_type_get"); - private static Elm.Autocapital.Type autocapital_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_autocapital_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Elm.Autocapital.Type _ret_var = default(Elm.Autocapital.Type); - try { - _ret_var = ((Text)wrapper).GetAutocapitalType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetInputPanelEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_enabled_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_autocapital_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_autocapital_type_get_delegate efl_ui_text_autocapital_type_get_static_delegate; + if (efl_ui_text_input_panel_return_key_autoenabled_set_static_delegate == null) + { + efl_ui_text_input_panel_return_key_autoenabled_set_static_delegate = new efl_ui_text_input_panel_return_key_autoenabled_set_delegate(input_panel_return_key_autoenabled_set); + } - private delegate void efl_ui_text_autocapital_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Autocapital.Type autocapital_type); + if (methods.FirstOrDefault(m => m.Name == "SetInputPanelReturnKeyAutoenabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_return_key_autoenabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_return_key_autoenabled_set_static_delegate) }); + } + if (efl_ui_text_item_factory_get_static_delegate == null) + { + efl_ui_text_item_factory_get_static_delegate = new efl_ui_text_item_factory_get_delegate(item_factory_get); + } - public delegate void efl_ui_text_autocapital_type_set_api_delegate(System.IntPtr obj, Elm.Autocapital.Type autocapital_type); - public static Efl.Eo.FunctionWrapper efl_ui_text_autocapital_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_autocapital_type_set"); - private static void autocapital_type_set(System.IntPtr obj, System.IntPtr pd, Elm.Autocapital.Type autocapital_type) - { - Eina.Log.Debug("function efl_ui_text_autocapital_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetAutocapitalType( autocapital_type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetItemFactory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_item_factory_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_item_factory_get_static_delegate) }); } - } else { - efl_ui_text_autocapital_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), autocapital_type); - } - } - private static efl_ui_text_autocapital_type_set_delegate efl_ui_text_autocapital_type_set_static_delegate; + if (efl_ui_text_item_factory_set_static_delegate == null) + { + efl_ui_text_item_factory_set_static_delegate = new efl_ui_text_item_factory_set_delegate(item_factory_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_password_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetItemFactory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_item_factory_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_item_factory_set_static_delegate) }); + } + if (efl_ui_text_input_panel_show_static_delegate == null) + { + efl_ui_text_input_panel_show_static_delegate = new efl_ui_text_input_panel_show_delegate(input_panel_show); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_password_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_password_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_password_mode_get"); - private static bool password_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_password_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetPasswordMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ShowInputPanel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_show"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_show_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_password_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_password_mode_get_delegate efl_ui_text_password_mode_get_static_delegate; + if (efl_ui_text_selection_copy_static_delegate == null) + { + efl_ui_text_selection_copy_static_delegate = new efl_ui_text_selection_copy_delegate(selection_copy); + } - private delegate void efl_ui_text_password_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool password); + if (methods.FirstOrDefault(m => m.Name == "SelectionCopy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_selection_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_selection_copy_static_delegate) }); + } + if (efl_ui_text_context_menu_clear_static_delegate == null) + { + efl_ui_text_context_menu_clear_static_delegate = new efl_ui_text_context_menu_clear_delegate(context_menu_clear); + } - public delegate void efl_ui_text_password_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool password); - public static Efl.Eo.FunctionWrapper efl_ui_text_password_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_password_mode_set"); - private static void password_mode_set(System.IntPtr obj, System.IntPtr pd, bool password) - { - Eina.Log.Debug("function efl_ui_text_password_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetPasswordMode( password); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "ClearContextMenu") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_context_menu_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_context_menu_clear_static_delegate) }); } - } else { - efl_ui_text_password_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), password); - } - } - private static efl_ui_text_password_mode_set_delegate efl_ui_text_password_mode_set_static_delegate; + if (efl_ui_text_input_panel_imdata_set_static_delegate == null) + { + efl_ui_text_input_panel_imdata_set_static_delegate = new efl_ui_text_input_panel_imdata_set_delegate(input_panel_imdata_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_input_panel_return_key_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetInputPanelImdata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_imdata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_imdata_set_static_delegate) }); + } + if (efl_ui_text_input_panel_imdata_get_static_delegate == null) + { + efl_ui_text_input_panel_imdata_get_static_delegate = new efl_ui_text_input_panel_imdata_get_delegate(input_panel_imdata_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_input_panel_return_key_disabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_return_key_disabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_return_key_disabled_get"); - private static bool input_panel_return_key_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_input_panel_return_key_disabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetInputPanelReturnKeyDisabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetInputPanelImdata") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_imdata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_imdata_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_input_panel_return_key_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_input_panel_return_key_disabled_get_delegate efl_ui_text_input_panel_return_key_disabled_get_static_delegate; + if (efl_ui_text_selection_paste_static_delegate == null) + { + efl_ui_text_selection_paste_static_delegate = new efl_ui_text_selection_paste_delegate(selection_paste); + } - private delegate void efl_ui_text_input_panel_return_key_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + if (methods.FirstOrDefault(m => m.Name == "SelectionPaste") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_selection_paste"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_selection_paste_static_delegate) }); + } + if (efl_ui_text_input_panel_hide_static_delegate == null) + { + efl_ui_text_input_panel_hide_static_delegate = new efl_ui_text_input_panel_hide_delegate(input_panel_hide); + } - public delegate void efl_ui_text_input_panel_return_key_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_return_key_disabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_return_key_disabled_set"); - private static void input_panel_return_key_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function efl_ui_text_input_panel_return_key_disabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetInputPanelReturnKeyDisabled( disabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "HideInputPanel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_input_panel_hide"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_input_panel_hide_static_delegate) }); } - } else { - efl_ui_text_input_panel_return_key_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - private static efl_ui_text_input_panel_return_key_disabled_set_delegate efl_ui_text_input_panel_return_key_disabled_set_static_delegate; + if (efl_ui_text_cursor_selection_end_static_delegate == null) + { + efl_ui_text_cursor_selection_end_static_delegate = new efl_ui_text_cursor_selection_end_delegate(cursor_selection_end); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_prediction_allow_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "CursorSelectionEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_cursor_selection_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_cursor_selection_end_static_delegate) }); + } + if (efl_ui_text_selection_cut_static_delegate == null) + { + efl_ui_text_selection_cut_static_delegate = new efl_ui_text_selection_cut_delegate(selection_cut); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_prediction_allow_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_prediction_allow_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_prediction_allow_get"); - private static bool prediction_allow_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_prediction_allow_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetPredictionAllow(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SelectionCut") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_selection_cut"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_selection_cut_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_prediction_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_prediction_allow_get_delegate efl_ui_text_prediction_allow_get_static_delegate; + if (efl_ui_text_context_menu_item_add_static_delegate == null) + { + efl_ui_text_context_menu_item_add_static_delegate = new efl_ui_text_context_menu_item_add_delegate(context_menu_item_add); + } - private delegate void efl_ui_text_prediction_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool prediction); + if (methods.FirstOrDefault(m => m.Name == "AddContextMenuItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_context_menu_item_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_context_menu_item_add_static_delegate) }); + } + if (efl_ui_text_cursor_new_static_delegate == null) + { + efl_ui_text_cursor_new_static_delegate = new efl_ui_text_cursor_new_delegate(cursor_new); + } - public delegate void efl_ui_text_prediction_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool prediction); - public static Efl.Eo.FunctionWrapper efl_ui_text_prediction_allow_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_prediction_allow_set"); - private static void prediction_allow_set(System.IntPtr obj, System.IntPtr pd, bool prediction) - { - Eina.Log.Debug("function efl_ui_text_prediction_allow_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetPredictionAllow( prediction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "NewCursor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_cursor_new"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_cursor_new_static_delegate) }); } - } else { - efl_ui_text_prediction_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), prediction); - } - } - private static efl_ui_text_prediction_allow_set_delegate efl_ui_text_prediction_allow_set_static_delegate; + if (efl_file_mmap_get_static_delegate == null) + { + efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); + } - private delegate Elm.Input.Hints efl_ui_text_input_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) }); + } + if (efl_file_mmap_set_static_delegate == null) + { + efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); + } - public delegate Elm.Input.Hints efl_ui_text_input_hint_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_hint_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_hint_get"); - private static Elm.Input.Hints input_hint_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_input_hint_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Elm.Input.Hints _ret_var = default(Elm.Input.Hints); - try { - _ret_var = ((Text)wrapper).GetInputHint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_input_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_input_hint_get_delegate efl_ui_text_input_hint_get_static_delegate; + if (efl_file_get_static_delegate == null) + { + efl_file_get_static_delegate = new efl_file_get_delegate(file_get); + } - private delegate void efl_ui_text_input_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Input.Hints hints); + if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) }); + } + if (efl_file_set_static_delegate == null) + { + efl_file_set_static_delegate = new efl_file_set_delegate(file_set); + } - public delegate void efl_ui_text_input_hint_set_api_delegate(System.IntPtr obj, Elm.Input.Hints hints); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_hint_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_hint_set"); - private static void input_hint_set(System.IntPtr obj, System.IntPtr pd, Elm.Input.Hints hints) - { - Eina.Log.Debug("function efl_ui_text_input_hint_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetInputHint( hints); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) }); } - } else { - efl_ui_text_input_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hints); - } - } - private static efl_ui_text_input_hint_set_delegate efl_ui_text_input_hint_set_static_delegate; + if (efl_file_key_get_static_delegate == null) + { + efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); + } - private delegate Elm.Input.Panel.Layout efl_ui_text_input_panel_layout_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) }); + } + if (efl_file_key_set_static_delegate == null) + { + efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); + } - public delegate Elm.Input.Panel.Layout efl_ui_text_input_panel_layout_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_layout_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_layout_get"); - private static Elm.Input.Panel.Layout input_panel_layout_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_input_panel_layout_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Elm.Input.Panel.Layout _ret_var = default(Elm.Input.Panel.Layout); - try { - _ret_var = ((Text)wrapper).GetInputPanelLayout(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_input_panel_layout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_input_panel_layout_get_delegate efl_ui_text_input_panel_layout_get_static_delegate; + if (efl_file_loaded_get_static_delegate == null) + { + efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); + } - private delegate void efl_ui_text_input_panel_layout_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.Layout layout); + if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) }); + } + if (efl_file_load_static_delegate == null) + { + efl_file_load_static_delegate = new efl_file_load_delegate(load); + } - public delegate void efl_ui_text_input_panel_layout_set_api_delegate(System.IntPtr obj, Elm.Input.Panel.Layout layout); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_layout_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_layout_set"); - private static void input_panel_layout_set(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.Layout layout) - { - Eina.Log.Debug("function efl_ui_text_input_panel_layout_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetInputPanelLayout( layout); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Load") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) }); } - } else { - efl_ui_text_input_panel_layout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), layout); - } - } - private static efl_ui_text_input_panel_layout_set_delegate efl_ui_text_input_panel_layout_set_static_delegate; + if (efl_file_unload_static_delegate == null) + { + efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); + } - private delegate Elm.Input.Panel.ReturnKey.Type efl_ui_text_input_panel_return_key_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Unload") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) }); + } + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } - public delegate Elm.Input.Panel.ReturnKey.Type efl_ui_text_input_panel_return_key_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_return_key_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_return_key_type_get"); - private static Elm.Input.Panel.ReturnKey.Type input_panel_return_key_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_input_panel_return_key_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Elm.Input.Panel.ReturnKey.Type _ret_var = default(Elm.Input.Panel.ReturnKey.Type); - try { - _ret_var = ((Text)wrapper).GetInputPanelReturnKeyType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_input_panel_return_key_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_input_panel_return_key_type_get_delegate efl_ui_text_input_panel_return_key_type_get_static_delegate; + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } - private delegate void efl_ui_text_input_panel_return_key_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.ReturnKey.Type return_key_type); + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } + if (efl_text_font_get_static_delegate == null) + { + efl_text_font_get_static_delegate = new efl_text_font_get_delegate(font_get); + } - public delegate void efl_ui_text_input_panel_return_key_type_set_api_delegate(System.IntPtr obj, Elm.Input.Panel.ReturnKey.Type return_key_type); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_return_key_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_return_key_type_set"); - private static void input_panel_return_key_type_set(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.ReturnKey.Type return_key_type) - { - Eina.Log.Debug("function efl_ui_text_input_panel_return_key_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetInputPanelReturnKeyType( return_key_type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFont") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_get_static_delegate) }); } - } else { - efl_ui_text_input_panel_return_key_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), return_key_type); - } - } - private static efl_ui_text_input_panel_return_key_type_set_delegate efl_ui_text_input_panel_return_key_type_set_static_delegate; + if (efl_text_font_set_static_delegate == null) + { + efl_text_font_set_static_delegate = new efl_text_font_set_delegate(font_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_input_panel_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFont") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_set_static_delegate) }); + } + if (efl_text_font_source_get_static_delegate == null) + { + efl_text_font_source_get_static_delegate = new efl_text_font_source_get_delegate(font_source_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_input_panel_enabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_enabled_get"); - private static bool input_panel_enabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_input_panel_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetInputPanelEnabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFontSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_input_panel_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_input_panel_enabled_get_delegate efl_ui_text_input_panel_enabled_get_static_delegate; + if (efl_text_font_source_set_static_delegate == null) + { + efl_text_font_source_set_static_delegate = new efl_text_font_source_set_delegate(font_source_set); + } - private delegate void efl_ui_text_input_panel_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + if (methods.FirstOrDefault(m => m.Name == "SetFontSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_set_static_delegate) }); + } + if (efl_text_font_fallbacks_get_static_delegate == null) + { + efl_text_font_fallbacks_get_static_delegate = new efl_text_font_fallbacks_get_delegate(font_fallbacks_get); + } - public delegate void efl_ui_text_input_panel_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_enabled_set"); - private static void input_panel_enabled_set(System.IntPtr obj, System.IntPtr pd, bool enabled) - { - Eina.Log.Debug("function efl_ui_text_input_panel_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetInputPanelEnabled( enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFontFallbacks") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_fallbacks_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_get_static_delegate) }); } - } else { - efl_ui_text_input_panel_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); - } - } - private static efl_ui_text_input_panel_enabled_set_delegate efl_ui_text_input_panel_enabled_set_static_delegate; + if (efl_text_font_fallbacks_set_static_delegate == null) + { + efl_text_font_fallbacks_set_static_delegate = new efl_text_font_fallbacks_set_delegate(font_fallbacks_set); + } - private delegate void efl_ui_text_input_panel_return_key_autoenabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + if (methods.FirstOrDefault(m => m.Name == "SetFontFallbacks") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_fallbacks_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_set_static_delegate) }); + } + if (efl_text_font_weight_get_static_delegate == null) + { + efl_text_font_weight_get_static_delegate = new efl_text_font_weight_get_delegate(font_weight_get); + } - public delegate void efl_ui_text_input_panel_return_key_autoenabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_return_key_autoenabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_return_key_autoenabled_set"); - private static void input_panel_return_key_autoenabled_set(System.IntPtr obj, System.IntPtr pd, bool enabled) - { - Eina.Log.Debug("function efl_ui_text_input_panel_return_key_autoenabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetInputPanelReturnKeyAutoenabled( enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFontWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_get_static_delegate) }); } - } else { - efl_ui_text_input_panel_return_key_autoenabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); - } - } - private static efl_ui_text_input_panel_return_key_autoenabled_set_delegate efl_ui_text_input_panel_return_key_autoenabled_set_static_delegate; + if (efl_text_font_weight_set_static_delegate == null) + { + efl_text_font_weight_set_static_delegate = new efl_text_font_weight_set_delegate(font_weight_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.ITextFactory efl_ui_text_item_factory_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFontWeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_set_static_delegate) }); + } + if (efl_text_font_slant_get_static_delegate == null) + { + efl_text_font_slant_get_static_delegate = new efl_text_font_slant_get_delegate(font_slant_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.ITextFactory efl_ui_text_item_factory_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_item_factory_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_item_factory_get"); - private static Efl.Canvas.ITextFactory item_factory_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_item_factory_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.ITextFactory _ret_var = default(Efl.Canvas.ITextFactory); - try { - _ret_var = ((Text)wrapper).GetItemFactory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFontSlant") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_slant_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_item_factory_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_item_factory_get_delegate efl_ui_text_item_factory_get_static_delegate; + if (efl_text_font_slant_set_static_delegate == null) + { + efl_text_font_slant_set_static_delegate = new efl_text_font_slant_set_delegate(font_slant_set); + } - private delegate void efl_ui_text_item_factory_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.ITextFactory item_factory); + if (methods.FirstOrDefault(m => m.Name == "SetFontSlant") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_slant_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_set_static_delegate) }); + } + if (efl_text_font_width_get_static_delegate == null) + { + efl_text_font_width_get_static_delegate = new efl_text_font_width_get_delegate(font_width_get); + } - public delegate void efl_ui_text_item_factory_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.ITextFactory item_factory); - public static Efl.Eo.FunctionWrapper efl_ui_text_item_factory_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_item_factory_set"); - private static void item_factory_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.ITextFactory item_factory) - { - Eina.Log.Debug("function efl_ui_text_item_factory_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetItemFactory( item_factory); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFontWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_get_static_delegate) }); } - } else { - efl_ui_text_item_factory_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item_factory); - } - } - private static efl_ui_text_item_factory_set_delegate efl_ui_text_item_factory_set_static_delegate; + if (efl_text_font_width_set_static_delegate == null) + { + efl_text_font_width_set_static_delegate = new efl_text_font_width_set_delegate(font_width_set); + } - private delegate void efl_ui_text_input_panel_show_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFontWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_set_static_delegate) }); + } + if (efl_text_font_lang_get_static_delegate == null) + { + efl_text_font_lang_get_static_delegate = new efl_text_font_lang_get_delegate(font_lang_get); + } - public delegate void efl_ui_text_input_panel_show_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_show_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_show"); - private static void input_panel_show(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_input_panel_show was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).ShowInputPanel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFontLang") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_lang_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_get_static_delegate) }); } - } else { - efl_ui_text_input_panel_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_input_panel_show_delegate efl_ui_text_input_panel_show_static_delegate; + if (efl_text_font_lang_set_static_delegate == null) + { + efl_text_font_lang_set_static_delegate = new efl_text_font_lang_set_delegate(font_lang_set); + } - private delegate void efl_ui_text_selection_copy_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFontLang") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_lang_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_set_static_delegate) }); + } + if (efl_text_font_bitmap_scalable_get_static_delegate == null) + { + efl_text_font_bitmap_scalable_get_static_delegate = new efl_text_font_bitmap_scalable_get_delegate(font_bitmap_scalable_get); + } - public delegate void efl_ui_text_selection_copy_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_selection_copy_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_selection_copy"); - private static void selection_copy(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_selection_copy was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SelectionCopy(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFontBitmapScalable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_bitmap_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_get_static_delegate) }); } - } else { - efl_ui_text_selection_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_selection_copy_delegate efl_ui_text_selection_copy_static_delegate; + if (efl_text_font_bitmap_scalable_set_static_delegate == null) + { + efl_text_font_bitmap_scalable_set_static_delegate = new efl_text_font_bitmap_scalable_set_delegate(font_bitmap_scalable_set); + } - private delegate void efl_ui_text_context_menu_clear_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFontBitmapScalable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_bitmap_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_set_static_delegate) }); + } + if (efl_text_ellipsis_get_static_delegate == null) + { + efl_text_ellipsis_get_static_delegate = new efl_text_ellipsis_get_delegate(ellipsis_get); + } - public delegate void efl_ui_text_context_menu_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_context_menu_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_context_menu_clear"); - private static void context_menu_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_context_menu_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).ClearContextMenu(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetEllipsis") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_ellipsis_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_get_static_delegate) }); } - } else { - efl_ui_text_context_menu_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_context_menu_clear_delegate efl_ui_text_context_menu_clear_static_delegate; + if (efl_text_ellipsis_set_static_delegate == null) + { + efl_text_ellipsis_set_static_delegate = new efl_text_ellipsis_set_delegate(ellipsis_set); + } - private delegate void efl_ui_text_input_panel_imdata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data, int len); + if (methods.FirstOrDefault(m => m.Name == "SetEllipsis") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_ellipsis_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_ellipsis_set_static_delegate) }); + } + if (efl_text_wrap_get_static_delegate == null) + { + efl_text_wrap_get_static_delegate = new efl_text_wrap_get_delegate(wrap_get); + } - public delegate void efl_ui_text_input_panel_imdata_set_api_delegate(System.IntPtr obj, System.IntPtr data, int len); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_imdata_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_imdata_set"); - private static void input_panel_imdata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data, int len) - { - Eina.Log.Debug("function efl_ui_text_input_panel_imdata_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetInputPanelImdata( data, len); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetWrap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_wrap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_get_static_delegate) }); } - } else { - efl_ui_text_input_panel_imdata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data, len); - } - } - private static efl_ui_text_input_panel_imdata_set_delegate efl_ui_text_input_panel_imdata_set_static_delegate; + if (efl_text_wrap_set_static_delegate == null) + { + efl_text_wrap_set_static_delegate = new efl_text_wrap_set_delegate(wrap_set); + } - private delegate void efl_ui_text_input_panel_imdata_get_delegate(System.IntPtr obj, System.IntPtr pd, ref System.IntPtr data, out int len); + if (methods.FirstOrDefault(m => m.Name == "SetWrap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_wrap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_wrap_set_static_delegate) }); + } + if (efl_text_multiline_get_static_delegate == null) + { + efl_text_multiline_get_static_delegate = new efl_text_multiline_get_delegate(multiline_get); + } - public delegate void efl_ui_text_input_panel_imdata_get_api_delegate(System.IntPtr obj, ref System.IntPtr data, out int len); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_imdata_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_imdata_get"); - private static void input_panel_imdata_get(System.IntPtr obj, System.IntPtr pd, ref System.IntPtr data, out int len) - { - Eina.Log.Debug("function efl_ui_text_input_panel_imdata_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - len = default(int); - try { - ((Text)wrapper).GetInputPanelImdata( ref data, out len); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMultiline") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_multiline_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_get_static_delegate) }); } - } else { - efl_ui_text_input_panel_imdata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref data, out len); - } - } - private static efl_ui_text_input_panel_imdata_get_delegate efl_ui_text_input_panel_imdata_get_static_delegate; + if (efl_text_multiline_set_static_delegate == null) + { + efl_text_multiline_set_static_delegate = new efl_text_multiline_set_delegate(multiline_set); + } - private delegate void efl_ui_text_selection_paste_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMultiline") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_multiline_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_multiline_set_static_delegate) }); + } + if (efl_text_halign_auto_type_get_static_delegate == null) + { + efl_text_halign_auto_type_get_static_delegate = new efl_text_halign_auto_type_get_delegate(halign_auto_type_get); + } - public delegate void efl_ui_text_selection_paste_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_selection_paste_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_selection_paste"); - private static void selection_paste(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_selection_paste was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SelectionPaste(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetHalignAutoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_auto_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_get_static_delegate) }); } - } else { - efl_ui_text_selection_paste_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_selection_paste_delegate efl_ui_text_selection_paste_static_delegate; + if (efl_text_halign_auto_type_set_static_delegate == null) + { + efl_text_halign_auto_type_set_static_delegate = new efl_text_halign_auto_type_set_delegate(halign_auto_type_set); + } - private delegate void efl_ui_text_input_panel_hide_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetHalignAutoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_auto_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_auto_type_set_static_delegate) }); + } + if (efl_text_halign_get_static_delegate == null) + { + efl_text_halign_get_static_delegate = new efl_text_halign_get_delegate(halign_get); + } - public delegate void efl_ui_text_input_panel_hide_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_hide_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_input_panel_hide"); - private static void input_panel_hide(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_input_panel_hide was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).HideInputPanel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetHalign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_get_static_delegate) }); } - } else { - efl_ui_text_input_panel_hide_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_input_panel_hide_delegate efl_ui_text_input_panel_hide_static_delegate; + if (efl_text_halign_set_static_delegate == null) + { + efl_text_halign_set_static_delegate = new efl_text_halign_set_delegate(halign_set); + } - private delegate void efl_ui_text_cursor_selection_end_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetHalign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_halign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_halign_set_static_delegate) }); + } + if (efl_text_valign_get_static_delegate == null) + { + efl_text_valign_get_static_delegate = new efl_text_valign_get_delegate(valign_get); + } - public delegate void efl_ui_text_cursor_selection_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_cursor_selection_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_cursor_selection_end"); - private static void cursor_selection_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_cursor_selection_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).CursorSelectionEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_valign_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_get_static_delegate) }); } - } else { - efl_ui_text_cursor_selection_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_cursor_selection_end_delegate efl_ui_text_cursor_selection_end_static_delegate; + if (efl_text_valign_set_static_delegate == null) + { + efl_text_valign_set_static_delegate = new efl_text_valign_set_delegate(valign_set); + } - private delegate void efl_ui_text_selection_cut_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetValign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_valign_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_valign_set_static_delegate) }); + } + if (efl_text_linegap_get_static_delegate == null) + { + efl_text_linegap_get_static_delegate = new efl_text_linegap_get_delegate(linegap_get); + } - public delegate void efl_ui_text_selection_cut_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_selection_cut_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_selection_cut"); - private static void selection_cut(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_selection_cut was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SelectionCut(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetLinegap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linegap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_get_static_delegate) }); } - } else { - efl_ui_text_selection_cut_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_selection_cut_delegate efl_ui_text_selection_cut_static_delegate; + if (efl_text_linegap_set_static_delegate == null) + { + efl_text_linegap_set_static_delegate = new efl_text_linegap_set_delegate(linegap_set); + } - private delegate void efl_ui_text_context_menu_item_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon_file, Elm.Icon.Type icon_type, EvasSmartCb func, System.IntPtr data); + if (methods.FirstOrDefault(m => m.Name == "SetLinegap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linegap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linegap_set_static_delegate) }); + } + if (efl_text_linerelgap_get_static_delegate == null) + { + efl_text_linerelgap_get_static_delegate = new efl_text_linerelgap_get_delegate(linerelgap_get); + } - public delegate void efl_ui_text_context_menu_item_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon_file, Elm.Icon.Type icon_type, EvasSmartCb func, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_ui_text_context_menu_item_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_context_menu_item_add"); - private static void context_menu_item_add(System.IntPtr obj, System.IntPtr pd, System.String label, System.String icon_file, Elm.Icon.Type icon_type, EvasSmartCb func, System.IntPtr data) - { - Eina.Log.Debug("function efl_ui_text_context_menu_item_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).AddContextMenuItem( label, icon_file, icon_type, func, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetLinerelgap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linerelgap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_get_static_delegate) }); } - } else { - efl_ui_text_context_menu_item_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), label, icon_file, icon_type, func, data); - } - } - private static efl_ui_text_context_menu_item_add_delegate efl_ui_text_context_menu_item_add_static_delegate; + if (efl_text_linerelgap_set_static_delegate == null) + { + efl_text_linerelgap_set_static_delegate = new efl_text_linerelgap_set_delegate(linerelgap_set); + } - private delegate Efl.TextCursorCursor efl_ui_text_cursor_new_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetLinerelgap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_linerelgap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_linerelgap_set_static_delegate) }); + } + if (efl_text_tabstops_get_static_delegate == null) + { + efl_text_tabstops_get_static_delegate = new efl_text_tabstops_get_delegate(tabstops_get); + } - public delegate Efl.TextCursorCursor efl_ui_text_cursor_new_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_text_cursor_new_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_cursor_new"); - private static Efl.TextCursorCursor cursor_new(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_text_cursor_new was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); - try { - _ret_var = ((Text)wrapper).NewCursor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTabstops") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_tabstops_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_cursor_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_text_cursor_new_delegate efl_ui_text_cursor_new_static_delegate; + if (efl_text_tabstops_set_static_delegate == null) + { + efl_text_tabstops_set_static_delegate = new efl_text_tabstops_set_delegate(tabstops_set); + } - private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetTabstops") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_tabstops_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_tabstops_set_static_delegate) }); + } + if (efl_text_password_get_static_delegate == null) + { + efl_text_password_get_static_delegate = new efl_text_password_get_delegate(password_get); + } - public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_get"); - private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_mmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.File _ret_var = default(Eina.File); - try { - _ret_var = ((Text)wrapper).GetMmap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetPassword") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_password_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + if (efl_text_password_set_static_delegate == null) + { + efl_text_password_set_static_delegate = new efl_text_password_set_delegate(password_set); + } - private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + if (methods.FirstOrDefault(m => m.Name == "SetPassword") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_password_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_password_set_static_delegate) }); + } + if (efl_text_replacement_char_get_static_delegate == null) + { + efl_text_replacement_char_get_static_delegate = new efl_text_replacement_char_get_delegate(replacement_char_get); + } - public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); - public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_set"); - private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) - { - Eina.Log.Debug("function efl_file_mmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Text)wrapper).SetMmap( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetReplacementChar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_replacement_char_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + if (efl_text_replacement_char_set_static_delegate == null) + { + efl_text_replacement_char_set_static_delegate = new efl_text_replacement_char_set_delegate(replacement_char_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetReplacementChar") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_replacement_char_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_replacement_char_set_static_delegate) }); + } + if (efl_text_interactive_selection_allowed_get_static_delegate == null) + { + efl_text_interactive_selection_allowed_get_static_delegate = new efl_text_interactive_selection_allowed_get_delegate(selection_allowed_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_get"); - private static System.String file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Text)wrapper).GetFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSelectionAllowed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_selection_allowed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_allowed_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_get_delegate efl_file_get_static_delegate; + if (efl_text_interactive_selection_allowed_set_static_delegate == null) + { + efl_text_interactive_selection_allowed_set_static_delegate = new efl_text_interactive_selection_allowed_set_delegate(selection_allowed_set); + } - private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + if (methods.FirstOrDefault(m => m.Name == "SetSelectionAllowed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_selection_allowed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_allowed_set_static_delegate) }); + } + if (efl_text_interactive_selection_cursors_get_static_delegate == null) + { + efl_text_interactive_selection_cursors_get_static_delegate = new efl_text_interactive_selection_cursors_get_delegate(selection_cursors_get); + } - public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_set"); - private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) - { - Eina.Log.Debug("function efl_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Text)wrapper).SetFile( file); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSelectionCursors") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_selection_cursors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_selection_cursors_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); - } - } - private static efl_file_set_delegate efl_file_set_static_delegate; + if (efl_text_interactive_editable_get_static_delegate == null) + { + efl_text_interactive_editable_get_static_delegate = new efl_text_interactive_editable_get_delegate(editable_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetEditable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_editable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_editable_get_static_delegate) }); + } + if (efl_text_interactive_editable_set_static_delegate == null) + { + efl_text_interactive_editable_set_static_delegate = new efl_text_interactive_editable_set_delegate(editable_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Text)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetEditable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_editable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_editable_set_static_delegate) }); } - return _ret_var; - } else { - return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + if (efl_text_interactive_select_none_static_delegate == null) + { + efl_text_interactive_select_none_static_delegate = new efl_text_interactive_select_none_delegate(select_none); + } - private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + if (methods.FirstOrDefault(m => m.Name == "SelectNone") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_interactive_select_none"), func = Marshal.GetFunctionPointerForDelegate(efl_text_interactive_select_none_static_delegate) }); + } + if (efl_text_normal_color_get_static_delegate == null) + { + efl_text_normal_color_get_static_delegate = new efl_text_normal_color_get_delegate(normal_color_get); + } - public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_file_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetKey( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetNormalColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_normal_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_get_static_delegate) }); } - } else { - efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); - } - } - private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + if (efl_text_normal_color_set_static_delegate == null) + { + efl_text_normal_color_set_static_delegate = new efl_text_normal_color_set_delegate(normal_color_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetNormalColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_normal_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_normal_color_set_static_delegate) }); + } + if (efl_text_backing_type_get_static_delegate == null) + { + efl_text_backing_type_get_static_delegate = new efl_text_backing_type_get_delegate(backing_type_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_loaded_get"); - private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_loaded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetLoaded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBackingType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + if (efl_text_backing_type_set_static_delegate == null) + { + efl_text_backing_type_set_static_delegate = new efl_text_backing_type_set_delegate(backing_type_set); + } - private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetBackingType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_type_set_static_delegate) }); + } + if (efl_text_backing_color_get_static_delegate == null) + { + efl_text_backing_color_get_static_delegate = new efl_text_backing_color_get_delegate(backing_color_get); + } - public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_load"); - private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_load was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Text)wrapper).Load(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetBackingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_load_delegate efl_file_load_static_delegate; + if (efl_text_backing_color_set_static_delegate == null) + { + efl_text_backing_color_set_static_delegate = new efl_text_backing_color_set_delegate(backing_color_set); + } - private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetBackingColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_backing_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_backing_color_set_static_delegate) }); + } + if (efl_text_underline_type_get_static_delegate == null) + { + efl_text_underline_type_get_static_delegate = new efl_text_underline_type_get_delegate(underline_type_get); + } - public delegate void efl_file_unload_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_unload"); - private static void unload(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_unload was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).Unload(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_get_static_delegate) }); } - } else { - efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_unload_delegate efl_file_unload_static_delegate; + if (efl_text_underline_type_set_static_delegate == null) + { + efl_text_underline_type_set_static_delegate = new efl_text_underline_type_set_delegate(underline_type_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_type_set_static_delegate) }); + } + if (efl_text_underline_color_get_static_delegate == null) + { + efl_text_underline_color_get_static_delegate = new efl_text_underline_color_get_delegate(underline_color_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Text)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + if (efl_text_underline_color_set_static_delegate == null) + { + efl_text_underline_color_set_static_delegate = new efl_text_underline_color_set_delegate(underline_color_set); + } - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_color_set_static_delegate) }); + } + if (efl_text_underline_height_get_static_delegate == null) + { + efl_text_underline_height_get_static_delegate = new efl_text_underline_height_get_delegate(underline_height_get); + } - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineHeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_height_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_get_static_delegate) }); } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); - } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + if (efl_text_underline_height_set_static_delegate == null) + { + efl_text_underline_height_set_static_delegate = new efl_text_underline_height_set_delegate(underline_height_set); + } - private delegate void efl_text_font_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineHeight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_height_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_height_set_static_delegate) }); + } + if (efl_text_underline_dashed_color_get_static_delegate == null) + { + efl_text_underline_dashed_color_get_static_delegate = new efl_text_underline_dashed_color_get_delegate(underline_dashed_color_get); + } - public delegate void efl_text_font_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_text_font_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_get"); - private static void font_get(System.IntPtr obj, System.IntPtr pd, out System.String font, out Efl.Font.Size size) - { - Eina.Log.Debug("function efl_text_font_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_font = default(System.String); - size = default(Efl.Font.Size); - try { - ((Text)wrapper).GetFont( out _out_font, out size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_get_static_delegate) }); } - font = _out_font; - } else { - efl_text_font_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out font, out size); - } - } - private static efl_text_font_get_delegate efl_text_font_get_static_delegate; + if (efl_text_underline_dashed_color_set_static_delegate == null) + { + efl_text_underline_dashed_color_set_static_delegate = new efl_text_underline_dashed_color_set_delegate(underline_dashed_color_set); + } - private delegate void efl_text_font_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_color_set_static_delegate) }); + } + if (efl_text_underline_dashed_width_get_static_delegate == null) + { + efl_text_underline_dashed_width_get_static_delegate = new efl_text_underline_dashed_width_get_delegate(underline_dashed_width_get); + } - public delegate void efl_text_font_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); - public static Efl.Eo.FunctionWrapper efl_text_font_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_set"); - private static void font_set(System.IntPtr obj, System.IntPtr pd, System.String font, Efl.Font.Size size) - { - Eina.Log.Debug("function efl_text_font_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetFont( font, size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_get_static_delegate) }); } - } else { - efl_text_font_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font, size); - } - } - private static efl_text_font_set_delegate efl_text_font_set_static_delegate; + if (efl_text_underline_dashed_width_set_static_delegate == null) + { + efl_text_underline_dashed_width_set_static_delegate = new efl_text_underline_dashed_width_set_delegate(underline_dashed_width_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedWidth") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_width_set_static_delegate) }); + } + if (efl_text_underline_dashed_gap_get_static_delegate == null) + { + efl_text_underline_dashed_gap_get_static_delegate = new efl_text_underline_dashed_gap_get_delegate(underline_dashed_gap_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_source_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_source_get"); - private static System.String font_source_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_source_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Text)wrapper).GetFontSource(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetUnderlineDashedGap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_gap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_font_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_source_get_delegate efl_text_font_source_get_static_delegate; + if (efl_text_underline_dashed_gap_set_static_delegate == null) + { + efl_text_underline_dashed_gap_set_static_delegate = new efl_text_underline_dashed_gap_set_delegate(underline_dashed_gap_set); + } - private delegate void efl_text_font_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + if (methods.FirstOrDefault(m => m.Name == "SetUnderlineDashedGap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline_dashed_gap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline_dashed_gap_set_static_delegate) }); + } + if (efl_text_underline2_color_get_static_delegate == null) + { + efl_text_underline2_color_get_static_delegate = new efl_text_underline2_color_get_delegate(underline2_color_get); + } - public delegate void efl_text_font_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); - public static Efl.Eo.FunctionWrapper efl_text_font_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_source_set"); - private static void font_source_set(System.IntPtr obj, System.IntPtr pd, System.String font_source) - { - Eina.Log.Debug("function efl_text_font_source_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetFontSource( font_source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetUnderline2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_get_static_delegate) }); } - } else { - efl_text_font_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_source); - } - } - private static efl_text_font_source_set_delegate efl_text_font_source_set_static_delegate; + if (efl_text_underline2_color_set_static_delegate == null) + { + efl_text_underline2_color_set_static_delegate = new efl_text_underline2_color_set_delegate(underline2_color_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_fallbacks_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetUnderline2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_underline2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_underline2_color_set_static_delegate) }); + } + if (efl_text_strikethrough_type_get_static_delegate == null) + { + efl_text_strikethrough_type_get_static_delegate = new efl_text_strikethrough_type_get_delegate(strikethrough_type_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_fallbacks_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_fallbacks_get"); - private static System.String font_fallbacks_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_fallbacks_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Text)wrapper).GetFontFallbacks(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_font_fallbacks_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_fallbacks_get_delegate efl_text_font_fallbacks_get_static_delegate; + if (efl_text_strikethrough_type_set_static_delegate == null) + { + efl_text_strikethrough_type_set_static_delegate = new efl_text_strikethrough_type_set_delegate(strikethrough_type_set); + } - private delegate void efl_text_font_fallbacks_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_type_set_static_delegate) }); + } + if (efl_text_strikethrough_color_get_static_delegate == null) + { + efl_text_strikethrough_color_get_static_delegate = new efl_text_strikethrough_color_get_delegate(strikethrough_color_get); + } - public delegate void efl_text_font_fallbacks_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); - public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_fallbacks_set"); - private static void font_fallbacks_set(System.IntPtr obj, System.IntPtr pd, System.String font_fallbacks) - { - Eina.Log.Debug("function efl_text_font_fallbacks_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetFontFallbacks( font_fallbacks); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetStrikethroughColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_get_static_delegate) }); } - } else { - efl_text_font_fallbacks_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_fallbacks); - } - } - private static efl_text_font_fallbacks_set_delegate efl_text_font_fallbacks_set_static_delegate; + if (efl_text_strikethrough_color_set_static_delegate == null) + { + efl_text_strikethrough_color_set_static_delegate = new efl_text_strikethrough_color_set_delegate(strikethrough_color_set); + } - private delegate Efl.TextFontWeight efl_text_font_weight_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetStrikethroughColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_strikethrough_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_strikethrough_color_set_static_delegate) }); + } + if (efl_text_effect_type_get_static_delegate == null) + { + efl_text_effect_type_get_static_delegate = new efl_text_effect_type_get_delegate(effect_type_get); + } - public delegate Efl.TextFontWeight efl_text_font_weight_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_weight_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_weight_get"); - private static Efl.TextFontWeight font_weight_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_weight_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontWeight _ret_var = default(Efl.TextFontWeight); - try { - _ret_var = ((Text)wrapper).GetFontWeight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetEffectType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_effect_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_font_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_weight_get_delegate efl_text_font_weight_get_static_delegate; + if (efl_text_effect_type_set_static_delegate == null) + { + efl_text_effect_type_set_static_delegate = new efl_text_effect_type_set_delegate(effect_type_set); + } - private delegate void efl_text_font_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight); + if (methods.FirstOrDefault(m => m.Name == "SetEffectType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_effect_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_effect_type_set_static_delegate) }); + } + if (efl_text_outline_color_get_static_delegate == null) + { + efl_text_outline_color_get_static_delegate = new efl_text_outline_color_get_delegate(outline_color_get); + } - public delegate void efl_text_font_weight_set_api_delegate(System.IntPtr obj, Efl.TextFontWeight font_weight); - public static Efl.Eo.FunctionWrapper efl_text_font_weight_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_weight_set"); - private static void font_weight_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight) - { - Eina.Log.Debug("function efl_text_font_weight_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetFontWeight( font_weight); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetOutlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_outline_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_get_static_delegate) }); } - } else { - efl_text_font_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_weight); - } - } - private static efl_text_font_weight_set_delegate efl_text_font_weight_set_static_delegate; + if (efl_text_outline_color_set_static_delegate == null) + { + efl_text_outline_color_set_static_delegate = new efl_text_outline_color_set_delegate(outline_color_set); + } - private delegate Efl.TextFontSlant efl_text_font_slant_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetOutlineColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_outline_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_outline_color_set_static_delegate) }); + } + if (efl_text_shadow_direction_get_static_delegate == null) + { + efl_text_shadow_direction_get_static_delegate = new efl_text_shadow_direction_get_delegate(shadow_direction_get); + } - public delegate Efl.TextFontSlant efl_text_font_slant_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_slant_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_slant_get"); - private static Efl.TextFontSlant font_slant_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_slant_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontSlant _ret_var = default(Efl.TextFontSlant); - try { - _ret_var = ((Text)wrapper).GetFontSlant(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetShadowDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_font_slant_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_slant_get_delegate efl_text_font_slant_get_static_delegate; + if (efl_text_shadow_direction_set_static_delegate == null) + { + efl_text_shadow_direction_set_static_delegate = new efl_text_shadow_direction_set_delegate(shadow_direction_set); + } - private delegate void efl_text_font_slant_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style); + if (methods.FirstOrDefault(m => m.Name == "SetShadowDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_direction_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_direction_set_static_delegate) }); + } + if (efl_text_shadow_color_get_static_delegate == null) + { + efl_text_shadow_color_get_static_delegate = new efl_text_shadow_color_get_delegate(shadow_color_get); + } - public delegate void efl_text_font_slant_set_api_delegate(System.IntPtr obj, Efl.TextFontSlant style); - public static Efl.Eo.FunctionWrapper efl_text_font_slant_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_slant_set"); - private static void font_slant_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style) - { - Eina.Log.Debug("function efl_text_font_slant_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetFontSlant( style); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetShadowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_get_static_delegate) }); } - } else { - efl_text_font_slant_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); - } - } - private static efl_text_font_slant_set_delegate efl_text_font_slant_set_static_delegate; + if (efl_text_shadow_color_set_static_delegate == null) + { + efl_text_shadow_color_set_static_delegate = new efl_text_shadow_color_set_delegate(shadow_color_set); + } - private delegate Efl.TextFontWidth efl_text_font_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetShadowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_shadow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_shadow_color_set_static_delegate) }); + } + if (efl_text_glow_color_get_static_delegate == null) + { + efl_text_glow_color_get_static_delegate = new efl_text_glow_color_get_delegate(glow_color_get); + } - public delegate Efl.TextFontWidth efl_text_font_width_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_width_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_width_get"); - private static Efl.TextFontWidth font_width_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_width_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontWidth _ret_var = default(Efl.TextFontWidth); - try { - _ret_var = ((Text)wrapper).GetFontWidth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGlowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_font_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_width_get_delegate efl_text_font_width_get_static_delegate; + if (efl_text_glow_color_set_static_delegate == null) + { + efl_text_glow_color_set_static_delegate = new efl_text_glow_color_set_delegate(glow_color_set); + } - private delegate void efl_text_font_width_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width); + if (methods.FirstOrDefault(m => m.Name == "SetGlowColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow_color_set_static_delegate) }); + } + if (efl_text_glow2_color_get_static_delegate == null) + { + efl_text_glow2_color_get_static_delegate = new efl_text_glow2_color_get_delegate(glow2_color_get); + } - public delegate void efl_text_font_width_set_api_delegate(System.IntPtr obj, Efl.TextFontWidth width); - public static Efl.Eo.FunctionWrapper efl_text_font_width_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_width_set"); - private static void font_width_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width) - { - Eina.Log.Debug("function efl_text_font_width_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetFontWidth( width); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGlow2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow2_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_get_static_delegate) }); } - } else { - efl_text_font_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); - } - } - private static efl_text_font_width_set_delegate efl_text_font_width_set_static_delegate; + if (efl_text_glow2_color_set_static_delegate == null) + { + efl_text_glow2_color_set_static_delegate = new efl_text_glow2_color_set_delegate(glow2_color_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_lang_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetGlow2Color") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_glow2_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_glow2_color_set_static_delegate) }); + } + if (efl_text_gfx_filter_get_static_delegate == null) + { + efl_text_gfx_filter_get_static_delegate = new efl_text_gfx_filter_get_delegate(gfx_filter_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_lang_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_lang_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_lang_get"); - private static System.String font_lang_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_lang_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Text)wrapper).GetFontLang(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetGfxFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_gfx_filter_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_font_lang_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_lang_get_delegate efl_text_font_lang_get_static_delegate; + if (efl_text_gfx_filter_set_static_delegate == null) + { + efl_text_gfx_filter_set_static_delegate = new efl_text_gfx_filter_set_delegate(gfx_filter_set); + } - private delegate void efl_text_font_lang_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + if (methods.FirstOrDefault(m => m.Name == "SetGfxFilter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_gfx_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_gfx_filter_set_static_delegate) }); + } + if (efl_access_text_character_get_static_delegate == null) + { + efl_access_text_character_get_static_delegate = new efl_access_text_character_get_delegate(character_get); + } - public delegate void efl_text_font_lang_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); - public static Efl.Eo.FunctionWrapper efl_text_font_lang_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_lang_set"); - private static void font_lang_set(System.IntPtr obj, System.IntPtr pd, System.String lang) - { - Eina.Log.Debug("function efl_text_font_lang_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetFontLang( lang); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCharacter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_character_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_get_static_delegate) }); } - } else { - efl_text_font_lang_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang); - } - } - private static efl_text_font_lang_set_delegate efl_text_font_lang_set_static_delegate; + if (efl_access_text_string_get_static_delegate == null) + { + efl_access_text_string_get_static_delegate = new efl_access_text_string_get_delegate(string_get); + } - private delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetString") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_string_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_string_get_static_delegate) }); + } + if (efl_access_text_get_static_delegate == null) + { + efl_access_text_get_static_delegate = new efl_access_text_get_delegate(access_text_get); + } - public delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_bitmap_scalable_get"); - private static Efl.TextFontBitmapScalable font_bitmap_scalable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_font_bitmap_scalable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFontBitmapScalable _ret_var = default(Efl.TextFontBitmapScalable); - try { - _ret_var = ((Text)wrapper).GetFontBitmapScalable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetAccessText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_font_bitmap_scalable_get_delegate efl_text_font_bitmap_scalable_get_static_delegate; + if (efl_access_text_caret_offset_get_static_delegate == null) + { + efl_access_text_caret_offset_get_static_delegate = new efl_access_text_caret_offset_get_delegate(caret_offset_get); + } - private delegate void efl_text_font_bitmap_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable); + if (methods.FirstOrDefault(m => m.Name == "GetCaretOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_caret_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_caret_offset_get_static_delegate) }); + } + if (efl_access_text_caret_offset_set_static_delegate == null) + { + efl_access_text_caret_offset_set_static_delegate = new efl_access_text_caret_offset_set_delegate(caret_offset_set); + } - public delegate void efl_text_font_bitmap_scalable_set_api_delegate(System.IntPtr obj, Efl.TextFontBitmapScalable scalable); - public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_font_bitmap_scalable_set"); - private static void font_bitmap_scalable_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable) - { - Eina.Log.Debug("function efl_text_font_bitmap_scalable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetFontBitmapScalable( scalable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCaretOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_caret_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_caret_offset_set_static_delegate) }); } - } else { - efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scalable); - } - } - private static efl_text_font_bitmap_scalable_set_delegate efl_text_font_bitmap_scalable_set_static_delegate; + if (efl_access_text_attribute_get_static_delegate == null) + { + efl_access_text_attribute_get_static_delegate = new efl_access_text_attribute_get_delegate(attribute_get); + } - private delegate double efl_text_ellipsis_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetAttribute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_attribute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_attribute_get_static_delegate) }); + } + if (efl_access_text_attributes_get_static_delegate == null) + { + efl_access_text_attributes_get_static_delegate = new efl_access_text_attributes_get_delegate(text_attributes_get); + } - public delegate double efl_text_ellipsis_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_ellipsis_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_ellipsis_get"); - private static double ellipsis_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_ellipsis_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Text)wrapper).GetEllipsis(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetTextAttributes") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_attributes_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_ellipsis_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_ellipsis_get_delegate efl_text_ellipsis_get_static_delegate; + if (efl_access_text_default_attributes_get_static_delegate == null) + { + efl_access_text_default_attributes_get_static_delegate = new efl_access_text_default_attributes_get_delegate(default_attributes_get); + } - private delegate void efl_text_ellipsis_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + if (methods.FirstOrDefault(m => m.Name == "GetDefaultAttributes") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_default_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_default_attributes_get_static_delegate) }); + } + if (efl_access_text_character_extents_get_static_delegate == null) + { + efl_access_text_character_extents_get_static_delegate = new efl_access_text_character_extents_get_delegate(character_extents_get); + } - public delegate void efl_text_ellipsis_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_ellipsis_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_ellipsis_set"); - private static void ellipsis_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_ellipsis_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetEllipsis( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetCharacterExtents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_character_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_extents_get_static_delegate) }); } - } else { - efl_text_ellipsis_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_ellipsis_set_delegate efl_text_ellipsis_set_static_delegate; + if (efl_access_text_character_count_get_static_delegate == null) + { + efl_access_text_character_count_get_static_delegate = new efl_access_text_character_count_get_delegate(character_count_get); + } - private delegate Efl.TextFormatWrap efl_text_wrap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCharacterCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_character_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_character_count_get_static_delegate) }); + } + if (efl_access_text_offset_at_point_get_static_delegate == null) + { + efl_access_text_offset_at_point_get_static_delegate = new efl_access_text_offset_at_point_get_delegate(offset_at_point_get); + } - public delegate Efl.TextFormatWrap efl_text_wrap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_wrap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_wrap_get"); - private static Efl.TextFormatWrap wrap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_wrap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFormatWrap _ret_var = default(Efl.TextFormatWrap); - try { - _ret_var = ((Text)wrapper).GetWrap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetOffsetAtPoint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_offset_at_point_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_offset_at_point_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_wrap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_wrap_get_delegate efl_text_wrap_get_static_delegate; + if (efl_access_text_bounded_ranges_get_static_delegate == null) + { + efl_access_text_bounded_ranges_get_static_delegate = new efl_access_text_bounded_ranges_get_delegate(bounded_ranges_get); + } - private delegate void efl_text_wrap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap); + if (methods.FirstOrDefault(m => m.Name == "GetBoundedRanges") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_bounded_ranges_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_bounded_ranges_get_static_delegate) }); + } - - public delegate void efl_text_wrap_set_api_delegate(System.IntPtr obj, Efl.TextFormatWrap wrap); - public static Efl.Eo.FunctionWrapper efl_text_wrap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_wrap_set"); - private static void wrap_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap) - { - Eina.Log.Debug("function efl_text_wrap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetWrap( wrap); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_access_text_range_extents_get_static_delegate == null) + { + efl_access_text_range_extents_get_static_delegate = new efl_access_text_range_extents_get_delegate(range_extents_get); } - } else { - efl_text_wrap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), wrap); - } - } - private static efl_text_wrap_set_delegate efl_text_wrap_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetRangeExtents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_range_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_range_extents_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_multiline_get_delegate(System.IntPtr obj, System.IntPtr pd); - + if (efl_access_text_selections_count_get_static_delegate == null) + { + efl_access_text_selections_count_get_static_delegate = new efl_access_text_selections_count_get_delegate(selections_count_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_multiline_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_multiline_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_multiline_get"); - private static bool multiline_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_multiline_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetMultiline(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSelectionsCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_selections_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selections_count_get_static_delegate) }); } - return _ret_var; - } else { - return efl_text_multiline_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_multiline_get_delegate efl_text_multiline_get_static_delegate; + if (efl_access_text_access_selection_get_static_delegate == null) + { + efl_access_text_access_selection_get_static_delegate = new efl_access_text_access_selection_get_delegate(access_selection_get); + } - private delegate void efl_text_multiline_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + if (methods.FirstOrDefault(m => m.Name == "GetAccessSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_access_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_access_selection_get_static_delegate) }); + } + if (efl_access_text_access_selection_set_static_delegate == null) + { + efl_access_text_access_selection_set_static_delegate = new efl_access_text_access_selection_set_delegate(access_selection_set); + } - public delegate void efl_text_multiline_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_text_multiline_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_multiline_set"); - private static void multiline_set(System.IntPtr obj, System.IntPtr pd, bool enabled) - { - Eina.Log.Debug("function efl_text_multiline_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetMultiline( enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetAccessSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_access_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_access_selection_set_static_delegate) }); } - } else { - efl_text_multiline_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); - } - } - private static efl_text_multiline_set_delegate efl_text_multiline_set_static_delegate; + if (efl_access_text_selection_add_static_delegate == null) + { + efl_access_text_selection_add_static_delegate = new efl_access_text_selection_add_delegate(selection_add); + } - private delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "AddSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_selection_add"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selection_add_static_delegate) }); + } + if (efl_access_text_selection_remove_static_delegate == null) + { + efl_access_text_selection_remove_static_delegate = new efl_access_text_selection_remove_delegate(selection_remove); + } - public delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_auto_type_get"); - private static Efl.TextFormatHorizontalAlignmentAutoType halign_auto_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_halign_auto_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextFormatHorizontalAlignmentAutoType _ret_var = default(Efl.TextFormatHorizontalAlignmentAutoType); - try { - _ret_var = ((Text)wrapper).GetHalignAutoType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SelectionRemove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_text_selection_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_access_text_selection_remove_static_delegate) }); } - return _ret_var; - } else { - return efl_text_halign_auto_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_halign_auto_type_get_delegate efl_text_halign_auto_type_get_static_delegate; + if (efl_access_editable_text_content_set_static_delegate == null) + { + efl_access_editable_text_content_set_static_delegate = new efl_access_editable_text_content_set_delegate(text_content_set); + } - private delegate void efl_text_halign_auto_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value); + if (methods.FirstOrDefault(m => m.Name == "SetTextContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_content_set_static_delegate) }); + } + if (efl_access_editable_text_insert_static_delegate == null) + { + efl_access_editable_text_insert_static_delegate = new efl_access_editable_text_insert_delegate(insert); + } - public delegate void efl_text_halign_auto_type_set_api_delegate(System.IntPtr obj, Efl.TextFormatHorizontalAlignmentAutoType value); - public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_auto_type_set"); - private static void halign_auto_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value) - { - Eina.Log.Debug("function efl_text_halign_auto_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetHalignAutoType( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Insert") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_insert"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_insert_static_delegate) }); } - } else { - efl_text_halign_auto_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_halign_auto_type_set_delegate efl_text_halign_auto_type_set_static_delegate; + if (efl_access_editable_text_copy_static_delegate == null) + { + efl_access_editable_text_copy_static_delegate = new efl_access_editable_text_copy_delegate(copy); + } - private delegate double efl_text_halign_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Copy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_copy"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_copy_static_delegate) }); + } + if (efl_access_editable_text_cut_static_delegate == null) + { + efl_access_editable_text_cut_static_delegate = new efl_access_editable_text_cut_delegate(cut); + } - public delegate double efl_text_halign_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_halign_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_get"); - private static double halign_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_halign_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Text)wrapper).GetHalign(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Cut") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_cut"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_cut_static_delegate) }); } - return _ret_var; - } else { - return efl_text_halign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_halign_get_delegate efl_text_halign_get_static_delegate; + if (efl_access_editable_text_delete_static_delegate == null) + { + efl_access_editable_text_delete_static_delegate = new efl_access_editable_text_delete_delegate(kw_delete); + } - private delegate void efl_text_halign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + if (methods.FirstOrDefault(m => m.Name == "Delete") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_delete"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_delete_static_delegate) }); + } + if (efl_access_editable_text_paste_static_delegate == null) + { + efl_access_editable_text_paste_static_delegate = new efl_access_editable_text_paste_delegate(paste); + } - public delegate void efl_text_halign_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_halign_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_halign_set"); - private static void halign_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_halign_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetHalign( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Paste") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_paste"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_paste_static_delegate) }); } - } else { - efl_text_halign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_halign_set_delegate efl_text_halign_set_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Text.efl_ui_text_class_get(); + } - private delegate double efl_text_valign_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_scrollable_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate double efl_text_valign_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_valign_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_valign_get"); - private static double valign_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_valign_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Text)wrapper).GetValign(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_text_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_valign_get_delegate efl_text_valign_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_scrollable_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_text_scrollable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_scrollable_get"); - private delegate void efl_text_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + private static bool scrollable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_scrollable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetScrollable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_valign_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_valign_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_valign_set"); - private static void valign_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_valign_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetValign( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + else + { + return efl_ui_text_scrollable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_valign_set_delegate efl_text_valign_set_static_delegate; + private static efl_ui_text_scrollable_get_delegate efl_ui_text_scrollable_get_static_delegate; - private delegate double efl_text_linegap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_text_scrollable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scroll); + + public delegate void efl_ui_text_scrollable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scroll); - public delegate double efl_text_linegap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_linegap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linegap_get"); - private static double linegap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_linegap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Text)wrapper).GetLinegap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_scrollable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_scrollable_set"); + + private static void scrollable_set(System.IntPtr obj, System.IntPtr pd, bool scroll) + { + Eina.Log.Debug("function efl_ui_text_scrollable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetScrollable(scroll); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_scrollable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll); } - return _ret_var; - } else { - return efl_text_linegap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_linegap_get_delegate efl_text_linegap_get_static_delegate; - - private delegate void efl_text_linegap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + private static efl_ui_text_scrollable_set_delegate efl_ui_text_scrollable_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_input_panel_show_on_demand_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_text_linegap_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_linegap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linegap_set"); - private static void linegap_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_linegap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetLinegap( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_linegap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); - } - } - private static efl_text_linegap_set_delegate efl_text_linegap_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_input_panel_show_on_demand_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_show_on_demand_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_show_on_demand_get"); - private delegate double efl_text_linerelgap_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool input_panel_show_on_demand_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_input_panel_show_on_demand_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetInputPanelShowOnDemand(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_text_linerelgap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_linerelgap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linerelgap_get"); - private static double linerelgap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_linerelgap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Text)wrapper).GetLinerelgap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_linerelgap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_text_input_panel_show_on_demand_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_linerelgap_get_delegate efl_text_linerelgap_get_static_delegate; + private static efl_ui_text_input_panel_show_on_demand_get_delegate efl_ui_text_input_panel_show_on_demand_get_static_delegate; - private delegate void efl_text_linerelgap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + private delegate void efl_ui_text_input_panel_show_on_demand_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool ondemand); + + public delegate void efl_ui_text_input_panel_show_on_demand_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool ondemand); - public delegate void efl_text_linerelgap_set_api_delegate(System.IntPtr obj, double value); - public static Efl.Eo.FunctionWrapper efl_text_linerelgap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_linerelgap_set"); - private static void linerelgap_set(System.IntPtr obj, System.IntPtr pd, double value) - { - Eina.Log.Debug("function efl_text_linerelgap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetLinerelgap( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_show_on_demand_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_show_on_demand_set"); + + private static void input_panel_show_on_demand_set(System.IntPtr obj, System.IntPtr pd, bool ondemand) + { + Eina.Log.Debug("function efl_ui_text_input_panel_show_on_demand_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetInputPanelShowOnDemand(ondemand); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_show_on_demand_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ondemand); } - } else { - efl_text_linerelgap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); } - } - private static efl_text_linerelgap_set_delegate efl_text_linerelgap_set_static_delegate; - - private delegate int efl_text_tabstops_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_text_input_panel_show_on_demand_set_delegate efl_ui_text_input_panel_show_on_demand_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_context_menu_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate int efl_text_tabstops_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_tabstops_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_tabstops_get"); - private static int tabstops_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_tabstops_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Text)wrapper).GetTabstops(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_text_tabstops_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_tabstops_get_delegate efl_text_tabstops_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_context_menu_disabled_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_text_context_menu_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_context_menu_disabled_get"); - private delegate void efl_text_tabstops_set_delegate(System.IntPtr obj, System.IntPtr pd, int value); + private static bool context_menu_disabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_context_menu_disabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetContextMenuDisabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_tabstops_set_api_delegate(System.IntPtr obj, int value); - public static Efl.Eo.FunctionWrapper efl_text_tabstops_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_tabstops_set"); - private static void tabstops_set(System.IntPtr obj, System.IntPtr pd, int value) - { - Eina.Log.Debug("function efl_text_tabstops_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetTabstops( value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_tabstops_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + else + { + return efl_ui_text_context_menu_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_tabstops_set_delegate efl_text_tabstops_set_static_delegate; + private static efl_ui_text_context_menu_disabled_get_delegate efl_ui_text_context_menu_disabled_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_password_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_text_context_menu_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public delegate void efl_ui_text_context_menu_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_password_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_password_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_password_get"); - private static bool password_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_password_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetPassword(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_context_menu_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_context_menu_disabled_set"); + + private static void context_menu_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) + { + Eina.Log.Debug("function efl_ui_text_context_menu_disabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetContextMenuDisabled(disabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_context_menu_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); } - return _ret_var; - } else { - return efl_text_password_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_password_get_delegate efl_text_password_get_static_delegate; + private static efl_ui_text_context_menu_disabled_set_delegate efl_ui_text_context_menu_disabled_set_static_delegate; - private delegate void efl_text_password_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + private delegate Efl.Ui.SelectionFormat efl_ui_text_cnp_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Ui.SelectionFormat efl_ui_text_cnp_mode_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_password_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_text_password_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_password_set"); - private static void password_set(System.IntPtr obj, System.IntPtr pd, bool enabled) - { - Eina.Log.Debug("function efl_text_password_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetPassword( enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_password_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); - } - } - private static efl_text_password_set_delegate efl_text_password_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_text_cnp_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_cnp_mode_get"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_replacement_char_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.SelectionFormat cnp_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_cnp_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.SelectionFormat _ret_var = default(Efl.Ui.SelectionFormat); + try + { + _ret_var = ((Text)wrapper).GetCnpMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_replacement_char_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_replacement_char_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_replacement_char_get"); - private static System.String replacement_char_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_replacement_char_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Text)wrapper).GetReplacementChar(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_replacement_char_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_text_cnp_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_replacement_char_get_delegate efl_text_replacement_char_get_static_delegate; + private static efl_ui_text_cnp_mode_get_delegate efl_ui_text_cnp_mode_get_static_delegate; - private delegate void efl_text_replacement_char_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + + private delegate void efl_ui_text_cnp_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format); + + public delegate void efl_ui_text_cnp_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format); - public delegate void efl_text_replacement_char_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); - public static Efl.Eo.FunctionWrapper efl_text_replacement_char_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_replacement_char_set"); - private static void replacement_char_set(System.IntPtr obj, System.IntPtr pd, System.String repch) - { - Eina.Log.Debug("function efl_text_replacement_char_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetReplacementChar( repch); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_cnp_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_cnp_mode_set"); + + private static void cnp_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format) + { + Eina.Log.Debug("function efl_ui_text_cnp_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetCnpMode(format); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_cnp_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format); } - } else { - efl_text_replacement_char_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repch); } - } - private static efl_text_replacement_char_set_delegate efl_text_replacement_char_set_static_delegate; + private static efl_ui_text_cnp_mode_set_delegate efl_ui_text_cnp_mode_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_interactive_selection_allowed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Elm.Input.Panel.Lang efl_ui_text_input_panel_language_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Elm.Input.Panel.Lang efl_ui_text_input_panel_language_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_interactive_selection_allowed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_allowed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_selection_allowed_get"); - private static bool selection_allowed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_interactive_selection_allowed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetSelectionAllowed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_text_interactive_selection_allowed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_interactive_selection_allowed_get_delegate efl_text_interactive_selection_allowed_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_language_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_language_get"); - private delegate void efl_text_interactive_selection_allowed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allowed); + private static Elm.Input.Panel.Lang input_panel_language_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_input_panel_language_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Elm.Input.Panel.Lang _ret_var = default(Elm.Input.Panel.Lang); + try + { + _ret_var = ((Text)wrapper).GetInputPanelLanguage(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_interactive_selection_allowed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allowed); - public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_allowed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_selection_allowed_set"); - private static void selection_allowed_set(System.IntPtr obj, System.IntPtr pd, bool allowed) - { - Eina.Log.Debug("function efl_text_interactive_selection_allowed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetSelectionAllowed( allowed); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_interactive_selection_allowed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allowed); + else + { + return efl_ui_text_input_panel_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_interactive_selection_allowed_set_delegate efl_text_interactive_selection_allowed_set_static_delegate; + private static efl_ui_text_input_panel_language_get_delegate efl_ui_text_input_panel_language_get_static_delegate; - private delegate void efl_text_interactive_selection_cursors_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end); + + private delegate void efl_ui_text_input_panel_language_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.Lang lang); + + public delegate void efl_ui_text_input_panel_language_set_api_delegate(System.IntPtr obj, Elm.Input.Panel.Lang lang); - public delegate void efl_text_interactive_selection_cursors_get_api_delegate(System.IntPtr obj, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end); - public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_cursors_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_selection_cursors_get"); - private static void selection_cursors_get(System.IntPtr obj, System.IntPtr pd, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end) - { - Eina.Log.Debug("function efl_text_interactive_selection_cursors_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - start = default(Efl.TextCursorCursor); end = default(Efl.TextCursorCursor); - try { - ((Text)wrapper).GetSelectionCursors( out start, out end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_language_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_language_set"); + + private static void input_panel_language_set(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.Lang lang) + { + Eina.Log.Debug("function efl_ui_text_input_panel_language_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetInputPanelLanguage(lang); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang); } - } else { - efl_text_interactive_selection_cursors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out start, out end); } - } - private static efl_text_interactive_selection_cursors_get_delegate efl_text_interactive_selection_cursors_get_static_delegate; + private static efl_ui_text_input_panel_language_set_delegate efl_ui_text_input_panel_language_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_text_interactive_editable_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_selection_handler_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_selection_handler_disabled_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_text_interactive_editable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_interactive_editable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_editable_get"); - private static bool editable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_interactive_editable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetEditable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_text_interactive_editable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_interactive_editable_get_delegate efl_text_interactive_editable_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_text_selection_handler_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_selection_handler_disabled_get"); - private delegate void efl_text_interactive_editable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool editable); + private static bool selection_handler_disabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_selection_handler_disabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetSelectionHandlerDisabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_interactive_editable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool editable); - public static Efl.Eo.FunctionWrapper efl_text_interactive_editable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_editable_set"); - private static void editable_set(System.IntPtr obj, System.IntPtr pd, bool editable) - { - Eina.Log.Debug("function efl_text_interactive_editable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetEditable( editable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_interactive_editable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), editable); + else + { + return efl_ui_text_selection_handler_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_interactive_editable_set_delegate efl_text_interactive_editable_set_static_delegate; + private static efl_ui_text_selection_handler_disabled_get_delegate efl_ui_text_selection_handler_disabled_get_static_delegate; - private delegate void efl_text_interactive_select_none_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_text_selection_handler_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public delegate void efl_ui_text_selection_handler_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public static Efl.Eo.FunctionWrapper efl_ui_text_selection_handler_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_selection_handler_disabled_set"); + + private static void selection_handler_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) + { + Eina.Log.Debug("function efl_ui_text_selection_handler_disabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetSelectionHandlerDisabled(disabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_text_interactive_select_none_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_interactive_select_none_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_interactive_select_none"); - private static void select_none(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_interactive_select_none was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Text)wrapper).SelectNone(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_interactive_select_none_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_text_selection_handler_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); + } } - } - private static efl_text_interactive_select_none_delegate efl_text_interactive_select_none_static_delegate; - - private delegate void efl_text_normal_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static efl_ui_text_selection_handler_disabled_set_delegate efl_ui_text_selection_handler_disabled_set_static_delegate; + + private delegate int efl_ui_text_input_panel_layout_variation_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_text_normal_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_normal_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_normal_color_get"); - private static void normal_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_normal_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((Text)wrapper).GetNormalColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_normal_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_text_normal_color_get_delegate efl_text_normal_color_get_static_delegate; + + public delegate int efl_ui_text_input_panel_layout_variation_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_layout_variation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_layout_variation_get"); - private delegate void efl_text_normal_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + private static int input_panel_layout_variation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_input_panel_layout_variation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Text)wrapper).GetInputPanelLayoutVariation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_normal_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_normal_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_normal_color_set"); - private static void normal_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_normal_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetNormalColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_normal_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + else + { + return efl_ui_text_input_panel_layout_variation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_normal_color_set_delegate efl_text_normal_color_set_static_delegate; + private static efl_ui_text_input_panel_layout_variation_get_delegate efl_ui_text_input_panel_layout_variation_get_static_delegate; - private delegate Efl.TextStyleBackingType efl_text_backing_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_text_input_panel_layout_variation_set_delegate(System.IntPtr obj, System.IntPtr pd, int variation); + + public delegate void efl_ui_text_input_panel_layout_variation_set_api_delegate(System.IntPtr obj, int variation); - public delegate Efl.TextStyleBackingType efl_text_backing_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_backing_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_type_get"); - private static Efl.TextStyleBackingType backing_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_backing_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleBackingType _ret_var = default(Efl.TextStyleBackingType); - try { - _ret_var = ((Text)wrapper).GetBackingType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_layout_variation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_layout_variation_set"); + + private static void input_panel_layout_variation_set(System.IntPtr obj, System.IntPtr pd, int variation) + { + Eina.Log.Debug("function efl_ui_text_input_panel_layout_variation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetInputPanelLayoutVariation(variation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_layout_variation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), variation); } - return _ret_var; - } else { - return efl_text_backing_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_backing_type_get_delegate efl_text_backing_type_get_static_delegate; - - private delegate void efl_text_backing_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type); + private static efl_ui_text_input_panel_layout_variation_set_delegate efl_ui_text_input_panel_layout_variation_set_static_delegate; + + private delegate Elm.Autocapital.Type efl_ui_text_autocapital_type_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_text_backing_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleBackingType type); - public static Efl.Eo.FunctionWrapper efl_text_backing_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_type_set"); - private static void backing_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type) - { - Eina.Log.Debug("function efl_text_backing_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetBackingType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_backing_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); - } - } - private static efl_text_backing_type_set_delegate efl_text_backing_type_set_static_delegate; + + public delegate Elm.Autocapital.Type efl_ui_text_autocapital_type_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_text_autocapital_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_autocapital_type_get"); - private delegate void efl_text_backing_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static Elm.Autocapital.Type autocapital_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_autocapital_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Elm.Autocapital.Type _ret_var = default(Elm.Autocapital.Type); + try + { + _ret_var = ((Text)wrapper).GetAutocapitalType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_backing_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_backing_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_color_get"); - private static void backing_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_backing_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((Text)wrapper).GetBackingColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_backing_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + else + { + return efl_ui_text_autocapital_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_backing_color_get_delegate efl_text_backing_color_get_static_delegate; + private static efl_ui_text_autocapital_type_get_delegate efl_ui_text_autocapital_type_get_static_delegate; - private delegate void efl_text_backing_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + private delegate void efl_ui_text_autocapital_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Autocapital.Type autocapital_type); + + public delegate void efl_ui_text_autocapital_type_set_api_delegate(System.IntPtr obj, Elm.Autocapital.Type autocapital_type); - public delegate void efl_text_backing_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_backing_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_backing_color_set"); - private static void backing_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_backing_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetBackingColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_autocapital_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_autocapital_type_set"); + + private static void autocapital_type_set(System.IntPtr obj, System.IntPtr pd, Elm.Autocapital.Type autocapital_type) + { + Eina.Log.Debug("function efl_ui_text_autocapital_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetAutocapitalType(autocapital_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_autocapital_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), autocapital_type); } - } else { - efl_text_backing_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); } - } - private static efl_text_backing_color_set_delegate efl_text_backing_color_set_static_delegate; + private static efl_ui_text_autocapital_type_set_delegate efl_ui_text_autocapital_type_set_static_delegate; - private delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_password_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_password_mode_get_api_delegate(System.IntPtr obj); - public delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_type_get"); - private static Efl.TextStyleUnderlineType underline_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleUnderlineType _ret_var = default(Efl.TextStyleUnderlineType); - try { - _ret_var = ((Text)wrapper).GetUnderlineType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_text_underline_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_underline_type_get_delegate efl_text_underline_type_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_text_password_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_password_mode_get"); - private delegate void efl_text_underline_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type); + private static bool password_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_password_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetPasswordMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_underline_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleUnderlineType type); - public static Efl.Eo.FunctionWrapper efl_text_underline_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_type_set"); - private static void underline_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type) - { - Eina.Log.Debug("function efl_text_underline_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetUnderlineType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_underline_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + else + { + return efl_ui_text_password_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_type_set_delegate efl_text_underline_type_set_static_delegate; + private static efl_ui_text_password_mode_get_delegate efl_ui_text_password_mode_get_static_delegate; - private delegate void efl_text_underline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + private delegate void efl_ui_text_password_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool password); + + public delegate void efl_ui_text_password_mode_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool password); - public delegate void efl_text_underline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_color_get"); - private static void underline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((Text)wrapper).GetUnderlineColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_password_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_password_mode_set"); + + private static void password_mode_set(System.IntPtr obj, System.IntPtr pd, bool password) + { + Eina.Log.Debug("function efl_ui_text_password_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetPasswordMode(password); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_password_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), password); } - } else { - efl_text_underline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); } - } - private static efl_text_underline_color_get_delegate efl_text_underline_color_get_static_delegate; + private static efl_ui_text_password_mode_set_delegate efl_ui_text_password_mode_set_static_delegate; - private delegate void efl_text_underline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_input_panel_return_key_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_input_panel_return_key_disabled_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_underline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_color_set"); - private static void underline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetUnderlineColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_text_underline_color_set_delegate efl_text_underline_color_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_return_key_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_return_key_disabled_get"); - private delegate double efl_text_underline_height_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool input_panel_return_key_disabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_input_panel_return_key_disabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetInputPanelReturnKeyDisabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_text_underline_height_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_height_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_height_get"); - private static double underline_height_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_height_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Text)wrapper).GetUnderlineHeight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_underline_height_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_text_input_panel_return_key_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_height_get_delegate efl_text_underline_height_get_static_delegate; + private static efl_ui_text_input_panel_return_key_disabled_get_delegate efl_ui_text_input_panel_return_key_disabled_get_static_delegate; - private delegate void efl_text_underline_height_set_delegate(System.IntPtr obj, System.IntPtr pd, double height); + + private delegate void efl_ui_text_input_panel_return_key_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public delegate void efl_ui_text_input_panel_return_key_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public delegate void efl_text_underline_height_set_api_delegate(System.IntPtr obj, double height); - public static Efl.Eo.FunctionWrapper efl_text_underline_height_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_height_set"); - private static void underline_height_set(System.IntPtr obj, System.IntPtr pd, double height) - { - Eina.Log.Debug("function efl_text_underline_height_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetUnderlineHeight( height); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_return_key_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_return_key_disabled_set"); + + private static void input_panel_return_key_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) + { + Eina.Log.Debug("function efl_ui_text_input_panel_return_key_disabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetInputPanelReturnKeyDisabled(disabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_return_key_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); } - } else { - efl_text_underline_height_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), height); } - } - private static efl_text_underline_height_set_delegate efl_text_underline_height_set_static_delegate; + private static efl_ui_text_input_panel_return_key_disabled_set_delegate efl_ui_text_input_panel_return_key_disabled_set_static_delegate; - private delegate void efl_text_underline_dashed_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_prediction_allow_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_prediction_allow_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_underline_dashed_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_color_get"); - private static void underline_dashed_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline_dashed_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((Text)wrapper).GetUnderlineDashedColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_text_underline_dashed_color_get_delegate efl_text_underline_dashed_color_get_static_delegate; + public static Efl.Eo.FunctionWrapper efl_ui_text_prediction_allow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_prediction_allow_get"); + private static bool prediction_allow_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_prediction_allow_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetPredictionAllow(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_text_underline_dashed_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); - + return _ret_var; - public delegate void efl_text_underline_dashed_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_color_set"); - private static void underline_dashed_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline_dashed_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetUnderlineDashedColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_underline_dashed_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + else + { + return efl_ui_text_prediction_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_dashed_color_set_delegate efl_text_underline_dashed_color_set_static_delegate; + private static efl_ui_text_prediction_allow_get_delegate efl_ui_text_prediction_allow_get_static_delegate; - private delegate int efl_text_underline_dashed_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_text_prediction_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool prediction); + + public delegate void efl_ui_text_prediction_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool prediction); - public delegate int efl_text_underline_dashed_width_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_width_get"); - private static int underline_dashed_width_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_dashed_width_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Text)wrapper).GetUnderlineDashedWidth(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_prediction_allow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_prediction_allow_set"); + + private static void prediction_allow_set(System.IntPtr obj, System.IntPtr pd, bool prediction) + { + Eina.Log.Debug("function efl_ui_text_prediction_allow_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetPredictionAllow(prediction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_prediction_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), prediction); } - return _ret_var; - } else { - return efl_text_underline_dashed_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_underline_dashed_width_get_delegate efl_text_underline_dashed_width_get_static_delegate; + private static efl_ui_text_prediction_allow_set_delegate efl_ui_text_prediction_allow_set_static_delegate; - private delegate void efl_text_underline_dashed_width_set_delegate(System.IntPtr obj, System.IntPtr pd, int width); + + private delegate Elm.Input.Hints efl_ui_text_input_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Elm.Input.Hints efl_ui_text_input_hint_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_underline_dashed_width_set_api_delegate(System.IntPtr obj, int width); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_width_set"); - private static void underline_dashed_width_set(System.IntPtr obj, System.IntPtr pd, int width) - { - Eina.Log.Debug("function efl_text_underline_dashed_width_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetUnderlineDashedWidth( width); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); - } - } - private static efl_text_underline_dashed_width_set_delegate efl_text_underline_dashed_width_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_text_input_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_hint_get"); - private delegate int efl_text_underline_dashed_gap_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Elm.Input.Hints input_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_input_hint_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Elm.Input.Hints _ret_var = default(Elm.Input.Hints); + try + { + _ret_var = ((Text)wrapper).GetInputHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_text_underline_dashed_gap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_gap_get"); - private static int underline_dashed_gap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_underline_dashed_gap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Text)wrapper).GetUnderlineDashedGap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_underline_dashed_gap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_text_input_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_underline_dashed_gap_get_delegate efl_text_underline_dashed_gap_get_static_delegate; + private static efl_ui_text_input_hint_get_delegate efl_ui_text_input_hint_get_static_delegate; - private delegate void efl_text_underline_dashed_gap_set_delegate(System.IntPtr obj, System.IntPtr pd, int gap); + + private delegate void efl_ui_text_input_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Input.Hints hints); + + public delegate void efl_ui_text_input_hint_set_api_delegate(System.IntPtr obj, Elm.Input.Hints hints); - public delegate void efl_text_underline_dashed_gap_set_api_delegate(System.IntPtr obj, int gap); - public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline_dashed_gap_set"); - private static void underline_dashed_gap_set(System.IntPtr obj, System.IntPtr pd, int gap) - { - Eina.Log.Debug("function efl_text_underline_dashed_gap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetUnderlineDashedGap( gap); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline_dashed_gap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gap); - } - } - private static efl_text_underline_dashed_gap_set_delegate efl_text_underline_dashed_gap_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_text_input_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_hint_set"); - private delegate void efl_text_underline2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static void input_hint_set(System.IntPtr obj, System.IntPtr pd, Elm.Input.Hints hints) + { + Eina.Log.Debug("function efl_ui_text_input_hint_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetInputHint(hints); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - - public delegate void efl_text_underline2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline2_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline2_color_get"); - private static void underline2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_underline2_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((Text)wrapper).GetUnderline2Color( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_ui_text_input_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hints); } - } else { - efl_text_underline2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); } - } - private static efl_text_underline2_color_get_delegate efl_text_underline2_color_get_static_delegate; + private static efl_ui_text_input_hint_set_delegate efl_ui_text_input_hint_set_static_delegate; - private delegate void efl_text_underline2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + private delegate Elm.Input.Panel.Layout efl_ui_text_input_panel_layout_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Elm.Input.Panel.Layout efl_ui_text_input_panel_layout_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_underline2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_underline2_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_underline2_color_set"); - private static void underline2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_underline2_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetUnderline2Color( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_underline2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_text_underline2_color_set_delegate efl_text_underline2_color_set_static_delegate; + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_layout_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_layout_get"); + private static Elm.Input.Panel.Layout input_panel_layout_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_input_panel_layout_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Elm.Input.Panel.Layout _ret_var = default(Elm.Input.Panel.Layout); + try + { + _ret_var = ((Text)wrapper).GetInputPanelLayout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - public delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_type_get"); - private static Efl.TextStyleStrikethroughType strikethrough_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_strikethrough_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleStrikethroughType _ret_var = default(Efl.TextStyleStrikethroughType); - try { - _ret_var = ((Text)wrapper).GetStrikethroughType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_strikethrough_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_text_input_panel_layout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_strikethrough_type_get_delegate efl_text_strikethrough_type_get_static_delegate; + private static efl_ui_text_input_panel_layout_get_delegate efl_ui_text_input_panel_layout_get_static_delegate; - private delegate void efl_text_strikethrough_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type); + + private delegate void efl_ui_text_input_panel_layout_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.Layout layout); + + public delegate void efl_ui_text_input_panel_layout_set_api_delegate(System.IntPtr obj, Elm.Input.Panel.Layout layout); - public delegate void efl_text_strikethrough_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleStrikethroughType type); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_type_set"); - private static void strikethrough_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type) - { - Eina.Log.Debug("function efl_text_strikethrough_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetStrikethroughType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_layout_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_layout_set"); + + private static void input_panel_layout_set(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.Layout layout) + { + Eina.Log.Debug("function efl_ui_text_input_panel_layout_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetInputPanelLayout(layout); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_layout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), layout); } - } else { - efl_text_strikethrough_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); } - } - private static efl_text_strikethrough_type_set_delegate efl_text_strikethrough_type_set_static_delegate; + private static efl_ui_text_input_panel_layout_set_delegate efl_ui_text_input_panel_layout_set_static_delegate; - private delegate void efl_text_strikethrough_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + private delegate Elm.Input.Panel.ReturnKey.Type efl_ui_text_input_panel_return_key_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Elm.Input.Panel.ReturnKey.Type efl_ui_text_input_panel_return_key_type_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_strikethrough_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_color_get"); - private static void strikethrough_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_strikethrough_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((Text)wrapper).GetStrikethroughColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_strikethrough_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_text_strikethrough_color_get_delegate efl_text_strikethrough_color_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_return_key_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_return_key_type_get"); - private delegate void efl_text_strikethrough_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + private static Elm.Input.Panel.ReturnKey.Type input_panel_return_key_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_input_panel_return_key_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Elm.Input.Panel.ReturnKey.Type _ret_var = default(Elm.Input.Panel.ReturnKey.Type); + try + { + _ret_var = ((Text)wrapper).GetInputPanelReturnKeyType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_strikethrough_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_strikethrough_color_set"); - private static void strikethrough_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_strikethrough_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetStrikethroughColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_strikethrough_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + else + { + return efl_ui_text_input_panel_return_key_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_strikethrough_color_set_delegate efl_text_strikethrough_color_set_static_delegate; + private static efl_ui_text_input_panel_return_key_type_get_delegate efl_ui_text_input_panel_return_key_type_get_static_delegate; - private delegate Efl.TextStyleEffectType efl_text_effect_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_text_input_panel_return_key_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.ReturnKey.Type return_key_type); + + public delegate void efl_ui_text_input_panel_return_key_type_set_api_delegate(System.IntPtr obj, Elm.Input.Panel.ReturnKey.Type return_key_type); - public delegate Efl.TextStyleEffectType efl_text_effect_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_effect_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_effect_type_get"); - private static Efl.TextStyleEffectType effect_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_effect_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleEffectType _ret_var = default(Efl.TextStyleEffectType); - try { - _ret_var = ((Text)wrapper).GetEffectType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_return_key_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_return_key_type_set"); + + private static void input_panel_return_key_type_set(System.IntPtr obj, System.IntPtr pd, Elm.Input.Panel.ReturnKey.Type return_key_type) + { + Eina.Log.Debug("function efl_ui_text_input_panel_return_key_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetInputPanelReturnKeyType(return_key_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_return_key_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), return_key_type); } - return _ret_var; - } else { - return efl_text_effect_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_effect_type_get_delegate efl_text_effect_type_get_static_delegate; + private static efl_ui_text_input_panel_return_key_type_set_delegate efl_ui_text_input_panel_return_key_type_set_static_delegate; - private delegate void efl_text_effect_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_input_panel_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_input_panel_enabled_get_api_delegate(System.IntPtr obj); - public delegate void efl_text_effect_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleEffectType type); - public static Efl.Eo.FunctionWrapper efl_text_effect_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_effect_type_set"); - private static void effect_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type) - { - Eina.Log.Debug("function efl_text_effect_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetEffectType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_effect_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); - } - } - private static efl_text_effect_type_set_delegate efl_text_effect_type_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_enabled_get"); - private delegate void efl_text_outline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static bool input_panel_enabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_input_panel_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetInputPanelEnabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_outline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_outline_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_outline_color_get"); - private static void outline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_outline_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((Text)wrapper).GetOutlineColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_outline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + else + { + return efl_ui_text_input_panel_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_outline_color_get_delegate efl_text_outline_color_get_static_delegate; + private static efl_ui_text_input_panel_enabled_get_delegate efl_ui_text_input_panel_enabled_get_static_delegate; - private delegate void efl_text_outline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + private delegate void efl_ui_text_input_panel_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public delegate void efl_ui_text_input_panel_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public delegate void efl_text_outline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_outline_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_outline_color_set"); - private static void outline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_outline_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetOutlineColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_enabled_set"); + + private static void input_panel_enabled_set(System.IntPtr obj, System.IntPtr pd, bool enabled) + { + Eina.Log.Debug("function efl_ui_text_input_panel_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetInputPanelEnabled(enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); } - } else { - efl_text_outline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); } - } - private static efl_text_outline_color_set_delegate efl_text_outline_color_set_static_delegate; + private static efl_ui_text_input_panel_enabled_set_delegate efl_ui_text_input_panel_enabled_set_static_delegate; - private delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_text_input_panel_return_key_autoenabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public delegate void efl_ui_text_input_panel_return_key_autoenabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_direction_get"); - private static Efl.TextStyleShadowDirection shadow_direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_shadow_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.TextStyleShadowDirection _ret_var = default(Efl.TextStyleShadowDirection); - try { - _ret_var = ((Text)wrapper).GetShadowDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_return_key_autoenabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_return_key_autoenabled_set"); + + private static void input_panel_return_key_autoenabled_set(System.IntPtr obj, System.IntPtr pd, bool enabled) + { + Eina.Log.Debug("function efl_ui_text_input_panel_return_key_autoenabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetInputPanelReturnKeyAutoenabled(enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_return_key_autoenabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); } - return _ret_var; - } else { - return efl_text_shadow_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_shadow_direction_get_delegate efl_text_shadow_direction_get_static_delegate; - - private delegate void efl_text_shadow_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type); + private static efl_ui_text_input_panel_return_key_autoenabled_set_delegate efl_ui_text_input_panel_return_key_autoenabled_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.ITextFactory efl_ui_text_item_factory_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_text_shadow_direction_set_api_delegate(System.IntPtr obj, Efl.TextStyleShadowDirection type); - public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_direction_set"); - private static void shadow_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type) - { - Eina.Log.Debug("function efl_text_shadow_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetShadowDirection( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_shadow_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); - } - } - private static efl_text_shadow_direction_set_delegate efl_text_shadow_direction_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.ITextFactory efl_ui_text_item_factory_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_text_item_factory_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_item_factory_get"); - private delegate void efl_text_shadow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + private static Efl.Canvas.ITextFactory item_factory_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_item_factory_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.ITextFactory _ret_var = default(Efl.Canvas.ITextFactory); + try + { + _ret_var = ((Text)wrapper).GetItemFactory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_text_shadow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_shadow_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_color_get"); - private static void shadow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_shadow_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((Text)wrapper).GetShadowColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_text_shadow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + else + { + return efl_ui_text_item_factory_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_shadow_color_get_delegate efl_text_shadow_color_get_static_delegate; + private static efl_ui_text_item_factory_get_delegate efl_ui_text_item_factory_get_static_delegate; - private delegate void efl_text_shadow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + private delegate void efl_ui_text_item_factory_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.ITextFactory item_factory); + + public delegate void efl_ui_text_item_factory_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.ITextFactory item_factory); - public delegate void efl_text_shadow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_shadow_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_shadow_color_set"); - private static void shadow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_shadow_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetShadowColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_item_factory_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_item_factory_set"); + + private static void item_factory_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.ITextFactory item_factory) + { + Eina.Log.Debug("function efl_ui_text_item_factory_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetItemFactory(item_factory); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_item_factory_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item_factory); } - } else { - efl_text_shadow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); } - } - private static efl_text_shadow_color_set_delegate efl_text_shadow_color_set_static_delegate; + private static efl_ui_text_item_factory_set_delegate efl_ui_text_item_factory_set_static_delegate; - private delegate void efl_text_glow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + private delegate void efl_ui_text_input_panel_show_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_text_input_panel_show_api_delegate(System.IntPtr obj); - public delegate void efl_text_glow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow_color_get"); - private static void glow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_glow_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((Text)wrapper).GetGlowColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_show_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_show"); + + private static void input_panel_show(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_input_panel_show was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).ShowInputPanel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_text_glow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); } - } - private static efl_text_glow_color_get_delegate efl_text_glow_color_get_static_delegate; + private static efl_ui_text_input_panel_show_delegate efl_ui_text_input_panel_show_static_delegate; - private delegate void efl_text_glow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + private delegate void efl_ui_text_selection_copy_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_text_selection_copy_api_delegate(System.IntPtr obj); - public delegate void efl_text_glow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow_color_set"); - private static void glow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_glow_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetGlowColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_selection_copy_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_selection_copy"); + + private static void selection_copy(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_selection_copy was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SelectionCopy(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_selection_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_text_glow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); } - } - private static efl_text_glow_color_set_delegate efl_text_glow_color_set_static_delegate; + private static efl_ui_text_selection_copy_delegate efl_ui_text_selection_copy_static_delegate; - private delegate void efl_text_glow2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + private delegate void efl_ui_text_context_menu_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_text_context_menu_clear_api_delegate(System.IntPtr obj); - public delegate void efl_text_glow2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow2_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow2_color_get"); - private static void glow2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) - { - Eina.Log.Debug("function efl_text_glow2_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(byte); g = default(byte); b = default(byte); a = default(byte); - try { - ((Text)wrapper).GetGlow2Color( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_context_menu_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_context_menu_clear"); + + private static void context_menu_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_context_menu_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).ClearContextMenu(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_context_menu_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_text_glow2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); } - } - private static efl_text_glow2_color_get_delegate efl_text_glow2_color_get_static_delegate; + private static efl_ui_text_context_menu_clear_delegate efl_ui_text_context_menu_clear_static_delegate; - private delegate void efl_text_glow2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + private delegate void efl_ui_text_input_panel_imdata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data, int len); + + public delegate void efl_ui_text_input_panel_imdata_set_api_delegate(System.IntPtr obj, System.IntPtr data, int len); - public delegate void efl_text_glow2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); - public static Efl.Eo.FunctionWrapper efl_text_glow2_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_glow2_color_set"); - private static void glow2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) - { - Eina.Log.Debug("function efl_text_glow2_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetGlow2Color( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_imdata_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_imdata_set"); + + private static void input_panel_imdata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data, int len) + { + Eina.Log.Debug("function efl_ui_text_input_panel_imdata_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetInputPanelImdata(data, len); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_imdata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data, len); } - } else { - efl_text_glow2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); } - } - private static efl_text_glow2_color_set_delegate efl_text_glow2_color_set_static_delegate; + private static efl_ui_text_input_panel_imdata_set_delegate efl_ui_text_input_panel_imdata_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_gfx_filter_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_text_input_panel_imdata_get_delegate(System.IntPtr obj, System.IntPtr pd, ref System.IntPtr data, out int len); + + public delegate void efl_ui_text_input_panel_imdata_get_api_delegate(System.IntPtr obj, ref System.IntPtr data, out int len); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_gfx_filter_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_gfx_filter_get"); - private static System.String gfx_filter_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_gfx_filter_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Text)wrapper).GetGfxFilter(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_imdata_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_imdata_get"); + + private static void input_panel_imdata_get(System.IntPtr obj, System.IntPtr pd, ref System.IntPtr data, out int len) + { + Eina.Log.Debug("function efl_ui_text_input_panel_imdata_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + len = default(int); + try + { + ((Text)wrapper).GetInputPanelImdata(ref data, out len); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_imdata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref data, out len); } - return _ret_var; - } else { - return efl_text_gfx_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_text_gfx_filter_get_delegate efl_text_gfx_filter_get_static_delegate; + private static efl_ui_text_input_panel_imdata_get_delegate efl_ui_text_input_panel_imdata_get_static_delegate; - private delegate void efl_text_gfx_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + + private delegate void efl_ui_text_selection_paste_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_text_selection_paste_api_delegate(System.IntPtr obj); - public delegate void efl_text_gfx_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); - public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_gfx_filter_set"); - private static void gfx_filter_set(System.IntPtr obj, System.IntPtr pd, System.String code) - { - Eina.Log.Debug("function efl_text_gfx_filter_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Text)wrapper).SetGfxFilter( code); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_selection_paste_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_selection_paste"); + + private static void selection_paste(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_selection_paste was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SelectionPaste(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_selection_paste_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_text_gfx_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code); } - } - private static efl_text_gfx_filter_set_delegate efl_text_gfx_filter_set_static_delegate; + private static efl_ui_text_selection_paste_delegate efl_ui_text_selection_paste_static_delegate; - private delegate Eina.Unicode efl_access_text_character_get_delegate(System.IntPtr obj, System.IntPtr pd, int offset); + + private delegate void efl_ui_text_input_panel_hide_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_text_input_panel_hide_api_delegate(System.IntPtr obj); - public delegate Eina.Unicode efl_access_text_character_get_api_delegate(System.IntPtr obj, int offset); - public static Efl.Eo.FunctionWrapper efl_access_text_character_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_character_get"); - private static Eina.Unicode character_get(System.IntPtr obj, System.IntPtr pd, int offset) - { - Eina.Log.Debug("function efl_access_text_character_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Unicode _ret_var = default(Eina.Unicode); - try { - _ret_var = ((Text)wrapper).GetCharacter( offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_input_panel_hide_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_input_panel_hide"); + + private static void input_panel_hide(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_input_panel_hide was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).HideInputPanel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_input_panel_hide_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_access_text_character_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset); } - } - private static efl_access_text_character_get_delegate efl_access_text_character_get_static_delegate; + private static efl_ui_text_input_panel_hide_delegate efl_ui_text_input_panel_hide_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] private delegate System.String efl_access_text_string_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset); + + private delegate void efl_ui_text_cursor_selection_end_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_text_cursor_selection_end_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] public delegate System.String efl_access_text_string_get_api_delegate(System.IntPtr obj, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_string_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_string_get"); - private static System.String string_get(System.IntPtr obj, System.IntPtr pd, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset) - { - Eina.Log.Debug("function efl_access_text_string_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); - var _in_end_offset = Eina.PrimitiveConversion.PointerToManaged(end_offset); - System.String _ret_var = default(System.String); - try { - _ret_var = ((Text)wrapper).GetString( granularity, _in_start_offset, _in_end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_cursor_selection_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_cursor_selection_end"); + + private static void cursor_selection_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_cursor_selection_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).CursorSelectionEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_cursor_selection_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_access_text_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), granularity, start_offset, end_offset); } - } - private static efl_access_text_string_get_delegate efl_access_text_string_get_static_delegate; + private static efl_ui_text_cursor_selection_end_delegate efl_ui_text_cursor_selection_end_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] private delegate System.String efl_access_text_get_delegate(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset); + + private delegate void efl_ui_text_selection_cut_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_text_selection_cut_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] public delegate System.String efl_access_text_get_api_delegate(System.IntPtr obj, int start_offset, int end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_get"); - private static System.String access_text_get(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset) - { - Eina.Log.Debug("function efl_access_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Text)wrapper).GetAccessText( start_offset, end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_selection_cut_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_selection_cut"); + + private static void selection_cut(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_selection_cut was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SelectionCut(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_selection_cut_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_access_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); } - } - private static efl_access_text_get_delegate efl_access_text_get_static_delegate; + private static efl_ui_text_selection_cut_delegate efl_ui_text_selection_cut_static_delegate; - private delegate int efl_access_text_caret_offset_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_text_context_menu_item_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon_file, Elm.Icon.Type icon_type, EvasSmartCb func, System.IntPtr data); + + public delegate void efl_ui_text_context_menu_item_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String icon_file, Elm.Icon.Type icon_type, EvasSmartCb func, System.IntPtr data); - public delegate int efl_access_text_caret_offset_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_text_caret_offset_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_caret_offset_get"); - private static int caret_offset_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_text_caret_offset_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Text)wrapper).GetCaretOffset(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_context_menu_item_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_context_menu_item_add"); + + private static void context_menu_item_add(System.IntPtr obj, System.IntPtr pd, System.String label, System.String icon_file, Elm.Icon.Type icon_type, EvasSmartCb func, System.IntPtr data) + { + Eina.Log.Debug("function efl_ui_text_context_menu_item_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).AddContextMenuItem(label, icon_file, icon_type, func, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_context_menu_item_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), label, icon_file, icon_type, func, data); } - return _ret_var; - } else { - return efl_access_text_caret_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_text_caret_offset_get_delegate efl_access_text_caret_offset_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_caret_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, int offset); + private static efl_ui_text_context_menu_item_add_delegate efl_ui_text_context_menu_item_add_static_delegate; + + private delegate Efl.TextCursorCursor efl_ui_text_cursor_new_delegate(System.IntPtr obj, System.IntPtr pd); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_caret_offset_set_api_delegate(System.IntPtr obj, int offset); - public static Efl.Eo.FunctionWrapper efl_access_text_caret_offset_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_caret_offset_set"); - private static bool caret_offset_set(System.IntPtr obj, System.IntPtr pd, int offset) - { - Eina.Log.Debug("function efl_access_text_caret_offset_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).SetCaretOffset( offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_access_text_caret_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset); - } - } - private static efl_access_text_caret_offset_set_delegate efl_access_text_caret_offset_set_static_delegate; + + public delegate Efl.TextCursorCursor efl_ui_text_cursor_new_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_text_cursor_new_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_cursor_new"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_attribute_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, System.IntPtr start_offset, System.IntPtr end_offset, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] out System.String value); + private static Efl.TextCursorCursor cursor_new(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_text_cursor_new was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextCursorCursor _ret_var = default(Efl.TextCursorCursor); + try + { + _ret_var = ((Text)wrapper).NewCursor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_attribute_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, System.IntPtr start_offset, System.IntPtr end_offset, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] out System.String value); - public static Efl.Eo.FunctionWrapper efl_access_text_attribute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_attribute_get"); - private static bool attribute_get(System.IntPtr obj, System.IntPtr pd, System.String name, System.IntPtr start_offset, System.IntPtr end_offset, out System.String value) - { - Eina.Log.Debug("function efl_access_text_attribute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); - var _in_end_offset = Eina.PrimitiveConversion.PointerToManaged(end_offset); - value = default(System.String); bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetAttribute( name, _in_start_offset, _in_end_offset, out value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_text_attribute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, start_offset, end_offset, out value); + else + { + return efl_ui_text_cursor_new_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_text_attribute_get_delegate efl_access_text_attribute_get_static_delegate; - - private delegate System.IntPtr efl_access_text_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr start_offset, System.IntPtr end_offset); + private static efl_ui_text_cursor_new_delegate efl_ui_text_cursor_new_static_delegate; + + private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate System.IntPtr efl_access_text_attributes_get_api_delegate(System.IntPtr obj, System.IntPtr start_offset, System.IntPtr end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_attributes_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_attributes_get"); - private static System.IntPtr text_attributes_get(System.IntPtr obj, System.IntPtr pd, System.IntPtr start_offset, System.IntPtr end_offset) - { - Eina.Log.Debug("function efl_access_text_attributes_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); - var _in_end_offset = Eina.PrimitiveConversion.PointerToManaged(end_offset); - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((Text)wrapper).GetTextAttributes( _in_start_offset, _in_end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; - } else { - return efl_access_text_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); - } - } - private static efl_access_text_attributes_get_delegate efl_access_text_attributes_get_static_delegate; + + public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_get"); - private delegate System.IntPtr efl_access_text_default_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_mmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.File _ret_var = default(Eina.File); + try + { + _ret_var = ((Text)wrapper).GetMmap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate System.IntPtr efl_access_text_default_attributes_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_text_default_attributes_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_default_attributes_get"); - private static System.IntPtr default_attributes_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_text_default_attributes_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((Text)wrapper).GetDefaultAttributes(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; - } else { - return efl_access_text_default_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_text_default_attributes_get_delegate efl_access_text_default_attributes_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_character_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, int offset, [MarshalAs(UnmanagedType.U1)] bool screen_coords, out Eina.Rect.NativeStruct rect); + private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + + private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_character_extents_get_api_delegate(System.IntPtr obj, int offset, [MarshalAs(UnmanagedType.U1)] bool screen_coords, out Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_access_text_character_extents_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_character_extents_get"); - private static bool character_extents_get(System.IntPtr obj, System.IntPtr pd, int offset, bool screen_coords, out Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_access_text_character_extents_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _out_rect = default(Eina.Rect); - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetCharacterExtents( offset, screen_coords, out _out_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - rect = _out_rect; - return _ret_var; - } else { - return efl_access_text_character_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset, screen_coords, out rect); - } - } - private static efl_access_text_character_extents_get_delegate efl_access_text_character_extents_get_static_delegate; + + public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); + public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_set"); - private delegate int efl_access_text_character_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) + { + Eina.Log.Debug("function efl_file_mmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Text)wrapper).SetMmap(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_access_text_character_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_text_character_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_character_count_get"); - private static int character_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_text_character_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Text)wrapper).GetCharacterCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_text_character_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } } - } - private static efl_access_text_character_count_get_delegate efl_access_text_character_count_get_static_delegate; - - private delegate int efl_access_text_offset_at_point_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate int efl_access_text_offset_at_point_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); - public static Efl.Eo.FunctionWrapper efl_access_text_offset_at_point_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_offset_at_point_get"); - private static int offset_at_point_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) - { - Eina.Log.Debug("function efl_access_text_offset_at_point_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Text)wrapper).GetOffsetAtPoint( screen_coords, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_access_text_offset_at_point_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); - } - } - private static efl_access_text_offset_at_point_get_delegate efl_access_text_offset_at_point_get_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_get"); - private delegate System.IntPtr efl_access_text_bounded_ranges_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip); + private static System.String file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Text)wrapper).GetFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate System.IntPtr efl_access_text_bounded_ranges_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip); - public static Efl.Eo.FunctionWrapper efl_access_text_bounded_ranges_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_bounded_ranges_get"); - private static System.IntPtr bounded_ranges_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip) - { - Eina.Log.Debug("function efl_access_text_bounded_ranges_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((Text)wrapper).GetBoundedRanges( screen_coords, _in_rect, xclip, yclip); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; - } else { - return efl_access_text_bounded_ranges_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, rect, xclip, yclip); + else + { + return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_text_bounded_ranges_get_delegate efl_access_text_bounded_ranges_get_static_delegate; + private static efl_file_get_delegate efl_file_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_range_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect); + + private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_range_extents_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_access_text_range_extents_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_range_extents_get"); - private static bool range_extents_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_access_text_range_extents_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _out_rect = default(Eina.Rect); - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).GetRangeExtents( screen_coords, start_offset, end_offset, out _out_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - rect = _out_rect; - return _ret_var; - } else { - return efl_access_text_range_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, start_offset, end_offset, out rect); - } - } - private static efl_access_text_range_extents_get_delegate efl_access_text_range_extents_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_set"); - private delegate int efl_access_text_selections_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) + { + Eina.Log.Debug("function efl_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Text)wrapper).SetFile(file); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_access_text_selections_count_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_text_selections_count_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_selections_count_get"); - private static int selections_count_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_text_selections_count_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Text)wrapper).GetSelectionsCount(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_text_selections_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); + } } - } - private static efl_access_text_selections_count_get_delegate efl_access_text_selections_count_get_static_delegate; + private static efl_file_set_delegate efl_file_set_static_delegate; - private delegate void efl_access_text_access_selection_get_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number, out int start_offset, out int end_offset); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public delegate void efl_access_text_access_selection_get_api_delegate(System.IntPtr obj, int selection_number, out int start_offset, out int end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_access_selection_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_access_selection_get"); - private static void access_selection_get(System.IntPtr obj, System.IntPtr pd, int selection_number, out int start_offset, out int end_offset) - { - Eina.Log.Debug("function efl_access_text_access_selection_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - start_offset = default(int); end_offset = default(int); - try { - ((Text)wrapper).GetAccessSelection( selection_number, out start_offset, out end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_text_access_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number, out start_offset, out end_offset); - } - } - private static efl_access_text_access_selection_get_delegate efl_access_text_access_selection_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_access_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number, int start_offset, int end_offset); + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Text)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_access_selection_set_api_delegate(System.IntPtr obj, int selection_number, int start_offset, int end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_access_selection_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_access_selection_set"); - private static bool access_selection_set(System.IntPtr obj, System.IntPtr pd, int selection_number, int start_offset, int end_offset) - { - Eina.Log.Debug("function efl_access_text_access_selection_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).SetAccessSelection( selection_number, start_offset, end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_text_access_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number, start_offset, end_offset); + else + { + return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_text_access_selection_set_delegate efl_access_text_access_selection_set_static_delegate; + private static efl_file_key_get_delegate efl_file_key_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_selection_add_delegate(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset); + + private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_selection_add_api_delegate(System.IntPtr obj, int start_offset, int end_offset); - public static Efl.Eo.FunctionWrapper efl_access_text_selection_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_selection_add"); - private static bool selection_add(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset) - { - Eina.Log.Debug("function efl_access_text_selection_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).AddSelection( start_offset, end_offset); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_file_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetKey(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); } - return _ret_var; - } else { - return efl_access_text_selection_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); } - } - private static efl_access_text_selection_add_delegate efl_access_text_selection_add_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_text_selection_remove_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number); + private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_text_selection_remove_api_delegate(System.IntPtr obj, int selection_number); - public static Efl.Eo.FunctionWrapper efl_access_text_selection_remove_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_text_selection_remove"); - private static bool selection_remove(System.IntPtr obj, System.IntPtr pd, int selection_number) - { - Eina.Log.Debug("function efl_access_text_selection_remove was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).SelectionRemove( selection_number); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_access_text_selection_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number); - } - } - private static efl_access_text_selection_remove_delegate efl_access_text_selection_remove_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_loaded_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string); + private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_loaded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetLoaded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_content_set"); - private static bool text_content_set(System.IntPtr obj, System.IntPtr pd, System.String kw_string) - { - Eina.Log.Debug("function efl_access_editable_text_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).SetTextContent( kw_string); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_editable_text_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_string); + else + { + return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_editable_text_content_set_delegate efl_access_editable_text_content_set_static_delegate; + private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_insert_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string, int position); + + private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_insert_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string, int position); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_insert_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_insert"); - private static bool insert(System.IntPtr obj, System.IntPtr pd, System.String kw_string, int position) - { - Eina.Log.Debug("function efl_access_editable_text_insert was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).Insert( kw_string, position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_access_editable_text_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_string, position); + public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_load"); + + private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_load was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Text)wrapper).Load(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_load_delegate efl_file_load_static_delegate; + + + private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_file_unload_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_unload"); + + private static void unload(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_unload was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).Unload(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_unload_delegate efl_file_unload_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Text)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_get_delegate efl_text_get_static_delegate; + + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + } + } + + private static efl_text_set_delegate efl_text_set_static_delegate; + + + private delegate void efl_text_font_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + + + public delegate void efl_text_font_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size); + + public static Efl.Eo.FunctionWrapper efl_text_font_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_get"); + + private static void font_get(System.IntPtr obj, System.IntPtr pd, out System.String font, out Efl.Font.Size size) + { + Eina.Log.Debug("function efl_text_font_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_font = default(System.String); + size = default(Efl.Font.Size); + try + { + ((Text)wrapper).GetFont(out _out_font, out size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + font = _out_font; + + } + else + { + efl_text_font_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out font, out size); + } + } + + private static efl_text_font_get_delegate efl_text_font_get_static_delegate; + + + private delegate void efl_text_font_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + + + public delegate void efl_text_font_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size); + + public static Efl.Eo.FunctionWrapper efl_text_font_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_set"); + + private static void font_set(System.IntPtr obj, System.IntPtr pd, System.String font, Efl.Font.Size size) + { + Eina.Log.Debug("function efl_text_font_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetFont(font, size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font, size); + } + } + + private static efl_text_font_set_delegate efl_text_font_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_source_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_source_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_source_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_source_get"); + + private static System.String font_source_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_source_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Text)wrapper).GetFontSource(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_font_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_font_source_get_delegate efl_text_font_source_get_static_delegate; + + + private delegate void efl_text_font_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + + + public delegate void efl_text_font_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source); + + public static Efl.Eo.FunctionWrapper efl_text_font_source_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_source_set"); + + private static void font_source_set(System.IntPtr obj, System.IntPtr pd, System.String font_source) + { + Eina.Log.Debug("function efl_text_font_source_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetFontSource(font_source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_source); + } + } + + private static efl_text_font_source_set_delegate efl_text_font_source_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_fallbacks_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_fallbacks_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_fallbacks_get"); + + private static System.String font_fallbacks_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_fallbacks_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Text)wrapper).GetFontFallbacks(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_font_fallbacks_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_font_fallbacks_get_delegate efl_text_font_fallbacks_get_static_delegate; + + + private delegate void efl_text_font_fallbacks_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + + + public delegate void efl_text_font_fallbacks_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks); + + public static Efl.Eo.FunctionWrapper efl_text_font_fallbacks_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_fallbacks_set"); + + private static void font_fallbacks_set(System.IntPtr obj, System.IntPtr pd, System.String font_fallbacks) + { + Eina.Log.Debug("function efl_text_font_fallbacks_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetFontFallbacks(font_fallbacks); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_fallbacks_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_fallbacks); + } + } + + private static efl_text_font_fallbacks_set_delegate efl_text_font_fallbacks_set_static_delegate; + + + private delegate Efl.TextFontWeight efl_text_font_weight_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontWeight efl_text_font_weight_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_weight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_weight_get"); + + private static Efl.TextFontWeight font_weight_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_weight_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontWeight _ret_var = default(Efl.TextFontWeight); + try + { + _ret_var = ((Text)wrapper).GetFontWeight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_font_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_font_weight_get_delegate efl_text_font_weight_get_static_delegate; + + + private delegate void efl_text_font_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight); + + + public delegate void efl_text_font_weight_set_api_delegate(System.IntPtr obj, Efl.TextFontWeight font_weight); + + public static Efl.Eo.FunctionWrapper efl_text_font_weight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_weight_set"); + + private static void font_weight_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight) + { + Eina.Log.Debug("function efl_text_font_weight_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetFontWeight(font_weight); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_weight); + } + } + + private static efl_text_font_weight_set_delegate efl_text_font_weight_set_static_delegate; + + + private delegate Efl.TextFontSlant efl_text_font_slant_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontSlant efl_text_font_slant_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_slant_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_slant_get"); + + private static Efl.TextFontSlant font_slant_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_slant_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontSlant _ret_var = default(Efl.TextFontSlant); + try + { + _ret_var = ((Text)wrapper).GetFontSlant(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_font_slant_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_font_slant_get_delegate efl_text_font_slant_get_static_delegate; + + + private delegate void efl_text_font_slant_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style); + + + public delegate void efl_text_font_slant_set_api_delegate(System.IntPtr obj, Efl.TextFontSlant style); + + public static Efl.Eo.FunctionWrapper efl_text_font_slant_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_slant_set"); + + private static void font_slant_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style) + { + Eina.Log.Debug("function efl_text_font_slant_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetFontSlant(style); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_slant_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); + } + } + + private static efl_text_font_slant_set_delegate efl_text_font_slant_set_static_delegate; + + + private delegate Efl.TextFontWidth efl_text_font_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontWidth efl_text_font_width_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_width_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_width_get"); + + private static Efl.TextFontWidth font_width_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_width_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontWidth _ret_var = default(Efl.TextFontWidth); + try + { + _ret_var = ((Text)wrapper).GetFontWidth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_font_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_font_width_get_delegate efl_text_font_width_get_static_delegate; + + + private delegate void efl_text_font_width_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width); + + + public delegate void efl_text_font_width_set_api_delegate(System.IntPtr obj, Efl.TextFontWidth width); + + public static Efl.Eo.FunctionWrapper efl_text_font_width_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_width_set"); + + private static void font_width_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width) + { + Eina.Log.Debug("function efl_text_font_width_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetFontWidth(width); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); + } + } + + private static efl_text_font_width_set_delegate efl_text_font_width_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_font_lang_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_font_lang_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_lang_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_lang_get"); + + private static System.String font_lang_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_lang_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Text)wrapper).GetFontLang(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_font_lang_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_font_lang_get_delegate efl_text_font_lang_get_static_delegate; + + + private delegate void efl_text_font_lang_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + + + public delegate void efl_text_font_lang_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang); + + public static Efl.Eo.FunctionWrapper efl_text_font_lang_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_lang_set"); + + private static void font_lang_set(System.IntPtr obj, System.IntPtr pd, System.String lang) + { + Eina.Log.Debug("function efl_text_font_lang_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetFontLang(lang); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_lang_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang); + } + } + + private static efl_text_font_lang_set_delegate efl_text_font_lang_set_static_delegate; + + + private delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_bitmap_scalable_get"); + + private static Efl.TextFontBitmapScalable font_bitmap_scalable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_font_bitmap_scalable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFontBitmapScalable _ret_var = default(Efl.TextFontBitmapScalable); + try + { + _ret_var = ((Text)wrapper).GetFontBitmapScalable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_font_bitmap_scalable_get_delegate efl_text_font_bitmap_scalable_get_static_delegate; + + + private delegate void efl_text_font_bitmap_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable); + + + public delegate void efl_text_font_bitmap_scalable_set_api_delegate(System.IntPtr obj, Efl.TextFontBitmapScalable scalable); + + public static Efl.Eo.FunctionWrapper efl_text_font_bitmap_scalable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_font_bitmap_scalable_set"); + + private static void font_bitmap_scalable_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable) + { + Eina.Log.Debug("function efl_text_font_bitmap_scalable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetFontBitmapScalable(scalable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scalable); + } + } + + private static efl_text_font_bitmap_scalable_set_delegate efl_text_font_bitmap_scalable_set_static_delegate; + + + private delegate double efl_text_ellipsis_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_ellipsis_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_ellipsis_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_ellipsis_get"); + + private static double ellipsis_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_ellipsis_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Text)wrapper).GetEllipsis(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_ellipsis_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_ellipsis_get_delegate efl_text_ellipsis_get_static_delegate; + + + private delegate void efl_text_ellipsis_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_ellipsis_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_ellipsis_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_ellipsis_set"); + + private static void ellipsis_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_ellipsis_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetEllipsis(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_ellipsis_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } + + private static efl_text_ellipsis_set_delegate efl_text_ellipsis_set_static_delegate; + + + private delegate Efl.TextFormatWrap efl_text_wrap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFormatWrap efl_text_wrap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_wrap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_wrap_get"); + + private static Efl.TextFormatWrap wrap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_wrap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFormatWrap _ret_var = default(Efl.TextFormatWrap); + try + { + _ret_var = ((Text)wrapper).GetWrap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_wrap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_wrap_get_delegate efl_text_wrap_get_static_delegate; + + + private delegate void efl_text_wrap_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap); + + + public delegate void efl_text_wrap_set_api_delegate(System.IntPtr obj, Efl.TextFormatWrap wrap); + + public static Efl.Eo.FunctionWrapper efl_text_wrap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_wrap_set"); + + private static void wrap_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatWrap wrap) + { + Eina.Log.Debug("function efl_text_wrap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetWrap(wrap); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_wrap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), wrap); + } + } + + private static efl_text_wrap_set_delegate efl_text_wrap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_multiline_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_multiline_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_multiline_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_multiline_get"); + + private static bool multiline_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_multiline_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetMultiline(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_multiline_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_multiline_get_delegate efl_text_multiline_get_static_delegate; + + + private delegate void efl_text_multiline_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + + public delegate void efl_text_multiline_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public static Efl.Eo.FunctionWrapper efl_text_multiline_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_multiline_set"); + + private static void multiline_set(System.IntPtr obj, System.IntPtr pd, bool enabled) + { + Eina.Log.Debug("function efl_text_multiline_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetMultiline(enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_multiline_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); + } + } + + private static efl_text_multiline_set_delegate efl_text_multiline_set_static_delegate; + + + private delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextFormatHorizontalAlignmentAutoType efl_text_halign_auto_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_auto_type_get"); + + private static Efl.TextFormatHorizontalAlignmentAutoType halign_auto_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_halign_auto_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextFormatHorizontalAlignmentAutoType _ret_var = default(Efl.TextFormatHorizontalAlignmentAutoType); + try + { + _ret_var = ((Text)wrapper).GetHalignAutoType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_halign_auto_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_halign_auto_type_get_delegate efl_text_halign_auto_type_get_static_delegate; + + + private delegate void efl_text_halign_auto_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value); + + + public delegate void efl_text_halign_auto_type_set_api_delegate(System.IntPtr obj, Efl.TextFormatHorizontalAlignmentAutoType value); + + public static Efl.Eo.FunctionWrapper efl_text_halign_auto_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_auto_type_set"); + + private static void halign_auto_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFormatHorizontalAlignmentAutoType value) + { + Eina.Log.Debug("function efl_text_halign_auto_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetHalignAutoType(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_halign_auto_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } + + private static efl_text_halign_auto_type_set_delegate efl_text_halign_auto_type_set_static_delegate; + + + private delegate double efl_text_halign_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_halign_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_halign_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_get"); + + private static double halign_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_halign_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Text)wrapper).GetHalign(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_halign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_halign_get_delegate efl_text_halign_get_static_delegate; + + + private delegate void efl_text_halign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_halign_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_halign_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_halign_set"); + + private static void halign_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_halign_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetHalign(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_halign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } + + private static efl_text_halign_set_delegate efl_text_halign_set_static_delegate; + + + private delegate double efl_text_valign_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_valign_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_valign_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_valign_get"); + + private static double valign_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_valign_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Text)wrapper).GetValign(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_valign_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_valign_get_delegate efl_text_valign_get_static_delegate; + + + private delegate void efl_text_valign_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_valign_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_valign_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_valign_set"); + + private static void valign_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_valign_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetValign(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_valign_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } + + private static efl_text_valign_set_delegate efl_text_valign_set_static_delegate; + + + private delegate double efl_text_linegap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_linegap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_linegap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linegap_get"); + + private static double linegap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_linegap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Text)wrapper).GetLinegap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_linegap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_linegap_get_delegate efl_text_linegap_get_static_delegate; + + + private delegate void efl_text_linegap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_linegap_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_linegap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linegap_set"); + + private static void linegap_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_linegap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetLinegap(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_linegap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } + + private static efl_text_linegap_set_delegate efl_text_linegap_set_static_delegate; + + + private delegate double efl_text_linerelgap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_linerelgap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_linerelgap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linerelgap_get"); + + private static double linerelgap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_linerelgap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Text)wrapper).GetLinerelgap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_linerelgap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_linerelgap_get_delegate efl_text_linerelgap_get_static_delegate; + + + private delegate void efl_text_linerelgap_set_delegate(System.IntPtr obj, System.IntPtr pd, double value); + + + public delegate void efl_text_linerelgap_set_api_delegate(System.IntPtr obj, double value); + + public static Efl.Eo.FunctionWrapper efl_text_linerelgap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_linerelgap_set"); + + private static void linerelgap_set(System.IntPtr obj, System.IntPtr pd, double value) + { + Eina.Log.Debug("function efl_text_linerelgap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetLinerelgap(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_linerelgap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } + + private static efl_text_linerelgap_set_delegate efl_text_linerelgap_set_static_delegate; + + + private delegate int efl_text_tabstops_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_tabstops_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_tabstops_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_tabstops_get"); + + private static int tabstops_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_tabstops_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Text)wrapper).GetTabstops(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_tabstops_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_tabstops_get_delegate efl_text_tabstops_get_static_delegate; + + + private delegate void efl_text_tabstops_set_delegate(System.IntPtr obj, System.IntPtr pd, int value); + + + public delegate void efl_text_tabstops_set_api_delegate(System.IntPtr obj, int value); + + public static Efl.Eo.FunctionWrapper efl_text_tabstops_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_tabstops_set"); + + private static void tabstops_set(System.IntPtr obj, System.IntPtr pd, int value) + { + Eina.Log.Debug("function efl_text_tabstops_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetTabstops(value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_tabstops_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + } + } + + private static efl_text_tabstops_set_delegate efl_text_tabstops_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_password_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_password_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_password_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_password_get"); + + private static bool password_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_password_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetPassword(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_password_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_password_get_delegate efl_text_password_get_static_delegate; + + + private delegate void efl_text_password_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + + public delegate void efl_text_password_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public static Efl.Eo.FunctionWrapper efl_text_password_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_password_set"); + + private static void password_set(System.IntPtr obj, System.IntPtr pd, bool enabled) + { + Eina.Log.Debug("function efl_text_password_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetPassword(enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_password_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); + } + } + + private static efl_text_password_set_delegate efl_text_password_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_replacement_char_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_replacement_char_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_replacement_char_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_replacement_char_get"); + + private static System.String replacement_char_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_replacement_char_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Text)wrapper).GetReplacementChar(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_replacement_char_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_replacement_char_get_delegate efl_text_replacement_char_get_static_delegate; + + + private delegate void efl_text_replacement_char_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + + + public delegate void efl_text_replacement_char_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String repch); + + public static Efl.Eo.FunctionWrapper efl_text_replacement_char_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_replacement_char_set"); + + private static void replacement_char_set(System.IntPtr obj, System.IntPtr pd, System.String repch) + { + Eina.Log.Debug("function efl_text_replacement_char_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetReplacementChar(repch); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_replacement_char_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repch); + } + } + + private static efl_text_replacement_char_set_delegate efl_text_replacement_char_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_interactive_selection_allowed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_interactive_selection_allowed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_allowed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_selection_allowed_get"); + + private static bool selection_allowed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_interactive_selection_allowed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetSelectionAllowed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_interactive_selection_allowed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_interactive_selection_allowed_get_delegate efl_text_interactive_selection_allowed_get_static_delegate; + + + private delegate void efl_text_interactive_selection_allowed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allowed); + + + public delegate void efl_text_interactive_selection_allowed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allowed); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_allowed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_selection_allowed_set"); + + private static void selection_allowed_set(System.IntPtr obj, System.IntPtr pd, bool allowed) + { + Eina.Log.Debug("function efl_text_interactive_selection_allowed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetSelectionAllowed(allowed); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_interactive_selection_allowed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allowed); + } + } + + private static efl_text_interactive_selection_allowed_set_delegate efl_text_interactive_selection_allowed_set_static_delegate; + + + private delegate void efl_text_interactive_selection_cursors_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end); + + + public delegate void efl_text_interactive_selection_cursors_get_api_delegate(System.IntPtr obj, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_selection_cursors_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_selection_cursors_get"); + + private static void selection_cursors_get(System.IntPtr obj, System.IntPtr pd, out Efl.TextCursorCursor start, out Efl.TextCursorCursor end) + { + Eina.Log.Debug("function efl_text_interactive_selection_cursors_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + start = default(Efl.TextCursorCursor); end = default(Efl.TextCursorCursor); + try + { + ((Text)wrapper).GetSelectionCursors(out start, out end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_interactive_selection_cursors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out start, out end); + } + } + + private static efl_text_interactive_selection_cursors_get_delegate efl_text_interactive_selection_cursors_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_text_interactive_editable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_text_interactive_editable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_editable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_editable_get"); + + private static bool editable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_interactive_editable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetEditable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_interactive_editable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_interactive_editable_get_delegate efl_text_interactive_editable_get_static_delegate; + + + private delegate void efl_text_interactive_editable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool editable); + + + public delegate void efl_text_interactive_editable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool editable); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_editable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_editable_set"); + + private static void editable_set(System.IntPtr obj, System.IntPtr pd, bool editable) + { + Eina.Log.Debug("function efl_text_interactive_editable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetEditable(editable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_interactive_editable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), editable); + } + } + + private static efl_text_interactive_editable_set_delegate efl_text_interactive_editable_set_static_delegate; + + + private delegate void efl_text_interactive_select_none_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_text_interactive_select_none_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_interactive_select_none_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_interactive_select_none"); + + private static void select_none(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_interactive_select_none was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SelectNone(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_interactive_select_none_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_interactive_select_none_delegate efl_text_interactive_select_none_static_delegate; + + + private delegate void efl_text_normal_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_normal_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_normal_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_normal_color_get"); + + private static void normal_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_normal_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((Text)wrapper).GetNormalColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_normal_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_normal_color_get_delegate efl_text_normal_color_get_static_delegate; + + + private delegate void efl_text_normal_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_normal_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_normal_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_normal_color_set"); + + private static void normal_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_normal_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetNormalColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_normal_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_normal_color_set_delegate efl_text_normal_color_set_static_delegate; + + + private delegate Efl.TextStyleBackingType efl_text_backing_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleBackingType efl_text_backing_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_backing_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_type_get"); + + private static Efl.TextStyleBackingType backing_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_backing_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleBackingType _ret_var = default(Efl.TextStyleBackingType); + try + { + _ret_var = ((Text)wrapper).GetBackingType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_backing_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_backing_type_get_delegate efl_text_backing_type_get_static_delegate; + + + private delegate void efl_text_backing_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type); + + + public delegate void efl_text_backing_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleBackingType type); + + public static Efl.Eo.FunctionWrapper efl_text_backing_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_type_set"); + + private static void backing_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleBackingType type) + { + Eina.Log.Debug("function efl_text_backing_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetBackingType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_backing_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + + private static efl_text_backing_type_set_delegate efl_text_backing_type_set_static_delegate; + + + private delegate void efl_text_backing_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_backing_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_backing_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_color_get"); + + private static void backing_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_backing_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((Text)wrapper).GetBackingColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_backing_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_backing_color_get_delegate efl_text_backing_color_get_static_delegate; + + + private delegate void efl_text_backing_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_backing_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_backing_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_backing_color_set"); + + private static void backing_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_backing_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetBackingColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_backing_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_backing_color_set_delegate efl_text_backing_color_set_static_delegate; + + + private delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleUnderlineType efl_text_underline_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_type_get"); + + private static Efl.TextStyleUnderlineType underline_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleUnderlineType _ret_var = default(Efl.TextStyleUnderlineType); + try + { + _ret_var = ((Text)wrapper).GetUnderlineType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_underline_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_underline_type_get_delegate efl_text_underline_type_get_static_delegate; + + + private delegate void efl_text_underline_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type); + + + public delegate void efl_text_underline_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleUnderlineType type); + + public static Efl.Eo.FunctionWrapper efl_text_underline_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_type_set"); + + private static void underline_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleUnderlineType type) + { + Eina.Log.Debug("function efl_text_underline_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetUnderlineType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + + private static efl_text_underline_type_set_delegate efl_text_underline_type_set_static_delegate; + + + private delegate void efl_text_underline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_color_get"); + + private static void underline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((Text)wrapper).GetUnderlineColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_underline_color_get_delegate efl_text_underline_color_get_static_delegate; + + + private delegate void efl_text_underline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_color_set"); + + private static void underline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetUnderlineColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_underline_color_set_delegate efl_text_underline_color_set_static_delegate; + + + private delegate double efl_text_underline_height_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_text_underline_height_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_height_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_height_get"); + + private static double underline_height_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_height_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Text)wrapper).GetUnderlineHeight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_underline_height_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_underline_height_get_delegate efl_text_underline_height_get_static_delegate; + + + private delegate void efl_text_underline_height_set_delegate(System.IntPtr obj, System.IntPtr pd, double height); + + + public delegate void efl_text_underline_height_set_api_delegate(System.IntPtr obj, double height); + + public static Efl.Eo.FunctionWrapper efl_text_underline_height_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_height_set"); + + private static void underline_height_set(System.IntPtr obj, System.IntPtr pd, double height) + { + Eina.Log.Debug("function efl_text_underline_height_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetUnderlineHeight(height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_height_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), height); + } + } + + private static efl_text_underline_height_set_delegate efl_text_underline_height_set_static_delegate; + + + private delegate void efl_text_underline_dashed_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline_dashed_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_color_get"); + + private static void underline_dashed_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline_dashed_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((Text)wrapper).GetUnderlineDashedColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_underline_dashed_color_get_delegate efl_text_underline_dashed_color_get_static_delegate; + + + private delegate void efl_text_underline_dashed_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline_dashed_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_color_set"); + + private static void underline_dashed_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline_dashed_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetUnderlineDashedColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_underline_dashed_color_set_delegate efl_text_underline_dashed_color_set_static_delegate; + + + private delegate int efl_text_underline_dashed_width_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_underline_dashed_width_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_width_get"); + + private static int underline_dashed_width_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_dashed_width_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Text)wrapper).GetUnderlineDashedWidth(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_underline_dashed_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_underline_dashed_width_get_delegate efl_text_underline_dashed_width_get_static_delegate; + + + private delegate void efl_text_underline_dashed_width_set_delegate(System.IntPtr obj, System.IntPtr pd, int width); + + + public delegate void efl_text_underline_dashed_width_set_api_delegate(System.IntPtr obj, int width); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_width_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_width_set"); + + private static void underline_dashed_width_set(System.IntPtr obj, System.IntPtr pd, int width) + { + Eina.Log.Debug("function efl_text_underline_dashed_width_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetUnderlineDashedWidth(width); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width); + } + } + + private static efl_text_underline_dashed_width_set_delegate efl_text_underline_dashed_width_set_static_delegate; + + + private delegate int efl_text_underline_dashed_gap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_text_underline_dashed_gap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_gap_get"); + + private static int underline_dashed_gap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_underline_dashed_gap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Text)wrapper).GetUnderlineDashedGap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_underline_dashed_gap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_underline_dashed_gap_get_delegate efl_text_underline_dashed_gap_get_static_delegate; + + + private delegate void efl_text_underline_dashed_gap_set_delegate(System.IntPtr obj, System.IntPtr pd, int gap); + + + public delegate void efl_text_underline_dashed_gap_set_api_delegate(System.IntPtr obj, int gap); + + public static Efl.Eo.FunctionWrapper efl_text_underline_dashed_gap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline_dashed_gap_set"); + + private static void underline_dashed_gap_set(System.IntPtr obj, System.IntPtr pd, int gap) + { + Eina.Log.Debug("function efl_text_underline_dashed_gap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetUnderlineDashedGap(gap); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline_dashed_gap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gap); + } + } + + private static efl_text_underline_dashed_gap_set_delegate efl_text_underline_dashed_gap_set_static_delegate; + + + private delegate void efl_text_underline2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_underline2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline2_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline2_color_get"); + + private static void underline2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_underline2_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((Text)wrapper).GetUnderline2Color(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_underline2_color_get_delegate efl_text_underline2_color_get_static_delegate; + + + private delegate void efl_text_underline2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_underline2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_underline2_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_underline2_color_set"); + + private static void underline2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_underline2_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetUnderline2Color(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_underline2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_underline2_color_set_delegate efl_text_underline2_color_set_static_delegate; + + + private delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleStrikethroughType efl_text_strikethrough_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_type_get"); + + private static Efl.TextStyleStrikethroughType strikethrough_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_strikethrough_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleStrikethroughType _ret_var = default(Efl.TextStyleStrikethroughType); + try + { + _ret_var = ((Text)wrapper).GetStrikethroughType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_strikethrough_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_strikethrough_type_get_delegate efl_text_strikethrough_type_get_static_delegate; + + + private delegate void efl_text_strikethrough_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type); + + + public delegate void efl_text_strikethrough_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleStrikethroughType type); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_type_set"); + + private static void strikethrough_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleStrikethroughType type) + { + Eina.Log.Debug("function efl_text_strikethrough_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetStrikethroughType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_strikethrough_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + + private static efl_text_strikethrough_type_set_delegate efl_text_strikethrough_type_set_static_delegate; + + + private delegate void efl_text_strikethrough_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_strikethrough_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_color_get"); + + private static void strikethrough_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_strikethrough_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((Text)wrapper).GetStrikethroughColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_strikethrough_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_strikethrough_color_get_delegate efl_text_strikethrough_color_get_static_delegate; + + + private delegate void efl_text_strikethrough_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_strikethrough_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_strikethrough_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_strikethrough_color_set"); + + private static void strikethrough_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_strikethrough_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetStrikethroughColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_strikethrough_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_strikethrough_color_set_delegate efl_text_strikethrough_color_set_static_delegate; + + + private delegate Efl.TextStyleEffectType efl_text_effect_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleEffectType efl_text_effect_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_effect_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_effect_type_get"); + + private static Efl.TextStyleEffectType effect_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_effect_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleEffectType _ret_var = default(Efl.TextStyleEffectType); + try + { + _ret_var = ((Text)wrapper).GetEffectType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_effect_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_effect_type_get_delegate efl_text_effect_type_get_static_delegate; + + + private delegate void efl_text_effect_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type); + + + public delegate void efl_text_effect_type_set_api_delegate(System.IntPtr obj, Efl.TextStyleEffectType type); + + public static Efl.Eo.FunctionWrapper efl_text_effect_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_effect_type_set"); + + private static void effect_type_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleEffectType type) + { + Eina.Log.Debug("function efl_text_effect_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetEffectType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_effect_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + + private static efl_text_effect_type_set_delegate efl_text_effect_type_set_static_delegate; + + + private delegate void efl_text_outline_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_outline_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_outline_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_outline_color_get"); + + private static void outline_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_outline_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((Text)wrapper).GetOutlineColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_outline_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_outline_color_get_delegate efl_text_outline_color_get_static_delegate; + + + private delegate void efl_text_outline_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_outline_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_outline_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_outline_color_set"); + + private static void outline_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_outline_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetOutlineColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_outline_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_outline_color_set_delegate efl_text_outline_color_set_static_delegate; + + + private delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.TextStyleShadowDirection efl_text_shadow_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_direction_get"); + + private static Efl.TextStyleShadowDirection shadow_direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_shadow_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.TextStyleShadowDirection _ret_var = default(Efl.TextStyleShadowDirection); + try + { + _ret_var = ((Text)wrapper).GetShadowDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_shadow_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_shadow_direction_get_delegate efl_text_shadow_direction_get_static_delegate; + + + private delegate void efl_text_shadow_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type); + + + public delegate void efl_text_shadow_direction_set_api_delegate(System.IntPtr obj, Efl.TextStyleShadowDirection type); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_direction_set"); + + private static void shadow_direction_set(System.IntPtr obj, System.IntPtr pd, Efl.TextStyleShadowDirection type) + { + Eina.Log.Debug("function efl_text_shadow_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetShadowDirection(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_shadow_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + + private static efl_text_shadow_direction_set_delegate efl_text_shadow_direction_set_static_delegate; + + + private delegate void efl_text_shadow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_shadow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_color_get"); + + private static void shadow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_shadow_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((Text)wrapper).GetShadowColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_shadow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_shadow_color_get_delegate efl_text_shadow_color_get_static_delegate; + + + private delegate void efl_text_shadow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_shadow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_shadow_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_shadow_color_set"); + + private static void shadow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_shadow_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetShadowColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_shadow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_shadow_color_set_delegate efl_text_shadow_color_set_static_delegate; + + + private delegate void efl_text_glow_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_glow_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow_color_get"); + + private static void glow_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_glow_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((Text)wrapper).GetGlowColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_glow_color_get_delegate efl_text_glow_color_get_static_delegate; + + + private delegate void efl_text_glow_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_glow_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow_color_set"); + + private static void glow_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_glow_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetGlowColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_glow_color_set_delegate efl_text_glow_color_set_static_delegate; + + + private delegate void efl_text_glow2_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a); + + + public delegate void efl_text_glow2_color_get_api_delegate(System.IntPtr obj, out byte r, out byte g, out byte b, out byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow2_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow2_color_get"); + + private static void glow2_color_get(System.IntPtr obj, System.IntPtr pd, out byte r, out byte g, out byte b, out byte a) + { + Eina.Log.Debug("function efl_text_glow2_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(byte); g = default(byte); b = default(byte); a = default(byte); + try + { + ((Text)wrapper).GetGlow2Color(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow2_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + + private static efl_text_glow2_color_get_delegate efl_text_glow2_color_get_static_delegate; + + + private delegate void efl_text_glow2_color_set_delegate(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a); + + + public delegate void efl_text_glow2_color_set_api_delegate(System.IntPtr obj, byte r, byte g, byte b, byte a); + + public static Efl.Eo.FunctionWrapper efl_text_glow2_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_glow2_color_set"); + + private static void glow2_color_set(System.IntPtr obj, System.IntPtr pd, byte r, byte g, byte b, byte a) + { + Eina.Log.Debug("function efl_text_glow2_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetGlow2Color(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_glow2_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + + private static efl_text_glow2_color_set_delegate efl_text_glow2_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_gfx_filter_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_gfx_filter_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_gfx_filter_get"); + + private static System.String gfx_filter_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_gfx_filter_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Text)wrapper).GetGfxFilter(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_gfx_filter_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_gfx_filter_get_delegate efl_text_gfx_filter_get_static_delegate; + + + private delegate void efl_text_gfx_filter_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + + + public delegate void efl_text_gfx_filter_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code); + + public static Efl.Eo.FunctionWrapper efl_text_gfx_filter_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_gfx_filter_set"); + + private static void gfx_filter_set(System.IntPtr obj, System.IntPtr pd, System.String code) + { + Eina.Log.Debug("function efl_text_gfx_filter_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Text)wrapper).SetGfxFilter(code); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_gfx_filter_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code); + } + } + + private static efl_text_gfx_filter_set_delegate efl_text_gfx_filter_set_static_delegate; + + + private delegate Eina.Unicode efl_access_text_character_get_delegate(System.IntPtr obj, System.IntPtr pd, int offset); + + + public delegate Eina.Unicode efl_access_text_character_get_api_delegate(System.IntPtr obj, int offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_character_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_character_get"); + + private static Eina.Unicode character_get(System.IntPtr obj, System.IntPtr pd, int offset) + { + Eina.Log.Debug("function efl_access_text_character_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Unicode _ret_var = default(Eina.Unicode); + try + { + _ret_var = ((Text)wrapper).GetCharacter(offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_text_character_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset); + } + } + + private static efl_access_text_character_get_delegate efl_access_text_character_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + private delegate System.String efl_access_text_string_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + public delegate System.String efl_access_text_string_get_api_delegate(System.IntPtr obj, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_string_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_string_get"); + + private static System.String string_get(System.IntPtr obj, System.IntPtr pd, Efl.Access.TextGranularity granularity, System.IntPtr start_offset, System.IntPtr end_offset) + { + Eina.Log.Debug("function efl_access_text_string_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); + var _in_end_offset = Eina.PrimitiveConversion.PointerToManaged(end_offset); + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Text)wrapper).GetString(granularity, _in_start_offset, _in_end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_text_string_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), granularity, start_offset, end_offset); + } + } + + private static efl_access_text_string_get_delegate efl_access_text_string_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + private delegate System.String efl_access_text_get_delegate(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + public delegate System.String efl_access_text_get_api_delegate(System.IntPtr obj, int start_offset, int end_offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_get"); + + private static System.String access_text_get(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset) + { + Eina.Log.Debug("function efl_access_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Text)wrapper).GetAccessText(start_offset, end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); + } } - } - private static efl_access_editable_text_insert_delegate efl_access_editable_text_insert_static_delegate; + private static efl_access_text_get_delegate efl_access_text_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_copy_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + + private delegate int efl_access_text_caret_offset_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_access_text_caret_offset_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_text_caret_offset_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_caret_offset_get"); + + private static int caret_offset_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_text_caret_offset_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Text)wrapper).GetCaretOffset(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_text_caret_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_text_caret_offset_get_delegate efl_access_text_caret_offset_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_caret_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, int offset); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_caret_offset_set_api_delegate(System.IntPtr obj, int offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_caret_offset_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_caret_offset_set"); + + private static bool caret_offset_set(System.IntPtr obj, System.IntPtr pd, int offset) + { + Eina.Log.Debug("function efl_access_text_caret_offset_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).SetCaretOffset(offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_text_caret_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset); + } + } + + private static efl_access_text_caret_offset_set_delegate efl_access_text_caret_offset_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_attribute_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, System.IntPtr start_offset, System.IntPtr end_offset, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] out System.String value); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_attribute_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, System.IntPtr start_offset, System.IntPtr end_offset, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] out System.String value); + + public static Efl.Eo.FunctionWrapper efl_access_text_attribute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_attribute_get"); + + private static bool attribute_get(System.IntPtr obj, System.IntPtr pd, System.String name, System.IntPtr start_offset, System.IntPtr end_offset, out System.String value) + { + Eina.Log.Debug("function efl_access_text_attribute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); + var _in_end_offset = Eina.PrimitiveConversion.PointerToManaged(end_offset); + value = default(System.String); bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetAttribute(name, _in_start_offset, _in_end_offset, out value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_text_attribute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, start_offset, end_offset, out value); + } + } + + private static efl_access_text_attribute_get_delegate efl_access_text_attribute_get_static_delegate; + + + private delegate System.IntPtr efl_access_text_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr start_offset, System.IntPtr end_offset); + + + public delegate System.IntPtr efl_access_text_attributes_get_api_delegate(System.IntPtr obj, System.IntPtr start_offset, System.IntPtr end_offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_attributes_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_attributes_get"); + + private static System.IntPtr text_attributes_get(System.IntPtr obj, System.IntPtr pd, System.IntPtr start_offset, System.IntPtr end_offset) + { + Eina.Log.Debug("function efl_access_text_attributes_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_start_offset = Eina.PrimitiveConversion.PointerToManaged(start_offset); + var _in_end_offset = Eina.PrimitiveConversion.PointerToManaged(end_offset); + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((Text)wrapper).GetTextAttributes(_in_start_offset, _in_end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; + + } + else + { + return efl_access_text_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); + } + } + + private static efl_access_text_attributes_get_delegate efl_access_text_attributes_get_static_delegate; + + + private delegate System.IntPtr efl_access_text_default_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_access_text_default_attributes_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_text_default_attributes_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_default_attributes_get"); + + private static System.IntPtr default_attributes_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_text_default_attributes_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((Text)wrapper).GetDefaultAttributes(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; + + } + else + { + return efl_access_text_default_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_text_default_attributes_get_delegate efl_access_text_default_attributes_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_character_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, int offset, [MarshalAs(UnmanagedType.U1)] bool screen_coords, out Eina.Rect.NativeStruct rect); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_character_extents_get_api_delegate(System.IntPtr obj, int offset, [MarshalAs(UnmanagedType.U1)] bool screen_coords, out Eina.Rect.NativeStruct rect); + + public static Efl.Eo.FunctionWrapper efl_access_text_character_extents_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_character_extents_get"); + + private static bool character_extents_get(System.IntPtr obj, System.IntPtr pd, int offset, bool screen_coords, out Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_access_text_character_extents_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _out_rect = default(Eina.Rect); + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetCharacterExtents(offset, screen_coords, out _out_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + rect = _out_rect; + return _ret_var; + + } + else + { + return efl_access_text_character_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset, screen_coords, out rect); + } + } + + private static efl_access_text_character_extents_get_delegate efl_access_text_character_extents_get_static_delegate; + + + private delegate int efl_access_text_character_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_access_text_character_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_text_character_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_character_count_get"); + + private static int character_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_text_character_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Text)wrapper).GetCharacterCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_text_character_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_text_character_count_get_delegate efl_access_text_character_count_get_static_delegate; + + + private delegate int efl_access_text_offset_at_point_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + + + public delegate int efl_access_text_offset_at_point_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + + public static Efl.Eo.FunctionWrapper efl_access_text_offset_at_point_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_offset_at_point_get"); + + private static int offset_at_point_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) + { + Eina.Log.Debug("function efl_access_text_offset_at_point_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Text)wrapper).GetOffsetAtPoint(screen_coords, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_text_offset_at_point_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); + } + } + + private static efl_access_text_offset_at_point_get_delegate efl_access_text_offset_at_point_get_static_delegate; + + + private delegate System.IntPtr efl_access_text_bounded_ranges_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip); + + + public delegate System.IntPtr efl_access_text_bounded_ranges_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip); + + public static Efl.Eo.FunctionWrapper efl_access_text_bounded_ranges_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_bounded_ranges_get"); + + private static System.IntPtr bounded_ranges_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, Eina.Rect.NativeStruct rect, Efl.Access.TextClipType xclip, Efl.Access.TextClipType yclip) + { + Eina.Log.Debug("function efl_access_text_bounded_ranges_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((Text)wrapper).GetBoundedRanges(screen_coords, _in_rect, xclip, yclip); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; + + } + else + { + return efl_access_text_bounded_ranges_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, rect, xclip, yclip); + } + } + + private static efl_access_text_bounded_ranges_get_delegate efl_access_text_bounded_ranges_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_range_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_range_extents_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect); + + public static Efl.Eo.FunctionWrapper efl_access_text_range_extents_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_range_extents_get"); + + private static bool range_extents_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int start_offset, int end_offset, out Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_access_text_range_extents_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _out_rect = default(Eina.Rect); + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).GetRangeExtents(screen_coords, start_offset, end_offset, out _out_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + rect = _out_rect; + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_copy_api_delegate(System.IntPtr obj, int start, int end); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_copy_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_copy"); - private static bool copy(System.IntPtr obj, System.IntPtr pd, int start, int end) - { - Eina.Log.Debug("function efl_access_editable_text_copy was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).Copy( start, end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_access_text_range_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, start_offset, end_offset, out rect); + } + } + + private static efl_access_text_range_extents_get_delegate efl_access_text_range_extents_get_static_delegate; + + + private delegate int efl_access_text_selections_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_access_text_selections_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_text_selections_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_selections_count_get"); + + private static int selections_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_text_selections_count_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Text)wrapper).GetSelectionsCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_text_selections_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_access_text_selections_count_get_delegate efl_access_text_selections_count_get_static_delegate; + + + private delegate void efl_access_text_access_selection_get_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number, out int start_offset, out int end_offset); + + + public delegate void efl_access_text_access_selection_get_api_delegate(System.IntPtr obj, int selection_number, out int start_offset, out int end_offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_access_selection_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_access_selection_get"); + + private static void access_selection_get(System.IntPtr obj, System.IntPtr pd, int selection_number, out int start_offset, out int end_offset) + { + Eina.Log.Debug("function efl_access_text_access_selection_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + start_offset = default(int); end_offset = default(int); + try + { + ((Text)wrapper).GetAccessSelection(selection_number, out start_offset, out end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_text_access_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number, out start_offset, out end_offset); + } + } + + private static efl_access_text_access_selection_get_delegate efl_access_text_access_selection_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_access_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number, int start_offset, int end_offset); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_access_selection_set_api_delegate(System.IntPtr obj, int selection_number, int start_offset, int end_offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_access_selection_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_access_selection_set"); + + private static bool access_selection_set(System.IntPtr obj, System.IntPtr pd, int selection_number, int start_offset, int end_offset) + { + Eina.Log.Debug("function efl_access_text_access_selection_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).SetAccessSelection(selection_number, start_offset, end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_text_access_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number, start_offset, end_offset); + } + } + + private static efl_access_text_access_selection_set_delegate efl_access_text_access_selection_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_selection_add_delegate(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_selection_add_api_delegate(System.IntPtr obj, int start_offset, int end_offset); + + public static Efl.Eo.FunctionWrapper efl_access_text_selection_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_selection_add"); + + private static bool selection_add(System.IntPtr obj, System.IntPtr pd, int start_offset, int end_offset) + { + Eina.Log.Debug("function efl_access_text_selection_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).AddSelection(start_offset, end_offset); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_editable_text_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); + + } + else + { + return efl_access_text_selection_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_offset, end_offset); + } } - } - private static efl_access_editable_text_copy_delegate efl_access_editable_text_copy_static_delegate; + private static efl_access_text_selection_add_delegate efl_access_text_selection_add_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_cut_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_text_selection_remove_delegate(System.IntPtr obj, System.IntPtr pd, int selection_number); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_text_selection_remove_api_delegate(System.IntPtr obj, int selection_number); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_cut_api_delegate(System.IntPtr obj, int start, int end); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_cut_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_cut"); - private static bool cut(System.IntPtr obj, System.IntPtr pd, int start, int end) - { - Eina.Log.Debug("function efl_access_editable_text_cut was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).Cut( start, end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_text_selection_remove_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_text_selection_remove"); + + private static bool selection_remove(System.IntPtr obj, System.IntPtr pd, int selection_number) + { + Eina.Log.Debug("function efl_access_text_selection_remove was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).SelectionRemove(selection_number); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_text_selection_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selection_number); + } + } + + private static efl_access_text_selection_remove_delegate efl_access_text_selection_remove_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string); + + public static Efl.Eo.FunctionWrapper efl_access_editable_text_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_content_set"); + + private static bool text_content_set(System.IntPtr obj, System.IntPtr pd, System.String kw_string) + { + Eina.Log.Debug("function efl_access_editable_text_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).SetTextContent(kw_string); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_editable_text_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_string); } + } + + private static efl_access_editable_text_content_set_delegate efl_access_editable_text_content_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_insert_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string, int position); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_insert_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_string, int position); + + public static Efl.Eo.FunctionWrapper efl_access_editable_text_insert_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_insert"); + + private static bool insert(System.IntPtr obj, System.IntPtr pd, System.String kw_string, int position) + { + Eina.Log.Debug("function efl_access_editable_text_insert was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).Insert(kw_string, position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_editable_text_cut_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); + + } + else + { + return efl_access_editable_text_insert_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_string, position); + } } - } - private static efl_access_editable_text_cut_delegate efl_access_editable_text_cut_static_delegate; + private static efl_access_editable_text_insert_delegate efl_access_editable_text_insert_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_delete_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_copy_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_copy_api_delegate(System.IntPtr obj, int start, int end); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_delete_api_delegate(System.IntPtr obj, int start, int end); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_delete_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_delete"); - private static bool kw_delete(System.IntPtr obj, System.IntPtr pd, int start, int end) - { - Eina.Log.Debug("function efl_access_editable_text_delete was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).Delete( start, end); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_editable_text_copy_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_copy"); + + private static bool copy(System.IntPtr obj, System.IntPtr pd, int start, int end) + { + Eina.Log.Debug("function efl_access_editable_text_copy was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).Copy(start, end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_editable_text_copy_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); } + } + + private static efl_access_editable_text_copy_delegate efl_access_editable_text_copy_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_cut_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_cut_api_delegate(System.IntPtr obj, int start, int end); + + public static Efl.Eo.FunctionWrapper efl_access_editable_text_cut_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_cut"); + + private static bool cut(System.IntPtr obj, System.IntPtr pd, int start, int end) + { + Eina.Log.Debug("function efl_access_editable_text_cut was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).Cut(start, end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_editable_text_delete_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); + + } + else + { + return efl_access_editable_text_cut_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); + } } - } - private static efl_access_editable_text_delete_delegate efl_access_editable_text_delete_static_delegate; + private static efl_access_editable_text_cut_delegate efl_access_editable_text_cut_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_editable_text_paste_delegate(System.IntPtr obj, System.IntPtr pd, int position); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_delete_delegate(System.IntPtr obj, System.IntPtr pd, int start, int end); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_delete_api_delegate(System.IntPtr obj, int start, int end); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_editable_text_paste_api_delegate(System.IntPtr obj, int position); - public static Efl.Eo.FunctionWrapper efl_access_editable_text_paste_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_editable_text_paste"); - private static bool paste(System.IntPtr obj, System.IntPtr pd, int position) - { - Eina.Log.Debug("function efl_access_editable_text_paste was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Text)wrapper).Paste( position); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_editable_text_delete_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_delete"); + + private static bool kw_delete(System.IntPtr obj, System.IntPtr pd, int start, int end) + { + Eina.Log.Debug("function efl_access_editable_text_delete was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).Delete(start, end); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_editable_text_delete_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, end); } + } + + private static efl_access_editable_text_delete_delegate efl_access_editable_text_delete_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_editable_text_paste_delegate(System.IntPtr obj, System.IntPtr pd, int position); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_editable_text_paste_api_delegate(System.IntPtr obj, int position); + + public static Efl.Eo.FunctionWrapper efl_access_editable_text_paste_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_editable_text_paste"); + + private static bool paste(System.IntPtr obj, System.IntPtr pd, int position) + { + Eina.Log.Debug("function efl_access_editable_text_paste was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)wrapper).Paste(position); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_access_editable_text_paste_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); + + } + else + { + return efl_access_editable_text_paste_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position); + } } - } - private static efl_access_editable_text_paste_delegate efl_access_editable_text_paste_static_delegate; + + private static efl_access_editable_text_paste_delegate efl_access_editable_text_paste_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup.eo.cs index ee48a94..2b38433 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup.eo.cs @@ -3,71 +3,97 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// EFL UI Text Alert Popup class -[TextAlertPopupNativeInherit] +[Efl.Ui.TextAlertPopup.NativeMethods] public class TextAlertPopup : Efl.Ui.AlertPopup, Efl.Eo.IWrapper,Efl.IText { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TextAlertPopup)) - return Efl.Ui.TextAlertPopupNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TextAlertPopup)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_text_alert_popup_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public TextAlertPopup(Efl.Object parent - , System.String style = null) : - base(efl_ui_text_alert_popup_class_get(), typeof(TextAlertPopup), parent) + , System.String style = null) : base(efl_ui_text_alert_popup_class_get(), typeof(TextAlertPopup), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TextAlertPopup(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TextAlertPopup(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TextAlertPopup(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Set the expandable of popup. /// If the contents of the popup has min size, the popup will be increased by min size along the Y axis. If max hint is set it will be increased to the value of max hint and scrolling will occur. /// A 2D max size in pixel units. - /// - virtual public void SetExpandable( Eina.Size2D max_size) { + virtual public void SetExpandable(Eina.Size2D max_size) { Eina.Size2D.NativeStruct _in_max_size = max_size; - Efl.Ui.TextAlertPopupNativeInherit.efl_ui_text_alert_popup_expandable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_max_size); + Efl.Ui.TextAlertPopup.NativeMethods.efl_ui_text_alert_popup_expandable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_max_size); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the text string currently being displayed by the given text object. @@ -77,7 +103,7 @@ public class TextAlertPopup : Efl.Ui.AlertPopup, Efl.Eo.IWrapper,Efl.IText /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -85,124 +111,186 @@ public class TextAlertPopup : Efl.Ui.AlertPopup, Efl.Eo.IWrapper,Efl.IText /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Set the expandable of popup. /// If the contents of the popup has min size, the popup will be increased by min size along the Y axis. If max hint is set it will be increased to the value of max hint and scrolling will occur. /// A 2D max size in pixel units. public Eina.Size2D Expandable { - set { SetExpandable( value); } + set { SetExpandable(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.TextAlertPopup.efl_ui_text_alert_popup_class_get(); } -} -public class TextAlertPopupNativeInherit : Efl.Ui.AlertPopupNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.AlertPopup.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_text_alert_popup_expandable_set_static_delegate == null) - efl_ui_text_alert_popup_expandable_set_static_delegate = new efl_ui_text_alert_popup_expandable_set_delegate(expandable_set); - if (methods.FirstOrDefault(m => m.Name == "SetExpandable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_alert_popup_expandable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_alert_popup_expandable_set_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TextAlertPopup.efl_ui_text_alert_popup_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TextAlertPopup.efl_ui_text_alert_popup_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_text_alert_popup_expandable_set_static_delegate == null) + { + efl_ui_text_alert_popup_expandable_set_static_delegate = new efl_ui_text_alert_popup_expandable_set_delegate(expandable_set); + } - private delegate void efl_ui_text_alert_popup_expandable_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size); + if (methods.FirstOrDefault(m => m.Name == "SetExpandable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_alert_popup_expandable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_alert_popup_expandable_set_static_delegate) }); + } + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } - public delegate void efl_ui_text_alert_popup_expandable_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct max_size); - public static Efl.Eo.FunctionWrapper efl_ui_text_alert_popup_expandable_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_alert_popup_expandable_set"); - private static void expandable_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size) - { - Eina.Log.Debug("function efl_ui_text_alert_popup_expandable_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_max_size = max_size; - - try { - ((TextAlertPopup)wrapper).SetExpandable( _in_max_size); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } + + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); } - } else { - efl_ui_text_alert_popup_expandable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max_size); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TextAlertPopup.efl_ui_text_alert_popup_class_get(); } - } - private static efl_ui_text_alert_popup_expandable_set_delegate efl_ui_text_alert_popup_expandable_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_text_alert_popup_expandable_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size); + + public delegate void efl_ui_text_alert_popup_expandable_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct max_size); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((TextAlertPopup)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_alert_popup_expandable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_alert_popup_expandable_set"); + + private static void expandable_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size) + { + Eina.Log.Debug("function efl_ui_text_alert_popup_expandable_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_max_size = max_size; + + try + { + ((TextAlertPopup)wrapper).SetExpandable(_in_max_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_text_alert_popup_expandable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max_size); } + } + + private static efl_ui_text_alert_popup_expandable_set_delegate efl_ui_text_alert_popup_expandable_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((TextAlertPopup)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((TextAlertPopup)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((TextAlertPopup)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + + private static efl_text_set_delegate efl_text_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup_part.eo.cs index 9715bee..83c4868 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup_part.eo.cs @@ -3,130 +3,165 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI Text Alert Popup internal part class -[TextAlertPopupPartNativeInherit] +[Efl.Ui.TextAlertPopupPart.NativeMethods] public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.Eo.IWrapper,Efl.IContent,Efl.IText { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TextAlertPopupPart)) - return Efl.Ui.TextAlertPopupPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TextAlertPopupPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_text_alert_popup_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public TextAlertPopupPart(Efl.Object parent= null - ) : - base(efl_ui_text_alert_popup_part_class_get(), typeof(TextAlertPopupPart), parent) + ) : base(efl_ui_text_alert_popup_part_class_get(), typeof(TextAlertPopupPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TextAlertPopupPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TextAlertPopupPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TextAlertPopupPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -137,7 +172,7 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -145,183 +180,280 @@ private static object ContentChangedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.TextAlertPopupPart.efl_ui_text_alert_popup_part_class_get(); } -} -public class TextAlertPopupPartNativeInherit : Efl.Ui.LayoutPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods { - return Efl.Ui.TextAlertPopupPart.efl_ui_text_alert_popup_part_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TextAlertPopupPart.efl_ui_text_alert_popup_part_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((TextAlertPopupPart)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } + + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TextAlertPopupPart.efl_ui_text_alert_popup_part_class_get(); } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((TextAlertPopupPart)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((TextAlertPopupPart)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((TextAlertPopupPart)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((TextAlertPopupPart)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + private static efl_content_set_delegate efl_content_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((TextAlertPopupPart)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((TextAlertPopupPart)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((TextAlertPopupPart)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((TextAlertPopupPart)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((TextAlertPopupPart)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + + private static efl_text_set_delegate efl_text_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_async.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_async.eo.cs index d4c3f66..2f74e1b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_async.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_async.eo.cs @@ -3,85 +3,121 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI text async class -[TextAsyncNativeInherit] +[Efl.Ui.TextAsync.NativeMethods] public class TextAsync : Efl.Ui.Text, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TextAsync)) - return Efl.Ui.TextAsyncNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TextAsync)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_text_async_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public TextAsync(Efl.Object parent - , System.String style = null) : - base(efl_ui_text_async_class_get(), typeof(TextAsync), parent) + , System.String style = null) : base(efl_ui_text_async_class_get(), typeof(TextAsync), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TextAsync(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TextAsync(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TextAsync(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.TextAsync.efl_ui_text_async_class_get(); } -} -public class TextAsyncNativeInherit : Efl.Ui.TextNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Text.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TextAsync.efl_ui_text_async_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TextAsync.efl_ui_text_async_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TextAsync.efl_ui_text_async_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_editable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_editable.eo.cs index d3816fd..3086b47 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_editable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_editable.eo.cs @@ -3,85 +3,121 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI text editable class -[TextEditableNativeInherit] +[Efl.Ui.TextEditable.NativeMethods] public class TextEditable : Efl.Ui.Text, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TextEditable)) - return Efl.Ui.TextEditableNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TextEditable)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_text_editable_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public TextEditable(Efl.Object parent - , System.String style = null) : - base(efl_ui_text_editable_class_get(), typeof(TextEditable), parent) + , System.String style = null) : base(efl_ui_text_editable_class_get(), typeof(TextEditable), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TextEditable(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TextEditable(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TextEditable(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.TextEditable.efl_ui_text_editable_class_get(); } -} -public class TextEditableNativeInherit : Efl.Ui.TextNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Text.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TextEditable.efl_ui_text_editable_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TextEditable.efl_ui_text_editable_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TextEditable.efl_ui_text_editable_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_emoticons.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_emoticons.eo.cs index 2f6da63..dd86f5d 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_emoticons.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_emoticons.eo.cs @@ -3,67 +3,92 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace TextFactory { +namespace Efl { + +namespace Ui { + +namespace TextFactory { + /// Factory that creates emoticons from the current theme given a key. -[EmoticonsNativeInherit] +[Efl.Ui.TextFactory.Emoticons.NativeMethods] public class Emoticons : Efl.Object, Efl.Eo.IWrapper,Efl.Canvas.ITextFactory { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Emoticons)) - return Efl.Ui.TextFactory.EmoticonsNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Emoticons)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_text_factory_emoticons_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Emoticons(Efl.Object parent= null - ) : - base(efl_ui_text_factory_emoticons_class_get(), typeof(Emoticons), parent) + ) : base(efl_ui_text_factory_emoticons_class_get(), typeof(Emoticons), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Emoticons(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Emoticons(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Emoticons(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Translates a given key to an item object, and returns the object. The returned object should be owned by the passed object. /// The parent of the created object /// Key that is associated to an item object - /// - virtual public Efl.Canvas.Object Create( Efl.Canvas.Object kw_object, System.String key) { - var _ret_var = Efl.Canvas.ITextFactoryNativeInherit.efl_canvas_text_factory_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_object, key); + virtual public Efl.Canvas.Object Create(Efl.Canvas.Object kw_object, System.String key) { + var _ret_var = Efl.Canvas.ITextFactoryConcrete.NativeMethods.efl_canvas_text_factory_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_object, key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -71,52 +96,83 @@ public class Emoticons : Efl.Object, Efl.Eo.IWrapper,Efl.Canvas.ITextFactory { return Efl.Ui.TextFactory.Emoticons.efl_ui_text_factory_emoticons_class_get(); } -} -public class EmoticonsNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_canvas_text_factory_create_static_delegate == null) - efl_canvas_text_factory_create_static_delegate = new efl_canvas_text_factory_create_delegate(create); - if (methods.FirstOrDefault(m => m.Name == "Create") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_text_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_text_factory_create_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TextFactory.Emoticons.efl_ui_text_factory_emoticons_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TextFactory.Emoticons.efl_ui_text_factory_emoticons_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_canvas_text_factory_create_static_delegate == null) + { + efl_canvas_text_factory_create_static_delegate = new efl_canvas_text_factory_create_delegate(create); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_canvas_text_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + if (methods.FirstOrDefault(m => m.Name == "Create") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_text_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_text_factory_create_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TextFactory.Emoticons.efl_ui_text_factory_emoticons_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_canvas_text_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_canvas_text_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_canvas_text_factory_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_text_factory_create"); + + private static Efl.Canvas.Object create(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_object, System.String key) + { + Eina.Log.Debug("function efl_canvas_text_factory_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Emoticons)wrapper).Create(kw_object, key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_canvas_text_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_canvas_text_factory_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_text_factory_create"); - private static Efl.Canvas.Object create(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_object, System.String key) - { - Eina.Log.Debug("function efl_canvas_text_factory_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Emoticons)wrapper).Create( kw_object, key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_canvas_text_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object, key); + + } + else + { + return efl_canvas_text_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object, key); + } } - } - private static efl_canvas_text_factory_create_delegate efl_canvas_text_factory_create_static_delegate; + + private static efl_canvas_text_factory_create_delegate efl_canvas_text_factory_create_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } } +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_fallback.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_fallback.eo.cs index 75957e7..3c1f3f7 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_fallback.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_fallback.eo.cs @@ -3,68 +3,93 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace TextFactory { +namespace Efl { + +namespace Ui { + +namespace TextFactory { + /// Internal factory for fallback cases. /// This wraps some internal functionality: - Contains 2 factories: image and emoticon - Strips off "file://" prefix for image items, to be used with the image factory. -[FallbackNativeInherit] +[Efl.Ui.TextFactory.Fallback.NativeMethods] public class Fallback : Efl.Object, Efl.Eo.IWrapper,Efl.Canvas.ITextFactory { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Fallback)) - return Efl.Ui.TextFactory.FallbackNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Fallback)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_text_factory_fallback_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Fallback(Efl.Object parent= null - ) : - base(efl_ui_text_factory_fallback_class_get(), typeof(Fallback), parent) + ) : base(efl_ui_text_factory_fallback_class_get(), typeof(Fallback), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Fallback(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Fallback(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Fallback(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Translates a given key to an item object, and returns the object. The returned object should be owned by the passed object. /// The parent of the created object /// Key that is associated to an item object - /// - virtual public Efl.Canvas.Object Create( Efl.Canvas.Object kw_object, System.String key) { - var _ret_var = Efl.Canvas.ITextFactoryNativeInherit.efl_canvas_text_factory_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_object, key); + virtual public Efl.Canvas.Object Create(Efl.Canvas.Object kw_object, System.String key) { + var _ret_var = Efl.Canvas.ITextFactoryConcrete.NativeMethods.efl_canvas_text_factory_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_object, key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -72,52 +97,83 @@ public class Fallback : Efl.Object, Efl.Eo.IWrapper,Efl.Canvas.ITextFactory { return Efl.Ui.TextFactory.Fallback.efl_ui_text_factory_fallback_class_get(); } -} -public class FallbackNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_canvas_text_factory_create_static_delegate == null) - efl_canvas_text_factory_create_static_delegate = new efl_canvas_text_factory_create_delegate(create); - if (methods.FirstOrDefault(m => m.Name == "Create") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_text_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_text_factory_create_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TextFactory.Fallback.efl_ui_text_factory_fallback_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TextFactory.Fallback.efl_ui_text_factory_fallback_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_canvas_text_factory_create_static_delegate == null) + { + efl_canvas_text_factory_create_static_delegate = new efl_canvas_text_factory_create_delegate(create); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_canvas_text_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + if (methods.FirstOrDefault(m => m.Name == "Create") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_text_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_text_factory_create_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TextFactory.Fallback.efl_ui_text_factory_fallback_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_canvas_text_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_canvas_text_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_canvas_text_factory_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_text_factory_create"); + + private static Efl.Canvas.Object create(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_object, System.String key) + { + Eina.Log.Debug("function efl_canvas_text_factory_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Fallback)wrapper).Create(kw_object, key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_canvas_text_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_canvas_text_factory_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_text_factory_create"); - private static Efl.Canvas.Object create(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_object, System.String key) - { - Eina.Log.Debug("function efl_canvas_text_factory_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Fallback)wrapper).Create( kw_object, key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_canvas_text_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object, key); + + } + else + { + return efl_canvas_text_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object, key); + } } - } - private static efl_canvas_text_factory_create_delegate efl_canvas_text_factory_create_static_delegate; + + private static efl_canvas_text_factory_create_delegate efl_canvas_text_factory_create_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } } +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_images.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_images.eo.cs index 30b667e..212fcdc 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_images.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_images.eo.cs @@ -3,62 +3,88 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { namespace TextFactory { +namespace Efl { + +namespace Ui { + +namespace TextFactory { + /// Factory that creates images given key string /// The key can be either a full image path, or associated with one. The factory will fallback if key was not matches with an image, and try to load it as a full path. -[ImagesNativeInherit] +[Efl.Ui.TextFactory.Images.NativeMethods] public class Images : Efl.Object, Efl.Eo.IWrapper,Efl.Canvas.ITextFactory { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Images)) - return Efl.Ui.TextFactory.ImagesNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Images)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_text_factory_images_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Images(Efl.Object parent= null - ) : - base(efl_ui_text_factory_images_class_get(), typeof(Images), parent) + ) : base(efl_ui_text_factory_images_class_get(), typeof(Images), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Images(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Images(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Images(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Associates given name with a path of an image or EET file. /// This can be used for quick retrieval (instead of providing actual filenames. /// @@ -69,8 +95,8 @@ public class Images : Efl.Object, Efl.Eo.IWrapper,Efl.Canvas.ITextFactory /// the image or EET file path /// the key to use (in cases of loading an EET file /// true if successful, false otherwise - virtual public bool AddMatches( System.String name, System.String path, System.String key) { - var _ret_var = Efl.Ui.TextFactory.ImagesNativeInherit.efl_ui_text_factory_images_matches_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, path, key); + virtual public bool AddMatches(System.String name, System.String path, System.String key) { + var _ret_var = Efl.Ui.TextFactory.Images.NativeMethods.efl_ui_text_factory_images_matches_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, path, key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -78,8 +104,8 @@ public class Images : Efl.Object, Efl.Eo.IWrapper,Efl.Canvas.ITextFactory /// see /// the entry's key to delete /// true if successful, false otherwise - virtual public bool DelMatches( System.String key) { - var _ret_var = Efl.Ui.TextFactory.ImagesNativeInherit.efl_ui_text_factory_images_matches_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public bool DelMatches(System.String key) { + var _ret_var = Efl.Ui.TextFactory.Images.NativeMethods.efl_ui_text_factory_images_matches_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -89,8 +115,8 @@ public class Images : Efl.Object, Efl.Eo.IWrapper,Efl.Canvas.ITextFactory /// the image or EET file /// the key to use (in cases of loading an EET file /// true if successful, false otherwise - virtual public bool AddMatchesMmap( System.String name, Eina.File file, System.String key) { - var _ret_var = Efl.Ui.TextFactory.ImagesNativeInherit.efl_ui_text_factory_images_matches_mmap_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, file, key); + virtual public bool AddMatchesMmap(System.String name, Eina.File file, System.String key) { + var _ret_var = Efl.Ui.TextFactory.Images.NativeMethods.efl_ui_text_factory_images_matches_mmap_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, file, key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -98,17 +124,16 @@ public class Images : Efl.Object, Efl.Eo.IWrapper,Efl.Canvas.ITextFactory /// see /// the entry's key to delete /// true if successful, false otherwise - virtual public bool DelMatchesMmap( System.String key) { - var _ret_var = Efl.Ui.TextFactory.ImagesNativeInherit.efl_ui_text_factory_images_matches_mmap_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public bool DelMatchesMmap(System.String key) { + var _ret_var = Efl.Ui.TextFactory.Images.NativeMethods.efl_ui_text_factory_images_matches_mmap_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Translates a given key to an item object, and returns the object. The returned object should be owned by the passed object. /// The parent of the created object /// Key that is associated to an item object - /// - virtual public Efl.Canvas.Object Create( Efl.Canvas.Object kw_object, System.String key) { - var _ret_var = Efl.Canvas.ITextFactoryNativeInherit.efl_canvas_text_factory_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_object, key); + virtual public Efl.Canvas.Object Create(Efl.Canvas.Object kw_object, System.String key) { + var _ret_var = Efl.Canvas.ITextFactoryConcrete.NativeMethods.efl_canvas_text_factory_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_object, key); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -116,168 +141,267 @@ public class Images : Efl.Object, Efl.Eo.IWrapper,Efl.Canvas.ITextFactory { return Efl.Ui.TextFactory.Images.efl_ui_text_factory_images_class_get(); } -} -public class ImagesNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_text_factory_images_matches_add_static_delegate == null) - efl_ui_text_factory_images_matches_add_static_delegate = new efl_ui_text_factory_images_matches_add_delegate(matches_add); - if (methods.FirstOrDefault(m => m.Name == "AddMatches") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_factory_images_matches_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_add_static_delegate)}); - if (efl_ui_text_factory_images_matches_del_static_delegate == null) - efl_ui_text_factory_images_matches_del_static_delegate = new efl_ui_text_factory_images_matches_del_delegate(matches_del); - if (methods.FirstOrDefault(m => m.Name == "DelMatches") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_factory_images_matches_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_del_static_delegate)}); - if (efl_ui_text_factory_images_matches_mmap_add_static_delegate == null) - efl_ui_text_factory_images_matches_mmap_add_static_delegate = new efl_ui_text_factory_images_matches_mmap_add_delegate(matches_mmap_add); - if (methods.FirstOrDefault(m => m.Name == "AddMatchesMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_factory_images_matches_mmap_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_mmap_add_static_delegate)}); - if (efl_ui_text_factory_images_matches_mmap_del_static_delegate == null) - efl_ui_text_factory_images_matches_mmap_del_static_delegate = new efl_ui_text_factory_images_matches_mmap_del_delegate(matches_mmap_del); - if (methods.FirstOrDefault(m => m.Name == "DelMatchesMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_text_factory_images_matches_mmap_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_mmap_del_static_delegate)}); - if (efl_canvas_text_factory_create_static_delegate == null) - efl_canvas_text_factory_create_static_delegate = new efl_canvas_text_factory_create_delegate(create); - if (methods.FirstOrDefault(m => m.Name == "Create") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_text_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_text_factory_create_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TextFactory.Images.efl_ui_text_factory_images_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.TextFactory.Images.efl_ui_text_factory_images_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_text_factory_images_matches_add_static_delegate == null) + { + efl_ui_text_factory_images_matches_add_static_delegate = new efl_ui_text_factory_images_matches_add_delegate(matches_add); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_factory_images_matches_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String path, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + if (methods.FirstOrDefault(m => m.Name == "AddMatches") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_factory_images_matches_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_add_static_delegate) }); + } + if (efl_ui_text_factory_images_matches_del_static_delegate == null) + { + efl_ui_text_factory_images_matches_del_static_delegate = new efl_ui_text_factory_images_matches_del_delegate(matches_del); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_factory_images_matches_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String path, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_ui_text_factory_images_matches_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_factory_images_matches_add"); - private static bool matches_add(System.IntPtr obj, System.IntPtr pd, System.String name, System.String path, System.String key) - { - Eina.Log.Debug("function efl_ui_text_factory_images_matches_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Images)wrapper).AddMatches( name, path, key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DelMatches") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_factory_images_matches_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_del_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_text_factory_images_matches_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, path, key); + + if (efl_ui_text_factory_images_matches_mmap_add_static_delegate == null) + { + efl_ui_text_factory_images_matches_mmap_add_static_delegate = new efl_ui_text_factory_images_matches_mmap_add_delegate(matches_mmap_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddMatchesMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_factory_images_matches_mmap_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_mmap_add_static_delegate) }); + } + + if (efl_ui_text_factory_images_matches_mmap_del_static_delegate == null) + { + efl_ui_text_factory_images_matches_mmap_del_static_delegate = new efl_ui_text_factory_images_matches_mmap_del_delegate(matches_mmap_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelMatchesMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_factory_images_matches_mmap_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_factory_images_matches_mmap_del_static_delegate) }); + } + + if (efl_canvas_text_factory_create_static_delegate == null) + { + efl_canvas_text_factory_create_static_delegate = new efl_canvas_text_factory_create_delegate(create); + } + + if (methods.FirstOrDefault(m => m.Name == "Create") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_text_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_text_factory_create_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TextFactory.Images.efl_ui_text_factory_images_class_get(); } - } - private static efl_ui_text_factory_images_matches_add_delegate efl_ui_text_factory_images_matches_add_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_factory_images_matches_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_factory_images_matches_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String path, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_factory_images_matches_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String path, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_ui_text_factory_images_matches_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_factory_images_matches_add"); + + private static bool matches_add(System.IntPtr obj, System.IntPtr pd, System.String name, System.String path, System.String key) + { + Eina.Log.Debug("function efl_ui_text_factory_images_matches_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Images)wrapper).AddMatches(name, path, key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_factory_images_matches_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_ui_text_factory_images_matches_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_factory_images_matches_del"); - private static bool matches_del(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_ui_text_factory_images_matches_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Images)wrapper).DelMatches( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_text_factory_images_matches_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + else + { + return efl_ui_text_factory_images_matches_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, path, key); + } } - } - private static efl_ui_text_factory_images_matches_del_delegate efl_ui_text_factory_images_matches_del_static_delegate; + private static efl_ui_text_factory_images_matches_add_delegate efl_ui_text_factory_images_matches_add_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_factory_images_matches_mmap_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, Eina.File file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_factory_images_matches_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_factory_images_matches_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_ui_text_factory_images_matches_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_factory_images_matches_del"); + + private static bool matches_del(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_ui_text_factory_images_matches_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Images)wrapper).DelMatches(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_factory_images_matches_mmap_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, Eina.File file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_ui_text_factory_images_matches_mmap_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_factory_images_matches_mmap_add"); - private static bool matches_mmap_add(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.File file, System.String key) - { - Eina.Log.Debug("function efl_ui_text_factory_images_matches_mmap_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Images)wrapper).AddMatchesMmap( name, file, key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_text_factory_images_matches_mmap_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, file, key); + else + { + return efl_ui_text_factory_images_matches_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } } - } - private static efl_ui_text_factory_images_matches_mmap_add_delegate efl_ui_text_factory_images_matches_mmap_add_static_delegate; + private static efl_ui_text_factory_images_matches_del_delegate efl_ui_text_factory_images_matches_del_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_text_factory_images_matches_mmap_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_factory_images_matches_mmap_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, Eina.File file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_factory_images_matches_mmap_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, Eina.File file, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_ui_text_factory_images_matches_mmap_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_factory_images_matches_mmap_add"); + + private static bool matches_mmap_add(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.File file, System.String key) + { + Eina.Log.Debug("function efl_ui_text_factory_images_matches_mmap_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Images)wrapper).AddMatchesMmap(name, file, key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_text_factory_images_matches_mmap_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_ui_text_factory_images_matches_mmap_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_text_factory_images_matches_mmap_del"); - private static bool matches_mmap_del(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_ui_text_factory_images_matches_mmap_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Images)wrapper).DelMatchesMmap( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_text_factory_images_matches_mmap_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + else + { + return efl_ui_text_factory_images_matches_mmap_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, file, key); + } } - } - private static efl_ui_text_factory_images_matches_mmap_del_delegate efl_ui_text_factory_images_matches_mmap_del_static_delegate; + private static efl_ui_text_factory_images_matches_mmap_add_delegate efl_ui_text_factory_images_matches_mmap_add_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_canvas_text_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_text_factory_images_matches_mmap_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_text_factory_images_matches_mmap_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_canvas_text_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_canvas_text_factory_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_text_factory_create"); - private static Efl.Canvas.Object create(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_object, System.String key) - { - Eina.Log.Debug("function efl_canvas_text_factory_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Images)wrapper).Create( kw_object, key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_text_factory_images_matches_mmap_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_factory_images_matches_mmap_del"); + + private static bool matches_mmap_del(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_ui_text_factory_images_matches_mmap_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Images)wrapper).DelMatchesMmap(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_text_factory_images_matches_mmap_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); } + } + + private static efl_ui_text_factory_images_matches_mmap_del_delegate efl_ui_text_factory_images_matches_mmap_del_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_canvas_text_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_canvas_text_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_canvas_text_factory_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_text_factory_create"); + + private static Efl.Canvas.Object create(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_object, System.String key) + { + Eina.Log.Debug("function efl_canvas_text_factory_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Images)wrapper).Create(kw_object, key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_canvas_text_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object, key); + + } + else + { + return efl_canvas_text_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_object, key); + } } - } - private static efl_canvas_text_factory_create_delegate efl_canvas_text_factory_create_static_delegate; + + private static efl_canvas_text_factory_create_delegate efl_canvas_text_factory_create_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } } +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_part.eo.cs index a40027c..b8bf220 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_part.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI Text internal part class -[TextPartNativeInherit] +[Efl.Ui.TextPart.NativeMethods] public class TextPart : Efl.Ui.LayoutPartText, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TextPart)) - return Efl.Ui.TextPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TextPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_text_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public TextPart(Efl.Object parent= null - ) : - base(efl_ui_text_part_class_get(), typeof(TextPart), parent) + ) : base(efl_ui_text_part_class_get(), typeof(TextPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TextPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TextPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TextPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.TextPart.efl_ui_text_part_class_get(); } -} -public class TextPartNativeInherit : Efl.Ui.LayoutPartTextNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TextPart.efl_ui_text_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPartText.NativeMethods { - return Efl.Ui.TextPart.efl_ui_text_part_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TextPart.efl_ui_text_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath.eo.cs index b164418..bc6c6e3 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath.eo.cs @@ -3,94 +3,119 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl Ui Textpath class -[TextpathNativeInherit] +[Efl.Ui.Textpath.NativeMethods] public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPath { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Textpath)) - return Efl.Ui.TextpathNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Textpath)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_textpath_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Textpath(Efl.Object parent - , System.String style = null) : - base(efl_ui_textpath_class_get(), typeof(Textpath), parent) + , System.String style = null) : base(efl_ui_textpath_class_get(), typeof(Textpath), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Textpath(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Textpath(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Textpath(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// The number of slices. The larger the number of slice_num is, The better the text follows the path. /// @internal /// Number of slices virtual public int GetSliceNumber() { - var _ret_var = Efl.Ui.TextpathNativeInherit.efl_ui_textpath_slice_number_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Textpath.NativeMethods.efl_ui_textpath_slice_number_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The number of slices. The larger the number of slice_num is, The better the text follows the path. /// @internal /// Number of slices - /// - virtual public void SetSliceNumber( int slice_no) { - Efl.Ui.TextpathNativeInherit.efl_ui_textpath_slice_number_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), slice_no); + virtual public void SetSliceNumber(int slice_no) { + Efl.Ui.Textpath.NativeMethods.efl_ui_textpath_slice_number_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),slice_no); Eina.Error.RaiseIfUnhandledException(); } /// Control the ellipsis behavior of the textpath. /// @since_tizen 5.5 /// To ellipsis text or not virtual public bool GetEllipsis() { - var _ret_var = Efl.Ui.TextpathNativeInherit.efl_ui_textpath_ellipsis_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Textpath.NativeMethods.efl_ui_textpath_ellipsis_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the ellipsis behavior of the textpath. /// @since_tizen 5.5 /// To ellipsis text or not - /// - virtual public void SetEllipsis( bool ellipsis) { - Efl.Ui.TextpathNativeInherit.efl_ui_textpath_ellipsis_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ellipsis); + virtual public void SetEllipsis(bool ellipsis) { + Efl.Ui.Textpath.NativeMethods.efl_ui_textpath_ellipsis_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ellipsis); Eina.Error.RaiseIfUnhandledException(); } /// Set a circle with given center, radius, and start angle. @@ -100,9 +125,8 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// Radius of the circle /// Start angle of the circle /// Textpath direction - /// - virtual public void SetCircle( double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction) { - Efl.Ui.TextpathNativeInherit.efl_ui_textpath_circle_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, radius, start_angle, direction); + virtual public void SetCircle(double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction) { + Efl.Ui.Textpath.NativeMethods.efl_ui_textpath_circle_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, radius, start_angle, direction); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the text string currently being displayed by the given text object. @@ -112,7 +136,7 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -120,19 +144,17 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Set the list of commands and points to be used to create the content of path. /// Command list /// Point list - /// - virtual public void GetPath( out Efl.Gfx.PathCommandType op, out double points) { + virtual public void GetPath(out Efl.Gfx.PathCommandType op, out double points) { System.IntPtr _out_op = System.IntPtr.Zero; System.IntPtr _out_points = System.IntPtr.Zero; - Efl.Gfx.IPathNativeInherit.efl_gfx_path_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out _out_op, out _out_points); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out _out_op, out _out_points); Eina.Error.RaiseIfUnhandledException(); op = Eina.PrimitiveConversion.PointerToManaged(_out_op); points = Eina.PrimitiveConversion.PointerToManaged(_out_points); @@ -140,66 +162,58 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// Set the list of commands and points to be used to create the content of path. /// Command list /// Point list - /// - virtual public void SetPath( Efl.Gfx.PathCommandType op, double points) { + virtual public void SetPath(Efl.Gfx.PathCommandType op, double points) { var _in_op = Eina.PrimitiveConversion.ManagedToPointerAlloc(op); var _in_points = Eina.PrimitiveConversion.ManagedToPointerAlloc(points); - Efl.Gfx.IPathNativeInherit.efl_gfx_path_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_op, _in_points); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_op, _in_points); Eina.Error.RaiseIfUnhandledException(); } /// Path length property /// Commands /// Points - /// - virtual public void GetLength( out uint commands, out uint points) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out commands, out points); + virtual public void GetLength(out uint commands, out uint points) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out commands, out points); Eina.Error.RaiseIfUnhandledException(); } /// Current point coordinates /// X co-ordinate of the current point. /// Y co-ordinate of the current point. - /// - virtual public void GetCurrent( out double x, out double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_current_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetCurrent(out double x, out double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_current_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Current control point coordinates /// X co-ordinate of control point. /// Y co-ordinate of control point. - /// - virtual public void GetCurrentCtrl( out double x, out double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_current_ctrl_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetCurrentCtrl(out double x, out double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_current_ctrl_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Copy the path data from the object specified. /// Shape object from where data will be copied. - /// - virtual public void CopyFrom( Efl.Object dup_from) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_copy_from_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dup_from); + virtual public void CopyFrom(Efl.Object dup_from) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_copy_from_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dup_from); Eina.Error.RaiseIfUnhandledException(); } /// Compute and return the bounding box of the currently set path /// Contain the bounding box of the currently set path - /// - virtual public void GetBounds( out Eina.Rect r) { + virtual public void GetBounds(out Eina.Rect r) { var _out_r = new Eina.Rect.NativeStruct(); - Efl.Gfx.IPathNativeInherit.efl_gfx_path_bounds_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out _out_r); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_bounds_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out _out_r); Eina.Error.RaiseIfUnhandledException(); r = _out_r; } /// Reset the path data of the path object. - /// virtual public void Reset() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Moves the current point to the given point, implicitly starting a new subpath and closing the previous one. /// See also . /// X co-ordinate of the current point. /// Y co-ordinate of the current point. - /// - virtual public void AppendMoveTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_move_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void AppendMoveTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_move_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a straight line from the current position to the given end point. After the line is drawn, the current position is updated to be at the end point of the line. @@ -208,9 +222,8 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// See also . /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - virtual public void AppendLineTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_line_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void AppendLineTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_line_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a quadratic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x, ctrl_y). After the path is drawn, the current position is updated to be at the end point of the path. @@ -218,18 +231,16 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// Y co-ordinate of end point of the line. /// X co-ordinate of control point. /// Y co-ordinate of control point. - /// - virtual public void AppendQuadraticTo( double x, double y, double ctrl_x, double ctrl_y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_quadratic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, ctrl_x, ctrl_y); + virtual public void AppendQuadraticTo(double x, double y, double ctrl_x, double ctrl_y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_quadratic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, ctrl_x, ctrl_y); Eina.Error.RaiseIfUnhandledException(); } /// Same as efl_gfx_path_append_quadratic_to() api only difference is that it uses the current control point to draw the bezier. /// See also . /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - virtual public void AppendSquadraticTo( double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_squadratic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void AppendSquadraticTo(double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_squadratic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Adds a cubic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x0, ctrl_y0), and (ctrl_x1, ctrl_y1). After the path is drawn, the current position is updated to be at the end point of the path. @@ -239,9 +250,8 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// Y co-ordinate of 2nd control point. /// X co-ordinate of end point of the line. /// Y co-ordinate of end point of the line. - /// - virtual public void AppendCubicTo( double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_cubic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + virtual public void AppendCubicTo(double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_cubic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); Eina.Error.RaiseIfUnhandledException(); } /// Same as efl_gfx_path_append_cubic_to() api only difference is that it uses the current control point to draw the bezier. @@ -250,9 +260,8 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// Y co-ordinate of end point of the line. /// X co-ordinate of 2nd control point. /// Y co-ordinate of 2nd control point. - /// - virtual public void AppendScubicTo( double x, double y, double ctrl_x, double ctrl_y) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_scubic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, ctrl_x, ctrl_y); + virtual public void AppendScubicTo(double x, double y, double ctrl_x, double ctrl_y) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_scubic_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, ctrl_x, ctrl_y); Eina.Error.RaiseIfUnhandledException(); } /// Append an arc that connects from the current point int the point list to the given point (x,y). The arc is defined by the given radius in x-direction (rx) and radius in y direction (ry). @@ -264,9 +273,8 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// X-axis rotation , normally 0. /// Defines whether to draw the larger arc or smaller arc joining two point. /// Defines whether the arc will be drawn counter-clockwise or clockwise from current point to the end point taking into account the large_arc property. - /// - virtual public void AppendArcTo( double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_arc_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, rx, ry, angle, large_arc, sweep); + virtual public void AppendArcTo(double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_arc_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, rx, ry, angle, large_arc, sweep); Eina.Error.RaiseIfUnhandledException(); } /// Append an arc that enclosed in the given rectangle (x, y, w, h). The angle is defined in counter clock wise , use -ve angle for clockwise arc. @@ -276,25 +284,22 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// Height of the rect. /// Angle at which the arc will start /// @ Length of the arc. - /// - virtual public void AppendArc( double x, double y, double w, double h, double start_angle, double sweep_length) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_arc_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, w, h, start_angle, sweep_length); + virtual public void AppendArc(double x, double y, double w, double h, double start_angle, double sweep_length) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_arc_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, w, h, start_angle, sweep_length); Eina.Error.RaiseIfUnhandledException(); } /// Closes the current subpath by drawing a line to the beginning of the subpath, automatically starting a new path. The current point of the new path is (0, 0). /// If the subpath does not contain any points, this function does nothing. - /// virtual public void CloseAppend() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Append a circle with given center and radius. /// X co-ordinate of the center of the circle. /// Y co-ordinate of the center of the circle. /// Radius of the circle. - /// - virtual public void AppendCircle( double x, double y, double radius) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_circle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, radius); + virtual public void AppendCircle(double x, double y, double radius) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_circle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, radius); Eina.Error.RaiseIfUnhandledException(); } /// Append the given rectangle with rounded corner to the path. @@ -309,16 +314,14 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// Height of the rectangle. /// The x radius of the rounded corner and should be in range [ 0 to w/2 ] /// The y radius of the rounded corner and should be in range [ 0 to h/2 ] - /// - virtual public void AppendRect( double x, double y, double w, double h, double rx, double ry) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_rect_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y, w, h, rx, ry); + virtual public void AppendRect(double x, double y, double w, double h, double rx, double ry) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_rect_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y, w, h, rx, ry); Eina.Error.RaiseIfUnhandledException(); } /// Append SVG path data /// SVG path data to append - /// - virtual public void AppendSvgPath( System.String svg_path_data) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_append_svg_path_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), svg_path_data); + virtual public void AppendSvgPath(System.String svg_path_data) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_append_svg_path_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),svg_path_data); Eina.Error.RaiseIfUnhandledException(); } /// Creates intermediary path part-way between two paths @@ -329,32 +332,30 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// Destination path /// Position map in range 0.0 to 1.0 /// true on success, false otherwise - virtual public bool Interpolate( Efl.Object from, Efl.Object to, double pos_map) { - var _ret_var = Efl.Gfx.IPathNativeInherit.efl_gfx_path_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), from, to, pos_map); + virtual public bool Interpolate(Efl.Object from, Efl.Object to, double pos_map) { + var _ret_var = Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),from, to, pos_map); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Equal commands in object /// Object /// True on success, false otherwise - virtual public bool EqualCommands( Efl.Object with) { - var _ret_var = Efl.Gfx.IPathNativeInherit.efl_gfx_path_equal_commands_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), with); + virtual public bool EqualCommands(Efl.Object with) { + var _ret_var = Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_equal_commands_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),with); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reserve path commands buffer in advance. If you know the count of path commands coming, you can reserve commands buffer in advance to avoid buffer growing job. /// Commands count to reserve /// Pointers count to reserve - /// - virtual public void Reserve( uint cmd_count, uint pts_count) { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_reserve_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cmd_count, pts_count); + virtual public void Reserve(uint cmd_count, uint pts_count) { + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_reserve_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cmd_count, pts_count); Eina.Error.RaiseIfUnhandledException(); } /// Request to update the path object. /// One path object may get appending several path calls (such as append_cubic, append_rect, etc) to construct the final path data. Here commit means all path data is prepared and now object could update its own internal status based on the last path information. - /// virtual public void Commit() { - Efl.Gfx.IPathNativeInherit.efl_gfx_path_commit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_commit_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// The number of slices. The larger the number of slice_num is, The better the text follows the path. @@ -362,921 +363,1463 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IText,Efl.Gfx.IPa /// Number of slices public int SliceNumber { get { return GetSliceNumber(); } - set { SetSliceNumber( value); } + set { SetSliceNumber(value); } } /// Control the ellipsis behavior of the textpath. /// @since_tizen 5.5 /// To ellipsis text or not public bool Ellipsis { get { return GetEllipsis(); } - set { SetEllipsis( value); } + set { SetEllipsis(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Textpath.efl_ui_textpath_class_get(); } -} -public class TextpathNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_textpath_slice_number_get_static_delegate == null) - efl_ui_textpath_slice_number_get_static_delegate = new efl_ui_textpath_slice_number_get_delegate(slice_number_get); - if (methods.FirstOrDefault(m => m.Name == "GetSliceNumber") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_textpath_slice_number_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_slice_number_get_static_delegate)}); - if (efl_ui_textpath_slice_number_set_static_delegate == null) - efl_ui_textpath_slice_number_set_static_delegate = new efl_ui_textpath_slice_number_set_delegate(slice_number_set); - if (methods.FirstOrDefault(m => m.Name == "SetSliceNumber") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_textpath_slice_number_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_slice_number_set_static_delegate)}); - if (efl_ui_textpath_ellipsis_get_static_delegate == null) - efl_ui_textpath_ellipsis_get_static_delegate = new efl_ui_textpath_ellipsis_get_delegate(ellipsis_get); - if (methods.FirstOrDefault(m => m.Name == "GetEllipsis") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_textpath_ellipsis_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_ellipsis_get_static_delegate)}); - if (efl_ui_textpath_ellipsis_set_static_delegate == null) - efl_ui_textpath_ellipsis_set_static_delegate = new efl_ui_textpath_ellipsis_set_delegate(ellipsis_set); - if (methods.FirstOrDefault(m => m.Name == "SetEllipsis") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_textpath_ellipsis_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_ellipsis_set_static_delegate)}); - if (efl_ui_textpath_circle_set_static_delegate == null) - efl_ui_textpath_circle_set_static_delegate = new efl_ui_textpath_circle_set_delegate(circle_set); - if (methods.FirstOrDefault(m => m.Name == "SetCircle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_textpath_circle_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_circle_set_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_gfx_path_get_static_delegate == null) - efl_gfx_path_get_static_delegate = new efl_gfx_path_get_delegate(path_get); - if (methods.FirstOrDefault(m => m.Name == "GetPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_get_static_delegate)}); - if (efl_gfx_path_set_static_delegate == null) - efl_gfx_path_set_static_delegate = new efl_gfx_path_set_delegate(path_set); - if (methods.FirstOrDefault(m => m.Name == "SetPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_set_static_delegate)}); - if (efl_gfx_path_length_get_static_delegate == null) - efl_gfx_path_length_get_static_delegate = new efl_gfx_path_length_get_delegate(length_get); - if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_length_get_static_delegate)}); - if (efl_gfx_path_current_get_static_delegate == null) - efl_gfx_path_current_get_static_delegate = new efl_gfx_path_current_get_delegate(current_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_current_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_get_static_delegate)}); - if (efl_gfx_path_current_ctrl_get_static_delegate == null) - efl_gfx_path_current_ctrl_get_static_delegate = new efl_gfx_path_current_ctrl_get_delegate(current_ctrl_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrentCtrl") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_current_ctrl_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_ctrl_get_static_delegate)}); - if (efl_gfx_path_copy_from_static_delegate == null) - efl_gfx_path_copy_from_static_delegate = new efl_gfx_path_copy_from_delegate(copy_from); - if (methods.FirstOrDefault(m => m.Name == "CopyFrom") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_copy_from"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_copy_from_static_delegate)}); - if (efl_gfx_path_bounds_get_static_delegate == null) - efl_gfx_path_bounds_get_static_delegate = new efl_gfx_path_bounds_get_delegate(bounds_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounds") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_bounds_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_bounds_get_static_delegate)}); - if (efl_gfx_path_reset_static_delegate == null) - efl_gfx_path_reset_static_delegate = new efl_gfx_path_reset_delegate(reset); - if (methods.FirstOrDefault(m => m.Name == "Reset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reset_static_delegate)}); - if (efl_gfx_path_append_move_to_static_delegate == null) - efl_gfx_path_append_move_to_static_delegate = new efl_gfx_path_append_move_to_delegate(append_move_to); - if (methods.FirstOrDefault(m => m.Name == "AppendMoveTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_move_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_move_to_static_delegate)}); - if (efl_gfx_path_append_line_to_static_delegate == null) - efl_gfx_path_append_line_to_static_delegate = new efl_gfx_path_append_line_to_delegate(append_line_to); - if (methods.FirstOrDefault(m => m.Name == "AppendLineTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_line_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_line_to_static_delegate)}); - if (efl_gfx_path_append_quadratic_to_static_delegate == null) - efl_gfx_path_append_quadratic_to_static_delegate = new efl_gfx_path_append_quadratic_to_delegate(append_quadratic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendQuadraticTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_quadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_quadratic_to_static_delegate)}); - if (efl_gfx_path_append_squadratic_to_static_delegate == null) - efl_gfx_path_append_squadratic_to_static_delegate = new efl_gfx_path_append_squadratic_to_delegate(append_squadratic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendSquadraticTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_squadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_squadratic_to_static_delegate)}); - if (efl_gfx_path_append_cubic_to_static_delegate == null) - efl_gfx_path_append_cubic_to_static_delegate = new efl_gfx_path_append_cubic_to_delegate(append_cubic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendCubicTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_cubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_cubic_to_static_delegate)}); - if (efl_gfx_path_append_scubic_to_static_delegate == null) - efl_gfx_path_append_scubic_to_static_delegate = new efl_gfx_path_append_scubic_to_delegate(append_scubic_to); - if (methods.FirstOrDefault(m => m.Name == "AppendScubicTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_scubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_scubic_to_static_delegate)}); - if (efl_gfx_path_append_arc_to_static_delegate == null) - efl_gfx_path_append_arc_to_static_delegate = new efl_gfx_path_append_arc_to_delegate(append_arc_to); - if (methods.FirstOrDefault(m => m.Name == "AppendArcTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_arc_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_to_static_delegate)}); - if (efl_gfx_path_append_arc_static_delegate == null) - efl_gfx_path_append_arc_static_delegate = new efl_gfx_path_append_arc_delegate(append_arc); - if (methods.FirstOrDefault(m => m.Name == "AppendArc") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_arc"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_static_delegate)}); - if (efl_gfx_path_append_close_static_delegate == null) - efl_gfx_path_append_close_static_delegate = new efl_gfx_path_append_close_delegate(append_close); - if (methods.FirstOrDefault(m => m.Name == "CloseAppend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_close"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_close_static_delegate)}); - if (efl_gfx_path_append_circle_static_delegate == null) - efl_gfx_path_append_circle_static_delegate = new efl_gfx_path_append_circle_delegate(append_circle); - if (methods.FirstOrDefault(m => m.Name == "AppendCircle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_circle"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_circle_static_delegate)}); - if (efl_gfx_path_append_rect_static_delegate == null) - efl_gfx_path_append_rect_static_delegate = new efl_gfx_path_append_rect_delegate(append_rect); - if (methods.FirstOrDefault(m => m.Name == "AppendRect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_rect"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_rect_static_delegate)}); - if (efl_gfx_path_append_svg_path_static_delegate == null) - efl_gfx_path_append_svg_path_static_delegate = new efl_gfx_path_append_svg_path_delegate(append_svg_path); - if (methods.FirstOrDefault(m => m.Name == "AppendSvgPath") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_append_svg_path"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_svg_path_static_delegate)}); - if (efl_gfx_path_interpolate_static_delegate == null) - efl_gfx_path_interpolate_static_delegate = new efl_gfx_path_interpolate_delegate(interpolate); - if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_interpolate_static_delegate)}); - if (efl_gfx_path_equal_commands_static_delegate == null) - efl_gfx_path_equal_commands_static_delegate = new efl_gfx_path_equal_commands_delegate(equal_commands); - if (methods.FirstOrDefault(m => m.Name == "EqualCommands") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_equal_commands"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_equal_commands_static_delegate)}); - if (efl_gfx_path_reserve_static_delegate == null) - efl_gfx_path_reserve_static_delegate = new efl_gfx_path_reserve_delegate(reserve); - if (methods.FirstOrDefault(m => m.Name == "Reserve") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_reserve"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reserve_static_delegate)}); - if (efl_gfx_path_commit_static_delegate == null) - efl_gfx_path_commit_static_delegate = new efl_gfx_path_commit_delegate(commit); - if (methods.FirstOrDefault(m => m.Name == "Commit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_path_commit"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_commit_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Textpath.efl_ui_textpath_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Textpath.efl_ui_textpath_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_textpath_slice_number_get_static_delegate == null) + { + efl_ui_textpath_slice_number_get_static_delegate = new efl_ui_textpath_slice_number_get_delegate(slice_number_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetSliceNumber") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_textpath_slice_number_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_slice_number_get_static_delegate) }); + } - private delegate int efl_ui_textpath_slice_number_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_textpath_slice_number_set_static_delegate == null) + { + efl_ui_textpath_slice_number_set_static_delegate = new efl_ui_textpath_slice_number_set_delegate(slice_number_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetSliceNumber") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_textpath_slice_number_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_slice_number_set_static_delegate) }); + } - public delegate int efl_ui_textpath_slice_number_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_textpath_slice_number_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_textpath_slice_number_get"); - private static int slice_number_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_textpath_slice_number_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Textpath)wrapper).GetSliceNumber(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_textpath_ellipsis_get_static_delegate == null) + { + efl_ui_textpath_ellipsis_get_static_delegate = new efl_ui_textpath_ellipsis_get_delegate(ellipsis_get); } - return _ret_var; - } else { - return efl_ui_textpath_slice_number_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_textpath_slice_number_get_delegate efl_ui_textpath_slice_number_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetEllipsis") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_textpath_ellipsis_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_ellipsis_get_static_delegate) }); + } - private delegate void efl_ui_textpath_slice_number_set_delegate(System.IntPtr obj, System.IntPtr pd, int slice_no); + if (efl_ui_textpath_ellipsis_set_static_delegate == null) + { + efl_ui_textpath_ellipsis_set_static_delegate = new efl_ui_textpath_ellipsis_set_delegate(ellipsis_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetEllipsis") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_textpath_ellipsis_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_ellipsis_set_static_delegate) }); + } - public delegate void efl_ui_textpath_slice_number_set_api_delegate(System.IntPtr obj, int slice_no); - public static Efl.Eo.FunctionWrapper efl_ui_textpath_slice_number_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_textpath_slice_number_set"); - private static void slice_number_set(System.IntPtr obj, System.IntPtr pd, int slice_no) - { - Eina.Log.Debug("function efl_ui_textpath_slice_number_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).SetSliceNumber( slice_no); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_textpath_slice_number_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice_no); - } - } - private static efl_ui_textpath_slice_number_set_delegate efl_ui_textpath_slice_number_set_static_delegate; + if (efl_ui_textpath_circle_set_static_delegate == null) + { + efl_ui_textpath_circle_set_static_delegate = new efl_ui_textpath_circle_set_delegate(circle_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetCircle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_textpath_circle_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_circle_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_textpath_ellipsis_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_textpath_ellipsis_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_textpath_ellipsis_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_textpath_ellipsis_get"); - private static bool ellipsis_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_textpath_ellipsis_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Textpath)wrapper).GetEllipsis(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); } - return _ret_var; - } else { - return efl_ui_textpath_ellipsis_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_textpath_ellipsis_get_delegate efl_ui_textpath_ellipsis_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } - private delegate void efl_ui_textpath_ellipsis_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool ellipsis); + if (efl_gfx_path_get_static_delegate == null) + { + efl_gfx_path_get_static_delegate = new efl_gfx_path_get_delegate(path_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_get_static_delegate) }); + } - public delegate void efl_ui_textpath_ellipsis_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool ellipsis); - public static Efl.Eo.FunctionWrapper efl_ui_textpath_ellipsis_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_textpath_ellipsis_set"); - private static void ellipsis_set(System.IntPtr obj, System.IntPtr pd, bool ellipsis) - { - Eina.Log.Debug("function efl_ui_textpath_ellipsis_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).SetEllipsis( ellipsis); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_textpath_ellipsis_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ellipsis); - } - } - private static efl_ui_textpath_ellipsis_set_delegate efl_ui_textpath_ellipsis_set_static_delegate; + if (efl_gfx_path_set_static_delegate == null) + { + efl_gfx_path_set_static_delegate = new efl_gfx_path_set_delegate(path_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_set_static_delegate) }); + } - private delegate void efl_ui_textpath_circle_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction); + if (efl_gfx_path_length_get_static_delegate == null) + { + efl_gfx_path_length_get_static_delegate = new efl_gfx_path_length_get_delegate(length_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_length_get_static_delegate) }); + } - public delegate void efl_ui_textpath_circle_set_api_delegate(System.IntPtr obj, double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction); - public static Efl.Eo.FunctionWrapper efl_ui_textpath_circle_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_textpath_circle_set"); - private static void circle_set(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction) - { - Eina.Log.Debug("function efl_ui_textpath_circle_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).SetCircle( x, y, radius, start_angle, direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_textpath_circle_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, radius, start_angle, direction); - } - } - private static efl_ui_textpath_circle_set_delegate efl_ui_textpath_circle_set_static_delegate; + if (efl_gfx_path_current_get_static_delegate == null) + { + efl_gfx_path_current_get_static_delegate = new efl_gfx_path_current_get_delegate(current_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCurrent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_current_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_path_current_ctrl_get_static_delegate == null) + { + efl_gfx_path_current_ctrl_get_static_delegate = new efl_gfx_path_current_ctrl_get_delegate(current_ctrl_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetCurrentCtrl") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_current_ctrl_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_current_ctrl_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Textpath)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_path_copy_from_static_delegate == null) + { + efl_gfx_path_copy_from_static_delegate = new efl_gfx_path_copy_from_delegate(copy_from); } - return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "CopyFrom") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_copy_from"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_copy_from_static_delegate) }); + } - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + if (efl_gfx_path_bounds_get_static_delegate == null) + { + efl_gfx_path_bounds_get_static_delegate = new efl_gfx_path_bounds_get_delegate(bounds_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBounds") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_bounds_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_bounds_get_static_delegate) }); + } - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); - } - } - private static efl_text_set_delegate efl_text_set_static_delegate; + if (efl_gfx_path_reset_static_delegate == null) + { + efl_gfx_path_reset_static_delegate = new efl_gfx_path_reset_delegate(reset); + } + if (methods.FirstOrDefault(m => m.Name == "Reset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reset_static_delegate) }); + } - private delegate void efl_gfx_path_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points); + if (efl_gfx_path_append_move_to_static_delegate == null) + { + efl_gfx_path_append_move_to_static_delegate = new efl_gfx_path_append_move_to_delegate(append_move_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendMoveTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_move_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_move_to_static_delegate) }); + } - public delegate void efl_gfx_path_get_api_delegate(System.IntPtr obj, out System.IntPtr op, out System.IntPtr points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_get"); - private static void path_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points) - { - Eina.Log.Debug("function efl_gfx_path_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); - double _out_points = default(double); - - try { - ((Textpath)wrapper).GetPath( out _out_op, out _out_points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_path_append_line_to_static_delegate == null) + { + efl_gfx_path_append_line_to_static_delegate = new efl_gfx_path_append_line_to_delegate(append_line_to); } - op = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_op); - points = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_points); - } else { - efl_gfx_path_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out op, out points); - } - } - private static efl_gfx_path_get_delegate efl_gfx_path_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "AppendLineTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_line_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_line_to_static_delegate) }); + } - private delegate void efl_gfx_path_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points); + if (efl_gfx_path_append_quadratic_to_static_delegate == null) + { + efl_gfx_path_append_quadratic_to_static_delegate = new efl_gfx_path_append_quadratic_to_delegate(append_quadratic_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendQuadraticTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_quadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_quadratic_to_static_delegate) }); + } - public delegate void efl_gfx_path_set_api_delegate(System.IntPtr obj, System.IntPtr op, System.IntPtr points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_set"); - private static void path_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points) - { - Eina.Log.Debug("function efl_gfx_path_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_op = Eina.PrimitiveConversion.PointerToManaged(op); - var _in_points = Eina.PrimitiveConversion.PointerToManaged(points); - - try { - ((Textpath)wrapper).SetPath( _in_op, _in_points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), op, points); - } - } - private static efl_gfx_path_set_delegate efl_gfx_path_set_static_delegate; + if (efl_gfx_path_append_squadratic_to_static_delegate == null) + { + efl_gfx_path_append_squadratic_to_static_delegate = new efl_gfx_path_append_squadratic_to_delegate(append_squadratic_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendSquadraticTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_squadratic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_squadratic_to_static_delegate) }); + } - private delegate void efl_gfx_path_length_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points); + if (efl_gfx_path_append_cubic_to_static_delegate == null) + { + efl_gfx_path_append_cubic_to_static_delegate = new efl_gfx_path_append_cubic_to_delegate(append_cubic_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendCubicTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_cubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_cubic_to_static_delegate) }); + } - public delegate void efl_gfx_path_length_get_api_delegate(System.IntPtr obj, out uint commands, out uint points); - public static Efl.Eo.FunctionWrapper efl_gfx_path_length_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_length_get"); - private static void length_get(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points) - { - Eina.Log.Debug("function efl_gfx_path_length_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - commands = default(uint); points = default(uint); - try { - ((Textpath)wrapper).GetLength( out commands, out points); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out commands, out points); - } - } - private static efl_gfx_path_length_get_delegate efl_gfx_path_length_get_static_delegate; + if (efl_gfx_path_append_scubic_to_static_delegate == null) + { + efl_gfx_path_append_scubic_to_static_delegate = new efl_gfx_path_append_scubic_to_delegate(append_scubic_to); + } + + if (methods.FirstOrDefault(m => m.Name == "AppendScubicTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_scubic_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_scubic_to_static_delegate) }); + } + + if (efl_gfx_path_append_arc_to_static_delegate == null) + { + efl_gfx_path_append_arc_to_static_delegate = new efl_gfx_path_append_arc_to_delegate(append_arc_to); + } + if (methods.FirstOrDefault(m => m.Name == "AppendArcTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_arc_to"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_to_static_delegate) }); + } - private delegate void efl_gfx_path_current_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (efl_gfx_path_append_arc_static_delegate == null) + { + efl_gfx_path_append_arc_static_delegate = new efl_gfx_path_append_arc_delegate(append_arc); + } + if (methods.FirstOrDefault(m => m.Name == "AppendArc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_arc"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_arc_static_delegate) }); + } - public delegate void efl_gfx_path_current_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_current_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_current_get"); - private static void current_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_path_current_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((Textpath)wrapper).GetCurrent( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_current_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_gfx_path_current_get_delegate efl_gfx_path_current_get_static_delegate; + if (efl_gfx_path_append_close_static_delegate == null) + { + efl_gfx_path_append_close_static_delegate = new efl_gfx_path_append_close_delegate(append_close); + } + if (methods.FirstOrDefault(m => m.Name == "CloseAppend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_close"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_close_static_delegate) }); + } - private delegate void efl_gfx_path_current_ctrl_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (efl_gfx_path_append_circle_static_delegate == null) + { + efl_gfx_path_append_circle_static_delegate = new efl_gfx_path_append_circle_delegate(append_circle); + } + if (methods.FirstOrDefault(m => m.Name == "AppendCircle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_circle"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_circle_static_delegate) }); + } - public delegate void efl_gfx_path_current_ctrl_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_current_ctrl_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_current_ctrl_get"); - private static void current_ctrl_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_gfx_path_current_ctrl_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((Textpath)wrapper).GetCurrentCtrl( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_gfx_path_current_ctrl_get_delegate efl_gfx_path_current_ctrl_get_static_delegate; + if (efl_gfx_path_append_rect_static_delegate == null) + { + efl_gfx_path_append_rect_static_delegate = new efl_gfx_path_append_rect_delegate(append_rect); + } + if (methods.FirstOrDefault(m => m.Name == "AppendRect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_rect"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_rect_static_delegate) }); + } - private delegate void efl_gfx_path_copy_from_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object dup_from); + if (efl_gfx_path_append_svg_path_static_delegate == null) + { + efl_gfx_path_append_svg_path_static_delegate = new efl_gfx_path_append_svg_path_delegate(append_svg_path); + } + if (methods.FirstOrDefault(m => m.Name == "AppendSvgPath") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_append_svg_path"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_append_svg_path_static_delegate) }); + } - public delegate void efl_gfx_path_copy_from_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object dup_from); - public static Efl.Eo.FunctionWrapper efl_gfx_path_copy_from_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_copy_from"); - private static void copy_from(System.IntPtr obj, System.IntPtr pd, Efl.Object dup_from) - { - Eina.Log.Debug("function efl_gfx_path_copy_from was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).CopyFrom( dup_from); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_copy_from_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dup_from); - } - } - private static efl_gfx_path_copy_from_delegate efl_gfx_path_copy_from_static_delegate; + if (efl_gfx_path_interpolate_static_delegate == null) + { + efl_gfx_path_interpolate_static_delegate = new efl_gfx_path_interpolate_delegate(interpolate); + } + if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_interpolate_static_delegate) }); + } - private delegate void efl_gfx_path_bounds_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r); + if (efl_gfx_path_equal_commands_static_delegate == null) + { + efl_gfx_path_equal_commands_static_delegate = new efl_gfx_path_equal_commands_delegate(equal_commands); + } + if (methods.FirstOrDefault(m => m.Name == "EqualCommands") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_equal_commands"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_equal_commands_static_delegate) }); + } - public delegate void efl_gfx_path_bounds_get_api_delegate(System.IntPtr obj, out Eina.Rect.NativeStruct r); - public static Efl.Eo.FunctionWrapper efl_gfx_path_bounds_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_bounds_get"); - private static void bounds_get(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r) - { - Eina.Log.Debug("function efl_gfx_path_bounds_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _out_r = default(Eina.Rect); - - try { - ((Textpath)wrapper).GetBounds( out _out_r); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_path_reserve_static_delegate == null) + { + efl_gfx_path_reserve_static_delegate = new efl_gfx_path_reserve_delegate(reserve); } - r = _out_r; - } else { - efl_gfx_path_bounds_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r); - } - } - private static efl_gfx_path_bounds_get_delegate efl_gfx_path_bounds_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Reserve") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_reserve"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_reserve_static_delegate) }); + } - private delegate void efl_gfx_path_reset_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_path_commit_static_delegate == null) + { + efl_gfx_path_commit_static_delegate = new efl_gfx_path_commit_delegate(commit); + } + if (methods.FirstOrDefault(m => m.Name == "Commit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_path_commit"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_path_commit_static_delegate) }); + } - public delegate void efl_gfx_path_reset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_reset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_reset"); - private static void reset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_reset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).Reset(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Textpath.efl_ui_textpath_class_get(); } - } - private static efl_gfx_path_reset_delegate efl_gfx_path_reset_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate int efl_ui_textpath_slice_number_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_ui_textpath_slice_number_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_textpath_slice_number_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_textpath_slice_number_get"); + + private static int slice_number_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_textpath_slice_number_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Textpath)wrapper).GetSliceNumber(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_move_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + return _ret_var; + + } + else + { + return efl_ui_textpath_slice_number_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_ui_textpath_slice_number_get_delegate efl_ui_textpath_slice_number_get_static_delegate; + + + private delegate void efl_ui_textpath_slice_number_set_delegate(System.IntPtr obj, System.IntPtr pd, int slice_no); + + + public delegate void efl_ui_textpath_slice_number_set_api_delegate(System.IntPtr obj, int slice_no); + + public static Efl.Eo.FunctionWrapper efl_ui_textpath_slice_number_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_textpath_slice_number_set"); + + private static void slice_number_set(System.IntPtr obj, System.IntPtr pd, int slice_no) + { + Eina.Log.Debug("function efl_ui_textpath_slice_number_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).SetSliceNumber(slice_no); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_append_move_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_move_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_move_to"); - private static void append_move_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_move_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).AppendMoveTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_move_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + + } + else + { + efl_ui_textpath_slice_number_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), slice_no); + } } - } - private static efl_gfx_path_append_move_to_delegate efl_gfx_path_append_move_to_static_delegate; + private static efl_ui_textpath_slice_number_set_delegate efl_ui_textpath_slice_number_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_textpath_ellipsis_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_textpath_ellipsis_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_textpath_ellipsis_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_textpath_ellipsis_get"); + + private static bool ellipsis_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_textpath_ellipsis_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Textpath)wrapper).GetEllipsis(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_line_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + return _ret_var; + } + else + { + return efl_ui_textpath_ellipsis_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_path_append_line_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_line_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_line_to"); - private static void append_line_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_line_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).AppendLineTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_line_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + private static efl_ui_textpath_ellipsis_get_delegate efl_ui_textpath_ellipsis_get_static_delegate; + + + private delegate void efl_ui_textpath_ellipsis_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool ellipsis); + + + public delegate void efl_ui_textpath_ellipsis_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool ellipsis); + + public static Efl.Eo.FunctionWrapper efl_ui_textpath_ellipsis_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_textpath_ellipsis_set"); + + private static void ellipsis_set(System.IntPtr obj, System.IntPtr pd, bool ellipsis) + { + Eina.Log.Debug("function efl_ui_textpath_ellipsis_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).SetEllipsis(ellipsis); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_textpath_ellipsis_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ellipsis); + } } - } - private static efl_gfx_path_append_line_to_delegate efl_gfx_path_append_line_to_static_delegate; + private static efl_ui_textpath_ellipsis_set_delegate efl_ui_textpath_ellipsis_set_static_delegate; + + + private delegate void efl_ui_textpath_circle_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction); + + + public delegate void efl_ui_textpath_circle_set_api_delegate(System.IntPtr obj, double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction); + + public static Efl.Eo.FunctionWrapper efl_ui_textpath_circle_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_textpath_circle_set"); + + private static void circle_set(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction) + { + Eina.Log.Debug("function efl_ui_textpath_circle_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).SetCircle(x, y, radius, start_angle, direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_textpath_circle_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, radius, start_angle, direction); + } + } - private delegate void efl_gfx_path_append_quadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + private static efl_ui_textpath_circle_set_delegate efl_ui_textpath_circle_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Textpath)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_path_append_quadratic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_quadratic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_quadratic_to"); - private static void append_quadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) - { - Eina.Log.Debug("function efl_gfx_path_append_quadratic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).AppendQuadraticTo( x, y, ctrl_x, ctrl_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); + } + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_path_append_quadratic_to_delegate efl_gfx_path_append_quadratic_to_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; + + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_squadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + } + } + private static efl_text_set_delegate efl_text_set_static_delegate; - public delegate void efl_gfx_path_append_squadratic_to_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_squadratic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_squadratic_to"); - private static void append_squadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_squadratic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).AppendSquadraticTo( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static efl_gfx_path_append_squadratic_to_delegate efl_gfx_path_append_squadratic_to_static_delegate; + + private delegate void efl_gfx_path_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points); + + public delegate void efl_gfx_path_get_api_delegate(System.IntPtr obj, out System.IntPtr op, out System.IntPtr points); - private delegate void efl_gfx_path_append_cubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); + public static Efl.Eo.FunctionWrapper efl_gfx_path_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_get"); + private static void path_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr op, out System.IntPtr points) + { + Eina.Log.Debug("function efl_gfx_path_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); + double _out_points = default(double); + + try + { + ((Textpath)wrapper).GetPath(out _out_op, out _out_points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_append_cubic_to_api_delegate(System.IntPtr obj, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_cubic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_cubic_to"); - private static void append_cubic_to(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) - { - Eina.Log.Debug("function efl_gfx_path_append_cubic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).AppendCubicTo( ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_cubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + op = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_op); + points = Eina.PrimitiveConversion.ManagedToPointerAlloc(_out_points); + + } + else + { + efl_gfx_path_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out op, out points); + } } - } - private static efl_gfx_path_append_cubic_to_delegate efl_gfx_path_append_cubic_to_static_delegate; + private static efl_gfx_path_get_delegate efl_gfx_path_get_static_delegate; - private delegate void efl_gfx_path_append_scubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + + private delegate void efl_gfx_path_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points); + + public delegate void efl_gfx_path_set_api_delegate(System.IntPtr obj, System.IntPtr op, System.IntPtr points); - public delegate void efl_gfx_path_append_scubic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_scubic_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_scubic_to"); - private static void append_scubic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) - { - Eina.Log.Debug("function efl_gfx_path_append_scubic_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).AppendScubicTo( x, y, ctrl_x, ctrl_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_scubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); - } - } - private static efl_gfx_path_append_scubic_to_delegate efl_gfx_path_append_scubic_to_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_path_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_set"); + private static void path_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr op, System.IntPtr points) + { + Eina.Log.Debug("function efl_gfx_path_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_op = Eina.PrimitiveConversion.PointerToManaged(op); + var _in_points = Eina.PrimitiveConversion.PointerToManaged(points); + + try + { + ((Textpath)wrapper).SetPath(_in_op, _in_points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), op, points); + } + } - private delegate void efl_gfx_path_append_arc_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); + private static efl_gfx_path_set_delegate efl_gfx_path_set_static_delegate; + + + private delegate void efl_gfx_path_length_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points); + + + public delegate void efl_gfx_path_length_get_api_delegate(System.IntPtr obj, out uint commands, out uint points); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_length_get"); + + private static void length_get(System.IntPtr obj, System.IntPtr pd, out uint commands, out uint points) + { + Eina.Log.Debug("function efl_gfx_path_length_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + commands = default(uint); points = default(uint); + try + { + ((Textpath)wrapper).GetLength(out commands, out points); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out commands, out points); + } + } + private static efl_gfx_path_length_get_delegate efl_gfx_path_length_get_static_delegate; + + + private delegate void efl_gfx_path_current_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_path_current_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_current_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_current_get"); + + private static void current_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_path_current_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((Textpath)wrapper).GetCurrent(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_current_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } - public delegate void efl_gfx_path_append_arc_to_api_delegate(System.IntPtr obj, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_arc_to"); - private static void append_arc_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) - { - Eina.Log.Debug("function efl_gfx_path_append_arc_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).AppendArcTo( x, y, rx, ry, angle, large_arc, sweep); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_arc_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, rx, ry, angle, large_arc, sweep); + private static efl_gfx_path_current_get_delegate efl_gfx_path_current_get_static_delegate; + + + private delegate void efl_gfx_path_current_ctrl_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_gfx_path_current_ctrl_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_current_ctrl_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_current_ctrl_get"); + + private static void current_ctrl_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_gfx_path_current_ctrl_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((Textpath)wrapper).GetCurrentCtrl(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_current_ctrl_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } } - } - private static efl_gfx_path_append_arc_to_delegate efl_gfx_path_append_arc_to_static_delegate; + private static efl_gfx_path_current_ctrl_get_delegate efl_gfx_path_current_ctrl_get_static_delegate; + + + private delegate void efl_gfx_path_copy_from_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object dup_from); + + + public delegate void efl_gfx_path_copy_from_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object dup_from); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_copy_from_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_copy_from"); + + private static void copy_from(System.IntPtr obj, System.IntPtr pd, Efl.Object dup_from) + { + Eina.Log.Debug("function efl_gfx_path_copy_from was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).CopyFrom(dup_from); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_arc_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length); + + } + else + { + efl_gfx_path_copy_from_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dup_from); + } + } + private static efl_gfx_path_copy_from_delegate efl_gfx_path_copy_from_static_delegate; - public delegate void efl_gfx_path_append_arc_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double start_angle, double sweep_length); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_arc"); - private static void append_arc(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length) - { - Eina.Log.Debug("function efl_gfx_path_append_arc was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).AppendArc( x, y, w, h, start_angle, sweep_length); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_arc_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, start_angle, sweep_length); - } - } - private static efl_gfx_path_append_arc_delegate efl_gfx_path_append_arc_static_delegate; + + private delegate void efl_gfx_path_bounds_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r); + + public delegate void efl_gfx_path_bounds_get_api_delegate(System.IntPtr obj, out Eina.Rect.NativeStruct r); - private delegate void efl_gfx_path_append_close_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_gfx_path_bounds_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_bounds_get"); + private static void bounds_get(System.IntPtr obj, System.IntPtr pd, out Eina.Rect.NativeStruct r) + { + Eina.Log.Debug("function efl_gfx_path_bounds_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _out_r = default(Eina.Rect); + + try + { + ((Textpath)wrapper).GetBounds(out _out_r); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_append_close_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_close_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_close"); - private static void append_close(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_append_close was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).CloseAppend(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + r = _out_r; + + } + else + { + efl_gfx_path_bounds_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r); + } } - } - private static efl_gfx_path_append_close_delegate efl_gfx_path_append_close_static_delegate; + private static efl_gfx_path_bounds_get_delegate efl_gfx_path_bounds_get_static_delegate; + + + private delegate void efl_gfx_path_reset_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_path_reset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_reset"); + + private static void reset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_reset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).Reset(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_path_append_circle_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius); - + private static efl_gfx_path_reset_delegate efl_gfx_path_reset_static_delegate; + + + private delegate void efl_gfx_path_append_move_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_path_append_move_to_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_move_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_move_to"); + + private static void append_move_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_move_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).AppendMoveTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_move_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } - public delegate void efl_gfx_path_append_circle_api_delegate(System.IntPtr obj, double x, double y, double radius); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_circle_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_circle"); - private static void append_circle(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius) - { - Eina.Log.Debug("function efl_gfx_path_append_circle was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).AppendCircle( x, y, radius); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_circle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, radius); + private static efl_gfx_path_append_move_to_delegate efl_gfx_path_append_move_to_static_delegate; + + + private delegate void efl_gfx_path_append_line_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_path_append_line_to_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_line_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_line_to"); + + private static void append_line_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_line_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).AppendLineTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_line_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } } - } - private static efl_gfx_path_append_circle_delegate efl_gfx_path_append_circle_static_delegate; + private static efl_gfx_path_append_line_to_delegate efl_gfx_path_append_line_to_static_delegate; + + + private delegate void efl_gfx_path_append_quadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + + + public delegate void efl_gfx_path_append_quadratic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_quadratic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_quadratic_to"); + + private static void append_quadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) + { + Eina.Log.Debug("function efl_gfx_path_append_quadratic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).AppendQuadraticTo(x, y, ctrl_x, ctrl_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_rect_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry); + + } + else + { + efl_gfx_path_append_quadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); + } + } + private static efl_gfx_path_append_quadratic_to_delegate efl_gfx_path_append_quadratic_to_static_delegate; + + + private delegate void efl_gfx_path_append_squadratic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_gfx_path_append_squadratic_to_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_squadratic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_squadratic_to"); + + private static void append_squadratic_to(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_squadratic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).AppendSquadraticTo(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_squadratic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } - public delegate void efl_gfx_path_append_rect_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double rx, double ry); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_rect_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_rect"); - private static void append_rect(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry) - { - Eina.Log.Debug("function efl_gfx_path_append_rect was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).AppendRect( x, y, w, h, rx, ry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_rect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, rx, ry); + private static efl_gfx_path_append_squadratic_to_delegate efl_gfx_path_append_squadratic_to_static_delegate; + + + private delegate void efl_gfx_path_append_cubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); + + + public delegate void efl_gfx_path_append_cubic_to_api_delegate(System.IntPtr obj, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_cubic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_cubic_to"); + + private static void append_cubic_to(System.IntPtr obj, System.IntPtr pd, double ctrl_x0, double ctrl_y0, double ctrl_x1, double ctrl_y1, double x, double y) + { + Eina.Log.Debug("function efl_gfx_path_append_cubic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).AppendCubicTo(ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_cubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ctrl_x0, ctrl_y0, ctrl_x1, ctrl_y1, x, y); + } } - } - private static efl_gfx_path_append_rect_delegate efl_gfx_path_append_rect_static_delegate; + private static efl_gfx_path_append_cubic_to_delegate efl_gfx_path_append_cubic_to_static_delegate; + + + private delegate void efl_gfx_path_append_scubic_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y); + + + public delegate void efl_gfx_path_append_scubic_to_api_delegate(System.IntPtr obj, double x, double y, double ctrl_x, double ctrl_y); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_scubic_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_scubic_to"); + + private static void append_scubic_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double ctrl_x, double ctrl_y) + { + Eina.Log.Debug("function efl_gfx_path_append_scubic_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).AppendScubicTo(x, y, ctrl_x, ctrl_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_append_svg_path_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); + + } + else + { + efl_gfx_path_append_scubic_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, ctrl_x, ctrl_y); + } + } + private static efl_gfx_path_append_scubic_to_delegate efl_gfx_path_append_scubic_to_static_delegate; + + + private delegate void efl_gfx_path_append_arc_to_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); + + + public delegate void efl_gfx_path_append_arc_to_api_delegate(System.IntPtr obj, double x, double y, double rx, double ry, double angle, [MarshalAs(UnmanagedType.U1)] bool large_arc, [MarshalAs(UnmanagedType.U1)] bool sweep); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_arc_to"); + + private static void append_arc_to(System.IntPtr obj, System.IntPtr pd, double x, double y, double rx, double ry, double angle, bool large_arc, bool sweep) + { + Eina.Log.Debug("function efl_gfx_path_append_arc_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).AppendArcTo(x, y, rx, ry, angle, large_arc, sweep); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_path_append_svg_path_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); - public static Efl.Eo.FunctionWrapper efl_gfx_path_append_svg_path_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_append_svg_path"); - private static void append_svg_path(System.IntPtr obj, System.IntPtr pd, System.String svg_path_data) - { - Eina.Log.Debug("function efl_gfx_path_append_svg_path was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).AppendSvgPath( svg_path_data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_append_svg_path_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), svg_path_data); + + } + else + { + efl_gfx_path_append_arc_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, rx, ry, angle, large_arc, sweep); + } } - } - private static efl_gfx_path_append_svg_path_delegate efl_gfx_path_append_svg_path_static_delegate; + private static efl_gfx_path_append_arc_to_delegate efl_gfx_path_append_arc_to_static_delegate; + + + private delegate void efl_gfx_path_append_arc_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length); + + + public delegate void efl_gfx_path_append_arc_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double start_angle, double sweep_length); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_arc_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_arc"); + + private static void append_arc(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double start_angle, double sweep_length) + { + Eina.Log.Debug("function efl_gfx_path_append_arc was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).AppendArc(x, y, w, h, start_angle, sweep_length); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_arc_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, start_angle, sweep_length); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_path_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object to, double pos_map); + private static efl_gfx_path_append_arc_delegate efl_gfx_path_append_arc_static_delegate; + + + private delegate void efl_gfx_path_append_close_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_path_append_close_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_close_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_close"); + + private static void append_close(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_append_close was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).CloseAppend(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_gfx_path_append_close_delegate efl_gfx_path_append_close_static_delegate; + + + private delegate void efl_gfx_path_append_circle_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius); + + + public delegate void efl_gfx_path_append_circle_api_delegate(System.IntPtr obj, double x, double y, double radius); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_circle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_circle"); + + private static void append_circle(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius) + { + Eina.Log.Debug("function efl_gfx_path_append_circle was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).AppendCircle(x, y, radius); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_circle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, radius); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_path_interpolate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object to, double pos_map); - public static Efl.Eo.FunctionWrapper efl_gfx_path_interpolate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_interpolate"); - private static bool interpolate(System.IntPtr obj, System.IntPtr pd, Efl.Object from, Efl.Object to, double pos_map) - { - Eina.Log.Debug("function efl_gfx_path_interpolate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Textpath)wrapper).Interpolate( from, to, pos_map); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_path_append_circle_delegate efl_gfx_path_append_circle_static_delegate; + + + private delegate void efl_gfx_path_append_rect_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry); + + + public delegate void efl_gfx_path_append_rect_api_delegate(System.IntPtr obj, double x, double y, double w, double h, double rx, double ry); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_rect_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_rect"); + + private static void append_rect(System.IntPtr obj, System.IntPtr pd, double x, double y, double w, double h, double rx, double ry) + { + Eina.Log.Debug("function efl_gfx_path_append_rect was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).AppendRect(x, y, w, h, rx, ry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_rect_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h, rx, ry); } - return _ret_var; - } else { - return efl_gfx_path_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to, pos_map); } - } - private static efl_gfx_path_interpolate_delegate efl_gfx_path_interpolate_static_delegate; + private static efl_gfx_path_append_rect_delegate efl_gfx_path_append_rect_static_delegate; + + + private delegate void efl_gfx_path_append_svg_path_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); + + + public delegate void efl_gfx_path_append_svg_path_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svg_path_data); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_append_svg_path_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_append_svg_path"); + + private static void append_svg_path(System.IntPtr obj, System.IntPtr pd, System.String svg_path_data) + { + Eina.Log.Debug("function efl_gfx_path_append_svg_path was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).AppendSvgPath(svg_path_data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_append_svg_path_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), svg_path_data); + } + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_path_equal_commands_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object with); + private static efl_gfx_path_append_svg_path_delegate efl_gfx_path_append_svg_path_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_path_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object to, double pos_map); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_path_interpolate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object from, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object to, double pos_map); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_interpolate"); + + private static bool interpolate(System.IntPtr obj, System.IntPtr pd, Efl.Object from, Efl.Object to, double pos_map) + { + Eina.Log.Debug("function efl_gfx_path_interpolate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Textpath)wrapper).Interpolate(from, to, pos_map); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_path_equal_commands_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Object with); - public static Efl.Eo.FunctionWrapper efl_gfx_path_equal_commands_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_equal_commands"); - private static bool equal_commands(System.IntPtr obj, System.IntPtr pd, Efl.Object with) - { - Eina.Log.Debug("function efl_gfx_path_equal_commands was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Textpath)wrapper).EqualCommands( with); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_path_equal_commands_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), with); + else + { + return efl_gfx_path_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to, pos_map); + } } - } - private static efl_gfx_path_equal_commands_delegate efl_gfx_path_equal_commands_static_delegate; + private static efl_gfx_path_interpolate_delegate efl_gfx_path_interpolate_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_path_equal_commands_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object with); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_path_equal_commands_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object with); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_equal_commands_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_equal_commands"); + + private static bool equal_commands(System.IntPtr obj, System.IntPtr pd, Efl.Object with) + { + Eina.Log.Debug("function efl_gfx_path_equal_commands was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Textpath)wrapper).EqualCommands(with); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_path_reserve_delegate(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count); + return _ret_var; + } + else + { + return efl_gfx_path_equal_commands_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), with); + } + } - public delegate void efl_gfx_path_reserve_api_delegate(System.IntPtr obj, uint cmd_count, uint pts_count); - public static Efl.Eo.FunctionWrapper efl_gfx_path_reserve_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_reserve"); - private static void reserve(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count) - { - Eina.Log.Debug("function efl_gfx_path_reserve was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).Reserve( cmd_count, pts_count); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_reserve_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cmd_count, pts_count); + private static efl_gfx_path_equal_commands_delegate efl_gfx_path_equal_commands_static_delegate; + + + private delegate void efl_gfx_path_reserve_delegate(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count); + + + public delegate void efl_gfx_path_reserve_api_delegate(System.IntPtr obj, uint cmd_count, uint pts_count); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_reserve_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_reserve"); + + private static void reserve(System.IntPtr obj, System.IntPtr pd, uint cmd_count, uint pts_count) + { + Eina.Log.Debug("function efl_gfx_path_reserve was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).Reserve(cmd_count, pts_count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_reserve_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cmd_count, pts_count); + } } - } - private static efl_gfx_path_reserve_delegate efl_gfx_path_reserve_static_delegate; + private static efl_gfx_path_reserve_delegate efl_gfx_path_reserve_static_delegate; + + + private delegate void efl_gfx_path_commit_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_gfx_path_commit_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_path_commit_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_path_commit"); + + private static void commit(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_path_commit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Textpath)wrapper).Commit(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_path_commit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_gfx_path_commit_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_path_commit_delegate efl_gfx_path_commit_static_delegate; + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_gfx_path_commit_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_path_commit_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_path_commit"); - private static void commit(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_path_commit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Textpath)wrapper).Commit(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_path_commit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_path_commit_delegate efl_gfx_path_commit_static_delegate; } -} } -namespace Efl { namespace Ui { +} +} + +} + +namespace Efl { + +namespace Ui { + /// Textpath direction /// @since_tizen 5.5 public enum TextpathDirection @@ -1286,4 +1829,8 @@ Cw = 0, /// Counter-clockwise Ccw = 1, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath_part.eo.cs index fd09832..e2c92f5 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath_part.eo.cs @@ -3,82 +3,115 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI Textpath internal part class -[TextpathPartNativeInherit] +[Efl.Ui.TextpathPart.NativeMethods] public class TextpathPart : Efl.Ui.LayoutPartText, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (TextpathPart)) - return Efl.Ui.TextpathPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(TextpathPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_textpath_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public TextpathPart(Efl.Object parent= null - ) : - base(efl_ui_textpath_part_class_get(), typeof(TextpathPart), parent) + ) : base(efl_ui_textpath_part_class_get(), typeof(TextpathPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected TextpathPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected TextpathPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected TextpathPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.TextpathPart.efl_ui_textpath_part_class_get(); } -} -public class TextpathPartNativeInherit : Efl.Ui.LayoutPartTextNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.TextpathPart.efl_ui_textpath_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutPartText.NativeMethods { - return Efl.Ui.TextpathPart.efl_ui_textpath_part_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.TextpathPart.efl_ui_textpath_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_theme.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_theme.eo.cs index eceb73c..3d27ba3 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_theme.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_theme.eo.cs @@ -3,94 +3,114 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl Ui Theme class -[ThemeNativeInherit] +[Efl.Ui.Theme.NativeMethods] public class Theme : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Theme)) - return Efl.Ui.ThemeNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Theme)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_theme_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public Theme(Efl.Object parent= null - ) : - base(efl_ui_theme_class_get(), typeof(Theme), parent) + ) : base(efl_ui_theme_class_get(), typeof(Theme), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Theme(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Theme(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Theme(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Gets the default theme handle. /// The default theme handle public static Efl.Ui.Theme GetDefault() { - var _ret_var = Efl.Ui.ThemeNativeInherit.efl_ui_theme_default_get_ptr.Value.Delegate(); + var _ret_var = Efl.Ui.Theme.NativeMethods.efl_ui_theme_default_get_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Appends a theme extension to the list of extensions. This is intended when an application needs more styles of widgets or new widget themes that the default does not provide (or may not provide). The application has "extended" usage by coming up with new custom style names for widgets for specific uses, but as these are not "standard", they are not guaranteed to be provided by a default theme. This means the application is required to provide these extra elements itself in specific Edje files. This call adds one of those Edje files to the theme search path to be searched after the default theme. The use of this call is encouraged when default styles do not meet the needs of the application. Use this call instead of for almost all cases. /// The Edje file path to be used - /// - virtual public void AddExtension( System.String item) { - Efl.Ui.ThemeNativeInherit.efl_ui_theme_extension_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), item); + virtual public void AddExtension(System.String item) { + Efl.Ui.Theme.NativeMethods.efl_ui_theme_extension_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),item); Eina.Error.RaiseIfUnhandledException(); } /// Deletes a theme extension from the list of extensions. /// The Edje file path not to be used - /// - virtual public void DelExtension( System.String item) { - Efl.Ui.ThemeNativeInherit.efl_ui_theme_extension_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), item); + virtual public void DelExtension(System.String item) { + Efl.Ui.Theme.NativeMethods.efl_ui_theme_extension_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),item); Eina.Error.RaiseIfUnhandledException(); } /// Prepends a theme overlay to the list of overlays. Use this if your application needs to provide some custom overlay theme (An Edje file that replaces some default styles of widgets) where adding new styles, or changing system theme configuration is not possible. Do NOT use this instead of a proper system theme configuration. Use proper configuration files, profiles, environment variables etc. to set a theme so that the theme can be altered by simple configuration by a user. Using this call to achieve that effect is abusing the API and will create lots of trouble. /// The Edje file path to be used - /// - virtual public void AddOverlay( System.String item) { - Efl.Ui.ThemeNativeInherit.efl_ui_theme_overlay_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), item); + virtual public void AddOverlay(System.String item) { + Efl.Ui.Theme.NativeMethods.efl_ui_theme_overlay_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),item); Eina.Error.RaiseIfUnhandledException(); } /// Delete a theme overlay from the list of overlays. /// The Edje file path not to be used - /// - virtual public void DelOverlay( System.String item) { - Efl.Ui.ThemeNativeInherit.efl_ui_theme_overlay_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), item); + virtual public void DelOverlay(System.String item) { + Efl.Ui.Theme.NativeMethods.efl_ui_theme_overlay_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),item); Eina.Error.RaiseIfUnhandledException(); } /// This is the default theme. @@ -103,159 +123,249 @@ public class Theme : Efl.Object, Efl.Eo.IWrapper { return Efl.Ui.Theme.efl_ui_theme_class_get(); } -} -public class ThemeNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_theme_extension_add_static_delegate == null) - efl_ui_theme_extension_add_static_delegate = new efl_ui_theme_extension_add_delegate(extension_add); - if (methods.FirstOrDefault(m => m.Name == "AddExtension") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_theme_extension_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_extension_add_static_delegate)}); - if (efl_ui_theme_extension_del_static_delegate == null) - efl_ui_theme_extension_del_static_delegate = new efl_ui_theme_extension_del_delegate(extension_del); - if (methods.FirstOrDefault(m => m.Name == "DelExtension") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_theme_extension_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_extension_del_static_delegate)}); - if (efl_ui_theme_overlay_add_static_delegate == null) - efl_ui_theme_overlay_add_static_delegate = new efl_ui_theme_overlay_add_delegate(overlay_add); - if (methods.FirstOrDefault(m => m.Name == "AddOverlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_theme_overlay_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_overlay_add_static_delegate)}); - if (efl_ui_theme_overlay_del_static_delegate == null) - efl_ui_theme_overlay_del_static_delegate = new efl_ui_theme_overlay_del_delegate(overlay_del); - if (methods.FirstOrDefault(m => m.Name == "DelOverlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_theme_overlay_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_overlay_del_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Theme.efl_ui_theme_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Theme.efl_ui_theme_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_theme_extension_add_static_delegate == null) + { + efl_ui_theme_extension_add_static_delegate = new efl_ui_theme_extension_add_delegate(extension_add); + } + if (methods.FirstOrDefault(m => m.Name == "AddExtension") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_theme_extension_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_extension_add_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Theme efl_ui_theme_default_get_delegate(); + if (efl_ui_theme_extension_del_static_delegate == null) + { + efl_ui_theme_extension_del_static_delegate = new efl_ui_theme_extension_del_delegate(extension_del); + } + if (methods.FirstOrDefault(m => m.Name == "DelExtension") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_theme_extension_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_extension_del_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Theme efl_ui_theme_default_get_api_delegate(); - public static Efl.Eo.FunctionWrapper efl_ui_theme_default_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_theme_default_get"); - private static Efl.Ui.Theme default_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_theme_default_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Theme _ret_var = default(Efl.Ui.Theme); - try { - _ret_var = Theme.GetDefault(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_theme_overlay_add_static_delegate == null) + { + efl_ui_theme_overlay_add_static_delegate = new efl_ui_theme_overlay_add_delegate(overlay_add); } + + if (methods.FirstOrDefault(m => m.Name == "AddOverlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_theme_overlay_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_overlay_add_static_delegate) }); + } + + if (efl_ui_theme_overlay_del_static_delegate == null) + { + efl_ui_theme_overlay_del_static_delegate = new efl_ui_theme_overlay_del_delegate(overlay_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelOverlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_theme_overlay_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_theme_overlay_del_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Theme.efl_ui_theme_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Theme efl_ui_theme_default_get_delegate(); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Theme efl_ui_theme_default_get_api_delegate(); + + public static Efl.Eo.FunctionWrapper efl_ui_theme_default_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_theme_default_get"); + + private static Efl.Ui.Theme default_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_theme_default_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Theme _ret_var = default(Efl.Ui.Theme); + try + { + _ret_var = Theme.GetDefault(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_theme_default_get_ptr.Value.Delegate(); + + } + else + { + return efl_ui_theme_default_get_ptr.Value.Delegate(); + } } - } + + private delegate void efl_ui_theme_extension_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); - private delegate void efl_ui_theme_extension_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); + + public delegate void efl_ui_theme_extension_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); + public static Efl.Eo.FunctionWrapper efl_ui_theme_extension_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_theme_extension_add"); - public delegate void efl_ui_theme_extension_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); - public static Efl.Eo.FunctionWrapper efl_ui_theme_extension_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_theme_extension_add"); - private static void extension_add(System.IntPtr obj, System.IntPtr pd, System.String item) - { - Eina.Log.Debug("function efl_ui_theme_extension_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Theme)wrapper).AddExtension( item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void extension_add(System.IntPtr obj, System.IntPtr pd, System.String item) + { + Eina.Log.Debug("function efl_ui_theme_extension_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Theme)wrapper).AddExtension(item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_theme_extension_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item); } - } else { - efl_ui_theme_extension_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item); } - } - private static efl_ui_theme_extension_add_delegate efl_ui_theme_extension_add_static_delegate; + private static efl_ui_theme_extension_add_delegate efl_ui_theme_extension_add_static_delegate; - private delegate void efl_ui_theme_extension_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); + + private delegate void efl_ui_theme_extension_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); + + public delegate void efl_ui_theme_extension_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); - public delegate void efl_ui_theme_extension_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); - public static Efl.Eo.FunctionWrapper efl_ui_theme_extension_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_theme_extension_del"); - private static void extension_del(System.IntPtr obj, System.IntPtr pd, System.String item) - { - Eina.Log.Debug("function efl_ui_theme_extension_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Theme)wrapper).DelExtension( item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_theme_extension_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_theme_extension_del"); + + private static void extension_del(System.IntPtr obj, System.IntPtr pd, System.String item) + { + Eina.Log.Debug("function efl_ui_theme_extension_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Theme)wrapper).DelExtension(item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_theme_extension_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item); } - } else { - efl_ui_theme_extension_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item); } - } - private static efl_ui_theme_extension_del_delegate efl_ui_theme_extension_del_static_delegate; + private static efl_ui_theme_extension_del_delegate efl_ui_theme_extension_del_static_delegate; - private delegate void efl_ui_theme_overlay_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); + + private delegate void efl_ui_theme_overlay_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); + + public delegate void efl_ui_theme_overlay_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); - public delegate void efl_ui_theme_overlay_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); - public static Efl.Eo.FunctionWrapper efl_ui_theme_overlay_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_theme_overlay_add"); - private static void overlay_add(System.IntPtr obj, System.IntPtr pd, System.String item) - { - Eina.Log.Debug("function efl_ui_theme_overlay_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Theme)wrapper).AddOverlay( item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_theme_overlay_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_theme_overlay_add"); + + private static void overlay_add(System.IntPtr obj, System.IntPtr pd, System.String item) + { + Eina.Log.Debug("function efl_ui_theme_overlay_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Theme)wrapper).AddOverlay(item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_theme_overlay_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item); } - } else { - efl_ui_theme_overlay_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item); } - } - private static efl_ui_theme_overlay_add_delegate efl_ui_theme_overlay_add_static_delegate; + private static efl_ui_theme_overlay_add_delegate efl_ui_theme_overlay_add_static_delegate; - private delegate void efl_ui_theme_overlay_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); + + private delegate void efl_ui_theme_overlay_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); + + public delegate void efl_ui_theme_overlay_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); - public delegate void efl_ui_theme_overlay_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String item); - public static Efl.Eo.FunctionWrapper efl_ui_theme_overlay_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_theme_overlay_del"); - private static void overlay_del(System.IntPtr obj, System.IntPtr pd, System.String item) - { - Eina.Log.Debug("function efl_ui_theme_overlay_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Theme)wrapper).DelOverlay( item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_theme_overlay_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_theme_overlay_del"); + + private static void overlay_del(System.IntPtr obj, System.IntPtr pd, System.String item) + { + Eina.Log.Debug("function efl_ui_theme_overlay_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Theme)wrapper).DelOverlay(item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_theme_overlay_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item); } - } else { - efl_ui_theme_overlay_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item); } - } - private static efl_ui_theme_overlay_del_delegate efl_ui_theme_overlay_del_static_delegate; + + private static efl_ui_theme_overlay_del_delegate efl_ui_theme_overlay_del_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_timepicker.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_timepicker.eo.cs index 0c17686..d34feb6 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_timepicker.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_timepicker.eo.cs @@ -3,109 +3,144 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Timepicker widget /// This is a widget which allows the user to pick a time using internal spinner. User can use the internal spinner to select hour, minute, AM/PM or user can input value using internal entry. -[TimepickerNativeInherit] +[Efl.Ui.Timepicker.NativeMethods] public class Timepicker : Efl.Ui.LayoutBase, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Timepicker)) - return Efl.Ui.TimepickerNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Timepicker)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_timepicker_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Timepicker(Efl.Object parent - , System.String style = null) : - base(efl_ui_timepicker_class_get(), typeof(Timepicker), parent) + , System.String style = null) : base(efl_ui_timepicker_class_get(), typeof(Timepicker), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Timepicker(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Timepicker(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Timepicker(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ChangedEvtKey = new object(); + /// Called when date is changed public event EventHandler ChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_TIMEPICKER_EVENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) { - eventHandlers.AddHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_TIMEPICKER_EVENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedEvt. - public void On_ChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedEvt_delegate; - private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_TIMEPICKER_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// The current value of time /// hour: Hour. The hour value is in terms of 24 hour format from 0 to 23. @@ -113,9 +148,8 @@ private static object ChangedEvtKey = new object(); /// min: Minute. The minute range is from 0 to 59. /// The hour value from 0 to 23. /// The minute value from 0 to 59. - /// - virtual public void GetTime( out int hour, out int min) { - Efl.Ui.TimepickerNativeInherit.efl_ui_timepicker_time_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out hour, out min); + virtual public void GetTime(out int hour, out int min) { + Efl.Ui.Timepicker.NativeMethods.efl_ui_timepicker_time_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out hour, out min); Eina.Error.RaiseIfUnhandledException(); } /// The current value of time @@ -124,165 +158,243 @@ private static object ChangedEvtKey = new object(); /// min: Minute. The minute range is from 0 to 59. /// The hour value from 0 to 23. /// The minute value from 0 to 59. - /// - virtual public void SetTime( int hour, int min) { - Efl.Ui.TimepickerNativeInherit.efl_ui_timepicker_time_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hour, min); + virtual public void SetTime(int hour, int min) { + Efl.Ui.Timepicker.NativeMethods.efl_ui_timepicker_time_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hour, min); Eina.Error.RaiseIfUnhandledException(); } /// Control if the Timepicker displays 24 hour time or 12 hour time including AM/PM button. /// true to display the 24 hour time, false to display 12 hour time including AM/PM button. virtual public bool GetAmpm() { - var _ret_var = Efl.Ui.TimepickerNativeInherit.efl_ui_timepicker_ampm_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Timepicker.NativeMethods.efl_ui_timepicker_ampm_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control if the Timepicker displays 24 hour time or 12 hour time including AM/PM button. /// true to display the 24 hour time, false to display 12 hour time including AM/PM button. - /// - virtual public void SetAmpm( bool is_24hour) { - Efl.Ui.TimepickerNativeInherit.efl_ui_timepicker_ampm_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), is_24hour); + virtual public void SetAmpm(bool is_24hour) { + Efl.Ui.Timepicker.NativeMethods.efl_ui_timepicker_ampm_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),is_24hour); Eina.Error.RaiseIfUnhandledException(); } /// Control if the Timepicker displays 24 hour time or 12 hour time including AM/PM button. /// true to display the 24 hour time, false to display 12 hour time including AM/PM button. public bool Ampm { get { return GetAmpm(); } - set { SetAmpm( value); } + set { SetAmpm(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Timepicker.efl_ui_timepicker_class_get(); } -} -public class TimepickerNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_timepicker_time_get_static_delegate == null) - efl_ui_timepicker_time_get_static_delegate = new efl_ui_timepicker_time_get_delegate(time_get); - if (methods.FirstOrDefault(m => m.Name == "GetTime") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_timepicker_time_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_timepicker_time_get_static_delegate)}); - if (efl_ui_timepicker_time_set_static_delegate == null) - efl_ui_timepicker_time_set_static_delegate = new efl_ui_timepicker_time_set_delegate(time_set); - if (methods.FirstOrDefault(m => m.Name == "SetTime") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_timepicker_time_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_timepicker_time_set_static_delegate)}); - if (efl_ui_timepicker_ampm_get_static_delegate == null) - efl_ui_timepicker_ampm_get_static_delegate = new efl_ui_timepicker_ampm_get_delegate(ampm_get); - if (methods.FirstOrDefault(m => m.Name == "GetAmpm") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_timepicker_ampm_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_timepicker_ampm_get_static_delegate)}); - if (efl_ui_timepicker_ampm_set_static_delegate == null) - efl_ui_timepicker_ampm_set_static_delegate = new efl_ui_timepicker_ampm_set_delegate(ampm_set); - if (methods.FirstOrDefault(m => m.Name == "SetAmpm") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_timepicker_ampm_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_timepicker_ampm_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Timepicker.efl_ui_timepicker_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.Timepicker.efl_ui_timepicker_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_timepicker_time_get_static_delegate == null) + { + efl_ui_timepicker_time_get_static_delegate = new efl_ui_timepicker_time_get_delegate(time_get); + } - private delegate void efl_ui_timepicker_time_get_delegate(System.IntPtr obj, System.IntPtr pd, out int hour, out int min); + if (methods.FirstOrDefault(m => m.Name == "GetTime") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_timepicker_time_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_timepicker_time_get_static_delegate) }); + } + if (efl_ui_timepicker_time_set_static_delegate == null) + { + efl_ui_timepicker_time_set_static_delegate = new efl_ui_timepicker_time_set_delegate(time_set); + } - public delegate void efl_ui_timepicker_time_get_api_delegate(System.IntPtr obj, out int hour, out int min); - public static Efl.Eo.FunctionWrapper efl_ui_timepicker_time_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_timepicker_time_get"); - private static void time_get(System.IntPtr obj, System.IntPtr pd, out int hour, out int min) - { - Eina.Log.Debug("function efl_ui_timepicker_time_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - hour = default(int); min = default(int); - try { - ((Timepicker)wrapper).GetTime( out hour, out min); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetTime") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_timepicker_time_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_timepicker_time_set_static_delegate) }); + } + + if (efl_ui_timepicker_ampm_get_static_delegate == null) + { + efl_ui_timepicker_ampm_get_static_delegate = new efl_ui_timepicker_ampm_get_delegate(ampm_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAmpm") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_timepicker_ampm_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_timepicker_ampm_get_static_delegate) }); + } + + if (efl_ui_timepicker_ampm_set_static_delegate == null) + { + efl_ui_timepicker_ampm_set_static_delegate = new efl_ui_timepicker_ampm_set_delegate(ampm_set); } - } else { - efl_ui_timepicker_time_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hour, out min); + + if (methods.FirstOrDefault(m => m.Name == "SetAmpm") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_timepicker_ampm_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_timepicker_ampm_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Timepicker.efl_ui_timepicker_class_get(); } - } - private static efl_ui_timepicker_time_get_delegate efl_ui_timepicker_time_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_timepicker_time_set_delegate(System.IntPtr obj, System.IntPtr pd, int hour, int min); + + private delegate void efl_ui_timepicker_time_get_delegate(System.IntPtr obj, System.IntPtr pd, out int hour, out int min); + + public delegate void efl_ui_timepicker_time_get_api_delegate(System.IntPtr obj, out int hour, out int min); - public delegate void efl_ui_timepicker_time_set_api_delegate(System.IntPtr obj, int hour, int min); - public static Efl.Eo.FunctionWrapper efl_ui_timepicker_time_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_timepicker_time_set"); - private static void time_set(System.IntPtr obj, System.IntPtr pd, int hour, int min) - { - Eina.Log.Debug("function efl_ui_timepicker_time_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Timepicker)wrapper).SetTime( hour, min); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_timepicker_time_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_timepicker_time_get"); + + private static void time_get(System.IntPtr obj, System.IntPtr pd, out int hour, out int min) + { + Eina.Log.Debug("function efl_ui_timepicker_time_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + hour = default(int); min = default(int); + try + { + ((Timepicker)wrapper).GetTime(out hour, out min); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_timepicker_time_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hour, out min); } - } else { - efl_ui_timepicker_time_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hour, min); } - } - private static efl_ui_timepicker_time_set_delegate efl_ui_timepicker_time_set_static_delegate; + private static efl_ui_timepicker_time_get_delegate efl_ui_timepicker_time_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_timepicker_ampm_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_timepicker_time_set_delegate(System.IntPtr obj, System.IntPtr pd, int hour, int min); + + public delegate void efl_ui_timepicker_time_set_api_delegate(System.IntPtr obj, int hour, int min); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_timepicker_ampm_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_timepicker_ampm_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_timepicker_ampm_get"); - private static bool ampm_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_timepicker_ampm_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Timepicker)wrapper).GetAmpm(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_timepicker_time_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_timepicker_time_set"); + + private static void time_set(System.IntPtr obj, System.IntPtr pd, int hour, int min) + { + Eina.Log.Debug("function efl_ui_timepicker_time_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Timepicker)wrapper).SetTime(hour, min); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_timepicker_time_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hour, min); } + } + + private static efl_ui_timepicker_time_set_delegate efl_ui_timepicker_time_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_timepicker_ampm_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_timepicker_ampm_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_timepicker_ampm_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_timepicker_ampm_get"); + + private static bool ampm_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_timepicker_ampm_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Timepicker)wrapper).GetAmpm(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_timepicker_ampm_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_timepicker_ampm_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_timepicker_ampm_get_delegate efl_ui_timepicker_ampm_get_static_delegate; + private static efl_ui_timepicker_ampm_get_delegate efl_ui_timepicker_ampm_get_static_delegate; - private delegate void efl_ui_timepicker_ampm_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_24hour); + + private delegate void efl_ui_timepicker_ampm_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_24hour); + + public delegate void efl_ui_timepicker_ampm_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_24hour); - public delegate void efl_ui_timepicker_ampm_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_24hour); - public static Efl.Eo.FunctionWrapper efl_ui_timepicker_ampm_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_timepicker_ampm_set"); - private static void ampm_set(System.IntPtr obj, System.IntPtr pd, bool is_24hour) - { - Eina.Log.Debug("function efl_ui_timepicker_ampm_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Timepicker)wrapper).SetAmpm( is_24hour); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_timepicker_ampm_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_timepicker_ampm_set"); + + private static void ampm_set(System.IntPtr obj, System.IntPtr pd, bool is_24hour) + { + Eina.Log.Debug("function efl_ui_timepicker_ampm_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Timepicker)wrapper).SetAmpm(is_24hour); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_timepicker_ampm_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_24hour); } - } else { - efl_ui_timepicker_ampm_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_24hour); } - } - private static efl_ui_timepicker_ampm_set_delegate efl_ui_timepicker_ampm_set_static_delegate; + + private static efl_ui_timepicker_ampm_set_delegate efl_ui_timepicker_ampm_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_types.eot.cs index 6434897..8304c54 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_types.eot.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Permitted directions for dragging objects. public enum DragDir { @@ -17,4 +21,8 @@ Y = 2, /// Draggable in both directions. Xy = 3, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_video.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_video.eo.cs index b262c0c..8293a27 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_video.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_video.eo.cs @@ -3,84 +3,110 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI video class -[VideoNativeInherit] +[Efl.Ui.Video.NativeMethods] public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Video)) - return Efl.Ui.VideoNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Video)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_video_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Video(Efl.Object parent - , System.String style = null) : - base(efl_ui_video_class_get(), typeof(Video), parent) + , System.String style = null) : base(efl_ui_video_class_get(), typeof(Video), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Video(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Video(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Video(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Set whether the object can remember the last played position. /// Note: This API only serves as indication. System support is required. /// true when the object can remember the last position, false otherwise virtual public bool GetRememberPosition() { - var _ret_var = Efl.Ui.VideoNativeInherit.efl_ui_video_remember_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Video.NativeMethods.efl_ui_video_remember_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set whether the object can remember the last played position. /// Note: This API only serves as indication. System support is required. /// true when the object can remember the last position, false otherwise - /// - virtual public void SetRememberPosition( bool remember) { - Efl.Ui.VideoNativeInherit.efl_ui_video_remember_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), remember); + virtual public void SetRememberPosition(bool remember) { + Efl.Ui.Video.NativeMethods.efl_ui_video_remember_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),remember); Eina.Error.RaiseIfUnhandledException(); } /// Get the underlying Emotion object. /// The underlying Emotion object. virtual public Efl.Canvas.Object GetEmotion() { - var _ret_var = Efl.Ui.VideoNativeInherit.efl_ui_video_emotion_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Video.NativeMethods.efl_ui_video_emotion_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -90,7 +116,7 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// Note: Don't change or free the string returned by this function. /// A string containing the title. virtual public System.String GetTitle() { - var _ret_var = Efl.Ui.VideoNativeInherit.efl_ui_video_title_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Video.NativeMethods.efl_ui_video_title_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -98,7 +124,7 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// (Since EFL 1.22) /// The handle to the that will be used virtual public Eina.File GetMmap() { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -107,8 +133,8 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise - virtual public Eina.Error SetMmap( Eina.File f) { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public Eina.Error SetMmap(Eina.File f) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -117,7 +143,7 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// (Since EFL 1.22) /// The file path. virtual public System.String GetFile() { - var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -126,8 +152,8 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise - virtual public Eina.Error SetFile( System.String file) { - var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file); + virtual public Eina.Error SetFile(System.String file) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -138,7 +164,7 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. virtual public System.String GetKey() { - var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -146,16 +172,15 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. - /// - virtual public void SetKey( System.String key) { - Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public void SetKey(System.String key) { + Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. virtual public bool GetLoaded() { - var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -166,7 +191,7 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// (Since EFL 1.22) /// 0 on success, error code otherwise virtual public Eina.Error Load() { - var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -175,54 +200,51 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) - /// virtual public void Unload() { - Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Whether or not the playable can be played. /// true if the object have playable data, false otherwise virtual public bool GetPlayable() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get play/pause state of the media file. /// true if playing, false otherwise. virtual public bool GetPlay() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_play_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set play/pause state of the media file. /// This functions sets the currently playing status of the video. Using this function to play or pause the video doesn't alter it's current position. /// true if playing, false otherwise. - /// - virtual public void SetPlay( bool play) { - Efl.IPlayerNativeInherit.efl_player_play_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), play); + virtual public void SetPlay(bool play) { + Efl.IPlayerConcrete.NativeMethods.efl_player_play_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),play); Eina.Error.RaiseIfUnhandledException(); } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). virtual public double GetPos() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the position in the media file. /// This functions sets the current position of the media file to "sec", this only works on seekable streams. Setting the position doesn't change the playing state of the media file. /// The position (in seconds). - /// - virtual public void SetPos( double sec) { - Efl.IPlayerNativeInherit.efl_player_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sec); + virtual public void SetPos(double sec) { + Efl.IPlayerConcrete.NativeMethods.efl_player_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sec); Eina.Error.RaiseIfUnhandledException(); } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. /// The progress within the [0, 1] range. virtual public double GetProgress() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_progress_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_progress_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -230,72 +252,67 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. virtual public double GetPlaySpeed() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_play_speed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the play speed of the media file. /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. - /// - virtual public void SetPlaySpeed( double speed) { - Efl.IPlayerNativeInherit.efl_player_play_speed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), speed); + virtual public void SetPlaySpeed(double speed) { + Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),speed); Eina.Error.RaiseIfUnhandledException(); } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level virtual public double GetVolume() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_volume_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_volume_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level - /// - virtual public void SetVolume( double volume) { - Efl.IPlayerNativeInherit.efl_player_volume_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), volume); + virtual public void SetVolume(double volume) { + Efl.IPlayerConcrete.NativeMethods.efl_player_volume_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),volume); Eina.Error.RaiseIfUnhandledException(); } /// This property controls the audio mute state. /// The mute state. true or false. virtual public bool GetMute() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_mute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_mute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This property controls the audio mute state. /// The mute state. true or false. - /// - virtual public void SetMute( bool mute) { - Efl.IPlayerNativeInherit.efl_player_mute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mute); + virtual public void SetMute(bool mute) { + Efl.IPlayerConcrete.NativeMethods.efl_player_mute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mute); Eina.Error.RaiseIfUnhandledException(); } /// Get the length of play for the media file. /// The length of the stream in seconds. virtual public double GetLength() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get whether the media file is seekable. /// true if seekable. virtual public bool GetSeekable() { - var _ret_var = Efl.IPlayerNativeInherit.efl_player_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Start a playing playable object. - /// virtual public void Start() { - Efl.IPlayerNativeInherit.efl_player_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPlayerConcrete.NativeMethods.efl_player_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Stop playable object. - /// virtual public void Stop() { - Efl.IPlayerNativeInherit.efl_player_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPlayerConcrete.NativeMethods.efl_player_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Set whether the object can remember the last played position. @@ -303,7 +320,7 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// true when the object can remember the last position, false otherwise public bool RememberPosition { get { return GetRememberPosition(); } - set { SetRememberPosition( value); } + set { SetRememberPosition(value); } } /// Get the underlying Emotion object. /// The underlying Emotion object. @@ -323,7 +340,7 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// The handle to the that will be used public Eina.File Mmap { get { return GetMmap(); } - set { SetMmap( value); } + set { SetMmap(value); } } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. @@ -331,7 +348,7 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// The file path. public System.String File { get { return GetFile(); } - set { SetFile( value); } + set { SetFile(value); } } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -341,7 +358,7 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String Key { get { return GetKey(); } - set { SetKey( value); } + set { SetKey(value); } } /// Get the load state of the object. /// (Since EFL 1.22) @@ -358,14 +375,14 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// true if playing, false otherwise. public bool Play { get { return GetPlay(); } - set { SetPlay( value); } + set { SetPlay(value); } } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). public double Pos { get { return GetPos(); } - set { SetPos( value); } + set { SetPos(value); } } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. @@ -378,20 +395,20 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer /// The play speed in the [0, infinity) range. public double PlaySpeed { get { return GetPlaySpeed(); } - set { SetPlaySpeed( value); } + set { SetPlaySpeed(value); } } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level public double Volume { get { return GetVolume(); } - set { SetVolume( value); } + set { SetVolume(value); } } /// This property controls the audio mute state. /// The mute state. true or false. public bool Mute { get { return GetMute(); } - set { SetMute( value); } + set { SetMute(value); } } /// Get the length of play for the media file. /// The length of the stream in seconds. @@ -407,854 +424,1359 @@ public class Video : Efl.Ui.LayoutBase, Efl.Eo.IWrapper,Efl.IFile,Efl.IPlayer { return Efl.Ui.Video.efl_ui_video_class_get(); } -} -public class VideoNativeInherit : Efl.Ui.LayoutBaseNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_video_remember_position_get_static_delegate == null) - efl_ui_video_remember_position_get_static_delegate = new efl_ui_video_remember_position_get_delegate(remember_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetRememberPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_video_remember_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_video_remember_position_get_static_delegate)}); - if (efl_ui_video_remember_position_set_static_delegate == null) - efl_ui_video_remember_position_set_static_delegate = new efl_ui_video_remember_position_set_delegate(remember_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetRememberPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_video_remember_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_video_remember_position_set_static_delegate)}); - if (efl_ui_video_emotion_get_static_delegate == null) - efl_ui_video_emotion_get_static_delegate = new efl_ui_video_emotion_get_delegate(emotion_get); - if (methods.FirstOrDefault(m => m.Name == "GetEmotion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_video_emotion_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_video_emotion_get_static_delegate)}); - if (efl_ui_video_title_get_static_delegate == null) - efl_ui_video_title_get_static_delegate = new efl_ui_video_title_get_delegate(title_get); - if (methods.FirstOrDefault(m => m.Name == "GetTitle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_video_title_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_video_title_get_static_delegate)}); - if (efl_file_mmap_get_static_delegate == null) - efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate)}); - if (efl_file_mmap_set_static_delegate == null) - efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate)}); - if (efl_file_get_static_delegate == null) - efl_file_get_static_delegate = new efl_file_get_delegate(file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate)}); - if (efl_file_set_static_delegate == null) - efl_file_set_static_delegate = new efl_file_set_delegate(file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate)}); - if (efl_file_key_get_static_delegate == null) - efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate)}); - if (efl_file_key_set_static_delegate == null) - efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate)}); - if (efl_file_loaded_get_static_delegate == null) - efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate)}); - if (efl_file_load_static_delegate == null) - efl_file_load_static_delegate = new efl_file_load_delegate(load); - if (methods.FirstOrDefault(m => m.Name == "Load") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate)}); - if (efl_file_unload_static_delegate == null) - efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); - if (methods.FirstOrDefault(m => m.Name == "Unload") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate)}); - if (efl_player_playable_get_static_delegate == null) - efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_playable_get_static_delegate)}); - if (efl_player_play_get_static_delegate == null) - efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_get_static_delegate)}); - if (efl_player_play_set_static_delegate == null) - efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set); - if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_set_static_delegate)}); - if (efl_player_pos_get_static_delegate == null) - efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_get_static_delegate)}); - if (efl_player_pos_set_static_delegate == null) - efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_set_static_delegate)}); - if (efl_player_progress_get_static_delegate == null) - efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get); - if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_progress_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_progress_get_static_delegate)}); - if (efl_player_play_speed_get_static_delegate == null) - efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get); - if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_get_static_delegate)}); - if (efl_player_play_speed_set_static_delegate == null) - efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set); - if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_play_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_set_static_delegate)}); - if (efl_player_volume_get_static_delegate == null) - efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get); - if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_volume_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_get_static_delegate)}); - if (efl_player_volume_set_static_delegate == null) - efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set); - if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_volume_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_set_static_delegate)}); - if (efl_player_mute_get_static_delegate == null) - efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get); - if (methods.FirstOrDefault(m => m.Name == "GetMute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_mute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_get_static_delegate)}); - if (efl_player_mute_set_static_delegate == null) - efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set); - if (methods.FirstOrDefault(m => m.Name == "SetMute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_mute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_set_static_delegate)}); - if (efl_player_length_get_static_delegate == null) - efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get); - if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_length_get_static_delegate)}); - if (efl_player_seekable_get_static_delegate == null) - efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_seekable_get_static_delegate)}); - if (efl_player_start_static_delegate == null) - efl_player_start_static_delegate = new efl_player_start_delegate(start); - if (methods.FirstOrDefault(m => m.Name == "Start") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_start"), func = Marshal.GetFunctionPointerForDelegate(efl_player_start_static_delegate)}); - if (efl_player_stop_static_delegate == null) - efl_player_stop_static_delegate = new efl_player_stop_delegate(stop); - if (methods.FirstOrDefault(m => m.Name == "Stop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Video.efl_ui_video_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods { - return Efl.Ui.Video.efl_ui_video_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_video_remember_position_get_static_delegate == null) + { + efl_ui_video_remember_position_get_static_delegate = new efl_ui_video_remember_position_get_delegate(remember_position_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRememberPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_video_remember_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_video_remember_position_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_video_remember_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_video_remember_position_set_static_delegate == null) + { + efl_ui_video_remember_position_set_static_delegate = new efl_ui_video_remember_position_set_delegate(remember_position_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRememberPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_video_remember_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_video_remember_position_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_video_remember_position_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_video_remember_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_video_remember_position_get"); - private static bool remember_position_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_video_remember_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Video)wrapper).GetRememberPosition(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_video_emotion_get_static_delegate == null) + { + efl_ui_video_emotion_get_static_delegate = new efl_ui_video_emotion_get_delegate(emotion_get); } - return _ret_var; - } else { - return efl_ui_video_remember_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_video_remember_position_get_delegate efl_ui_video_remember_position_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetEmotion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_video_emotion_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_video_emotion_get_static_delegate) }); + } - private delegate void efl_ui_video_remember_position_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool remember); + if (efl_ui_video_title_get_static_delegate == null) + { + efl_ui_video_title_get_static_delegate = new efl_ui_video_title_get_delegate(title_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetTitle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_video_title_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_video_title_get_static_delegate) }); + } - public delegate void efl_ui_video_remember_position_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool remember); - public static Efl.Eo.FunctionWrapper efl_ui_video_remember_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_video_remember_position_set"); - private static void remember_position_set(System.IntPtr obj, System.IntPtr pd, bool remember) - { - Eina.Log.Debug("function efl_ui_video_remember_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Video)wrapper).SetRememberPosition( remember); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_video_remember_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), remember); - } - } - private static efl_ui_video_remember_position_set_delegate efl_ui_video_remember_position_set_static_delegate; + if (efl_file_mmap_get_static_delegate == null) + { + efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_video_emotion_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_mmap_set_static_delegate == null) + { + efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_video_emotion_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_video_emotion_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_video_emotion_get"); - private static Efl.Canvas.Object emotion_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_video_emotion_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Video)wrapper).GetEmotion(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_get_static_delegate == null) + { + efl_file_get_static_delegate = new efl_file_get_delegate(file_get); } - return _ret_var; - } else { - return efl_ui_video_emotion_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_video_emotion_get_delegate efl_ui_video_emotion_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_video_title_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_set_static_delegate == null) + { + efl_file_set_static_delegate = new efl_file_set_delegate(file_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_video_title_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_video_title_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_video_title_get"); - private static System.String title_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_video_title_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Video)wrapper).GetTitle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_key_get_static_delegate == null) + { + efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); } - return _ret_var; - } else { - return efl_ui_video_title_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_video_title_get_delegate efl_ui_video_title_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) }); + } - private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_key_set_static_delegate == null) + { + efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) }); + } - public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_get"); - private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_mmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.File _ret_var = default(Eina.File); - try { - _ret_var = ((Video)wrapper).GetMmap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_loaded_get_static_delegate == null) + { + efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); } - return _ret_var; - } else { - return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) }); + } - private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + if (efl_file_load_static_delegate == null) + { + efl_file_load_static_delegate = new efl_file_load_delegate(load); + } + if (methods.FirstOrDefault(m => m.Name == "Load") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) }); + } - public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); - public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_set"); - private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) - { - Eina.Log.Debug("function efl_file_mmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Video)wrapper).SetMmap( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_unload_static_delegate == null) + { + efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); } - return _ret_var; - } else { - return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Unload") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_playable_get_static_delegate == null) + { + efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_playable_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_get"); - private static System.String file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Video)wrapper).GetFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_play_get_static_delegate == null) + { + efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get); } - return _ret_var; - } else { - return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_get_delegate efl_file_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_get_static_delegate) }); + } - private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + if (efl_player_play_set_static_delegate == null) + { + efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_set_static_delegate) }); + } - public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_set"); - private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) - { - Eina.Log.Debug("function efl_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Video)wrapper).SetFile( file); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_pos_get_static_delegate == null) + { + efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get); } - return _ret_var; - } else { - return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); - } - } - private static efl_file_set_delegate efl_file_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_pos_set_static_delegate == null) + { + efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Video)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_progress_get_static_delegate == null) + { + efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get); } - return _ret_var; - } else { - return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_progress_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_progress_get_static_delegate) }); + } - private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + if (efl_player_play_speed_get_static_delegate == null) + { + efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_get_static_delegate) }); + } - public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_file_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Video)wrapper).SetKey( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); - } - } - private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + if (efl_player_play_speed_set_static_delegate == null) + { + efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_volume_get_static_delegate == null) + { + efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_loaded_get"); - private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_loaded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Video)wrapper).GetLoaded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_volume_set_static_delegate == null) + { + efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set); } - return _ret_var; - } else { - return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_set_static_delegate) }); + } - private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_mute_get_static_delegate == null) + { + efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_get_static_delegate) }); + } - public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_load"); - private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_load was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Video)wrapper).Load(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_mute_set_static_delegate == null) + { + efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set); } - return _ret_var; - } else { - return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_load_delegate efl_file_load_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetMute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_set_static_delegate) }); + } - private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_length_get_static_delegate == null) + { + efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetLength") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_length_get_static_delegate) }); + } - public delegate void efl_file_unload_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_unload"); - private static void unload(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_unload was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Video)wrapper).Unload(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_unload_delegate efl_file_unload_static_delegate; + if (efl_player_seekable_get_static_delegate == null) + { + efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_seekable_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_player_start_static_delegate == null) + { + efl_player_start_static_delegate = new efl_player_start_delegate(start); + } + if (methods.FirstOrDefault(m => m.Name == "Start") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_start"), func = Marshal.GetFunctionPointerForDelegate(efl_player_start_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_playable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_playable_get"); - private static bool playable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_playable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Video)wrapper).GetPlayable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_player_stop_static_delegate == null) + { + efl_player_stop_static_delegate = new efl_player_stop_delegate(stop); + } + + if (methods.FirstOrDefault(m => m.Name == "Stop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate) }); } - return _ret_var; - } else { - return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate; + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Video.efl_ui_video_class_get(); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_video_remember_position_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_video_remember_position_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_video_remember_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_video_remember_position_get"); + + private static bool remember_position_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_video_remember_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Video)wrapper).GetRememberPosition(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_play_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_get"); - private static bool play_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_play_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Video)wrapper).GetPlay(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_video_remember_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_play_get_delegate efl_player_play_get_static_delegate; + private static efl_ui_video_remember_position_get_delegate efl_ui_video_remember_position_get_static_delegate; + + + private delegate void efl_ui_video_remember_position_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool remember); + + + public delegate void efl_ui_video_remember_position_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool remember); + + public static Efl.Eo.FunctionWrapper efl_ui_video_remember_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_video_remember_position_set"); + + private static void remember_position_set(System.IntPtr obj, System.IntPtr pd, bool remember) + { + Eina.Log.Debug("function efl_ui_video_remember_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Video)wrapper).SetRememberPosition(remember); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play); + + } + else + { + efl_ui_video_remember_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), remember); + } + } + private static efl_ui_video_remember_position_set_delegate efl_ui_video_remember_position_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_video_emotion_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_video_emotion_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_video_emotion_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_video_emotion_get"); + + private static Efl.Canvas.Object emotion_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_video_emotion_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Video)wrapper).GetEmotion(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play); - public static Efl.Eo.FunctionWrapper efl_player_play_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_set"); - private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play) - { - Eina.Log.Debug("function efl_player_play_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Video)wrapper).SetPlay( play); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play); - } - } - private static efl_player_play_set_delegate efl_player_play_set_static_delegate; + return _ret_var; + } + else + { + return efl_ui_video_emotion_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_video_emotion_get_delegate efl_ui_video_emotion_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_video_title_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_video_title_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_video_title_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_video_title_get"); + + private static System.String title_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_video_title_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Video)wrapper).GetTitle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_pos_get"); - private static double pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Video)wrapper).GetPos(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_video_title_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate; - - private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + private static efl_ui_video_title_get_delegate efl_ui_video_title_get_static_delegate; + + + private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_get"); + + private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_mmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.File _ret_var = default(Eina.File); + try + { + _ret_var = ((Video)wrapper).GetMmap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec); - public static Efl.Eo.FunctionWrapper efl_player_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_pos_set"); - private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec) - { - Eina.Log.Debug("function efl_player_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Video)wrapper).SetPos( sec); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); + } + else + { + return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate; - - private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + + + private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + + + public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_set"); + + private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) + { + Eina.Log.Debug("function efl_file_mmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Video)wrapper).SetMmap(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_progress_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_progress_get"); - private static double progress_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_progress_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Video)wrapper).GetProgress(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } } - } - private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate; + private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_get"); + + private static System.String file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Video)wrapper).GetFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_file_get_delegate efl_file_get_static_delegate; + + + private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + + public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_set"); + + private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) + { + Eina.Log.Debug("function efl_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Video)wrapper).SetFile(file); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_play_speed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_speed_get"); - private static double play_speed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_play_speed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Video)wrapper).GetPlaySpeed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); + } + } + + private static efl_file_set_delegate efl_file_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_get"); + + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Video)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate; + private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + + + private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_file_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Video)wrapper).SetKey(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed); + + } + else + { + efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } + } + private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_loaded_get"); + + private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_loaded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Video)wrapper).GetLoaded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed); - public static Efl.Eo.FunctionWrapper efl_player_play_speed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_play_speed_set"); - private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed) - { - Eina.Log.Debug("function efl_player_play_speed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Video)wrapper).SetPlaySpeed( speed); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed); + return _ret_var; + + } + else + { + return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate; + private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + + + private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_load"); + + private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_load was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Video)wrapper).Load(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_volume_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_volume_get"); - private static double volume_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_volume_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Video)wrapper).GetVolume(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_file_load_delegate efl_file_load_static_delegate; + + + private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_file_unload_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_unload"); + + private static void unload(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_unload was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Video)wrapper).Unload(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } + + private static efl_file_unload_delegate efl_file_unload_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_playable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_playable_get"); + + private static bool playable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_playable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Video)wrapper).GetPlayable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate; + private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_play_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_get"); + + private static bool play_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_play_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Video)wrapper).GetPlay(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume); + } + else + { + return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_player_play_get_delegate efl_player_play_get_static_delegate; + + + private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play); + + + public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play); + + public static Efl.Eo.FunctionWrapper efl_player_play_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_set"); + + private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play) + { + Eina.Log.Debug("function efl_player_play_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Video)wrapper).SetPlay(play); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume); - public static Efl.Eo.FunctionWrapper efl_player_volume_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_volume_set"); - private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume) - { - Eina.Log.Debug("function efl_player_volume_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Video)wrapper).SetVolume( volume); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume); + + } + else + { + efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play); + } } - } - private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate; + private static efl_player_play_set_delegate efl_player_play_set_static_delegate; + + + private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_pos_get"); + + private static double pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Video)wrapper).GetPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_mute_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_mute_get"); - private static bool mute_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_mute_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Video)wrapper).GetMute(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate; + + + private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec); + + + public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec); + + public static Efl.Eo.FunctionWrapper efl_player_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_pos_set"); + + private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec) + { + Eina.Log.Debug("function efl_player_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Video)wrapper).SetPos(sec); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec); + } + } + + private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate; + + + private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_progress_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_progress_get"); + + private static double progress_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_progress_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Video)wrapper).GetProgress(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate; + private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate; + + + private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_play_speed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_speed_get"); + + private static double play_speed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_play_speed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Video)wrapper).GetPlaySpeed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute); + return _ret_var; + + } + else + { + return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate; + + + private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed); + + + public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed); + + public static Efl.Eo.FunctionWrapper efl_player_play_speed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_play_speed_set"); + + private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed) + { + Eina.Log.Debug("function efl_player_play_speed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Video)wrapper).SetPlaySpeed(speed); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute); - public static Efl.Eo.FunctionWrapper efl_player_mute_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_mute_set"); - private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute) - { - Eina.Log.Debug("function efl_player_mute_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Video)wrapper).SetMute( mute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute); + + } + else + { + efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed); + } } - } - private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate; + private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate; + + + private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_volume_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_volume_get"); + + private static double volume_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_volume_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Video)wrapper).GetVolume(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate double efl_player_length_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_length_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_length_get"); - private static double length_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_length_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((Video)wrapper).GetLength(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate; + + + private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume); + + + public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume); + + public static Efl.Eo.FunctionWrapper efl_player_volume_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_volume_set"); + + private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume) + { + Eina.Log.Debug("function efl_player_volume_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Video)wrapper).SetVolume(volume); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume); } - return _ret_var; - } else { - return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_player_length_get_delegate efl_player_length_get_static_delegate; + private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_mute_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_mute_get"); + + private static bool mute_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_mute_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Video)wrapper).GetMute(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate; + + + private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute); + + + public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute); + + public static Efl.Eo.FunctionWrapper efl_player_mute_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_mute_set"); + + private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute) + { + Eina.Log.Debug("function efl_player_mute_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Video)wrapper).SetMute(mute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_seekable_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_seekable_get"); - private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_seekable_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Video)wrapper).GetSeekable(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + else + { + efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute); + } + } + + private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate; + + + private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_player_length_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_length_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_length_get"); + + private static double length_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_length_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Video)wrapper).GetLength(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate; + private static efl_player_length_get_delegate efl_player_length_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_seekable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_seekable_get"); + + private static bool seekable_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_seekable_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Video)wrapper).GetSeekable(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_player_start_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_start"); - private static void start(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Video)wrapper).Start(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate; + + + private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_player_start_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_start"); + + private static void start(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Video)wrapper).Start(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_player_start_delegate efl_player_start_static_delegate; + private static efl_player_start_delegate efl_player_start_static_delegate; + + + private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_player_stop_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_player_stop_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_player_stop"); + + private static void stop(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_player_stop was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Video)wrapper).Stop(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_player_stop_delegate efl_player_stop_static_delegate; + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_player_stop_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_player_stop_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_player_stop"); - private static void stop(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_player_stop was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Video)wrapper).Stop(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_player_stop_delegate efl_player_stop_static_delegate; } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_view.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_view.eo.cs index d9b3ca5..1d0e9f2 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_view.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_view.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI view interface -[IViewNativeInherit] +[Efl.Ui.IViewConcrete.NativeMethods] public interface IView : Efl.Eo.IWrapper, IDisposable { @@ -15,8 +19,7 @@ public interface IView : Efl.IModel GetModel(); /// Model that is/will be /// Efl model -/// -void SetModel( Efl.IModel model); +void SetModel(Efl.IModel model); /// Model that is/will be /// Efl model Efl.IModel Model { @@ -31,165 +34,245 @@ IView { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IViewConcrete)) - return Efl.Ui.IViewNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IViewConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_view_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IViewConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IViewConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - } + /// Model that is/will be /// Efl model public Efl.IModel GetModel() { - var _ret_var = Efl.Ui.IViewNativeInherit.efl_ui_view_model_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IViewConcrete.NativeMethods.efl_ui_view_model_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Model that is/will be /// Efl model - /// - public void SetModel( Efl.IModel model) { - Efl.Ui.IViewNativeInherit.efl_ui_view_model_set_ptr.Value.Delegate(this.NativeHandle, model); + public void SetModel(Efl.IModel model) { + Efl.Ui.IViewConcrete.NativeMethods.efl_ui_view_model_set_ptr.Value.Delegate(this.NativeHandle,model); Eina.Error.RaiseIfUnhandledException(); } /// Model that is/will be /// Efl model public Efl.IModel Model { get { return GetModel(); } - set { SetModel( value); } + set { SetModel(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IViewConcrete.efl_ui_view_interface_get(); } -} -public class IViewNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_view_model_get_static_delegate == null) - efl_ui_view_model_get_static_delegate = new efl_ui_view_model_get_delegate(model_get); - if (methods.FirstOrDefault(m => m.Name == "GetModel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_view_model_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_get_static_delegate)}); - if (efl_ui_view_model_set_static_delegate == null) - efl_ui_view_model_set_static_delegate = new efl_ui_view_model_set_delegate(model_set); - if (methods.FirstOrDefault(m => m.Name == "SetModel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_view_model_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IViewConcrete.efl_ui_view_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IViewConcrete.efl_ui_view_interface_get(); - } + 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_view_model_get_static_delegate == null) + { + efl_ui_view_model_get_static_delegate = new efl_ui_view_model_get_delegate(model_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IModel efl_ui_view_model_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetModel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_view_model_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_get_static_delegate) }); + } + if (efl_ui_view_model_set_static_delegate == null) + { + efl_ui_view_model_set_static_delegate = new efl_ui_view_model_set_delegate(model_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IModel efl_ui_view_model_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_view_model_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_view_model_get"); - private static Efl.IModel model_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_view_model_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IModel _ret_var = default(Efl.IModel); - try { - _ret_var = ((IView)wrapper).GetModel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetModel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_view_model_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_set_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.IViewConcrete.efl_ui_view_interface_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IModel efl_ui_view_model_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IModel efl_ui_view_model_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_view_model_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_view_model_get"); + + private static Efl.IModel model_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_view_model_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IModel _ret_var = default(Efl.IModel); + try + { + _ret_var = ((IView)wrapper).GetModel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_view_model_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_view_model_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_view_model_get_delegate efl_ui_view_model_get_static_delegate; + private static efl_ui_view_model_get_delegate efl_ui_view_model_get_static_delegate; - private delegate void efl_ui_view_model_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model); + + private delegate void efl_ui_view_model_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model); + + public delegate void efl_ui_view_model_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model); - public delegate void efl_ui_view_model_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model); - public static Efl.Eo.FunctionWrapper efl_ui_view_model_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_view_model_set"); - private static void model_set(System.IntPtr obj, System.IntPtr pd, Efl.IModel model) - { - Eina.Log.Debug("function efl_ui_view_model_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IView)wrapper).SetModel( model); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_view_model_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_view_model_set"); + + private static void model_set(System.IntPtr obj, System.IntPtr pd, Efl.IModel model) + { + Eina.Log.Debug("function efl_ui_view_model_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IView)wrapper).SetModel(model); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_view_model_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model); } - } else { - efl_ui_view_model_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model); } - } - private static efl_ui_view_model_set_delegate efl_ui_view_model_set_static_delegate; + + private static efl_ui_view_model_set_delegate efl_ui_view_model_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget.eo.cs index 0f4e924..c40a898 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget.eo.cs @@ -3,15 +3,17 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// +namespace Efl { + +namespace Ui { + /// Canvas object /// Showed region -/// -public delegate void ScrollableOnShowRegion( Efl.Canvas.Object obj, Eina.Rect region); -public delegate void ScrollableOnShowRegionInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object obj, Eina.Rect.NativeStruct region); -internal class ScrollableOnShowRegionWrapper +public delegate void ScrollableOnShowRegion(Efl.Canvas.Object obj, Eina.Rect region); +public delegate void ScrollableOnShowRegionInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object obj, Eina.Rect.NativeStruct region); +internal class ScrollableOnShowRegionWrapper : IDisposable { private ScrollableOnShowRegionInternal _cb; @@ -27,65 +29,106 @@ internal class ScrollableOnShowRegionWrapper ~ScrollableOnShowRegionWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); } - internal void ManagedCb( Efl.Canvas.Object obj, Eina.Rect region) + internal void ManagedCb(Efl.Canvas.Object obj,Eina.Rect region) { Eina.Rect.NativeStruct _in_region = region; - _cb(_cb_data, obj, _in_region); + _cb(_cb_data, obj, _in_region); Eina.Error.RaiseIfUnhandledException(); } - internal static void Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object obj, Eina.Rect.NativeStruct region) + internal static void Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object obj, Eina.Rect.NativeStruct region) { GCHandle handle = GCHandle.FromIntPtr(cb_data); ScrollableOnShowRegion cb = (ScrollableOnShowRegion)handle.Target; Eina.Rect _in_region = region; try { - cb( obj, _in_region); + cb(obj, _in_region); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } } -} } -namespace Efl { namespace Ui { +} + +} + +namespace Efl { + +namespace Ui { + /// Efl UI widget abstract class /// (Since EFL 1.22) -[WidgetNativeInherit] +[Efl.Ui.Widget.NativeMethods] public abstract class Widget : Efl.Canvas.Group, Efl.Eo.IWrapper,Efl.IPart,Efl.Access.IAction,Efl.Access.IComponent,Efl.Access.IObject,Efl.Access.Widget.IAction,Efl.Ui.IDnd,Efl.Ui.IL10n,Efl.Ui.IPropertyBind,Efl.Ui.ISelection,Efl.Ui.IView,Efl.Ui.Focus.IObject { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Widget)) - return Efl.Ui.WidgetNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Widget)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_widget_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public Widget(Efl.Object parent - , System.String style = null) : - base(efl_ui_widget_class_get(), typeof(Widget), parent) + , System.String style = null) : base(efl_ui_widget_class_get(), typeof(Widget), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Widget(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class WidgetRealized : Widget { @@ -93,1319 +136,1665 @@ public abstract class Widget : Efl.Canvas.Group, Efl.Eo.IWrapper,Efl.IPart,Efl.A { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Widget(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Widget(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object AtspiHighlightedEvtKey = new object(); - /// + public event EventHandler AtspiHighlightedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIDGET_EVENT_ATSPI_HIGHLIGHTED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AtspiHighlightedEvt_delegate)) { - eventHandlers.AddHandler(AtspiHighlightedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIDGET_EVENT_ATSPI_HIGHLIGHTED"; - if (RemoveNativeEventHandler(key, this.evt_AtspiHighlightedEvt_delegate)) { - eventHandlers.RemoveHandler(AtspiHighlightedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AtspiHighlightedEvt. - public void On_AtspiHighlightedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AtspiHighlightedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AtspiHighlightedEvt_delegate; - private void on_AtspiHighlightedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnAtspiHighlightedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_AtspiHighlightedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIDGET_EVENT_ATSPI_HIGHLIGHTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object AtspiUnhighlightedEvtKey = new object(); - /// + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } public event EventHandler AtspiUnhighlightedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIDGET_EVENT_ATSPI_UNHIGHLIGHTED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AtspiUnhighlightedEvt_delegate)) { - eventHandlers.AddHandler(AtspiUnhighlightedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIDGET_EVENT_ATSPI_UNHIGHLIGHTED"; - if (RemoveNativeEventHandler(key, this.evt_AtspiUnhighlightedEvt_delegate)) { - eventHandlers.RemoveHandler(AtspiUnhighlightedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AtspiUnhighlightedEvt. - public void On_AtspiUnhighlightedEvt(EventArgs e) + public void OnAtspiUnhighlightedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AtspiUnhighlightedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AtspiUnhighlightedEvt_delegate; - private void on_AtspiUnhighlightedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_AtspiUnhighlightedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIDGET_EVENT_ATSPI_UNHIGHLIGHTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object LanguageChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when widget language changed /// (Since EFL 1.22) public event EventHandler LanguageChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIDGET_EVENT_LANGUAGE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_LanguageChangedEvt_delegate)) { - eventHandlers.AddHandler(LanguageChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIDGET_EVENT_LANGUAGE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_LanguageChangedEvt_delegate)) { - eventHandlers.RemoveHandler(LanguageChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event LanguageChangedEvt. - public void On_LanguageChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[LanguageChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_LanguageChangedEvt_delegate; - private void on_LanguageChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnLanguageChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_LanguageChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIDGET_EVENT_LANGUAGE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object AccessChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when accessibility changed /// (Since EFL 1.22) public event EventHandler AccessChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIDGET_EVENT_ACCESS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AccessChangedEvt_delegate)) { - eventHandlers.AddHandler(AccessChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIDGET_EVENT_ACCESS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_AccessChangedEvt_delegate)) { - eventHandlers.RemoveHandler(AccessChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AccessChangedEvt. - public void On_AccessChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AccessChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AccessChangedEvt_delegate; - private void on_AccessChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnAccessChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_AccessChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIDGET_EVENT_ACCESS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object PropertyChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when property has changed public event EventHandler PropertyChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.IObjectPropertyChangedEvt_Args args = new Efl.Access.IObjectPropertyChangedEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PropertyChangedEvt_delegate)) { - eventHandlers.AddHandler(PropertyChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PropertyChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PropertyChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event PropertyChangedEvt. - public void On_PropertyChangedEvt(Efl.Access.IObjectPropertyChangedEvt_Args e) + public void OnPropertyChangedEvt(Efl.Access.IObjectPropertyChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertyChangedEvtKey]; + var key = "_EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertyChangedEvt_delegate; - private void on_PropertyChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.IObjectPropertyChangedEvt_Args args = new Efl.Access.IObjectPropertyChangedEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_PropertyChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); } } - -private static object ChildrenChangedEvtKey = new object(); /// Called when children have changed public event EventHandler ChildrenChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.IObjectChildrenChangedEvt_Args args = new Efl.Access.IObjectChildrenChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChildrenChangedEvt_delegate)) { - eventHandlers.AddHandler(ChildrenChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChildrenChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildrenChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChildrenChangedEvt. - public void On_ChildrenChangedEvt(Efl.Access.IObjectChildrenChangedEvt_Args e) + public void OnChildrenChangedEvt(Efl.Access.IObjectChildrenChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildrenChangedEvtKey]; + var key = "_EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildrenChangedEvt_delegate; - private void on_ChildrenChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.IObjectChildrenChangedEvt_Args args = new Efl.Access.IObjectChildrenChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_ChildrenChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object StateChangedEvtKey = new object(); /// Called when state has changed public event EventHandler StateChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.IObjectStateChangedEvt_Args args = new Efl.Access.IObjectStateChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_STATE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_StateChangedEvt_delegate)) { - eventHandlers.AddHandler(StateChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_STATE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_StateChangedEvt_delegate)) { - eventHandlers.RemoveHandler(StateChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event StateChangedEvt. - public void On_StateChangedEvt(Efl.Access.IObjectStateChangedEvt_Args e) + public void OnStateChangedEvt(Efl.Access.IObjectStateChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[StateChangedEvtKey]; + var key = "_EFL_ACCESS_OBJECT_EVENT_STATE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_StateChangedEvt_delegate; - private void on_StateChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.IObjectStateChangedEvt_Args args = new Efl.Access.IObjectStateChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_StateChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object BoundsChangedEvtKey = new object(); /// Called when boundaries have changed public event EventHandler BoundsChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.IObjectBoundsChangedEvt_Args args = new Efl.Access.IObjectBoundsChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_BOUNDS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_BoundsChangedEvt_delegate)) { - eventHandlers.AddHandler(BoundsChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_BOUNDS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_BoundsChangedEvt_delegate)) { - eventHandlers.RemoveHandler(BoundsChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event BoundsChangedEvt. - public void On_BoundsChangedEvt(Efl.Access.IObjectBoundsChangedEvt_Args e) + public void OnBoundsChangedEvt(Efl.Access.IObjectBoundsChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[BoundsChangedEvtKey]; + var key = "_EFL_ACCESS_OBJECT_EVENT_BOUNDS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_BoundsChangedEvt_delegate; - private void on_BoundsChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.IObjectBoundsChangedEvt_Args args = new Efl.Access.IObjectBoundsChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_BoundsChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object VisibleDataChangedEvtKey = new object(); /// Called when visibility has changed public event EventHandler VisibleDataChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_VISIBLE_DATA_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_VisibleDataChangedEvt_delegate)) { - eventHandlers.AddHandler(VisibleDataChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_VISIBLE_DATA_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_VisibleDataChangedEvt_delegate)) { - eventHandlers.RemoveHandler(VisibleDataChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event VisibleDataChangedEvt. - public void On_VisibleDataChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[VisibleDataChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_VisibleDataChangedEvt_delegate; - private void on_VisibleDataChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnVisibleDataChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_VisibleDataChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_OBJECT_EVENT_VISIBLE_DATA_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ActiveDescendantChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when active state of descendant has changed public event EventHandler ActiveDescendantChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Access.IObjectActiveDescendantChangedEvt_Args args = new Efl.Access.IObjectActiveDescendantChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_ACTIVE_DESCENDANT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ActiveDescendantChangedEvt_delegate)) { - eventHandlers.AddHandler(ActiveDescendantChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_ACTIVE_DESCENDANT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ActiveDescendantChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ActiveDescendantChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ActiveDescendantChangedEvt. - public void On_ActiveDescendantChangedEvt(Efl.Access.IObjectActiveDescendantChangedEvt_Args e) + public void OnActiveDescendantChangedEvt(Efl.Access.IObjectActiveDescendantChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ActiveDescendantChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ActiveDescendantChangedEvt_delegate; - private void on_ActiveDescendantChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Access.IObjectActiveDescendantChangedEvt_Args args = new Efl.Access.IObjectActiveDescendantChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try { - On_ActiveDescendantChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_OBJECT_EVENT_ACTIVE_DESCENDANT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object AddedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when item is added public event EventHandler AddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_ADDED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_AddedEvt_delegate)) { - eventHandlers.AddHandler(AddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_AddedEvt_delegate)) { - eventHandlers.RemoveHandler(AddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event AddedEvt. - public void On_AddedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[AddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_AddedEvt_delegate; - private void on_AddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnAddedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_AddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_OBJECT_EVENT_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RemovedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when item is removed public event EventHandler RemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RemovedEvt_delegate)) { - eventHandlers.AddHandler(RemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_RemovedEvt_delegate)) { - eventHandlers.RemoveHandler(RemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RemovedEvt. - public void On_RemovedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RemovedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RemovedEvt_delegate; - private void on_RemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRemovedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_RemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_OBJECT_EVENT_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object MoveOutedEvtKey = new object(); - /// + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } public event EventHandler MoveOutedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_OBJECT_EVENT_MOVE_OUTED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_MoveOutedEvt_delegate)) { - eventHandlers.AddHandler(MoveOutedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_OBJECT_EVENT_MOVE_OUTED"; - if (RemoveNativeEventHandler(key, this.evt_MoveOutedEvt_delegate)) { - eventHandlers.RemoveHandler(MoveOutedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event MoveOutedEvt. - public void On_MoveOutedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[MoveOutedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_MoveOutedEvt_delegate; - private void on_MoveOutedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnMoveOutedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_MoveOutedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_OBJECT_EVENT_MOVE_OUTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ReadingStateChangedEvtKey = new object(); - /// + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } public event EventHandler ReadingStateChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WIDGET_ACTION_EVENT_READING_STATE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ReadingStateChangedEvt_delegate)) { - eventHandlers.AddHandler(ReadingStateChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WIDGET_ACTION_EVENT_READING_STATE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ReadingStateChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ReadingStateChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ReadingStateChangedEvt. - public void On_ReadingStateChangedEvt(EventArgs e) + public void OnReadingStateChangedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ReadingStateChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ReadingStateChangedEvt_delegate; - private void on_ReadingStateChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ReadingStateChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_WIDGET_ACTION_EVENT_READING_STATE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragAcceptEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// accept drag data public event EventHandler DragAcceptEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDndDragAcceptEvt_Args args = new Efl.Ui.IDndDragAcceptEvt_Args(); + args.arg = (bool)Marshal.PtrToStructure(evt.Info, typeof(bool)); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DND_EVENT_DRAG_ACCEPT"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragAcceptEvt_delegate)) { - eventHandlers.AddHandler(DragAcceptEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_ACCEPT"; - if (RemoveNativeEventHandler(key, this.evt_DragAcceptEvt_delegate)) { - eventHandlers.RemoveHandler(DragAcceptEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragAcceptEvt. - public void On_DragAcceptEvt(Efl.Ui.IDndDragAcceptEvt_Args e) + public void OnDragAcceptEvt(Efl.Ui.IDndDragAcceptEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragAcceptEvtKey]; + var key = "_EFL_UI_DND_EVENT_DRAG_ACCEPT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragAcceptEvt_delegate; - private void on_DragAcceptEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDndDragAcceptEvt_Args args = new Efl.Ui.IDndDragAcceptEvt_Args(); - args.arg = (bool)Marshal.PtrToStructure(evt.Info, typeof(bool)); - try { - On_DragAcceptEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object DragDoneEvtKey = new object(); /// drag is done (mouse up) public event EventHandler DragDoneEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DND_EVENT_DRAG_DONE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragDoneEvt_delegate)) { - eventHandlers.AddHandler(DragDoneEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_DONE"; - if (RemoveNativeEventHandler(key, this.evt_DragDoneEvt_delegate)) { - eventHandlers.RemoveHandler(DragDoneEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragDoneEvt. - public void On_DragDoneEvt(EventArgs e) + public void OnDragDoneEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragDoneEvtKey]; + var key = "_EFL_UI_DND_EVENT_DRAG_DONE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - Efl.EventCb evt_DragDoneEvt_delegate; - private void on_DragDoneEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + /// called when the drag object enters this object + public event EventHandler DragEnterEvt { - EventArgs args = EventArgs.Empty; - try { - On_DragDoneEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; -private static object DragEnterEvtKey = new object(); - /// called when the drag object enters this object - public event EventHandler DragEnterEvt - { - add { - lock (eventLock) { string key = "_EFL_UI_DND_EVENT_DRAG_ENTER"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragEnterEvt_delegate)) { - eventHandlers.AddHandler(DragEnterEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_ENTER"; - if (RemoveNativeEventHandler(key, this.evt_DragEnterEvt_delegate)) { - eventHandlers.RemoveHandler(DragEnterEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragEnterEvt. - public void On_DragEnterEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragEnterEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragEnterEvt_delegate; - private void on_DragEnterEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDragEnterEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_DragEnterEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_DND_EVENT_DRAG_ENTER"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragLeaveEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// called when the drag object leaves this object public event EventHandler DragLeaveEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DND_EVENT_DRAG_LEAVE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragLeaveEvt_delegate)) { - eventHandlers.AddHandler(DragLeaveEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_LEAVE"; - if (RemoveNativeEventHandler(key, this.evt_DragLeaveEvt_delegate)) { - eventHandlers.RemoveHandler(DragLeaveEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragLeaveEvt. - public void On_DragLeaveEvt(EventArgs e) + public void OnDragLeaveEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragLeaveEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragLeaveEvt_delegate; - private void on_DragLeaveEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_DragLeaveEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_DND_EVENT_DRAG_LEAVE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DragPosEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// called when the drag object changes drag position public event EventHandler DragPosEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDndDragPosEvt_Args args = new Efl.Ui.IDndDragPosEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DND_EVENT_DRAG_POS"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragPosEvt_delegate)) { - eventHandlers.AddHandler(DragPosEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_POS"; - if (RemoveNativeEventHandler(key, this.evt_DragPosEvt_delegate)) { - eventHandlers.RemoveHandler(DragPosEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragPosEvt. - public void On_DragPosEvt(Efl.Ui.IDndDragPosEvt_Args e) + public void OnDragPosEvt(Efl.Ui.IDndDragPosEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragPosEvtKey]; + var key = "_EFL_UI_DND_EVENT_DRAG_POS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragPosEvt_delegate; - private void on_DragPosEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDndDragPosEvt_Args args = new Efl.Ui.IDndDragPosEvt_Args(); - args.arg = evt.Info;; - try { - On_DragPosEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object DragDropEvtKey = new object(); /// called when the drag object dropped on this object public event EventHandler DragDropEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IDndDragDropEvt_Args args = new Efl.Ui.IDndDragDropEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_DND_EVENT_DRAG_DROP"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DragDropEvt_delegate)) { - eventHandlers.AddHandler(DragDropEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_DND_EVENT_DRAG_DROP"; - if (RemoveNativeEventHandler(key, this.evt_DragDropEvt_delegate)) { - eventHandlers.RemoveHandler(DragDropEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DragDropEvt. - public void On_DragDropEvt(Efl.Ui.IDndDragDropEvt_Args e) + public void OnDragDropEvt(Efl.Ui.IDndDragDropEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DragDropEvtKey]; + var key = "_EFL_UI_DND_EVENT_DRAG_DROP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DragDropEvt_delegate; - private void on_DragDropEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IDndDragDropEvt_Args args = new Efl.Ui.IDndDragDropEvt_Args(); - args.arg = evt.Info;; - try { - On_DragDropEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PropertiesChangedEvtKey = new object(); /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. public event EventHandler PropertiesChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertiesChangedEvt_Args args = new Efl.Ui.IPropertyBindPropertiesChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.AddHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PropertiesChangedEvt. - public void On_PropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) + public void OnPropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertiesChangedEvtKey]; + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertiesChangedEvt_delegate; - private void on_PropertiesChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IPropertyBindPropertiesChangedEvt_Args args = new Efl.Ui.IPropertyBindPropertiesChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PropertiesChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PropertyBoundEvtKey = new object(); /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. public event EventHandler PropertyBoundEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertyBoundEvt_Args args = new Efl.Ui.IPropertyBindPropertyBoundEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PropertyBoundEvt_delegate)) { - eventHandlers.AddHandler(PropertyBoundEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; - if (RemoveNativeEventHandler(key, this.evt_PropertyBoundEvt_delegate)) { - eventHandlers.RemoveHandler(PropertyBoundEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PropertyBoundEvt. - public void On_PropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) + public void OnPropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertyBoundEvtKey]; + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertyBoundEvt_delegate; - private void on_PropertyBoundEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IPropertyBindPropertyBoundEvt_Args args = new Efl.Ui.IPropertyBindPropertyBoundEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_PropertyBoundEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); } } - -private static object WmSelectionChangedEvtKey = new object(); /// Called when display server's selection has changed public event EventHandler WmSelectionChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.ISelectionWmSelectionChangedEvt_Args args = new Efl.Ui.ISelectionWmSelectionChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WmSelectionChangedEvt_delegate)) { - eventHandlers.AddHandler(WmSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_WmSelectionChangedEvt_delegate)) { - eventHandlers.RemoveHandler(WmSelectionChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WmSelectionChangedEvt. - public void On_WmSelectionChangedEvt(Efl.Ui.ISelectionWmSelectionChangedEvt_Args e) + public void OnWmSelectionChangedEvt(Efl.Ui.ISelectionWmSelectionChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WmSelectionChangedEvtKey]; + var key = "_EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WmSelectionChangedEvt_delegate; - private void on_WmSelectionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.ISelectionWmSelectionChangedEvt_Args args = new Efl.Ui.ISelectionWmSelectionChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_WmSelectionChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object FocusChangedEvtKey = new object(); /// Emitted if the focus state has changed. /// (Since EFL 1.22) public event EventHandler FocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusChangedEvt. - public void On_FocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e) + public void OnFocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusChangedEvtKey]; + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusChangedEvt_delegate; - private void on_FocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_FocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object FocusManagerChangedEvtKey = new object(); /// Emitted when a new manager is the parent for this object. /// (Since EFL 1.22) public event EventHandler FocusManagerChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusManagerChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusManagerChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusManagerChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusManagerChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusManagerChangedEvt. - public void On_FocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusManagerChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusManagerChangedEvt_delegate; - private void on_FocusManagerChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e) { - Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_FocusManagerChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FocusParentChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Emitted when a new logical parent should be used. /// (Since EFL 1.22) public event EventHandler FocusParentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusParentChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusParentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusParentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusParentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusParentChangedEvt. - public void On_FocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e) + public void OnFocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusParentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusParentChangedEvt_delegate; - private void on_FocusParentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_FocusParentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ChildFocusChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Emitted if child_focus has changed. /// (Since EFL 1.22) public event EventHandler ChildFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChildFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ChildFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChildFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChildFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChildFocusChangedEvt. - public void On_ChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e) + public void OnChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChildFocusChangedEvtKey]; + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChildFocusChangedEvt_delegate; - private void on_ChildFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args args = new Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_ChildFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object FocusGeometryChangedEvtKey = new object(); /// Emitted if focus geometry of this object has changed. /// (Since EFL 1.22) public event EventHandler FocusGeometryChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FocusGeometryChangedEvt_delegate)) { - eventHandlers.AddHandler(FocusGeometryChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FocusGeometryChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FocusGeometryChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FocusGeometryChangedEvt. - public void On_FocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e) + public void OnFocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FocusGeometryChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FocusGeometryChangedEvt_delegate; - private void on_FocusGeometryChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args args = new Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_FocusGeometryChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_AtspiHighlightedEvt_delegate = new Efl.EventCb(on_AtspiHighlightedEvt_NativeCallback); - evt_AtspiUnhighlightedEvt_delegate = new Efl.EventCb(on_AtspiUnhighlightedEvt_NativeCallback); - evt_LanguageChangedEvt_delegate = new Efl.EventCb(on_LanguageChangedEvt_NativeCallback); - evt_AccessChangedEvt_delegate = new Efl.EventCb(on_AccessChangedEvt_NativeCallback); - evt_PropertyChangedEvt_delegate = new Efl.EventCb(on_PropertyChangedEvt_NativeCallback); - evt_ChildrenChangedEvt_delegate = new Efl.EventCb(on_ChildrenChangedEvt_NativeCallback); - evt_StateChangedEvt_delegate = new Efl.EventCb(on_StateChangedEvt_NativeCallback); - evt_BoundsChangedEvt_delegate = new Efl.EventCb(on_BoundsChangedEvt_NativeCallback); - evt_VisibleDataChangedEvt_delegate = new Efl.EventCb(on_VisibleDataChangedEvt_NativeCallback); - evt_ActiveDescendantChangedEvt_delegate = new Efl.EventCb(on_ActiveDescendantChangedEvt_NativeCallback); - evt_AddedEvt_delegate = new Efl.EventCb(on_AddedEvt_NativeCallback); - evt_RemovedEvt_delegate = new Efl.EventCb(on_RemovedEvt_NativeCallback); - evt_MoveOutedEvt_delegate = new Efl.EventCb(on_MoveOutedEvt_NativeCallback); - evt_ReadingStateChangedEvt_delegate = new Efl.EventCb(on_ReadingStateChangedEvt_NativeCallback); - evt_DragAcceptEvt_delegate = new Efl.EventCb(on_DragAcceptEvt_NativeCallback); - evt_DragDoneEvt_delegate = new Efl.EventCb(on_DragDoneEvt_NativeCallback); - evt_DragEnterEvt_delegate = new Efl.EventCb(on_DragEnterEvt_NativeCallback); - evt_DragLeaveEvt_delegate = new Efl.EventCb(on_DragLeaveEvt_NativeCallback); - evt_DragPosEvt_delegate = new Efl.EventCb(on_DragPosEvt_NativeCallback); - evt_DragDropEvt_delegate = new Efl.EventCb(on_DragDropEvt_NativeCallback); - evt_PropertiesChangedEvt_delegate = new Efl.EventCb(on_PropertiesChangedEvt_NativeCallback); - evt_PropertyBoundEvt_delegate = new Efl.EventCb(on_PropertyBoundEvt_NativeCallback); - evt_WmSelectionChangedEvt_delegate = new Efl.EventCb(on_WmSelectionChangedEvt_NativeCallback); - evt_FocusChangedEvt_delegate = new Efl.EventCb(on_FocusChangedEvt_NativeCallback); - evt_FocusManagerChangedEvt_delegate = new Efl.EventCb(on_FocusManagerChangedEvt_NativeCallback); - evt_FocusParentChangedEvt_delegate = new Efl.EventCb(on_FocusParentChangedEvt_NativeCallback); - evt_ChildFocusChangedEvt_delegate = new Efl.EventCb(on_ChildFocusChangedEvt_NativeCallback); - evt_FocusGeometryChangedEvt_delegate = new Efl.EventCb(on_FocusGeometryChangedEvt_NativeCallback); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Returns the current cursor name. /// (Since EFL 1.22) /// The cursor name, defined either by the display system or the theme. virtual public System.String GetCursor() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_cursor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_cursor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1414,8 +1803,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The cursor name, defined either by the display system or the theme. /// true if successful. - virtual public bool SetCursor( System.String cursor) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_cursor_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cursor); + virtual public bool SetCursor(System.String cursor) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_cursor_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cursor); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1423,7 +1812,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// A specific style to use, eg. default, transparent, .... virtual public System.String GetCursorStyle() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_cursor_style_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_cursor_style_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1431,8 +1820,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// A specific style to use, eg. default, transparent, .... /// true if successful. - virtual public bool SetCursorStyle( System.String style) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_cursor_style_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), style); + virtual public bool SetCursorStyle(System.String style) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_cursor_style_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),style); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1440,7 +1829,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Whether to use theme cursors. virtual public bool GetCursorThemeSearchEnabled() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_cursor_theme_search_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_cursor_theme_search_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1448,17 +1837,16 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Whether to use theme cursors. /// true if successful. - virtual public bool SetCursorThemeSearchEnabled( bool allow) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_cursor_theme_search_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), allow); + virtual public bool SetCursorThemeSearchEnabled(bool allow) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_cursor_theme_search_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),allow); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the new resize object for this widget. /// (Since EFL 1.22) /// A canvas object (often a object). - /// - virtual public void SetResizeObject( Efl.Canvas.Object sobj) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_resize_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sobj); + virtual public void SetResizeObject(Efl.Canvas.Object sobj) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_resize_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sobj); Eina.Error.RaiseIfUnhandledException(); } /// Returns whether the widget is disabled. @@ -1466,7 +1854,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if the widget is disabled. virtual public bool GetDisabled() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_disabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1474,16 +1862,15 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Disabling a widget will disable all its children recursively, but only this widget will be marked as disabled internally. /// (Since EFL 1.22) /// true if the widget is disabled. - /// - virtual public void SetDisabled( bool disabled) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), disabled); + virtual public void SetDisabled(bool disabled) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_disabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),disabled); Eina.Error.RaiseIfUnhandledException(); } /// Returns the current style of a widget. /// (Since EFL 1.22) /// Name of the style to use. Refer to each widget's documentation for the available style names, or to the themes in use. virtual public System.String GetStyle() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_style_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_style_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1491,8 +1878,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Name of the style to use. Refer to each widget's documentation for the available style names, or to the themes in use. /// Whether the style was successfully applied or not, see the Efl.Ui.Theme.Apply_Error subset of for more information. - virtual public Eina.Error SetStyle( System.String style) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_style_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), style); + virtual public Eina.Error SetStyle(System.String style) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_style_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),style); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1505,7 +1892,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Whether the object is focusable. virtual public bool GetFocusAllow() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_allow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_allow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1517,9 +1904,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// This property's default value depends on the widget (eg. a box is not focusable, but a button is). /// (Since EFL 1.22) /// Whether the object is focusable. - /// - virtual public void SetFocusAllow( bool can_focus) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_allow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_focus); + virtual public void SetFocusAllow(bool can_focus) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_allow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_focus); Eina.Error.RaiseIfUnhandledException(); } /// The internal parent of this widget. @@ -1527,7 +1913,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Widget parent object virtual public Efl.Ui.Widget GetWidgetParent() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1535,9 +1921,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// objects have a parent hierarchy that may differ slightly from their or hierarchy. This is meant for internal handling. /// (Since EFL 1.22) /// Widget parent object - /// - virtual public void SetWidgetParent( Efl.Ui.Widget parent) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_parent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), parent); + virtual public void SetWidgetParent(Efl.Ui.Widget parent) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_parent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),parent); Eina.Error.RaiseIfUnhandledException(); } /// Accessibility information. @@ -1545,7 +1930,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Accessibility text description. virtual public System.String GetAccessInfo() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_access_info_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_access_info_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1553,9 +1938,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// This is a replacement string to be read by the accessibility text-to-speech engine, if accessibility is enabled by configuration. This will take precedence over the default text for this object, which means for instance that the label of a button won't be read out loud, instead txt will be read out. /// (Since EFL 1.22) /// Accessibility text description. - /// - virtual public void SetAccessInfo( System.String txt) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_access_info_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), txt); + virtual public void SetAccessInfo(System.String txt) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_access_info_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),txt); Eina.Error.RaiseIfUnhandledException(); } /// Region of interest inside this widget, that should be given priority to be visible inside a scroller. @@ -1565,7 +1949,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The relative region to show. If width or height is <= 0 it will be ignored, and no action will be taken. virtual public Eina.Rect GetInterestRegion() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_interest_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_interest_region_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1573,7 +1957,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The rectangle area. virtual public Eina.Rect GetFocusHighlightGeometry() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_highlight_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_highlight_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1581,7 +1965,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// FIXME virtual public uint GetFocusOrder() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_order_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_order_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1590,24 +1974,23 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Chain of objects virtual public Eina.List GetFocusCustomChain() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_custom_chain_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_custom_chain_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, false, false); } /// This function overwrites any previous custom focus chain within the list of objects. The previous list will be deleted and this list will be managed by elementary. After it is set, don't modify it. /// (Since EFL 1.22) /// Chain of objects to pass focus - /// - virtual public void SetFocusCustomChain( Eina.List objs) { + virtual public void SetFocusCustomChain(Eina.List objs) { var _in_objs = objs.Handle; - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_custom_chain_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_objs); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_custom_chain_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_objs); Eina.Error.RaiseIfUnhandledException(); } /// Current focused object in object tree. /// (Since EFL 1.22) /// Current focused or null, if there is no focused object. virtual public Efl.Canvas.Object GetFocusedObject() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focused_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focused_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1615,32 +1998,30 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Focus move policy virtual public Efl.Ui.Focus.MovePolicy GetFocusMovePolicy() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_move_policy_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_move_policy_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The widget's focus move policy. /// (Since EFL 1.22) /// Focus move policy - /// - virtual public void SetFocusMovePolicy( Efl.Ui.Focus.MovePolicy policy) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_move_policy_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), policy); + virtual public void SetFocusMovePolicy(Efl.Ui.Focus.MovePolicy policy) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_move_policy_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),policy); Eina.Error.RaiseIfUnhandledException(); } /// Control the widget's focus_move_policy mode setting. /// (Since EFL 1.22) /// true to follow system focus move policy change, false otherwise virtual public bool GetFocusMovePolicyAutomatic() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_move_policy_automatic_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_move_policy_automatic_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control the widget's focus_move_policy mode setting. /// (Since EFL 1.22) /// true to follow system focus move policy change, false otherwise - /// - virtual public void SetFocusMovePolicyAutomatic( bool automatic) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_move_policy_automatic_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), automatic); + virtual public void SetFocusMovePolicyAutomatic(bool automatic) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_move_policy_automatic_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),automatic); Eina.Error.RaiseIfUnhandledException(); } /// Virtual function handling input events on the widget. @@ -1651,9 +2032,9 @@ private static object FocusGeometryChangedEvtKey = new object(); /// EO event struct with an Efl.Input.Event as info. /// Source object where the event originated. Often same as this. /// true on success, false otherwise - virtual public bool WidgetInputEventHandler( ref Efl.Event eo_event, Efl.Canvas.Object source) { + virtual public bool WidgetInputEventHandler(ref Efl.Event eo_event, Efl.Canvas.Object source) { Efl.Event.NativeStruct _in_eo_event = eo_event; - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_input_event_handler_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref _in_eo_event, source); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_input_event_handler_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ref _in_eo_event, source); Eina.Error.RaiseIfUnhandledException(); eo_event = _in_eo_event; return _ret_var; @@ -1663,8 +2044,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Type of activation. /// true on success, false otherwise - virtual public bool OnAccessActivate( Efl.Ui.Activate act) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_on_access_activate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), act); + virtual public bool OnAccessActivate(Efl.Ui.Activate act) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_on_access_activate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),act); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1672,25 +2053,20 @@ private static object FocusGeometryChangedEvtKey = new object(); /// This meant to be overridden by subclasses to support accessibility. This is an unstable API. /// (Since EFL 1.22) /// true if accessibility is enabled. - /// - virtual public void UpdateOnAccess( bool enable) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_on_access_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enable); + virtual public void UpdateOnAccess(bool enable) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_on_access_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enable); Eina.Error.RaiseIfUnhandledException(); } /// 'Virtual' function on the widget being set screen reader. /// (Since EFL 1.22) - /// - /// - virtual public void ScreenReader( bool is_screen_reader) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_screen_reader_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), is_screen_reader); + virtual public void ScreenReader(bool is_screen_reader) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_screen_reader_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),is_screen_reader); Eina.Error.RaiseIfUnhandledException(); } /// 'Virtual' function on the widget being set atspi. /// (Since EFL 1.22) - /// - /// - virtual public void Atspi( bool is_atspi) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_atspi_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), is_atspi); + virtual public void Atspi(bool is_atspi) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_atspi_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),is_atspi); Eina.Error.RaiseIfUnhandledException(); } /// Virtual function customizing sub objects being added. @@ -1702,8 +2078,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Sub object to be added. Not necessarily a widget itself. /// Indicates if the operation succeeded. - virtual public bool AddWidgetSubObject( Efl.Canvas.Object sub_obj) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_sub_object_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sub_obj); + virtual public bool AddWidgetSubObject(Efl.Canvas.Object sub_obj) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_sub_object_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sub_obj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1716,8 +2092,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Sub object to be removed. Should be a child of this widget. /// Indicates if the operation succeeded. - virtual public bool DelWidgetSubObject( Efl.Canvas.Object sub_obj) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_sub_object_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sub_obj); + virtual public bool DelWidgetSubObject(Efl.Canvas.Object sub_obj) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_sub_object_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sub_obj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1728,44 +2104,39 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// Indicates success, and if the current theme or default theme was used. virtual public Eina.Error ThemeApply() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_theme_apply_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_theme_apply_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Push scroll hold /// (Since EFL 1.22) - /// virtual public void PushScrollHold() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_scroll_hold_push_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_scroll_hold_push_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Pop scroller hold /// (Since EFL 1.22) - /// virtual public void PopScrollHold() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_scroll_hold_pop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_scroll_hold_pop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Push scroller freeze /// (Since EFL 1.22) - /// virtual public void PushScrollFreeze() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_scroll_freeze_push_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_scroll_freeze_push_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Pop scroller freeze /// (Since EFL 1.22) - /// virtual public void PopScrollFreeze() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_scroll_freeze_pop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_scroll_freeze_pop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Get the access object of given part of the widget. /// (Since EFL 1.18) /// The object's part name to get access object - /// - virtual public Efl.Canvas.Object GetPartAccessObject( System.String part) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_part_access_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), part); + virtual public Efl.Canvas.Object GetPartAccessObject(System.String part) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_part_access_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),part); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1774,8 +2145,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Newest focus order /// true only us widgets which can focus, false otherweise /// Handle to focused widget - virtual public Efl.Canvas.Object GetNewestFocusOrder( out uint newest_focus_order, bool can_focus_only) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_newest_focus_order_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out newest_focus_order, can_focus_only); + virtual public Efl.Canvas.Object GetNewestFocusOrder(out uint newest_focus_order, bool can_focus_only) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_newest_focus_order_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out newest_focus_order, can_focus_only); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1783,17 +2154,16 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.8) /// Focus next object /// Focus direction - /// - virtual public void SetFocusNextObject( Efl.Canvas.Object next, Efl.Ui.Focus.Direction dir) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_next_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), next, dir); + virtual public void SetFocusNextObject(Efl.Canvas.Object next, Efl.Ui.Focus.Direction dir) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_next_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),next, dir); Eina.Error.RaiseIfUnhandledException(); } /// Get the next object with specific focus direction. /// (Since EFL 1.8) /// Focus direction /// Focus next object - virtual public Efl.Canvas.Object GetFocusNextObject( Efl.Ui.Focus.Direction dir) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_next_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public Efl.Canvas.Object GetFocusNextObject(Efl.Ui.Focus.Direction dir) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_next_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1801,25 +2171,23 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.16) /// Focus next object item /// Focus direction - /// - virtual public void SetFocusNextItem( Efl.Ui.Widget next_item, Efl.Ui.Focus.Direction dir) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_next_item_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), next_item, dir); + virtual public void SetFocusNextItem(Efl.Ui.Widget next_item, Efl.Ui.Focus.Direction dir) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_next_item_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),next_item, dir); Eina.Error.RaiseIfUnhandledException(); } /// Get the next object item with specific focus direction. /// (Since EFL 1.16) /// Focus direction /// Focus next object item - virtual public Efl.Ui.Widget GetFocusNextItem( Efl.Ui.Focus.Direction dir) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_next_item_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public Efl.Ui.Widget GetFocusNextItem(Efl.Ui.Focus.Direction dir) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_next_item_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Handle focus tree unfocusable /// (Since EFL 1.22) - /// virtual public void FocusTreeUnfocusableHandle() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_tree_unfocusable_handle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_tree_unfocusable_handle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Prepend object to custom focus chain. @@ -1829,17 +2197,15 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The child to be added in custom chain. /// The relative object to position the child. - /// - virtual public void FocusCustomChainPrepend( Efl.Canvas.Object child, Efl.Canvas.Object relative_child) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_custom_chain_prepend_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, relative_child); + virtual public void FocusCustomChainPrepend(Efl.Canvas.Object child, Efl.Canvas.Object relative_child) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_custom_chain_prepend_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, relative_child); Eina.Error.RaiseIfUnhandledException(); } /// Give focus to next object with specific focus direction in object tree. /// (Since EFL 1.22) /// Direction to move the focus. - /// - virtual public void FocusCycle( Efl.Ui.Focus.Direction dir) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_cycle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); + virtual public void FocusCycle(Efl.Ui.Focus.Direction dir) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_cycle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir); Eina.Error.RaiseIfUnhandledException(); } /// 'Virtual' function handling passing focus to sub-objects given a direction, in degrees. @@ -1850,8 +2216,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Direction item /// Weight /// true on success, false otherwise - virtual public bool FocusDirection( Efl.Canvas.Object kw_base, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_direction_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_base, degree, out direction, out direction_item, out weight); + virtual public bool FocusDirection(Efl.Canvas.Object kw_base, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_direction_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_base, degree, out direction, out direction_item, out weight); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1859,7 +2225,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// true on success, false otherwise virtual public bool IsFocusNextManager() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_next_manager_is_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_next_manager_is_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1873,25 +2239,24 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Direction item /// Weight /// true on success, false otherwise - virtual public bool GetFocusListDirection( Efl.Canvas.Object kw_base, Eina.List items, System.IntPtr list_data_get, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) { + virtual public bool GetFocusListDirection(Efl.Canvas.Object kw_base, Eina.List items, System.IntPtr list_data_get, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) { var _in_items = items.Handle; - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_list_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_base, _in_items, list_data_get, degree, out direction, out direction_item, out weight); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_list_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_base, _in_items, list_data_get, degree, out direction, out direction_item, out weight); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Clear focused object /// (Since EFL 1.22) - /// virtual public void ClearFocusedObject() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focused_object_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focused_object_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Go in focus direction /// (Since EFL 1.22) /// Degree /// true on success, false otherwise - virtual public bool FocusDirectionGo( double degree) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_direction_go_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), degree); + virtual public bool FocusDirectionGo(double degree) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_direction_go_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),degree); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1901,40 +2266,36 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Next object /// Next item /// true on success, false otherwise - virtual public bool GetFocusNext( Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_next_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir, out next, out next_item); + virtual public bool GetFocusNext(Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_next_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir, out next, out next_item); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Restore the focus state of the sub-tree. /// This API will restore the focus state of the sub-tree to the latest state. If a sub-tree is unfocused and wants to get back to the latest focus state, this API will be helpful. /// (Since EFL 1.22) - /// virtual public void FocusRestore() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_restore_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_restore_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Unset a custom focus chain on a given Elementary widget. /// Any focus chain previously set is removed entirely after this call. /// (Since EFL 1.22) - /// virtual public void UnsetFocusCustomChain() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_custom_chain_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_custom_chain_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Steal focus /// (Since EFL 1.22) /// Widget to steal focus from - /// - virtual public void FocusSteal( Efl.Ui.Widget item) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_steal_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), item); + virtual public void FocusSteal(Efl.Ui.Widget item) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_steal_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),item); Eina.Error.RaiseIfUnhandledException(); } /// Handle hide focus /// (Since EFL 1.22) - /// virtual public void FocusHideHandle() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_hide_handle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_hide_handle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// 'Virtual' function handling passing focus to sub-objects. @@ -1943,8 +2304,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Next object /// Next item /// true on success, false otherwise - virtual public bool FocusNext( Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_next_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir, out next, out next_item); + virtual public bool FocusNext(Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_next_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dir, out next, out next_item); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1956,17 +2317,16 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Next object /// Next item /// true on success, false otherwise - virtual public bool GetFocusListNext( Eina.List items, System.IntPtr list_data_get, Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) { + virtual public bool GetFocusListNext(Eina.List items, System.IntPtr list_data_get, Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) { var _in_items = items.Handle; - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_list_next_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_items, list_data_get, dir, out next, out next_item); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_list_next_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_items, list_data_get, dir, out next, out next_item); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Handle focus mouse up /// (Since EFL 1.22) - /// virtual public void FocusMouseUpHandle() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_mouse_up_handle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_mouse_up_handle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Get focus direction @@ -1977,16 +2337,15 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Direction item /// Weight /// true on success, false otherwise - virtual public bool GetFocusDirection( Efl.Canvas.Object kw_base, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_base, degree, out direction, out direction_item, out weight); + virtual public bool GetFocusDirection(Efl.Canvas.Object kw_base, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_direction_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_base, degree, out direction, out direction_item, out weight); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Handle disable widget focus /// (Since EFL 1.22) - /// virtual public void FocusDisabledHandle() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_disabled_handle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_disabled_handle_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Append object to custom focus chain. @@ -1996,23 +2355,21 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The child to be added in custom chain. /// The relative object to position the child. - /// - virtual public void AppendFocusCustomChain( Efl.Canvas.Object child, Efl.Canvas.Object relative_child) { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_custom_chain_append_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child, relative_child); + virtual public void AppendFocusCustomChain(Efl.Canvas.Object child, Efl.Canvas.Object relative_child) { + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_custom_chain_append_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child, relative_child); Eina.Error.RaiseIfUnhandledException(); } /// No description supplied. /// (Since EFL 1.18) - /// virtual public void FocusReconfigure() { - Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_reconfigure_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_reconfigure_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Virtual function which checks if this widget can handle passing focus to sub-object, in a given direction. /// (Since EFL 1.22) /// true on success, false otherwise virtual public bool IsFocusDirectionManager() { - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_direction_manager_is_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_direction_manager_is_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2025,10 +2382,10 @@ private static object FocusGeometryChangedEvtKey = new object(); /// The new configuration being set on the widget. /// A redirect object if there is any /// Returns true if the widget is registered in the focus manager, false if not. - virtual public bool FocusStateApply( Efl.Ui.WidgetFocusState current_state, ref Efl.Ui.WidgetFocusState configured_state, Efl.Ui.Widget redirect) { + virtual public bool FocusStateApply(Efl.Ui.WidgetFocusState current_state, ref Efl.Ui.WidgetFocusState configured_state, Efl.Ui.Widget redirect) { Efl.Ui.WidgetFocusState.NativeStruct _in_current_state = current_state; var _out_configured_state = new Efl.Ui.WidgetFocusState.NativeStruct(); - var _ret_var = Efl.Ui.WidgetNativeInherit.efl_ui_widget_focus_state_apply_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_current_state, ref _out_configured_state, redirect); + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_state_apply_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_current_state, ref _out_configured_state, redirect); Eina.Error.RaiseIfUnhandledException(); configured_state = _out_configured_state; return _ret_var; @@ -2037,62 +2394,62 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The part name. /// A (proxy) object, valid for a single call. - virtual public Efl.Object GetPart( System.String name) { - var _ret_var = Efl.IPartNativeInherit.efl_part_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Efl.Object GetPart(System.String name) { + var _ret_var = Efl.IPartConcrete.NativeMethods.efl_part_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets action name for given id /// ID to get action name for /// Action name - virtual public System.String GetActionName( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id); + virtual public System.String GetActionName(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets localized action name for given id /// ID to get localized name for /// Localized name - virtual public System.String GetActionLocalizedName( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_localized_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id); + virtual public System.String GetActionLocalizedName(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_localized_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get list of available widget actions /// Contains statically allocated strings. virtual public Eina.List GetActions() { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_actions_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_actions_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, false, false); } /// Performs action on given widget. /// ID for widget /// true if action was performed, false otherwise - virtual public bool ActionDo( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_do_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id); + virtual public bool ActionDo(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_do_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets configured keybinding for specific action and widget. /// ID for widget /// Should be freed by the user. - virtual public System.String GetActionKeybinding( int id) { - var _ret_var = Efl.Access.IActionNativeInherit.efl_access_action_keybinding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id); + virtual public System.String GetActionKeybinding(int id) { + var _ret_var = Efl.Access.IActionConcrete.NativeMethods.efl_access_action_keybinding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets the depth at which the component is shown in relation to other components in the same container. /// Z order of component virtual public int GetZOrder() { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_z_order_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_z_order_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Geometry of accessible widget. /// If true x and y values will be relative to screen origin, otherwise relative to canvas /// The geometry. - virtual public Eina.Rect GetExtents( bool screen_coords) { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_extents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), screen_coords); + virtual public Eina.Rect GetExtents(bool screen_coords) { + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_extents_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),screen_coords); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2100,43 +2457,36 @@ private static object FocusGeometryChangedEvtKey = new object(); /// If true x and y values will be relative to screen origin, otherwise relative to canvas /// The geometry. /// true if geometry was set, false otherwise - virtual public bool SetExtents( bool screen_coords, Eina.Rect rect) { + virtual public bool SetExtents(bool screen_coords, Eina.Rect rect) { Eina.Rect.NativeStruct _in_rect = rect; - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_extents_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), screen_coords, _in_rect); + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_extents_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),screen_coords, _in_rect); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Position of accessible widget. /// X coordinate /// Y coordinate - /// - virtual public void GetScreenPosition( out int x, out int y) { - Efl.Access.IComponentNativeInherit.efl_access_component_screen_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetScreenPosition(out int x, out int y) { + Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_screen_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Position of accessible widget. /// X coordinate /// Y coordinate /// true if position was set, false otherwise - virtual public bool SetScreenPosition( int x, int y) { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_screen_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public bool SetScreenPosition(int x, int y) { + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_screen_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets position of socket offset. - /// - /// - /// - virtual public void GetSocketOffset( out int x, out int y) { - Efl.Access.IComponentNativeInherit.efl_access_component_socket_offset_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x, out y); + virtual public void GetSocketOffset(out int x, out int y) { + Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_socket_offset_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Sets position of socket offset. - /// - /// - /// - virtual public void SetSocketOffset( int x, int y) { - Efl.Access.IComponentNativeInherit.efl_access_component_socket_offset_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x, y); + virtual public void SetSocketOffset(int x, int y) { + Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_socket_offset_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),x, y); Eina.Error.RaiseIfUnhandledException(); } /// Contains accessible widget @@ -2144,15 +2494,15 @@ private static object FocusGeometryChangedEvtKey = new object(); /// X coordinate /// Y coordinate /// true if params have been set, false otherwise - virtual public bool Contains( bool screen_coords, int x, int y) { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_contains_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), screen_coords, x, y); + virtual public bool Contains(bool screen_coords, int x, int y) { + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_contains_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),screen_coords, x, y); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Focuses accessible widget. /// true if focus grab focus succeed, false otherwise. virtual public bool GrabFocus() { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_focus_grab_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_focus_grab_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2161,130 +2511,119 @@ private static object FocusGeometryChangedEvtKey = new object(); /// X coordinate /// Y coordinate /// Top component object at given coordinate - virtual public Efl.Object GetAccessibleAtPoint( bool screen_coords, int x, int y) { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_accessible_at_point_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), screen_coords, x, y); + virtual public Efl.Object GetAccessibleAtPoint(bool screen_coords, int x, int y) { + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_accessible_at_point_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),screen_coords, x, y); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Highlights accessible widget. returns true if highlight grab has successed, false otherwise. /// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif - /// virtual public bool GrabHighlight() { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_highlight_grab_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_highlight_grab_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Clears highlight of accessible widget. returns true if clear has successed, false otherwise. /// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif - /// virtual public bool ClearHighlight() { - var _ret_var = Efl.Access.IComponentNativeInherit.efl_access_component_highlight_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_highlight_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets an localized string describing accessible object role name. /// Localized accessible object role name virtual public System.String GetLocalizedRoleName() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_localized_role_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_localized_role_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Accessible name of the object. /// Accessible name virtual public System.String GetI18nName() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_i18n_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_i18n_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Accessible name of the object. /// Accessible name - /// - virtual public void SetI18nName( System.String i18n_name) { - Efl.Access.IObjectNativeInherit.efl_access_object_i18n_name_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), i18n_name); + virtual public void SetI18nName(System.String i18n_name) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_i18n_name_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),i18n_name); Eina.Error.RaiseIfUnhandledException(); } /// Sets name information callback about widget. /// @if WEARABLE @since_tizen 3.0 @endif /// reading information callback - /// - /// - virtual public void SetNameCb( Efl.Access.ReadingInfoCb name_cb, System.IntPtr data) { - Efl.Access.IObjectNativeInherit.efl_access_object_name_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name_cb, data); + virtual public void SetNameCb(Efl.Access.ReadingInfoCb name_cb, System.IntPtr data) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_name_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name_cb, data); Eina.Error.RaiseIfUnhandledException(); } /// Gets an all relations between accessible object and other accessible objects. /// Accessible relation set virtual public Efl.Access.RelationSet GetRelationSet() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_relation_set_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relation_set_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// The role of the object in accessibility domain. /// Accessible role virtual public Efl.Access.Role GetRole() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_role_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the role of the object in accessibility domain. /// Accessible role - /// - virtual public void SetRole( Efl.Access.Role role) { - Efl.Access.IObjectNativeInherit.efl_access_object_role_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), role); + virtual public void SetRole(Efl.Access.Role role) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),role); Eina.Error.RaiseIfUnhandledException(); } /// Gets object's accessible parent. /// Accessible parent virtual public Efl.Access.IObject GetAccessParent() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_access_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets object's accessible parent. /// Accessible parent - /// - virtual public void SetAccessParent( Efl.Access.IObject parent) { - Efl.Access.IObjectNativeInherit.efl_access_object_access_parent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), parent); + virtual public void SetAccessParent(Efl.Access.IObject parent) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_parent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),parent); Eina.Error.RaiseIfUnhandledException(); } /// Sets contextual information callback about widget. /// @if WEARABLE @since_tizen 3.0 @endif /// The function called to provide the accessible description. /// The data passed to @c description_cb. - /// - virtual public void SetDescriptionCb( Efl.Access.ReadingInfoCb description_cb, System.IntPtr data) { - Efl.Access.IObjectNativeInherit.efl_access_object_description_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), description_cb, data); + virtual public void SetDescriptionCb(Efl.Access.ReadingInfoCb description_cb, System.IntPtr data) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),description_cb, data); Eina.Error.RaiseIfUnhandledException(); } /// Sets gesture callback to give widget. /// Warning: Please do not abuse this API. The purpose of this API is to support special application such as screen-reader guidance. Before using this API, please check if there is another way. /// /// @if WEARABLE @since_tizen 3.0 @endif - /// - /// - /// - virtual public void SetGestureCb( Efl.Access.GestureCb gesture_cb, System.IntPtr data) { - Efl.Access.IObjectNativeInherit.efl_access_object_gesture_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), gesture_cb, data); + virtual public void SetGestureCb(Efl.Access.GestureCb gesture_cb, System.IntPtr data) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_gesture_cb_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),gesture_cb, data); Eina.Error.RaiseIfUnhandledException(); } /// Gets object's accessible children. /// List of widget's children virtual public Eina.List GetAccessChildren() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_access_children_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_children_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, false); } /// Gets human-readable string indentifying object accessibility role. /// Accessible role name virtual public System.String GetRoleName() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_role_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. /// List of object attributes, Must be freed by the user virtual public Eina.List GetAttributes() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_attributes_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attributes_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, true); } @@ -2292,43 +2631,41 @@ private static object FocusGeometryChangedEvtKey = new object(); /// @if WEARABLE @since_tizen 3.0 @endif /// Reading information types virtual public Efl.Access.ReadingInfoTypeMask GetReadingInfoType() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_reading_info_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_reading_info_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets reading information of an accessible object. If set as 0, existing reading info will be deleted and by default all four reading information types like name, role, state and description will be read on object highlight /// @if WEARABLE @since_tizen 3.0 @endif /// Reading information types - /// - virtual public void SetReadingInfoType( Efl.Access.ReadingInfoTypeMask reading_info) { - Efl.Access.IObjectNativeInherit.efl_access_object_reading_info_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), reading_info); + virtual public void SetReadingInfoType(Efl.Access.ReadingInfoTypeMask reading_info) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_reading_info_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),reading_info); Eina.Error.RaiseIfUnhandledException(); } /// Gets index of the child in parent's children list. /// Index in children list virtual public int GetIndexInParent() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_index_in_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_index_in_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Gets contextual information about object. /// Accessible contextual information virtual public System.String GetDescription() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_description_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets widget contextual information. /// Accessible contextual information - /// - virtual public void SetDescription( System.String description) { - Efl.Access.IObjectNativeInherit.efl_access_object_description_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), description); + virtual public void SetDescription(System.String description) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),description); Eina.Error.RaiseIfUnhandledException(); } /// Gets set describing object accessible states. /// Accessible state set virtual public Efl.Access.StateSet GetStateSet() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_state_set_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_state_set_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2336,16 +2673,15 @@ private static object FocusGeometryChangedEvtKey = new object(); /// @if WEARABLE @since_tizen 3.0 @endif /// If @c true, the object is highlightable. virtual public bool GetCanHighlight() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_can_highlight_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets highlightable to given widget. /// @if WEARABLE @since_tizen 3.0 @endif /// If @c true, the object is highlightable. - /// - virtual public void SetCanHighlight( bool can_highlight) { - Efl.Access.IObjectNativeInherit.efl_access_object_can_highlight_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_highlight); + virtual public void SetCanHighlight(bool can_highlight) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),can_highlight); Eina.Error.RaiseIfUnhandledException(); } /// The translation domain of "name" and "description" properties. @@ -2356,7 +2692,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. /// Translation domain virtual public System.String GetTranslationDomain() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_translation_domain_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_translation_domain_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2367,24 +2703,21 @@ private static object FocusGeometryChangedEvtKey = new object(); /// /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. /// Translation domain - /// - virtual public void SetTranslationDomain( System.String domain) { - Efl.Access.IObjectNativeInherit.efl_access_object_translation_domain_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), domain); + virtual public void SetTranslationDomain(System.String domain) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_translation_domain_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),domain); Eina.Error.RaiseIfUnhandledException(); } /// Get root object of accessible object hierarchy /// Root object public static Efl.Object GetAccessRoot() { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_access_root_get_ptr.Value.Delegate(); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_root_get_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Handles gesture on given widget. - /// - /// - virtual public bool GestureDo( Efl.Access.GestureInfo gesture_info) { + virtual public bool GestureDo(Efl.Access.GestureInfo gesture_info) { Efl.Access.GestureInfo.NativeStruct _in_gesture_info = gesture_info; - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_gesture_do_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_gesture_info); + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_gesture_do_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_gesture_info); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2392,48 +2725,43 @@ private static object FocusGeometryChangedEvtKey = new object(); /// @if WEARABLE @since_tizen 3.0 @endif /// The string key to give extra information /// The string value to give extra information - /// - virtual public void AppendAttribute( System.String key, System.String value) { - Efl.Access.IObjectNativeInherit.efl_access_object_attribute_append_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key, value); + virtual public void AppendAttribute(System.String key, System.String value) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attribute_append_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key, value); Eina.Error.RaiseIfUnhandledException(); } /// delete key-value pair identifying object extra attributes when key is given /// The string key to identify the key-value pair - /// - virtual public void DelAttribute( System.String key) { - Efl.Access.IObjectNativeInherit.efl_access_object_attribute_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public void DelAttribute(System.String key) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attribute_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); } /// Removes all attributes in accessible object. - /// virtual public void ClearAttributes() { - Efl.Access.IObjectNativeInherit.efl_access_object_attributes_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attributes_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Register accessibility event listener /// Callback /// Data /// Event handler - public static Efl.Access.Event.Handler AddEventHandler( Efl.EventCb cb, System.IntPtr data) { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_event_handler_add_ptr.Value.Delegate( cb, data); + public static Efl.Access.Event.Handler AddEventHandler(Efl.EventCb cb, System.IntPtr data) { + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_event_handler_add_ptr.Value.Delegate(cb, data); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Deregister accessibility event listener /// Event handler - /// - public static void DelEventHandler( Efl.Access.Event.Handler handler) { - Efl.Access.IObjectNativeInherit.efl_access_object_event_handler_del_ptr.Value.Delegate( handler); + public static void DelEventHandler(Efl.Access.Event.Handler handler) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_event_handler_del_ptr.Value.Delegate(handler); Eina.Error.RaiseIfUnhandledException(); } /// Emit event /// Accessibility object. /// Accessibility event type. /// Accessibility event details. - /// - public static void EmitEvent( Efl.Access.IObject accessible, Efl.EventDescription kw_event, System.IntPtr event_info) { + public static void EmitEvent(Efl.Access.IObject accessible, Efl.EventDescription kw_event, System.IntPtr event_info) { var _in_kw_event = Eina.PrimitiveConversion.ManagedToPointerAlloc(kw_event); - Efl.Access.IObjectNativeInherit.efl_access_object_event_emit_ptr.Value.Delegate( accessible, _in_kw_event, event_info); + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_event_emit_ptr.Value.Delegate(accessible, _in_kw_event, event_info); Eina.Error.RaiseIfUnhandledException(); } /// Defines the relationship between two accessible objects. @@ -2445,8 +2773,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Relation type /// Object to relate to /// true if relationship was successfully appended, false otherwise - virtual public bool AppendRelationship( Efl.Access.RelationType type, Efl.Access.IObject relation_object) { - var _ret_var = Efl.Access.IObjectNativeInherit.efl_access_object_relationship_append_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type, relation_object); + virtual public bool AppendRelationship(Efl.Access.RelationType type, Efl.Access.IObject relation_object) { + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relationship_append_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type, relation_object); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2454,32 +2782,27 @@ private static object FocusGeometryChangedEvtKey = new object(); /// If relation_object is NULL function removes all relations of the given type. /// Relation type /// Object to remove relation from - /// - virtual public void RelationshipRemove( Efl.Access.RelationType type, Efl.Access.IObject relation_object) { - Efl.Access.IObjectNativeInherit.efl_access_object_relationship_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type, relation_object); + virtual public void RelationshipRemove(Efl.Access.RelationType type, Efl.Access.IObject relation_object) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relationship_remove_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type, relation_object); Eina.Error.RaiseIfUnhandledException(); } /// Removes all relationships in accessible object. - /// virtual public void ClearRelationships() { - Efl.Access.IObjectNativeInherit.efl_access_object_relationships_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relationships_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Notifies accessibility clients about current state of the accessible object. /// Function limits information broadcast to clients to types specified by state_types_mask parameter. /// /// if recursive parameter is set, function will traverse all accessible children and call state_notify function on them. - /// - /// - /// - virtual public void StateNotify( Efl.Access.StateSet state_types_mask, bool recursive) { - Efl.Access.IObjectNativeInherit.efl_access_object_state_notify_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), state_types_mask, recursive); + virtual public void StateNotify(Efl.Access.StateSet state_types_mask, bool recursive) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_state_notify_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),state_types_mask, recursive); Eina.Error.RaiseIfUnhandledException(); } /// Elementary actions /// NULL-terminated array of Efl.Access.Action_Data. virtual public Efl.Access.ActionData GetElmActions() { - var _ret_var = Efl.Access.Widget.IActionNativeInherit.efl_access_widget_action_elm_actions_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Access.Widget.IActionConcrete.NativeMethods.efl_access_widget_action_elm_actions_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2489,41 +2812,36 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Action when data is transferred /// Function pointer to create icon /// Specified seat for multiple seats case. - /// - virtual public void DragStart( Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, Efl.Dnd.DragIconCreate icon_func, uint seat) { + virtual public void DragStart(Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, Efl.Dnd.DragIconCreate icon_func, uint seat) { GCHandle icon_func_handle = GCHandle.Alloc(icon_func); - Efl.Ui.IDndNativeInherit.efl_ui_dnd_drag_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), format, data, action, GCHandle.ToIntPtr(icon_func_handle), Efl.Dnd.DragIconCreateWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); + Efl.Ui.IDndConcrete.NativeMethods.efl_ui_dnd_drag_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),format, data, action, GCHandle.ToIntPtr(icon_func_handle), Efl.Dnd.DragIconCreateWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); Eina.Error.RaiseIfUnhandledException(); } /// Set the action for the drag /// Drag action /// Specified seat for multiple seats case. - /// - virtual public void SetDragAction( Efl.Ui.SelectionAction action, uint seat) { - Efl.Ui.IDndNativeInherit.efl_ui_dnd_drag_action_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), action, seat); + virtual public void SetDragAction(Efl.Ui.SelectionAction action, uint seat) { + Efl.Ui.IDndConcrete.NativeMethods.efl_ui_dnd_drag_action_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),action, seat); Eina.Error.RaiseIfUnhandledException(); } /// Cancel the on-going drag /// Specified seat for multiple seats case. - /// - virtual public void DragCancel( uint seat) { - Efl.Ui.IDndNativeInherit.efl_ui_dnd_drag_cancel_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), seat); + virtual public void DragCancel(uint seat) { + Efl.Ui.IDndConcrete.NativeMethods.efl_ui_dnd_drag_cancel_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),seat); Eina.Error.RaiseIfUnhandledException(); } /// Make the current object as drop target. There are four events emitted: - EFL_UI_DND_EVENT_DRAG_ENTER - EFL_UI_DND_EVENT_DRAG_LEAVE - EFL_UI_DND_EVENT_DRAG_POS - EFL_UI_DND_EVENT_DRAG_DROP. /// Accepted data format /// Specified seat for multiple seats case. - /// - virtual public void AddDropTarget( Efl.Ui.SelectionFormat format, uint seat) { - Efl.Ui.IDndNativeInherit.efl_ui_dnd_drop_target_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), format, seat); + virtual public void AddDropTarget(Efl.Ui.SelectionFormat format, uint seat) { + Efl.Ui.IDndConcrete.NativeMethods.efl_ui_dnd_drop_target_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),format, seat); Eina.Error.RaiseIfUnhandledException(); } /// Delete the dropable status from object /// Accepted data format /// Specified seat for multiple seats case. - /// - virtual public void DelDropTarget( Efl.Ui.SelectionFormat format, uint seat) { - Efl.Ui.IDndNativeInherit.efl_ui_dnd_drop_target_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), format, seat); + virtual public void DelDropTarget(Efl.Ui.SelectionFormat format, uint seat) { + Efl.Ui.IDndConcrete.NativeMethods.efl_ui_dnd_drop_target_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),format, seat); Eina.Error.RaiseIfUnhandledException(); } /// A unique string to be translated. @@ -2532,34 +2850,32 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Setting this property will enable translation for this object or part. /// A translation domain. If null this means the default domain is used. /// This returns the untranslated value of label. The translated string can usually be retrieved with . - virtual public System.String GetL10nText( out System.String domain) { - var _ret_var = Efl.Ui.IL10nNativeInherit.efl_ui_l10n_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out domain); + virtual public System.String GetL10nText(out System.String domain) { + var _ret_var = Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out domain); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the new untranslated string and domain for this object. /// A unique (untranslated) string. /// A translation domain. If null this uses the default domain (eg. set by textdomain()). - /// - virtual public void SetL10nText( System.String label, System.String domain) { - Efl.Ui.IL10nNativeInherit.efl_ui_l10n_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), label, domain); + virtual public void SetL10nText(System.String label, System.String domain) { + Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),label, domain); Eina.Error.RaiseIfUnhandledException(); } /// Requests this object to update its text strings for the current locale. /// Currently strings are translated with dgettext, so support for this function may depend on the platform. It is up to the application to provide its own translation data. /// /// This function is a hook meant to be implemented by any object that supports translation. This can be called whenever a new object is created or when the current locale changes, for instance. This should only trigger further calls to to children objects. - /// virtual public void UpdateTranslation() { - Efl.Ui.IL10nNativeInherit.efl_ui_l10n_translation_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_translation_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// bind property data with the given key string. when the data is ready or changed, bind the data to the key action and process promised work. /// key string for bind model property data /// Model property name /// 0 when it succeed, an error code otherwise. - virtual public Eina.Error PropertyBind( System.String key, System.String property) { - var _ret_var = Efl.Ui.IPropertyBindNativeInherit.efl_ui_property_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key, property); + virtual public Eina.Error PropertyBind(System.String key, System.String property) { + var _ret_var = Efl.Ui.IPropertyBindConcrete.NativeMethods.efl_ui_property_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key, property); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2569,8 +2885,8 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Selection data /// Specified seat for multiple seats case. /// Future for tracking when the selection is lost - virtual public Eina.Future SetSelection( Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat) { - var _ret_var = Efl.Ui.ISelectionNativeInherit.efl_ui_selection_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type, format, data, seat); + virtual public Eina.Future SetSelection(Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat) { + var _ret_var = Efl.Ui.ISelectionConcrete.NativeMethods.efl_ui_selection_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type, format, data, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2579,48 +2895,45 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Selection Format /// Data ready function pointer /// Specified seat for multiple seats case. - /// - virtual public void GetSelection( Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Efl.Ui.SelectionDataReady data_func, uint seat) { + virtual public void GetSelection(Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Efl.Ui.SelectionDataReady data_func, uint seat) { GCHandle data_func_handle = GCHandle.Alloc(data_func); - Efl.Ui.ISelectionNativeInherit.efl_ui_selection_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type, format, GCHandle.ToIntPtr(data_func_handle), Efl.Ui.SelectionDataReadyWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); + Efl.Ui.ISelectionConcrete.NativeMethods.efl_ui_selection_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type, format, GCHandle.ToIntPtr(data_func_handle), Efl.Ui.SelectionDataReadyWrapper.Cb, Efl.Eo.Globals.free_gchandle, seat); Eina.Error.RaiseIfUnhandledException(); } /// Clear the selection data from the object /// Selection Type /// Specified seat for multiple seats case. - /// - virtual public void ClearSelection( Efl.Ui.SelectionType type, uint seat) { - Efl.Ui.ISelectionNativeInherit.efl_ui_selection_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type, seat); + virtual public void ClearSelection(Efl.Ui.SelectionType type, uint seat) { + Efl.Ui.ISelectionConcrete.NativeMethods.efl_ui_selection_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type, seat); Eina.Error.RaiseIfUnhandledException(); } /// Determine whether the selection data has owner /// Selection type /// Specified seat for multiple seats case. /// EINA_TRUE if there is object owns selection, otherwise EINA_FALSE - virtual public bool HasOwner( Efl.Ui.SelectionType type, uint seat) { - var _ret_var = Efl.Ui.ISelectionNativeInherit.efl_ui_selection_has_owner_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type, seat); + virtual public bool HasOwner(Efl.Ui.SelectionType type, uint seat) { + var _ret_var = Efl.Ui.ISelectionConcrete.NativeMethods.efl_ui_selection_has_owner_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Model that is/will be /// Efl model virtual public Efl.IModel GetModel() { - var _ret_var = Efl.Ui.IViewNativeInherit.efl_ui_view_model_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.IViewConcrete.NativeMethods.efl_ui_view_model_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Model that is/will be /// Efl model - /// - virtual public void SetModel( Efl.IModel model) { - Efl.Ui.IViewNativeInherit.efl_ui_view_model_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), model); + virtual public void SetModel(Efl.IModel model) { + Efl.Ui.IViewConcrete.NativeMethods.efl_ui_view_model_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),model); Eina.Error.RaiseIfUnhandledException(); } /// The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects. /// (Since EFL 1.22) /// The geometry to use. virtual public Eina.Rect GetFocusGeometry() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2628,7 +2941,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The focused state of the object. virtual public bool GetFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2636,16 +2949,15 @@ private static object FocusGeometryChangedEvtKey = new object(); /// The function emits the focus state events, if focus is different to the previous state. /// (Since EFL 1.22) /// The focused state of the object. - /// - virtual public void SetFocus( bool focus) { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), focus); + virtual public void SetFocus(bool focus) { + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),focus); Eina.Error.RaiseIfUnhandledException(); } /// This is the focus manager where this focus object is registered in. The element which is the root of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in. /// (Since EFL 1.22) /// The manager object virtual public Efl.Ui.Focus.IManager GetFocusManager() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2653,7 +2965,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// The focus parent. virtual public Efl.Ui.Focus.IObject GetFocusParent() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2661,43 +2973,40 @@ private static object FocusGeometryChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if a child has focus. virtual public bool GetChildFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_child_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_child_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Indicates if a child of this object has focus set to true. /// (Since EFL 1.22) /// true if a child has focus. - /// - virtual public void SetChildFocus( bool child_focus) { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_child_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child_focus); + virtual public void SetChildFocus(bool child_focus) { + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_child_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child_focus); Eina.Error.RaiseIfUnhandledException(); } /// Tells the object that its children will be queried soon by the focus manager. Overwrite this to update the order of the children. Deleting items in this call will result in undefined behaviour and may cause your system to crash. /// (Since EFL 1.22) - /// virtual public void SetupOrder() { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_setup_order_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_setup_order_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This is called when is called, but only on the first call, additional recursive calls to will not call this function again. /// (Since EFL 1.22) - /// virtual public void SetupOrderNonRecursive() { - Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Virtual function handling focus in/out events on the widget /// (Since EFL 1.22) /// true if this widget can handle focus, false otherwise virtual public bool UpdateOnFocus() { - var _ret_var = Efl.Ui.Focus.IObjectNativeInherit.efl_ui_focus_object_on_focus_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IObjectConcrete.NativeMethods.efl_ui_focus_object_on_focus_update_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - public System.Threading.Tasks.Task SetSelectionAsync( Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task SetSelectionAsync(Efl.Ui.SelectionType type,Efl.Ui.SelectionFormat format,Eina.Slice data,uint seat, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = SetSelection( type, format, data, seat); + Eina.Future future = SetSelection( type, format, data, seat); return Efl.Eo.Globals.WrapAsync(future, token); } /// The cursor to be shown when mouse is over the object @@ -2708,7 +3017,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// The cursor name, defined either by the display system or the theme. public System.String Cursor { get { return GetCursor(); } - set { SetCursor( value); } + set { SetCursor(value); } } /// A different style for the cursor. /// This only makes sense if theme cursors are used. The cursor should be set with first before setting its style with this property. @@ -2716,7 +3025,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// A specific style to use, eg. default, transparent, .... public System.String CursorStyle { get { return GetCursorStyle(); } - set { SetCursorStyle( value); } + set { SetCursorStyle(value); } } /// Whether the cursor may be looked in the theme or not. /// If false, the cursor may only come from the render engine, i.e. from the display manager. @@ -2724,14 +3033,14 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Whether to use theme cursors. public bool CursorThemeSearchEnabled { get { return GetCursorThemeSearchEnabled(); } - set { SetCursorThemeSearchEnabled( value); } + set { SetCursorThemeSearchEnabled(value); } } /// This is the internal canvas object managed by a widget. /// This property is protected as it is meant for widget implementations only, to set and access the internal canvas object. Do use this function unless you're implementing a widget. /// (Since EFL 1.22) /// A canvas object (often a object). public Efl.Canvas.Object ResizeObject { - set { SetResizeObject( value); } + set { SetResizeObject(value); } } /// Whether the widget is enabled (accepts and reacts to user inputs). /// The property works counted, this means, whenever n-caller set the value to true, n-caller have to set it to false in order to get it out of the disabled state again. @@ -2741,7 +3050,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// true if the widget is disabled. public bool Disabled { get { return GetDisabled(); } - set { SetDisabled( value); } + set { SetDisabled(value); } } /// The widget style to use. /// Styles define different look and feel for widgets, and may provide different parts for layout-based widgets. Styles vary from widget to widget and may be defined by other themes by means of extensions and overlays. @@ -2751,7 +3060,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Name of the style to use. Refer to each widget's documentation for the available style names, or to the themes in use. public System.String Style { get { return GetStyle(); } - set { SetStyle( value); } + set { SetStyle(value); } } /// The ability for a widget to be focused. /// Unfocusable objects do nothing when programmatically focused. The nearest focusable parent object the one really getting focus. Also, when they receive mouse input, they will get the event, but not take away the focus from where it was previously. @@ -2763,7 +3072,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Whether the object is focusable. public bool FocusAllow { get { return GetFocusAllow(); } - set { SetFocusAllow( value); } + set { SetFocusAllow(value); } } /// The internal parent of this widget. /// objects have a parent hierarchy that may differ slightly from their or hierarchy. This is meant for internal handling. @@ -2771,7 +3080,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Widget parent object public Efl.Ui.Widget WidgetParent { get { return GetWidgetParent(); } - set { SetWidgetParent( value); } + set { SetWidgetParent(value); } } /// Accessibility information. /// This is a replacement string to be read by the accessibility text-to-speech engine, if accessibility is enabled by configuration. This will take precedence over the default text for this object, which means for instance that the label of a button won't be read out loud, instead txt will be read out. @@ -2779,7 +3088,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Accessibility text description. public System.String AccessInfo { get { return GetAccessInfo(); } - set { SetAccessInfo( value); } + set { SetAccessInfo(value); } } /// Region of interest inside this widget, that should be given priority to be visible inside a scroller. /// When this widget or one of its subwidgets is given focus, this region should be shown, which means any parent scroller should attempt to display the given area of this widget. For instance, an entry given focus should scroll to show the text cursor if that cursor moves. In this example, this region defines the relative geometry of the cursor within the widget. @@ -2809,7 +3118,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Chain of objects to pass focus public Eina.List FocusCustomChain { get { return GetFocusCustomChain(); } - set { SetFocusCustomChain( value); } + set { SetFocusCustomChain(value); } } /// Current focused object in object tree. /// (Since EFL 1.22) @@ -2822,14 +3131,14 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Focus move policy public Efl.Ui.Focus.MovePolicy FocusMovePolicy { get { return GetFocusMovePolicy(); } - set { SetFocusMovePolicy( value); } + set { SetFocusMovePolicy(value); } } /// Control the widget's focus_move_policy mode setting. /// (Since EFL 1.22) /// true to follow system focus move policy change, false otherwise public bool FocusMovePolicyAutomatic { get { return GetFocusMovePolicyAutomatic(); } - set { SetFocusMovePolicyAutomatic( value); } + set { SetFocusMovePolicyAutomatic(value); } } /// Get list of available widget actions /// Contains statically allocated strings. @@ -2850,7 +3159,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Accessible name public System.String I18nName { get { return GetI18nName(); } - set { SetI18nName( value); } + set { SetI18nName(value); } } /// Gets an all relations between accessible object and other accessible objects. /// Accessible relation set @@ -2861,13 +3170,13 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Accessible role public Efl.Access.Role Role { get { return GetRole(); } - set { SetRole( value); } + set { SetRole(value); } } /// Gets object's accessible parent. /// Accessible parent public Efl.Access.IObject AccessParent { get { return GetAccessParent(); } - set { SetAccessParent( value); } + set { SetAccessParent(value); } } /// Gets object's accessible children. /// List of widget's children @@ -2889,7 +3198,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Reading information types public Efl.Access.ReadingInfoTypeMask ReadingInfoType { get { return GetReadingInfoType(); } - set { SetReadingInfoType( value); } + set { SetReadingInfoType(value); } } /// Gets index of the child in parent's children list. /// Index in children list @@ -2900,7 +3209,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Accessible contextual information public System.String Description { get { return GetDescription(); } - set { SetDescription( value); } + set { SetDescription(value); } } /// Gets set describing object accessible states. /// Accessible state set @@ -2912,7 +3221,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// If @c true, the object is highlightable. public bool CanHighlight { get { return GetCanHighlight(); } - set { SetCanHighlight( value); } + set { SetCanHighlight(value); } } /// The translation domain of "name" and "description" properties. /// Translation domain should be set if the application wants to support i18n for accessibility "name" and "description" properties. @@ -2923,7 +3232,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Translation domain public System.String TranslationDomain { get { return GetTranslationDomain(); } - set { SetTranslationDomain( value); } + set { SetTranslationDomain(value); } } /// Get root object of accessible object hierarchy /// Root object @@ -2939,7 +3248,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// Efl model public Efl.IModel Model { get { return GetModel(); } - set { SetModel( value); } + set { SetModel(value); } } /// The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects. /// (Since EFL 1.22) @@ -2952,7 +3261,7 @@ private static object FocusGeometryChangedEvtKey = new object(); /// The focused state of the object. public bool Focus { get { return GetFocus(); } - set { SetFocus( value); } + set { SetFocus(value); } } /// This is the focus manager where this focus object is registered in. The element which is the root of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in. /// (Since EFL 1.22) @@ -2971,4227 +3280,6713 @@ private static object FocusGeometryChangedEvtKey = new object(); /// true if a child has focus. public bool ChildFocus { get { return GetChildFocus(); } - set { SetChildFocus( value); } + set { SetChildFocus(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Widget.efl_ui_widget_class_get(); } -} -public class WidgetNativeInherit : Efl.Canvas.GroupNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_widget_cursor_get_static_delegate == null) - efl_ui_widget_cursor_get_static_delegate = new efl_ui_widget_cursor_get_delegate(cursor_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_cursor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_get_static_delegate)}); - if (efl_ui_widget_cursor_set_static_delegate == null) - efl_ui_widget_cursor_set_static_delegate = new efl_ui_widget_cursor_set_delegate(cursor_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_cursor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_set_static_delegate)}); - if (efl_ui_widget_cursor_style_get_static_delegate == null) - efl_ui_widget_cursor_style_get_static_delegate = new efl_ui_widget_cursor_style_get_delegate(cursor_style_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorStyle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_cursor_style_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_style_get_static_delegate)}); - if (efl_ui_widget_cursor_style_set_static_delegate == null) - efl_ui_widget_cursor_style_set_static_delegate = new efl_ui_widget_cursor_style_set_delegate(cursor_style_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursorStyle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_cursor_style_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_style_set_static_delegate)}); - if (efl_ui_widget_cursor_theme_search_enabled_get_static_delegate == null) - efl_ui_widget_cursor_theme_search_enabled_get_static_delegate = new efl_ui_widget_cursor_theme_search_enabled_get_delegate(cursor_theme_search_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetCursorThemeSearchEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_cursor_theme_search_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_theme_search_enabled_get_static_delegate)}); - if (efl_ui_widget_cursor_theme_search_enabled_set_static_delegate == null) - efl_ui_widget_cursor_theme_search_enabled_set_static_delegate = new efl_ui_widget_cursor_theme_search_enabled_set_delegate(cursor_theme_search_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetCursorThemeSearchEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_cursor_theme_search_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_theme_search_enabled_set_static_delegate)}); - if (efl_ui_widget_resize_object_set_static_delegate == null) - efl_ui_widget_resize_object_set_static_delegate = new efl_ui_widget_resize_object_set_delegate(resize_object_set); - if (methods.FirstOrDefault(m => m.Name == "SetResizeObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_resize_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_resize_object_set_static_delegate)}); - if (efl_ui_widget_disabled_get_static_delegate == null) - efl_ui_widget_disabled_get_static_delegate = new efl_ui_widget_disabled_get_delegate(disabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_disabled_get_static_delegate)}); - if (efl_ui_widget_disabled_set_static_delegate == null) - efl_ui_widget_disabled_set_static_delegate = new efl_ui_widget_disabled_set_delegate(disabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_disabled_set_static_delegate)}); - if (efl_ui_widget_style_get_static_delegate == null) - efl_ui_widget_style_get_static_delegate = new efl_ui_widget_style_get_delegate(style_get); - if (methods.FirstOrDefault(m => m.Name == "GetStyle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_style_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_style_get_static_delegate)}); - if (efl_ui_widget_style_set_static_delegate == null) - efl_ui_widget_style_set_static_delegate = new efl_ui_widget_style_set_delegate(style_set); - if (methods.FirstOrDefault(m => m.Name == "SetStyle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_style_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_style_set_static_delegate)}); - if (efl_ui_widget_focus_allow_get_static_delegate == null) - efl_ui_widget_focus_allow_get_static_delegate = new efl_ui_widget_focus_allow_get_delegate(focus_allow_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_allow_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_allow_get_static_delegate)}); - if (efl_ui_widget_focus_allow_set_static_delegate == null) - efl_ui_widget_focus_allow_set_static_delegate = new efl_ui_widget_focus_allow_set_delegate(focus_allow_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocusAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_allow_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_allow_set_static_delegate)}); - if (efl_ui_widget_parent_get_static_delegate == null) - efl_ui_widget_parent_get_static_delegate = new efl_ui_widget_parent_get_delegate(widget_parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetWidgetParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_parent_get_static_delegate)}); - if (efl_ui_widget_parent_set_static_delegate == null) - efl_ui_widget_parent_set_static_delegate = new efl_ui_widget_parent_set_delegate(widget_parent_set); - if (methods.FirstOrDefault(m => m.Name == "SetWidgetParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_parent_set_static_delegate)}); - if (efl_ui_widget_access_info_get_static_delegate == null) - efl_ui_widget_access_info_get_static_delegate = new efl_ui_widget_access_info_get_delegate(access_info_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccessInfo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_access_info_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_access_info_get_static_delegate)}); - if (efl_ui_widget_access_info_set_static_delegate == null) - efl_ui_widget_access_info_set_static_delegate = new efl_ui_widget_access_info_set_delegate(access_info_set); - if (methods.FirstOrDefault(m => m.Name == "SetAccessInfo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_access_info_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_access_info_set_static_delegate)}); - if (efl_ui_widget_interest_region_get_static_delegate == null) - efl_ui_widget_interest_region_get_static_delegate = new efl_ui_widget_interest_region_get_delegate(interest_region_get); - if (methods.FirstOrDefault(m => m.Name == "GetInterestRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_interest_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_interest_region_get_static_delegate)}); - if (efl_ui_widget_focus_highlight_geometry_get_static_delegate == null) - efl_ui_widget_focus_highlight_geometry_get_static_delegate = new efl_ui_widget_focus_highlight_geometry_get_delegate(focus_highlight_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusHighlightGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_highlight_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_highlight_geometry_get_static_delegate)}); - if (efl_ui_widget_focus_order_get_static_delegate == null) - efl_ui_widget_focus_order_get_static_delegate = new efl_ui_widget_focus_order_get_delegate(focus_order_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusOrder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_order_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_order_get_static_delegate)}); - if (efl_ui_widget_focus_custom_chain_get_static_delegate == null) - efl_ui_widget_focus_custom_chain_get_static_delegate = new efl_ui_widget_focus_custom_chain_get_delegate(focus_custom_chain_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusCustomChain") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_custom_chain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_custom_chain_get_static_delegate)}); - if (efl_ui_widget_focus_custom_chain_set_static_delegate == null) - efl_ui_widget_focus_custom_chain_set_static_delegate = new efl_ui_widget_focus_custom_chain_set_delegate(focus_custom_chain_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocusCustomChain") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_custom_chain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_custom_chain_set_static_delegate)}); - if (efl_ui_widget_focused_object_get_static_delegate == null) - efl_ui_widget_focused_object_get_static_delegate = new efl_ui_widget_focused_object_get_delegate(focused_object_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusedObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focused_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focused_object_get_static_delegate)}); - if (efl_ui_widget_focus_move_policy_get_static_delegate == null) - efl_ui_widget_focus_move_policy_get_static_delegate = new efl_ui_widget_focus_move_policy_get_delegate(focus_move_policy_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusMovePolicy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_move_policy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_move_policy_get_static_delegate)}); - if (efl_ui_widget_focus_move_policy_set_static_delegate == null) - efl_ui_widget_focus_move_policy_set_static_delegate = new efl_ui_widget_focus_move_policy_set_delegate(focus_move_policy_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocusMovePolicy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_move_policy_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_move_policy_set_static_delegate)}); - if (efl_ui_widget_focus_move_policy_automatic_get_static_delegate == null) - efl_ui_widget_focus_move_policy_automatic_get_static_delegate = new efl_ui_widget_focus_move_policy_automatic_get_delegate(focus_move_policy_automatic_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusMovePolicyAutomatic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_move_policy_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_move_policy_automatic_get_static_delegate)}); - if (efl_ui_widget_focus_move_policy_automatic_set_static_delegate == null) - efl_ui_widget_focus_move_policy_automatic_set_static_delegate = new efl_ui_widget_focus_move_policy_automatic_set_delegate(focus_move_policy_automatic_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocusMovePolicyAutomatic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_move_policy_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_move_policy_automatic_set_static_delegate)}); - if (efl_ui_widget_input_event_handler_static_delegate == null) - efl_ui_widget_input_event_handler_static_delegate = new efl_ui_widget_input_event_handler_delegate(widget_input_event_handler); - if (methods.FirstOrDefault(m => m.Name == "WidgetInputEventHandler") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_input_event_handler"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_input_event_handler_static_delegate)}); - if (efl_ui_widget_on_access_activate_static_delegate == null) - efl_ui_widget_on_access_activate_static_delegate = new efl_ui_widget_on_access_activate_delegate(on_access_activate); - if (methods.FirstOrDefault(m => m.Name == "OnAccessActivate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_on_access_activate"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_on_access_activate_static_delegate)}); - if (efl_ui_widget_on_access_update_static_delegate == null) - efl_ui_widget_on_access_update_static_delegate = new efl_ui_widget_on_access_update_delegate(on_access_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateOnAccess") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_on_access_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_on_access_update_static_delegate)}); - if (efl_ui_widget_screen_reader_static_delegate == null) - efl_ui_widget_screen_reader_static_delegate = new efl_ui_widget_screen_reader_delegate(screen_reader); - if (methods.FirstOrDefault(m => m.Name == "ScreenReader") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_screen_reader"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_screen_reader_static_delegate)}); - if (efl_ui_widget_atspi_static_delegate == null) - efl_ui_widget_atspi_static_delegate = new efl_ui_widget_atspi_delegate(atspi); - if (methods.FirstOrDefault(m => m.Name == "Atspi") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_atspi"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_atspi_static_delegate)}); - if (efl_ui_widget_sub_object_add_static_delegate == null) - efl_ui_widget_sub_object_add_static_delegate = new efl_ui_widget_sub_object_add_delegate(widget_sub_object_add); - if (methods.FirstOrDefault(m => m.Name == "AddWidgetSubObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_sub_object_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_sub_object_add_static_delegate)}); - if (efl_ui_widget_sub_object_del_static_delegate == null) - efl_ui_widget_sub_object_del_static_delegate = new efl_ui_widget_sub_object_del_delegate(widget_sub_object_del); - if (methods.FirstOrDefault(m => m.Name == "DelWidgetSubObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_sub_object_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_sub_object_del_static_delegate)}); - if (efl_ui_widget_theme_apply_static_delegate == null) - efl_ui_widget_theme_apply_static_delegate = new efl_ui_widget_theme_apply_delegate(theme_apply); - if (methods.FirstOrDefault(m => m.Name == "ThemeApply") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_theme_apply"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_theme_apply_static_delegate)}); - if (efl_ui_widget_scroll_hold_push_static_delegate == null) - efl_ui_widget_scroll_hold_push_static_delegate = new efl_ui_widget_scroll_hold_push_delegate(scroll_hold_push); - if (methods.FirstOrDefault(m => m.Name == "PushScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_scroll_hold_push"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scroll_hold_push_static_delegate)}); - if (efl_ui_widget_scroll_hold_pop_static_delegate == null) - efl_ui_widget_scroll_hold_pop_static_delegate = new efl_ui_widget_scroll_hold_pop_delegate(scroll_hold_pop); - if (methods.FirstOrDefault(m => m.Name == "PopScrollHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_scroll_hold_pop"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scroll_hold_pop_static_delegate)}); - if (efl_ui_widget_scroll_freeze_push_static_delegate == null) - efl_ui_widget_scroll_freeze_push_static_delegate = new efl_ui_widget_scroll_freeze_push_delegate(scroll_freeze_push); - if (methods.FirstOrDefault(m => m.Name == "PushScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_scroll_freeze_push"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scroll_freeze_push_static_delegate)}); - if (efl_ui_widget_scroll_freeze_pop_static_delegate == null) - efl_ui_widget_scroll_freeze_pop_static_delegate = new efl_ui_widget_scroll_freeze_pop_delegate(scroll_freeze_pop); - if (methods.FirstOrDefault(m => m.Name == "PopScrollFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_scroll_freeze_pop"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scroll_freeze_pop_static_delegate)}); - if (efl_ui_widget_part_access_object_get_static_delegate == null) - efl_ui_widget_part_access_object_get_static_delegate = new efl_ui_widget_part_access_object_get_delegate(part_access_object_get); - if (methods.FirstOrDefault(m => m.Name == "GetPartAccessObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_part_access_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_part_access_object_get_static_delegate)}); - if (efl_ui_widget_newest_focus_order_get_static_delegate == null) - efl_ui_widget_newest_focus_order_get_static_delegate = new efl_ui_widget_newest_focus_order_get_delegate(newest_focus_order_get); - if (methods.FirstOrDefault(m => m.Name == "GetNewestFocusOrder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_newest_focus_order_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_newest_focus_order_get_static_delegate)}); - if (efl_ui_widget_focus_next_object_set_static_delegate == null) - efl_ui_widget_focus_next_object_set_static_delegate = new efl_ui_widget_focus_next_object_set_delegate(focus_next_object_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocusNextObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_next_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_object_set_static_delegate)}); - if (efl_ui_widget_focus_next_object_get_static_delegate == null) - efl_ui_widget_focus_next_object_get_static_delegate = new efl_ui_widget_focus_next_object_get_delegate(focus_next_object_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusNextObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_next_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_object_get_static_delegate)}); - if (efl_ui_widget_focus_next_item_set_static_delegate == null) - efl_ui_widget_focus_next_item_set_static_delegate = new efl_ui_widget_focus_next_item_set_delegate(focus_next_item_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocusNextItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_next_item_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_item_set_static_delegate)}); - if (efl_ui_widget_focus_next_item_get_static_delegate == null) - efl_ui_widget_focus_next_item_get_static_delegate = new efl_ui_widget_focus_next_item_get_delegate(focus_next_item_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusNextItem") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_next_item_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_item_get_static_delegate)}); - if (efl_ui_widget_focus_tree_unfocusable_handle_static_delegate == null) - efl_ui_widget_focus_tree_unfocusable_handle_static_delegate = new efl_ui_widget_focus_tree_unfocusable_handle_delegate(focus_tree_unfocusable_handle); - if (methods.FirstOrDefault(m => m.Name == "FocusTreeUnfocusableHandle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_tree_unfocusable_handle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_tree_unfocusable_handle_static_delegate)}); - if (efl_ui_widget_focus_custom_chain_prepend_static_delegate == null) - efl_ui_widget_focus_custom_chain_prepend_static_delegate = new efl_ui_widget_focus_custom_chain_prepend_delegate(focus_custom_chain_prepend); - if (methods.FirstOrDefault(m => m.Name == "FocusCustomChainPrepend") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_custom_chain_prepend"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_custom_chain_prepend_static_delegate)}); - if (efl_ui_widget_focus_cycle_static_delegate == null) - efl_ui_widget_focus_cycle_static_delegate = new efl_ui_widget_focus_cycle_delegate(focus_cycle); - if (methods.FirstOrDefault(m => m.Name == "FocusCycle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_cycle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_cycle_static_delegate)}); - if (efl_ui_widget_focus_direction_static_delegate == null) - efl_ui_widget_focus_direction_static_delegate = new efl_ui_widget_focus_direction_delegate(focus_direction); - if (methods.FirstOrDefault(m => m.Name == "FocusDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_direction"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_direction_static_delegate)}); - if (efl_ui_widget_focus_next_manager_is_static_delegate == null) - efl_ui_widget_focus_next_manager_is_static_delegate = new efl_ui_widget_focus_next_manager_is_delegate(focus_next_manager_is); - if (methods.FirstOrDefault(m => m.Name == "IsFocusNextManager") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_next_manager_is"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_manager_is_static_delegate)}); - if (efl_ui_widget_focus_list_direction_get_static_delegate == null) - efl_ui_widget_focus_list_direction_get_static_delegate = new efl_ui_widget_focus_list_direction_get_delegate(focus_list_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusListDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_list_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_list_direction_get_static_delegate)}); - if (efl_ui_widget_focused_object_clear_static_delegate == null) - efl_ui_widget_focused_object_clear_static_delegate = new efl_ui_widget_focused_object_clear_delegate(focused_object_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearFocusedObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focused_object_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focused_object_clear_static_delegate)}); - if (efl_ui_widget_focus_direction_go_static_delegate == null) - efl_ui_widget_focus_direction_go_static_delegate = new efl_ui_widget_focus_direction_go_delegate(focus_direction_go); - if (methods.FirstOrDefault(m => m.Name == "FocusDirectionGo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_direction_go"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_direction_go_static_delegate)}); - if (efl_ui_widget_focus_next_get_static_delegate == null) - efl_ui_widget_focus_next_get_static_delegate = new efl_ui_widget_focus_next_get_delegate(focus_next_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_next_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_get_static_delegate)}); - if (efl_ui_widget_focus_restore_static_delegate == null) - efl_ui_widget_focus_restore_static_delegate = new efl_ui_widget_focus_restore_delegate(focus_restore); - if (methods.FirstOrDefault(m => m.Name == "FocusRestore") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_restore"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_restore_static_delegate)}); - if (efl_ui_widget_focus_custom_chain_unset_static_delegate == null) - efl_ui_widget_focus_custom_chain_unset_static_delegate = new efl_ui_widget_focus_custom_chain_unset_delegate(focus_custom_chain_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetFocusCustomChain") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_custom_chain_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_custom_chain_unset_static_delegate)}); - if (efl_ui_widget_focus_steal_static_delegate == null) - efl_ui_widget_focus_steal_static_delegate = new efl_ui_widget_focus_steal_delegate(focus_steal); - if (methods.FirstOrDefault(m => m.Name == "FocusSteal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_steal"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_steal_static_delegate)}); - if (efl_ui_widget_focus_hide_handle_static_delegate == null) - efl_ui_widget_focus_hide_handle_static_delegate = new efl_ui_widget_focus_hide_handle_delegate(focus_hide_handle); - if (methods.FirstOrDefault(m => m.Name == "FocusHideHandle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_hide_handle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_hide_handle_static_delegate)}); - if (efl_ui_widget_focus_next_static_delegate == null) - efl_ui_widget_focus_next_static_delegate = new efl_ui_widget_focus_next_delegate(focus_next); - if (methods.FirstOrDefault(m => m.Name == "FocusNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_next"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_static_delegate)}); - if (efl_ui_widget_focus_list_next_get_static_delegate == null) - efl_ui_widget_focus_list_next_get_static_delegate = new efl_ui_widget_focus_list_next_get_delegate(focus_list_next_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusListNext") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_list_next_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_list_next_get_static_delegate)}); - if (efl_ui_widget_focus_mouse_up_handle_static_delegate == null) - efl_ui_widget_focus_mouse_up_handle_static_delegate = new efl_ui_widget_focus_mouse_up_handle_delegate(focus_mouse_up_handle); - if (methods.FirstOrDefault(m => m.Name == "FocusMouseUpHandle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_mouse_up_handle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_mouse_up_handle_static_delegate)}); - if (efl_ui_widget_focus_direction_get_static_delegate == null) - efl_ui_widget_focus_direction_get_static_delegate = new efl_ui_widget_focus_direction_get_delegate(focus_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_direction_get_static_delegate)}); - if (efl_ui_widget_focus_disabled_handle_static_delegate == null) - efl_ui_widget_focus_disabled_handle_static_delegate = new efl_ui_widget_focus_disabled_handle_delegate(focus_disabled_handle); - if (methods.FirstOrDefault(m => m.Name == "FocusDisabledHandle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_disabled_handle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_disabled_handle_static_delegate)}); - if (efl_ui_widget_focus_custom_chain_append_static_delegate == null) - efl_ui_widget_focus_custom_chain_append_static_delegate = new efl_ui_widget_focus_custom_chain_append_delegate(focus_custom_chain_append); - if (methods.FirstOrDefault(m => m.Name == "AppendFocusCustomChain") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_custom_chain_append"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_custom_chain_append_static_delegate)}); - if (efl_ui_widget_focus_reconfigure_static_delegate == null) - efl_ui_widget_focus_reconfigure_static_delegate = new efl_ui_widget_focus_reconfigure_delegate(focus_reconfigure); - if (methods.FirstOrDefault(m => m.Name == "FocusReconfigure") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_reconfigure"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_reconfigure_static_delegate)}); - if (efl_ui_widget_focus_direction_manager_is_static_delegate == null) - efl_ui_widget_focus_direction_manager_is_static_delegate = new efl_ui_widget_focus_direction_manager_is_delegate(focus_direction_manager_is); - if (methods.FirstOrDefault(m => m.Name == "IsFocusDirectionManager") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_direction_manager_is"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_direction_manager_is_static_delegate)}); - if (efl_ui_widget_focus_state_apply_static_delegate == null) - efl_ui_widget_focus_state_apply_static_delegate = new efl_ui_widget_focus_state_apply_delegate(focus_state_apply); - if (methods.FirstOrDefault(m => m.Name == "FocusStateApply") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_state_apply"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_state_apply_static_delegate)}); - if (efl_part_get_static_delegate == null) - efl_part_get_static_delegate = new efl_part_get_delegate(part_get); - if (methods.FirstOrDefault(m => m.Name == "GetPart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_part_get"), func = Marshal.GetFunctionPointerForDelegate(efl_part_get_static_delegate)}); - if (efl_access_action_name_get_static_delegate == null) - efl_access_action_name_get_static_delegate = new efl_access_action_name_get_delegate(action_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetActionName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_name_get_static_delegate)}); - if (efl_access_action_localized_name_get_static_delegate == null) - efl_access_action_localized_name_get_static_delegate = new efl_access_action_localized_name_get_delegate(action_localized_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetActionLocalizedName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_localized_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_localized_name_get_static_delegate)}); - if (efl_access_action_actions_get_static_delegate == null) - efl_access_action_actions_get_static_delegate = new efl_access_action_actions_get_delegate(actions_get); - if (methods.FirstOrDefault(m => m.Name == "GetActions") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_actions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_actions_get_static_delegate)}); - if (efl_access_action_do_static_delegate == null) - efl_access_action_do_static_delegate = new efl_access_action_do_delegate(action_do); - if (methods.FirstOrDefault(m => m.Name == "ActionDo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_do"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_do_static_delegate)}); - if (efl_access_action_keybinding_get_static_delegate == null) - efl_access_action_keybinding_get_static_delegate = new efl_access_action_keybinding_get_delegate(action_keybinding_get); - if (methods.FirstOrDefault(m => m.Name == "GetActionKeybinding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_action_keybinding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_keybinding_get_static_delegate)}); - if (efl_access_component_z_order_get_static_delegate == null) - efl_access_component_z_order_get_static_delegate = new efl_access_component_z_order_get_delegate(z_order_get); - if (methods.FirstOrDefault(m => m.Name == "GetZOrder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_z_order_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_z_order_get_static_delegate)}); - if (efl_access_component_extents_get_static_delegate == null) - efl_access_component_extents_get_static_delegate = new efl_access_component_extents_get_delegate(extents_get); - if (methods.FirstOrDefault(m => m.Name == "GetExtents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_extents_get_static_delegate)}); - if (efl_access_component_extents_set_static_delegate == null) - efl_access_component_extents_set_static_delegate = new efl_access_component_extents_set_delegate(extents_set); - if (methods.FirstOrDefault(m => m.Name == "SetExtents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_extents_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_extents_set_static_delegate)}); - if (efl_access_component_screen_position_get_static_delegate == null) - efl_access_component_screen_position_get_static_delegate = new efl_access_component_screen_position_get_delegate(screen_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetScreenPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_screen_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_screen_position_get_static_delegate)}); - if (efl_access_component_screen_position_set_static_delegate == null) - efl_access_component_screen_position_set_static_delegate = new efl_access_component_screen_position_set_delegate(screen_position_set); - if (methods.FirstOrDefault(m => m.Name == "SetScreenPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_screen_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_screen_position_set_static_delegate)}); - if (efl_access_component_socket_offset_get_static_delegate == null) - efl_access_component_socket_offset_get_static_delegate = new efl_access_component_socket_offset_get_delegate(socket_offset_get); - if (methods.FirstOrDefault(m => m.Name == "GetSocketOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_socket_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_socket_offset_get_static_delegate)}); - if (efl_access_component_socket_offset_set_static_delegate == null) - efl_access_component_socket_offset_set_static_delegate = new efl_access_component_socket_offset_set_delegate(socket_offset_set); - if (methods.FirstOrDefault(m => m.Name == "SetSocketOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_socket_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_socket_offset_set_static_delegate)}); - if (efl_access_component_contains_static_delegate == null) - efl_access_component_contains_static_delegate = new efl_access_component_contains_delegate(contains); - if (methods.FirstOrDefault(m => m.Name == "Contains") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_contains"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_contains_static_delegate)}); - if (efl_access_component_focus_grab_static_delegate == null) - efl_access_component_focus_grab_static_delegate = new efl_access_component_focus_grab_delegate(focus_grab); - if (methods.FirstOrDefault(m => m.Name == "GrabFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_focus_grab"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_focus_grab_static_delegate)}); - if (efl_access_component_accessible_at_point_get_static_delegate == null) - efl_access_component_accessible_at_point_get_static_delegate = new efl_access_component_accessible_at_point_get_delegate(accessible_at_point_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccessibleAtPoint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_accessible_at_point_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_accessible_at_point_get_static_delegate)}); - if (efl_access_component_highlight_grab_static_delegate == null) - efl_access_component_highlight_grab_static_delegate = new efl_access_component_highlight_grab_delegate(highlight_grab); - if (methods.FirstOrDefault(m => m.Name == "GrabHighlight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_highlight_grab"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_highlight_grab_static_delegate)}); - if (efl_access_component_highlight_clear_static_delegate == null) - efl_access_component_highlight_clear_static_delegate = new efl_access_component_highlight_clear_delegate(highlight_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearHighlight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_component_highlight_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_highlight_clear_static_delegate)}); - if (efl_access_object_localized_role_name_get_static_delegate == null) - efl_access_object_localized_role_name_get_static_delegate = new efl_access_object_localized_role_name_get_delegate(localized_role_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetLocalizedRoleName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_localized_role_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_localized_role_name_get_static_delegate)}); - if (efl_access_object_i18n_name_get_static_delegate == null) - efl_access_object_i18n_name_get_static_delegate = new efl_access_object_i18n_name_get_delegate(i18n_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetI18nName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_i18n_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_i18n_name_get_static_delegate)}); - if (efl_access_object_i18n_name_set_static_delegate == null) - efl_access_object_i18n_name_set_static_delegate = new efl_access_object_i18n_name_set_delegate(i18n_name_set); - if (methods.FirstOrDefault(m => m.Name == "SetI18nName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_i18n_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_i18n_name_set_static_delegate)}); - if (efl_access_object_name_cb_set_static_delegate == null) - efl_access_object_name_cb_set_static_delegate = new efl_access_object_name_cb_set_delegate(name_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetNameCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_name_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_name_cb_set_static_delegate)}); - if (efl_access_object_relation_set_get_static_delegate == null) - efl_access_object_relation_set_get_static_delegate = new efl_access_object_relation_set_get_delegate(relation_set_get); - if (methods.FirstOrDefault(m => m.Name == "GetRelationSet") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_relation_set_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relation_set_get_static_delegate)}); - if (efl_access_object_role_get_static_delegate == null) - efl_access_object_role_get_static_delegate = new efl_access_object_role_get_delegate(role_get); - if (methods.FirstOrDefault(m => m.Name == "GetRole") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_role_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_get_static_delegate)}); - if (efl_access_object_role_set_static_delegate == null) - efl_access_object_role_set_static_delegate = new efl_access_object_role_set_delegate(role_set); - if (methods.FirstOrDefault(m => m.Name == "SetRole") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_role_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_set_static_delegate)}); - if (efl_access_object_access_parent_get_static_delegate == null) - efl_access_object_access_parent_get_static_delegate = new efl_access_object_access_parent_get_delegate(access_parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccessParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_access_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_parent_get_static_delegate)}); - if (efl_access_object_access_parent_set_static_delegate == null) - efl_access_object_access_parent_set_static_delegate = new efl_access_object_access_parent_set_delegate(access_parent_set); - if (methods.FirstOrDefault(m => m.Name == "SetAccessParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_access_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_parent_set_static_delegate)}); - if (efl_access_object_description_cb_set_static_delegate == null) - efl_access_object_description_cb_set_static_delegate = new efl_access_object_description_cb_set_delegate(description_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetDescriptionCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_description_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_cb_set_static_delegate)}); - if (efl_access_object_gesture_cb_set_static_delegate == null) - efl_access_object_gesture_cb_set_static_delegate = new efl_access_object_gesture_cb_set_delegate(gesture_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetGestureCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_gesture_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_gesture_cb_set_static_delegate)}); - if (efl_access_object_access_children_get_static_delegate == null) - efl_access_object_access_children_get_static_delegate = new efl_access_object_access_children_get_delegate(access_children_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccessChildren") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_access_children_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_children_get_static_delegate)}); - if (efl_access_object_role_name_get_static_delegate == null) - efl_access_object_role_name_get_static_delegate = new efl_access_object_role_name_get_delegate(role_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoleName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_role_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_name_get_static_delegate)}); - if (efl_access_object_attributes_get_static_delegate == null) - efl_access_object_attributes_get_static_delegate = new efl_access_object_attributes_get_delegate(attributes_get); - if (methods.FirstOrDefault(m => m.Name == "GetAttributes") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attributes_get_static_delegate)}); - if (efl_access_object_reading_info_type_get_static_delegate == null) - efl_access_object_reading_info_type_get_static_delegate = new efl_access_object_reading_info_type_get_delegate(reading_info_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetReadingInfoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_reading_info_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_reading_info_type_get_static_delegate)}); - if (efl_access_object_reading_info_type_set_static_delegate == null) - efl_access_object_reading_info_type_set_static_delegate = new efl_access_object_reading_info_type_set_delegate(reading_info_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetReadingInfoType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_reading_info_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_reading_info_type_set_static_delegate)}); - if (efl_access_object_index_in_parent_get_static_delegate == null) - efl_access_object_index_in_parent_get_static_delegate = new efl_access_object_index_in_parent_get_delegate(index_in_parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetIndexInParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_index_in_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_index_in_parent_get_static_delegate)}); - if (efl_access_object_description_get_static_delegate == null) - efl_access_object_description_get_static_delegate = new efl_access_object_description_get_delegate(description_get); - if (methods.FirstOrDefault(m => m.Name == "GetDescription") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_description_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_get_static_delegate)}); - if (efl_access_object_description_set_static_delegate == null) - efl_access_object_description_set_static_delegate = new efl_access_object_description_set_delegate(description_set); - if (methods.FirstOrDefault(m => m.Name == "SetDescription") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_description_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_set_static_delegate)}); - if (efl_access_object_state_set_get_static_delegate == null) - efl_access_object_state_set_get_static_delegate = new efl_access_object_state_set_get_delegate(state_set_get); - if (methods.FirstOrDefault(m => m.Name == "GetStateSet") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_state_set_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_state_set_get_static_delegate)}); - if (efl_access_object_can_highlight_get_static_delegate == null) - efl_access_object_can_highlight_get_static_delegate = new efl_access_object_can_highlight_get_delegate(can_highlight_get); - if (methods.FirstOrDefault(m => m.Name == "GetCanHighlight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_can_highlight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_get_static_delegate)}); - if (efl_access_object_can_highlight_set_static_delegate == null) - efl_access_object_can_highlight_set_static_delegate = new efl_access_object_can_highlight_set_delegate(can_highlight_set); - if (methods.FirstOrDefault(m => m.Name == "SetCanHighlight") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_can_highlight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_set_static_delegate)}); - if (efl_access_object_translation_domain_get_static_delegate == null) - efl_access_object_translation_domain_get_static_delegate = new efl_access_object_translation_domain_get_delegate(translation_domain_get); - if (methods.FirstOrDefault(m => m.Name == "GetTranslationDomain") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_translation_domain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_get_static_delegate)}); - if (efl_access_object_translation_domain_set_static_delegate == null) - efl_access_object_translation_domain_set_static_delegate = new efl_access_object_translation_domain_set_delegate(translation_domain_set); - if (methods.FirstOrDefault(m => m.Name == "SetTranslationDomain") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_translation_domain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_set_static_delegate)}); - if (efl_access_object_gesture_do_static_delegate == null) - efl_access_object_gesture_do_static_delegate = new efl_access_object_gesture_do_delegate(gesture_do); - if (methods.FirstOrDefault(m => m.Name == "GestureDo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_gesture_do"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_gesture_do_static_delegate)}); - if (efl_access_object_attribute_append_static_delegate == null) - efl_access_object_attribute_append_static_delegate = new efl_access_object_attribute_append_delegate(attribute_append); - if (methods.FirstOrDefault(m => m.Name == "AppendAttribute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_attribute_append"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attribute_append_static_delegate)}); - if (efl_access_object_attribute_del_static_delegate == null) - efl_access_object_attribute_del_static_delegate = new efl_access_object_attribute_del_delegate(attribute_del); - if (methods.FirstOrDefault(m => m.Name == "DelAttribute") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_attribute_del"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attribute_del_static_delegate)}); - if (efl_access_object_attributes_clear_static_delegate == null) - efl_access_object_attributes_clear_static_delegate = new efl_access_object_attributes_clear_delegate(attributes_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearAttributes") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_attributes_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attributes_clear_static_delegate)}); - if (efl_access_object_relationship_append_static_delegate == null) - efl_access_object_relationship_append_static_delegate = new efl_access_object_relationship_append_delegate(relationship_append); - if (methods.FirstOrDefault(m => m.Name == "AppendRelationship") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_relationship_append"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationship_append_static_delegate)}); - if (efl_access_object_relationship_remove_static_delegate == null) - efl_access_object_relationship_remove_static_delegate = new efl_access_object_relationship_remove_delegate(relationship_remove); - if (methods.FirstOrDefault(m => m.Name == "RelationshipRemove") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_relationship_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationship_remove_static_delegate)}); - if (efl_access_object_relationships_clear_static_delegate == null) - efl_access_object_relationships_clear_static_delegate = new efl_access_object_relationships_clear_delegate(relationships_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearRelationships") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_relationships_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationships_clear_static_delegate)}); - if (efl_access_object_state_notify_static_delegate == null) - efl_access_object_state_notify_static_delegate = new efl_access_object_state_notify_delegate(state_notify); - if (methods.FirstOrDefault(m => m.Name == "StateNotify") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_object_state_notify"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_state_notify_static_delegate)}); - if (efl_access_widget_action_elm_actions_get_static_delegate == null) - efl_access_widget_action_elm_actions_get_static_delegate = new efl_access_widget_action_elm_actions_get_delegate(elm_actions_get); - if (methods.FirstOrDefault(m => m.Name == "GetElmActions") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_access_widget_action_elm_actions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_widget_action_elm_actions_get_static_delegate)}); - if (efl_ui_dnd_drag_start_static_delegate == null) - efl_ui_dnd_drag_start_static_delegate = new efl_ui_dnd_drag_start_delegate(drag_start); - if (methods.FirstOrDefault(m => m.Name == "DragStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_drag_start"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_start_static_delegate)}); - if (efl_ui_dnd_drag_action_set_static_delegate == null) - efl_ui_dnd_drag_action_set_static_delegate = new efl_ui_dnd_drag_action_set_delegate(drag_action_set); - if (methods.FirstOrDefault(m => m.Name == "SetDragAction") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_drag_action_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_action_set_static_delegate)}); - if (efl_ui_dnd_drag_cancel_static_delegate == null) - efl_ui_dnd_drag_cancel_static_delegate = new efl_ui_dnd_drag_cancel_delegate(drag_cancel); - if (methods.FirstOrDefault(m => m.Name == "DragCancel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_drag_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_cancel_static_delegate)}); - if (efl_ui_dnd_drop_target_add_static_delegate == null) - efl_ui_dnd_drop_target_add_static_delegate = new efl_ui_dnd_drop_target_add_delegate(drop_target_add); - if (methods.FirstOrDefault(m => m.Name == "AddDropTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_drop_target_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drop_target_add_static_delegate)}); - if (efl_ui_dnd_drop_target_del_static_delegate == null) - efl_ui_dnd_drop_target_del_static_delegate = new efl_ui_dnd_drop_target_del_delegate(drop_target_del); - if (methods.FirstOrDefault(m => m.Name == "DelDropTarget") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_dnd_drop_target_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drop_target_del_static_delegate)}); - if (efl_ui_l10n_text_get_static_delegate == null) - efl_ui_l10n_text_get_static_delegate = new efl_ui_l10n_text_get_delegate(l10n_text_get); - if (methods.FirstOrDefault(m => m.Name == "GetL10nText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_get_static_delegate)}); - if (efl_ui_l10n_text_set_static_delegate == null) - efl_ui_l10n_text_set_static_delegate = new efl_ui_l10n_text_set_delegate(l10n_text_set); - if (methods.FirstOrDefault(m => m.Name == "SetL10nText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_set_static_delegate)}); - if (efl_ui_l10n_translation_update_static_delegate == null) - efl_ui_l10n_translation_update_static_delegate = new efl_ui_l10n_translation_update_delegate(translation_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateTranslation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_l10n_translation_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_translation_update_static_delegate)}); - if (efl_ui_property_bind_static_delegate == null) - efl_ui_property_bind_static_delegate = new efl_ui_property_bind_delegate(property_bind); - if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_property_bind_static_delegate)}); - if (efl_ui_selection_set_static_delegate == null) - efl_ui_selection_set_static_delegate = new efl_ui_selection_set_delegate(selection_set); - if (methods.FirstOrDefault(m => m.Name == "SetSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_set_static_delegate)}); - if (efl_ui_selection_get_static_delegate == null) - efl_ui_selection_get_static_delegate = new efl_ui_selection_get_delegate(selection_get); - if (methods.FirstOrDefault(m => m.Name == "GetSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_get_static_delegate)}); - if (efl_ui_selection_clear_static_delegate == null) - efl_ui_selection_clear_static_delegate = new efl_ui_selection_clear_delegate(selection_clear); - if (methods.FirstOrDefault(m => m.Name == "ClearSelection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_clear_static_delegate)}); - if (efl_ui_selection_has_owner_static_delegate == null) - efl_ui_selection_has_owner_static_delegate = new efl_ui_selection_has_owner_delegate(has_owner); - if (methods.FirstOrDefault(m => m.Name == "HasOwner") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_selection_has_owner"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_has_owner_static_delegate)}); - if (efl_ui_view_model_get_static_delegate == null) - efl_ui_view_model_get_static_delegate = new efl_ui_view_model_get_delegate(model_get); - if (methods.FirstOrDefault(m => m.Name == "GetModel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_view_model_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_get_static_delegate)}); - if (efl_ui_view_model_set_static_delegate == null) - efl_ui_view_model_set_static_delegate = new efl_ui_view_model_set_delegate(model_set); - if (methods.FirstOrDefault(m => m.Name == "SetModel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_view_model_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_set_static_delegate)}); - if (efl_ui_focus_object_focus_geometry_get_static_delegate == null) - efl_ui_focus_object_focus_geometry_get_static_delegate = new efl_ui_focus_object_focus_geometry_get_delegate(focus_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_geometry_get_static_delegate)}); - if (efl_ui_focus_object_focus_get_static_delegate == null) - efl_ui_focus_object_focus_get_static_delegate = new efl_ui_focus_object_focus_get_delegate(focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_get_static_delegate)}); - if (efl_ui_focus_object_focus_set_static_delegate == null) - efl_ui_focus_object_focus_set_static_delegate = new efl_ui_focus_object_focus_set_delegate(focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_set_static_delegate)}); - if (efl_ui_focus_object_focus_manager_get_static_delegate == null) - efl_ui_focus_object_focus_manager_get_static_delegate = new efl_ui_focus_object_focus_manager_get_delegate(focus_manager_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusManager") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_manager_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_manager_get_static_delegate)}); - if (efl_ui_focus_object_focus_parent_get_static_delegate == null) - efl_ui_focus_object_focus_parent_get_static_delegate = new efl_ui_focus_object_focus_parent_get_delegate(focus_parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_focus_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_parent_get_static_delegate)}); - if (efl_ui_focus_object_child_focus_get_static_delegate == null) - efl_ui_focus_object_child_focus_get_static_delegate = new efl_ui_focus_object_child_focus_get_delegate(child_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetChildFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_child_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_get_static_delegate)}); - if (efl_ui_focus_object_child_focus_set_static_delegate == null) - efl_ui_focus_object_child_focus_set_static_delegate = new efl_ui_focus_object_child_focus_set_delegate(child_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetChildFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_child_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_set_static_delegate)}); - if (efl_ui_focus_object_setup_order_static_delegate == null) - efl_ui_focus_object_setup_order_static_delegate = new efl_ui_focus_object_setup_order_delegate(setup_order); - if (methods.FirstOrDefault(m => m.Name == "SetupOrder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_setup_order"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_static_delegate)}); - if (efl_ui_focus_object_setup_order_non_recursive_static_delegate == null) - efl_ui_focus_object_setup_order_non_recursive_static_delegate = new efl_ui_focus_object_setup_order_non_recursive_delegate(setup_order_non_recursive); - if (methods.FirstOrDefault(m => m.Name == "SetupOrderNonRecursive") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_setup_order_non_recursive"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_non_recursive_static_delegate)}); - if (efl_ui_focus_object_on_focus_update_static_delegate == null) - efl_ui_focus_object_on_focus_update_static_delegate = new efl_ui_focus_object_on_focus_update_delegate(on_focus_update); - if (methods.FirstOrDefault(m => m.Name == "UpdateOnFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_object_on_focus_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_on_focus_update_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Widget.efl_ui_widget_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Group.NativeMethods { - return Efl.Ui.Widget.efl_ui_widget_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_widget_cursor_get_static_delegate == null) + { + efl_ui_widget_cursor_get_static_delegate = new efl_ui_widget_cursor_get_delegate(cursor_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_widget_cursor_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCursor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_cursor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_get_static_delegate) }); + } + if (efl_ui_widget_cursor_set_static_delegate == null) + { + efl_ui_widget_cursor_set_static_delegate = new efl_ui_widget_cursor_set_delegate(cursor_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_widget_cursor_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_cursor_get"); - private static System.String cursor_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_cursor_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetCursor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCursor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_cursor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_widget_cursor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_widget_cursor_get_delegate efl_ui_widget_cursor_get_static_delegate; + if (efl_ui_widget_cursor_style_get_static_delegate == null) + { + efl_ui_widget_cursor_style_get_static_delegate = new efl_ui_widget_cursor_style_get_delegate(cursor_style_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_cursor_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cursor); + if (methods.FirstOrDefault(m => m.Name == "GetCursorStyle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_cursor_style_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_style_get_static_delegate) }); + } + if (efl_ui_widget_cursor_style_set_static_delegate == null) + { + efl_ui_widget_cursor_style_set_static_delegate = new efl_ui_widget_cursor_style_set_delegate(cursor_style_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_cursor_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cursor); - public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_cursor_set"); - private static bool cursor_set(System.IntPtr obj, System.IntPtr pd, System.String cursor) - { - Eina.Log.Debug("function efl_ui_widget_cursor_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).SetCursor( cursor); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCursorStyle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_cursor_style_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_style_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_widget_cursor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cursor); - } - } - private static efl_ui_widget_cursor_set_delegate efl_ui_widget_cursor_set_static_delegate; + if (efl_ui_widget_cursor_theme_search_enabled_get_static_delegate == null) + { + efl_ui_widget_cursor_theme_search_enabled_get_static_delegate = new efl_ui_widget_cursor_theme_search_enabled_get_delegate(cursor_theme_search_enabled_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_widget_cursor_style_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetCursorThemeSearchEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_cursor_theme_search_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_theme_search_enabled_get_static_delegate) }); + } + if (efl_ui_widget_cursor_theme_search_enabled_set_static_delegate == null) + { + efl_ui_widget_cursor_theme_search_enabled_set_static_delegate = new efl_ui_widget_cursor_theme_search_enabled_set_delegate(cursor_theme_search_enabled_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_widget_cursor_style_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_style_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_cursor_style_get"); - private static System.String cursor_style_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_cursor_style_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetCursorStyle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetCursorThemeSearchEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_cursor_theme_search_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_cursor_theme_search_enabled_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_widget_cursor_style_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_widget_cursor_style_get_delegate efl_ui_widget_cursor_style_get_static_delegate; + if (efl_ui_widget_resize_object_set_static_delegate == null) + { + efl_ui_widget_resize_object_set_static_delegate = new efl_ui_widget_resize_object_set_delegate(resize_object_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_cursor_style_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + if (methods.FirstOrDefault(m => m.Name == "SetResizeObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_resize_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_resize_object_set_static_delegate) }); + } + if (efl_ui_widget_disabled_get_static_delegate == null) + { + efl_ui_widget_disabled_get_static_delegate = new efl_ui_widget_disabled_get_delegate(disabled_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_cursor_style_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); - public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_style_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_cursor_style_set"); - private static bool cursor_style_set(System.IntPtr obj, System.IntPtr pd, System.String style) - { - Eina.Log.Debug("function efl_ui_widget_cursor_style_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).SetCursorStyle( style); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_disabled_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_widget_cursor_style_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); - } - } - private static efl_ui_widget_cursor_style_set_delegate efl_ui_widget_cursor_style_set_static_delegate; + if (efl_ui_widget_disabled_set_static_delegate == null) + { + efl_ui_widget_disabled_set_static_delegate = new efl_ui_widget_disabled_set_delegate(disabled_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_cursor_theme_search_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_disabled_set_static_delegate) }); + } + if (efl_ui_widget_style_get_static_delegate == null) + { + efl_ui_widget_style_get_static_delegate = new efl_ui_widget_style_get_delegate(style_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_cursor_theme_search_enabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_theme_search_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_cursor_theme_search_enabled_get"); - private static bool cursor_theme_search_enabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_cursor_theme_search_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GetCursorThemeSearchEnabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetStyle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_style_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_style_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_widget_cursor_theme_search_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_widget_cursor_theme_search_enabled_get_delegate efl_ui_widget_cursor_theme_search_enabled_get_static_delegate; + if (efl_ui_widget_style_set_static_delegate == null) + { + efl_ui_widget_style_set_static_delegate = new efl_ui_widget_style_set_delegate(style_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_cursor_theme_search_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allow); + if (methods.FirstOrDefault(m => m.Name == "SetStyle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_style_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_style_set_static_delegate) }); + } + if (efl_ui_widget_focus_allow_get_static_delegate == null) + { + efl_ui_widget_focus_allow_get_static_delegate = new efl_ui_widget_focus_allow_get_delegate(focus_allow_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_cursor_theme_search_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allow); - public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_theme_search_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_cursor_theme_search_enabled_set"); - private static bool cursor_theme_search_enabled_set(System.IntPtr obj, System.IntPtr pd, bool allow) - { - Eina.Log.Debug("function efl_ui_widget_cursor_theme_search_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).SetCursorThemeSearchEnabled( allow); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFocusAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_allow_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_allow_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_widget_cursor_theme_search_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allow); - } - } - private static efl_ui_widget_cursor_theme_search_enabled_set_delegate efl_ui_widget_cursor_theme_search_enabled_set_static_delegate; + if (efl_ui_widget_focus_allow_set_static_delegate == null) + { + efl_ui_widget_focus_allow_set_static_delegate = new efl_ui_widget_focus_allow_set_delegate(focus_allow_set); + } - private delegate void efl_ui_widget_resize_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sobj); + if (methods.FirstOrDefault(m => m.Name == "SetFocusAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_allow_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_allow_set_static_delegate) }); + } + if (efl_ui_widget_parent_get_static_delegate == null) + { + efl_ui_widget_parent_get_static_delegate = new efl_ui_widget_parent_get_delegate(widget_parent_get); + } - public delegate void efl_ui_widget_resize_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sobj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_resize_object_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_resize_object_set"); - private static void resize_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sobj) - { - Eina.Log.Debug("function efl_ui_widget_resize_object_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetResizeObject( sobj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_resize_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sobj); - } - } - private static efl_ui_widget_resize_object_set_delegate efl_ui_widget_resize_object_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetWidgetParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_parent_get_static_delegate) }); + } + if (efl_ui_widget_parent_set_static_delegate == null) + { + efl_ui_widget_parent_set_static_delegate = new efl_ui_widget_parent_set_delegate(widget_parent_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetWidgetParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_parent_set_static_delegate) }); + } + if (efl_ui_widget_access_info_get_static_delegate == null) + { + efl_ui_widget_access_info_get_static_delegate = new efl_ui_widget_access_info_get_delegate(access_info_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_disabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_disabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_disabled_get"); - private static bool disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_disabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GetDisabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetAccessInfo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_access_info_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_access_info_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_widget_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_widget_disabled_get_delegate efl_ui_widget_disabled_get_static_delegate; + if (efl_ui_widget_access_info_set_static_delegate == null) + { + efl_ui_widget_access_info_set_static_delegate = new efl_ui_widget_access_info_set_delegate(access_info_set); + } - private delegate void efl_ui_widget_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + if (methods.FirstOrDefault(m => m.Name == "SetAccessInfo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_access_info_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_access_info_set_static_delegate) }); + } + if (efl_ui_widget_interest_region_get_static_delegate == null) + { + efl_ui_widget_interest_region_get_static_delegate = new efl_ui_widget_interest_region_get_delegate(interest_region_get); + } - public delegate void efl_ui_widget_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public static Efl.Eo.FunctionWrapper efl_ui_widget_disabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_disabled_set"); - private static void disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function efl_ui_widget_disabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetDisabled( disabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - private static efl_ui_widget_disabled_set_delegate efl_ui_widget_disabled_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetInterestRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_interest_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_interest_region_get_static_delegate) }); + } + if (efl_ui_widget_focus_highlight_geometry_get_static_delegate == null) + { + efl_ui_widget_focus_highlight_geometry_get_static_delegate = new efl_ui_widget_focus_highlight_geometry_get_delegate(focus_highlight_geometry_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_widget_style_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFocusHighlightGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_highlight_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_highlight_geometry_get_static_delegate) }); + } + if (efl_ui_widget_focus_order_get_static_delegate == null) + { + efl_ui_widget_focus_order_get_static_delegate = new efl_ui_widget_focus_order_get_delegate(focus_order_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_widget_style_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_style_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_style_get"); - private static System.String style_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_style_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetStyle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFocusOrder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_order_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_order_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_widget_style_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_widget_style_get_delegate efl_ui_widget_style_get_static_delegate; + if (efl_ui_widget_focus_custom_chain_get_static_delegate == null) + { + efl_ui_widget_focus_custom_chain_get_static_delegate = new efl_ui_widget_focus_custom_chain_get_delegate(focus_custom_chain_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusCustomChain") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_custom_chain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_custom_chain_get_static_delegate) }); + } + + if (efl_ui_widget_focus_custom_chain_set_static_delegate == null) + { + efl_ui_widget_focus_custom_chain_set_static_delegate = new efl_ui_widget_focus_custom_chain_set_delegate(focus_custom_chain_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFocusCustomChain") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_custom_chain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_custom_chain_set_static_delegate) }); + } + + if (efl_ui_widget_focused_object_get_static_delegate == null) + { + efl_ui_widget_focused_object_get_static_delegate = new efl_ui_widget_focused_object_get_delegate(focused_object_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusedObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focused_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focused_object_get_static_delegate) }); + } + + if (efl_ui_widget_focus_move_policy_get_static_delegate == null) + { + efl_ui_widget_focus_move_policy_get_static_delegate = new efl_ui_widget_focus_move_policy_get_delegate(focus_move_policy_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusMovePolicy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_move_policy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_move_policy_get_static_delegate) }); + } + + if (efl_ui_widget_focus_move_policy_set_static_delegate == null) + { + efl_ui_widget_focus_move_policy_set_static_delegate = new efl_ui_widget_focus_move_policy_set_delegate(focus_move_policy_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFocusMovePolicy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_move_policy_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_move_policy_set_static_delegate) }); + } + + if (efl_ui_widget_focus_move_policy_automatic_get_static_delegate == null) + { + efl_ui_widget_focus_move_policy_automatic_get_static_delegate = new efl_ui_widget_focus_move_policy_automatic_get_delegate(focus_move_policy_automatic_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusMovePolicyAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_move_policy_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_move_policy_automatic_get_static_delegate) }); + } + + if (efl_ui_widget_focus_move_policy_automatic_set_static_delegate == null) + { + efl_ui_widget_focus_move_policy_automatic_set_static_delegate = new efl_ui_widget_focus_move_policy_automatic_set_delegate(focus_move_policy_automatic_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFocusMovePolicyAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_move_policy_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_move_policy_automatic_set_static_delegate) }); + } + + if (efl_ui_widget_input_event_handler_static_delegate == null) + { + efl_ui_widget_input_event_handler_static_delegate = new efl_ui_widget_input_event_handler_delegate(widget_input_event_handler); + } + + if (methods.FirstOrDefault(m => m.Name == "WidgetInputEventHandler") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_input_event_handler"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_input_event_handler_static_delegate) }); + } + + if (efl_ui_widget_on_access_activate_static_delegate == null) + { + efl_ui_widget_on_access_activate_static_delegate = new efl_ui_widget_on_access_activate_delegate(on_access_activate); + } + + if (methods.FirstOrDefault(m => m.Name == "OnAccessActivate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_on_access_activate"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_on_access_activate_static_delegate) }); + } + + if (efl_ui_widget_on_access_update_static_delegate == null) + { + efl_ui_widget_on_access_update_static_delegate = new efl_ui_widget_on_access_update_delegate(on_access_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateOnAccess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_on_access_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_on_access_update_static_delegate) }); + } + + if (efl_ui_widget_screen_reader_static_delegate == null) + { + efl_ui_widget_screen_reader_static_delegate = new efl_ui_widget_screen_reader_delegate(screen_reader); + } + + if (methods.FirstOrDefault(m => m.Name == "ScreenReader") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_screen_reader"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_screen_reader_static_delegate) }); + } + + if (efl_ui_widget_atspi_static_delegate == null) + { + efl_ui_widget_atspi_static_delegate = new efl_ui_widget_atspi_delegate(atspi); + } + + if (methods.FirstOrDefault(m => m.Name == "Atspi") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_atspi"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_atspi_static_delegate) }); + } + + if (efl_ui_widget_sub_object_add_static_delegate == null) + { + efl_ui_widget_sub_object_add_static_delegate = new efl_ui_widget_sub_object_add_delegate(widget_sub_object_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddWidgetSubObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_sub_object_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_sub_object_add_static_delegate) }); + } + + if (efl_ui_widget_sub_object_del_static_delegate == null) + { + efl_ui_widget_sub_object_del_static_delegate = new efl_ui_widget_sub_object_del_delegate(widget_sub_object_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelWidgetSubObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_sub_object_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_sub_object_del_static_delegate) }); + } + + if (efl_ui_widget_theme_apply_static_delegate == null) + { + efl_ui_widget_theme_apply_static_delegate = new efl_ui_widget_theme_apply_delegate(theme_apply); + } + + if (methods.FirstOrDefault(m => m.Name == "ThemeApply") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_theme_apply"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_theme_apply_static_delegate) }); + } + + if (efl_ui_widget_scroll_hold_push_static_delegate == null) + { + efl_ui_widget_scroll_hold_push_static_delegate = new efl_ui_widget_scroll_hold_push_delegate(scroll_hold_push); + } + + if (methods.FirstOrDefault(m => m.Name == "PushScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scroll_hold_push"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scroll_hold_push_static_delegate) }); + } + + if (efl_ui_widget_scroll_hold_pop_static_delegate == null) + { + efl_ui_widget_scroll_hold_pop_static_delegate = new efl_ui_widget_scroll_hold_pop_delegate(scroll_hold_pop); + } + + if (methods.FirstOrDefault(m => m.Name == "PopScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scroll_hold_pop"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scroll_hold_pop_static_delegate) }); + } + + if (efl_ui_widget_scroll_freeze_push_static_delegate == null) + { + efl_ui_widget_scroll_freeze_push_static_delegate = new efl_ui_widget_scroll_freeze_push_delegate(scroll_freeze_push); + } + + if (methods.FirstOrDefault(m => m.Name == "PushScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scroll_freeze_push"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scroll_freeze_push_static_delegate) }); + } + + if (efl_ui_widget_scroll_freeze_pop_static_delegate == null) + { + efl_ui_widget_scroll_freeze_pop_static_delegate = new efl_ui_widget_scroll_freeze_pop_delegate(scroll_freeze_pop); + } + + if (methods.FirstOrDefault(m => m.Name == "PopScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scroll_freeze_pop"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scroll_freeze_pop_static_delegate) }); + } + + if (efl_ui_widget_part_access_object_get_static_delegate == null) + { + efl_ui_widget_part_access_object_get_static_delegate = new efl_ui_widget_part_access_object_get_delegate(part_access_object_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPartAccessObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_part_access_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_part_access_object_get_static_delegate) }); + } + + if (efl_ui_widget_newest_focus_order_get_static_delegate == null) + { + efl_ui_widget_newest_focus_order_get_static_delegate = new efl_ui_widget_newest_focus_order_get_delegate(newest_focus_order_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetNewestFocusOrder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_newest_focus_order_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_newest_focus_order_get_static_delegate) }); + } + + if (efl_ui_widget_focus_next_object_set_static_delegate == null) + { + efl_ui_widget_focus_next_object_set_static_delegate = new efl_ui_widget_focus_next_object_set_delegate(focus_next_object_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFocusNextObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_next_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_object_set_static_delegate) }); + } + + if (efl_ui_widget_focus_next_object_get_static_delegate == null) + { + efl_ui_widget_focus_next_object_get_static_delegate = new efl_ui_widget_focus_next_object_get_delegate(focus_next_object_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusNextObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_next_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_object_get_static_delegate) }); + } + + if (efl_ui_widget_focus_next_item_set_static_delegate == null) + { + efl_ui_widget_focus_next_item_set_static_delegate = new efl_ui_widget_focus_next_item_set_delegate(focus_next_item_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFocusNextItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_next_item_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_item_set_static_delegate) }); + } + + if (efl_ui_widget_focus_next_item_get_static_delegate == null) + { + efl_ui_widget_focus_next_item_get_static_delegate = new efl_ui_widget_focus_next_item_get_delegate(focus_next_item_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusNextItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_next_item_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_item_get_static_delegate) }); + } + + if (efl_ui_widget_focus_tree_unfocusable_handle_static_delegate == null) + { + efl_ui_widget_focus_tree_unfocusable_handle_static_delegate = new efl_ui_widget_focus_tree_unfocusable_handle_delegate(focus_tree_unfocusable_handle); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusTreeUnfocusableHandle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_tree_unfocusable_handle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_tree_unfocusable_handle_static_delegate) }); + } + + if (efl_ui_widget_focus_custom_chain_prepend_static_delegate == null) + { + efl_ui_widget_focus_custom_chain_prepend_static_delegate = new efl_ui_widget_focus_custom_chain_prepend_delegate(focus_custom_chain_prepend); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusCustomChainPrepend") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_custom_chain_prepend"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_custom_chain_prepend_static_delegate) }); + } + + if (efl_ui_widget_focus_cycle_static_delegate == null) + { + efl_ui_widget_focus_cycle_static_delegate = new efl_ui_widget_focus_cycle_delegate(focus_cycle); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusCycle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_cycle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_cycle_static_delegate) }); + } + + if (efl_ui_widget_focus_direction_static_delegate == null) + { + efl_ui_widget_focus_direction_static_delegate = new efl_ui_widget_focus_direction_delegate(focus_direction); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_direction"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_direction_static_delegate) }); + } + + if (efl_ui_widget_focus_next_manager_is_static_delegate == null) + { + efl_ui_widget_focus_next_manager_is_static_delegate = new efl_ui_widget_focus_next_manager_is_delegate(focus_next_manager_is); + } + + if (methods.FirstOrDefault(m => m.Name == "IsFocusNextManager") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_next_manager_is"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_manager_is_static_delegate) }); + } + + if (efl_ui_widget_focus_list_direction_get_static_delegate == null) + { + efl_ui_widget_focus_list_direction_get_static_delegate = new efl_ui_widget_focus_list_direction_get_delegate(focus_list_direction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusListDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_list_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_list_direction_get_static_delegate) }); + } + + if (efl_ui_widget_focused_object_clear_static_delegate == null) + { + efl_ui_widget_focused_object_clear_static_delegate = new efl_ui_widget_focused_object_clear_delegate(focused_object_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearFocusedObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focused_object_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focused_object_clear_static_delegate) }); + } + + if (efl_ui_widget_focus_direction_go_static_delegate == null) + { + efl_ui_widget_focus_direction_go_static_delegate = new efl_ui_widget_focus_direction_go_delegate(focus_direction_go); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusDirectionGo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_direction_go"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_direction_go_static_delegate) }); + } + + if (efl_ui_widget_focus_next_get_static_delegate == null) + { + efl_ui_widget_focus_next_get_static_delegate = new efl_ui_widget_focus_next_get_delegate(focus_next_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_next_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_get_static_delegate) }); + } + + if (efl_ui_widget_focus_restore_static_delegate == null) + { + efl_ui_widget_focus_restore_static_delegate = new efl_ui_widget_focus_restore_delegate(focus_restore); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusRestore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_restore"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_restore_static_delegate) }); + } + + if (efl_ui_widget_focus_custom_chain_unset_static_delegate == null) + { + efl_ui_widget_focus_custom_chain_unset_static_delegate = new efl_ui_widget_focus_custom_chain_unset_delegate(focus_custom_chain_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetFocusCustomChain") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_custom_chain_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_custom_chain_unset_static_delegate) }); + } + + if (efl_ui_widget_focus_steal_static_delegate == null) + { + efl_ui_widget_focus_steal_static_delegate = new efl_ui_widget_focus_steal_delegate(focus_steal); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusSteal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_steal"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_steal_static_delegate) }); + } + + if (efl_ui_widget_focus_hide_handle_static_delegate == null) + { + efl_ui_widget_focus_hide_handle_static_delegate = new efl_ui_widget_focus_hide_handle_delegate(focus_hide_handle); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusHideHandle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_hide_handle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_hide_handle_static_delegate) }); + } + + if (efl_ui_widget_focus_next_static_delegate == null) + { + efl_ui_widget_focus_next_static_delegate = new efl_ui_widget_focus_next_delegate(focus_next); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_next"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_next_static_delegate) }); + } + + if (efl_ui_widget_focus_list_next_get_static_delegate == null) + { + efl_ui_widget_focus_list_next_get_static_delegate = new efl_ui_widget_focus_list_next_get_delegate(focus_list_next_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusListNext") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_list_next_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_list_next_get_static_delegate) }); + } + + if (efl_ui_widget_focus_mouse_up_handle_static_delegate == null) + { + efl_ui_widget_focus_mouse_up_handle_static_delegate = new efl_ui_widget_focus_mouse_up_handle_delegate(focus_mouse_up_handle); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusMouseUpHandle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_mouse_up_handle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_mouse_up_handle_static_delegate) }); + } + + if (efl_ui_widget_focus_direction_get_static_delegate == null) + { + efl_ui_widget_focus_direction_get_static_delegate = new efl_ui_widget_focus_direction_get_delegate(focus_direction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_direction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_direction_get_static_delegate) }); + } + + if (efl_ui_widget_focus_disabled_handle_static_delegate == null) + { + efl_ui_widget_focus_disabled_handle_static_delegate = new efl_ui_widget_focus_disabled_handle_delegate(focus_disabled_handle); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusDisabledHandle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_disabled_handle"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_disabled_handle_static_delegate) }); + } + + if (efl_ui_widget_focus_custom_chain_append_static_delegate == null) + { + efl_ui_widget_focus_custom_chain_append_static_delegate = new efl_ui_widget_focus_custom_chain_append_delegate(focus_custom_chain_append); + } + + if (methods.FirstOrDefault(m => m.Name == "AppendFocusCustomChain") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_custom_chain_append"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_custom_chain_append_static_delegate) }); + } + + if (efl_ui_widget_focus_reconfigure_static_delegate == null) + { + efl_ui_widget_focus_reconfigure_static_delegate = new efl_ui_widget_focus_reconfigure_delegate(focus_reconfigure); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusReconfigure") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_reconfigure"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_reconfigure_static_delegate) }); + } + + if (efl_ui_widget_focus_direction_manager_is_static_delegate == null) + { + efl_ui_widget_focus_direction_manager_is_static_delegate = new efl_ui_widget_focus_direction_manager_is_delegate(focus_direction_manager_is); + } + + if (methods.FirstOrDefault(m => m.Name == "IsFocusDirectionManager") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_direction_manager_is"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_direction_manager_is_static_delegate) }); + } + + if (efl_ui_widget_focus_state_apply_static_delegate == null) + { + efl_ui_widget_focus_state_apply_static_delegate = new efl_ui_widget_focus_state_apply_delegate(focus_state_apply); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusStateApply") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_state_apply"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_state_apply_static_delegate) }); + } + + if (efl_part_get_static_delegate == null) + { + efl_part_get_static_delegate = new efl_part_get_delegate(part_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_part_get"), func = Marshal.GetFunctionPointerForDelegate(efl_part_get_static_delegate) }); + } + + if (efl_access_action_name_get_static_delegate == null) + { + efl_access_action_name_get_static_delegate = new efl_access_action_name_get_delegate(action_name_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetActionName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_name_get_static_delegate) }); + } + + if (efl_access_action_localized_name_get_static_delegate == null) + { + efl_access_action_localized_name_get_static_delegate = new efl_access_action_localized_name_get_delegate(action_localized_name_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetActionLocalizedName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_localized_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_localized_name_get_static_delegate) }); + } + + if (efl_access_action_actions_get_static_delegate == null) + { + efl_access_action_actions_get_static_delegate = new efl_access_action_actions_get_delegate(actions_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetActions") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_actions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_actions_get_static_delegate) }); + } + + if (efl_access_action_do_static_delegate == null) + { + efl_access_action_do_static_delegate = new efl_access_action_do_delegate(action_do); + } + + if (methods.FirstOrDefault(m => m.Name == "ActionDo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_do"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_do_static_delegate) }); + } + + if (efl_access_action_keybinding_get_static_delegate == null) + { + efl_access_action_keybinding_get_static_delegate = new efl_access_action_keybinding_get_delegate(action_keybinding_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetActionKeybinding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_action_keybinding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_action_keybinding_get_static_delegate) }); + } + + if (efl_access_component_z_order_get_static_delegate == null) + { + efl_access_component_z_order_get_static_delegate = new efl_access_component_z_order_get_delegate(z_order_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetZOrder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_z_order_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_z_order_get_static_delegate) }); + } + + if (efl_access_component_extents_get_static_delegate == null) + { + efl_access_component_extents_get_static_delegate = new efl_access_component_extents_get_delegate(extents_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetExtents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_extents_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_extents_get_static_delegate) }); + } + + if (efl_access_component_extents_set_static_delegate == null) + { + efl_access_component_extents_set_static_delegate = new efl_access_component_extents_set_delegate(extents_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetExtents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_extents_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_extents_set_static_delegate) }); + } + + if (efl_access_component_screen_position_get_static_delegate == null) + { + efl_access_component_screen_position_get_static_delegate = new efl_access_component_screen_position_get_delegate(screen_position_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScreenPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_screen_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_screen_position_get_static_delegate) }); + } + + if (efl_access_component_screen_position_set_static_delegate == null) + { + efl_access_component_screen_position_set_static_delegate = new efl_access_component_screen_position_set_delegate(screen_position_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScreenPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_screen_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_screen_position_set_static_delegate) }); + } + + if (efl_access_component_socket_offset_get_static_delegate == null) + { + efl_access_component_socket_offset_get_static_delegate = new efl_access_component_socket_offset_get_delegate(socket_offset_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSocketOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_socket_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_socket_offset_get_static_delegate) }); + } + + if (efl_access_component_socket_offset_set_static_delegate == null) + { + efl_access_component_socket_offset_set_static_delegate = new efl_access_component_socket_offset_set_delegate(socket_offset_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSocketOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_socket_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_socket_offset_set_static_delegate) }); + } + + if (efl_access_component_contains_static_delegate == null) + { + efl_access_component_contains_static_delegate = new efl_access_component_contains_delegate(contains); + } + + if (methods.FirstOrDefault(m => m.Name == "Contains") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_contains"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_contains_static_delegate) }); + } + + if (efl_access_component_focus_grab_static_delegate == null) + { + efl_access_component_focus_grab_static_delegate = new efl_access_component_focus_grab_delegate(focus_grab); + } + + if (methods.FirstOrDefault(m => m.Name == "GrabFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_focus_grab"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_focus_grab_static_delegate) }); + } + + if (efl_access_component_accessible_at_point_get_static_delegate == null) + { + efl_access_component_accessible_at_point_get_static_delegate = new efl_access_component_accessible_at_point_get_delegate(accessible_at_point_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAccessibleAtPoint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_accessible_at_point_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_accessible_at_point_get_static_delegate) }); + } + + if (efl_access_component_highlight_grab_static_delegate == null) + { + efl_access_component_highlight_grab_static_delegate = new efl_access_component_highlight_grab_delegate(highlight_grab); + } + + if (methods.FirstOrDefault(m => m.Name == "GrabHighlight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_highlight_grab"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_highlight_grab_static_delegate) }); + } + + if (efl_access_component_highlight_clear_static_delegate == null) + { + efl_access_component_highlight_clear_static_delegate = new efl_access_component_highlight_clear_delegate(highlight_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearHighlight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_component_highlight_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_component_highlight_clear_static_delegate) }); + } + + if (efl_access_object_localized_role_name_get_static_delegate == null) + { + efl_access_object_localized_role_name_get_static_delegate = new efl_access_object_localized_role_name_get_delegate(localized_role_name_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLocalizedRoleName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_localized_role_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_localized_role_name_get_static_delegate) }); + } + + if (efl_access_object_i18n_name_get_static_delegate == null) + { + efl_access_object_i18n_name_get_static_delegate = new efl_access_object_i18n_name_get_delegate(i18n_name_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetI18nName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_i18n_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_i18n_name_get_static_delegate) }); + } + + if (efl_access_object_i18n_name_set_static_delegate == null) + { + efl_access_object_i18n_name_set_static_delegate = new efl_access_object_i18n_name_set_delegate(i18n_name_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetI18nName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_i18n_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_i18n_name_set_static_delegate) }); + } + + if (efl_access_object_name_cb_set_static_delegate == null) + { + efl_access_object_name_cb_set_static_delegate = new efl_access_object_name_cb_set_delegate(name_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetNameCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_name_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_name_cb_set_static_delegate) }); + } + + if (efl_access_object_relation_set_get_static_delegate == null) + { + efl_access_object_relation_set_get_static_delegate = new efl_access_object_relation_set_get_delegate(relation_set_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRelationSet") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_relation_set_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relation_set_get_static_delegate) }); + } + + if (efl_access_object_role_get_static_delegate == null) + { + efl_access_object_role_get_static_delegate = new efl_access_object_role_get_delegate(role_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRole") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_role_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_get_static_delegate) }); + } + + if (efl_access_object_role_set_static_delegate == null) + { + efl_access_object_role_set_static_delegate = new efl_access_object_role_set_delegate(role_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRole") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_role_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_set_static_delegate) }); + } + + if (efl_access_object_access_parent_get_static_delegate == null) + { + efl_access_object_access_parent_get_static_delegate = new efl_access_object_access_parent_get_delegate(access_parent_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAccessParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_access_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_parent_get_static_delegate) }); + } + + if (efl_access_object_access_parent_set_static_delegate == null) + { + efl_access_object_access_parent_set_static_delegate = new efl_access_object_access_parent_set_delegate(access_parent_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAccessParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_access_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_parent_set_static_delegate) }); + } + + if (efl_access_object_description_cb_set_static_delegate == null) + { + efl_access_object_description_cb_set_static_delegate = new efl_access_object_description_cb_set_delegate(description_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDescriptionCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_description_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_cb_set_static_delegate) }); + } + + if (efl_access_object_gesture_cb_set_static_delegate == null) + { + efl_access_object_gesture_cb_set_static_delegate = new efl_access_object_gesture_cb_set_delegate(gesture_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetGestureCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_gesture_cb_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_gesture_cb_set_static_delegate) }); + } + + if (efl_access_object_access_children_get_static_delegate == null) + { + efl_access_object_access_children_get_static_delegate = new efl_access_object_access_children_get_delegate(access_children_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAccessChildren") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_access_children_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_access_children_get_static_delegate) }); + } + + if (efl_access_object_role_name_get_static_delegate == null) + { + efl_access_object_role_name_get_static_delegate = new efl_access_object_role_name_get_delegate(role_name_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRoleName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_role_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_role_name_get_static_delegate) }); + } + + if (efl_access_object_attributes_get_static_delegate == null) + { + efl_access_object_attributes_get_static_delegate = new efl_access_object_attributes_get_delegate(attributes_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAttributes") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_attributes_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attributes_get_static_delegate) }); + } + + if (efl_access_object_reading_info_type_get_static_delegate == null) + { + efl_access_object_reading_info_type_get_static_delegate = new efl_access_object_reading_info_type_get_delegate(reading_info_type_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetReadingInfoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_reading_info_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_reading_info_type_get_static_delegate) }); + } + + if (efl_access_object_reading_info_type_set_static_delegate == null) + { + efl_access_object_reading_info_type_set_static_delegate = new efl_access_object_reading_info_type_set_delegate(reading_info_type_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetReadingInfoType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_reading_info_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_reading_info_type_set_static_delegate) }); + } + + if (efl_access_object_index_in_parent_get_static_delegate == null) + { + efl_access_object_index_in_parent_get_static_delegate = new efl_access_object_index_in_parent_get_delegate(index_in_parent_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetIndexInParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_index_in_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_index_in_parent_get_static_delegate) }); + } + + if (efl_access_object_description_get_static_delegate == null) + { + efl_access_object_description_get_static_delegate = new efl_access_object_description_get_delegate(description_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetDescription") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_description_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_get_static_delegate) }); + } + + if (efl_access_object_description_set_static_delegate == null) + { + efl_access_object_description_set_static_delegate = new efl_access_object_description_set_delegate(description_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDescription") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_description_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_description_set_static_delegate) }); + } + + if (efl_access_object_state_set_get_static_delegate == null) + { + efl_access_object_state_set_get_static_delegate = new efl_access_object_state_set_get_delegate(state_set_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStateSet") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_state_set_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_state_set_get_static_delegate) }); + } + + if (efl_access_object_can_highlight_get_static_delegate == null) + { + efl_access_object_can_highlight_get_static_delegate = new efl_access_object_can_highlight_get_delegate(can_highlight_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanHighlight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_get_static_delegate) }); + } + + if (efl_access_object_can_highlight_set_static_delegate == null) + { + efl_access_object_can_highlight_set_static_delegate = new efl_access_object_can_highlight_set_delegate(can_highlight_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanHighlight") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_set_static_delegate) }); + } + + if (efl_access_object_translation_domain_get_static_delegate == null) + { + efl_access_object_translation_domain_get_static_delegate = new efl_access_object_translation_domain_get_delegate(translation_domain_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTranslationDomain") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_get_static_delegate) }); + } + + if (efl_access_object_translation_domain_set_static_delegate == null) + { + efl_access_object_translation_domain_set_static_delegate = new efl_access_object_translation_domain_set_delegate(translation_domain_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTranslationDomain") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_set_static_delegate) }); + } + + if (efl_access_object_gesture_do_static_delegate == null) + { + efl_access_object_gesture_do_static_delegate = new efl_access_object_gesture_do_delegate(gesture_do); + } + + if (methods.FirstOrDefault(m => m.Name == "GestureDo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_gesture_do"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_gesture_do_static_delegate) }); + } + + if (efl_access_object_attribute_append_static_delegate == null) + { + efl_access_object_attribute_append_static_delegate = new efl_access_object_attribute_append_delegate(attribute_append); + } + + if (methods.FirstOrDefault(m => m.Name == "AppendAttribute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_attribute_append"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attribute_append_static_delegate) }); + } + + if (efl_access_object_attribute_del_static_delegate == null) + { + efl_access_object_attribute_del_static_delegate = new efl_access_object_attribute_del_delegate(attribute_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelAttribute") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_attribute_del"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attribute_del_static_delegate) }); + } + + if (efl_access_object_attributes_clear_static_delegate == null) + { + efl_access_object_attributes_clear_static_delegate = new efl_access_object_attributes_clear_delegate(attributes_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearAttributes") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_attributes_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_attributes_clear_static_delegate) }); + } + + if (efl_access_object_relationship_append_static_delegate == null) + { + efl_access_object_relationship_append_static_delegate = new efl_access_object_relationship_append_delegate(relationship_append); + } + + if (methods.FirstOrDefault(m => m.Name == "AppendRelationship") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_relationship_append"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationship_append_static_delegate) }); + } + + if (efl_access_object_relationship_remove_static_delegate == null) + { + efl_access_object_relationship_remove_static_delegate = new efl_access_object_relationship_remove_delegate(relationship_remove); + } + + if (methods.FirstOrDefault(m => m.Name == "RelationshipRemove") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_relationship_remove"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationship_remove_static_delegate) }); + } + + if (efl_access_object_relationships_clear_static_delegate == null) + { + efl_access_object_relationships_clear_static_delegate = new efl_access_object_relationships_clear_delegate(relationships_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearRelationships") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_relationships_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_relationships_clear_static_delegate) }); + } + + if (efl_access_object_state_notify_static_delegate == null) + { + efl_access_object_state_notify_static_delegate = new efl_access_object_state_notify_delegate(state_notify); + } + + if (methods.FirstOrDefault(m => m.Name == "StateNotify") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_state_notify"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_state_notify_static_delegate) }); + } + + if (efl_access_widget_action_elm_actions_get_static_delegate == null) + { + efl_access_widget_action_elm_actions_get_static_delegate = new efl_access_widget_action_elm_actions_get_delegate(elm_actions_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetElmActions") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_widget_action_elm_actions_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_widget_action_elm_actions_get_static_delegate) }); + } + + if (efl_ui_dnd_drag_start_static_delegate == null) + { + efl_ui_dnd_drag_start_static_delegate = new efl_ui_dnd_drag_start_delegate(drag_start); + } + + if (methods.FirstOrDefault(m => m.Name == "DragStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_drag_start"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_start_static_delegate) }); + } + + if (efl_ui_dnd_drag_action_set_static_delegate == null) + { + efl_ui_dnd_drag_action_set_static_delegate = new efl_ui_dnd_drag_action_set_delegate(drag_action_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDragAction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_drag_action_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_action_set_static_delegate) }); + } + + if (efl_ui_dnd_drag_cancel_static_delegate == null) + { + efl_ui_dnd_drag_cancel_static_delegate = new efl_ui_dnd_drag_cancel_delegate(drag_cancel); + } + + if (methods.FirstOrDefault(m => m.Name == "DragCancel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_drag_cancel"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drag_cancel_static_delegate) }); + } + + if (efl_ui_dnd_drop_target_add_static_delegate == null) + { + efl_ui_dnd_drop_target_add_static_delegate = new efl_ui_dnd_drop_target_add_delegate(drop_target_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddDropTarget") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_drop_target_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drop_target_add_static_delegate) }); + } + + if (efl_ui_dnd_drop_target_del_static_delegate == null) + { + efl_ui_dnd_drop_target_del_static_delegate = new efl_ui_dnd_drop_target_del_delegate(drop_target_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelDropTarget") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_drop_target_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drop_target_del_static_delegate) }); + } + + if (efl_ui_l10n_text_get_static_delegate == null) + { + efl_ui_l10n_text_get_static_delegate = new efl_ui_l10n_text_get_delegate(l10n_text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetL10nText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_get_static_delegate) }); + } + + if (efl_ui_l10n_text_set_static_delegate == null) + { + efl_ui_l10n_text_set_static_delegate = new efl_ui_l10n_text_set_delegate(l10n_text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetL10nText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_set_static_delegate) }); + } + + if (efl_ui_l10n_translation_update_static_delegate == null) + { + efl_ui_l10n_translation_update_static_delegate = new efl_ui_l10n_translation_update_delegate(translation_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateTranslation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_translation_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_translation_update_static_delegate) }); + } + + if (efl_ui_property_bind_static_delegate == null) + { + efl_ui_property_bind_static_delegate = new efl_ui_property_bind_delegate(property_bind); + } + + if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_property_bind_static_delegate) }); + } + + if (efl_ui_selection_set_static_delegate == null) + { + efl_ui_selection_set_static_delegate = new efl_ui_selection_set_delegate(selection_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_set_static_delegate) }); + } + + if (efl_ui_selection_get_static_delegate == null) + { + efl_ui_selection_get_static_delegate = new efl_ui_selection_get_delegate(selection_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_get_static_delegate) }); + } + + if (efl_ui_selection_clear_static_delegate == null) + { + efl_ui_selection_clear_static_delegate = new efl_ui_selection_clear_delegate(selection_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selection_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_clear_static_delegate) }); + } + + if (efl_ui_selection_has_owner_static_delegate == null) + { + efl_ui_selection_has_owner_static_delegate = new efl_ui_selection_has_owner_delegate(has_owner); + } + + if (methods.FirstOrDefault(m => m.Name == "HasOwner") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selection_has_owner"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selection_has_owner_static_delegate) }); + } + + if (efl_ui_view_model_get_static_delegate == null) + { + efl_ui_view_model_get_static_delegate = new efl_ui_view_model_get_delegate(model_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetModel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_view_model_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_get_static_delegate) }); + } + + if (efl_ui_view_model_set_static_delegate == null) + { + efl_ui_view_model_set_static_delegate = new efl_ui_view_model_set_delegate(model_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetModel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_view_model_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_set_static_delegate) }); + } + + if (efl_ui_focus_object_focus_geometry_get_static_delegate == null) + { + efl_ui_focus_object_focus_geometry_get_static_delegate = new efl_ui_focus_object_focus_geometry_get_delegate(focus_geometry_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_geometry_get_static_delegate) }); + } + + if (efl_ui_focus_object_focus_get_static_delegate == null) + { + efl_ui_focus_object_focus_get_static_delegate = new efl_ui_focus_object_focus_get_delegate(focus_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_get_static_delegate) }); + } + + if (efl_ui_focus_object_focus_set_static_delegate == null) + { + efl_ui_focus_object_focus_set_static_delegate = new efl_ui_focus_object_focus_set_delegate(focus_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_set_static_delegate) }); + } + + if (efl_ui_focus_object_focus_manager_get_static_delegate == null) + { + efl_ui_focus_object_focus_manager_get_static_delegate = new efl_ui_focus_object_focus_manager_get_delegate(focus_manager_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusManager") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_manager_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_manager_get_static_delegate) }); + } + + if (efl_ui_focus_object_focus_parent_get_static_delegate == null) + { + efl_ui_focus_object_focus_parent_get_static_delegate = new efl_ui_focus_object_focus_parent_get_delegate(focus_parent_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFocusParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_focus_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_focus_parent_get_static_delegate) }); + } + + if (efl_ui_focus_object_child_focus_get_static_delegate == null) + { + efl_ui_focus_object_child_focus_get_static_delegate = new efl_ui_focus_object_child_focus_get_delegate(child_focus_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetChildFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_child_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_get_static_delegate) }); + } + + if (efl_ui_focus_object_child_focus_set_static_delegate == null) + { + efl_ui_focus_object_child_focus_set_static_delegate = new efl_ui_focus_object_child_focus_set_delegate(child_focus_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetChildFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_child_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_child_focus_set_static_delegate) }); + } + + if (efl_ui_focus_object_setup_order_static_delegate == null) + { + efl_ui_focus_object_setup_order_static_delegate = new efl_ui_focus_object_setup_order_delegate(setup_order); + } + + if (methods.FirstOrDefault(m => m.Name == "SetupOrder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_setup_order"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_static_delegate) }); + } + + if (efl_ui_focus_object_setup_order_non_recursive_static_delegate == null) + { + efl_ui_focus_object_setup_order_non_recursive_static_delegate = new efl_ui_focus_object_setup_order_non_recursive_delegate(setup_order_non_recursive); + } + + if (methods.FirstOrDefault(m => m.Name == "SetupOrderNonRecursive") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_setup_order_non_recursive"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_setup_order_non_recursive_static_delegate) }); + } + + if (efl_ui_focus_object_on_focus_update_static_delegate == null) + { + efl_ui_focus_object_on_focus_update_static_delegate = new efl_ui_focus_object_on_focus_update_delegate(on_focus_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateOnFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_object_on_focus_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_object_on_focus_update_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Widget.efl_ui_widget_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_widget_cursor_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_widget_cursor_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_cursor_get"); + + private static System.String cursor_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_cursor_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetCursor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_cursor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_cursor_get_delegate efl_ui_widget_cursor_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_cursor_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cursor); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_cursor_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cursor); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_cursor_set"); + + private static bool cursor_set(System.IntPtr obj, System.IntPtr pd, System.String cursor) + { + Eina.Log.Debug("function efl_ui_widget_cursor_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).SetCursor(cursor); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_cursor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cursor); + } + } + + private static efl_ui_widget_cursor_set_delegate efl_ui_widget_cursor_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_widget_cursor_style_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_widget_cursor_style_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_style_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_cursor_style_get"); + + private static System.String cursor_style_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_cursor_style_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetCursorStyle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_cursor_style_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_cursor_style_get_delegate efl_ui_widget_cursor_style_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_cursor_style_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_cursor_style_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_style_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_cursor_style_set"); + + private static bool cursor_style_set(System.IntPtr obj, System.IntPtr pd, System.String style) + { + Eina.Log.Debug("function efl_ui_widget_cursor_style_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).SetCursorStyle(style); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_cursor_style_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); + } + } + + private static efl_ui_widget_cursor_style_set_delegate efl_ui_widget_cursor_style_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_cursor_theme_search_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_cursor_theme_search_enabled_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_theme_search_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_cursor_theme_search_enabled_get"); + + private static bool cursor_theme_search_enabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_cursor_theme_search_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GetCursorThemeSearchEnabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_cursor_theme_search_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_cursor_theme_search_enabled_get_delegate efl_ui_widget_cursor_theme_search_enabled_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_cursor_theme_search_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allow); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_cursor_theme_search_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allow); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_cursor_theme_search_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_cursor_theme_search_enabled_set"); + + private static bool cursor_theme_search_enabled_set(System.IntPtr obj, System.IntPtr pd, bool allow) + { + Eina.Log.Debug("function efl_ui_widget_cursor_theme_search_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).SetCursorThemeSearchEnabled(allow); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_cursor_theme_search_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allow); + } + } + + private static efl_ui_widget_cursor_theme_search_enabled_set_delegate efl_ui_widget_cursor_theme_search_enabled_set_static_delegate; + + + private delegate void efl_ui_widget_resize_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sobj); + + + public delegate void efl_ui_widget_resize_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sobj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_resize_object_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_resize_object_set"); + + private static void resize_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sobj) + { + Eina.Log.Debug("function efl_ui_widget_resize_object_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetResizeObject(sobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_resize_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sobj); + } + } + + private static efl_ui_widget_resize_object_set_delegate efl_ui_widget_resize_object_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_disabled_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_disabled_get"); + + private static bool disabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_disabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GetDisabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_disabled_get_delegate efl_ui_widget_disabled_get_static_delegate; + + + private delegate void efl_ui_widget_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + + + public delegate void efl_ui_widget_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_disabled_set"); + + private static void disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) + { + Eina.Log.Debug("function efl_ui_widget_disabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetDisabled(disabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); + } + } + + private static efl_ui_widget_disabled_set_delegate efl_ui_widget_disabled_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_widget_style_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_widget_style_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_style_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_style_get"); + + private static System.String style_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_style_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetStyle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_style_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_style_get_delegate efl_ui_widget_style_get_static_delegate; + + + private delegate Eina.Error efl_ui_widget_style_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + + + public delegate Eina.Error efl_ui_widget_style_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_style_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_style_set"); + + private static Eina.Error style_set(System.IntPtr obj, System.IntPtr pd, System.String style) + { + Eina.Log.Debug("function efl_ui_widget_style_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Widget)wrapper).SetStyle(style); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_style_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); + } + } + + private static efl_ui_widget_style_set_delegate efl_ui_widget_style_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_allow_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_allow_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_allow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_allow_get"); + + private static bool focus_allow_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_allow_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GetFocusAllow(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focus_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_focus_allow_get_delegate efl_ui_widget_focus_allow_get_static_delegate; + + + private delegate void efl_ui_widget_focus_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_focus); + + + public delegate void efl_ui_widget_focus_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_focus); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_allow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_allow_set"); + + private static void focus_allow_set(System.IntPtr obj, System.IntPtr pd, bool can_focus) + { + Eina.Log.Debug("function efl_ui_widget_focus_allow_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetFocusAllow(can_focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_focus); + } + } + + private static efl_ui_widget_focus_allow_set_delegate efl_ui_widget_focus_allow_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Widget efl_ui_widget_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Widget efl_ui_widget_parent_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_parent_get"); + + private static Efl.Ui.Widget widget_parent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_parent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Widget _ret_var = default(Efl.Ui.Widget); + try + { + _ret_var = ((Widget)wrapper).GetWidgetParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_parent_get_delegate efl_ui_widget_parent_get_static_delegate; + + + private delegate void efl_ui_widget_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget parent); + + + public delegate void efl_ui_widget_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget parent); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_parent_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_parent_set"); + + private static void widget_parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Widget parent) + { + Eina.Log.Debug("function efl_ui_widget_parent_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetWidgetParent(parent); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); + } + } + + private static efl_ui_widget_parent_set_delegate efl_ui_widget_parent_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_widget_access_info_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_widget_access_info_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_access_info_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_access_info_get"); + + private static System.String access_info_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_access_info_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetAccessInfo(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_access_info_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_access_info_get_delegate efl_ui_widget_access_info_get_static_delegate; + + + private delegate void efl_ui_widget_access_info_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String txt); + + + public delegate void efl_ui_widget_access_info_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String txt); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_access_info_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_access_info_set"); + + private static void access_info_set(System.IntPtr obj, System.IntPtr pd, System.String txt) + { + Eina.Log.Debug("function efl_ui_widget_access_info_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetAccessInfo(txt); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_access_info_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), txt); + } + } + + private static efl_ui_widget_access_info_set_delegate efl_ui_widget_access_info_set_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_ui_widget_interest_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_ui_widget_interest_region_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_interest_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_interest_region_get"); + + private static Eina.Rect.NativeStruct interest_region_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_interest_region_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Widget)wrapper).GetInterestRegion(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_interest_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_interest_region_get_delegate efl_ui_widget_interest_region_get_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_ui_widget_focus_highlight_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_ui_widget_focus_highlight_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_highlight_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_highlight_geometry_get"); + + private static Eina.Rect.NativeStruct focus_highlight_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_highlight_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Widget)wrapper).GetFocusHighlightGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focus_highlight_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_focus_highlight_geometry_get_delegate efl_ui_widget_focus_highlight_geometry_get_static_delegate; + + + private delegate uint efl_ui_widget_focus_order_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate uint efl_ui_widget_focus_order_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_order_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_order_get"); + + private static uint focus_order_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_order_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((Widget)wrapper).GetFocusOrder(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focus_order_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_focus_order_get_delegate efl_ui_widget_focus_order_get_static_delegate; + + + private delegate System.IntPtr efl_ui_widget_focus_custom_chain_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_widget_focus_custom_chain_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_custom_chain_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_custom_chain_get"); + + private static System.IntPtr focus_custom_chain_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_custom_chain_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((Widget)wrapper).GetFocusCustomChain(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; + + } + else + { + return efl_ui_widget_focus_custom_chain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_focus_custom_chain_get_delegate efl_ui_widget_focus_custom_chain_get_static_delegate; + + + private delegate void efl_ui_widget_focus_custom_chain_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr objs); + + + public delegate void efl_ui_widget_focus_custom_chain_set_api_delegate(System.IntPtr obj, System.IntPtr objs); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_custom_chain_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_custom_chain_set"); + + private static void focus_custom_chain_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr objs) + { + Eina.Log.Debug("function efl_ui_widget_focus_custom_chain_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_objs = new Eina.List(objs, false, false); + + try + { + ((Widget)wrapper).SetFocusCustomChain(_in_objs); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_custom_chain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), objs); + } + } + + private static efl_ui_widget_focus_custom_chain_set_delegate efl_ui_widget_focus_custom_chain_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_widget_focused_object_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_widget_focused_object_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focused_object_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focused_object_get"); + + private static Efl.Canvas.Object focused_object_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focused_object_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Widget)wrapper).GetFocusedObject(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focused_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_focused_object_get_delegate efl_ui_widget_focused_object_get_static_delegate; + + + private delegate Efl.Ui.Focus.MovePolicy efl_ui_widget_focus_move_policy_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Focus.MovePolicy efl_ui_widget_focus_move_policy_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_move_policy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_move_policy_get"); + + private static Efl.Ui.Focus.MovePolicy focus_move_policy_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_move_policy_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.MovePolicy _ret_var = default(Efl.Ui.Focus.MovePolicy); + try + { + _ret_var = ((Widget)wrapper).GetFocusMovePolicy(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focus_move_policy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_focus_move_policy_get_delegate efl_ui_widget_focus_move_policy_get_static_delegate; + + + private delegate void efl_ui_widget_focus_move_policy_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.MovePolicy policy); + + + public delegate void efl_ui_widget_focus_move_policy_set_api_delegate(System.IntPtr obj, Efl.Ui.Focus.MovePolicy policy); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_move_policy_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_move_policy_set"); + + private static void focus_move_policy_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.MovePolicy policy) + { + Eina.Log.Debug("function efl_ui_widget_focus_move_policy_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetFocusMovePolicy(policy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_move_policy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), policy); + } + } + + private static efl_ui_widget_focus_move_policy_set_delegate efl_ui_widget_focus_move_policy_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_move_policy_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_move_policy_automatic_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_move_policy_automatic_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_move_policy_automatic_get"); + + private static bool focus_move_policy_automatic_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_move_policy_automatic_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GetFocusMovePolicyAutomatic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focus_move_policy_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_focus_move_policy_automatic_get_delegate efl_ui_widget_focus_move_policy_automatic_get_static_delegate; + + + private delegate void efl_ui_widget_focus_move_policy_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + + + public delegate void efl_ui_widget_focus_move_policy_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_move_policy_automatic_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_move_policy_automatic_set"); + + private static void focus_move_policy_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) + { + Eina.Log.Debug("function efl_ui_widget_focus_move_policy_automatic_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetFocusMovePolicyAutomatic(automatic); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_move_policy_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); + } + } + + private static efl_ui_widget_focus_move_policy_automatic_set_delegate efl_ui_widget_focus_move_policy_automatic_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_input_event_handler_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Event.NativeStruct eo_event, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object source); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_input_event_handler_api_delegate(System.IntPtr obj, ref Efl.Event.NativeStruct eo_event, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object source); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_input_event_handler_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_input_event_handler"); + + private static bool widget_input_event_handler(System.IntPtr obj, System.IntPtr pd, ref Efl.Event.NativeStruct eo_event, Efl.Canvas.Object source) + { + Eina.Log.Debug("function efl_ui_widget_input_event_handler was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Event _in_eo_event = eo_event; + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).WidgetInputEventHandler(ref _in_eo_event, source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + eo_event = _in_eo_event; + return _ret_var; + + } + else + { + return efl_ui_widget_input_event_handler_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref eo_event, source); + } + } + + private static efl_ui_widget_input_event_handler_delegate efl_ui_widget_input_event_handler_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_on_access_activate_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Activate act); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_on_access_activate_api_delegate(System.IntPtr obj, Efl.Ui.Activate act); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_on_access_activate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_on_access_activate"); + + private static bool on_access_activate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Activate act) + { + Eina.Log.Debug("function efl_ui_widget_on_access_activate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).OnAccessActivate(act); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_on_access_activate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), act); + } + } + + private static efl_ui_widget_on_access_activate_delegate efl_ui_widget_on_access_activate_static_delegate; + + + private delegate void efl_ui_widget_on_access_update_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + + + public delegate void efl_ui_widget_on_access_update_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_on_access_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_on_access_update"); + + private static void on_access_update(System.IntPtr obj, System.IntPtr pd, bool enable) + { + Eina.Log.Debug("function efl_ui_widget_on_access_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).UpdateOnAccess(enable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_on_access_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); + } + } + + private static efl_ui_widget_on_access_update_delegate efl_ui_widget_on_access_update_static_delegate; + + + private delegate void efl_ui_widget_screen_reader_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_screen_reader); + + + public delegate void efl_ui_widget_screen_reader_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_screen_reader); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_screen_reader_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_screen_reader"); + + private static void screen_reader(System.IntPtr obj, System.IntPtr pd, bool is_screen_reader) + { + Eina.Log.Debug("function efl_ui_widget_screen_reader was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).ScreenReader(is_screen_reader); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_screen_reader_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_screen_reader); + } + } + + private static efl_ui_widget_screen_reader_delegate efl_ui_widget_screen_reader_static_delegate; + + + private delegate void efl_ui_widget_atspi_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_atspi); + + + public delegate void efl_ui_widget_atspi_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_atspi); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_atspi_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_atspi"); + + private static void atspi(System.IntPtr obj, System.IntPtr pd, bool is_atspi) + { + Eina.Log.Debug("function efl_ui_widget_atspi was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).Atspi(is_atspi); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_atspi_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_atspi); + } + } + + private static efl_ui_widget_atspi_delegate efl_ui_widget_atspi_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_sub_object_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_sub_object_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_sub_object_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_sub_object_add"); + + private static bool widget_sub_object_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) + { + Eina.Log.Debug("function efl_ui_widget_sub_object_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).AddWidgetSubObject(sub_obj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_sub_object_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); + } + } + + private static efl_ui_widget_sub_object_add_delegate efl_ui_widget_sub_object_add_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_sub_object_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_sub_object_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object sub_obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_sub_object_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_sub_object_del"); + + private static bool widget_sub_object_del(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) + { + Eina.Log.Debug("function efl_ui_widget_sub_object_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).DelWidgetSubObject(sub_obj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_sub_object_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); + } + } + + private static efl_ui_widget_sub_object_del_delegate efl_ui_widget_sub_object_del_static_delegate; + + + private delegate Eina.Error efl_ui_widget_theme_apply_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_ui_widget_theme_apply_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_theme_apply_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_theme_apply"); + + private static Eina.Error theme_apply(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_theme_apply was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Widget)wrapper).ThemeApply(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_theme_apply_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_theme_apply_delegate efl_ui_widget_theme_apply_static_delegate; + + + private delegate void efl_ui_widget_scroll_hold_push_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_widget_scroll_hold_push_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scroll_hold_push_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scroll_hold_push"); + + private static void scroll_hold_push(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_scroll_hold_push was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).PushScrollHold(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_scroll_hold_push_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_scroll_hold_push_delegate efl_ui_widget_scroll_hold_push_static_delegate; + + + private delegate void efl_ui_widget_scroll_hold_pop_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_widget_scroll_hold_pop_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scroll_hold_pop_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scroll_hold_pop"); + + private static void scroll_hold_pop(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_scroll_hold_pop was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).PopScrollHold(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_scroll_hold_pop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_scroll_hold_pop_delegate efl_ui_widget_scroll_hold_pop_static_delegate; + + + private delegate void efl_ui_widget_scroll_freeze_push_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_widget_scroll_freeze_push_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scroll_freeze_push_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scroll_freeze_push"); + + private static void scroll_freeze_push(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_scroll_freeze_push was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).PushScrollFreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_scroll_freeze_push_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_scroll_freeze_push_delegate efl_ui_widget_scroll_freeze_push_static_delegate; + + + private delegate void efl_ui_widget_scroll_freeze_pop_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_widget_scroll_freeze_pop_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scroll_freeze_pop_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scroll_freeze_pop"); + + private static void scroll_freeze_pop(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_scroll_freeze_pop was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).PopScrollFreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_scroll_freeze_pop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_scroll_freeze_pop_delegate efl_ui_widget_scroll_freeze_pop_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_widget_part_access_object_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_widget_part_access_object_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_part_access_object_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_part_access_object_get"); + + private static Efl.Canvas.Object part_access_object_get(System.IntPtr obj, System.IntPtr pd, System.String part) + { + Eina.Log.Debug("function efl_ui_widget_part_access_object_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Widget)wrapper).GetPartAccessObject(part); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_part_access_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); + } + } + + private static efl_ui_widget_part_access_object_get_delegate efl_ui_widget_part_access_object_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_widget_newest_focus_order_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint newest_focus_order, [MarshalAs(UnmanagedType.U1)] bool can_focus_only); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_widget_newest_focus_order_get_api_delegate(System.IntPtr obj, out uint newest_focus_order, [MarshalAs(UnmanagedType.U1)] bool can_focus_only); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_newest_focus_order_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_newest_focus_order_get"); + + private static Efl.Canvas.Object newest_focus_order_get(System.IntPtr obj, System.IntPtr pd, out uint newest_focus_order, bool can_focus_only) + { + Eina.Log.Debug("function efl_ui_widget_newest_focus_order_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + newest_focus_order = default(uint); Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Widget)wrapper).GetNewestFocusOrder(out newest_focus_order, can_focus_only); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_newest_focus_order_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out newest_focus_order, can_focus_only); + } + } + + private static efl_ui_widget_newest_focus_order_get_delegate efl_ui_widget_newest_focus_order_get_static_delegate; + + + private delegate void efl_ui_widget_focus_next_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object next, Efl.Ui.Focus.Direction dir); + + + public delegate void efl_ui_widget_focus_next_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object next, Efl.Ui.Focus.Direction dir); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_object_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_next_object_set"); + + private static void focus_next_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object next, Efl.Ui.Focus.Direction dir) + { + Eina.Log.Debug("function efl_ui_widget_focus_next_object_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetFocusNextObject(next, dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_next_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), next, dir); + } + } + + private static efl_ui_widget_focus_next_object_set_delegate efl_ui_widget_focus_next_object_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_widget_focus_next_object_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_widget_focus_next_object_get_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction dir); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_object_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_next_object_get"); + + private static Efl.Canvas.Object focus_next_object_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir) + { + Eina.Log.Debug("function efl_ui_widget_focus_next_object_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Widget)wrapper).GetFocusNextObject(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focus_next_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } + + private static efl_ui_widget_focus_next_object_get_delegate efl_ui_widget_focus_next_object_get_static_delegate; + + + private delegate void efl_ui_widget_focus_next_item_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget next_item, Efl.Ui.Focus.Direction dir); + + + public delegate void efl_ui_widget_focus_next_item_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget next_item, Efl.Ui.Focus.Direction dir); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_item_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_next_item_set"); + + private static void focus_next_item_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Widget next_item, Efl.Ui.Focus.Direction dir) + { + Eina.Log.Debug("function efl_ui_widget_focus_next_item_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetFocusNextItem(next_item, dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_next_item_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), next_item, dir); + } + } + + private static efl_ui_widget_focus_next_item_set_delegate efl_ui_widget_focus_next_item_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Widget efl_ui_widget_focus_next_item_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Widget efl_ui_widget_focus_next_item_get_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction dir); - private delegate Eina.Error efl_ui_widget_style_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_item_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_next_item_get"); + private static Efl.Ui.Widget focus_next_item_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir) + { + Eina.Log.Debug("function efl_ui_widget_focus_next_item_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Widget _ret_var = default(Efl.Ui.Widget); + try + { + _ret_var = ((Widget)wrapper).GetFocusNextItem(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Error efl_ui_widget_style_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); - public static Efl.Eo.FunctionWrapper efl_ui_widget_style_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_style_set"); - private static Eina.Error style_set(System.IntPtr obj, System.IntPtr pd, System.String style) - { - Eina.Log.Debug("function efl_ui_widget_style_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Widget)wrapper).SetStyle( style); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_widget_style_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); + + } + else + { + return efl_ui_widget_focus_next_item_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } } - } - private static efl_ui_widget_style_set_delegate efl_ui_widget_style_set_static_delegate; + private static efl_ui_widget_focus_next_item_get_delegate efl_ui_widget_focus_next_item_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_allow_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_widget_focus_tree_unfocusable_handle_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_widget_focus_tree_unfocusable_handle_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_allow_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_allow_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_allow_get"); - private static bool focus_allow_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_allow_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GetFocusAllow(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_tree_unfocusable_handle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_tree_unfocusable_handle"); + + private static void focus_tree_unfocusable_handle(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_tree_unfocusable_handle was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).FocusTreeUnfocusableHandle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_tree_unfocusable_handle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_ui_widget_focus_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_focus_allow_get_delegate efl_ui_widget_focus_allow_get_static_delegate; + private static efl_ui_widget_focus_tree_unfocusable_handle_delegate efl_ui_widget_focus_tree_unfocusable_handle_static_delegate; - private delegate void efl_ui_widget_focus_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_focus); + + private delegate void efl_ui_widget_focus_custom_chain_prepend_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object relative_child); + + public delegate void efl_ui_widget_focus_custom_chain_prepend_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object relative_child); - public delegate void efl_ui_widget_focus_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_focus); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_allow_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_allow_set"); - private static void focus_allow_set(System.IntPtr obj, System.IntPtr pd, bool can_focus) - { - Eina.Log.Debug("function efl_ui_widget_focus_allow_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetFocusAllow( can_focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_focus_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_focus); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_custom_chain_prepend_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_custom_chain_prepend"); + + private static void focus_custom_chain_prepend(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object child, Efl.Canvas.Object relative_child) + { + Eina.Log.Debug("function efl_ui_widget_focus_custom_chain_prepend was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).FocusCustomChainPrepend(child, relative_child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_custom_chain_prepend_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, relative_child); + } } - } - private static efl_ui_widget_focus_allow_set_delegate efl_ui_widget_focus_allow_set_static_delegate; + private static efl_ui_widget_focus_custom_chain_prepend_delegate efl_ui_widget_focus_custom_chain_prepend_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Widget efl_ui_widget_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_widget_focus_cycle_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir); + + public delegate void efl_ui_widget_focus_cycle_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction dir); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Widget efl_ui_widget_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_parent_get"); - private static Efl.Ui.Widget widget_parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Widget _ret_var = default(Efl.Ui.Widget); - try { - _ret_var = ((Widget)wrapper).GetWidgetParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_cycle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_cycle"); + + private static void focus_cycle(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir) + { + Eina.Log.Debug("function efl_ui_widget_focus_cycle was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).FocusCycle(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_cycle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } - return _ret_var; - } else { - return efl_ui_widget_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_parent_get_delegate efl_ui_widget_parent_get_static_delegate; - - private delegate void efl_ui_widget_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Widget parent); + private static efl_ui_widget_focus_cycle_delegate efl_ui_widget_focus_cycle_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_direction_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_base, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget direction_item, out double weight); - public delegate void efl_ui_widget_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Widget parent); - public static Efl.Eo.FunctionWrapper efl_ui_widget_parent_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_parent_set"); - private static void widget_parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Widget parent) - { - Eina.Log.Debug("function efl_ui_widget_parent_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetWidgetParent( parent); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); - } - } - private static efl_ui_widget_parent_set_delegate efl_ui_widget_parent_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_direction_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_base, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget direction_item, out double weight); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_direction_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_direction"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_widget_access_info_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool focus_direction(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_base, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) + { + Eina.Log.Debug("function efl_ui_widget_focus_direction was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + direction = default(Efl.Canvas.Object); direction_item = default(Efl.Ui.Widget); weight = default(double); bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).FocusDirection(kw_base, degree, out direction, out direction_item, out weight); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_widget_access_info_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_access_info_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_access_info_get"); - private static System.String access_info_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_access_info_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetAccessInfo(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_access_info_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_widget_focus_direction_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_base, degree, out direction, out direction_item, out weight); + } } - } - private static efl_ui_widget_access_info_get_delegate efl_ui_widget_access_info_get_static_delegate; + private static efl_ui_widget_focus_direction_delegate efl_ui_widget_focus_direction_static_delegate; - private delegate void efl_ui_widget_access_info_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String txt); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_next_manager_is_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_next_manager_is_api_delegate(System.IntPtr obj); - public delegate void efl_ui_widget_access_info_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String txt); - public static Efl.Eo.FunctionWrapper efl_ui_widget_access_info_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_access_info_set"); - private static void access_info_set(System.IntPtr obj, System.IntPtr pd, System.String txt) - { - Eina.Log.Debug("function efl_ui_widget_access_info_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetAccessInfo( txt); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_access_info_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), txt); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_manager_is_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_next_manager_is"); + + private static bool focus_next_manager_is(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_next_manager_is was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).IsFocusNextManager(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focus_next_manager_is_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_access_info_set_delegate efl_ui_widget_access_info_set_static_delegate; + private static efl_ui_widget_focus_next_manager_is_delegate efl_ui_widget_focus_next_manager_is_static_delegate; - private delegate Eina.Rect.NativeStruct efl_ui_widget_interest_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_list_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_base, System.IntPtr items, System.IntPtr list_data_get, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget direction_item, out double weight); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_list_direction_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_base, System.IntPtr items, System.IntPtr list_data_get, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget direction_item, out double weight); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_list_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_list_direction_get"); + + private static bool focus_list_direction_get(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_base, System.IntPtr items, System.IntPtr list_data_get, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) + { + Eina.Log.Debug("function efl_ui_widget_focus_list_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_items = new Eina.List(items, false, false); + direction = default(Efl.Canvas.Object); direction_item = default(Efl.Ui.Widget); weight = default(double); bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GetFocusListDirection(kw_base, _in_items, list_data_get, degree, out direction, out direction_item, out weight); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Rect.NativeStruct efl_ui_widget_interest_region_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_interest_region_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_interest_region_get"); - private static Eina.Rect.NativeStruct interest_region_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_interest_region_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Widget)wrapper).GetInterestRegion(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_interest_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_widget_focus_list_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_base, items, list_data_get, degree, out direction, out direction_item, out weight); + } } - } - private static efl_ui_widget_interest_region_get_delegate efl_ui_widget_interest_region_get_static_delegate; + private static efl_ui_widget_focus_list_direction_get_delegate efl_ui_widget_focus_list_direction_get_static_delegate; - private delegate Eina.Rect.NativeStruct efl_ui_widget_focus_highlight_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_widget_focused_object_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_widget_focused_object_clear_api_delegate(System.IntPtr obj); - public delegate Eina.Rect.NativeStruct efl_ui_widget_focus_highlight_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_highlight_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_highlight_geometry_get"); - private static Eina.Rect.NativeStruct focus_highlight_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_highlight_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Widget)wrapper).GetFocusHighlightGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focused_object_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focused_object_clear"); + + private static void focused_object_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focused_object_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).ClearFocusedObject(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focused_object_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_ui_widget_focus_highlight_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_focus_highlight_geometry_get_delegate efl_ui_widget_focus_highlight_geometry_get_static_delegate; + private static efl_ui_widget_focused_object_clear_delegate efl_ui_widget_focused_object_clear_static_delegate; - private delegate uint efl_ui_widget_focus_order_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_direction_go_delegate(System.IntPtr obj, System.IntPtr pd, double degree); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_direction_go_api_delegate(System.IntPtr obj, double degree); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_direction_go_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_direction_go"); + + private static bool focus_direction_go(System.IntPtr obj, System.IntPtr pd, double degree) + { + Eina.Log.Debug("function efl_ui_widget_focus_direction_go was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).FocusDirectionGo(degree); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate uint efl_ui_widget_focus_order_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_order_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_order_get"); - private static uint focus_order_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_order_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - uint _ret_var = default(uint); - try { - _ret_var = ((Widget)wrapper).GetFocusOrder(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_focus_order_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_widget_focus_direction_go_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), degree); + } } - } - private static efl_ui_widget_focus_order_get_delegate efl_ui_widget_focus_order_get_static_delegate; + private static efl_ui_widget_focus_direction_go_delegate efl_ui_widget_focus_direction_go_static_delegate; - private delegate System.IntPtr efl_ui_widget_focus_custom_chain_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_next_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget next_item); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_next_get_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget next_item); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_next_get"); + + private static bool focus_next_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) + { + Eina.Log.Debug("function efl_ui_widget_focus_next_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + next = default(Efl.Canvas.Object); next_item = default(Efl.Ui.Widget); bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GetFocusNext(dir, out next, out next_item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate System.IntPtr efl_ui_widget_focus_custom_chain_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_custom_chain_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_custom_chain_get"); - private static System.IntPtr focus_custom_chain_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_custom_chain_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((Widget)wrapper).GetFocusCustomChain(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var.Handle; - } else { - return efl_ui_widget_focus_custom_chain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_widget_focus_next_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir, out next, out next_item); + } } - } - private static efl_ui_widget_focus_custom_chain_get_delegate efl_ui_widget_focus_custom_chain_get_static_delegate; + private static efl_ui_widget_focus_next_get_delegate efl_ui_widget_focus_next_get_static_delegate; - private delegate void efl_ui_widget_focus_custom_chain_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr objs); + + private delegate void efl_ui_widget_focus_restore_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_widget_focus_restore_api_delegate(System.IntPtr obj); - public delegate void efl_ui_widget_focus_custom_chain_set_api_delegate(System.IntPtr obj, System.IntPtr objs); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_custom_chain_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_custom_chain_set"); - private static void focus_custom_chain_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr objs) - { - Eina.Log.Debug("function efl_ui_widget_focus_custom_chain_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_objs = new Eina.List(objs, false, false); - - try { - ((Widget)wrapper).SetFocusCustomChain( _in_objs); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_restore_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_restore"); + + private static void focus_restore(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_restore was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).FocusRestore(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_restore_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_widget_focus_custom_chain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), objs); } - } - private static efl_ui_widget_focus_custom_chain_set_delegate efl_ui_widget_focus_custom_chain_set_static_delegate; + private static efl_ui_widget_focus_restore_delegate efl_ui_widget_focus_restore_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_widget_focused_object_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_widget_focus_custom_chain_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_widget_focus_custom_chain_unset_api_delegate(System.IntPtr obj); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_widget_focused_object_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focused_object_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focused_object_get"); - private static Efl.Canvas.Object focused_object_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focused_object_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Widget)wrapper).GetFocusedObject(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_custom_chain_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_custom_chain_unset"); + + private static void focus_custom_chain_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_custom_chain_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).UnsetFocusCustomChain(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_custom_chain_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_ui_widget_focused_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_focused_object_get_delegate efl_ui_widget_focused_object_get_static_delegate; + private static efl_ui_widget_focus_custom_chain_unset_delegate efl_ui_widget_focus_custom_chain_unset_static_delegate; - private delegate Efl.Ui.Focus.MovePolicy efl_ui_widget_focus_move_policy_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_widget_focus_steal_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget item); + + public delegate void efl_ui_widget_focus_steal_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget item); - public delegate Efl.Ui.Focus.MovePolicy efl_ui_widget_focus_move_policy_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_move_policy_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_move_policy_get"); - private static Efl.Ui.Focus.MovePolicy focus_move_policy_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_move_policy_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.MovePolicy _ret_var = default(Efl.Ui.Focus.MovePolicy); - try { - _ret_var = ((Widget)wrapper).GetFocusMovePolicy(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_steal_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_steal"); + + private static void focus_steal(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Widget item) + { + Eina.Log.Debug("function efl_ui_widget_focus_steal was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).FocusSteal(item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_steal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item); } - return _ret_var; - } else { - return efl_ui_widget_focus_move_policy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_focus_move_policy_get_delegate efl_ui_widget_focus_move_policy_get_static_delegate; + private static efl_ui_widget_focus_steal_delegate efl_ui_widget_focus_steal_static_delegate; - private delegate void efl_ui_widget_focus_move_policy_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.MovePolicy policy); + + private delegate void efl_ui_widget_focus_hide_handle_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_widget_focus_hide_handle_api_delegate(System.IntPtr obj); - public delegate void efl_ui_widget_focus_move_policy_set_api_delegate(System.IntPtr obj, Efl.Ui.Focus.MovePolicy policy); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_move_policy_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_move_policy_set"); - private static void focus_move_policy_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.MovePolicy policy) - { - Eina.Log.Debug("function efl_ui_widget_focus_move_policy_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetFocusMovePolicy( policy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_focus_move_policy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), policy); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_hide_handle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_hide_handle"); + + private static void focus_hide_handle(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_hide_handle was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).FocusHideHandle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_hide_handle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_focus_move_policy_set_delegate efl_ui_widget_focus_move_policy_set_static_delegate; + private static efl_ui_widget_focus_hide_handle_delegate efl_ui_widget_focus_hide_handle_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_move_policy_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget next_item); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_next_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget next_item); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_next"); + + private static bool focus_next(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) + { + Eina.Log.Debug("function efl_ui_widget_focus_next was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + next = default(Efl.Canvas.Object); next_item = default(Efl.Ui.Widget); bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).FocusNext(dir, out next, out next_item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_move_policy_automatic_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_move_policy_automatic_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_move_policy_automatic_get"); - private static bool focus_move_policy_automatic_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_move_policy_automatic_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GetFocusMovePolicyAutomatic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_focus_move_policy_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_widget_focus_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir, out next, out next_item); + } } - } - private static efl_ui_widget_focus_move_policy_automatic_get_delegate efl_ui_widget_focus_move_policy_automatic_get_static_delegate; + private static efl_ui_widget_focus_next_delegate efl_ui_widget_focus_next_static_delegate; - private delegate void efl_ui_widget_focus_move_policy_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_list_next_get_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr items, System.IntPtr list_data_get, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget next_item); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_list_next_get_api_delegate(System.IntPtr obj, System.IntPtr items, System.IntPtr list_data_get, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget next_item); - public delegate void efl_ui_widget_focus_move_policy_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_move_policy_automatic_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_move_policy_automatic_set"); - private static void focus_move_policy_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) - { - Eina.Log.Debug("function efl_ui_widget_focus_move_policy_automatic_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetFocusMovePolicyAutomatic( automatic); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_focus_move_policy_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_list_next_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_list_next_get"); + + private static bool focus_list_next_get(System.IntPtr obj, System.IntPtr pd, System.IntPtr items, System.IntPtr list_data_get, Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) + { + Eina.Log.Debug("function efl_ui_widget_focus_list_next_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_items = new Eina.List(items, false, false); + next = default(Efl.Canvas.Object); next_item = default(Efl.Ui.Widget); bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GetFocusListNext(_in_items, list_data_get, dir, out next, out next_item); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focus_list_next_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), items, list_data_get, dir, out next, out next_item); + } } - } - private static efl_ui_widget_focus_move_policy_automatic_set_delegate efl_ui_widget_focus_move_policy_automatic_set_static_delegate; + private static efl_ui_widget_focus_list_next_get_delegate efl_ui_widget_focus_list_next_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_input_event_handler_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Event.NativeStruct eo_event, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object source); + + private delegate void efl_ui_widget_focus_mouse_up_handle_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_widget_focus_mouse_up_handle_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_input_event_handler_api_delegate(System.IntPtr obj, ref Efl.Event.NativeStruct eo_event, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object source); - public static Efl.Eo.FunctionWrapper efl_ui_widget_input_event_handler_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_input_event_handler"); - private static bool widget_input_event_handler(System.IntPtr obj, System.IntPtr pd, ref Efl.Event.NativeStruct eo_event, Efl.Canvas.Object source) - { - Eina.Log.Debug("function efl_ui_widget_input_event_handler was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Event _in_eo_event = eo_event; - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).WidgetInputEventHandler( ref _in_eo_event, source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_mouse_up_handle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_mouse_up_handle"); + + private static void focus_mouse_up_handle(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_mouse_up_handle was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).FocusMouseUpHandle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_mouse_up_handle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - eo_event = _in_eo_event; - return _ret_var; - } else { - return efl_ui_widget_input_event_handler_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref eo_event, source); } - } - private static efl_ui_widget_input_event_handler_delegate efl_ui_widget_input_event_handler_static_delegate; + private static efl_ui_widget_focus_mouse_up_handle_delegate efl_ui_widget_focus_mouse_up_handle_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_on_access_activate_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Activate act); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_base, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget direction_item, out double weight); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_direction_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object kw_base, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] out Efl.Ui.Widget direction_item, out double weight); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_direction_get"); + + private static bool focus_direction_get(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_base, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) + { + Eina.Log.Debug("function efl_ui_widget_focus_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + direction = default(Efl.Canvas.Object); direction_item = default(Efl.Ui.Widget); weight = default(double); bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GetFocusDirection(kw_base, degree, out direction, out direction_item, out weight); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_on_access_activate_api_delegate(System.IntPtr obj, Efl.Ui.Activate act); - public static Efl.Eo.FunctionWrapper efl_ui_widget_on_access_activate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_on_access_activate"); - private static bool on_access_activate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Activate act) - { - Eina.Log.Debug("function efl_ui_widget_on_access_activate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).OnAccessActivate( act); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_on_access_activate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), act); + else + { + return efl_ui_widget_focus_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_base, degree, out direction, out direction_item, out weight); + } } - } - private static efl_ui_widget_on_access_activate_delegate efl_ui_widget_on_access_activate_static_delegate; + private static efl_ui_widget_focus_direction_get_delegate efl_ui_widget_focus_direction_get_static_delegate; - private delegate void efl_ui_widget_on_access_update_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + + private delegate void efl_ui_widget_focus_disabled_handle_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_widget_focus_disabled_handle_api_delegate(System.IntPtr obj); - public delegate void efl_ui_widget_on_access_update_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper efl_ui_widget_on_access_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_on_access_update"); - private static void on_access_update(System.IntPtr obj, System.IntPtr pd, bool enable) - { - Eina.Log.Debug("function efl_ui_widget_on_access_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).UpdateOnAccess( enable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_on_access_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_disabled_handle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_disabled_handle"); + + private static void focus_disabled_handle(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_disabled_handle was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).FocusDisabledHandle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_disabled_handle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_on_access_update_delegate efl_ui_widget_on_access_update_static_delegate; + private static efl_ui_widget_focus_disabled_handle_delegate efl_ui_widget_focus_disabled_handle_static_delegate; - private delegate void efl_ui_widget_screen_reader_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_screen_reader); + + private delegate void efl_ui_widget_focus_custom_chain_append_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object relative_child); + + public delegate void efl_ui_widget_focus_custom_chain_append_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object relative_child); - public delegate void efl_ui_widget_screen_reader_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_screen_reader); - public static Efl.Eo.FunctionWrapper efl_ui_widget_screen_reader_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_screen_reader"); - private static void screen_reader(System.IntPtr obj, System.IntPtr pd, bool is_screen_reader) - { - Eina.Log.Debug("function efl_ui_widget_screen_reader was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).ScreenReader( is_screen_reader); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_screen_reader_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_screen_reader); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_custom_chain_append_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_custom_chain_append"); + + private static void focus_custom_chain_append(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object child, Efl.Canvas.Object relative_child) + { + Eina.Log.Debug("function efl_ui_widget_focus_custom_chain_append was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).AppendFocusCustomChain(child, relative_child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_custom_chain_append_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, relative_child); + } } - } - private static efl_ui_widget_screen_reader_delegate efl_ui_widget_screen_reader_static_delegate; + private static efl_ui_widget_focus_custom_chain_append_delegate efl_ui_widget_focus_custom_chain_append_static_delegate; - private delegate void efl_ui_widget_atspi_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_atspi); + + private delegate void efl_ui_widget_focus_reconfigure_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_widget_focus_reconfigure_api_delegate(System.IntPtr obj); - public delegate void efl_ui_widget_atspi_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_atspi); - public static Efl.Eo.FunctionWrapper efl_ui_widget_atspi_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_atspi"); - private static void atspi(System.IntPtr obj, System.IntPtr pd, bool is_atspi) - { - Eina.Log.Debug("function efl_ui_widget_atspi was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).Atspi( is_atspi); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_atspi_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_atspi); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_reconfigure_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_reconfigure"); + + private static void focus_reconfigure(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_reconfigure was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).FocusReconfigure(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_focus_reconfigure_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_atspi_delegate efl_ui_widget_atspi_static_delegate; + private static efl_ui_widget_focus_reconfigure_delegate efl_ui_widget_focus_reconfigure_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_sub_object_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sub_obj); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_direction_manager_is_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_direction_manager_is_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_direction_manager_is_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_direction_manager_is"); + + private static bool focus_direction_manager_is(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_focus_direction_manager_is was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).IsFocusDirectionManager(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_sub_object_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sub_obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_sub_object_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_sub_object_add"); - private static bool widget_sub_object_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) - { - Eina.Log.Debug("function efl_ui_widget_sub_object_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).AddWidgetSubObject( sub_obj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_sub_object_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); + else + { + return efl_ui_widget_focus_direction_manager_is_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_sub_object_add_delegate efl_ui_widget_sub_object_add_static_delegate; + private static efl_ui_widget_focus_direction_manager_is_delegate efl_ui_widget_focus_direction_manager_is_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_sub_object_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sub_obj); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_focus_state_apply_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WidgetFocusState.NativeStruct current_state, ref Efl.Ui.WidgetFocusState.NativeStruct configured_state, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget redirect); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_focus_state_apply_api_delegate(System.IntPtr obj, Efl.Ui.WidgetFocusState.NativeStruct current_state, ref Efl.Ui.WidgetFocusState.NativeStruct configured_state, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_state_apply_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_state_apply"); + + private static bool focus_state_apply(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WidgetFocusState.NativeStruct current_state, ref Efl.Ui.WidgetFocusState.NativeStruct configured_state, Efl.Ui.Widget redirect) + { + Eina.Log.Debug("function efl_ui_widget_focus_state_apply was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.WidgetFocusState _in_current_state = current_state; + Efl.Ui.WidgetFocusState _out_configured_state = default(Efl.Ui.WidgetFocusState); + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).FocusStateApply(_in_current_state, ref _out_configured_state, redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + configured_state = _out_configured_state; + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_sub_object_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object sub_obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_sub_object_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_sub_object_del"); - private static bool widget_sub_object_del(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object sub_obj) - { - Eina.Log.Debug("function efl_ui_widget_sub_object_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).DelWidgetSubObject( sub_obj); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_sub_object_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sub_obj); + else + { + return efl_ui_widget_focus_state_apply_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), current_state, ref configured_state, redirect); + } } - } - private static efl_ui_widget_sub_object_del_delegate efl_ui_widget_sub_object_del_static_delegate; + private static efl_ui_widget_focus_state_apply_delegate efl_ui_widget_focus_state_apply_static_delegate; - private delegate Eina.Error efl_ui_widget_theme_apply_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_part_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_part_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_part_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_part_get"); + + private static Efl.Object part_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_part_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((Widget)wrapper).GetPart(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Eina.Error efl_ui_widget_theme_apply_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_theme_apply_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_theme_apply"); - private static Eina.Error theme_apply(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_theme_apply was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Widget)wrapper).ThemeApply(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_theme_apply_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_part_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } } - } - private static efl_ui_widget_theme_apply_delegate efl_ui_widget_theme_apply_static_delegate; + private static efl_part_get_delegate efl_part_get_static_delegate; - private delegate void efl_ui_widget_scroll_hold_push_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_action_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_action_name_get_api_delegate(System.IntPtr obj, int id); - public delegate void efl_ui_widget_scroll_hold_push_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_scroll_hold_push_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_scroll_hold_push"); - private static void scroll_hold_push(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_scroll_hold_push was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).PushScrollHold(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_action_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_name_get"); + + private static System.String action_name_get(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetActionName(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_action_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); } - } else { - efl_ui_widget_scroll_hold_push_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_scroll_hold_push_delegate efl_ui_widget_scroll_hold_push_static_delegate; + private static efl_access_action_name_get_delegate efl_access_action_name_get_static_delegate; - private delegate void efl_ui_widget_scroll_hold_pop_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_action_localized_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_action_localized_name_get_api_delegate(System.IntPtr obj, int id); - public delegate void efl_ui_widget_scroll_hold_pop_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_scroll_hold_pop_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_scroll_hold_pop"); - private static void scroll_hold_pop(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_scroll_hold_pop was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).PopScrollHold(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_action_localized_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_localized_name_get"); + + private static System.String action_localized_name_get(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_localized_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetActionLocalizedName(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_action_localized_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); } - } else { - efl_ui_widget_scroll_hold_pop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_scroll_hold_pop_delegate efl_ui_widget_scroll_hold_pop_static_delegate; + private static efl_access_action_localized_name_get_delegate efl_access_action_localized_name_get_static_delegate; - private delegate void efl_ui_widget_scroll_freeze_push_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate System.IntPtr efl_access_action_actions_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_access_action_actions_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_widget_scroll_freeze_push_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_scroll_freeze_push_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_scroll_freeze_push"); - private static void scroll_freeze_push(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_scroll_freeze_push was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).PushScrollFreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_action_actions_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_actions_get"); + + private static System.IntPtr actions_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_action_actions_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((Widget)wrapper).GetActions(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; + + } + else + { + return efl_access_action_actions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_widget_scroll_freeze_push_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_scroll_freeze_push_delegate efl_ui_widget_scroll_freeze_push_static_delegate; + private static efl_access_action_actions_get_delegate efl_access_action_actions_get_static_delegate; - private delegate void efl_ui_widget_scroll_freeze_pop_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_action_do_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_action_do_api_delegate(System.IntPtr obj, int id); - public delegate void efl_ui_widget_scroll_freeze_pop_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_scroll_freeze_pop_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_scroll_freeze_pop"); - private static void scroll_freeze_pop(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_scroll_freeze_pop was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).PopScrollFreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_action_do_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_do"); + + private static bool action_do(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_do was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).ActionDo(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_action_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); } - } else { - efl_ui_widget_scroll_freeze_pop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_scroll_freeze_pop_delegate efl_ui_widget_scroll_freeze_pop_static_delegate; + private static efl_access_action_do_delegate efl_access_action_do_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + private delegate System.String efl_access_action_keybinding_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] + public delegate System.String efl_access_action_keybinding_get_api_delegate(System.IntPtr obj, int id); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_widget_part_access_object_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); + public static Efl.Eo.FunctionWrapper efl_access_action_keybinding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_action_keybinding_get"); + private static System.String action_keybinding_get(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_access_action_keybinding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetActionKeybinding(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_widget_part_access_object_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String part); - public static Efl.Eo.FunctionWrapper efl_ui_widget_part_access_object_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_part_access_object_get"); - private static Efl.Canvas.Object part_access_object_get(System.IntPtr obj, System.IntPtr pd, System.String part) - { - Eina.Log.Debug("function efl_ui_widget_part_access_object_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Widget)wrapper).GetPartAccessObject( part); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_widget_part_access_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), part); - } - } - private static efl_ui_widget_part_access_object_get_delegate efl_ui_widget_part_access_object_get_static_delegate; + } + else + { + return efl_access_action_keybinding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_widget_newest_focus_order_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint newest_focus_order, [MarshalAs(UnmanagedType.U1)] bool can_focus_only); + private static efl_access_action_keybinding_get_delegate efl_access_action_keybinding_get_static_delegate; + + private delegate int efl_access_component_z_order_get_delegate(System.IntPtr obj, System.IntPtr pd); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_widget_newest_focus_order_get_api_delegate(System.IntPtr obj, out uint newest_focus_order, [MarshalAs(UnmanagedType.U1)] bool can_focus_only); - public static Efl.Eo.FunctionWrapper efl_ui_widget_newest_focus_order_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_newest_focus_order_get"); - private static Efl.Canvas.Object newest_focus_order_get(System.IntPtr obj, System.IntPtr pd, out uint newest_focus_order, bool can_focus_only) - { - Eina.Log.Debug("function efl_ui_widget_newest_focus_order_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - newest_focus_order = default(uint); Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Widget)wrapper).GetNewestFocusOrder( out newest_focus_order, can_focus_only); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_widget_newest_focus_order_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out newest_focus_order, can_focus_only); - } - } - private static efl_ui_widget_newest_focus_order_get_delegate efl_ui_widget_newest_focus_order_get_static_delegate; + + public delegate int efl_access_component_z_order_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_access_component_z_order_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_z_order_get"); - private delegate void efl_ui_widget_focus_next_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object next, Efl.Ui.Focus.Direction dir); + private static int z_order_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_component_z_order_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Widget)wrapper).GetZOrder(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_widget_focus_next_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object next, Efl.Ui.Focus.Direction dir); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_object_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_next_object_set"); - private static void focus_next_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object next, Efl.Ui.Focus.Direction dir) - { - Eina.Log.Debug("function efl_ui_widget_focus_next_object_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetFocusNextObject( next, dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_widget_focus_next_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), next, dir); + else + { + return efl_access_component_z_order_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_focus_next_object_set_delegate efl_ui_widget_focus_next_object_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_widget_focus_next_object_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir); + private static efl_access_component_z_order_get_delegate efl_access_component_z_order_get_static_delegate; + + private delegate Eina.Rect.NativeStruct efl_access_component_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_widget_focus_next_object_get_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction dir); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_object_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_next_object_get"); - private static Efl.Canvas.Object focus_next_object_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir) - { - Eina.Log.Debug("function efl_ui_widget_focus_next_object_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Widget)wrapper).GetFocusNextObject( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_widget_focus_next_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_ui_widget_focus_next_object_get_delegate efl_ui_widget_focus_next_object_get_static_delegate; + + public delegate Eina.Rect.NativeStruct efl_access_component_extents_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords); + public static Efl.Eo.FunctionWrapper efl_access_component_extents_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_extents_get"); - private delegate void efl_ui_widget_focus_next_item_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Widget next_item, Efl.Ui.Focus.Direction dir); + private static Eina.Rect.NativeStruct extents_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords) + { + Eina.Log.Debug("function efl_access_component_extents_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Widget)wrapper).GetExtents(screen_coords); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_widget_focus_next_item_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Widget next_item, Efl.Ui.Focus.Direction dir); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_item_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_next_item_set"); - private static void focus_next_item_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Widget next_item, Efl.Ui.Focus.Direction dir) - { - Eina.Log.Debug("function efl_ui_widget_focus_next_item_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetFocusNextItem( next_item, dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_widget_focus_next_item_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), next_item, dir); + else + { + return efl_access_component_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords); + } } - } - private static efl_ui_widget_focus_next_item_set_delegate efl_ui_widget_focus_next_item_set_static_delegate; + private static efl_access_component_extents_get_delegate efl_access_component_extents_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Widget efl_ui_widget_focus_next_item_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_extents_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_extents_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Widget efl_ui_widget_focus_next_item_get_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction dir); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_item_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_next_item_get"); - private static Efl.Ui.Widget focus_next_item_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir) - { - Eina.Log.Debug("function efl_ui_widget_focus_next_item_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Widget _ret_var = default(Efl.Ui.Widget); - try { - _ret_var = ((Widget)wrapper).GetFocusNextItem( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_widget_focus_next_item_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_ui_widget_focus_next_item_get_delegate efl_ui_widget_focus_next_item_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_component_extents_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_extents_set"); - private delegate void efl_ui_widget_focus_tree_unfocusable_handle_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool extents_set(System.IntPtr obj, System.IntPtr pd, bool screen_coords, Eina.Rect.NativeStruct rect) + { + Eina.Log.Debug("function efl_access_component_extents_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).SetExtents(screen_coords, _in_rect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_widget_focus_tree_unfocusable_handle_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_tree_unfocusable_handle_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_tree_unfocusable_handle"); - private static void focus_tree_unfocusable_handle(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_tree_unfocusable_handle was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).FocusTreeUnfocusableHandle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_widget_focus_tree_unfocusable_handle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_component_extents_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, rect); + } } - } - private static efl_ui_widget_focus_tree_unfocusable_handle_delegate efl_ui_widget_focus_tree_unfocusable_handle_static_delegate; + private static efl_access_component_extents_set_delegate efl_access_component_extents_set_static_delegate; - private delegate void efl_ui_widget_focus_custom_chain_prepend_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object relative_child); + + private delegate void efl_access_component_screen_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + public delegate void efl_access_component_screen_position_get_api_delegate(System.IntPtr obj, out int x, out int y); - public delegate void efl_ui_widget_focus_custom_chain_prepend_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object relative_child); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_custom_chain_prepend_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_custom_chain_prepend"); - private static void focus_custom_chain_prepend(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object child, Efl.Canvas.Object relative_child) - { - Eina.Log.Debug("function efl_ui_widget_focus_custom_chain_prepend was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).FocusCustomChainPrepend( child, relative_child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_component_screen_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_screen_position_get"); + + private static void screen_position_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + { + Eina.Log.Debug("function efl_access_component_screen_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); + try + { + ((Widget)wrapper).GetScreenPosition(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_component_screen_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } else { - efl_ui_widget_focus_custom_chain_prepend_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, relative_child); } - } - private static efl_ui_widget_focus_custom_chain_prepend_delegate efl_ui_widget_focus_custom_chain_prepend_static_delegate; - - private delegate void efl_ui_widget_focus_cycle_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir); + private static efl_access_component_screen_position_get_delegate efl_access_component_screen_position_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_screen_position_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); - public delegate void efl_ui_widget_focus_cycle_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction dir); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_cycle_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_cycle"); - private static void focus_cycle(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir) - { - Eina.Log.Debug("function efl_ui_widget_focus_cycle was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).FocusCycle( dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_focus_cycle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - private static efl_ui_widget_focus_cycle_delegate efl_ui_widget_focus_cycle_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_screen_position_set_api_delegate(System.IntPtr obj, int x, int y); + public static Efl.Eo.FunctionWrapper efl_access_component_screen_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_screen_position_set"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_direction_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_base, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget direction_item, out double weight); + private static bool screen_position_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + { + Eina.Log.Debug("function efl_access_component_screen_position_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).SetScreenPosition(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_direction_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_base, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget direction_item, out double weight); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_direction_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_direction"); - private static bool focus_direction(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_base, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) - { - Eina.Log.Debug("function efl_ui_widget_focus_direction was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - direction = default(Efl.Canvas.Object); direction_item = default(Efl.Ui.Widget); weight = default(double); bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).FocusDirection( kw_base, degree, out direction, out direction_item, out weight); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_focus_direction_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_base, degree, out direction, out direction_item, out weight); + else + { + return efl_access_component_screen_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } } - } - private static efl_ui_widget_focus_direction_delegate efl_ui_widget_focus_direction_static_delegate; + private static efl_access_component_screen_position_set_delegate efl_access_component_screen_position_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_next_manager_is_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_component_socket_offset_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + public delegate void efl_access_component_socket_offset_get_api_delegate(System.IntPtr obj, out int x, out int y); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_next_manager_is_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_manager_is_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_next_manager_is"); - private static bool focus_next_manager_is(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_next_manager_is was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).IsFocusNextManager(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_component_socket_offset_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_socket_offset_get"); + + private static void socket_offset_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + { + Eina.Log.Debug("function efl_access_component_socket_offset_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); + try + { + ((Widget)wrapper).GetSocketOffset(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_component_socket_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - return _ret_var; - } else { - return efl_ui_widget_focus_next_manager_is_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_focus_next_manager_is_delegate efl_ui_widget_focus_next_manager_is_static_delegate; + private static efl_access_component_socket_offset_get_delegate efl_access_component_socket_offset_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_list_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_base, System.IntPtr items, System.IntPtr list_data_get, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget direction_item, out double weight); + + private delegate void efl_access_component_socket_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + public delegate void efl_access_component_socket_offset_set_api_delegate(System.IntPtr obj, int x, int y); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_list_direction_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_base, System.IntPtr items, System.IntPtr list_data_get, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget direction_item, out double weight); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_list_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_list_direction_get"); - private static bool focus_list_direction_get(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_base, System.IntPtr items, System.IntPtr list_data_get, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) - { - Eina.Log.Debug("function efl_ui_widget_focus_list_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_items = new Eina.List(items, false, false); - direction = default(Efl.Canvas.Object); direction_item = default(Efl.Ui.Widget); weight = default(double); bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GetFocusListDirection( kw_base, _in_items, list_data_get, degree, out direction, out direction_item, out weight); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_component_socket_offset_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_socket_offset_set"); + + private static void socket_offset_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + { + Eina.Log.Debug("function efl_access_component_socket_offset_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetSocketOffset(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_component_socket_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - return _ret_var; - } else { - return efl_ui_widget_focus_list_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_base, items, list_data_get, degree, out direction, out direction_item, out weight); } - } - private static efl_ui_widget_focus_list_direction_get_delegate efl_ui_widget_focus_list_direction_get_static_delegate; - - private delegate void efl_ui_widget_focused_object_clear_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_access_component_socket_offset_set_delegate efl_access_component_socket_offset_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_contains_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); - public delegate void efl_ui_widget_focused_object_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focused_object_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focused_object_clear"); - private static void focused_object_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focused_object_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).ClearFocusedObject(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_focused_object_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_widget_focused_object_clear_delegate efl_ui_widget_focused_object_clear_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_contains_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + public static Efl.Eo.FunctionWrapper efl_access_component_contains_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_contains"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_direction_go_delegate(System.IntPtr obj, System.IntPtr pd, double degree); + private static bool contains(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) + { + Eina.Log.Debug("function efl_access_component_contains was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).Contains(screen_coords, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_direction_go_api_delegate(System.IntPtr obj, double degree); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_direction_go_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_direction_go"); - private static bool focus_direction_go(System.IntPtr obj, System.IntPtr pd, double degree) - { - Eina.Log.Debug("function efl_ui_widget_focus_direction_go was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).FocusDirectionGo( degree); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_focus_direction_go_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), degree); + else + { + return efl_access_component_contains_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); + } } - } - private static efl_ui_widget_focus_direction_go_delegate efl_ui_widget_focus_direction_go_static_delegate; + private static efl_access_component_contains_delegate efl_access_component_contains_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_next_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget next_item); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_focus_grab_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_focus_grab_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_next_get_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget next_item); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_next_get"); - private static bool focus_next_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) - { - Eina.Log.Debug("function efl_ui_widget_focus_next_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - next = default(Efl.Canvas.Object); next_item = default(Efl.Ui.Widget); bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GetFocusNext( dir, out next, out next_item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_widget_focus_next_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir, out next, out next_item); - } - } - private static efl_ui_widget_focus_next_get_delegate efl_ui_widget_focus_next_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_component_focus_grab_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_focus_grab"); - private delegate void efl_ui_widget_focus_restore_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool focus_grab(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_component_focus_grab was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GrabFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_widget_focus_restore_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_restore_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_restore"); - private static void focus_restore(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_restore was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).FocusRestore(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_widget_focus_restore_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_component_focus_grab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_focus_restore_delegate efl_ui_widget_focus_restore_static_delegate; + private static efl_access_component_focus_grab_delegate efl_access_component_focus_grab_static_delegate; - private delegate void efl_ui_widget_focus_custom_chain_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_access_component_accessible_at_point_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_access_component_accessible_at_point_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); - public delegate void efl_ui_widget_focus_custom_chain_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_custom_chain_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_custom_chain_unset"); - private static void focus_custom_chain_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_custom_chain_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).UnsetFocusCustomChain(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_component_accessible_at_point_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_accessible_at_point_get"); + + private static Efl.Object accessible_at_point_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) + { + Eina.Log.Debug("function efl_access_component_accessible_at_point_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((Widget)wrapper).GetAccessibleAtPoint(screen_coords, x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_access_component_accessible_at_point_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); } - } else { - efl_ui_widget_focus_custom_chain_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_focus_custom_chain_unset_delegate efl_ui_widget_focus_custom_chain_unset_static_delegate; - - private delegate void efl_ui_widget_focus_steal_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Widget item); + private static efl_access_component_accessible_at_point_get_delegate efl_access_component_accessible_at_point_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_highlight_grab_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_widget_focus_steal_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Widget item); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_steal_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_steal"); - private static void focus_steal(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Widget item) - { - Eina.Log.Debug("function efl_ui_widget_focus_steal was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).FocusSteal( item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_focus_steal_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item); - } - } - private static efl_ui_widget_focus_steal_delegate efl_ui_widget_focus_steal_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_highlight_grab_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_access_component_highlight_grab_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_highlight_grab"); - private delegate void efl_ui_widget_focus_hide_handle_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool highlight_grab(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_component_highlight_grab was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GrabHighlight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_widget_focus_hide_handle_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_hide_handle_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_hide_handle"); - private static void focus_hide_handle(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_hide_handle was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).FocusHideHandle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_widget_focus_hide_handle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_component_highlight_grab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_focus_hide_handle_delegate efl_ui_widget_focus_hide_handle_static_delegate; + private static efl_access_component_highlight_grab_delegate efl_access_component_highlight_grab_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_next_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget next_item); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_component_highlight_clear_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_component_highlight_clear_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_next_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget next_item); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_next_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_next"); - private static bool focus_next(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) - { - Eina.Log.Debug("function efl_ui_widget_focus_next was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - next = default(Efl.Canvas.Object); next_item = default(Efl.Ui.Widget); bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).FocusNext( dir, out next, out next_item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_widget_focus_next_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir, out next, out next_item); - } - } - private static efl_ui_widget_focus_next_delegate efl_ui_widget_focus_next_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_component_highlight_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_component_highlight_clear"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_list_next_get_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr items, System.IntPtr list_data_get, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget next_item); + private static bool highlight_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_component_highlight_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).ClearHighlight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_list_next_get_api_delegate(System.IntPtr obj, System.IntPtr items, System.IntPtr list_data_get, Efl.Ui.Focus.Direction dir, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object next, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget next_item); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_list_next_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_list_next_get"); - private static bool focus_list_next_get(System.IntPtr obj, System.IntPtr pd, System.IntPtr items, System.IntPtr list_data_get, Efl.Ui.Focus.Direction dir, out Efl.Canvas.Object next, out Efl.Ui.Widget next_item) - { - Eina.Log.Debug("function efl_ui_widget_focus_list_next_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_items = new Eina.List(items, false, false); - next = default(Efl.Canvas.Object); next_item = default(Efl.Ui.Widget); bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GetFocusListNext( _in_items, list_data_get, dir, out next, out next_item); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_focus_list_next_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), items, list_data_get, dir, out next, out next_item); + else + { + return efl_access_component_highlight_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_focus_list_next_get_delegate efl_ui_widget_focus_list_next_get_static_delegate; + private static efl_access_component_highlight_clear_delegate efl_access_component_highlight_clear_static_delegate; - private delegate void efl_ui_widget_focus_mouse_up_handle_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_localized_role_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_localized_role_name_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_widget_focus_mouse_up_handle_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_mouse_up_handle_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_mouse_up_handle"); - private static void focus_mouse_up_handle(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_mouse_up_handle was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).FocusMouseUpHandle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_focus_mouse_up_handle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_widget_focus_mouse_up_handle_delegate efl_ui_widget_focus_mouse_up_handle_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_object_localized_role_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_localized_role_name_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_direction_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_base, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget direction_item, out double weight); + private static System.String localized_role_name_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_localized_role_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetLocalizedRoleName(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_direction_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object kw_base, double degree, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Canvas.Object direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] out Efl.Ui.Widget direction_item, out double weight); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_direction_get"); - private static bool focus_direction_get(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object kw_base, double degree, out Efl.Canvas.Object direction, out Efl.Ui.Widget direction_item, out double weight) - { - Eina.Log.Debug("function efl_ui_widget_focus_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - direction = default(Efl.Canvas.Object); direction_item = default(Efl.Ui.Widget); weight = default(double); bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GetFocusDirection( kw_base, degree, out direction, out direction_item, out weight); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_widget_focus_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_base, degree, out direction, out direction_item, out weight); + else + { + return efl_access_object_localized_role_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_focus_direction_get_delegate efl_ui_widget_focus_direction_get_static_delegate; - - private delegate void efl_ui_widget_focus_disabled_handle_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_access_object_localized_role_name_get_delegate efl_access_object_localized_role_name_get_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_i18n_name_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_widget_focus_disabled_handle_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_disabled_handle_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_disabled_handle"); - private static void focus_disabled_handle(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_disabled_handle was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).FocusDisabledHandle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_focus_disabled_handle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_widget_focus_disabled_handle_delegate efl_ui_widget_focus_disabled_handle_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_i18n_name_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_access_object_i18n_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_i18n_name_get"); - private delegate void efl_ui_widget_focus_custom_chain_append_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object relative_child); + private static System.String i18n_name_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_i18n_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetI18nName(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_widget_focus_custom_chain_append_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object child, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object relative_child); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_custom_chain_append_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_custom_chain_append"); - private static void focus_custom_chain_append(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object child, Efl.Canvas.Object relative_child) - { - Eina.Log.Debug("function efl_ui_widget_focus_custom_chain_append was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).AppendFocusCustomChain( child, relative_child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_widget_focus_custom_chain_append_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child, relative_child); + else + { + return efl_access_object_i18n_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_focus_custom_chain_append_delegate efl_ui_widget_focus_custom_chain_append_static_delegate; + private static efl_access_object_i18n_name_get_delegate efl_access_object_i18n_name_get_static_delegate; - private delegate void efl_ui_widget_focus_reconfigure_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_i18n_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String i18n_name); + + public delegate void efl_access_object_i18n_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String i18n_name); + + public static Efl.Eo.FunctionWrapper efl_access_object_i18n_name_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_i18n_name_set"); + + private static void i18n_name_set(System.IntPtr obj, System.IntPtr pd, System.String i18n_name) + { + Eina.Log.Debug("function efl_access_object_i18n_name_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetI18nName(i18n_name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_widget_focus_reconfigure_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_reconfigure_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_reconfigure"); - private static void focus_reconfigure(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_reconfigure was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Widget)wrapper).FocusReconfigure(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_widget_focus_reconfigure_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_access_object_i18n_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), i18n_name); + } } - } - private static efl_ui_widget_focus_reconfigure_delegate efl_ui_widget_focus_reconfigure_static_delegate; + private static efl_access_object_i18n_name_set_delegate efl_access_object_i18n_name_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_direction_manager_is_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_name_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data); + + public delegate void efl_access_object_name_cb_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_direction_manager_is_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_direction_manager_is_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_direction_manager_is"); - private static bool focus_direction_manager_is(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_focus_direction_manager_is was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).IsFocusDirectionManager(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_name_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_name_cb_set"); + + private static void name_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data) + { + Eina.Log.Debug("function efl_access_object_name_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetNameCb(name_cb, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_name_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name_cb, data); } - return _ret_var; - } else { - return efl_ui_widget_focus_direction_manager_is_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_widget_focus_direction_manager_is_delegate efl_ui_widget_focus_direction_manager_is_static_delegate; + private static efl_access_object_name_cb_set_delegate efl_access_object_name_cb_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_widget_focus_state_apply_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WidgetFocusState.NativeStruct current_state, ref Efl.Ui.WidgetFocusState.NativeStruct configured_state, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Widget redirect); + + private delegate Efl.Access.RelationSet efl_access_object_relation_set_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Access.RelationSet efl_access_object_relation_set_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_widget_focus_state_apply_api_delegate(System.IntPtr obj, Efl.Ui.WidgetFocusState.NativeStruct current_state, ref Efl.Ui.WidgetFocusState.NativeStruct configured_state, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Widget redirect); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_state_apply_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_state_apply"); - private static bool focus_state_apply(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WidgetFocusState.NativeStruct current_state, ref Efl.Ui.WidgetFocusState.NativeStruct configured_state, Efl.Ui.Widget redirect) - { - Eina.Log.Debug("function efl_ui_widget_focus_state_apply was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.WidgetFocusState _in_current_state = current_state; - Efl.Ui.WidgetFocusState _out_configured_state = default(Efl.Ui.WidgetFocusState); - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).FocusStateApply( _in_current_state, ref _out_configured_state, redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - configured_state = _out_configured_state; - return _ret_var; - } else { - return efl_ui_widget_focus_state_apply_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), current_state, ref configured_state, redirect); - } - } - private static efl_ui_widget_focus_state_apply_delegate efl_ui_widget_focus_state_apply_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_object_relation_set_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_relation_set_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_part_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + private static Efl.Access.RelationSet relation_set_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_relation_set_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.RelationSet _ret_var = default(Efl.Access.RelationSet); + try + { + _ret_var = ((Widget)wrapper).GetRelationSet(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_part_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_part_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_part_get"); - private static Efl.Object part_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_part_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((Widget)wrapper).GetPart( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_part_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + else + { + return efl_access_object_relation_set_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_part_get_delegate efl_part_get_static_delegate; + private static efl_access_object_relation_set_get_delegate efl_access_object_relation_set_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_action_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + + private delegate Efl.Access.Role efl_access_object_role_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Access.Role efl_access_object_role_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_action_name_get_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_name_get"); - private static System.String action_name_get(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetActionName( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_access_action_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); - } - } - private static efl_access_action_name_get_delegate efl_access_action_name_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_object_role_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_role_get"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_action_localized_name_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + private static Efl.Access.Role role_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_role_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.Role _ret_var = default(Efl.Access.Role); + try + { + _ret_var = ((Widget)wrapper).GetRole(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_action_localized_name_get_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_localized_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_localized_name_get"); - private static System.String action_localized_name_get(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_localized_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetActionLocalizedName( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_action_localized_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + else + { + return efl_access_object_role_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_action_localized_name_get_delegate efl_access_action_localized_name_get_static_delegate; + private static efl_access_object_role_get_delegate efl_access_object_role_get_static_delegate; - private delegate System.IntPtr efl_access_action_actions_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_role_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.Role role); + + public delegate void efl_access_object_role_set_api_delegate(System.IntPtr obj, Efl.Access.Role role); - public delegate System.IntPtr efl_access_action_actions_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_action_actions_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_actions_get"); - private static System.IntPtr actions_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_action_actions_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((Widget)wrapper).GetActions(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_role_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_role_set"); + + private static void role_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.Role role) + { + Eina.Log.Debug("function efl_access_object_role_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetRole(role); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_role_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), role); } - return _ret_var.Handle; - } else { - return efl_access_action_actions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_action_actions_get_delegate efl_access_action_actions_get_static_delegate; + private static efl_access_object_role_set_delegate efl_access_object_role_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_action_do_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Access.IObject efl_access_object_access_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Access.IObject efl_access_object_access_parent_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_access_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_parent_get"); + + private static Efl.Access.IObject access_parent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_access_parent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.IObject _ret_var = default(Efl.Access.IObject); + try + { + _ret_var = ((Widget)wrapper).GetAccessParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_action_do_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_do_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_do"); - private static bool action_do(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_do was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).ActionDo( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_action_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + else + { + return efl_access_object_access_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_action_do_delegate efl_access_action_do_static_delegate; + private static efl_access_object_access_parent_get_delegate efl_access_object_access_parent_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] private delegate System.String efl_access_action_keybinding_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + + private delegate void efl_access_object_access_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject parent); + + public delegate void efl_access_object_access_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject parent); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringPassOwnershipMarshaler))] public delegate System.String efl_access_action_keybinding_get_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_access_action_keybinding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_action_keybinding_get"); - private static System.String action_keybinding_get(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_access_action_keybinding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetActionKeybinding( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_access_parent_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_parent_set"); + + private static void access_parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.IObject parent) + { + Eina.Log.Debug("function efl_access_object_access_parent_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetAccessParent(parent); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_access_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); } - return _ret_var; - } else { - return efl_access_action_keybinding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); } - } - private static efl_access_action_keybinding_get_delegate efl_access_action_keybinding_get_static_delegate; + private static efl_access_object_access_parent_set_delegate efl_access_object_access_parent_set_static_delegate; - private delegate int efl_access_component_z_order_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_description_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data); + + public delegate void efl_access_object_description_cb_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data); - public delegate int efl_access_component_z_order_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_component_z_order_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_z_order_get"); - private static int z_order_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_component_z_order_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Widget)wrapper).GetZOrder(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_description_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_description_cb_set"); + + private static void description_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data) + { + Eina.Log.Debug("function efl_access_object_description_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetDescriptionCb(description_cb, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_description_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), description_cb, data); } - return _ret_var; - } else { - return efl_access_component_z_order_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_component_z_order_get_delegate efl_access_component_z_order_get_static_delegate; + private static efl_access_object_description_cb_set_delegate efl_access_object_description_cb_set_static_delegate; - private delegate Eina.Rect.NativeStruct efl_access_component_extents_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords); + + private delegate void efl_access_object_gesture_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureCb gesture_cb, System.IntPtr data); + + public delegate void efl_access_object_gesture_cb_set_api_delegate(System.IntPtr obj, Efl.Access.GestureCb gesture_cb, System.IntPtr data); - public delegate Eina.Rect.NativeStruct efl_access_component_extents_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords); - public static Efl.Eo.FunctionWrapper efl_access_component_extents_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_extents_get"); - private static Eina.Rect.NativeStruct extents_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords) - { - Eina.Log.Debug("function efl_access_component_extents_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Widget)wrapper).GetExtents( screen_coords); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_gesture_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_gesture_cb_set"); + + private static void gesture_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureCb gesture_cb, System.IntPtr data) + { + Eina.Log.Debug("function efl_access_object_gesture_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetGestureCb(gesture_cb, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_gesture_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture_cb, data); } - return _ret_var; - } else { - return efl_access_component_extents_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords); } - } - private static efl_access_component_extents_get_delegate efl_access_component_extents_get_static_delegate; + private static efl_access_object_gesture_cb_set_delegate efl_access_object_gesture_cb_set_static_delegate; + + + private delegate System.IntPtr efl_access_object_access_children_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_access_object_access_children_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_access_children_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_children_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_extents_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect); + private static System.IntPtr access_children_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_access_children_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((Widget)wrapper).GetAccessChildren(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_extents_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, Eina.Rect.NativeStruct rect); - public static Efl.Eo.FunctionWrapper efl_access_component_extents_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_extents_set"); - private static bool extents_set(System.IntPtr obj, System.IntPtr pd, bool screen_coords, Eina.Rect.NativeStruct rect) - { - Eina.Log.Debug("function efl_access_component_extents_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).SetExtents( screen_coords, _in_rect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_component_extents_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, rect); + else + { + return efl_access_object_access_children_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_component_extents_set_delegate efl_access_component_extents_set_static_delegate; + private static efl_access_object_access_children_get_delegate efl_access_object_access_children_get_static_delegate; - private delegate void efl_access_component_screen_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_role_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_role_name_get_api_delegate(System.IntPtr obj); - public delegate void efl_access_component_screen_position_get_api_delegate(System.IntPtr obj, out int x, out int y); - public static Efl.Eo.FunctionWrapper efl_access_component_screen_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_screen_position_get"); - private static void screen_position_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function efl_access_component_screen_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); - try { - ((Widget)wrapper).GetScreenPosition( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_component_screen_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_access_component_screen_position_get_delegate efl_access_component_screen_position_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_object_role_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_role_name_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_screen_position_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + private static System.String role_name_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_role_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetRoleName(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_screen_position_set_api_delegate(System.IntPtr obj, int x, int y); - public static Efl.Eo.FunctionWrapper efl_access_component_screen_position_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_screen_position_set"); - private static bool screen_position_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function efl_access_component_screen_position_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).SetScreenPosition( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_component_screen_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + else + { + return efl_access_object_role_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_component_screen_position_set_delegate efl_access_component_screen_position_set_static_delegate; - - private delegate void efl_access_component_socket_offset_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + private static efl_access_object_role_name_get_delegate efl_access_object_role_name_get_static_delegate; + + private delegate System.IntPtr efl_access_object_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_access_component_socket_offset_get_api_delegate(System.IntPtr obj, out int x, out int y); - public static Efl.Eo.FunctionWrapper efl_access_component_socket_offset_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_socket_offset_get"); - private static void socket_offset_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function efl_access_component_socket_offset_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); - try { - ((Widget)wrapper).GetSocketOffset( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_component_socket_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static efl_access_component_socket_offset_get_delegate efl_access_component_socket_offset_get_static_delegate; + + public delegate System.IntPtr efl_access_object_attributes_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_access_object_attributes_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_attributes_get"); - private delegate void efl_access_component_socket_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + private static System.IntPtr attributes_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_attributes_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.List _ret_var = default(Eina.List); + try + { + _ret_var = ((Widget)wrapper).GetAttributes(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; - public delegate void efl_access_component_socket_offset_set_api_delegate(System.IntPtr obj, int x, int y); - public static Efl.Eo.FunctionWrapper efl_access_component_socket_offset_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_socket_offset_set"); - private static void socket_offset_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function efl_access_component_socket_offset_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetSocketOffset( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_access_component_socket_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + else + { + return efl_access_object_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_component_socket_offset_set_delegate efl_access_component_socket_offset_set_static_delegate; + private static efl_access_object_attributes_get_delegate efl_access_object_attributes_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_contains_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + + private delegate Efl.Access.ReadingInfoTypeMask efl_access_object_reading_info_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Access.ReadingInfoTypeMask efl_access_object_reading_info_type_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_contains_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); - public static Efl.Eo.FunctionWrapper efl_access_component_contains_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_contains"); - private static bool contains(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) - { - Eina.Log.Debug("function efl_access_component_contains was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).Contains( screen_coords, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_access_component_contains_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); - } - } - private static efl_access_component_contains_delegate efl_access_component_contains_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_object_reading_info_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_reading_info_type_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_focus_grab_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Access.ReadingInfoTypeMask reading_info_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_reading_info_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.ReadingInfoTypeMask _ret_var = default(Efl.Access.ReadingInfoTypeMask); + try + { + _ret_var = ((Widget)wrapper).GetReadingInfoType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_focus_grab_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_component_focus_grab_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_focus_grab"); - private static bool focus_grab(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_component_focus_grab was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GrabFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_component_focus_grab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_object_reading_info_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_component_focus_grab_delegate efl_access_component_focus_grab_static_delegate; + private static efl_access_object_reading_info_type_get_delegate efl_access_object_reading_info_type_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_access_component_accessible_at_point_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); + + private delegate void efl_access_object_reading_info_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoTypeMask reading_info); + + public delegate void efl_access_object_reading_info_type_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoTypeMask reading_info); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_access_component_accessible_at_point_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool screen_coords, int x, int y); - public static Efl.Eo.FunctionWrapper efl_access_component_accessible_at_point_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_accessible_at_point_get"); - private static Efl.Object accessible_at_point_get(System.IntPtr obj, System.IntPtr pd, bool screen_coords, int x, int y) - { - Eina.Log.Debug("function efl_access_component_accessible_at_point_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = ((Widget)wrapper).GetAccessibleAtPoint( screen_coords, x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_reading_info_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_reading_info_type_set"); + + private static void reading_info_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoTypeMask reading_info) + { + Eina.Log.Debug("function efl_access_object_reading_info_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetReadingInfoType(reading_info); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_reading_info_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), reading_info); } - return _ret_var; - } else { - return efl_access_component_accessible_at_point_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), screen_coords, x, y); } - } - private static efl_access_component_accessible_at_point_get_delegate efl_access_component_accessible_at_point_get_static_delegate; + private static efl_access_object_reading_info_type_set_delegate efl_access_object_reading_info_type_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_highlight_grab_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate int efl_access_object_index_in_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate int efl_access_object_index_in_parent_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_highlight_grab_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_component_highlight_grab_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_highlight_grab"); - private static bool highlight_grab(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_component_highlight_grab was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GrabHighlight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_access_component_highlight_grab_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_access_component_highlight_grab_delegate efl_access_component_highlight_grab_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_object_index_in_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_index_in_parent_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_component_highlight_clear_delegate(System.IntPtr obj, System.IntPtr pd); + private static int index_in_parent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_index_in_parent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Widget)wrapper).GetIndexInParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_component_highlight_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_component_highlight_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_component_highlight_clear"); - private static bool highlight_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_component_highlight_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).ClearHighlight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_component_highlight_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_object_index_in_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_component_highlight_clear_delegate efl_access_component_highlight_clear_static_delegate; + private static efl_access_object_index_in_parent_get_delegate efl_access_object_index_in_parent_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_object_localized_role_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_description_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_description_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_description_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_description_get"); + + private static System.String description_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_description_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetDescription(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_object_localized_role_name_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_localized_role_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_localized_role_name_get"); - private static System.String localized_role_name_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_localized_role_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetLocalizedRoleName(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_object_localized_role_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_object_description_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_object_localized_role_name_get_delegate efl_access_object_localized_role_name_get_static_delegate; + private static efl_access_object_description_get_delegate efl_access_object_description_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_object_i18n_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_description_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String description); + + public delegate void efl_access_object_description_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String description); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_object_i18n_name_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_i18n_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_i18n_name_get"); - private static System.String i18n_name_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_i18n_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetI18nName(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_description_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_description_set"); + + private static void description_set(System.IntPtr obj, System.IntPtr pd, System.String description) + { + Eina.Log.Debug("function efl_access_object_description_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetDescription(description); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_description_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), description); } - return _ret_var; - } else { - return efl_access_object_i18n_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_object_i18n_name_get_delegate efl_access_object_i18n_name_get_static_delegate; + private static efl_access_object_description_set_delegate efl_access_object_description_set_static_delegate; - private delegate void efl_access_object_i18n_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String i18n_name); + + private delegate Efl.Access.StateSet efl_access_object_state_set_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Access.StateSet efl_access_object_state_set_get_api_delegate(System.IntPtr obj); - public delegate void efl_access_object_i18n_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String i18n_name); - public static Efl.Eo.FunctionWrapper efl_access_object_i18n_name_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_i18n_name_set"); - private static void i18n_name_set(System.IntPtr obj, System.IntPtr pd, System.String i18n_name) - { - Eina.Log.Debug("function efl_access_object_i18n_name_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetI18nName( i18n_name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_i18n_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), i18n_name); - } - } - private static efl_access_object_i18n_name_set_delegate efl_access_object_i18n_name_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_object_state_set_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_state_set_get"); - private delegate void efl_access_object_name_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data); + private static Efl.Access.StateSet state_set_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_state_set_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.StateSet _ret_var = default(Efl.Access.StateSet); + try + { + _ret_var = ((Widget)wrapper).GetStateSet(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_access_object_name_cb_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_access_object_name_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_name_cb_set"); - private static void name_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb name_cb, System.IntPtr data) - { - Eina.Log.Debug("function efl_access_object_name_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetNameCb( name_cb, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_access_object_name_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name_cb, data); + else + { + return efl_access_object_state_set_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_object_name_cb_set_delegate efl_access_object_name_cb_set_static_delegate; + private static efl_access_object_state_set_get_delegate efl_access_object_state_set_get_static_delegate; - private delegate Efl.Access.RelationSet efl_access_object_relation_set_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_object_can_highlight_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_object_can_highlight_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_get"); + + private static bool can_highlight_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_can_highlight_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GetCanHighlight(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Access.RelationSet efl_access_object_relation_set_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_relation_set_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_relation_set_get"); - private static Efl.Access.RelationSet relation_set_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_relation_set_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.RelationSet _ret_var = default(Efl.Access.RelationSet); - try { - _ret_var = ((Widget)wrapper).GetRelationSet(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_access_object_relation_set_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_access_object_can_highlight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_object_relation_set_get_delegate efl_access_object_relation_set_get_static_delegate; + private static efl_access_object_can_highlight_get_delegate efl_access_object_can_highlight_get_static_delegate; - private delegate Efl.Access.Role efl_access_object_role_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_can_highlight_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_highlight); + + public delegate void efl_access_object_can_highlight_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_highlight); - public delegate Efl.Access.Role efl_access_object_role_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_role_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_role_get"); - private static Efl.Access.Role role_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_role_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.Role _ret_var = default(Efl.Access.Role); - try { - _ret_var = ((Widget)wrapper).GetRole(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_set"); + + private static void can_highlight_set(System.IntPtr obj, System.IntPtr pd, bool can_highlight) + { + Eina.Log.Debug("function efl_access_object_can_highlight_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetCanHighlight(can_highlight); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_can_highlight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_highlight); } - return _ret_var; - } else { - return efl_access_object_role_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_object_role_get_delegate efl_access_object_role_get_static_delegate; + private static efl_access_object_can_highlight_set_delegate efl_access_object_can_highlight_set_static_delegate; - private delegate void efl_access_object_role_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.Role role); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_translation_domain_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_translation_domain_get_api_delegate(System.IntPtr obj); - public delegate void efl_access_object_role_set_api_delegate(System.IntPtr obj, Efl.Access.Role role); - public static Efl.Eo.FunctionWrapper efl_access_object_role_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_role_set"); - private static void role_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.Role role) - { - Eina.Log.Debug("function efl_access_object_role_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetRole( role); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_role_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), role); - } - } - private static efl_access_object_role_set_delegate efl_access_object_role_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Access.IObject efl_access_object_access_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.String translation_domain_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_translation_domain_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetTranslationDomain(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Access.IObject efl_access_object_access_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_access_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_access_parent_get"); - private static Efl.Access.IObject access_parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_access_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.IObject _ret_var = default(Efl.Access.IObject); - try { - _ret_var = ((Widget)wrapper).GetAccessParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_object_access_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_object_translation_domain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_object_access_parent_get_delegate efl_access_object_access_parent_get_static_delegate; - - private delegate void efl_access_object_access_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject parent); + private static efl_access_object_translation_domain_get_delegate efl_access_object_translation_domain_get_static_delegate; + + private delegate void efl_access_object_translation_domain_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public delegate void efl_access_object_access_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject parent); - public static Efl.Eo.FunctionWrapper efl_access_object_access_parent_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_access_parent_set"); - private static void access_parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.IObject parent) - { - Eina.Log.Debug("function efl_access_object_access_parent_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetAccessParent( parent); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_access_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); - } - } - private static efl_access_object_access_parent_set_delegate efl_access_object_access_parent_set_static_delegate; - + + public delegate void efl_access_object_translation_domain_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - private delegate void efl_access_object_description_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data); + public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_set"); + private static void translation_domain_set(System.IntPtr obj, System.IntPtr pd, System.String domain) + { + Eina.Log.Debug("function efl_access_object_translation_domain_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetTranslationDomain(domain); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_access_object_description_cb_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_access_object_description_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_description_cb_set"); - private static void description_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoCb description_cb, System.IntPtr data) - { - Eina.Log.Debug("function efl_access_object_description_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetDescriptionCb( description_cb, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + efl_access_object_translation_domain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), domain); } - } else { - efl_access_object_description_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), description_cb, data); } - } - private static efl_access_object_description_cb_set_delegate efl_access_object_description_cb_set_static_delegate; + private static efl_access_object_translation_domain_set_delegate efl_access_object_translation_domain_set_static_delegate; - private delegate void efl_access_object_gesture_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureCb gesture_cb, System.IntPtr data); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_access_object_access_root_get_delegate(); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_access_object_access_root_get_api_delegate(); + + public static Efl.Eo.FunctionWrapper efl_access_object_access_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_root_get"); + + private static Efl.Object access_root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_access_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = Widget.GetAccessRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_access_object_gesture_cb_set_api_delegate(System.IntPtr obj, Efl.Access.GestureCb gesture_cb, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_access_object_gesture_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_gesture_cb_set"); - private static void gesture_cb_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureCb gesture_cb, System.IntPtr data) - { - Eina.Log.Debug("function efl_access_object_gesture_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetGestureCb( gesture_cb, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_access_object_gesture_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture_cb, data); + else + { + return efl_access_object_access_root_get_ptr.Value.Delegate(); + } } - } - private static efl_access_object_gesture_cb_set_delegate efl_access_object_gesture_cb_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_object_gesture_do_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureInfo.NativeStruct gesture_info); - private delegate System.IntPtr efl_access_object_access_children_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_object_gesture_do_api_delegate(System.IntPtr obj, Efl.Access.GestureInfo.NativeStruct gesture_info); + public static Efl.Eo.FunctionWrapper efl_access_object_gesture_do_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_gesture_do"); + + private static bool gesture_do(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureInfo.NativeStruct gesture_info) + { + Eina.Log.Debug("function efl_access_object_gesture_do was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.GestureInfo _in_gesture_info = gesture_info; + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GestureDo(_in_gesture_info); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate System.IntPtr efl_access_object_access_children_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_access_children_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_access_children_get"); - private static System.IntPtr access_children_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_access_children_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((Widget)wrapper).GetAccessChildren(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_access_object_access_children_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_object_gesture_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture_info); + } } - } - private static efl_access_object_access_children_get_delegate efl_access_object_access_children_get_static_delegate; + private static efl_access_object_gesture_do_delegate efl_access_object_gesture_do_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_object_role_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_attribute_append_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); + + public delegate void efl_access_object_attribute_append_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_object_role_name_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_role_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_role_name_get"); - private static System.String role_name_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_role_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetRoleName(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_attribute_append_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_attribute_append"); + + private static void attribute_append(System.IntPtr obj, System.IntPtr pd, System.String key, System.String value) + { + Eina.Log.Debug("function efl_access_object_attribute_append was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).AppendAttribute(key, value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_attribute_append_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, value); } - return _ret_var; - } else { - return efl_access_object_role_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_object_role_name_get_delegate efl_access_object_role_name_get_static_delegate; + private static efl_access_object_attribute_append_delegate efl_access_object_attribute_append_static_delegate; - private delegate System.IntPtr efl_access_object_attributes_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_attribute_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public delegate void efl_access_object_attribute_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public delegate System.IntPtr efl_access_object_attributes_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_attributes_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_attributes_get"); - private static System.IntPtr attributes_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_attributes_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.List _ret_var = default(Eina.List); - try { - _ret_var = ((Widget)wrapper).GetAttributes(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_attribute_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_attribute_del"); + + private static void attribute_del(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_access_object_attribute_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).DelAttribute(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_attribute_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); } - _ret_var.Own = false; _ret_var.OwnContent = false; return _ret_var.Handle; - } else { - return efl_access_object_attributes_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_object_attributes_get_delegate efl_access_object_attributes_get_static_delegate; + private static efl_access_object_attribute_del_delegate efl_access_object_attribute_del_static_delegate; - private delegate Efl.Access.ReadingInfoTypeMask efl_access_object_reading_info_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_attributes_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_access_object_attributes_clear_api_delegate(System.IntPtr obj); - public delegate Efl.Access.ReadingInfoTypeMask efl_access_object_reading_info_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_reading_info_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_reading_info_type_get"); - private static Efl.Access.ReadingInfoTypeMask reading_info_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_reading_info_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.ReadingInfoTypeMask _ret_var = default(Efl.Access.ReadingInfoTypeMask); - try { - _ret_var = ((Widget)wrapper).GetReadingInfoType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_attributes_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_attributes_clear"); + + private static void attributes_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_attributes_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).ClearAttributes(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_attributes_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_access_object_reading_info_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_object_reading_info_type_get_delegate efl_access_object_reading_info_type_get_static_delegate; + private static efl_access_object_attributes_clear_delegate efl_access_object_attributes_clear_static_delegate; - private delegate void efl_access_object_reading_info_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoTypeMask reading_info); + + private delegate Efl.Access.Event.Handler efl_access_object_event_handler_add_delegate( Efl.EventCb cb, System.IntPtr data); + + public delegate Efl.Access.Event.Handler efl_access_object_event_handler_add_api_delegate( Efl.EventCb cb, System.IntPtr data); - public delegate void efl_access_object_reading_info_type_set_api_delegate(System.IntPtr obj, Efl.Access.ReadingInfoTypeMask reading_info); - public static Efl.Eo.FunctionWrapper efl_access_object_reading_info_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_reading_info_type_set"); - private static void reading_info_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Access.ReadingInfoTypeMask reading_info) - { - Eina.Log.Debug("function efl_access_object_reading_info_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetReadingInfoType( reading_info); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_reading_info_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), reading_info); - } - } - private static efl_access_object_reading_info_type_set_delegate efl_access_object_reading_info_type_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_object_event_handler_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_event_handler_add"); - private delegate int efl_access_object_index_in_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Access.Event.Handler event_handler_add(System.IntPtr obj, System.IntPtr pd, Efl.EventCb cb, System.IntPtr data) + { + Eina.Log.Debug("function efl_access_object_event_handler_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.Event.Handler _ret_var = default(Efl.Access.Event.Handler); + try + { + _ret_var = Widget.AddEventHandler(cb, data); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate int efl_access_object_index_in_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_index_in_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_index_in_parent_get"); - private static int index_in_parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_index_in_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Widget)wrapper).GetIndexInParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_object_index_in_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_object_event_handler_add_ptr.Value.Delegate(cb, data); + } } - } - private static efl_access_object_index_in_parent_get_delegate efl_access_object_index_in_parent_get_static_delegate; + + private delegate void efl_access_object_event_handler_del_delegate( Efl.Access.Event.Handler handler); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_object_description_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_access_object_event_handler_del_api_delegate( Efl.Access.Event.Handler handler); + public static Efl.Eo.FunctionWrapper efl_access_object_event_handler_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_event_handler_del"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_object_description_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_description_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_description_get"); - private static System.String description_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_description_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetDescription(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static void event_handler_del(System.IntPtr obj, System.IntPtr pd, Efl.Access.Event.Handler handler) + { + Eina.Log.Debug("function efl_access_object_event_handler_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + Widget.DelEventHandler(handler); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_event_handler_del_ptr.Value.Delegate(handler); } - return _ret_var; - } else { - return efl_access_object_description_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_object_description_get_delegate efl_access_object_description_get_static_delegate; + + private delegate void efl_access_object_event_emit_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info); - private delegate void efl_access_object_description_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String description); + + public delegate void efl_access_object_event_emit_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info); + public static Efl.Eo.FunctionWrapper efl_access_object_event_emit_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_event_emit"); - public delegate void efl_access_object_description_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String description); - public static Efl.Eo.FunctionWrapper efl_access_object_description_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_description_set"); - private static void description_set(System.IntPtr obj, System.IntPtr pd, System.String description) - { - Eina.Log.Debug("function efl_access_object_description_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetDescription( description); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_description_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), description); + private static void event_emit(System.IntPtr obj, System.IntPtr pd, Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info) + { + Eina.Log.Debug("function efl_access_object_event_emit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_kw_event = Eina.PrimitiveConversion.PointerToManaged(kw_event); + + try + { + Widget.EmitEvent(accessible, _in_kw_event, event_info); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_event_emit_ptr.Value.Delegate(accessible, kw_event, event_info); + } } - } - private static efl_access_object_description_set_delegate efl_access_object_description_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_object_relationship_append_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject relation_object); - private delegate Efl.Access.StateSet efl_access_object_state_set_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_object_relationship_append_api_delegate(System.IntPtr obj, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject relation_object); + public static Efl.Eo.FunctionWrapper efl_access_object_relationship_append_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_relationship_append"); + + private static bool relationship_append(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, Efl.Access.IObject relation_object) + { + Eina.Log.Debug("function efl_access_object_relationship_append was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).AppendRelationship(type, relation_object); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Efl.Access.StateSet efl_access_object_state_set_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_state_set_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_state_set_get"); - private static Efl.Access.StateSet state_set_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_state_set_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.StateSet _ret_var = default(Efl.Access.StateSet); - try { - _ret_var = ((Widget)wrapper).GetStateSet(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_object_state_set_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_access_object_relationship_append_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, relation_object); + } } - } - private static efl_access_object_state_set_get_delegate efl_access_object_state_set_get_static_delegate; + private static efl_access_object_relationship_append_delegate efl_access_object_relationship_append_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_object_can_highlight_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_relationship_remove_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject relation_object); + + public delegate void efl_access_object_relationship_remove_api_delegate(System.IntPtr obj, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Access.IObject relation_object); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_object_can_highlight_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_can_highlight_get"); - private static bool can_highlight_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_can_highlight_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GetCanHighlight(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_relationship_remove_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_relationship_remove"); + + private static void relationship_remove(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, Efl.Access.IObject relation_object) + { + Eina.Log.Debug("function efl_access_object_relationship_remove was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).RelationshipRemove(type, relation_object); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_relationship_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, relation_object); } - return _ret_var; - } else { - return efl_access_object_can_highlight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_object_can_highlight_get_delegate efl_access_object_can_highlight_get_static_delegate; + private static efl_access_object_relationship_remove_delegate efl_access_object_relationship_remove_static_delegate; - private delegate void efl_access_object_can_highlight_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_highlight); + + private delegate void efl_access_object_relationships_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_access_object_relationships_clear_api_delegate(System.IntPtr obj); - public delegate void efl_access_object_can_highlight_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_highlight); - public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_can_highlight_set"); - private static void can_highlight_set(System.IntPtr obj, System.IntPtr pd, bool can_highlight) - { - Eina.Log.Debug("function efl_access_object_can_highlight_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetCanHighlight( can_highlight); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_can_highlight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_highlight); + public static Efl.Eo.FunctionWrapper efl_access_object_relationships_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_relationships_clear"); + + private static void relationships_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_object_relationships_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).ClearRelationships(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_relationships_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_access_object_can_highlight_set_delegate efl_access_object_can_highlight_set_static_delegate; + private static efl_access_object_relationships_clear_delegate efl_access_object_relationships_clear_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_access_object_translation_domain_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_access_object_state_notify_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.StateSet state_types_mask, [MarshalAs(UnmanagedType.U1)] bool recursive); + + public delegate void efl_access_object_state_notify_api_delegate(System.IntPtr obj, Efl.Access.StateSet state_types_mask, [MarshalAs(UnmanagedType.U1)] bool recursive); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_access_object_translation_domain_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_translation_domain_get"); - private static System.String translation_domain_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_translation_domain_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetTranslationDomain(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_access_object_state_notify_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_state_notify"); + + private static void state_notify(System.IntPtr obj, System.IntPtr pd, Efl.Access.StateSet state_types_mask, bool recursive) + { + Eina.Log.Debug("function efl_access_object_state_notify was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).StateNotify(state_types_mask, recursive); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_access_object_state_notify_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state_types_mask, recursive); } - return _ret_var; - } else { - return efl_access_object_translation_domain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_object_translation_domain_get_delegate efl_access_object_translation_domain_get_static_delegate; + private static efl_access_object_state_notify_delegate efl_access_object_state_notify_static_delegate; - private delegate void efl_access_object_translation_domain_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + + private delegate Efl.Access.ActionData efl_access_widget_action_elm_actions_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Access.ActionData efl_access_widget_action_elm_actions_get_api_delegate(System.IntPtr obj); - public delegate void efl_access_object_translation_domain_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_translation_domain_set"); - private static void translation_domain_set(System.IntPtr obj, System.IntPtr pd, System.String domain) - { - Eina.Log.Debug("function efl_access_object_translation_domain_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetTranslationDomain( domain); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_translation_domain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), domain); - } - } - private static efl_access_object_translation_domain_set_delegate efl_access_object_translation_domain_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_access_widget_action_elm_actions_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_widget_action_elm_actions_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Object efl_access_object_access_root_get_delegate(); + private static Efl.Access.ActionData elm_actions_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_access_widget_action_elm_actions_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Access.ActionData _ret_var = default(Efl.Access.ActionData); + try + { + _ret_var = ((Widget)wrapper).GetElmActions(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Object efl_access_object_access_root_get_api_delegate(); - public static Efl.Eo.FunctionWrapper efl_access_object_access_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_access_root_get"); - private static Efl.Object access_root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_access_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Object _ret_var = default(Efl.Object); - try { - _ret_var = Widget.GetAccessRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_object_access_root_get_ptr.Value.Delegate(); + else + { + return efl_access_widget_action_elm_actions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } + private static efl_access_widget_action_elm_actions_get_delegate efl_access_widget_action_elm_actions_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_object_gesture_do_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureInfo.NativeStruct gesture_info); + + private delegate void efl_ui_dnd_drag_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat); + + public delegate void efl_ui_dnd_drag_start_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_object_gesture_do_api_delegate(System.IntPtr obj, Efl.Access.GestureInfo.NativeStruct gesture_info); - public static Efl.Eo.FunctionWrapper efl_access_object_gesture_do_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_gesture_do"); - private static bool gesture_do(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureInfo.NativeStruct gesture_info) - { - Eina.Log.Debug("function efl_access_object_gesture_do was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.GestureInfo _in_gesture_info = gesture_info; - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GestureDo( _in_gesture_info); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_drag_start"); + + private static void drag_start(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_drag_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Dnd.DragIconCreateWrapper icon_func_wrapper = new Efl.Dnd.DragIconCreateWrapper(icon_func, icon_func_data, icon_func_free_cb); + + try + { + ((Widget)wrapper).DragStart(format, data, action, icon_func_wrapper.ManagedCb, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_drag_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, data, action, icon_func_data, icon_func, icon_func_free_cb, seat); } - return _ret_var; - } else { - return efl_access_object_gesture_do_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), gesture_info); } - } - private static efl_access_object_gesture_do_delegate efl_access_object_gesture_do_static_delegate; + private static efl_ui_dnd_drag_start_delegate efl_ui_dnd_drag_start_static_delegate; - private delegate void efl_access_object_attribute_append_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); + + private delegate void efl_ui_dnd_drag_action_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionAction action, uint seat); + + public delegate void efl_ui_dnd_drag_action_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectionAction action, uint seat); - public delegate void efl_access_object_attribute_append_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); - public static Efl.Eo.FunctionWrapper efl_access_object_attribute_append_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_attribute_append"); - private static void attribute_append(System.IntPtr obj, System.IntPtr pd, System.String key, System.String value) - { - Eina.Log.Debug("function efl_access_object_attribute_append was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).AppendAttribute( key, value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_action_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_drag_action_set"); + + private static void drag_action_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionAction action, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_drag_action_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetDragAction(action, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_drag_action_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), action, seat); } - } else { - efl_access_object_attribute_append_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, value); } - } - private static efl_access_object_attribute_append_delegate efl_access_object_attribute_append_static_delegate; - - private delegate void efl_access_object_attribute_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + private static efl_ui_dnd_drag_action_set_delegate efl_ui_dnd_drag_action_set_static_delegate; + + private delegate void efl_ui_dnd_drag_cancel_delegate(System.IntPtr obj, System.IntPtr pd, uint seat); - public delegate void efl_access_object_attribute_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_access_object_attribute_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_attribute_del"); - private static void attribute_del(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_access_object_attribute_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).DelAttribute( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_attribute_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); - } - } - private static efl_access_object_attribute_del_delegate efl_access_object_attribute_del_static_delegate; - + + public delegate void efl_ui_dnd_drag_cancel_api_delegate(System.IntPtr obj, uint seat); - private delegate void efl_access_object_attributes_clear_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_cancel_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_drag_cancel"); + private static void drag_cancel(System.IntPtr obj, System.IntPtr pd, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_drag_cancel was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).DragCancel(seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_access_object_attributes_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_attributes_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_attributes_clear"); - private static void attributes_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_attributes_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Widget)wrapper).ClearAttributes(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_access_object_attributes_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_dnd_drag_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); + } } - } - private static efl_access_object_attributes_clear_delegate efl_access_object_attributes_clear_static_delegate; + private static efl_ui_dnd_drag_cancel_delegate efl_ui_dnd_drag_cancel_static_delegate; - private delegate Efl.Access.Event.Handler efl_access_object_event_handler_add_delegate( Efl.EventCb cb, System.IntPtr data); + + private delegate void efl_ui_dnd_drop_target_add_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat); + + public delegate void efl_ui_dnd_drop_target_add_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, uint seat); - public delegate Efl.Access.Event.Handler efl_access_object_event_handler_add_api_delegate( Efl.EventCb cb, System.IntPtr data); - public static Efl.Eo.FunctionWrapper efl_access_object_event_handler_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_event_handler_add"); - private static Efl.Access.Event.Handler event_handler_add(System.IntPtr obj, System.IntPtr pd, Efl.EventCb cb, System.IntPtr data) - { - Eina.Log.Debug("function efl_access_object_event_handler_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.Event.Handler _ret_var = default(Efl.Access.Event.Handler); - try { - _ret_var = Widget.AddEventHandler( cb, data); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_dnd_drop_target_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_drop_target_add"); + + private static void drop_target_add(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_drop_target_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).AddDropTarget(format, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_drop_target_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, seat); } - return _ret_var; - } else { - return efl_access_object_event_handler_add_ptr.Value.Delegate( cb, data); } - } + private static efl_ui_dnd_drop_target_add_delegate efl_ui_dnd_drop_target_add_static_delegate; - private delegate void efl_access_object_event_handler_del_delegate( Efl.Access.Event.Handler handler); + + private delegate void efl_ui_dnd_drop_target_del_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat); + + public delegate void efl_ui_dnd_drop_target_del_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, uint seat); - public delegate void efl_access_object_event_handler_del_api_delegate( Efl.Access.Event.Handler handler); - public static Efl.Eo.FunctionWrapper efl_access_object_event_handler_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_event_handler_del"); - private static void event_handler_del(System.IntPtr obj, System.IntPtr pd, Efl.Access.Event.Handler handler) - { - Eina.Log.Debug("function efl_access_object_event_handler_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - Widget.DelEventHandler( handler); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_event_handler_del_ptr.Value.Delegate( handler); - } - } + public static Efl.Eo.FunctionWrapper efl_ui_dnd_drop_target_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_dnd_drop_target_del"); + private static void drop_target_del(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat) + { + Eina.Log.Debug("function efl_ui_dnd_drop_target_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).DelDropTarget(format, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_dnd_drop_target_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, seat); + } + } - private delegate void efl_access_object_event_emit_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info); + private static efl_ui_dnd_drop_target_del_delegate efl_ui_dnd_drop_target_del_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_l10n_text_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); - public delegate void efl_access_object_event_emit_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info); - public static Efl.Eo.FunctionWrapper efl_access_object_event_emit_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_event_emit"); - private static void event_emit(System.IntPtr obj, System.IntPtr pd, Efl.Access.IObject accessible, System.IntPtr kw_event, System.IntPtr event_info) - { - Eina.Log.Debug("function efl_access_object_event_emit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_kw_event = Eina.PrimitiveConversion.PointerToManaged(kw_event); - - try { - Widget.EmitEvent( accessible, _in_kw_event, event_info); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_event_emit_ptr.Value.Delegate( accessible, kw_event, event_info); - } - } + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_l10n_text_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); + public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_text_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_object_relationship_append_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject relation_object); + private static System.String l10n_text_get(System.IntPtr obj, System.IntPtr pd, out System.String domain) + { + Eina.Log.Debug("function efl_ui_l10n_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_domain = default(System.String); + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)wrapper).GetL10nText(out _out_domain); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + domain = _out_domain; + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_access_object_relationship_append_api_delegate(System.IntPtr obj, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject relation_object); - public static Efl.Eo.FunctionWrapper efl_access_object_relationship_append_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_relationship_append"); - private static bool relationship_append(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, Efl.Access.IObject relation_object) - { - Eina.Log.Debug("function efl_access_object_relationship_append was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).AppendRelationship( type, relation_object); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_object_relationship_append_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, relation_object); + else + { + return efl_ui_l10n_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out domain); + } } - } - private static efl_access_object_relationship_append_delegate efl_access_object_relationship_append_static_delegate; + private static efl_ui_l10n_text_get_delegate efl_ui_l10n_text_get_static_delegate; - private delegate void efl_access_object_relationship_remove_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject relation_object); + + private delegate void efl_ui_l10n_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + + public delegate void efl_ui_l10n_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public delegate void efl_access_object_relationship_remove_api_delegate(System.IntPtr obj, Efl.Access.RelationType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Access.IObject relation_object); - public static Efl.Eo.FunctionWrapper efl_access_object_relationship_remove_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_relationship_remove"); - private static void relationship_remove(System.IntPtr obj, System.IntPtr pd, Efl.Access.RelationType type, Efl.Access.IObject relation_object) - { - Eina.Log.Debug("function efl_access_object_relationship_remove was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).RelationshipRemove( type, relation_object); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_text_set"); + + private static void l10n_text_set(System.IntPtr obj, System.IntPtr pd, System.String label, System.String domain) + { + Eina.Log.Debug("function efl_ui_l10n_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetL10nText(label, domain); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_l10n_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), label, domain); } - } else { - efl_access_object_relationship_remove_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, relation_object); } - } - private static efl_access_object_relationship_remove_delegate efl_access_object_relationship_remove_static_delegate; + private static efl_ui_l10n_text_set_delegate efl_ui_l10n_text_set_static_delegate; - private delegate void efl_access_object_relationships_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_l10n_translation_update_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_l10n_translation_update_api_delegate(System.IntPtr obj); - public delegate void efl_access_object_relationships_clear_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_relationships_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_relationships_clear"); - private static void relationships_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_object_relationships_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).ClearRelationships(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_l10n_translation_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_translation_update"); + + private static void translation_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_l10n_translation_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).UpdateTranslation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_l10n_translation_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_access_object_relationships_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_access_object_relationships_clear_delegate efl_access_object_relationships_clear_static_delegate; + private static efl_ui_l10n_translation_update_delegate efl_ui_l10n_translation_update_static_delegate; - private delegate void efl_access_object_state_notify_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.StateSet state_types_mask, [MarshalAs(UnmanagedType.U1)] bool recursive); + + private delegate Eina.Error efl_ui_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public delegate Eina.Error efl_ui_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); - public delegate void efl_access_object_state_notify_api_delegate(System.IntPtr obj, Efl.Access.StateSet state_types_mask, [MarshalAs(UnmanagedType.U1)] bool recursive); - public static Efl.Eo.FunctionWrapper efl_access_object_state_notify_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_object_state_notify"); - private static void state_notify(System.IntPtr obj, System.IntPtr pd, Efl.Access.StateSet state_types_mask, bool recursive) - { - Eina.Log.Debug("function efl_access_object_state_notify was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).StateNotify( state_types_mask, recursive); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_access_object_state_notify_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state_types_mask, recursive); - } - } - private static efl_access_object_state_notify_delegate efl_access_object_state_notify_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_property_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_property_bind"); - private delegate Efl.Access.ActionData efl_access_widget_action_elm_actions_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Eina.Error property_bind(System.IntPtr obj, System.IntPtr pd, System.String key, System.String property) + { + Eina.Log.Debug("function efl_ui_property_bind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Widget)wrapper).PropertyBind(key, property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.Access.ActionData efl_access_widget_action_elm_actions_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_widget_action_elm_actions_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_access_widget_action_elm_actions_get"); - private static Efl.Access.ActionData elm_actions_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_access_widget_action_elm_actions_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Access.ActionData _ret_var = default(Efl.Access.ActionData); - try { - _ret_var = ((Widget)wrapper).GetElmActions(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_access_widget_action_elm_actions_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, property); + } } - } - private static efl_access_widget_action_elm_actions_get_delegate efl_access_widget_action_elm_actions_get_static_delegate; - - private delegate void efl_ui_dnd_drag_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat); + private static efl_ui_property_bind_delegate efl_ui_property_bind_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_ui_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); - public delegate void efl_ui_dnd_drag_start_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_drag_start"); - private static void drag_start(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, Eina.Slice data, Efl.Ui.SelectionAction action, IntPtr icon_func_data, Efl.Dnd.DragIconCreateInternal icon_func, EinaFreeCb icon_func_free_cb, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_drag_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Dnd.DragIconCreateWrapper icon_func_wrapper = new Efl.Dnd.DragIconCreateWrapper(icon_func, icon_func_data, icon_func_free_cb); - - try { - ((Widget)wrapper).DragStart( format, data, action, icon_func_wrapper.ManagedCb, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_dnd_drag_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, data, action, icon_func_data, icon_func, icon_func_free_cb, seat); - } - } - private static efl_ui_dnd_drag_start_delegate efl_ui_dnd_drag_start_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_ui_selection_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); + public static Efl.Eo.FunctionWrapper efl_ui_selection_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selection_set"); - private delegate void efl_ui_dnd_drag_action_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionAction action, uint seat); + private static Eina.Future selection_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat) + { + Eina.Log.Debug("function efl_ui_selection_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((Widget)wrapper).SetSelection(type, format, data, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_dnd_drag_action_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectionAction action, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_action_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_drag_action_set"); - private static void drag_action_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionAction action, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_drag_action_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetDragAction( action, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_dnd_drag_action_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), action, seat); + else + { + return efl_ui_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, format, data, seat); + } } - } - private static efl_ui_dnd_drag_action_set_delegate efl_ui_dnd_drag_action_set_static_delegate; - - - private delegate void efl_ui_dnd_drag_cancel_delegate(System.IntPtr obj, System.IntPtr pd, uint seat); + private static efl_ui_selection_set_delegate efl_ui_selection_set_static_delegate; - public delegate void efl_ui_dnd_drag_cancel_api_delegate(System.IntPtr obj, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_drag_cancel_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_drag_cancel"); - private static void drag_cancel(System.IntPtr obj, System.IntPtr pd, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_drag_cancel was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).DragCancel( seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_dnd_drag_cancel_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat); - } - } - private static efl_ui_dnd_drag_cancel_delegate efl_ui_dnd_drag_cancel_static_delegate; + + private delegate void efl_ui_selection_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat); + + public delegate void efl_ui_selection_get_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat); - private delegate void efl_ui_dnd_drop_target_add_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat); + public static Efl.Eo.FunctionWrapper efl_ui_selection_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selection_get"); + private static void selection_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat) + { + Eina.Log.Debug("function efl_ui_selection_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.SelectionDataReadyWrapper data_func_wrapper = new Efl.Ui.SelectionDataReadyWrapper(data_func, data_func_data, data_func_free_cb); + + try + { + ((Widget)wrapper).GetSelection(type, format, data_func_wrapper.ManagedCb, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_ui_dnd_drop_target_add_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_drop_target_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_drop_target_add"); - private static void drop_target_add(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_drop_target_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Widget)wrapper).AddDropTarget( format, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_dnd_drop_target_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, seat); + else + { + efl_ui_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, format, data_func_data, data_func, data_func_free_cb, seat); + } } - } - private static efl_ui_dnd_drop_target_add_delegate efl_ui_dnd_drop_target_add_static_delegate; + private static efl_ui_selection_get_delegate efl_ui_selection_get_static_delegate; - private delegate void efl_ui_dnd_drop_target_del_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat); + + private delegate void efl_ui_selection_clear_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat); + + public delegate void efl_ui_selection_clear_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, uint seat); - public delegate void efl_ui_dnd_drop_target_del_api_delegate(System.IntPtr obj, Efl.Ui.SelectionFormat format, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_dnd_drop_target_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_dnd_drop_target_del"); - private static void drop_target_del(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionFormat format, uint seat) - { - Eina.Log.Debug("function efl_ui_dnd_drop_target_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).DelDropTarget( format, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_selection_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selection_clear"); + + private static void selection_clear(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat) + { + Eina.Log.Debug("function efl_ui_selection_clear was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).ClearSelection(type, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_selection_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, seat); } - } else { - efl_ui_dnd_drop_target_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), format, seat); } - } - private static efl_ui_dnd_drop_target_del_delegate efl_ui_dnd_drop_target_del_static_delegate; + private static efl_ui_selection_clear_delegate efl_ui_selection_clear_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_l10n_text_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_selection_has_owner_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_selection_has_owner_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, uint seat); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_l10n_text_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_text_get"); - private static System.String l10n_text_get(System.IntPtr obj, System.IntPtr pd, out System.String domain) - { - Eina.Log.Debug("function efl_ui_l10n_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_domain = default(System.String); - System.String _ret_var = default(System.String); - try { - _ret_var = ((Widget)wrapper).GetL10nText( out _out_domain); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - domain = _out_domain; - return _ret_var; - } else { - return efl_ui_l10n_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out domain); - } - } - private static efl_ui_l10n_text_get_delegate efl_ui_l10n_text_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_selection_has_owner_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selection_has_owner"); - private delegate void efl_ui_l10n_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + private static bool has_owner(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat) + { + Eina.Log.Debug("function efl_ui_selection_has_owner was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).HasOwner(type, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_l10n_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_text_set"); - private static void l10n_text_set(System.IntPtr obj, System.IntPtr pd, System.String label, System.String domain) - { - Eina.Log.Debug("function efl_ui_l10n_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetL10nText( label, domain); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_l10n_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), label, domain); + else + { + return efl_ui_selection_has_owner_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, seat); + } } - } - private static efl_ui_l10n_text_set_delegate efl_ui_l10n_text_set_static_delegate; - - private delegate void efl_ui_l10n_translation_update_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_selection_has_owner_delegate efl_ui_selection_has_owner_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IModel efl_ui_view_model_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_l10n_translation_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_l10n_translation_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_l10n_translation_update"); - private static void translation_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_l10n_translation_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).UpdateTranslation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_l10n_translation_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_l10n_translation_update_delegate efl_ui_l10n_translation_update_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IModel efl_ui_view_model_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_view_model_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_view_model_get"); - private delegate Eina.Error efl_ui_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + private static Efl.IModel model_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_view_model_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.IModel _ret_var = default(Efl.IModel); + try + { + _ret_var = ((Widget)wrapper).GetModel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Error efl_ui_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); - public static Efl.Eo.FunctionWrapper efl_ui_property_bind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_property_bind"); - private static Eina.Error property_bind(System.IntPtr obj, System.IntPtr pd, System.String key, System.String property) - { - Eina.Log.Debug("function efl_ui_property_bind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((Widget)wrapper).PropertyBind( key, property); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, property); + else + { + return efl_ui_view_model_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_property_bind_delegate efl_ui_property_bind_static_delegate; + private static efl_ui_view_model_get_delegate efl_ui_view_model_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_ui_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); + + private delegate void efl_ui_view_model_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model); + + public delegate void efl_ui_view_model_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_ui_selection_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_set"); - private static Eina.Future selection_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, Eina.Slice data, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((Widget)wrapper).SetSelection( type, format, data, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_view_model_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_view_model_set"); + + private static void model_set(System.IntPtr obj, System.IntPtr pd, Efl.IModel model) + { + Eina.Log.Debug("function efl_ui_view_model_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetModel(model); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_view_model_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model); } - return _ret_var; - } else { - return efl_ui_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, format, data, seat); } - } - private static efl_ui_selection_set_delegate efl_ui_selection_set_static_delegate; - - private delegate void efl_ui_selection_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat); + private static efl_ui_view_model_set_delegate efl_ui_view_model_set_static_delegate; + + private delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_selection_get_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_get"); - private static void selection_get(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, Efl.Ui.SelectionFormat format, IntPtr data_func_data, Efl.Ui.SelectionDataReadyInternal data_func, EinaFreeCb data_func_free_cb, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.SelectionDataReadyWrapper data_func_wrapper = new Efl.Ui.SelectionDataReadyWrapper(data_func, data_func_data, data_func_free_cb); - - try { - ((Widget)wrapper).GetSelection( type, format, data_func_wrapper.ManagedCb, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, format, data_func_data, data_func, data_func_free_cb, seat); - } - } - private static efl_ui_selection_get_delegate efl_ui_selection_get_static_delegate; + + public delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_geometry_get"); - private delegate void efl_ui_selection_clear_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat); + private static Eina.Rect.NativeStruct focus_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Widget)wrapper).GetFocusGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_selection_clear_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_clear_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_clear"); - private static void selection_clear(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_clear was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).ClearSelection( type, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_selection_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, seat); + else + { + return efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_selection_clear_delegate efl_ui_selection_clear_static_delegate; + private static efl_ui_focus_object_focus_geometry_get_delegate efl_ui_focus_object_focus_geometry_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_selection_has_owner_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_object_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_object_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_get"); + + private static bool focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GetFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_selection_has_owner_api_delegate(System.IntPtr obj, Efl.Ui.SelectionType type, uint seat); - public static Efl.Eo.FunctionWrapper efl_ui_selection_has_owner_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_selection_has_owner"); - private static bool has_owner(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectionType type, uint seat) - { - Eina.Log.Debug("function efl_ui_selection_has_owner was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).HasOwner( type, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_selection_has_owner_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, seat); + else + { + return efl_ui_focus_object_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_selection_has_owner_delegate efl_ui_selection_has_owner_static_delegate; + private static efl_ui_focus_object_focus_get_delegate efl_ui_focus_object_focus_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.IModel efl_ui_view_model_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_object_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus); + + public delegate void efl_ui_focus_object_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.IModel efl_ui_view_model_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_view_model_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_view_model_get"); - private static Efl.IModel model_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_view_model_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.IModel _ret_var = default(Efl.IModel); - try { - _ret_var = ((Widget)wrapper).GetModel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_set"); + + private static void focus_set(System.IntPtr obj, System.IntPtr pd, bool focus) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_object_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); } - return _ret_var; - } else { - return efl_ui_view_model_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_view_model_get_delegate efl_ui_view_model_get_static_delegate; - - private delegate void efl_ui_view_model_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model); + private static efl_ui_focus_object_focus_set_delegate efl_ui_focus_object_focus_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_view_model_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model); - public static Efl.Eo.FunctionWrapper efl_ui_view_model_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_view_model_set"); - private static void model_set(System.IntPtr obj, System.IntPtr pd, Efl.IModel model) - { - Eina.Log.Debug("function efl_ui_view_model_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetModel( model); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_view_model_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model); - } - } - private static efl_ui_view_model_set_delegate efl_ui_view_model_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_manager_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_manager_get"); - private delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IManager focus_manager_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_manager_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((Widget)wrapper).GetFocusManager(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Rect.NativeStruct efl_ui_focus_object_focus_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_geometry_get"); - private static Eina.Rect.NativeStruct focus_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _ret_var = default(Eina.Rect); - try { - _ret_var = ((Widget)wrapper).GetFocusGeometry(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_object_focus_geometry_get_delegate efl_ui_focus_object_focus_geometry_get_static_delegate; + private static efl_ui_focus_object_focus_manager_get_delegate efl_ui_focus_object_focus_manager_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_focus_parent_get"); + + private static Efl.Ui.Focus.IObject focus_parent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_focus_parent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Widget)wrapper).GetFocusParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_get"); - private static bool focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GetFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_focus_object_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_focus_get_delegate efl_ui_focus_object_focus_get_static_delegate; + } + else + { + return efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_ui_focus_object_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus); + private static efl_ui_focus_object_focus_parent_get_delegate efl_ui_focus_object_focus_parent_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_object_child_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_focus_object_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_set"); - private static void focus_set(System.IntPtr obj, System.IntPtr pd, bool focus) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_object_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_object_focus_set_delegate efl_ui_focus_object_focus_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_object_child_focus_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_child_focus_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool child_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_child_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).GetChildFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_object_focus_manager_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_manager_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_manager_get"); - private static Efl.Ui.Focus.IManager focus_manager_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_manager_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((Widget)wrapper).GetFocusManager(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_object_focus_manager_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_object_focus_manager_get_delegate efl_ui_focus_object_focus_manager_get_static_delegate; + private static efl_ui_focus_object_child_focus_get_delegate efl_ui_focus_object_child_focus_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_object_child_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool child_focus); + + public delegate void efl_ui_focus_object_child_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool child_focus); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_object_focus_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_focus_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_focus_parent_get"); - private static Efl.Ui.Focus.IObject focus_parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_focus_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Widget)wrapper).GetFocusParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_child_focus_set"); + + private static void child_focus_set(System.IntPtr obj, System.IntPtr pd, bool child_focus) + { + Eina.Log.Debug("function efl_ui_focus_object_child_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetChildFocus(child_focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_object_child_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_focus); } - return _ret_var; - } else { - return efl_ui_focus_object_focus_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_object_focus_parent_get_delegate efl_ui_focus_object_focus_parent_get_static_delegate; + private static efl_ui_focus_object_child_focus_set_delegate efl_ui_focus_object_child_focus_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_child_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_object_setup_order_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_object_setup_order_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_child_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_child_focus_get"); - private static bool child_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_child_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).GetChildFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_setup_order"); + + private static void setup_order(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_setup_order was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetupOrder(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_object_setup_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_ui_focus_object_child_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_object_child_focus_get_delegate efl_ui_focus_object_child_focus_get_static_delegate; + private static efl_ui_focus_object_setup_order_delegate efl_ui_focus_object_setup_order_static_delegate; - private delegate void efl_ui_focus_object_child_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool child_focus); + + private delegate void efl_ui_focus_object_setup_order_non_recursive_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_object_setup_order_non_recursive_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_object_child_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool child_focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_child_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_child_focus_set"); - private static void child_focus_set(System.IntPtr obj, System.IntPtr pd, bool child_focus) - { - Eina.Log.Debug("function efl_ui_focus_object_child_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetChildFocus( child_focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_object_child_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child_focus); - } - } - private static efl_ui_focus_object_child_focus_set_delegate efl_ui_focus_object_child_focus_set_static_delegate; + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_non_recursive_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_setup_order_non_recursive"); + private static void setup_order_non_recursive(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_setup_order_non_recursive was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Widget)wrapper).SetupOrderNonRecursive(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_ui_focus_object_setup_order_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_focus_object_setup_order_non_recursive_delegate efl_ui_focus_object_setup_order_non_recursive_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_object_on_focus_update_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_focus_object_setup_order_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_setup_order"); - private static void setup_order(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_setup_order was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetupOrder(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_object_setup_order_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_setup_order_delegate efl_ui_focus_object_setup_order_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_object_on_focus_update_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_object_on_focus_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_object_on_focus_update"); - private delegate void efl_ui_focus_object_setup_order_non_recursive_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool on_focus_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_object_on_focus_update was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)wrapper).UpdateOnFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_focus_object_setup_order_non_recursive_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_setup_order_non_recursive_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_setup_order_non_recursive"); - private static void setup_order_non_recursive(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_setup_order_non_recursive was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Widget)wrapper).SetupOrderNonRecursive(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_focus_object_setup_order_non_recursive_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_object_setup_order_non_recursive_delegate efl_ui_focus_object_setup_order_non_recursive_static_delegate; + private static efl_ui_focus_object_on_focus_update_delegate efl_ui_focus_object_on_focus_update_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_object_on_focus_update_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_object_on_focus_update_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_object_on_focus_update_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_object_on_focus_update"); - private static bool on_focus_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_object_on_focus_update was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Widget)wrapper).UpdateOnFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_object_on_focus_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_object_on_focus_update_delegate efl_ui_focus_object_on_focus_update_static_delegate; } -} } -namespace Efl { namespace Ui { + +namespace Efl { + +namespace Ui { + /// All relevant fields needed for the current state of focus registration /// (Since EFL 1.22) [StructLayout(LayoutKind.Sequential)] @@ -7205,9 +10000,9 @@ public struct WidgetFocusState public bool Logical; ///Constructor for WidgetFocusState. public WidgetFocusState( - Efl.Ui.Focus.IManager Manager=default(Efl.Ui.Focus.IManager), - Efl.Ui.Focus.IObject Parent=default(Efl.Ui.Focus.IObject), - bool Logical=default(bool) ) + Efl.Ui.Focus.IManager Manager = default(Efl.Ui.Focus.IManager), + Efl.Ui.Focus.IObject Parent = default(Efl.Ui.Focus.IObject), + bool Logical = default(bool) ) { this.Manager = Manager; this.Parent = Parent; @@ -7256,4 +10051,7 @@ public struct WidgetFocusState } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_factory.eo.cs index 56f7cc0..9f8d169 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_factory.eo.cs @@ -3,453 +3,641 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl Ui Factory that provides . /// This factory is designed to build and optionally set their if it was connected with "style". -[WidgetFactoryNativeInherit] +[Efl.Ui.WidgetFactory.NativeMethods] public class WidgetFactory : Efl.LoopConsumer, Efl.Eo.IWrapper,Efl.Ui.IFactory,Efl.Ui.IFactoryBind,Efl.Ui.IPropertyBind { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (WidgetFactory)) - return Efl.Ui.WidgetFactoryNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(WidgetFactory)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_widget_factory_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Define the class of the item returned by this factory. See + /// Initializes a new instance of the class. + /// Parent instance. + /// Define the class of the item returned by this factory. See public WidgetFactory(Efl.Object parent - , Type itemClass = null) : - base(efl_ui_widget_factory_class_get(), typeof(WidgetFactory), parent) + , Type itemClass = null) : base(efl_ui_widget_factory_class_get(), typeof(WidgetFactory), parent) { if (Efl.Eo.Globals.ParamHelperCheck(itemClass)) + { SetItemClass(Efl.Eo.Globals.GetParamHelper(itemClass)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected WidgetFactory(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected WidgetFactory(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected WidgetFactory(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object CreatedEvtKey = new object(); + /// Event triggered when an item has been successfully created. public event EventHandler CreatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IFactoryCreatedEvt_Args args = new Efl.Ui.IFactoryCreatedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FACTORY_EVENT_CREATED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_CreatedEvt_delegate)) { - eventHandlers.AddHandler(CreatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FACTORY_EVENT_CREATED"; - if (RemoveNativeEventHandler(key, this.evt_CreatedEvt_delegate)) { - eventHandlers.RemoveHandler(CreatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event CreatedEvt. - public void On_CreatedEvt(Efl.Ui.IFactoryCreatedEvt_Args e) + public void OnCreatedEvt(Efl.Ui.IFactoryCreatedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CreatedEvtKey]; + var key = "_EFL_UI_FACTORY_EVENT_CREATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CreatedEvt_delegate; - private void on_CreatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IFactoryCreatedEvt_Args args = new Efl.Ui.IFactoryCreatedEvt_Args(); - args.arg = evt.Info;; - try { - On_CreatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PropertiesChangedEvtKey = new object(); /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. public event EventHandler PropertiesChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertiesChangedEvt_Args args = new Efl.Ui.IPropertyBindPropertiesChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.AddHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_PropertiesChangedEvt_delegate)) { - eventHandlers.RemoveHandler(PropertiesChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PropertiesChangedEvt. - public void On_PropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) + public void OnPropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertiesChangedEvtKey]; + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertiesChangedEvt_delegate; - private void on_PropertiesChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IPropertyBindPropertiesChangedEvt_Args args = new Efl.Ui.IPropertyBindPropertiesChangedEvt_Args(); - args.arg = evt.Info;; - try { - On_PropertiesChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object PropertyBoundEvtKey = new object(); /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. public event EventHandler PropertyBoundEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertyBoundEvt_Args args = new Efl.Ui.IPropertyBindPropertyBoundEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_PropertyBoundEvt_delegate)) { - eventHandlers.AddHandler(PropertyBoundEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; - if (RemoveNativeEventHandler(key, this.evt_PropertyBoundEvt_delegate)) { - eventHandlers.RemoveHandler(PropertyBoundEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event PropertyBoundEvt. - public void On_PropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) + public void OnPropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PropertyBoundEvtKey]; + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PropertyBoundEvt_delegate; - private void on_PropertyBoundEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.IPropertyBindPropertyBoundEvt_Args args = new Efl.Ui.IPropertyBindPropertyBoundEvt_Args(); - args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); - try { - On_PropertyBoundEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_CreatedEvt_delegate = new Efl.EventCb(on_CreatedEvt_NativeCallback); - evt_PropertiesChangedEvt_delegate = new Efl.EventCb(on_PropertiesChangedEvt_NativeCallback); - evt_PropertyBoundEvt_delegate = new Efl.EventCb(on_PropertyBoundEvt_NativeCallback); + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); + } } /// Define the class of the item returned by this factory. /// The class identifier to create item from. virtual public Type GetItemClass() { - var _ret_var = Efl.Ui.WidgetFactoryNativeInherit.efl_ui_widget_factory_item_class_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.WidgetFactory.NativeMethods.efl_ui_widget_factory_item_class_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Define the class of the item returned by this factory. /// The class identifier to create item from. - /// - virtual public void SetItemClass( Type klass) { - Efl.Ui.WidgetFactoryNativeInherit.efl_ui_widget_factory_item_class_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), klass); + virtual public void SetItemClass(Type klass) { + Efl.Ui.WidgetFactory.NativeMethods.efl_ui_widget_factory_item_class_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),klass); Eina.Error.RaiseIfUnhandledException(); } /// Create a UI object from the necessary properties in the specified model. /// Efl model /// Efl canvas /// Created UI object - virtual public Eina.Future Create( Efl.IModel model, Efl.Gfx.IEntity parent) { - var _ret_var = Efl.Ui.IFactoryNativeInherit.efl_ui_factory_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), model, parent); + virtual public Eina.Future Create(Efl.IModel model, Efl.Gfx.IEntity parent) { + var _ret_var = Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),model, parent); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Release a UI object and disconnect from models. /// Efl canvas - /// - virtual public void Release( Efl.Gfx.IEntity ui_view) { - Efl.Ui.IFactoryNativeInherit.efl_ui_factory_release_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ui_view); + virtual public void Release(Efl.Gfx.IEntity ui_view) { + Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_release_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ui_view); Eina.Error.RaiseIfUnhandledException(); } /// bind the factory with the given key string. when the data is ready or changed, factory create the object and bind the data to the key action and process promised work. Note: the input need to be at least once. /// Key string for bind model property data /// for create and bind model property data - /// - virtual public void FactoryBind( System.String key, Efl.Ui.IFactory factory) { - Efl.Ui.IFactoryBindNativeInherit.efl_ui_factory_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key, factory); + virtual public void FactoryBind(System.String key, Efl.Ui.IFactory factory) { + Efl.Ui.IFactoryBindConcrete.NativeMethods.efl_ui_factory_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key, factory); Eina.Error.RaiseIfUnhandledException(); } /// bind property data with the given key string. when the data is ready or changed, bind the data to the key action and process promised work. /// key string for bind model property data /// Model property name /// 0 when it succeed, an error code otherwise. - virtual public Eina.Error PropertyBind( System.String key, System.String property) { - var _ret_var = Efl.Ui.IPropertyBindNativeInherit.efl_ui_property_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key, property); + virtual public Eina.Error PropertyBind(System.String key, System.String property) { + var _ret_var = Efl.Ui.IPropertyBindConcrete.NativeMethods.efl_ui_property_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key, property); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - public System.Threading.Tasks.Task CreateAsync( Efl.IModel model, Efl.Gfx.IEntity parent, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task CreateAsync(Efl.IModel model,Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = Create( model, parent); + Eina.Future future = Create( model, parent); return Efl.Eo.Globals.WrapAsync(future, token); } /// Define the class of the item returned by this factory. /// The class identifier to create item from. public Type ItemClass { get { return GetItemClass(); } - set { SetItemClass( value); } + set { SetItemClass(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.WidgetFactory.efl_ui_widget_factory_class_get(); } -} -public class WidgetFactoryNativeInherit : Efl.LoopConsumerNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_widget_factory_item_class_get_static_delegate == null) - efl_ui_widget_factory_item_class_get_static_delegate = new efl_ui_widget_factory_item_class_get_delegate(item_class_get); - if (methods.FirstOrDefault(m => m.Name == "GetItemClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_factory_item_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_factory_item_class_get_static_delegate)}); - if (efl_ui_widget_factory_item_class_set_static_delegate == null) - efl_ui_widget_factory_item_class_set_static_delegate = new efl_ui_widget_factory_item_class_set_delegate(item_class_set); - if (methods.FirstOrDefault(m => m.Name == "SetItemClass") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_factory_item_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_factory_item_class_set_static_delegate)}); - if (efl_ui_factory_create_static_delegate == null) - efl_ui_factory_create_static_delegate = new efl_ui_factory_create_delegate(create); - if (methods.FirstOrDefault(m => m.Name == "Create") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_create_static_delegate)}); - if (efl_ui_factory_release_static_delegate == null) - efl_ui_factory_release_static_delegate = new efl_ui_factory_release_delegate(release); - if (methods.FirstOrDefault(m => m.Name == "Release") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_factory_release"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_release_static_delegate)}); - if (efl_ui_factory_bind_static_delegate == null) - efl_ui_factory_bind_static_delegate = new efl_ui_factory_bind_delegate(factory_bind); - if (methods.FirstOrDefault(m => m.Name == "FactoryBind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_factory_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_bind_static_delegate)}); - if (efl_ui_property_bind_static_delegate == null) - efl_ui_property_bind_static_delegate = new efl_ui_property_bind_delegate(property_bind); - if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_property_bind_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.WidgetFactory.efl_ui_widget_factory_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopConsumer.NativeMethods { - return Efl.Ui.WidgetFactory.efl_ui_widget_factory_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_widget_factory_item_class_get_static_delegate == null) + { + efl_ui_widget_factory_item_class_get_static_delegate = new efl_ui_widget_factory_item_class_get_delegate(item_class_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetItemClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_factory_item_class_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_factory_item_class_get_static_delegate) }); + } + if (efl_ui_widget_factory_item_class_set_static_delegate == null) + { + efl_ui_widget_factory_item_class_set_static_delegate = new efl_ui_widget_factory_item_class_set_delegate(item_class_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] private delegate Type efl_ui_widget_factory_item_class_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetItemClass") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_factory_item_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_factory_item_class_set_static_delegate) }); + } + if (efl_ui_factory_create_static_delegate == null) + { + efl_ui_factory_create_static_delegate = new efl_ui_factory_create_delegate(create); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] public delegate Type efl_ui_widget_factory_item_class_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_widget_factory_item_class_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_factory_item_class_get"); - private static Type item_class_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_widget_factory_item_class_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Type _ret_var = default(Type); - try { - _ret_var = ((WidgetFactory)wrapper).GetItemClass(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Create") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_create_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_widget_factory_item_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (efl_ui_factory_release_static_delegate == null) + { + efl_ui_factory_release_static_delegate = new efl_ui_factory_release_delegate(release); + } + + if (methods.FirstOrDefault(m => m.Name == "Release") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_release"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_release_static_delegate) }); + } + + if (efl_ui_factory_bind_static_delegate == null) + { + efl_ui_factory_bind_static_delegate = new efl_ui_factory_bind_delegate(factory_bind); + } + + if (methods.FirstOrDefault(m => m.Name == "FactoryBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_bind_static_delegate) }); + } + + if (efl_ui_property_bind_static_delegate == null) + { + efl_ui_property_bind_static_delegate = new efl_ui_property_bind_delegate(property_bind); + } + + if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_property_bind_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.WidgetFactory.efl_ui_widget_factory_class_get(); } - } - private static efl_ui_widget_factory_item_class_get_delegate efl_ui_widget_factory_item_class_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_widget_factory_item_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] + private delegate Type efl_ui_widget_factory_item_class_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] + public delegate Type efl_ui_widget_factory_item_class_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_widget_factory_item_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass); - public static Efl.Eo.FunctionWrapper efl_ui_widget_factory_item_class_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_factory_item_class_set"); - private static void item_class_set(System.IntPtr obj, System.IntPtr pd, Type klass) - { - Eina.Log.Debug("function efl_ui_widget_factory_item_class_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetFactory)wrapper).SetItemClass( klass); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_widget_factory_item_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass); + public static Efl.Eo.FunctionWrapper efl_ui_widget_factory_item_class_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_factory_item_class_get"); + + private static Type item_class_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_factory_item_class_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Type _ret_var = default(Type); + try + { + _ret_var = ((WidgetFactory)wrapper).GetItemClass(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_factory_item_class_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_widget_factory_item_class_set_delegate efl_ui_widget_factory_item_class_set_static_delegate; + private static efl_ui_widget_factory_item_class_get_delegate efl_ui_widget_factory_item_class_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] private delegate Eina.Future efl_ui_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity parent); + + private delegate void efl_ui_widget_factory_item_class_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass); + + public delegate void efl_ui_widget_factory_item_class_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public delegate Eina.Future efl_ui_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity parent); - public static Efl.Eo.FunctionWrapper efl_ui_factory_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_factory_create"); - private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, Efl.IModel model, Efl.Gfx.IEntity parent) - { - Eina.Log.Debug("function efl_ui_factory_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Future _ret_var = default( Eina.Future); - try { - _ret_var = ((WidgetFactory)wrapper).Create( model, parent); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_widget_factory_item_class_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_factory_item_class_set"); + + private static void item_class_set(System.IntPtr obj, System.IntPtr pd, Type klass) + { + Eina.Log.Debug("function efl_ui_widget_factory_item_class_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetFactory)wrapper).SetItemClass(klass); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_factory_item_class_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass); } - return _ret_var; - } else { - return efl_ui_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model, parent); } - } - private static efl_ui_factory_create_delegate efl_ui_factory_create_static_delegate; + private static efl_ui_widget_factory_item_class_set_delegate efl_ui_widget_factory_item_class_set_static_delegate; - private delegate void efl_ui_factory_release_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity ui_view); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_ui_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_ui_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); - public delegate void efl_ui_factory_release_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity ui_view); - public static Efl.Eo.FunctionWrapper efl_ui_factory_release_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_factory_release"); - private static void release(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity ui_view) - { - Eina.Log.Debug("function efl_ui_factory_release was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetFactory)wrapper).Release( ui_view); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_factory_release_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ui_view); + public static Efl.Eo.FunctionWrapper efl_ui_factory_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_create"); + + private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, Efl.IModel model, Efl.Gfx.IEntity parent) + { + Eina.Log.Debug("function efl_ui_factory_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((WidgetFactory)wrapper).Create(model, parent); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model, parent); + } } - } - private static efl_ui_factory_release_delegate efl_ui_factory_release_static_delegate; + private static efl_ui_factory_create_delegate efl_ui_factory_create_static_delegate; - private delegate void efl_ui_factory_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IFactory factory); + + private delegate void efl_ui_factory_release_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity ui_view); + + public delegate void efl_ui_factory_release_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity ui_view); - public delegate void efl_ui_factory_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.IFactory factory); - public static Efl.Eo.FunctionWrapper efl_ui_factory_bind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_factory_bind"); - private static void factory_bind(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.Ui.IFactory factory) - { - Eina.Log.Debug("function efl_ui_factory_bind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetFactory)wrapper).FactoryBind( key, factory); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_factory_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, factory); + public static Efl.Eo.FunctionWrapper efl_ui_factory_release_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_release"); + + private static void release(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity ui_view) + { + Eina.Log.Debug("function efl_ui_factory_release was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetFactory)wrapper).Release(ui_view); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_factory_release_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ui_view); + } } - } - private static efl_ui_factory_bind_delegate efl_ui_factory_bind_static_delegate; + private static efl_ui_factory_release_delegate efl_ui_factory_release_static_delegate; - private delegate Eina.Error efl_ui_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + private delegate void efl_ui_factory_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); + + public delegate void efl_ui_factory_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); - public delegate Eina.Error efl_ui_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); - public static Efl.Eo.FunctionWrapper efl_ui_property_bind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_property_bind"); - private static Eina.Error property_bind(System.IntPtr obj, System.IntPtr pd, System.String key, System.String property) - { - Eina.Log.Debug("function efl_ui_property_bind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((WidgetFactory)wrapper).PropertyBind( key, property); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_factory_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_bind"); + + private static void factory_bind(System.IntPtr obj, System.IntPtr pd, System.String key, Efl.Ui.IFactory factory) + { + Eina.Log.Debug("function efl_ui_factory_bind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetFactory)wrapper).FactoryBind(key, factory); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_factory_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, factory); } + } + + private static efl_ui_factory_bind_delegate efl_ui_factory_bind_static_delegate; + + + private delegate Eina.Error efl_ui_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + + public delegate Eina.Error efl_ui_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_ui_property_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_property_bind"); + + private static Eina.Error property_bind(System.IntPtr obj, System.IntPtr pd, System.String key, System.String property) + { + Eina.Log.Debug("function efl_ui_property_bind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((WidgetFactory)wrapper).PropertyBind(key, property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, property); + + } + else + { + return efl_ui_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, property); + } } - } - private static efl_ui_property_bind_delegate efl_ui_property_bind_static_delegate; + + private static efl_ui_property_bind_delegate efl_ui_property_bind_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} } +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_focus_manager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_focus_manager.eo.cs index 00e017f..b71d3f8 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_focus_manager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_focus_manager.eo.cs @@ -3,11 +3,15 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// No description supplied. /// (Since EFL 1.22) -[IWidgetFocusManagerNativeInherit] +[Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods] public interface IWidgetFocusManager : Efl.Ui.Focus.IManager , Efl.Eo.IWrapper, IDisposable @@ -17,7 +21,7 @@ public interface IWidgetFocusManager : /// (Since EFL 1.22) /// The logical root object for focus. /// The focus manager. -Efl.Ui.Focus.IManager FocusManagerCreate( Efl.Ui.Focus.IObject root); +Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root); } /// No description supplied. /// (Since EFL 1.22) @@ -27,363 +31,462 @@ IWidgetFocusManager , Efl.Ui.Focus.IManager { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IWidgetFocusManagerConcrete)) - return Efl.Ui.IWidgetFocusManagerNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IWidgetFocusManagerConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_widget_focus_manager_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IWidgetFocusManagerConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IWidgetFocusManagerConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object RedirectChangedEvtKey = new object(); + /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) public event EventHandler RedirectChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.AddHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.RemoveHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedirectChangedEvt. - public void On_RedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedirectChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedirectChangedEvt_delegate; - private void on_RedirectChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_RedirectChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object FlushPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.AddHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (RemoveNativeEventHandler(key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.RemoveHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FlushPreEvt. - public void On_FlushPreEvt(EventArgs e) + public void OnFlushPreEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FlushPreEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FlushPreEvt_delegate; - private void on_FlushPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_FlushPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object CoordsDirtyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.AddHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (RemoveNativeEventHandler(key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.RemoveHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CoordsDirtyEvt. - public void On_CoordsDirtyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CoordsDirtyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CoordsDirtyEvt_delegate; - private void on_CoordsDirtyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCoordsDirtyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_CoordsDirtyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ManagerFocusChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) public event EventHandler ManagerFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ManagerFocusChangedEvt. - public void On_ManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ManagerFocusChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ManagerFocusChangedEvt_delegate; - private void on_ManagerFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_ManagerFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object DirtyLogicFreezeChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) public event EventHandler DirtyLogicFreezeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.AddHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DirtyLogicFreezeChangedEvt. - public void On_DirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DirtyLogicFreezeChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DirtyLogicFreezeChangedEvt_delegate; - private void on_DirtyLogicFreezeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_DirtyLogicFreezeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_RedirectChangedEvt_delegate = new Efl.EventCb(on_RedirectChangedEvt_NativeCallback); - evt_FlushPreEvt_delegate = new Efl.EventCb(on_FlushPreEvt_NativeCallback); - evt_CoordsDirtyEvt_delegate = new Efl.EventCb(on_CoordsDirtyEvt_NativeCallback); - evt_ManagerFocusChangedEvt_delegate = new Efl.EventCb(on_ManagerFocusChangedEvt_NativeCallback); - evt_DirtyLogicFreezeChangedEvt_delegate = new Efl.EventCb(on_DirtyLogicFreezeChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// If the widget needs a focus manager, this function will be called. /// It can be used and overriden to inject your own manager or set custom options on the focus manager. /// (Since EFL 1.22) /// The logical root object for focus. /// The focus manager. - public Efl.Ui.Focus.IManager FocusManagerCreate( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.IWidgetFocusManagerNativeInherit.efl_ui_widget_focus_manager_create_ptr.Value.Delegate(this.NativeHandle, root); + public Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods.efl_ui_widget_focus_manager_create_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -392,7 +495,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Currently focused element. public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -400,9 +503,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. - /// - public void SetManagerFocus( Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle, focus); + public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle,focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. @@ -410,7 +512,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The redirect manager. public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -418,9 +520,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. - /// - public void SetRedirect( Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle, redirect); + public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle,redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. @@ -428,7 +529,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the border objects. public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -437,9 +538,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. - public Eina.Iterator GetViewportElements( Eina.Rect viewport) { + public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle, _in_viewport); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle,_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -448,7 +549,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -457,8 +558,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node - public bool SetRoot( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle, root); + public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -467,8 +568,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. - public Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle, direction); + public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle,direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -478,8 +579,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. - public Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle, direction, child, logical); + public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle,direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -488,8 +589,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. - public Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle, root); + public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -498,8 +599,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. - public Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle, child); + public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle,child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); @@ -510,24 +611,22 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Last object. public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) - /// public void ResetHistory() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) - /// public void PopHistoryStack() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. @@ -535,25 +634,22 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. - /// - public void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle, direction, entry); + public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle,direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) - /// public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) - /// public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// The element which is currently focused by this manager @@ -562,7 +658,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } - set { SetManagerFocus( value); } + set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. @@ -570,7 +666,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } - set { SetRedirect( value); } + set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See @@ -585,573 +681,908 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } - set { SetRoot( value); } + set { SetRoot(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IWidgetFocusManagerConcrete.efl_ui_widget_focus_manager_mixin_get(); } -} -public class IWidgetFocusManagerNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_widget_focus_manager_create_static_delegate == null) - efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); - if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate)}); - if (efl_ui_focus_manager_focus_get_static_delegate == null) - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate)}); - if (efl_ui_focus_manager_focus_set_static_delegate == null) - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate)}); - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate)}); - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate)}); - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate)}); - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate)}); - if (efl_ui_focus_manager_root_get_static_delegate == null) - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate)}); - if (efl_ui_focus_manager_root_set_static_delegate == null) - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate)}); - if (efl_ui_focus_manager_move_static_delegate == null) - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate)}); - if (efl_ui_focus_manager_request_move_static_delegate == null) - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate)}); - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate)}); - if (efl_ui_focus_manager_fetch_static_delegate == null) - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate)}); - if (efl_ui_focus_manager_logical_end_static_delegate == null) - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate)}); - if (efl_ui_focus_manager_reset_history_static_delegate == null) - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate)}); - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate)}); - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IWidgetFocusManagerConcrete.efl_ui_widget_focus_manager_mixin_get(); - } - public static IntPtr GetEflClassStatic() - { - return Efl.Ui.IWidgetFocusManagerConcrete.efl_ui_widget_focus_manager_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_widget_focus_manager_create_static_delegate == null) + { + efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); + } + if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + if (efl_ui_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_manager_create"); - private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).FocusManagerCreate( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); } - return _ret_var; - } else { - return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_get"); - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).GetManagerFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); } - return _ret_var; - } else { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); + } - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + } - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_set"); - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IWidgetFocusManagerConcrete)wrapper).SetManagerFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_get"); - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).GetRedirect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); } - return _ret_var; - } else { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + } - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + } - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_set"); - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IWidgetFocusManagerConcrete)wrapper).SetRedirect( redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + } - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + } + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + } - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_border_elements_get"); - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).GetBorderElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + } + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_viewport_elements_get"); - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).GetViewportElements( _in_viewport); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); - } - } - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_get"); - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).GetRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + } + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_set"); - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).SetRoot( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.IWidgetFocusManagerConcrete.efl_ui_widget_focus_manager_mixin_get(); } - } - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); + + private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).FocusManagerCreate(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + return _ret_var; + } + else + { + return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + + private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); + + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_move"); - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).Move( direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IWidgetFocusManagerConcrete)wrapper).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + } + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + } + } + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); + + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_move"); - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).MoveRequest( direction, child, logical); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); + + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IWidgetFocusManagerConcrete)wrapper).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); + + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_subchild"); - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).RequestSubchild( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); + + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_fetch"); - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).Fetch( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } } - } - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); + + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); + + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_logical_end"); - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try { - _ret_var = ((IWidgetFocusManagerConcrete)wrapper).LogicalEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); + + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } + } - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); + + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_reset_history"); - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IWidgetFocusManagerConcrete)wrapper).ResetHistory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } } - } - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); + + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_pop_history_stack"); - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IWidgetFocusManagerConcrete)wrapper).PopHistoryStack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); + + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); + + } + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } } - } - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); + + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((IWidgetFocusManagerConcrete)wrapper).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); + return _ret_var; + } + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IWidgetFocusManagerConcrete)wrapper).SetupOnFirstTouch( direction, entry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IWidgetFocusManagerConcrete)wrapper).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); + + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IWidgetFocusManagerConcrete)wrapper).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); + + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IWidgetFocusManagerConcrete)wrapper).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + } + } + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); + + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IWidgetFocusManagerConcrete)wrapper).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IWidgetFocusManagerConcrete)wrapper).FreezeDirtyLogic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IWidgetFocusManagerConcrete)wrapper).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IWidgetFocusManagerConcrete)wrapper).DirtyLogicUnfreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part.eo.cs index 291be4f..731382a 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part.eo.cs @@ -3,83 +3,116 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// This is the base class for all "Part" handles in Efl.Ui widgets. /// Since objects of this type are returned by , their lifetime is limited to exactly one function call only. Each widget class should expose more specific types for their API-defined parts. -[WidgetPartNativeInherit] +[Efl.Ui.WidgetPart.NativeMethods] public class WidgetPart : Efl.Object, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (WidgetPart)) - return Efl.Ui.WidgetPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(WidgetPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_widget_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public WidgetPart(Efl.Object parent= null - ) : - base(efl_ui_widget_part_class_get(), typeof(WidgetPart), parent) + ) : base(efl_ui_widget_part_class_get(), typeof(WidgetPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected WidgetPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected WidgetPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected WidgetPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.WidgetPart.efl_ui_widget_part_class_get(); } -} -public class WidgetPartNativeInherit : Efl.ObjectNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.WidgetPart.efl_ui_widget_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods { - return Efl.Ui.WidgetPart.efl_ui_widget_part_class_get(); - } + /// 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(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.WidgetPart.efl_ui_widget_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_bg.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_bg.eo.cs index 21f6212..3897f3c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_bg.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_bg.eo.cs @@ -3,201 +3,249 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Elementary widget internal part background class -[WidgetPartBgNativeInherit] +[Efl.Ui.WidgetPartBg.NativeMethods] public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.IFile,Efl.Gfx.IColor,Efl.Gfx.IImage { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (WidgetPartBg)) - return Efl.Ui.WidgetPartBgNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(WidgetPartBg)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_widget_part_bg_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public WidgetPartBg(Efl.Object parent= null - ) : - base(efl_ui_widget_part_bg_class_get(), typeof(WidgetPartBg), parent) + ) : base(efl_ui_widget_part_bg_class_get(), typeof(WidgetPartBg), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected WidgetPartBg(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected WidgetPartBg(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected WidgetPartBg(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ImagePreloadEvtKey = new object(); + /// Image data has been preloaded. public event EventHandler ImagePreloadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImagePreloadEvt_delegate)) { - eventHandlers.AddHandler(ImagePreloadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; - if (RemoveNativeEventHandler(key, this.evt_ImagePreloadEvt_delegate)) { - eventHandlers.RemoveHandler(ImagePreloadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImagePreloadEvt. - public void On_ImagePreloadEvt(EventArgs e) + public void OnImagePreloadEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImagePreloadEvtKey]; + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImagePreloadEvt_delegate; - private void on_ImagePreloadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ImagePreloadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ImageResizeEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Image was resized (its pixel data). public event EventHandler ImageResizeEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImageResizeEvt_delegate)) { - eventHandlers.AddHandler(ImageResizeEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; - if (RemoveNativeEventHandler(key, this.evt_ImageResizeEvt_delegate)) { - eventHandlers.RemoveHandler(ImageResizeEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImageResizeEvt. - public void On_ImageResizeEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImageResizeEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImageResizeEvt_delegate; - private void on_ImageResizeEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnImageResizeEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ImageResizeEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ImageUnloadEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Image data has been unloaded (by some mechanism in EFL that threw out the original image data). public event EventHandler ImageUnloadEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ImageUnloadEvt_delegate)) { - eventHandlers.AddHandler(ImageUnloadEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; - if (RemoveNativeEventHandler(key, this.evt_ImageUnloadEvt_delegate)) { - eventHandlers.RemoveHandler(ImageUnloadEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ImageUnloadEvt. - public void On_ImageUnloadEvt(EventArgs e) + public void OnImageUnloadEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ImageUnloadEvtKey]; + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ImageUnloadEvt_delegate; - private void on_ImageUnloadEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ImageUnloadEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ImagePreloadEvt_delegate = new Efl.EventCb(on_ImagePreloadEvt_NativeCallback); - evt_ImageResizeEvt_delegate = new Efl.EventCb(on_ImageResizeEvt_NativeCallback); - evt_ImageUnloadEvt_delegate = new Efl.EventCb(on_ImageUnloadEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Get the mmaped file from where an object will fetch the real data (it must be an ). /// (Since EFL 1.22) /// The handle to the that will be used virtual public Eina.File GetMmap() { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -206,8 +254,8 @@ private static object ImageUnloadEvtKey = new object(); /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise - virtual public Eina.Error SetMmap( Eina.File f) { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public Eina.Error SetMmap(Eina.File f) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -216,7 +264,7 @@ private static object ImageUnloadEvtKey = new object(); /// (Since EFL 1.22) /// The file path. virtual public System.String GetFile() { - var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -225,8 +273,8 @@ private static object ImageUnloadEvtKey = new object(); /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise - virtual public Eina.Error SetFile( System.String file) { - var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file); + virtual public Eina.Error SetFile(System.String file) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -237,7 +285,7 @@ private static object ImageUnloadEvtKey = new object(); /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. virtual public System.String GetKey() { - var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -245,16 +293,15 @@ private static object ImageUnloadEvtKey = new object(); /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. - /// - virtual public void SetKey( System.String key) { - Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public void SetKey(System.String key) { + Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. virtual public bool GetLoaded() { - var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -265,7 +312,7 @@ private static object ImageUnloadEvtKey = new object(); /// (Since EFL 1.22) /// 0 on success, error code otherwise virtual public Eina.Error Load() { - var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -274,9 +321,8 @@ private static object ImageUnloadEvtKey = new object(); /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) - /// virtual public void Unload() { - Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the general/main color of the given Evas object. @@ -288,13 +334,8 @@ private static object ImageUnloadEvtKey = new object(); /// /// Use null pointers on the components you're not interested in: they'll be ignored by the function. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - virtual public void GetColor( out int r, out int g, out int b, out int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetColor(out int r, out int g, out int b, out int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Sets the general/main color of the given Evas object to the given one. @@ -302,29 +343,23 @@ private static object ImageUnloadEvtKey = new object(); /// /// These color values are expected to be premultiplied by alpha. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - virtual public void SetColor( int r, int g, int b, int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetColor(int r, int g, int b, int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. virtual public System.String GetColorCode() { - var _ret_var = Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the color of given Evas object to the given hex color code(#RRGGBBAA). e.g. efl_gfx_color_code_set(obj, "#FFCCAACC"); /// (Since EFL 1.22) /// the hex color code. - /// - virtual public void SetColorCode( System.String colorcode) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), colorcode); + virtual public void SetColorCode(System.String colorcode) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),colorcode); Eina.Error.RaiseIfUnhandledException(); } /// Whether to use high-quality image scaling algorithm for this image. @@ -333,7 +368,7 @@ private static object ImageUnloadEvtKey = new object(); /// true by default /// Whether to use smooth scale or not. virtual public bool GetSmoothScale() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_smooth_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -342,29 +377,27 @@ private static object ImageUnloadEvtKey = new object(); /// /// true by default /// Whether to use smooth scale or not. - /// - virtual public void SetSmoothScale( bool smooth_scale) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_smooth_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), smooth_scale); + virtual public void SetSmoothScale(bool smooth_scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),smooth_scale); Eina.Error.RaiseIfUnhandledException(); } /// Control how the image is scaled. /// Image scale type virtual public Efl.Gfx.ImageScaleType GetScaleType() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control how the image is scaled. /// Image scale type - /// - virtual public void SetScaleType( Efl.Gfx.ImageScaleType scale_type) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale_type); + virtual public void SetScaleType(Efl.Gfx.ImageScaleType scale_type) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale_type); Eina.Error.RaiseIfUnhandledException(); } /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. virtual public double GetRatio() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_ratio_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_ratio_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -382,9 +415,8 @@ private static object ImageUnloadEvtKey = new object(); /// The border's right width. /// The border's top height. /// The border's bottom height. - /// - virtual public void GetBorder( out int l, out int r, out int t, out int b) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out l, out r, out t, out b); + virtual public void GetBorder(out int l, out int r, out int t, out int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Dimensions of this image's border, a region that does not scale with the center area. @@ -401,9 +433,8 @@ private static object ImageUnloadEvtKey = new object(); /// The border's right width. /// The border's top height. /// The border's bottom height. - /// - virtual public void SetBorder( int l, int r, int t, int b) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), l, r, t, b); + virtual public void SetBorder(int l, int r, int t, int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),l, r, t, b); Eina.Error.RaiseIfUnhandledException(); } /// Scaling factor applied to the image borders. @@ -412,7 +443,7 @@ private static object ImageUnloadEvtKey = new object(); /// Default value is 1.0 (no scaling). /// The scale factor. virtual public double GetBorderScale() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -421,9 +452,8 @@ private static object ImageUnloadEvtKey = new object(); /// /// Default value is 1.0 (no scaling). /// The scale factor. - /// - virtual public void SetBorderScale( double scale) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), scale); + virtual public void SetBorderScale(double scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),scale); Eina.Error.RaiseIfUnhandledException(); } /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. @@ -432,7 +462,7 @@ private static object ImageUnloadEvtKey = new object(); /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. virtual public Efl.Gfx.BorderFillMode GetBorderCenterFill() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_center_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -441,9 +471,8 @@ private static object ImageUnloadEvtKey = new object(); /// /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. - /// - virtual public void SetBorderCenterFill( Efl.Gfx.BorderFillMode fill) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_border_center_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fill); + virtual public void SetBorderCenterFill(Efl.Gfx.BorderFillMode fill) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fill); Eina.Error.RaiseIfUnhandledException(); } /// This represents the size of the original image in pixels. @@ -452,7 +481,7 @@ private static object ImageUnloadEvtKey = new object(); /// This is a read-only property, and may return 0x0. /// The size in pixels. virtual public Eina.Size2D GetImageSize() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -460,38 +489,36 @@ private static object ImageUnloadEvtKey = new object(); /// This returns #EVAS_IMAGE_CONTENT_HINT_NONE on error. /// Dynamic or static content hint, see virtual public Efl.Gfx.ImageContentHint GetContentHint() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_content_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the content hint setting of a given image object of the canvas. /// This function sets the content hint value of the given image of the canvas. For example, if you're on the GL engine and your driver implementation supports it, setting this hint to #EVAS_IMAGE_CONTENT_HINT_DYNAMIC will make it need zero copies at texture upload time, which is an "expensive" operation. /// Dynamic or static content hint, see - /// - virtual public void SetContentHint( Efl.Gfx.ImageContentHint hint) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_content_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hint); + virtual public void SetContentHint(Efl.Gfx.ImageContentHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hint); Eina.Error.RaiseIfUnhandledException(); } /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see virtual public Efl.Gfx.ImageScaleHint GetScaleHint() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the scale hint of a given image of the canvas. /// This function sets the scale hint value of the given image object in the canvas, which will affect how Evas is to cache scaled versions of its original source image. /// Scalable or static size hint, see - /// - virtual public void SetScaleHint( Efl.Gfx.ImageScaleHint hint) { - Efl.Gfx.IImageNativeInherit.efl_gfx_image_scale_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hint); + virtual public void SetScaleHint(Efl.Gfx.ImageScaleHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hint); Eina.Error.RaiseIfUnhandledException(); } /// Gets the (last) file loading error for a given object. /// The load error code. virtual public Eina.Error GetImageLoadError() { - var _ret_var = Efl.Gfx.IImageNativeInherit.efl_gfx_image_load_error_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_load_error_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -500,7 +527,7 @@ private static object ImageUnloadEvtKey = new object(); /// The handle to the that will be used public Eina.File Mmap { get { return GetMmap(); } - set { SetMmap( value); } + set { SetMmap(value); } } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. @@ -508,7 +535,7 @@ private static object ImageUnloadEvtKey = new object(); /// The file path. public System.String File { get { return GetFile(); } - set { SetFile( value); } + set { SetFile(value); } } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -518,7 +545,7 @@ private static object ImageUnloadEvtKey = new object(); /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String Key { get { return GetKey(); } - set { SetKey( value); } + set { SetKey(value); } } /// Get the load state of the object. /// (Since EFL 1.22) @@ -531,7 +558,7 @@ private static object ImageUnloadEvtKey = new object(); /// the hex color code. public System.String ColorCode { get { return GetColorCode(); } - set { SetColorCode( value); } + set { SetColorCode(value); } } /// Whether to use high-quality image scaling algorithm for this image. /// When enabled, a higher quality image scaling algorithm is used when scaling images to sizes other than the source image's original one. This gives better results but is more computationally expensive. @@ -540,13 +567,13 @@ private static object ImageUnloadEvtKey = new object(); /// Whether to use smooth scale or not. public bool SmoothScale { get { return GetSmoothScale(); } - set { SetSmoothScale( value); } + set { SetSmoothScale(value); } } /// Control how the image is scaled. /// Image scale type public Efl.Gfx.ImageScaleType ScaleType { get { return GetScaleType(); } - set { SetScaleType( value); } + set { SetScaleType(value); } } /// The native width/height ratio of the image. /// The image's ratio. @@ -560,7 +587,7 @@ private static object ImageUnloadEvtKey = new object(); /// The scale factor. public double BorderScale { get { return GetBorderScale(); } - set { SetBorderScale( value); } + set { SetBorderScale(value); } } /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. /// This function sets how the center part of the image object's source image is to be drawn, which must be one of the values in . By center we mean the complementary part of that defined by . This is very useful for making frames and decorations. You would most probably also be using a filled image (as in ) to use as a frame. @@ -569,7 +596,7 @@ private static object ImageUnloadEvtKey = new object(); /// Fill mode of the center region. public Efl.Gfx.BorderFillMode BorderCenterFill { get { return GetBorderCenterFill(); } - set { SetBorderCenterFill( value); } + set { SetBorderCenterFill(value); } } /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. @@ -584,14 +611,14 @@ private static object ImageUnloadEvtKey = new object(); /// Dynamic or static content hint, see public Efl.Gfx.ImageContentHint ContentHint { get { return GetContentHint(); } - set { SetContentHint( value); } + set { SetContentHint(value); } } /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see public Efl.Gfx.ImageScaleHint ScaleHint { get { return GetScaleHint(); } - set { SetScaleHint( value); } + set { SetScaleHint(value); } } /// Gets the (last) file loading error for a given object. /// The load error code. @@ -602,880 +629,1402 @@ private static object ImageUnloadEvtKey = new object(); { return Efl.Ui.WidgetPartBg.efl_ui_widget_part_bg_class_get(); } -} -public class WidgetPartBgNativeInherit : Efl.Ui.WidgetPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_file_mmap_get_static_delegate == null) - efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate)}); - if (efl_file_mmap_set_static_delegate == null) - efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate)}); - if (efl_file_get_static_delegate == null) - efl_file_get_static_delegate = new efl_file_get_delegate(file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate)}); - if (efl_file_set_static_delegate == null) - efl_file_set_static_delegate = new efl_file_set_delegate(file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate)}); - if (efl_file_key_get_static_delegate == null) - efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate)}); - if (efl_file_key_set_static_delegate == null) - efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate)}); - if (efl_file_loaded_get_static_delegate == null) - efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate)}); - if (efl_file_load_static_delegate == null) - efl_file_load_static_delegate = new efl_file_load_delegate(load); - if (methods.FirstOrDefault(m => m.Name == "Load") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate)}); - if (efl_file_unload_static_delegate == null) - efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); - if (methods.FirstOrDefault(m => m.Name == "Unload") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate)}); - if (efl_gfx_color_get_static_delegate == null) - efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); - if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate)}); - if (efl_gfx_color_set_static_delegate == null) - efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); - if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate)}); - if (efl_gfx_color_code_get_static_delegate == null) - efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate)}); - if (efl_gfx_color_code_set_static_delegate == null) - efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); - if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate)}); - if (efl_gfx_image_smooth_scale_get_static_delegate == null) - efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetSmoothScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_smooth_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_get_static_delegate)}); - if (efl_gfx_image_smooth_scale_set_static_delegate == null) - efl_gfx_image_smooth_scale_set_static_delegate = new efl_gfx_image_smooth_scale_set_delegate(smooth_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetSmoothScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_smooth_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_set_static_delegate)}); - if (efl_gfx_image_scale_type_get_static_delegate == null) - efl_gfx_image_scale_type_get_static_delegate = new efl_gfx_image_scale_type_get_delegate(scale_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetScaleType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_get_static_delegate)}); - if (efl_gfx_image_scale_type_set_static_delegate == null) - efl_gfx_image_scale_type_set_static_delegate = new efl_gfx_image_scale_type_set_delegate(scale_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetScaleType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate)}); - if (efl_gfx_image_ratio_get_static_delegate == null) - efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); - if (methods.FirstOrDefault(m => m.Name == "GetRatio") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_ratio_get_static_delegate)}); - if (efl_gfx_image_border_get_static_delegate == null) - efl_gfx_image_border_get_static_delegate = new efl_gfx_image_border_get_delegate(border_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_get_static_delegate)}); - if (efl_gfx_image_border_set_static_delegate == null) - efl_gfx_image_border_set_static_delegate = new efl_gfx_image_border_set_delegate(border_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorder") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_set_static_delegate)}); - if (efl_gfx_image_border_scale_get_static_delegate == null) - efl_gfx_image_border_scale_get_static_delegate = new efl_gfx_image_border_scale_get_delegate(border_scale_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_get_static_delegate)}); - if (efl_gfx_image_border_scale_set_static_delegate == null) - efl_gfx_image_border_scale_set_static_delegate = new efl_gfx_image_border_scale_set_delegate(border_scale_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorderScale") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_set_static_delegate)}); - if (efl_gfx_image_border_center_fill_get_static_delegate == null) - efl_gfx_image_border_center_fill_get_static_delegate = new efl_gfx_image_border_center_fill_get_delegate(border_center_fill_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderCenterFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_center_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_get_static_delegate)}); - if (efl_gfx_image_border_center_fill_set_static_delegate == null) - efl_gfx_image_border_center_fill_set_static_delegate = new efl_gfx_image_border_center_fill_set_delegate(border_center_fill_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorderCenterFill") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_border_center_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_set_static_delegate)}); - if (efl_gfx_image_size_get_static_delegate == null) - efl_gfx_image_size_get_static_delegate = new efl_gfx_image_size_get_delegate(image_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_size_get_static_delegate)}); - if (efl_gfx_image_content_hint_get_static_delegate == null) - efl_gfx_image_content_hint_get_static_delegate = new efl_gfx_image_content_hint_get_delegate(content_hint_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_content_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_get_static_delegate)}); - if (efl_gfx_image_content_hint_set_static_delegate == null) - efl_gfx_image_content_hint_set_static_delegate = new efl_gfx_image_content_hint_set_delegate(content_hint_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_content_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_set_static_delegate)}); - if (efl_gfx_image_scale_hint_get_static_delegate == null) - efl_gfx_image_scale_hint_get_static_delegate = new efl_gfx_image_scale_hint_get_delegate(scale_hint_get); - if (methods.FirstOrDefault(m => m.Name == "GetScaleHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_get_static_delegate)}); - if (efl_gfx_image_scale_hint_set_static_delegate == null) - efl_gfx_image_scale_hint_set_static_delegate = new efl_gfx_image_scale_hint_set_delegate(scale_hint_set); - if (methods.FirstOrDefault(m => m.Name == "SetScaleHint") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_scale_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_set_static_delegate)}); - if (efl_gfx_image_load_error_get_static_delegate == null) - efl_gfx_image_load_error_get_static_delegate = new efl_gfx_image_load_error_get_delegate(image_load_error_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageLoadError") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_image_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_error_get_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.WidgetPartBg.efl_ui_widget_part_bg_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.WidgetPart.NativeMethods { - return Efl.Ui.WidgetPartBg.efl_ui_widget_part_bg_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_file_mmap_get_static_delegate == null) + { + efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) }); + } - private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_mmap_set_static_delegate == null) + { + efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) }); + } - public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_get"); - private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_mmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.File _ret_var = default(Eina.File); - try { - _ret_var = ((WidgetPartBg)wrapper).GetMmap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_get_static_delegate == null) + { + efl_file_get_static_delegate = new efl_file_get_delegate(file_get); } - return _ret_var; - } else { - return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) }); + } - private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + if (efl_file_set_static_delegate == null) + { + efl_file_set_static_delegate = new efl_file_set_delegate(file_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) }); + } - public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); - public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_set"); - private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) - { - Eina.Log.Debug("function efl_file_mmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((WidgetPartBg)wrapper).SetMmap( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_key_get_static_delegate == null) + { + efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); } - return _ret_var; - } else { - return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_file_key_set_static_delegate == null) + { + efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_get"); - private static System.String file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((WidgetPartBg)wrapper).GetFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_loaded_get_static_delegate == null) + { + efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); } - return _ret_var; - } else { - return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_get_delegate efl_file_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) }); + } - private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + if (efl_file_load_static_delegate == null) + { + efl_file_load_static_delegate = new efl_file_load_delegate(load); + } + if (methods.FirstOrDefault(m => m.Name == "Load") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) }); + } - public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_set"); - private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) - { - Eina.Log.Debug("function efl_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((WidgetPartBg)wrapper).SetFile( file); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_file_unload_static_delegate == null) + { + efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); } - return _ret_var; - } else { - return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); - } - } - private static efl_file_set_delegate efl_file_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "Unload") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_color_get_static_delegate == null) + { + efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((WidgetPartBg)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_color_set_static_delegate == null) + { + efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); } - return _ret_var; - } else { - return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate) }); + } - private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + if (efl_gfx_color_code_get_static_delegate == null) + { + efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate) }); + } - public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_file_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartBg)wrapper).SetKey( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); - } - } - private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + if (efl_gfx_color_code_set_static_delegate == null) + { + efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_smooth_scale_get_static_delegate == null) + { + efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_loaded_get"); - private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_loaded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((WidgetPartBg)wrapper).GetLoaded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_smooth_scale_set_static_delegate == null) + { + efl_gfx_image_smooth_scale_set_static_delegate = new efl_gfx_image_smooth_scale_set_delegate(smooth_scale_set); } - return _ret_var; - } else { - return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_set_static_delegate) }); + } - private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_scale_type_get_static_delegate == null) + { + efl_gfx_image_scale_type_get_static_delegate = new efl_gfx_image_scale_type_get_delegate(scale_type_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_get_static_delegate) }); + } - public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_load"); - private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_load was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((WidgetPartBg)wrapper).Load(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_scale_type_set_static_delegate == null) + { + efl_gfx_image_scale_type_set_static_delegate = new efl_gfx_image_scale_type_set_delegate(scale_type_set); } - return _ret_var; - } else { - return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_load_delegate efl_file_load_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate) }); + } - private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_ratio_get_static_delegate == null) + { + efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRatio") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_ratio_get_static_delegate) }); + } - public delegate void efl_file_unload_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_unload"); - private static void unload(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_unload was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartBg)wrapper).Unload(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_unload_delegate efl_file_unload_static_delegate; + if (efl_gfx_image_border_get_static_delegate == null) + { + efl_gfx_image_border_get_static_delegate = new efl_gfx_image_border_get_delegate(border_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_get_static_delegate) }); + } - private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + if (efl_gfx_image_border_set_static_delegate == null) + { + efl_gfx_image_border_set_static_delegate = new efl_gfx_image_border_set_delegate(border_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_set_static_delegate) }); + } - public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_get"); - private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); - try { - ((WidgetPartBg)wrapper).GetColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; + if (efl_gfx_image_border_scale_get_static_delegate == null) + { + efl_gfx_image_border_scale_get_static_delegate = new efl_gfx_image_border_scale_get_delegate(border_scale_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_get_static_delegate) }); + } - private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + if (efl_gfx_image_border_scale_set_static_delegate == null) + { + efl_gfx_image_border_scale_set_static_delegate = new efl_gfx_image_border_scale_set_delegate(border_scale_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_set_static_delegate) }); + } - public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_set"); - private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartBg)wrapper).SetColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; + if (efl_gfx_image_border_center_fill_get_static_delegate == null) + { + efl_gfx_image_border_center_fill_get_static_delegate = new efl_gfx_image_border_center_fill_get_delegate(border_center_fill_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_border_center_fill_set_static_delegate == null) + { + efl_gfx_image_border_center_fill_set_static_delegate = new efl_gfx_image_border_center_fill_set_delegate(border_center_fill_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_get"); - private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_color_code_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((WidgetPartBg)wrapper).GetColorCode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_size_get_static_delegate == null) + { + efl_gfx_image_size_get_static_delegate = new efl_gfx_image_size_get_delegate(image_size_get); } - return _ret_var; - } else { - return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetImageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_size_get_static_delegate) }); + } - private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + if (efl_gfx_image_content_hint_get_static_delegate == null) + { + efl_gfx_image_content_hint_get_static_delegate = new efl_gfx_image_content_hint_get_delegate(content_hint_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_get_static_delegate) }); + } - public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_set"); - private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) - { - Eina.Log.Debug("function efl_gfx_color_code_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartBg)wrapper).SetColorCode( colorcode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); - } - } - private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; + if (efl_gfx_image_content_hint_set_static_delegate == null) + { + efl_gfx_image_content_hint_set_static_delegate = new efl_gfx_image_content_hint_set_delegate(content_hint_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_image_scale_hint_get_static_delegate == null) + { + efl_gfx_image_scale_hint_get_static_delegate = new efl_gfx_image_scale_hint_get_delegate(scale_hint_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_smooth_scale_get"); - private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((WidgetPartBg)wrapper).GetSmoothScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_image_scale_hint_set_static_delegate == null) + { + efl_gfx_image_scale_hint_set_static_delegate = new efl_gfx_image_scale_hint_set_delegate(scale_hint_set); } - return _ret_var; - } else { - return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_set_static_delegate) }); + } - private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + if (efl_gfx_image_load_error_get_static_delegate == null) + { + efl_gfx_image_load_error_get_static_delegate = new efl_gfx_image_load_error_get_delegate(image_load_error_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetImageLoadError") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_error_get_static_delegate) }); + } - public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_smooth_scale_set"); - private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) - { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartBg)wrapper).SetSmoothScale( smooth_scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.WidgetPartBg.efl_ui_widget_part_bg_class_get(); } - } - private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; - - private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_get"); + + private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_mmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.File _ret_var = default(Eina.File); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetMmap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_type_get"); - private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); - try { - _ret_var = ((WidgetPartBg)wrapper).GetScaleType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; + private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + + + private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + + + public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_set"); + + private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) + { + Eina.Log.Debug("function efl_file_mmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((WidgetPartBg)wrapper).SetMmap(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); - + return _ret_var; - public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_type_set"); - private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) - { - Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartBg)wrapper).SetScaleType( scale_type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); + } + else + { + return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } } - } - private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; - - private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_get"); + + private static System.String file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_ratio_get"); - private static double ratio_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((WidgetPartBg)wrapper).GetRatio(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + private static efl_file_get_delegate efl_file_get_static_delegate; + + + private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + + public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_set"); + + private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) + { + Eina.Log.Debug("function efl_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((WidgetPartBg)wrapper).SetFile(file); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + return _ret_var; + } + else + { + return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); + } + } - public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_get"); - private static void border_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) - { - Eina.Log.Debug("function efl_gfx_image_border_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(int); r = default(int); t = default(int); b = default(int); - try { - ((WidgetPartBg)wrapper).GetBorder( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + private static efl_file_set_delegate efl_file_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_get"); + + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_border_get_delegate efl_gfx_image_border_get_static_delegate; + private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + + + private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_file_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartBg)wrapper).SetKey(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } + } - private delegate void efl_gfx_image_border_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_loaded_get"); + + private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_loaded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetLoaded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_image_border_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_set"); - private static void border_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) - { - Eina.Log.Debug("function efl_gfx_image_border_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartBg)wrapper).SetBorder( l, r, t, b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); + } + else + { + return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_border_set_delegate efl_gfx_image_border_set_static_delegate; + private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + + + private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_load"); + + private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_load was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((WidgetPartBg)wrapper).Load(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate double efl_gfx_image_border_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate double efl_gfx_image_border_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_scale_get"); - private static double border_scale_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_border_scale_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((WidgetPartBg)wrapper).GetBorderScale(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_file_load_delegate efl_file_load_static_delegate; + + + private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_file_unload_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_unload"); + + private static void unload(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_unload was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartBg)wrapper).Unload(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_unload_delegate efl_file_unload_static_delegate; + + + private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + + + public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_get"); + + private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); + try + { + ((WidgetPartBg)wrapper).GetColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); } - return _ret_var; - } else { - return efl_gfx_image_border_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_gfx_image_border_scale_get_delegate efl_gfx_image_border_scale_get_static_delegate; + private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; + + + private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + + + public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_set"); + + private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartBg)wrapper).SetColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } - private delegate void efl_gfx_image_border_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_get"); + + private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_color_code_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetColorCode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_image_border_scale_set_api_delegate(System.IntPtr obj, double scale); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_scale_set"); - private static void border_scale_set(System.IntPtr obj, System.IntPtr pd, double scale) - { - Eina.Log.Debug("function efl_gfx_image_border_scale_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartBg)wrapper).SetBorderScale( scale); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + } + else + { + return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_border_scale_set_delegate efl_gfx_image_border_scale_set_static_delegate; + private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; + + + private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + + public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_set"); + + private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) + { + Eina.Log.Debug("function efl_gfx_color_code_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartBg)wrapper).SetColorCode(colorcode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); + } + } - private delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_get"); + + private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetSmoothScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_center_fill_get"); - private static Efl.Gfx.BorderFillMode border_center_fill_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_border_center_fill_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.BorderFillMode _ret_var = default(Efl.Gfx.BorderFillMode); - try { - _ret_var = ((WidgetPartBg)wrapper).GetBorderCenterFill(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_border_center_fill_get_delegate efl_gfx_image_border_center_fill_get_static_delegate; + private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; + + + private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + + public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_set"); + + private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartBg)wrapper).SetSmoothScale(smooth_scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_border_center_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill); + + } + else + { + efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); + } + } + private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; + + + private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_get"); + + private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetScaleType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_image_border_center_fill_set_api_delegate(System.IntPtr obj, Efl.Gfx.BorderFillMode fill); - public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_border_center_fill_set"); - private static void border_center_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill) - { - Eina.Log.Debug("function efl_gfx_image_border_center_fill_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartBg)wrapper).SetBorderCenterFill( fill); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); + return _ret_var; + + } + else + { + return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_border_center_fill_set_delegate efl_gfx_image_border_center_fill_set_static_delegate; + private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; + + + private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + + + public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_set"); + + private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartBg)wrapper).SetScaleType(scale_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + } + else + { + efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); + } + } + private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + + + private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_ratio_get"); + + private static double ratio_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetRatio(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_size_get"); - private static Eina.Size2D.NativeStruct image_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((WidgetPartBg)wrapper).GetImageSize(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_size_get_delegate efl_gfx_image_size_get_static_delegate; + private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + + + private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + + public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_get"); + + private static void border_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_image_border_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((WidgetPartBg)wrapper).GetBorder(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + } + } - private delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_border_get_delegate efl_gfx_image_border_get_static_delegate; + + + private delegate void efl_gfx_image_border_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + + + public delegate void efl_gfx_image_border_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_set"); + + private static void border_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) + { + Eina.Log.Debug("function efl_gfx_image_border_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartBg)wrapper).SetBorder(l, r, t, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); + } + } + private static efl_gfx_image_border_set_delegate efl_gfx_image_border_set_static_delegate; + + + private delegate double efl_gfx_image_border_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_border_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_get"); + + private static double border_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetBorderScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_content_hint_get"); - private static Efl.Gfx.ImageContentHint content_hint_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_content_hint_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageContentHint _ret_var = default(Efl.Gfx.ImageContentHint); - try { - _ret_var = ((WidgetPartBg)wrapper).GetContentHint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_image_content_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_border_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_content_hint_get_delegate efl_gfx_image_content_hint_get_static_delegate; + private static efl_gfx_image_border_scale_get_delegate efl_gfx_image_border_scale_get_static_delegate; + + + private delegate void efl_gfx_image_border_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + + public delegate void efl_gfx_image_border_scale_set_api_delegate(System.IntPtr obj, double scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_set"); + + private static void border_scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartBg)wrapper).SetBorderScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_content_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint); + + } + else + { + efl_gfx_image_border_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + } + } + private static efl_gfx_image_border_scale_set_delegate efl_gfx_image_border_scale_set_static_delegate; + + + private delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_get"); + + private static Efl.Gfx.BorderFillMode border_center_fill_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.BorderFillMode _ret_var = default(Efl.Gfx.BorderFillMode); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetBorderCenterFill(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_image_content_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageContentHint hint); - public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_content_hint_set"); - private static void content_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint) - { - Eina.Log.Debug("function efl_gfx_image_content_hint_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartBg)wrapper).SetContentHint( hint); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_content_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + return _ret_var; + + } + else + { + return efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_content_hint_set_delegate efl_gfx_image_content_hint_set_static_delegate; + private static efl_gfx_image_border_center_fill_get_delegate efl_gfx_image_border_center_fill_get_static_delegate; + + + private delegate void efl_gfx_image_border_center_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill); + + + public delegate void efl_gfx_image_border_center_fill_set_api_delegate(System.IntPtr obj, Efl.Gfx.BorderFillMode fill); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_set"); + + private static void border_center_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartBg)wrapper).SetBorderCenterFill(fill); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); + } + } - private delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_image_border_center_fill_set_delegate efl_gfx_image_border_center_fill_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_size_get"); + + private static Eina.Size2D.NativeStruct image_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetImageSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_hint_get"); - private static Efl.Gfx.ImageScaleHint scale_hint_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_scale_hint_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.ImageScaleHint _ret_var = default(Efl.Gfx.ImageScaleHint); - try { - _ret_var = ((WidgetPartBg)wrapper).GetScaleHint(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_gfx_image_scale_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_gfx_image_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_scale_hint_get_delegate efl_gfx_image_scale_hint_get_static_delegate; + private static efl_gfx_image_size_get_delegate efl_gfx_image_size_get_static_delegate; + + + private delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_get"); + + private static Efl.Gfx.ImageContentHint content_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageContentHint _ret_var = default(Efl.Gfx.ImageContentHint); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetContentHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_image_scale_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint); + return _ret_var; + } + else + { + return efl_gfx_image_content_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_image_scale_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleHint hint); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_scale_hint_set"); - private static void scale_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint) - { - Eina.Log.Debug("function efl_gfx_image_scale_hint_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartBg)wrapper).SetScaleHint( hint); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_image_scale_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + private static efl_gfx_image_content_hint_get_delegate efl_gfx_image_content_hint_get_static_delegate; + + + private delegate void efl_gfx_image_content_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint); + + + public delegate void efl_gfx_image_content_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageContentHint hint); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_set"); + + private static void content_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartBg)wrapper).SetContentHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_content_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } } - } - private static efl_gfx_image_scale_hint_set_delegate efl_gfx_image_scale_hint_set_static_delegate; + private static efl_gfx_image_content_hint_set_delegate efl_gfx_image_content_hint_set_static_delegate; + + + private delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_get"); + + private static Efl.Gfx.ImageScaleHint scale_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.ImageScaleHint _ret_var = default(Efl.Gfx.ImageScaleHint); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetScaleHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Error efl_gfx_image_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_gfx_image_scale_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Error efl_gfx_image_load_error_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_load_error_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_image_load_error_get"); - private static Eina.Error image_load_error_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_image_load_error_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((WidgetPartBg)wrapper).GetImageLoadError(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_image_scale_hint_get_delegate efl_gfx_image_scale_hint_get_static_delegate; + + + private delegate void efl_gfx_image_scale_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint); + + + public delegate void efl_gfx_image_scale_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleHint hint); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_set"); + + private static void scale_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartBg)wrapper).SetScaleHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + efl_gfx_image_scale_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } + } + + private static efl_gfx_image_scale_hint_set_delegate efl_gfx_image_scale_hint_set_static_delegate; + + + private delegate Eina.Error efl_gfx_image_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_gfx_image_load_error_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_error_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_error_get"); + + private static Eina.Error image_load_error_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_error_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((WidgetPartBg)wrapper).GetImageLoadError(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_gfx_image_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_image_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_image_load_error_get_delegate efl_gfx_image_load_error_get_static_delegate; + + private static efl_gfx_image_load_error_get_delegate efl_gfx_image_load_error_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_shadow.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_shadow.eo.cs index 15a4d65..e51e97b 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_shadow.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_shadow.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// A drop-shadow or glow effect around any widget. /// A simple drop-shadow effect can be applied to any widget by setting the color and blur radius on this part. /// @@ -13,90 +17,106 @@ namespace Efl { namespace Ui { /// As another example, here's a black drop-shadow: obj.shadow().color_set(0, 0, 0, 255); obj.shadow().grow_set(1); obj.shadow().radius_set(5, 5); obj.shadow().offset_set(5, 5); /// /// It is also possible to manually specify which program to use. -[WidgetPartShadowNativeInherit] +[Efl.Ui.WidgetPartShadow.NativeMethods] public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur,Efl.Gfx.IColor,Efl.Gfx.IFilter { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (WidgetPartShadow)) - return Efl.Ui.WidgetPartShadowNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(WidgetPartShadow)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_widget_part_shadow_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public WidgetPartShadow(Efl.Object parent= null - ) : - base(efl_ui_widget_part_shadow_class_get(), typeof(WidgetPartShadow), parent) + ) : base(efl_ui_widget_part_shadow_class_get(), typeof(WidgetPartShadow), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected WidgetPartShadow(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected WidgetPartShadow(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected WidgetPartShadow(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// The blur radius in pixels. /// The horizontal blur radius. /// The vertical blur radius. - /// - virtual public void GetRadius( out double rx, out double ry) { - Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_radius_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out rx, out ry); + virtual public void GetRadius(out double rx, out double ry) { + Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_radius_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out rx, out ry); Eina.Error.RaiseIfUnhandledException(); } /// The blur radius in pixels. /// The horizontal blur radius. /// The vertical blur radius. - /// - virtual public void SetRadius( double rx, double ry) { - Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_radius_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), rx, ry); + virtual public void SetRadius(double rx, double ry) { + Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_radius_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),rx, ry); Eina.Error.RaiseIfUnhandledException(); } /// An offset relative to the original pixels. /// This property allows for drop shadow effects. /// Horizontal offset in pixels. /// Vertical offset in pixels. - /// - virtual public void GetOffset( out double ox, out double oy) { - Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_offset_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out ox, out oy); + virtual public void GetOffset(out double ox, out double oy) { + Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_offset_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out ox, out oy); Eina.Error.RaiseIfUnhandledException(); } /// An offset relative to the original pixels. /// This property allows for drop shadow effects. /// Horizontal offset in pixels. /// Vertical offset in pixels. - /// - virtual public void SetOffset( double ox, double oy) { - Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_offset_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ox, oy); + virtual public void SetOffset(double ox, double oy) { + Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_offset_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ox, oy); Eina.Error.RaiseIfUnhandledException(); } /// How much the original image should be "grown" before blurring. @@ -105,7 +125,7 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// This is can be used efficiently to create glow effects. /// How much to grow the original pixel data. virtual public double GetGrow() { - var _ret_var = Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_grow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_grow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -114,9 +134,8 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// /// This is can be used efficiently to create glow effects. /// How much to grow the original pixel data. - /// - virtual public void SetGrow( double radius) { - Efl.Gfx.IBlurNativeInherit.efl_gfx_blur_grow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), radius); + virtual public void SetGrow(double radius) { + Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_grow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),radius); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the general/main color of the given Evas object. @@ -128,13 +147,8 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// /// Use null pointers on the components you're not interested in: they'll be ignored by the function. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - virtual public void GetColor( out int r, out int g, out int b, out int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetColor(out int r, out int g, out int b, out int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Sets the general/main color of the given Evas object to the given one. @@ -142,37 +156,30 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// /// These color values are expected to be premultiplied by alpha. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - virtual public void SetColor( int r, int g, int b, int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetColor(int r, int g, int b, int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. virtual public System.String GetColorCode() { - var _ret_var = Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the color of given Evas object to the given hex color code(#RRGGBBAA). e.g. efl_gfx_color_code_set(obj, "#FFCCAACC"); /// (Since EFL 1.22) /// the hex color code. - /// - virtual public void SetColorCode( System.String colorcode) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), colorcode); + virtual public void SetColorCode(System.String colorcode) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),colorcode); Eina.Error.RaiseIfUnhandledException(); } /// Gets the code of the filter program set on this object. May be null. /// The Lua program source code. /// An optional name for this filter. - /// - virtual public void GetFilterProgram( out System.String code, out System.String name) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_program_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out code, out name); + virtual public void GetFilterProgram(out System.String code, out System.String name) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_program_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out code, out name); Eina.Error.RaiseIfUnhandledException(); } /// Set a graphical filter program on this object. @@ -183,9 +190,8 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// Set to null to disable filtering. /// The Lua program source code. /// An optional name for this filter. - /// - virtual public void SetFilterProgram( System.String code, System.String name) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_program_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), code, name); + virtual public void SetFilterProgram(System.String code, System.String name) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_program_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),code, name); Eina.Error.RaiseIfUnhandledException(); } /// Set the current state of the filter. @@ -197,9 +203,8 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// Next filter state, optional /// Next value, optional /// Position, optional - /// - virtual public void GetFilterState( out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_state_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out cur_state, out cur_val, out next_state, out next_val, out pos); + virtual public void GetFilterState(out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_state_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out cur_state, out cur_val, out next_state, out next_val, out pos); Eina.Error.RaiseIfUnhandledException(); } /// Set the current state of the filter. @@ -211,9 +216,8 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// Next filter state, optional /// Next value, optional /// Position, optional - /// - virtual public void SetFilterState( System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_state_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), cur_state, cur_val, next_state, next_val, pos); + virtual public void SetFilterState(System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_state_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),cur_state, cur_val, next_state, next_val, pos); Eina.Error.RaiseIfUnhandledException(); } /// Gets the padding required to apply this filter. @@ -221,17 +225,16 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// Padding on the right /// Padding on the top /// Padding on the bottom - /// - virtual public void GetFilterPadding( out int l, out int r, out int t, out int b) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out l, out r, out t, out b); + virtual public void GetFilterPadding(out int l, out int r, out int t, out int b) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_padding_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out l, out r, out t, out b); Eina.Error.RaiseIfUnhandledException(); } /// Bind an object to use as a mask or texture in a filter program. /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered). /// Buffer name as used in the program. /// Object to use as a source of pixels. - virtual public Efl.Gfx.IEntity GetFilterSource( System.String name) { - var _ret_var = Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Efl.Gfx.IEntity GetFilterSource(System.String name) { + var _ret_var = Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -239,9 +242,8 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered). /// Buffer name as used in the program. /// Object to use as a source of pixels. - /// - virtual public void SetFilterSource( System.String name, Efl.Gfx.IEntity source) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, source); + virtual public void SetFilterSource(System.String name, Efl.Gfx.IEntity source) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, source); Eina.Error.RaiseIfUnhandledException(); } /// Extra data used by the filter program. @@ -251,9 +253,8 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// Name of the global variable /// String value to use as data /// If true, execute 'name = value' - /// - virtual public void GetFilterData( System.String name, out System.String value, out bool execute) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, out value, out execute); + virtual public void GetFilterData(System.String name, out System.String value, out bool execute) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, out value, out execute); Eina.Error.RaiseIfUnhandledException(); } /// Extra data used by the filter program. @@ -263,9 +264,8 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// Name of the global variable /// String value to use as data /// If true, execute 'name = value' - /// - virtual public void SetFilterData( System.String name, System.String value, bool execute) { - Efl.Gfx.IFilterNativeInherit.efl_gfx_filter_data_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, value, execute); + virtual public void SetFilterData(System.String name, System.String value, bool execute) { + Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, value, execute); Eina.Error.RaiseIfUnhandledException(); } /// How much the original image should be "grown" before blurring. @@ -275,581 +275,916 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.Gfx.IBlur /// How much to grow the original pixel data. public double Grow { get { return GetGrow(); } - set { SetGrow( value); } + set { SetGrow(value); } } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. public System.String ColorCode { get { return GetColorCode(); } - set { SetColorCode( value); } + set { SetColorCode(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.WidgetPartShadow.efl_ui_widget_part_shadow_class_get(); } -} -public class WidgetPartShadowNativeInherit : Efl.Ui.WidgetPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.WidgetPart.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_gfx_blur_radius_get_static_delegate == null) - efl_gfx_blur_radius_get_static_delegate = new efl_gfx_blur_radius_get_delegate(radius_get); - if (methods.FirstOrDefault(m => m.Name == "GetRadius") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_radius_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_radius_get_static_delegate)}); - if (efl_gfx_blur_radius_set_static_delegate == null) - efl_gfx_blur_radius_set_static_delegate = new efl_gfx_blur_radius_set_delegate(radius_set); - if (methods.FirstOrDefault(m => m.Name == "SetRadius") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_radius_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_radius_set_static_delegate)}); - if (efl_gfx_blur_offset_get_static_delegate == null) - efl_gfx_blur_offset_get_static_delegate = new efl_gfx_blur_offset_get_delegate(offset_get); - if (methods.FirstOrDefault(m => m.Name == "GetOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_offset_get_static_delegate)}); - if (efl_gfx_blur_offset_set_static_delegate == null) - efl_gfx_blur_offset_set_static_delegate = new efl_gfx_blur_offset_set_delegate(offset_set); - if (methods.FirstOrDefault(m => m.Name == "SetOffset") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_offset_set_static_delegate)}); - if (efl_gfx_blur_grow_get_static_delegate == null) - efl_gfx_blur_grow_get_static_delegate = new efl_gfx_blur_grow_get_delegate(grow_get); - if (methods.FirstOrDefault(m => m.Name == "GetGrow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_grow_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_grow_get_static_delegate)}); - if (efl_gfx_blur_grow_set_static_delegate == null) - efl_gfx_blur_grow_set_static_delegate = new efl_gfx_blur_grow_set_delegate(grow_set); - if (methods.FirstOrDefault(m => m.Name == "SetGrow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_blur_grow_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_grow_set_static_delegate)}); - if (efl_gfx_color_get_static_delegate == null) - efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); - if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate)}); - if (efl_gfx_color_set_static_delegate == null) - efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); - if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate)}); - if (efl_gfx_color_code_get_static_delegate == null) - efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate)}); - if (efl_gfx_color_code_set_static_delegate == null) - efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); - if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate)}); - if (efl_gfx_filter_program_get_static_delegate == null) - efl_gfx_filter_program_get_static_delegate = new efl_gfx_filter_program_get_delegate(filter_program_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterProgram") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_program_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_get_static_delegate)}); - if (efl_gfx_filter_program_set_static_delegate == null) - efl_gfx_filter_program_set_static_delegate = new efl_gfx_filter_program_set_delegate(filter_program_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterProgram") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_program_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_set_static_delegate)}); - if (efl_gfx_filter_state_get_static_delegate == null) - efl_gfx_filter_state_get_static_delegate = new efl_gfx_filter_state_get_delegate(filter_state_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_get_static_delegate)}); - if (efl_gfx_filter_state_set_static_delegate == null) - efl_gfx_filter_state_set_static_delegate = new efl_gfx_filter_state_set_delegate(filter_state_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterState") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_state_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_set_static_delegate)}); - if (efl_gfx_filter_padding_get_static_delegate == null) - efl_gfx_filter_padding_get_static_delegate = new efl_gfx_filter_padding_get_delegate(filter_padding_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterPadding") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_padding_get_static_delegate)}); - if (efl_gfx_filter_source_get_static_delegate == null) - efl_gfx_filter_source_get_static_delegate = new efl_gfx_filter_source_get_delegate(filter_source_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_get_static_delegate)}); - if (efl_gfx_filter_source_set_static_delegate == null) - efl_gfx_filter_source_set_static_delegate = new efl_gfx_filter_source_set_delegate(filter_source_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterSource") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_set_static_delegate)}); - if (efl_gfx_filter_data_get_static_delegate == null) - efl_gfx_filter_data_get_static_delegate = new efl_gfx_filter_data_get_delegate(filter_data_get); - if (methods.FirstOrDefault(m => m.Name == "GetFilterData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_get_static_delegate)}); - if (efl_gfx_filter_data_set_static_delegate == null) - efl_gfx_filter_data_set_static_delegate = new efl_gfx_filter_data_set_delegate(filter_data_set); - if (methods.FirstOrDefault(m => m.Name == "SetFilterData") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.WidgetPartShadow.efl_ui_widget_part_shadow_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.WidgetPartShadow.efl_ui_widget_part_shadow_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_gfx_blur_radius_get_static_delegate == null) + { + efl_gfx_blur_radius_get_static_delegate = new efl_gfx_blur_radius_get_delegate(radius_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetRadius") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_radius_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_radius_get_static_delegate) }); + } - private delegate void efl_gfx_blur_radius_get_delegate(System.IntPtr obj, System.IntPtr pd, out double rx, out double ry); + if (efl_gfx_blur_radius_set_static_delegate == null) + { + efl_gfx_blur_radius_set_static_delegate = new efl_gfx_blur_radius_set_delegate(radius_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetRadius") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_radius_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_radius_set_static_delegate) }); + } - public delegate void efl_gfx_blur_radius_get_api_delegate(System.IntPtr obj, out double rx, out double ry); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_radius_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_radius_get"); - private static void radius_get(System.IntPtr obj, System.IntPtr pd, out double rx, out double ry) - { - Eina.Log.Debug("function efl_gfx_blur_radius_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - rx = default(double); ry = default(double); - try { - ((WidgetPartShadow)wrapper).GetRadius( out rx, out ry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_blur_radius_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out rx, out ry); - } - } - private static efl_gfx_blur_radius_get_delegate efl_gfx_blur_radius_get_static_delegate; + if (efl_gfx_blur_offset_get_static_delegate == null) + { + efl_gfx_blur_offset_get_static_delegate = new efl_gfx_blur_offset_get_delegate(offset_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_offset_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_offset_get_static_delegate) }); + } - private delegate void efl_gfx_blur_radius_set_delegate(System.IntPtr obj, System.IntPtr pd, double rx, double ry); + if (efl_gfx_blur_offset_set_static_delegate == null) + { + efl_gfx_blur_offset_set_static_delegate = new efl_gfx_blur_offset_set_delegate(offset_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetOffset") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_offset_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_offset_set_static_delegate) }); + } - public delegate void efl_gfx_blur_radius_set_api_delegate(System.IntPtr obj, double rx, double ry); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_radius_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_radius_set"); - private static void radius_set(System.IntPtr obj, System.IntPtr pd, double rx, double ry) - { - Eina.Log.Debug("function efl_gfx_blur_radius_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartShadow)wrapper).SetRadius( rx, ry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_blur_radius_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rx, ry); - } - } - private static efl_gfx_blur_radius_set_delegate efl_gfx_blur_radius_set_static_delegate; + if (efl_gfx_blur_grow_get_static_delegate == null) + { + efl_gfx_blur_grow_get_static_delegate = new efl_gfx_blur_grow_get_delegate(grow_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetGrow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_grow_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_grow_get_static_delegate) }); + } - private delegate void efl_gfx_blur_offset_get_delegate(System.IntPtr obj, System.IntPtr pd, out double ox, out double oy); + if (efl_gfx_blur_grow_set_static_delegate == null) + { + efl_gfx_blur_grow_set_static_delegate = new efl_gfx_blur_grow_set_delegate(grow_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetGrow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_blur_grow_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_blur_grow_set_static_delegate) }); + } - public delegate void efl_gfx_blur_offset_get_api_delegate(System.IntPtr obj, out double ox, out double oy); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_offset_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_offset_get"); - private static void offset_get(System.IntPtr obj, System.IntPtr pd, out double ox, out double oy) - { - Eina.Log.Debug("function efl_gfx_blur_offset_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - ox = default(double); oy = default(double); - try { - ((WidgetPartShadow)wrapper).GetOffset( out ox, out oy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_blur_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out ox, out oy); - } - } - private static efl_gfx_blur_offset_get_delegate efl_gfx_blur_offset_get_static_delegate; + if (efl_gfx_color_get_static_delegate == null) + { + efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate) }); + } - private delegate void efl_gfx_blur_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, double ox, double oy); + if (efl_gfx_color_set_static_delegate == null) + { + efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate) }); + } - public delegate void efl_gfx_blur_offset_set_api_delegate(System.IntPtr obj, double ox, double oy); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_offset_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_offset_set"); - private static void offset_set(System.IntPtr obj, System.IntPtr pd, double ox, double oy) - { - Eina.Log.Debug("function efl_gfx_blur_offset_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartShadow)wrapper).SetOffset( ox, oy); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_blur_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ox, oy); - } - } - private static efl_gfx_blur_offset_set_delegate efl_gfx_blur_offset_set_static_delegate; + if (efl_gfx_color_code_get_static_delegate == null) + { + efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate) }); + } - private delegate double efl_gfx_blur_grow_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_color_code_set_static_delegate == null) + { + efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate) }); + } - public delegate double efl_gfx_blur_grow_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_grow_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_grow_get"); - private static double grow_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_blur_grow_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((WidgetPartShadow)wrapper).GetGrow(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_filter_program_get_static_delegate == null) + { + efl_gfx_filter_program_get_static_delegate = new efl_gfx_filter_program_get_delegate(filter_program_get); } - return _ret_var; - } else { - return efl_gfx_blur_grow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_gfx_blur_grow_get_delegate efl_gfx_blur_grow_get_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFilterProgram") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_program_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_get_static_delegate) }); + } - private delegate void efl_gfx_blur_grow_set_delegate(System.IntPtr obj, System.IntPtr pd, double radius); + if (efl_gfx_filter_program_set_static_delegate == null) + { + efl_gfx_filter_program_set_static_delegate = new efl_gfx_filter_program_set_delegate(filter_program_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFilterProgram") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_program_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_set_static_delegate) }); + } - public delegate void efl_gfx_blur_grow_set_api_delegate(System.IntPtr obj, double radius); - public static Efl.Eo.FunctionWrapper efl_gfx_blur_grow_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_blur_grow_set"); - private static void grow_set(System.IntPtr obj, System.IntPtr pd, double radius) - { - Eina.Log.Debug("function efl_gfx_blur_grow_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartShadow)wrapper).SetGrow( radius); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_blur_grow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), radius); - } - } - private static efl_gfx_blur_grow_set_delegate efl_gfx_blur_grow_set_static_delegate; + if (efl_gfx_filter_state_get_static_delegate == null) + { + efl_gfx_filter_state_get_static_delegate = new efl_gfx_filter_state_get_delegate(filter_state_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFilterState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_get_static_delegate) }); + } - private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + if (efl_gfx_filter_state_set_static_delegate == null) + { + efl_gfx_filter_state_set_static_delegate = new efl_gfx_filter_state_set_delegate(filter_state_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFilterState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_state_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_set_static_delegate) }); + } - public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_get"); - private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); - try { - ((WidgetPartShadow)wrapper).GetColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); - } - } - private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; + if (efl_gfx_filter_padding_get_static_delegate == null) + { + efl_gfx_filter_padding_get_static_delegate = new efl_gfx_filter_padding_get_delegate(filter_padding_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFilterPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_padding_get_static_delegate) }); + } - private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + if (efl_gfx_filter_source_get_static_delegate == null) + { + efl_gfx_filter_source_get_static_delegate = new efl_gfx_filter_source_get_delegate(filter_source_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFilterSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_get_static_delegate) }); + } - public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_set"); - private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartShadow)wrapper).SetColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); - } - } - private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; + if (efl_gfx_filter_source_set_static_delegate == null) + { + efl_gfx_filter_source_set_static_delegate = new efl_gfx_filter_source_set_delegate(filter_source_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetFilterSource") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_gfx_filter_data_get_static_delegate == null) + { + efl_gfx_filter_data_get_static_delegate = new efl_gfx_filter_data_get_delegate(filter_data_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetFilterData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_get"); - private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_color_code_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((WidgetPartShadow)wrapper).GetColorCode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_gfx_filter_data_set_static_delegate == null) + { + efl_gfx_filter_data_set_static_delegate = new efl_gfx_filter_data_set_delegate(filter_data_set); } - return _ret_var; - } else { - return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (methods.FirstOrDefault(m => m.Name == "SetFilterData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.WidgetPartShadow.efl_ui_widget_part_shadow_class_get(); } - } - private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void efl_gfx_blur_radius_get_delegate(System.IntPtr obj, System.IntPtr pd, out double rx, out double ry); + + + public delegate void efl_gfx_blur_radius_get_api_delegate(System.IntPtr obj, out double rx, out double ry); + + public static Efl.Eo.FunctionWrapper efl_gfx_blur_radius_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_radius_get"); + + private static void radius_get(System.IntPtr obj, System.IntPtr pd, out double rx, out double ry) + { + Eina.Log.Debug("function efl_gfx_blur_radius_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + rx = default(double); ry = default(double); + try + { + ((WidgetPartShadow)wrapper).GetRadius(out rx, out ry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_blur_radius_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out rx, out ry); + } + } - private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + private static efl_gfx_blur_radius_get_delegate efl_gfx_blur_radius_get_static_delegate; + + + private delegate void efl_gfx_blur_radius_set_delegate(System.IntPtr obj, System.IntPtr pd, double rx, double ry); + + + public delegate void efl_gfx_blur_radius_set_api_delegate(System.IntPtr obj, double rx, double ry); + + public static Efl.Eo.FunctionWrapper efl_gfx_blur_radius_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_radius_set"); + + private static void radius_set(System.IntPtr obj, System.IntPtr pd, double rx, double ry) + { + Eina.Log.Debug("function efl_gfx_blur_radius_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartShadow)wrapper).SetRadius(rx, ry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_blur_radius_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rx, ry); + } + } + private static efl_gfx_blur_radius_set_delegate efl_gfx_blur_radius_set_static_delegate; + + + private delegate void efl_gfx_blur_offset_get_delegate(System.IntPtr obj, System.IntPtr pd, out double ox, out double oy); + + + public delegate void efl_gfx_blur_offset_get_api_delegate(System.IntPtr obj, out double ox, out double oy); + + public static Efl.Eo.FunctionWrapper efl_gfx_blur_offset_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_offset_get"); + + private static void offset_get(System.IntPtr obj, System.IntPtr pd, out double ox, out double oy) + { + Eina.Log.Debug("function efl_gfx_blur_offset_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + ox = default(double); oy = default(double); + try + { + ((WidgetPartShadow)wrapper).GetOffset(out ox, out oy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_blur_offset_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out ox, out oy); + } + } - public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_set"); - private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) - { - Eina.Log.Debug("function efl_gfx_color_code_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartShadow)wrapper).SetColorCode( colorcode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); + private static efl_gfx_blur_offset_get_delegate efl_gfx_blur_offset_get_static_delegate; + + + private delegate void efl_gfx_blur_offset_set_delegate(System.IntPtr obj, System.IntPtr pd, double ox, double oy); + + + public delegate void efl_gfx_blur_offset_set_api_delegate(System.IntPtr obj, double ox, double oy); + + public static Efl.Eo.FunctionWrapper efl_gfx_blur_offset_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_offset_set"); + + private static void offset_set(System.IntPtr obj, System.IntPtr pd, double ox, double oy) + { + Eina.Log.Debug("function efl_gfx_blur_offset_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartShadow)wrapper).SetOffset(ox, oy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_blur_offset_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ox, oy); + } } - } - private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; + private static efl_gfx_blur_offset_set_delegate efl_gfx_blur_offset_set_static_delegate; + + + private delegate double efl_gfx_blur_grow_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_blur_grow_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_blur_grow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_grow_get"); + + private static double grow_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_blur_grow_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((WidgetPartShadow)wrapper).GetGrow(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_filter_program_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); + return _ret_var; + } + else + { + return efl_gfx_blur_grow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_filter_program_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_program_get"); - private static void filter_program_get(System.IntPtr obj, System.IntPtr pd, out System.String code, out System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_program_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_code = default(System.String); - System.String _out_name = default(System.String); - - try { - ((WidgetPartShadow)wrapper).GetFilterProgram( out _out_code, out _out_name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_blur_grow_get_delegate efl_gfx_blur_grow_get_static_delegate; + + + private delegate void efl_gfx_blur_grow_set_delegate(System.IntPtr obj, System.IntPtr pd, double radius); + + + public delegate void efl_gfx_blur_grow_set_api_delegate(System.IntPtr obj, double radius); + + public static Efl.Eo.FunctionWrapper efl_gfx_blur_grow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_blur_grow_set"); + + private static void grow_set(System.IntPtr obj, System.IntPtr pd, double radius) + { + Eina.Log.Debug("function efl_gfx_blur_grow_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartShadow)wrapper).SetGrow(radius); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_blur_grow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), radius); } - code = _out_code; - name = _out_name; - } else { - efl_gfx_filter_program_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out code, out name); } - } - private static efl_gfx_filter_program_get_delegate efl_gfx_filter_program_get_static_delegate; + private static efl_gfx_blur_grow_set_delegate efl_gfx_blur_grow_set_static_delegate; + + + private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + + + public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_get"); + + private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); + try + { + ((WidgetPartShadow)wrapper).GetColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_filter_program_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + } + else + { + efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } + private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; + + + private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + + + public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_set"); + + private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartShadow)wrapper).SetColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_gfx_filter_program_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_program_set"); - private static void filter_program_set(System.IntPtr obj, System.IntPtr pd, System.String code, System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_program_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((WidgetPartShadow)wrapper).SetFilterProgram( code, name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_program_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code, name); + } + else + { + efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } } - } - private static efl_gfx_filter_program_set_delegate efl_gfx_filter_program_set_static_delegate; + private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_get"); + + private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_color_code_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((WidgetPartShadow)wrapper).GetColorCode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_filter_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); + return _ret_var; + } + else + { + return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_filter_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_state_get"); - private static void filter_state_get(System.IntPtr obj, System.IntPtr pd, out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) - { - Eina.Log.Debug("function efl_gfx_filter_state_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_cur_state = default(System.String); - cur_val = default(double); System.String _out_next_state = default(System.String); - next_val = default(double); pos = default(double); - try { - ((WidgetPartShadow)wrapper).GetFilterState( out _out_cur_state, out cur_val, out _out_next_state, out next_val, out pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; + + + private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + + public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_set"); + + private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) + { + Eina.Log.Debug("function efl_gfx_color_code_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartShadow)wrapper).SetColorCode(colorcode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); } - cur_state = _out_cur_state; - next_state = _out_next_state; - } else { - efl_gfx_filter_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cur_state, out cur_val, out next_state, out next_val, out pos); } - } - private static efl_gfx_filter_state_get_delegate efl_gfx_filter_state_get_static_delegate; + private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; - private delegate void efl_gfx_filter_state_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); + + private delegate void efl_gfx_filter_program_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); + + public delegate void efl_gfx_filter_program_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name); - public delegate void efl_gfx_filter_state_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_state_set"); - private static void filter_state_set(System.IntPtr obj, System.IntPtr pd, System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) - { - Eina.Log.Debug("function efl_gfx_filter_state_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartShadow)wrapper).SetFilterState( cur_state, cur_val, next_state, next_val, pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur_state, cur_val, next_state, next_val, pos); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_program_get"); + + private static void filter_program_get(System.IntPtr obj, System.IntPtr pd, out System.String code, out System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_program_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_code = default(System.String); + System.String _out_name = default(System.String); + + try + { + ((WidgetPartShadow)wrapper).GetFilterProgram(out _out_code, out _out_name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + code = _out_code; + name = _out_name; + + } + else + { + efl_gfx_filter_program_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out code, out name); + } + } + + private static efl_gfx_filter_program_get_delegate efl_gfx_filter_program_get_static_delegate; + + + private delegate void efl_gfx_filter_program_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + + public delegate void efl_gfx_filter_program_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_program_set"); + + private static void filter_program_set(System.IntPtr obj, System.IntPtr pd, System.String code, System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_program_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartShadow)wrapper).SetFilterProgram(code, name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_program_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code, name); + } } - } - private static efl_gfx_filter_state_set_delegate efl_gfx_filter_state_set_static_delegate; + private static efl_gfx_filter_program_set_delegate efl_gfx_filter_program_set_static_delegate; - private delegate void efl_gfx_filter_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + private delegate void efl_gfx_filter_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); + + public delegate void efl_gfx_filter_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos); - public delegate void efl_gfx_filter_padding_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_padding_get"); - private static void filter_padding_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) - { - Eina.Log.Debug("function efl_gfx_filter_padding_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - l = default(int); r = default(int); t = default(int); b = default(int); - try { - ((WidgetPartShadow)wrapper).GetFilterPadding( out l, out r, out t, out b); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); - } - } - private static efl_gfx_filter_padding_get_delegate efl_gfx_filter_padding_get_static_delegate; + public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_state_get"); + private static void filter_state_get(System.IntPtr obj, System.IntPtr pd, out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) + { + Eina.Log.Debug("function efl_gfx_filter_state_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_cur_state = default(System.String); + cur_val = default(double); System.String _out_next_state = default(System.String); + next_val = default(double); pos = default(double); + try + { + ((WidgetPartShadow)wrapper).GetFilterState(out _out_cur_state, out cur_val, out _out_next_state, out next_val, out pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + cur_state = _out_cur_state; + next_state = _out_next_state; + + } + else + { + efl_gfx_filter_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cur_state, out cur_val, out next_state, out next_val, out pos); + } + } + private static efl_gfx_filter_state_get_delegate efl_gfx_filter_state_get_static_delegate; + + + private delegate void efl_gfx_filter_state_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); + + + public delegate void efl_gfx_filter_state_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_state_set"); + + private static void filter_state_set(System.IntPtr obj, System.IntPtr pd, System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) + { + Eina.Log.Debug("function efl_gfx_filter_state_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartShadow)wrapper).SetFilterState(cur_state, cur_val, next_state, next_val, pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur_state, cur_val, next_state, next_val, pos); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_source_get"); - private static Efl.Gfx.IEntity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_gfx_filter_source_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((WidgetPartShadow)wrapper).GetFilterSource( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_gfx_filter_state_set_delegate efl_gfx_filter_state_set_static_delegate; + + + private delegate void efl_gfx_filter_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + + public delegate void efl_gfx_filter_padding_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_padding_get"); + + private static void filter_padding_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_filter_padding_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((WidgetPartShadow)wrapper).GetFilterPadding(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); } - return _ret_var; - } else { - return efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); } - } - private static efl_gfx_filter_source_get_delegate efl_gfx_filter_source_get_static_delegate; + private static efl_gfx_filter_padding_get_delegate efl_gfx_filter_padding_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_source_get"); + + private static Efl.Gfx.IEntity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_gfx_filter_source_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((WidgetPartShadow)wrapper).GetFilterSource(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_filter_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity source); + return _ret_var; + } + else + { + return efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } + } - public delegate void efl_gfx_filter_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity source); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_source_set"); - private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.IEntity source) - { - Eina.Log.Debug("function efl_gfx_filter_source_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartShadow)wrapper).SetFilterSource( name, source); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source); + private static efl_gfx_filter_source_get_delegate efl_gfx_filter_source_get_static_delegate; + + + private delegate void efl_gfx_filter_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity source); + + + public delegate void efl_gfx_filter_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity source); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_source_set"); + + private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.IEntity source) + { + Eina.Log.Debug("function efl_gfx_filter_source_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartShadow)wrapper).SetFilterSource(name, source); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source); + } } - } - private static efl_gfx_filter_source_set_delegate efl_gfx_filter_source_set_static_delegate; + private static efl_gfx_filter_source_set_delegate efl_gfx_filter_source_set_static_delegate; - private delegate void efl_gfx_filter_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); + + private delegate void efl_gfx_filter_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); + + public delegate void efl_gfx_filter_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); - public delegate void efl_gfx_filter_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_data_get"); - private static void filter_data_get(System.IntPtr obj, System.IntPtr pd, System.String name, out System.String value, out bool execute) - { - Eina.Log.Debug("function efl_gfx_filter_data_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _out_value = default(System.String); + public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_data_get"); + + private static void filter_data_get(System.IntPtr obj, System.IntPtr pd, System.String name, out System.String value, out bool execute) + { + Eina.Log.Debug("function efl_gfx_filter_data_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _out_value = default(System.String); execute = default(bool); - try { - ((WidgetPartShadow)wrapper).GetFilterData( name, out _out_value, out execute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + try + { + ((WidgetPartShadow)wrapper).GetFilterData(name, out _out_value, out execute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + value = _out_value; - } else { - efl_gfx_filter_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, out value, out execute); + + } + else + { + efl_gfx_filter_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, out value, out execute); + } } - } - private static efl_gfx_filter_data_get_delegate efl_gfx_filter_data_get_static_delegate; + private static efl_gfx_filter_data_get_delegate efl_gfx_filter_data_get_static_delegate; + + + private delegate void efl_gfx_filter_data_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); + + + public delegate void efl_gfx_filter_data_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); + + public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_filter_data_set"); + + private static void filter_data_set(System.IntPtr obj, System.IntPtr pd, System.String name, System.String value, bool execute) + { + Eina.Log.Debug("function efl_gfx_filter_data_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WidgetPartShadow)wrapper).SetFilterData(name, value, execute); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_filter_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value, execute); + } + } - private delegate void efl_gfx_filter_data_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); + private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate; + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_gfx_filter_data_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute); - public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_data_set"); - private static void filter_data_set(System.IntPtr obj, System.IntPtr pd, System.String name, System.String value, bool execute) - { - Eina.Log.Debug("function efl_gfx_filter_data_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WidgetPartShadow)wrapper).SetFilterData( name, value, execute); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_filter_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value, execute); - } - } - private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate; } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_win.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_win.eo.cs index 444a74e..0bc2db0 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_win.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_win.eo.cs @@ -3,8 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + ///Event argument wrapper for event . public class WinFullscreenChangedEvt_Args : EventArgs { ///Actual event payload. @@ -22,1858 +26,2243 @@ public class WinWinRotationChangedEvt_Args : EventArgs { } /// Efl UI window class /// (Since EFL 1.22) -[WinNativeInherit] +[Efl.Ui.Win.NativeMethods] public class Win : Efl.Ui.Widget, Efl.Eo.IWrapper,Efl.IConfig,Efl.IContent,Efl.IScreen,Efl.IText,Efl.Access.IWindow,Efl.Canvas.IScene,Efl.Input.IState,Efl.Ui.IWidgetFocusManager,Efl.Ui.Focus.IManager,Efl.Ui.Focus.IManagerWindowRoot { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (Win)) - return Efl.Ui.WinNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Win)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_win_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The window name. See - ///The type of the window. See - ///The hardware acceleration preference for this window. See - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The window name. See + /// The type of the window. See + /// The hardware acceleration preference for this window. See + /// The widget style to use. See public Win(Efl.Object parent - , System.String winName = null, Efl.Ui.WinType? winType = null, System.String accelPreference = null, System.String style = null) : - base(efl_ui_win_class_get(), typeof(Win), parent) + , System.String winName = null, Efl.Ui.WinType? winType = null, System.String accelPreference = null, System.String style = null) : base(efl_ui_win_class_get(), typeof(Win), parent) { if (Efl.Eo.Globals.ParamHelperCheck(winName)) + { SetWinName(Efl.Eo.Globals.GetParamHelper(winName)); + } + if (Efl.Eo.Globals.ParamHelperCheck(winType)) + { SetWinType(Efl.Eo.Globals.GetParamHelper(winType)); + } + if (Efl.Eo.Globals.ParamHelperCheck(accelPreference)) + { SetAccelPreference(Efl.Eo.Globals.GetParamHelper(accelPreference)); + } + if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected Win(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected Win(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected Win(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object DeleteRequestEvtKey = new object(); + /// Called when the window receives a delete request /// (Since EFL 1.22) public event EventHandler DeleteRequestEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_DELETE_REQUEST"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DeleteRequestEvt_delegate)) { - eventHandlers.AddHandler(DeleteRequestEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_DELETE_REQUEST"; - if (RemoveNativeEventHandler(key, this.evt_DeleteRequestEvt_delegate)) { - eventHandlers.RemoveHandler(DeleteRequestEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DeleteRequestEvt. - public void On_DeleteRequestEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DeleteRequestEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DeleteRequestEvt_delegate; - private void on_DeleteRequestEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDeleteRequestEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_DeleteRequestEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIN_EVENT_DELETE_REQUEST"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WithdrawnEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window is withdrawn /// (Since EFL 1.22) public event EventHandler WithdrawnEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_WITHDRAWN"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WithdrawnEvt_delegate)) { - eventHandlers.AddHandler(WithdrawnEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_WITHDRAWN"; - if (RemoveNativeEventHandler(key, this.evt_WithdrawnEvt_delegate)) { - eventHandlers.RemoveHandler(WithdrawnEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WithdrawnEvt. - public void On_WithdrawnEvt(EventArgs e) + public void OnWithdrawnEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WithdrawnEvtKey]; + var key = "_EFL_UI_WIN_EVENT_WITHDRAWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WithdrawnEvt_delegate; - private void on_WithdrawnEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_WithdrawnEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object MinimizedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window is minimized /// (Since EFL 1.22) public event EventHandler MinimizedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_MINIMIZED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_MinimizedEvt_delegate)) { - eventHandlers.AddHandler(MinimizedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_MINIMIZED"; - if (RemoveNativeEventHandler(key, this.evt_MinimizedEvt_delegate)) { - eventHandlers.RemoveHandler(MinimizedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event MinimizedEvt. - public void On_MinimizedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[MinimizedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_MinimizedEvt_delegate; - private void on_MinimizedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnMinimizedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_MinimizedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIN_EVENT_MINIMIZED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object NormalEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window is set to normal state /// (Since EFL 1.22) public event EventHandler NormalEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_NORMAL"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_NormalEvt_delegate)) { - eventHandlers.AddHandler(NormalEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_NORMAL"; - if (RemoveNativeEventHandler(key, this.evt_NormalEvt_delegate)) { - eventHandlers.RemoveHandler(NormalEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event NormalEvt. - public void On_NormalEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[NormalEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_NormalEvt_delegate; - private void on_NormalEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnNormalEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_NormalEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIN_EVENT_NORMAL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object StickEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window is set as sticky /// (Since EFL 1.22) public event EventHandler StickEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_STICK"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_StickEvt_delegate)) { - eventHandlers.AddHandler(StickEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_STICK"; - if (RemoveNativeEventHandler(key, this.evt_StickEvt_delegate)) { - eventHandlers.RemoveHandler(StickEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event StickEvt. - public void On_StickEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[StickEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_StickEvt_delegate; - private void on_StickEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnStickEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_StickEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIN_EVENT_STICK"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object UnstickEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window is no longer set as sticky /// (Since EFL 1.22) public event EventHandler UnstickEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_UNSTICK"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_UnstickEvt_delegate)) { - eventHandlers.AddHandler(UnstickEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_UNSTICK"; - if (RemoveNativeEventHandler(key, this.evt_UnstickEvt_delegate)) { - eventHandlers.RemoveHandler(UnstickEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event UnstickEvt. - public void On_UnstickEvt(EventArgs e) + public void OnUnstickEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[UnstickEvtKey]; + var key = "_EFL_UI_WIN_EVENT_UNSTICK"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_UnstickEvt_delegate; - private void on_UnstickEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_UnstickEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object FullscreenChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window is set to or from fullscreen /// (Since EFL 1.22) public event EventHandler FullscreenChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.WinFullscreenChangedEvt_Args args = new Efl.Ui.WinFullscreenChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_FULLSCREEN_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FullscreenChangedEvt_delegate)) { - eventHandlers.AddHandler(FullscreenChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_FULLSCREEN_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_FullscreenChangedEvt_delegate)) { - eventHandlers.RemoveHandler(FullscreenChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FullscreenChangedEvt. - public void On_FullscreenChangedEvt(Efl.Ui.WinFullscreenChangedEvt_Args e) + public void OnFullscreenChangedEvt(Efl.Ui.WinFullscreenChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FullscreenChangedEvtKey]; + var key = "_EFL_UI_WIN_EVENT_FULLSCREEN_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FullscreenChangedEvt_delegate; - private void on_FullscreenChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.WinFullscreenChangedEvt_Args args = new Efl.Ui.WinFullscreenChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_FullscreenChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object MaximizedChangedEvtKey = new object(); /// Called when window is set to or from maximized /// (Since EFL 1.22) public event EventHandler MaximizedChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.WinMaximizedChangedEvt_Args args = new Efl.Ui.WinMaximizedChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_MAXIMIZED_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_MaximizedChangedEvt_delegate)) { - eventHandlers.AddHandler(MaximizedChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_MAXIMIZED_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_MaximizedChangedEvt_delegate)) { - eventHandlers.RemoveHandler(MaximizedChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event MaximizedChangedEvt. - public void On_MaximizedChangedEvt(Efl.Ui.WinMaximizedChangedEvt_Args e) + public void OnMaximizedChangedEvt(Efl.Ui.WinMaximizedChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[MaximizedChangedEvtKey]; + var key = "_EFL_UI_WIN_EVENT_MAXIMIZED_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_MaximizedChangedEvt_delegate; - private void on_MaximizedChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.WinMaximizedChangedEvt_Args args = new Efl.Ui.WinMaximizedChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_MaximizedChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object IndicatorPropChangedEvtKey = new object(); /// Called when indicator is property changed /// (Since EFL 1.22) public event EventHandler IndicatorPropChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_INDICATOR_PROP_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_IndicatorPropChangedEvt_delegate)) { - eventHandlers.AddHandler(IndicatorPropChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_INDICATOR_PROP_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_IndicatorPropChangedEvt_delegate)) { - eventHandlers.RemoveHandler(IndicatorPropChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event IndicatorPropChangedEvt. - public void On_IndicatorPropChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[IndicatorPropChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_IndicatorPropChangedEvt_delegate; - private void on_IndicatorPropChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnIndicatorPropChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_IndicatorPropChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIN_EVENT_INDICATOR_PROP_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WinRotationChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window rotation is changed, sends current rotation in degrees /// (Since EFL 1.22) public event EventHandler WinRotationChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.WinWinRotationChangedEvt_Args args = new Efl.Ui.WinWinRotationChangedEvt_Args(); + args.arg = evt.Info.ToInt32(); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_WIN_ROTATION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WinRotationChangedEvt_delegate)) { - eventHandlers.AddHandler(WinRotationChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_WIN_ROTATION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_WinRotationChangedEvt_delegate)) { - eventHandlers.RemoveHandler(WinRotationChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WinRotationChangedEvt. - public void On_WinRotationChangedEvt(Efl.Ui.WinWinRotationChangedEvt_Args e) + public void OnWinRotationChangedEvt(Efl.Ui.WinWinRotationChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WinRotationChangedEvtKey]; + var key = "_EFL_UI_WIN_EVENT_WIN_ROTATION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WinRotationChangedEvt_delegate; - private void on_WinRotationChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.WinWinRotationChangedEvt_Args args = new Efl.Ui.WinWinRotationChangedEvt_Args(); - args.arg = evt.Info.ToInt32(); - try { - On_WinRotationChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object ProfileChangedEvtKey = new object(); /// Called when profile is changed /// (Since EFL 1.22) public event EventHandler ProfileChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_PROFILE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ProfileChangedEvt_delegate)) { - eventHandlers.AddHandler(ProfileChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_PROFILE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ProfileChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ProfileChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ProfileChangedEvt. - public void On_ProfileChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ProfileChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ProfileChangedEvt_delegate; - private void on_ProfileChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnProfileChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ProfileChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIN_EVENT_PROFILE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WmRotationChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window manager rotation is changed /// (Since EFL 1.22) public event EventHandler WmRotationChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_WM_ROTATION_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WmRotationChangedEvt_delegate)) { - eventHandlers.AddHandler(WmRotationChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_WM_ROTATION_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_WmRotationChangedEvt_delegate)) { - eventHandlers.RemoveHandler(WmRotationChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WmRotationChangedEvt. - public void On_WmRotationChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WmRotationChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WmRotationChangedEvt_delegate; - private void on_WmRotationChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnWmRotationChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_WmRotationChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIN_EVENT_WM_ROTATION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ThemeChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when theme is changed /// (Since EFL 1.22) public event EventHandler ThemeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_THEME_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ThemeChangedEvt_delegate)) { - eventHandlers.AddHandler(ThemeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_THEME_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ThemeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ThemeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ThemeChangedEvt. - public void On_ThemeChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ThemeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ThemeChangedEvt_delegate; - private void on_ThemeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnThemeChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ThemeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIN_EVENT_THEME_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ElmActionBlockMenuEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when elementary block menu action occurs /// (Since EFL 1.22) public event EventHandler ElmActionBlockMenuEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_ELM_ACTION_BLOCK_MENU"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ElmActionBlockMenuEvt_delegate)) { - eventHandlers.AddHandler(ElmActionBlockMenuEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_ELM_ACTION_BLOCK_MENU"; - if (RemoveNativeEventHandler(key, this.evt_ElmActionBlockMenuEvt_delegate)) { - eventHandlers.RemoveHandler(ElmActionBlockMenuEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ElmActionBlockMenuEvt. - public void On_ElmActionBlockMenuEvt(EventArgs e) + public void OnElmActionBlockMenuEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ElmActionBlockMenuEvtKey]; + var key = "_EFL_UI_WIN_EVENT_ELM_ACTION_BLOCK_MENU"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ElmActionBlockMenuEvt_delegate; - private void on_ElmActionBlockMenuEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ElmActionBlockMenuEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object PauseEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when the window is not going be displayed for some time /// (Since EFL 1.22) public event EventHandler PauseEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_PAUSE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PauseEvt_delegate)) { - eventHandlers.AddHandler(PauseEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_PAUSE"; - if (RemoveNativeEventHandler(key, this.evt_PauseEvt_delegate)) { - eventHandlers.RemoveHandler(PauseEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event PauseEvt. - public void On_PauseEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[PauseEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_PauseEvt_delegate; - private void on_PauseEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnPauseEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_PauseEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIN_EVENT_PAUSE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ResumeEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called before a window is rendered after a pause event /// (Since EFL 1.22) public event EventHandler ResumeEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_WIN_EVENT_RESUME"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ResumeEvt_delegate)) { - eventHandlers.AddHandler(ResumeEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_WIN_EVENT_RESUME"; - if (RemoveNativeEventHandler(key, this.evt_ResumeEvt_delegate)) { - eventHandlers.RemoveHandler(ResumeEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ResumeEvt. - public void On_ResumeEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ResumeEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ResumeEvt_delegate; - private void on_ResumeEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnResumeEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ResumeEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_WIN_EVENT_RESUME"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ContentChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WindowCreatedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when new window has been created. public event EventHandler WindowCreatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_CREATED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowCreatedEvt_delegate)) { - eventHandlers.AddHandler(WindowCreatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_CREATED"; - if (RemoveNativeEventHandler(key, this.evt_WindowCreatedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowCreatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowCreatedEvt. - public void On_WindowCreatedEvt(EventArgs e) + public void OnWindowCreatedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowCreatedEvtKey]; + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_CREATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowCreatedEvt_delegate; - private void on_WindowCreatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_WindowCreatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object WindowDestroyedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been destroyed. public event EventHandler WindowDestroyedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DESTROYED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowDestroyedEvt_delegate)) { - eventHandlers.AddHandler(WindowDestroyedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DESTROYED"; - if (RemoveNativeEventHandler(key, this.evt_WindowDestroyedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowDestroyedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowDestroyedEvt. - public void On_WindowDestroyedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowDestroyedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowDestroyedEvt_delegate; - private void on_WindowDestroyedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnWindowDestroyedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_WindowDestroyedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DESTROYED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WindowActivatedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been activated. (focused) public event EventHandler WindowActivatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_ACTIVATED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowActivatedEvt_delegate)) { - eventHandlers.AddHandler(WindowActivatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_ACTIVATED"; - if (RemoveNativeEventHandler(key, this.evt_WindowActivatedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowActivatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowActivatedEvt. - public void On_WindowActivatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowActivatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowActivatedEvt_delegate; - private void on_WindowActivatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnWindowActivatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_WindowActivatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_ACTIVATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WindowDeactivatedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been deactivated (unfocused). public event EventHandler WindowDeactivatedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DEACTIVATED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowDeactivatedEvt_delegate)) { - eventHandlers.AddHandler(WindowDeactivatedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DEACTIVATED"; - if (RemoveNativeEventHandler(key, this.evt_WindowDeactivatedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowDeactivatedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowDeactivatedEvt. - public void On_WindowDeactivatedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowDeactivatedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowDeactivatedEvt_delegate; - private void on_WindowDeactivatedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnWindowDeactivatedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_WindowDeactivatedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DEACTIVATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WindowMaximizedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been maximized public event EventHandler WindowMaximizedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MAXIMIZED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowMaximizedEvt_delegate)) { - eventHandlers.AddHandler(WindowMaximizedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MAXIMIZED"; - if (RemoveNativeEventHandler(key, this.evt_WindowMaximizedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowMaximizedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowMaximizedEvt. - public void On_WindowMaximizedEvt(EventArgs e) + public void OnWindowMaximizedEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowMaximizedEvtKey]; + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MAXIMIZED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowMaximizedEvt_delegate; - private void on_WindowMaximizedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_WindowMaximizedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object WindowMinimizedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been minimized public event EventHandler WindowMinimizedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MINIMIZED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowMinimizedEvt_delegate)) { - eventHandlers.AddHandler(WindowMinimizedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MINIMIZED"; - if (RemoveNativeEventHandler(key, this.evt_WindowMinimizedEvt_delegate)) { - eventHandlers.RemoveHandler(WindowMinimizedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowMinimizedEvt. - public void On_WindowMinimizedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowMinimizedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowMinimizedEvt_delegate; - private void on_WindowMinimizedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnWindowMinimizedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_WindowMinimizedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MINIMIZED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object WindowRestoredEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when window has been restored public event EventHandler WindowRestoredEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_RESTORED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_WindowRestoredEvt_delegate)) { - eventHandlers.AddHandler(WindowRestoredEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_RESTORED"; - if (RemoveNativeEventHandler(key, this.evt_WindowRestoredEvt_delegate)) { - eventHandlers.RemoveHandler(WindowRestoredEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event WindowRestoredEvt. - public void On_WindowRestoredEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[WindowRestoredEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_WindowRestoredEvt_delegate; - private void on_WindowRestoredEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnWindowRestoredEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_WindowRestoredEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_RESTORED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SceneFocusInEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scene got focus /// (Since EFL 1.22) public event EventHandler SceneFocusInEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneSceneFocusInEvt_Args args = new Efl.Canvas.ISceneSceneFocusInEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SceneFocusInEvt_delegate)) { - eventHandlers.AddHandler(SceneFocusInEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN"; - if (RemoveNativeEventHandler(key, this.evt_SceneFocusInEvt_delegate)) { - eventHandlers.RemoveHandler(SceneFocusInEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SceneFocusInEvt. - public void On_SceneFocusInEvt(Efl.Canvas.ISceneSceneFocusInEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SceneFocusInEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SceneFocusInEvt_delegate; - private void on_SceneFocusInEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnSceneFocusInEvt(Efl.Canvas.ISceneSceneFocusInEvt_Args e) { - Efl.Canvas.ISceneSceneFocusInEvt_Args args = new Efl.Canvas.ISceneSceneFocusInEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_SceneFocusInEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object SceneFocusOutEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when scene lost focus /// (Since EFL 1.22) public event EventHandler SceneFocusOutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneSceneFocusOutEvt_Args args = new Efl.Canvas.ISceneSceneFocusOutEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_SceneFocusOutEvt_delegate)) { - eventHandlers.AddHandler(SceneFocusOutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT"; - if (RemoveNativeEventHandler(key, this.evt_SceneFocusOutEvt_delegate)) { - eventHandlers.RemoveHandler(SceneFocusOutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event SceneFocusOutEvt. - public void On_SceneFocusOutEvt(Efl.Canvas.ISceneSceneFocusOutEvt_Args e) + public void OnSceneFocusOutEvt(Efl.Canvas.ISceneSceneFocusOutEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[SceneFocusOutEvtKey]; + var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_SceneFocusOutEvt_delegate; - private void on_SceneFocusOutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Canvas.ISceneSceneFocusOutEvt_Args args = new Efl.Canvas.ISceneSceneFocusOutEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_SceneFocusOutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ObjectFocusInEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when object got focus /// (Since EFL 1.22) public event EventHandler ObjectFocusInEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneObjectFocusInEvt_Args args = new Efl.Canvas.ISceneObjectFocusInEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ObjectFocusInEvt_delegate)) { - eventHandlers.AddHandler(ObjectFocusInEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN"; - if (RemoveNativeEventHandler(key, this.evt_ObjectFocusInEvt_delegate)) { - eventHandlers.RemoveHandler(ObjectFocusInEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ObjectFocusInEvt. - public void On_ObjectFocusInEvt(Efl.Canvas.ISceneObjectFocusInEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ObjectFocusInEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ObjectFocusInEvt_delegate; - private void on_ObjectFocusInEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnObjectFocusInEvt(Efl.Canvas.ISceneObjectFocusInEvt_Args e) { - Efl.Canvas.ISceneObjectFocusInEvt_Args args = new Efl.Canvas.ISceneObjectFocusInEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_ObjectFocusInEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ObjectFocusOutEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when object lost focus /// (Since EFL 1.22) public event EventHandler ObjectFocusOutEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneObjectFocusOutEvt_Args args = new Efl.Canvas.ISceneObjectFocusOutEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ObjectFocusOutEvt_delegate)) { - eventHandlers.AddHandler(ObjectFocusOutEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT"; - if (RemoveNativeEventHandler(key, this.evt_ObjectFocusOutEvt_delegate)) { - eventHandlers.RemoveHandler(ObjectFocusOutEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ObjectFocusOutEvt. - public void On_ObjectFocusOutEvt(Efl.Canvas.ISceneObjectFocusOutEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ObjectFocusOutEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ObjectFocusOutEvt_delegate; - private void on_ObjectFocusOutEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnObjectFocusOutEvt(Efl.Canvas.ISceneObjectFocusOutEvt_Args e) { - Efl.Canvas.ISceneObjectFocusOutEvt_Args args = new Efl.Canvas.ISceneObjectFocusOutEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Focus); - try { - On_ObjectFocusOutEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RenderPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when pre render happens /// (Since EFL 1.22) public event EventHandler RenderPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RenderPreEvt_delegate)) { - eventHandlers.AddHandler(RenderPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE"; - if (RemoveNativeEventHandler(key, this.evt_RenderPreEvt_delegate)) { - eventHandlers.RemoveHandler(RenderPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RenderPreEvt. - public void On_RenderPreEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RenderPreEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RenderPreEvt_delegate; - private void on_RenderPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRenderPreEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_RenderPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RenderPostEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when post render happens /// (Since EFL 1.22) public event EventHandler RenderPostEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneRenderPostEvt_Args args = new Efl.Canvas.ISceneRenderPostEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_RenderPostEvt_delegate)) { - eventHandlers.AddHandler(RenderPostEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST"; - if (RemoveNativeEventHandler(key, this.evt_RenderPostEvt_delegate)) { - eventHandlers.RemoveHandler(RenderPostEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event RenderPostEvt. - public void On_RenderPostEvt(Efl.Canvas.ISceneRenderPostEvt_Args e) + public void OnRenderPostEvt(Efl.Canvas.ISceneRenderPostEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RenderPostEvtKey]; + var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RenderPostEvt_delegate; - private void on_RenderPostEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Canvas.ISceneRenderPostEvt_Args args = new Efl.Canvas.ISceneRenderPostEvt_Args(); - args.arg = evt.Info;; - try { - On_RenderPostEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); } } - -private static object DeviceChangedEvtKey = new object(); /// Called when input device changed /// (Since EFL 1.22) public event EventHandler DeviceChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneDeviceChangedEvt_Args args = new Efl.Canvas.ISceneDeviceChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DeviceChangedEvt_delegate)) { - eventHandlers.AddHandler(DeviceChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DeviceChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DeviceChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DeviceChangedEvt. - public void On_DeviceChangedEvt(Efl.Canvas.ISceneDeviceChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DeviceChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DeviceChangedEvt_delegate; - private void on_DeviceChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDeviceChangedEvt(Efl.Canvas.ISceneDeviceChangedEvt_Args e) { - Efl.Canvas.ISceneDeviceChangedEvt_Args args = new Efl.Canvas.ISceneDeviceChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); - try { - On_DeviceChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DeviceAddedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when input device was added /// (Since EFL 1.22) public event EventHandler DeviceAddedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneDeviceAddedEvt_Args args = new Efl.Canvas.ISceneDeviceAddedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DeviceAddedEvt_delegate)) { - eventHandlers.AddHandler(DeviceAddedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED"; - if (RemoveNativeEventHandler(key, this.evt_DeviceAddedEvt_delegate)) { - eventHandlers.RemoveHandler(DeviceAddedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DeviceAddedEvt. - public void On_DeviceAddedEvt(Efl.Canvas.ISceneDeviceAddedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DeviceAddedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DeviceAddedEvt_delegate; - private void on_DeviceAddedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDeviceAddedEvt(Efl.Canvas.ISceneDeviceAddedEvt_Args e) { - Efl.Canvas.ISceneDeviceAddedEvt_Args args = new Efl.Canvas.ISceneDeviceAddedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); - try { - On_DeviceAddedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DeviceRemovedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when input device was removed /// (Since EFL 1.22) public event EventHandler DeviceRemovedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Canvas.ISceneDeviceRemovedEvt_Args args = new Efl.Canvas.ISceneDeviceRemovedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_DeviceRemovedEvt_delegate)) { - eventHandlers.AddHandler(DeviceRemovedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED"; - if (RemoveNativeEventHandler(key, this.evt_DeviceRemovedEvt_delegate)) { - eventHandlers.RemoveHandler(DeviceRemovedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event DeviceRemovedEvt. - public void On_DeviceRemovedEvt(Efl.Canvas.ISceneDeviceRemovedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DeviceRemovedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DeviceRemovedEvt_delegate; - private void on_DeviceRemovedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDeviceRemovedEvt(Efl.Canvas.ISceneDeviceRemovedEvt_Args e) { - Efl.Canvas.ISceneDeviceRemovedEvt_Args args = new Efl.Canvas.ISceneDeviceRemovedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Input.Device); - try { - On_DeviceRemovedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RedirectChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) public event EventHandler RedirectChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.AddHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.RemoveHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedirectChangedEvt. - public void On_RedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedirectChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedirectChangedEvt_delegate; - private void on_RedirectChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_RedirectChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object FlushPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.AddHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (RemoveNativeEventHandler(key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.RemoveHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FlushPreEvt. - public void On_FlushPreEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FlushPreEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FlushPreEvt_delegate; - private void on_FlushPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFlushPreEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_FlushPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CoordsDirtyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.AddHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (RemoveNativeEventHandler(key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.RemoveHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CoordsDirtyEvt. - public void On_CoordsDirtyEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CoordsDirtyEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CoordsDirtyEvt_delegate; - private void on_CoordsDirtyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnCoordsDirtyEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_CoordsDirtyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ManagerFocusChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) public event EventHandler ManagerFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ManagerFocusChangedEvt. - public void On_ManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ManagerFocusChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ManagerFocusChangedEvt_delegate; - private void on_ManagerFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_ManagerFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DirtyLogicFreezeChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) public event EventHandler DirtyLogicFreezeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.AddHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DirtyLogicFreezeChangedEvt. - public void On_DirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DirtyLogicFreezeChangedEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DirtyLogicFreezeChangedEvt_delegate; - private void on_DirtyLogicFreezeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_DirtyLogicFreezeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_DeleteRequestEvt_delegate = new Efl.EventCb(on_DeleteRequestEvt_NativeCallback); - evt_WithdrawnEvt_delegate = new Efl.EventCb(on_WithdrawnEvt_NativeCallback); - evt_MinimizedEvt_delegate = new Efl.EventCb(on_MinimizedEvt_NativeCallback); - evt_NormalEvt_delegate = new Efl.EventCb(on_NormalEvt_NativeCallback); - evt_StickEvt_delegate = new Efl.EventCb(on_StickEvt_NativeCallback); - evt_UnstickEvt_delegate = new Efl.EventCb(on_UnstickEvt_NativeCallback); - evt_FullscreenChangedEvt_delegate = new Efl.EventCb(on_FullscreenChangedEvt_NativeCallback); - evt_MaximizedChangedEvt_delegate = new Efl.EventCb(on_MaximizedChangedEvt_NativeCallback); - evt_IndicatorPropChangedEvt_delegate = new Efl.EventCb(on_IndicatorPropChangedEvt_NativeCallback); - evt_WinRotationChangedEvt_delegate = new Efl.EventCb(on_WinRotationChangedEvt_NativeCallback); - evt_ProfileChangedEvt_delegate = new Efl.EventCb(on_ProfileChangedEvt_NativeCallback); - evt_WmRotationChangedEvt_delegate = new Efl.EventCb(on_WmRotationChangedEvt_NativeCallback); - evt_ThemeChangedEvt_delegate = new Efl.EventCb(on_ThemeChangedEvt_NativeCallback); - evt_ElmActionBlockMenuEvt_delegate = new Efl.EventCb(on_ElmActionBlockMenuEvt_NativeCallback); - evt_PauseEvt_delegate = new Efl.EventCb(on_PauseEvt_NativeCallback); - evt_ResumeEvt_delegate = new Efl.EventCb(on_ResumeEvt_NativeCallback); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); - evt_WindowCreatedEvt_delegate = new Efl.EventCb(on_WindowCreatedEvt_NativeCallback); - evt_WindowDestroyedEvt_delegate = new Efl.EventCb(on_WindowDestroyedEvt_NativeCallback); - evt_WindowActivatedEvt_delegate = new Efl.EventCb(on_WindowActivatedEvt_NativeCallback); - evt_WindowDeactivatedEvt_delegate = new Efl.EventCb(on_WindowDeactivatedEvt_NativeCallback); - evt_WindowMaximizedEvt_delegate = new Efl.EventCb(on_WindowMaximizedEvt_NativeCallback); - evt_WindowMinimizedEvt_delegate = new Efl.EventCb(on_WindowMinimizedEvt_NativeCallback); - evt_WindowRestoredEvt_delegate = new Efl.EventCb(on_WindowRestoredEvt_NativeCallback); - evt_SceneFocusInEvt_delegate = new Efl.EventCb(on_SceneFocusInEvt_NativeCallback); - evt_SceneFocusOutEvt_delegate = new Efl.EventCb(on_SceneFocusOutEvt_NativeCallback); - evt_ObjectFocusInEvt_delegate = new Efl.EventCb(on_ObjectFocusInEvt_NativeCallback); - evt_ObjectFocusOutEvt_delegate = new Efl.EventCb(on_ObjectFocusOutEvt_NativeCallback); - evt_RenderPreEvt_delegate = new Efl.EventCb(on_RenderPreEvt_NativeCallback); - evt_RenderPostEvt_delegate = new Efl.EventCb(on_RenderPostEvt_NativeCallback); - evt_DeviceChangedEvt_delegate = new Efl.EventCb(on_DeviceChangedEvt_NativeCallback); - evt_DeviceAddedEvt_delegate = new Efl.EventCb(on_DeviceAddedEvt_NativeCallback); - evt_DeviceRemovedEvt_delegate = new Efl.EventCb(on_DeviceRemovedEvt_NativeCallback); - evt_RedirectChangedEvt_delegate = new Efl.EventCb(on_RedirectChangedEvt_NativeCallback); - evt_FlushPreEvt_delegate = new Efl.EventCb(on_FlushPreEvt_NativeCallback); - evt_CoordsDirtyEvt_delegate = new Efl.EventCb(on_CoordsDirtyEvt_NativeCallback); - evt_ManagerFocusChangedEvt_delegate = new Efl.EventCb(on_ManagerFocusChangedEvt_NativeCallback); - evt_DirtyLogicFreezeChangedEvt_delegate = new Efl.EventCb(on_DirtyLogicFreezeChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// In some environments you may have an indicator that shows battery status, reception, time etc. This is the indicator. /// Sometimes you don't want this because you provide the same functionality inside your app, so this will request that the indicator is disabled in such circumstances. The default settings depends on the environment. For example, on phones, the default is to enable the indicator. The indicator is disabled on devices like televisions however. /// (Since EFL 1.22) - /// The mype, one of . + /// The type, one of . virtual public Efl.Ui.WinIndicatorMode GetIndicatorMode() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_indicator_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_indicator_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// In some environments you may have an indicator that shows battery status, reception, time etc. This is the indicator. /// Sometimes you don't want this because you provide the same functionality inside your app, so this will request that the indicator is disabled in such circumstances. The default settings depends on the environment. For example, on phones, the default is to enable the indicator. The indicator is disabled on devices like televisions however. /// (Since EFL 1.22) - /// The mype, one of . - /// - virtual public void SetIndicatorMode( Efl.Ui.WinIndicatorMode type) { - Efl.Ui.WinNativeInherit.efl_ui_win_indicator_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + /// The type, one of . + virtual public void SetIndicatorMode(Efl.Ui.WinIndicatorMode type) { + Efl.Ui.Win.NativeMethods.efl_ui_win_indicator_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// Get the keyboard mode of the window. /// (Since EFL 1.22) /// The mode, one of . virtual public Efl.Ui.WinKeyboardMode GetKeyboardMode() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_keyboard_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_keyboard_mode_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sets the keyboard mode of the window. /// (Since EFL 1.22) /// The mode, one of . - /// - virtual public void SetKeyboardMode( Efl.Ui.WinKeyboardMode mode) { - Efl.Ui.WinNativeInherit.efl_ui_win_keyboard_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mode); + virtual public void SetKeyboardMode(Efl.Ui.WinKeyboardMode mode) { + Efl.Ui.Win.NativeMethods.efl_ui_win_keyboard_mode_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode); Eina.Error.RaiseIfUnhandledException(); } /// Defines which rotations this window supports. @@ -1884,8 +2273,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Rotated 180 degrees. /// Rotated 270 degrees CCW (i.e. 90 CW). /// Returns false if available rotations were not specified. - virtual public bool GetWmAvailableRotations( out bool allow_0, out bool allow_90, out bool allow_180, out bool allow_270) { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_wm_available_rotations_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out allow_0, out allow_90, out allow_180, out allow_270); + virtual public bool GetWmAvailableRotations(out bool allow_0, out bool allow_90, out bool allow_180, out bool allow_270) { + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_wm_available_rotations_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out allow_0, out allow_90, out allow_180, out allow_270); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1896,26 +2285,24 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Rotated 90 degrees CCW. /// Rotated 180 degrees. /// Rotated 270 degrees CCW (i.e. 90 CW). - /// - virtual public void SetWmAvailableRotations( bool allow_0, bool allow_90, bool allow_180, bool allow_270) { - Efl.Ui.WinNativeInherit.efl_ui_win_wm_available_rotations_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), allow_0, allow_90, allow_180, allow_270); + virtual public void SetWmAvailableRotations(bool allow_0, bool allow_90, bool allow_180, bool allow_270) { + Efl.Ui.Win.NativeMethods.efl_ui_win_wm_available_rotations_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),allow_0, allow_90, allow_180, allow_270); Eina.Error.RaiseIfUnhandledException(); } /// Available profiles on a window. /// (Since EFL 1.22) /// A list of profiles. virtual public Eina.Array GetWmAvailableProfiles() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_wm_available_profiles_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_wm_available_profiles_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Array(_ret_var, false, false); } /// Available profiles on a window. /// (Since EFL 1.22) /// A list of profiles. - /// - virtual public void SetWmAvailableProfiles( Eina.Array profiles) { + virtual public void SetWmAvailableProfiles(Eina.Array profiles) { var _in_profiles = profiles.Handle; - Efl.Ui.WinNativeInherit.efl_ui_win_wm_available_profiles_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_profiles); + Efl.Ui.Win.NativeMethods.efl_ui_win_wm_available_profiles_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_profiles); Eina.Error.RaiseIfUnhandledException(); } /// Get the constraints on the maximum width and height of a window relative to the width and height of the screen. @@ -1923,7 +2310,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// true to restrict the window's maximum size. virtual public bool GetScreenConstrain() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_screen_constrain_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_screen_constrain_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1931,9 +2318,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// When constrain is true, obj will never resize larger than the screen. /// (Since EFL 1.22) /// true to restrict the window's maximum size. - /// - virtual public void SetScreenConstrain( bool constrain) { - Efl.Ui.WinNativeInherit.efl_ui_win_screen_constrain_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), constrain); + virtual public void SetScreenConstrain(bool constrain) { + Efl.Ui.Win.NativeMethods.efl_ui_win_screen_constrain_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),constrain); Eina.Error.RaiseIfUnhandledException(); } /// Set the window to be skipped by keyboard focus. @@ -1944,9 +2330,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Use this for windows that have only output information or might only be interacted with by the mouse or touchscreen, never for typing. This may have side-effects like making the window non-accessible in some cases unless the window is specially handled. Use this with care. /// (Since EFL 1.22) /// The skip flag state (true if it is to be skipped). - /// - virtual public void SetPropFocusSkip( bool skip) { - Efl.Ui.WinNativeInherit.efl_ui_win_prop_focus_skip_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), skip); + virtual public void SetPropFocusSkip(bool skip) { + Efl.Ui.Win.NativeMethods.efl_ui_win_prop_focus_skip_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),skip); Eina.Error.RaiseIfUnhandledException(); } /// Window's autohide state. @@ -1960,7 +2345,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// If true, the window will automatically hide itself when closed. virtual public bool GetAutohide() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_autohide_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_autohide_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1974,9 +2359,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Note: autodel and autohide are not mutually exclusive. The window will be deleted if both are set to true. /// (Since EFL 1.22) /// If true, the window will automatically hide itself when closed. - /// - virtual public void SetAutohide( bool autohide) { - Efl.Ui.WinNativeInherit.efl_ui_win_autohide_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), autohide); + virtual public void SetAutohide(bool autohide) { + Efl.Ui.Win.NativeMethods.efl_ui_win_autohide_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),autohide); Eina.Error.RaiseIfUnhandledException(); } /// Enable quitting the main loop when this window is closed. @@ -1988,7 +2372,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The exit code to use when exiting virtual public Eina.Value GetExitOnClose() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_exit_on_close_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_exit_on_close_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2000,9 +2384,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Note this is different from which exits when ALL windows are closed. /// (Since EFL 1.22) /// The exit code to use when exiting - /// - virtual public void SetExitOnClose( Eina.Value exit_code) { - Efl.Ui.WinNativeInherit.efl_ui_win_exit_on_close_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), exit_code); + virtual public void SetExitOnClose(Eina.Value exit_code) { + Efl.Ui.Win.NativeMethods.efl_ui_win_exit_on_close_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),exit_code); Eina.Error.RaiseIfUnhandledException(); } /// Get the icon object used for the window. @@ -2010,7 +2393,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The Evas image object to use for an icon. virtual public Efl.Canvas.Object GetIconObject() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_icon_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_icon_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2018,64 +2401,60 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// This sets an image to be used as the icon for the given window, in the window manager decoration part. The exact pixel dimensions of the object (not object size) will be used and the image pixels will be used as-is when this function is called. If the image object has been updated, then call this function again to source the image pixels and place them in the window's icon. Note that only objects of type or are allowed. /// (Since EFL 1.22) /// The image object to use for an icon. - /// - virtual public void SetIconObject( Efl.Canvas.Object icon) { - Efl.Ui.WinNativeInherit.efl_ui_win_icon_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), icon); + virtual public void SetIconObject(Efl.Canvas.Object icon) { + Efl.Ui.Win.NativeMethods.efl_ui_win_icon_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),icon); Eina.Error.RaiseIfUnhandledException(); } /// Get the minimized state of a window. /// (Since EFL 1.22) /// If true, the window is minimized. virtual public bool GetMinimized() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_minimized_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_minimized_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the minimized state of a window. /// (Since EFL 1.22) /// If true, the window is minimized. - /// - virtual public void SetMinimized( bool state) { - Efl.Ui.WinNativeInherit.efl_ui_win_minimized_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), state); + virtual public void SetMinimized(bool state) { + Efl.Ui.Win.NativeMethods.efl_ui_win_minimized_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),state); Eina.Error.RaiseIfUnhandledException(); } /// Get the maximized state of a window. /// (Since EFL 1.22) /// If true, the window is maximized. virtual public bool GetMaximized() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_maximized_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_maximized_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the maximized state of a window. /// (Since EFL 1.22) /// If true, the window is maximized. - /// - virtual public void SetMaximized( bool maximized) { - Efl.Ui.WinNativeInherit.efl_ui_win_maximized_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), maximized); + virtual public void SetMaximized(bool maximized) { + Efl.Ui.Win.NativeMethods.efl_ui_win_maximized_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),maximized); Eina.Error.RaiseIfUnhandledException(); } /// Get the fullscreen state of a window. /// (Since EFL 1.22) /// If true, the window is fullscreen. virtual public bool GetFullscreen() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_fullscreen_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_fullscreen_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the fullscreen state of a window. /// (Since EFL 1.22) /// If true, the window is fullscreen. - /// - virtual public void SetFullscreen( bool fullscreen) { - Efl.Ui.WinNativeInherit.efl_ui_win_fullscreen_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), fullscreen); + virtual public void SetFullscreen(bool fullscreen) { + Efl.Ui.Win.NativeMethods.efl_ui_win_fullscreen_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),fullscreen); Eina.Error.RaiseIfUnhandledException(); } /// Get the sticky state of the window. /// (Since EFL 1.22) /// If true, the window's sticky state is enabled. virtual public bool GetSticky() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_sticky_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_sticky_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2083,48 +2462,45 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Hints the Window Manager that the window in obj should be left fixed at its position even when the virtual desktop it's on moves or changes. /// (Since EFL 1.22) /// If true, the window's sticky state is enabled. - /// - virtual public void SetSticky( bool sticky) { - Efl.Ui.WinNativeInherit.efl_ui_win_sticky_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), sticky); + virtual public void SetSticky(bool sticky) { + Efl.Ui.Win.NativeMethods.efl_ui_win_sticky_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sticky); Eina.Error.RaiseIfUnhandledException(); } /// Get the urgent state of a window. /// (Since EFL 1.22) /// The mode of a urgent window, one of . virtual public Efl.Ui.WinUrgentMode GetUrgent() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_urgent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_urgent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the urgent state of a window. /// (Since EFL 1.22) /// The mode of a urgent window, one of . - /// - virtual public void SetUrgent( Efl.Ui.WinUrgentMode urgent) { - Efl.Ui.WinNativeInherit.efl_ui_win_urgent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), urgent); + virtual public void SetUrgent(Efl.Ui.WinUrgentMode urgent) { + Efl.Ui.Win.NativeMethods.efl_ui_win_urgent_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),urgent); Eina.Error.RaiseIfUnhandledException(); } /// Get the modal state of a window. /// (Since EFL 1.22) /// The mode of a window, one of . virtual public Efl.Ui.WinModalMode GetModal() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_modal_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_modal_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the modal state of a window. /// (Since EFL 1.22) /// The mode of a window, one of . - /// - virtual public void SetModal( Efl.Ui.WinModalMode modal) { - Efl.Ui.WinNativeInherit.efl_ui_win_modal_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), modal); + virtual public void SetModal(Efl.Ui.WinModalMode modal) { + Efl.Ui.Win.NativeMethods.efl_ui_win_modal_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),modal); Eina.Error.RaiseIfUnhandledException(); } /// Get the borderless state of a window. /// (Since EFL 1.22) /// If true, the window is borderless. virtual public bool GetBorderless() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_borderless_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_borderless_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2132,9 +2508,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// This function requests the Window Manager not to draw any decoration around the window. /// (Since EFL 1.22) /// If true, the window is borderless. - /// - virtual public void SetBorderless( bool borderless) { - Efl.Ui.WinNativeInherit.efl_ui_win_borderless_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), borderless); + virtual public void SetBorderless(bool borderless) { + Efl.Ui.Win.NativeMethods.efl_ui_win_borderless_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),borderless); Eina.Error.RaiseIfUnhandledException(); } /// Get the role of the window. @@ -2142,16 +2517,15 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The role to set. virtual public System.String GetWinRole() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_role_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_role_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the role of the window. /// (Since EFL 1.22) /// The role to set. - /// - virtual public void SetWinRole( System.String role) { - Efl.Ui.WinNativeInherit.efl_ui_win_role_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), role); + virtual public void SetWinRole(System.String role) { + Efl.Ui.Win.NativeMethods.efl_ui_win_role_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),role); Eina.Error.RaiseIfUnhandledException(); } /// The window name. @@ -2163,39 +2537,37 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Window name virtual public System.String GetWinName() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_name_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Name can only be set before finalize. /// (Since EFL 1.22) /// Window name - /// - virtual public void SetWinName( System.String name) { - Efl.Ui.WinNativeInherit.efl_ui_win_name_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public void SetWinName(System.String name) { + Efl.Ui.Win.NativeMethods.efl_ui_win_name_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); } /// If the object is not window object, returns unknown. /// (Since EFL 1.22) /// Window type virtual public Efl.Ui.WinType GetWinType() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Type can on be set before finalize. /// (Since EFL 1.22) /// Window type - /// - virtual public void SetWinType( Efl.Ui.WinType type) { - Efl.Ui.WinNativeInherit.efl_ui_win_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type); + virtual public void SetWinType(Efl.Ui.WinType type) { + Efl.Ui.Win.NativeMethods.efl_ui_win_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),type); Eina.Error.RaiseIfUnhandledException(); } /// This will return the value of "accel_preference" when the window was created. /// (Since EFL 1.22) /// Acceleration virtual public System.String GetAccelPreference() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_accel_preference_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_accel_preference_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2219,16 +2591,15 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Note that this option may be overriden by environment variables or the configuration option "accel_preference_override". /// (Since EFL 1.22) /// Acceleration - /// - virtual public void SetAccelPreference( System.String accel) { - Efl.Ui.WinNativeInherit.efl_ui_win_accel_preference_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), accel); + virtual public void SetAccelPreference(System.String accel) { + Efl.Ui.Win.NativeMethods.efl_ui_win_accel_preference_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),accel); Eina.Error.RaiseIfUnhandledException(); } /// Get the alpha channel state of a window. /// (Since EFL 1.22) /// true if the window alpha channel is enabled, false otherwise. virtual public bool GetAlpha() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_alpha_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_alpha_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2238,9 +2609,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Note: Alpha window can be enabled automatically by window theme style's property. If "alpha" data.item is "1" or "true" in window style(eg. elm/win/base/default), the window is switched to alpha automatically without the explicit api call. /// (Since EFL 1.22) /// true if the window alpha channel is enabled, false otherwise. - /// - virtual public void SetAlpha( bool alpha) { - Efl.Ui.WinNativeInherit.efl_ui_win_alpha_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), alpha); + virtual public void SetAlpha(bool alpha) { + Efl.Ui.Win.NativeMethods.efl_ui_win_alpha_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),alpha); Eina.Error.RaiseIfUnhandledException(); } /// Get the stack ID string of the window as an opaque string. @@ -2250,7 +2620,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// An opaque string that has no specific format but identifies a specific unique window on the display. virtual public System.String GetStackId() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_stack_id_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_stack_id_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2258,7 +2628,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// An opaque string that has no specific format, but identifies a specific unique window on the display. virtual public System.String GetStackMasterId() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_stack_master_id_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_stack_master_id_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2266,9 +2636,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// This sets the ID string to be used as the master top-level window as the base of a stack of windows. This must be set before the first time the window is shown and should never be changed afterwards. /// (Since EFL 1.22) /// An opaque string that has no specific format, but identifies a specific unique window on the display. - /// - virtual public void SetStackMasterId( System.String id) { - Efl.Ui.WinNativeInherit.efl_ui_win_stack_master_id_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id); + virtual public void SetStackMasterId(System.String id) { + Efl.Ui.Win.NativeMethods.efl_ui_win_stack_master_id_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),id); Eina.Error.RaiseIfUnhandledException(); } /// The stack base state of this window @@ -2278,7 +2647,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if this is a stack base window, false otherwise. virtual public bool GetStackBase() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_stack_base_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_stack_base_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2288,9 +2657,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// This state should be set before a window is shown for the first time and never changed afterwards. /// (Since EFL 1.22) /// true if this is a stack base window, false otherwise. - /// - virtual public void SetStackBase( bool kw_base) { - Efl.Ui.WinNativeInherit.efl_ui_win_stack_base_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_base); + virtual public void SetStackBase(bool kw_base) { + Efl.Ui.Win.NativeMethods.efl_ui_win_stack_base_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_base); Eina.Error.RaiseIfUnhandledException(); } /// Enable quitting the main loop when all windows are closed. @@ -2302,7 +2670,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The exit code to use when exiting. public static Eina.Value GetExitOnAllWindowsClosed() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_exit_on_all_windows_closed_get_ptr.Value.Delegate(); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_exit_on_all_windows_closed_get_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2314,9 +2682,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Note this is different from which exits when a given window is closed. /// (Since EFL 1.22) /// The exit code to use when exiting. - /// - public static void SetExitOnAllWindowsClosed( Eina.Value exit_code) { - Efl.Ui.WinNativeInherit.efl_ui_win_exit_on_all_windows_closed_set_ptr.Value.Delegate( exit_code); + public static void SetExitOnAllWindowsClosed(Eina.Value exit_code) { + Efl.Ui.Win.NativeMethods.efl_ui_win_exit_on_all_windows_closed_set_ptr.Value.Delegate(exit_code); Eina.Error.RaiseIfUnhandledException(); } /// Base size for objects with sizing restrictions. @@ -2328,7 +2695,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Base size (hint) in pixels. virtual public Eina.Size2D GetHintBase() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_hint_base_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_hint_base_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2340,10 +2707,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Base size (hint) in pixels. - /// - virtual public void SetHintBase( Eina.Size2D sz) { + virtual public void SetHintBase(Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Ui.WinNativeInherit.efl_ui_win_hint_base_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_sz); + Efl.Ui.Win.NativeMethods.efl_ui_win_hint_base_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_sz); Eina.Error.RaiseIfUnhandledException(); } /// Step size for objects with sizing restrictions. @@ -2355,7 +2721,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Step size (hint) in pixels. virtual public Eina.Size2D GetHintStep() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_hint_step_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_hint_step_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2367,10 +2733,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// + N x is what is calculated for object sizing restrictions. /// (Since EFL 1.22) /// Step size (hint) in pixels. - /// - virtual public void SetHintStep( Eina.Size2D sz) { + virtual public void SetHintStep(Eina.Size2D sz) { Eina.Size2D.NativeStruct _in_sz = sz; - Efl.Ui.WinNativeInherit.efl_ui_win_hint_step_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_sz); + Efl.Ui.Win.NativeMethods.efl_ui_win_hint_step_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_sz); Eina.Error.RaiseIfUnhandledException(); } /// The rotation of this window @@ -2378,7 +2743,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The rotation of the window virtual public int GetWinRotation() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_rotation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_rotation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2386,16 +2751,15 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The value will automatically change when the WM of this window changes its rotation. This rotation is automatically applied to all objects. /// (Since EFL 1.22) /// The rotation of the window - /// - virtual public void SetWinRotation( int rotation) { - Efl.Ui.WinNativeInherit.efl_ui_win_rotation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), rotation); + virtual public void SetWinRotation(int rotation) { + Efl.Ui.Win.NativeMethods.efl_ui_win_rotation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),rotation); Eina.Error.RaiseIfUnhandledException(); } /// Get the enabled value of the focus highlight for this window. /// (Since EFL 1.22) /// The enabled value for the highlight. virtual public bool GetFocusHighlightEnabled() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_focus_highlight_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_focus_highlight_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2403,9 +2767,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// This function will enable or disable the focus highlight, regardless of the global setting for it. /// (Since EFL 1.22) /// The enabled value for the highlight. - /// - virtual public void SetFocusHighlightEnabled( bool enabled) { - Efl.Ui.WinNativeInherit.efl_ui_win_focus_highlight_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enabled); + virtual public void SetFocusHighlightEnabled(bool enabled) { + Efl.Ui.Win.NativeMethods.efl_ui_win_focus_highlight_enabled_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enabled); Eina.Error.RaiseIfUnhandledException(); } /// Control the widget focus highlight style. @@ -2415,7 +2778,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The name of the focus highlight style. virtual public System.String GetFocusHighlightStyle() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_focus_highlight_style_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_focus_highlight_style_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2426,8 +2789,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The name of the focus highlight style. /// true on success, false otherwise. - virtual public bool SetFocusHighlightStyle( System.String style) { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_focus_highlight_style_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), style); + virtual public bool SetFocusHighlightStyle(System.String style) { + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_focus_highlight_style_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),style); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2435,7 +2798,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The enabled value for the highlight animation. virtual public bool GetFocusHighlightAnimate() { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_focus_highlight_animate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_focus_highlight_animate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2443,17 +2806,15 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// This function will enable or disable the animation of focus highlight. /// (Since EFL 1.22) /// The enabled value for the highlight animation. - /// - virtual public void SetFocusHighlightAnimate( bool animate) { - Efl.Ui.WinNativeInherit.efl_ui_win_focus_highlight_animate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), animate); + virtual public void SetFocusHighlightAnimate(bool animate) { + Efl.Ui.Win.NativeMethods.efl_ui_win_focus_highlight_animate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),animate); Eina.Error.RaiseIfUnhandledException(); } /// Pop (delete) all windows in the stack above this window. /// This will try and delete all the windows in the stack that are above the window. /// (Since EFL 1.22) - /// virtual public void StackPopTo() { - Efl.Ui.WinNativeInherit.efl_ui_win_stack_pop_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Win.NativeMethods.efl_ui_win_stack_pop_to_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Activate a window object. @@ -2461,9 +2822,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// /// Note: This is just a request that a Window Manager may ignore, so calling this function does not ensure in any way that the window will be the active one afterwards. /// (Since EFL 1.22) - /// virtual public void Activate() { - Efl.Ui.WinNativeInherit.efl_ui_win_activate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Win.NativeMethods.efl_ui_win_activate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Center a window on the screen. @@ -2473,9 +2833,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// If true, center horizontally. If false, do not change horizontal location. /// If true, center vertically. If false, do not change vertical location. - /// - virtual public void Center( bool h, bool v) { - Efl.Ui.WinNativeInherit.efl_ui_win_center_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), h, v); + virtual public void Center(bool h, bool v) { + Efl.Ui.Win.NativeMethods.efl_ui_win_center_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),h, v); Eina.Error.RaiseIfUnhandledException(); } /// Start moving or resizing the window. @@ -2495,8 +2854,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The requested move or resize mode. /// true if the request was successfully sent to the display server, false in case of error. - virtual public bool MoveResizeStart( Efl.Ui.WinMoveResizeMode mode) { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_move_resize_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mode); + virtual public bool MoveResizeStart(Efl.Ui.WinMoveResizeMode mode) { + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_move_resize_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mode); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2509,16 +2868,16 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// false by default, true means to include fingers that are currently hovering. /// Iterator to pointer positions - virtual public Eina.Iterator PointerIterate( bool hover) { - var _ret_var = Efl.Ui.WinNativeInherit.efl_ui_win_pointer_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), hover); + virtual public Eina.Iterator PointerIterate(bool hover) { + var _ret_var = Efl.Ui.Win.NativeMethods.efl_ui_win_pointer_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),hover); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } /// A generic configuration value, referred to by name. /// Configuration option name. /// The value. It will be empty if it doesn't exist. The caller must free it after use (using eina_value_free() in C). - virtual public Eina.Value GetConfig( System.String name) { - var _ret_var = Efl.IConfigNativeInherit.efl_config_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Eina.Value GetConfig(System.String name) { + var _ret_var = Efl.IConfigConcrete.NativeMethods.efl_config_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2526,33 +2885,35 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Configuration option name. /// Configuration option value. May be null if not found. /// false in case of error: value type was invalid, the config can't be changed, config does not exist... - virtual public bool SetConfig( System.String name, Eina.Value value) { - var _ret_var = Efl.IConfigNativeInherit.efl_config_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name, value); + virtual public bool SetConfig(System.String name, Eina.Value value) { + var _ret_var = Efl.IConfigConcrete.NativeMethods.efl_config_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name, value); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2561,7 +2922,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The screen size in pixels. virtual public Eina.Size2D GetScreenSizeInPixels() { - var _ret_var = Efl.IScreenNativeInherit.efl_screen_size_in_pixels_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IScreenConcrete.NativeMethods.efl_screen_size_in_pixels_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2572,7 +2933,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The screen scaling factor. virtual public float GetScreenScaleFactor() { - var _ret_var = Efl.IScreenNativeInherit.efl_screen_scale_factor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IScreenConcrete.NativeMethods.efl_screen_scale_factor_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2581,7 +2942,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Screen rotation in degrees. virtual public int GetScreenRotation() { - var _ret_var = Efl.IScreenNativeInherit.efl_screen_rotation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IScreenConcrete.NativeMethods.efl_screen_rotation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2589,9 +2950,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Horizontal DPI. /// Vertical DPI. - /// - virtual public void GetScreenDpi( out int xdpi, out int ydpi) { - Efl.IScreenNativeInherit.efl_screen_dpi_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out xdpi, out ydpi); + virtual public void GetScreenDpi(out int xdpi, out int ydpi) { + Efl.IScreenConcrete.NativeMethods.efl_screen_dpi_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out xdpi, out ydpi); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the text string currently being displayed by the given text object. @@ -2601,7 +2961,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Text string to display on it. virtual public System.String GetText() { - var _ret_var = Efl.ITextNativeInherit.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2609,9 +2969,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// See also . /// (Since EFL 1.22) /// Text string to display on it. - /// - virtual public void SetText( System.String text) { - Efl.ITextNativeInherit.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), text); + virtual public void SetText(System.String text) { + Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text); Eina.Error.RaiseIfUnhandledException(); } /// Get the maximum image size the canvas can possibly handle. @@ -2621,9 +2980,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The maximum image size (in pixels). /// true on success, false otherwise - virtual public bool GetImageMaxSize( out Eina.Size2D max) { + virtual public bool GetImageMaxSize(out Eina.Size2D max) { var _out_max = new Eina.Size2D.NativeStruct(); - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_image_max_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out _out_max); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_image_max_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out _out_max); Eina.Error.RaiseIfUnhandledException(); max = _out_max; return _ret_var; @@ -2632,7 +2991,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// true if currently calculating group objects. virtual public bool GetGroupObjectsCalculating() { - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_group_objects_calculating_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_group_objects_calculating_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2640,8 +2999,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The name of the seat to find. /// The device or seat, null if not found. - virtual public Efl.Input.Device GetDevice( System.String name) { - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), name); + virtual public Efl.Input.Device GetDevice(System.String name) { + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),name); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2649,8 +3008,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The id of the seat to find. /// The seat or null if not found. - virtual public Efl.Input.Device GetSeat( int id) { - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_seat_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id); + virtual public Efl.Input.Device GetSeat(int id) { + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seat_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),id); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2658,7 +3017,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The default seat or null if one does not exist. virtual public Efl.Input.Device GetSeatDefault() { - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_seat_default_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seat_default_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2668,18 +3027,17 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The seat, or null to use the default. /// The pointer position in pixels. /// true if a pointer exists for the given seat, otherwise false. - virtual public bool GetPointerPosition( Efl.Input.Device seat, out Eina.Position2D pos) { + virtual public bool GetPointerPosition(Efl.Input.Device seat, out Eina.Position2D pos) { var _out_pos = new Eina.Position2D.NativeStruct(); - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_pointer_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), seat, out _out_pos); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_pointer_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),seat, out _out_pos); Eina.Error.RaiseIfUnhandledException(); pos = _out_pos; return _ret_var; } /// Call user-provided calculate group functions and unset the flag signalling that the object needs to get recalculated to all group objects in the canvas. /// (Since EFL 1.22) - /// virtual public void CalculateGroupObjects() { - Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_group_objects_calculate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_group_objects_calculate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Retrieve a list of objects at a given position in a canvas. @@ -2691,9 +3049,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The list of objects that are over the given position in e. - virtual public Eina.Iterator GetObjectsAtXy( Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects) { + virtual public Eina.Iterator GetObjectsAtXy(Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Position2D.NativeStruct _in_pos = pos; - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_objects_at_xy_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos, include_pass_events_objects, include_hidden_objects); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_objects_at_xy_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -2706,9 +3064,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The canvas object that is over all other objects at the given position. - virtual public Efl.Gfx.IEntity GetObjectTopAtXy( Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects) { + virtual public Efl.Gfx.IEntity GetObjectTopAtXy(Eina.Position2D pos, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Position2D.NativeStruct _in_pos = pos; - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_object_top_at_xy_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_pos, include_pass_events_objects, include_hidden_objects); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_object_top_at_xy_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2721,9 +3079,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// Iterator to objects - virtual public Eina.Iterator GetObjectsInRectangle( Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects) { + virtual public Eina.Iterator GetObjectsInRectangle(Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Rect.NativeStruct _in_rect = rect; - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_objects_in_rectangle_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect, include_pass_events_objects, include_hidden_objects); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_objects_in_rectangle_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -2736,9 +3094,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Boolean flag to include or not objects which pass events in this calculation. /// Boolean flag to include or not hidden objects in this calculation. /// The object that is over all other objects at the given rectangular region. - virtual public Efl.Gfx.IEntity GetObjectTopInRectangle( Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects) { + virtual public Efl.Gfx.IEntity GetObjectTopInRectangle(Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects) { Eina.Rect.NativeStruct _in_rect = rect; - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_object_top_in_rectangle_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_rect, include_pass_events_objects, include_hidden_objects); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_object_top_in_rectangle_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_rect, include_pass_events_objects, include_hidden_objects); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2747,7 +3105,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the attached seats. virtual public Eina.Iterator Seats() { - var _ret_var = Efl.Canvas.ISceneNativeInherit.efl_canvas_scene_seats_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seats_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true, false); } @@ -2756,8 +3114,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The modifier key to test. /// The seat device, may be null /// true if the key modifier is pressed. - virtual public bool GetModifierEnabled( Efl.Input.Modifier mod, Efl.Input.Device seat) { - var _ret_var = Efl.Input.IStateNativeInherit.efl_input_modifier_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), mod, seat); + virtual public bool GetModifierEnabled(Efl.Input.Modifier mod, Efl.Input.Device seat) { + var _ret_var = Efl.Input.IStateConcrete.NativeMethods.efl_input_modifier_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mod, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2766,8 +3124,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The lock key to test. /// The seat device, may be null /// true if the key lock is on. - virtual public bool GetLockEnabled( Efl.Input.Lock kw_lock, Efl.Input.Device seat) { - var _ret_var = Efl.Input.IStateNativeInherit.efl_input_lock_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), kw_lock, seat); + virtual public bool GetLockEnabled(Efl.Input.Lock kw_lock, Efl.Input.Device seat) { + var _ret_var = Efl.Input.IStateConcrete.NativeMethods.efl_input_lock_enabled_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),kw_lock, seat); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2776,8 +3134,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The logical root object for focus. /// The focus manager. - virtual public Efl.Ui.Focus.IManager FocusManagerCreate( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.IWidgetFocusManagerNativeInherit.efl_ui_widget_focus_manager_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods.efl_ui_widget_focus_manager_create_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2786,7 +3144,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Currently focused element. virtual public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2794,9 +3152,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. - /// - virtual public void SetManagerFocus( Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), focus); + virtual public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. @@ -2804,7 +3161,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The redirect manager. virtual public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2812,9 +3169,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. - /// - virtual public void SetRedirect( Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), redirect); + virtual public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. @@ -2822,7 +3178,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the border objects. virtual public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -2831,9 +3187,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. - virtual public Eina.Iterator GetViewportElements( Eina.Rect viewport) { + virtual public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_viewport); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -2842,7 +3198,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. virtual public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2851,8 +3207,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node - virtual public bool SetRoot( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2861,8 +3217,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. - virtual public Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction); + virtual public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2872,8 +3228,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. - virtual public Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, child, logical); + virtual public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2882,8 +3238,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. - virtual public Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), root); + virtual public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2892,8 +3248,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. - virtual public Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), child); + virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); @@ -2904,24 +3260,22 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Last object. virtual public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) - /// virtual public void ResetHistory() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) - /// virtual public void PopHistoryStack() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. @@ -2929,48 +3283,45 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. - /// - virtual public void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), direction, entry); + virtual public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) - /// virtual public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) - /// virtual public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// In some environments you may have an indicator that shows battery status, reception, time etc. This is the indicator. /// Sometimes you don't want this because you provide the same functionality inside your app, so this will request that the indicator is disabled in such circumstances. The default settings depends on the environment. For example, on phones, the default is to enable the indicator. The indicator is disabled on devices like televisions however. /// (Since EFL 1.22) -/// The mype, one of . +/// The type, one of . public Efl.Ui.WinIndicatorMode IndicatorMode { get { return GetIndicatorMode(); } - set { SetIndicatorMode( value); } + set { SetIndicatorMode(value); } } /// Get the keyboard mode of the window. /// (Since EFL 1.22) /// The mode, one of . public Efl.Ui.WinKeyboardMode KeyboardMode { get { return GetKeyboardMode(); } - set { SetKeyboardMode( value); } + set { SetKeyboardMode(value); } } /// Available profiles on a window. /// (Since EFL 1.22) /// A list of profiles. public Eina.Array WmAvailableProfiles { get { return GetWmAvailableProfiles(); } - set { SetWmAvailableProfiles( value); } + set { SetWmAvailableProfiles(value); } } /// Get the constraints on the maximum width and height of a window relative to the width and height of the screen. /// When this function returns true, obj will never resize larger than the screen. @@ -2978,7 +3329,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// true to restrict the window's maximum size. public bool ScreenConstrain { get { return GetScreenConstrain(); } - set { SetScreenConstrain( value); } + set { SetScreenConstrain(value); } } /// Set the window to be skipped by keyboard focus. /// This sets the window to be skipped by normal keyboard input. This means a window manager will be asked not to focus this window as well as omit it from things like the taskbar, pager, "alt-tab" list etc. etc. @@ -2989,7 +3340,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The skip flag state (true if it is to be skipped). public bool PropFocusSkip { - set { SetPropFocusSkip( value); } + set { SetPropFocusSkip(value); } } /// Window's autohide state. /// When closing the window in any way outside of the program control, like pressing the X button in the titlebar or using a command from the Window Manager, a "delete,request" signal is emitted to indicate that this event occurred and the developer can take any action, which may include, or not, destroying the window object. @@ -3003,7 +3354,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// If true, the window will automatically hide itself when closed. public bool Autohide { get { return GetAutohide(); } - set { SetAutohide( value); } + set { SetAutohide(value); } } /// Enable quitting the main loop when this window is closed. /// When set, the window's loop object will exit using the passed exit code if the window is closed. @@ -3015,7 +3366,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The exit code to use when exiting public Eina.Value ExitOnClose { get { return GetExitOnClose(); } - set { SetExitOnClose( value); } + set { SetExitOnClose(value); } } /// Get the icon object used for the window. /// The object returns is the one marked by as the object to use for the window icon. @@ -3023,56 +3374,56 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The image object to use for an icon. public Efl.Canvas.Object IconObject { get { return GetIconObject(); } - set { SetIconObject( value); } + set { SetIconObject(value); } } /// Get the minimized state of a window. /// (Since EFL 1.22) /// If true, the window is minimized. public bool Minimized { get { return GetMinimized(); } - set { SetMinimized( value); } + set { SetMinimized(value); } } /// Get the maximized state of a window. /// (Since EFL 1.22) /// If true, the window is maximized. public bool Maximized { get { return GetMaximized(); } - set { SetMaximized( value); } + set { SetMaximized(value); } } /// Get the fullscreen state of a window. /// (Since EFL 1.22) /// If true, the window is fullscreen. public bool Fullscreen { get { return GetFullscreen(); } - set { SetFullscreen( value); } + set { SetFullscreen(value); } } /// Get the sticky state of the window. /// (Since EFL 1.22) /// If true, the window's sticky state is enabled. public bool Sticky { get { return GetSticky(); } - set { SetSticky( value); } + set { SetSticky(value); } } /// Get the urgent state of a window. /// (Since EFL 1.22) /// The mode of a urgent window, one of . public Efl.Ui.WinUrgentMode Urgent { get { return GetUrgent(); } - set { SetUrgent( value); } + set { SetUrgent(value); } } /// Get the modal state of a window. /// (Since EFL 1.22) /// The mode of a window, one of . public Efl.Ui.WinModalMode Modal { get { return GetModal(); } - set { SetModal( value); } + set { SetModal(value); } } /// Get the borderless state of a window. /// (Since EFL 1.22) /// If true, the window is borderless. public bool Borderless { get { return GetBorderless(); } - set { SetBorderless( value); } + set { SetBorderless(value); } } /// The role of the window. /// It is a hint of how the Window Manager should handle it. Unlike and this can be changed at runtime. @@ -3080,7 +3431,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The role to set. public System.String WinRole { get { return GetWinRole(); } - set { SetWinRole( value); } + set { SetWinRole(value); } } /// The window name. /// The meaning of name depends on the underlying windowing system. @@ -3092,7 +3443,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Window name public System.String WinName { get { return GetWinName(); } - set { SetWinName( value); } + set { SetWinName(value); } } /// The type of the window. /// It is a hint of how the Window Manager should handle it. @@ -3104,7 +3455,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Window type public Efl.Ui.WinType WinType { get { return GetWinType(); } - set { SetWinType( value); } + set { SetWinType(value); } } /// The hardware acceleration preference for this window. /// This is a constructor function and can only be called before . @@ -3128,14 +3479,14 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Acceleration public System.String AccelPreference { get { return GetAccelPreference(); } - set { SetAccelPreference( value); } + set { SetAccelPreference(value); } } /// Get the alpha channel state of a window. /// (Since EFL 1.22) /// true if the window alpha channel is enabled, false otherwise. public bool Alpha { get { return GetAlpha(); } - set { SetAlpha( value); } + set { SetAlpha(value); } } /// Get the stack ID string of the window as an opaque string. /// This ID is immutable and can never be modified. It will be an opaque string that has no specific defined format or content other than being a string (no character with a value of 0). @@ -3151,7 +3502,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// An opaque string that has no specific format, but identifies a specific unique window on the display. public System.String StackMasterId { get { return GetStackMasterId(); } - set { SetStackMasterId( value); } + set { SetStackMasterId(value); } } /// The stack base state of this window /// This is a boolean flag that determines if this window will become the base of a stack at all. You must enable this on a base (the bottom of a window stack) for things to work correctly. @@ -3161,7 +3512,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// true if this is a stack base window, false otherwise. public bool StackBase { get { return GetStackBase(); } - set { SetStackBase( value); } + set { SetStackBase(value); } } /// Enable quitting the main loop when all windows are closed. /// When set, the main loop will quit with the passed exit code once all windows have been closed. @@ -3173,7 +3524,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The exit code to use when exiting. public static Eina.Value ExitOnAllWindowsClosed { get { return GetExitOnAllWindowsClosed(); } - set { SetExitOnAllWindowsClosed( value); } + set { SetExitOnAllWindowsClosed(value); } } /// Base size for objects with sizing restrictions. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. @@ -3185,7 +3536,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Base size (hint) in pixels. public Eina.Size2D HintBase { get { return GetHintBase(); } - set { SetHintBase( value); } + set { SetHintBase(value); } } /// Step size for objects with sizing restrictions. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. @@ -3197,7 +3548,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Step size (hint) in pixels. public Eina.Size2D HintStep { get { return GetHintStep(); } - set { SetHintStep( value); } + set { SetHintStep(value); } } /// The rotation of this window /// The value will automatically change when the WM of this window changes its rotation. This rotation is automatically applied to all objects. @@ -3205,7 +3556,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The rotation of the window public int WinRotation { get { return GetWinRotation(); } - set { SetWinRotation( value); } + set { SetWinRotation(value); } } /// Whether focus highlight is enabled or not. /// See also . See also . @@ -3213,7 +3564,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The enabled value for the highlight. public bool FocusHighlightEnabled { get { return GetFocusHighlightEnabled(); } - set { SetFocusHighlightEnabled( value); } + set { SetFocusHighlightEnabled(value); } } /// Control the widget focus highlight style. /// If style is null, the default will be used. @@ -3223,7 +3574,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The name of the focus highlight style. public System.String FocusHighlightStyle { get { return GetFocusHighlightStyle(); } - set { SetFocusHighlightStyle( value); } + set { SetFocusHighlightStyle(value); } } /// Whether focus highlight should animate or not. /// See also . See also . @@ -3231,14 +3582,15 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The enabled value for the highlight animation. public bool FocusHighlightAnimate { get { return GetFocusHighlightAnimate(); } - set { SetFocusHighlightAnimate( value); } + set { SetFocusHighlightAnimate(value); } } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// Get screen size (in pixels) for the screen. /// Note that on some display systems this information is not available and a value of 0x0 will be returned. @@ -3284,7 +3636,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } - set { SetManagerFocus( value); } + set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. @@ -3292,7 +3644,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } - set { SetRedirect( value); } + set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See @@ -3307,3154 +3659,5008 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } - set { SetRoot( value); } + set { SetRoot(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Win.efl_ui_win_class_get(); } -} -public class WinNativeInherit : Efl.Ui.WidgetNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_win_indicator_mode_get_static_delegate == null) - efl_ui_win_indicator_mode_get_static_delegate = new efl_ui_win_indicator_mode_get_delegate(indicator_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetIndicatorMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_indicator_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_indicator_mode_get_static_delegate)}); - if (efl_ui_win_indicator_mode_set_static_delegate == null) - efl_ui_win_indicator_mode_set_static_delegate = new efl_ui_win_indicator_mode_set_delegate(indicator_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetIndicatorMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_indicator_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_indicator_mode_set_static_delegate)}); - if (efl_ui_win_keyboard_mode_get_static_delegate == null) - efl_ui_win_keyboard_mode_get_static_delegate = new efl_ui_win_keyboard_mode_get_delegate(keyboard_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetKeyboardMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_keyboard_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_keyboard_mode_get_static_delegate)}); - if (efl_ui_win_keyboard_mode_set_static_delegate == null) - efl_ui_win_keyboard_mode_set_static_delegate = new efl_ui_win_keyboard_mode_set_delegate(keyboard_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetKeyboardMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_keyboard_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_keyboard_mode_set_static_delegate)}); - if (efl_ui_win_wm_available_rotations_get_static_delegate == null) - efl_ui_win_wm_available_rotations_get_static_delegate = new efl_ui_win_wm_available_rotations_get_delegate(wm_available_rotations_get); - if (methods.FirstOrDefault(m => m.Name == "GetWmAvailableRotations") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_wm_available_rotations_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_wm_available_rotations_get_static_delegate)}); - if (efl_ui_win_wm_available_rotations_set_static_delegate == null) - efl_ui_win_wm_available_rotations_set_static_delegate = new efl_ui_win_wm_available_rotations_set_delegate(wm_available_rotations_set); - if (methods.FirstOrDefault(m => m.Name == "SetWmAvailableRotations") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_wm_available_rotations_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_wm_available_rotations_set_static_delegate)}); - if (efl_ui_win_wm_available_profiles_get_static_delegate == null) - efl_ui_win_wm_available_profiles_get_static_delegate = new efl_ui_win_wm_available_profiles_get_delegate(wm_available_profiles_get); - if (methods.FirstOrDefault(m => m.Name == "GetWmAvailableProfiles") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_wm_available_profiles_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_wm_available_profiles_get_static_delegate)}); - if (efl_ui_win_wm_available_profiles_set_static_delegate == null) - efl_ui_win_wm_available_profiles_set_static_delegate = new efl_ui_win_wm_available_profiles_set_delegate(wm_available_profiles_set); - if (methods.FirstOrDefault(m => m.Name == "SetWmAvailableProfiles") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_wm_available_profiles_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_wm_available_profiles_set_static_delegate)}); - if (efl_ui_win_screen_constrain_get_static_delegate == null) - efl_ui_win_screen_constrain_get_static_delegate = new efl_ui_win_screen_constrain_get_delegate(screen_constrain_get); - if (methods.FirstOrDefault(m => m.Name == "GetScreenConstrain") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_screen_constrain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_screen_constrain_get_static_delegate)}); - if (efl_ui_win_screen_constrain_set_static_delegate == null) - efl_ui_win_screen_constrain_set_static_delegate = new efl_ui_win_screen_constrain_set_delegate(screen_constrain_set); - if (methods.FirstOrDefault(m => m.Name == "SetScreenConstrain") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_screen_constrain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_screen_constrain_set_static_delegate)}); - if (efl_ui_win_prop_focus_skip_set_static_delegate == null) - efl_ui_win_prop_focus_skip_set_static_delegate = new efl_ui_win_prop_focus_skip_set_delegate(prop_focus_skip_set); - if (methods.FirstOrDefault(m => m.Name == "SetPropFocusSkip") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_prop_focus_skip_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_prop_focus_skip_set_static_delegate)}); - if (efl_ui_win_autohide_get_static_delegate == null) - efl_ui_win_autohide_get_static_delegate = new efl_ui_win_autohide_get_delegate(autohide_get); - if (methods.FirstOrDefault(m => m.Name == "GetAutohide") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_autohide_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_autohide_get_static_delegate)}); - if (efl_ui_win_autohide_set_static_delegate == null) - efl_ui_win_autohide_set_static_delegate = new efl_ui_win_autohide_set_delegate(autohide_set); - if (methods.FirstOrDefault(m => m.Name == "SetAutohide") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_autohide_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_autohide_set_static_delegate)}); - if (efl_ui_win_exit_on_close_get_static_delegate == null) - efl_ui_win_exit_on_close_get_static_delegate = new efl_ui_win_exit_on_close_get_delegate(exit_on_close_get); - if (methods.FirstOrDefault(m => m.Name == "GetExitOnClose") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_exit_on_close_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_exit_on_close_get_static_delegate)}); - if (efl_ui_win_exit_on_close_set_static_delegate == null) - efl_ui_win_exit_on_close_set_static_delegate = new efl_ui_win_exit_on_close_set_delegate(exit_on_close_set); - if (methods.FirstOrDefault(m => m.Name == "SetExitOnClose") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_exit_on_close_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_exit_on_close_set_static_delegate)}); - if (efl_ui_win_icon_object_get_static_delegate == null) - efl_ui_win_icon_object_get_static_delegate = new efl_ui_win_icon_object_get_delegate(icon_object_get); - if (methods.FirstOrDefault(m => m.Name == "GetIconObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_icon_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_icon_object_get_static_delegate)}); - if (efl_ui_win_icon_object_set_static_delegate == null) - efl_ui_win_icon_object_set_static_delegate = new efl_ui_win_icon_object_set_delegate(icon_object_set); - if (methods.FirstOrDefault(m => m.Name == "SetIconObject") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_icon_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_icon_object_set_static_delegate)}); - if (efl_ui_win_minimized_get_static_delegate == null) - efl_ui_win_minimized_get_static_delegate = new efl_ui_win_minimized_get_delegate(minimized_get); - if (methods.FirstOrDefault(m => m.Name == "GetMinimized") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_minimized_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_minimized_get_static_delegate)}); - if (efl_ui_win_minimized_set_static_delegate == null) - efl_ui_win_minimized_set_static_delegate = new efl_ui_win_minimized_set_delegate(minimized_set); - if (methods.FirstOrDefault(m => m.Name == "SetMinimized") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_minimized_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_minimized_set_static_delegate)}); - if (efl_ui_win_maximized_get_static_delegate == null) - efl_ui_win_maximized_get_static_delegate = new efl_ui_win_maximized_get_delegate(maximized_get); - if (methods.FirstOrDefault(m => m.Name == "GetMaximized") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_maximized_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_maximized_get_static_delegate)}); - if (efl_ui_win_maximized_set_static_delegate == null) - efl_ui_win_maximized_set_static_delegate = new efl_ui_win_maximized_set_delegate(maximized_set); - if (methods.FirstOrDefault(m => m.Name == "SetMaximized") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_maximized_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_maximized_set_static_delegate)}); - if (efl_ui_win_fullscreen_get_static_delegate == null) - efl_ui_win_fullscreen_get_static_delegate = new efl_ui_win_fullscreen_get_delegate(fullscreen_get); - if (methods.FirstOrDefault(m => m.Name == "GetFullscreen") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_fullscreen_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_fullscreen_get_static_delegate)}); - if (efl_ui_win_fullscreen_set_static_delegate == null) - efl_ui_win_fullscreen_set_static_delegate = new efl_ui_win_fullscreen_set_delegate(fullscreen_set); - if (methods.FirstOrDefault(m => m.Name == "SetFullscreen") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_fullscreen_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_fullscreen_set_static_delegate)}); - if (efl_ui_win_sticky_get_static_delegate == null) - efl_ui_win_sticky_get_static_delegate = new efl_ui_win_sticky_get_delegate(sticky_get); - if (methods.FirstOrDefault(m => m.Name == "GetSticky") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_sticky_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_sticky_get_static_delegate)}); - if (efl_ui_win_sticky_set_static_delegate == null) - efl_ui_win_sticky_set_static_delegate = new efl_ui_win_sticky_set_delegate(sticky_set); - if (methods.FirstOrDefault(m => m.Name == "SetSticky") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_sticky_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_sticky_set_static_delegate)}); - if (efl_ui_win_urgent_get_static_delegate == null) - efl_ui_win_urgent_get_static_delegate = new efl_ui_win_urgent_get_delegate(urgent_get); - if (methods.FirstOrDefault(m => m.Name == "GetUrgent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_urgent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_urgent_get_static_delegate)}); - if (efl_ui_win_urgent_set_static_delegate == null) - efl_ui_win_urgent_set_static_delegate = new efl_ui_win_urgent_set_delegate(urgent_set); - if (methods.FirstOrDefault(m => m.Name == "SetUrgent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_urgent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_urgent_set_static_delegate)}); - if (efl_ui_win_modal_get_static_delegate == null) - efl_ui_win_modal_get_static_delegate = new efl_ui_win_modal_get_delegate(modal_get); - if (methods.FirstOrDefault(m => m.Name == "GetModal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_modal_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_modal_get_static_delegate)}); - if (efl_ui_win_modal_set_static_delegate == null) - efl_ui_win_modal_set_static_delegate = new efl_ui_win_modal_set_delegate(modal_set); - if (methods.FirstOrDefault(m => m.Name == "SetModal") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_modal_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_modal_set_static_delegate)}); - if (efl_ui_win_borderless_get_static_delegate == null) - efl_ui_win_borderless_get_static_delegate = new efl_ui_win_borderless_get_delegate(borderless_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderless") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_borderless_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_borderless_get_static_delegate)}); - if (efl_ui_win_borderless_set_static_delegate == null) - efl_ui_win_borderless_set_static_delegate = new efl_ui_win_borderless_set_delegate(borderless_set); - if (methods.FirstOrDefault(m => m.Name == "SetBorderless") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_borderless_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_borderless_set_static_delegate)}); - if (efl_ui_win_role_get_static_delegate == null) - efl_ui_win_role_get_static_delegate = new efl_ui_win_role_get_delegate(win_role_get); - if (methods.FirstOrDefault(m => m.Name == "GetWinRole") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_role_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_role_get_static_delegate)}); - if (efl_ui_win_role_set_static_delegate == null) - efl_ui_win_role_set_static_delegate = new efl_ui_win_role_set_delegate(win_role_set); - if (methods.FirstOrDefault(m => m.Name == "SetWinRole") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_role_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_role_set_static_delegate)}); - if (efl_ui_win_name_get_static_delegate == null) - efl_ui_win_name_get_static_delegate = new efl_ui_win_name_get_delegate(win_name_get); - if (methods.FirstOrDefault(m => m.Name == "GetWinName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_name_get_static_delegate)}); - if (efl_ui_win_name_set_static_delegate == null) - efl_ui_win_name_set_static_delegate = new efl_ui_win_name_set_delegate(win_name_set); - if (methods.FirstOrDefault(m => m.Name == "SetWinName") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_name_set_static_delegate)}); - if (efl_ui_win_type_get_static_delegate == null) - efl_ui_win_type_get_static_delegate = new efl_ui_win_type_get_delegate(win_type_get); - if (methods.FirstOrDefault(m => m.Name == "GetWinType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_type_get_static_delegate)}); - if (efl_ui_win_type_set_static_delegate == null) - efl_ui_win_type_set_static_delegate = new efl_ui_win_type_set_delegate(win_type_set); - if (methods.FirstOrDefault(m => m.Name == "SetWinType") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_type_set_static_delegate)}); - if (efl_ui_win_accel_preference_get_static_delegate == null) - efl_ui_win_accel_preference_get_static_delegate = new efl_ui_win_accel_preference_get_delegate(accel_preference_get); - if (methods.FirstOrDefault(m => m.Name == "GetAccelPreference") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_accel_preference_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_accel_preference_get_static_delegate)}); - if (efl_ui_win_accel_preference_set_static_delegate == null) - efl_ui_win_accel_preference_set_static_delegate = new efl_ui_win_accel_preference_set_delegate(accel_preference_set); - if (methods.FirstOrDefault(m => m.Name == "SetAccelPreference") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_accel_preference_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_accel_preference_set_static_delegate)}); - if (efl_ui_win_alpha_get_static_delegate == null) - efl_ui_win_alpha_get_static_delegate = new efl_ui_win_alpha_get_delegate(alpha_get); - if (methods.FirstOrDefault(m => m.Name == "GetAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_alpha_get_static_delegate)}); - if (efl_ui_win_alpha_set_static_delegate == null) - efl_ui_win_alpha_set_static_delegate = new efl_ui_win_alpha_set_delegate(alpha_set); - if (methods.FirstOrDefault(m => m.Name == "SetAlpha") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_alpha_set_static_delegate)}); - if (efl_ui_win_stack_id_get_static_delegate == null) - efl_ui_win_stack_id_get_static_delegate = new efl_ui_win_stack_id_get_delegate(stack_id_get); - if (methods.FirstOrDefault(m => m.Name == "GetStackId") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_stack_id_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_id_get_static_delegate)}); - if (efl_ui_win_stack_master_id_get_static_delegate == null) - efl_ui_win_stack_master_id_get_static_delegate = new efl_ui_win_stack_master_id_get_delegate(stack_master_id_get); - if (methods.FirstOrDefault(m => m.Name == "GetStackMasterId") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_stack_master_id_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_master_id_get_static_delegate)}); - if (efl_ui_win_stack_master_id_set_static_delegate == null) - efl_ui_win_stack_master_id_set_static_delegate = new efl_ui_win_stack_master_id_set_delegate(stack_master_id_set); - if (methods.FirstOrDefault(m => m.Name == "SetStackMasterId") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_stack_master_id_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_master_id_set_static_delegate)}); - if (efl_ui_win_stack_base_get_static_delegate == null) - efl_ui_win_stack_base_get_static_delegate = new efl_ui_win_stack_base_get_delegate(stack_base_get); - if (methods.FirstOrDefault(m => m.Name == "GetStackBase") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_stack_base_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_base_get_static_delegate)}); - if (efl_ui_win_stack_base_set_static_delegate == null) - efl_ui_win_stack_base_set_static_delegate = new efl_ui_win_stack_base_set_delegate(stack_base_set); - if (methods.FirstOrDefault(m => m.Name == "SetStackBase") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_stack_base_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_base_set_static_delegate)}); - if (efl_ui_win_hint_base_get_static_delegate == null) - efl_ui_win_hint_base_get_static_delegate = new efl_ui_win_hint_base_get_delegate(hint_base_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintBase") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_hint_base_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_hint_base_get_static_delegate)}); - if (efl_ui_win_hint_base_set_static_delegate == null) - efl_ui_win_hint_base_set_static_delegate = new efl_ui_win_hint_base_set_delegate(hint_base_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintBase") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_hint_base_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_hint_base_set_static_delegate)}); - if (efl_ui_win_hint_step_get_static_delegate == null) - efl_ui_win_hint_step_get_static_delegate = new efl_ui_win_hint_step_get_delegate(hint_step_get); - if (methods.FirstOrDefault(m => m.Name == "GetHintStep") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_hint_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_hint_step_get_static_delegate)}); - if (efl_ui_win_hint_step_set_static_delegate == null) - efl_ui_win_hint_step_set_static_delegate = new efl_ui_win_hint_step_set_delegate(hint_step_set); - if (methods.FirstOrDefault(m => m.Name == "SetHintStep") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_hint_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_hint_step_set_static_delegate)}); - if (efl_ui_win_rotation_get_static_delegate == null) - efl_ui_win_rotation_get_static_delegate = new efl_ui_win_rotation_get_delegate(win_rotation_get); - if (methods.FirstOrDefault(m => m.Name == "GetWinRotation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_rotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_rotation_get_static_delegate)}); - if (efl_ui_win_rotation_set_static_delegate == null) - efl_ui_win_rotation_set_static_delegate = new efl_ui_win_rotation_set_delegate(win_rotation_set); - if (methods.FirstOrDefault(m => m.Name == "SetWinRotation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_rotation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_rotation_set_static_delegate)}); - if (efl_ui_win_focus_highlight_enabled_get_static_delegate == null) - efl_ui_win_focus_highlight_enabled_get_static_delegate = new efl_ui_win_focus_highlight_enabled_get_delegate(focus_highlight_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusHighlightEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_focus_highlight_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_enabled_get_static_delegate)}); - if (efl_ui_win_focus_highlight_enabled_set_static_delegate == null) - efl_ui_win_focus_highlight_enabled_set_static_delegate = new efl_ui_win_focus_highlight_enabled_set_delegate(focus_highlight_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocusHighlightEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_focus_highlight_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_enabled_set_static_delegate)}); - if (efl_ui_win_focus_highlight_style_get_static_delegate == null) - efl_ui_win_focus_highlight_style_get_static_delegate = new efl_ui_win_focus_highlight_style_get_delegate(focus_highlight_style_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusHighlightStyle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_focus_highlight_style_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_style_get_static_delegate)}); - if (efl_ui_win_focus_highlight_style_set_static_delegate == null) - efl_ui_win_focus_highlight_style_set_static_delegate = new efl_ui_win_focus_highlight_style_set_delegate(focus_highlight_style_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocusHighlightStyle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_focus_highlight_style_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_style_set_static_delegate)}); - if (efl_ui_win_focus_highlight_animate_get_static_delegate == null) - efl_ui_win_focus_highlight_animate_get_static_delegate = new efl_ui_win_focus_highlight_animate_get_delegate(focus_highlight_animate_get); - if (methods.FirstOrDefault(m => m.Name == "GetFocusHighlightAnimate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_focus_highlight_animate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_animate_get_static_delegate)}); - if (efl_ui_win_focus_highlight_animate_set_static_delegate == null) - efl_ui_win_focus_highlight_animate_set_static_delegate = new efl_ui_win_focus_highlight_animate_set_delegate(focus_highlight_animate_set); - if (methods.FirstOrDefault(m => m.Name == "SetFocusHighlightAnimate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_focus_highlight_animate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_animate_set_static_delegate)}); - if (efl_ui_win_stack_pop_to_static_delegate == null) - efl_ui_win_stack_pop_to_static_delegate = new efl_ui_win_stack_pop_to_delegate(stack_pop_to); - if (methods.FirstOrDefault(m => m.Name == "StackPopTo") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_stack_pop_to"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_pop_to_static_delegate)}); - if (efl_ui_win_activate_static_delegate == null) - efl_ui_win_activate_static_delegate = new efl_ui_win_activate_delegate(activate); - if (methods.FirstOrDefault(m => m.Name == "Activate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_activate"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_activate_static_delegate)}); - if (efl_ui_win_center_static_delegate == null) - efl_ui_win_center_static_delegate = new efl_ui_win_center_delegate(center); - if (methods.FirstOrDefault(m => m.Name == "Center") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_center"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_center_static_delegate)}); - if (efl_ui_win_move_resize_start_static_delegate == null) - efl_ui_win_move_resize_start_static_delegate = new efl_ui_win_move_resize_start_delegate(move_resize_start); - if (methods.FirstOrDefault(m => m.Name == "MoveResizeStart") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_move_resize_start"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_move_resize_start_static_delegate)}); - if (efl_ui_win_pointer_iterate_static_delegate == null) - efl_ui_win_pointer_iterate_static_delegate = new efl_ui_win_pointer_iterate_delegate(pointer_iterate); - if (methods.FirstOrDefault(m => m.Name == "PointerIterate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_pointer_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_pointer_iterate_static_delegate)}); - if (efl_config_get_static_delegate == null) - efl_config_get_static_delegate = new efl_config_get_delegate(config_get); - if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_get_static_delegate)}); - if (efl_config_set_static_delegate == null) - efl_config_set_static_delegate = new efl_config_set_delegate(config_set); - if (methods.FirstOrDefault(m => m.Name == "SetConfig") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_set_static_delegate)}); - if (efl_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_screen_size_in_pixels_get_static_delegate == null) - efl_screen_size_in_pixels_get_static_delegate = new efl_screen_size_in_pixels_get_delegate(screen_size_in_pixels_get); - if (methods.FirstOrDefault(m => m.Name == "GetScreenSizeInPixels") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_screen_size_in_pixels_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_size_in_pixels_get_static_delegate)}); - if (efl_screen_scale_factor_get_static_delegate == null) - efl_screen_scale_factor_get_static_delegate = new efl_screen_scale_factor_get_delegate(screen_scale_factor_get); - if (methods.FirstOrDefault(m => m.Name == "GetScreenScaleFactor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_screen_scale_factor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_scale_factor_get_static_delegate)}); - if (efl_screen_rotation_get_static_delegate == null) - efl_screen_rotation_get_static_delegate = new efl_screen_rotation_get_delegate(screen_rotation_get); - if (methods.FirstOrDefault(m => m.Name == "GetScreenRotation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_screen_rotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_rotation_get_static_delegate)}); - if (efl_screen_dpi_get_static_delegate == null) - efl_screen_dpi_get_static_delegate = new efl_screen_dpi_get_delegate(screen_dpi_get); - if (methods.FirstOrDefault(m => m.Name == "GetScreenDpi") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_screen_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_dpi_get_static_delegate)}); - if (efl_text_get_static_delegate == null) - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate)}); - if (efl_text_set_static_delegate == null) - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate)}); - if (efl_canvas_scene_image_max_size_get_static_delegate == null) - efl_canvas_scene_image_max_size_get_static_delegate = new efl_canvas_scene_image_max_size_get_delegate(image_max_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetImageMaxSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_image_max_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_image_max_size_get_static_delegate)}); - if (efl_canvas_scene_group_objects_calculating_get_static_delegate == null) - efl_canvas_scene_group_objects_calculating_get_static_delegate = new efl_canvas_scene_group_objects_calculating_get_delegate(group_objects_calculating_get); - if (methods.FirstOrDefault(m => m.Name == "GetGroupObjectsCalculating") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_group_objects_calculating_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_group_objects_calculating_get_static_delegate)}); - if (efl_canvas_scene_device_get_static_delegate == null) - efl_canvas_scene_device_get_static_delegate = new efl_canvas_scene_device_get_delegate(device_get); - if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_device_get_static_delegate)}); - if (efl_canvas_scene_seat_get_static_delegate == null) - efl_canvas_scene_seat_get_static_delegate = new efl_canvas_scene_seat_get_delegate(seat_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeat") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_seat_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seat_get_static_delegate)}); - if (efl_canvas_scene_seat_default_get_static_delegate == null) - efl_canvas_scene_seat_default_get_static_delegate = new efl_canvas_scene_seat_default_get_delegate(seat_default_get); - if (methods.FirstOrDefault(m => m.Name == "GetSeatDefault") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_seat_default_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seat_default_get_static_delegate)}); - if (efl_canvas_scene_pointer_position_get_static_delegate == null) - efl_canvas_scene_pointer_position_get_static_delegate = new efl_canvas_scene_pointer_position_get_delegate(pointer_position_get); - if (methods.FirstOrDefault(m => m.Name == "GetPointerPosition") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_pointer_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_pointer_position_get_static_delegate)}); - if (efl_canvas_scene_group_objects_calculate_static_delegate == null) - efl_canvas_scene_group_objects_calculate_static_delegate = new efl_canvas_scene_group_objects_calculate_delegate(group_objects_calculate); - if (methods.FirstOrDefault(m => m.Name == "CalculateGroupObjects") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_group_objects_calculate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_group_objects_calculate_static_delegate)}); - if (efl_canvas_scene_objects_at_xy_get_static_delegate == null) - efl_canvas_scene_objects_at_xy_get_static_delegate = new efl_canvas_scene_objects_at_xy_get_delegate(objects_at_xy_get); - if (methods.FirstOrDefault(m => m.Name == "GetObjectsAtXy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_objects_at_xy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_objects_at_xy_get_static_delegate)}); - if (efl_canvas_scene_object_top_at_xy_get_static_delegate == null) - efl_canvas_scene_object_top_at_xy_get_static_delegate = new efl_canvas_scene_object_top_at_xy_get_delegate(object_top_at_xy_get); - if (methods.FirstOrDefault(m => m.Name == "GetObjectTopAtXy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_object_top_at_xy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_object_top_at_xy_get_static_delegate)}); - if (efl_canvas_scene_objects_in_rectangle_get_static_delegate == null) - efl_canvas_scene_objects_in_rectangle_get_static_delegate = new efl_canvas_scene_objects_in_rectangle_get_delegate(objects_in_rectangle_get); - if (methods.FirstOrDefault(m => m.Name == "GetObjectsInRectangle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_objects_in_rectangle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_objects_in_rectangle_get_static_delegate)}); - if (efl_canvas_scene_object_top_in_rectangle_get_static_delegate == null) - efl_canvas_scene_object_top_in_rectangle_get_static_delegate = new efl_canvas_scene_object_top_in_rectangle_get_delegate(object_top_in_rectangle_get); - if (methods.FirstOrDefault(m => m.Name == "GetObjectTopInRectangle") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_object_top_in_rectangle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_object_top_in_rectangle_get_static_delegate)}); - if (efl_canvas_scene_seats_static_delegate == null) - efl_canvas_scene_seats_static_delegate = new efl_canvas_scene_seats_delegate(seats); - if (methods.FirstOrDefault(m => m.Name == "Seats") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_canvas_scene_seats"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seats_static_delegate)}); - if (efl_input_modifier_enabled_get_static_delegate == null) - efl_input_modifier_enabled_get_static_delegate = new efl_input_modifier_enabled_get_delegate(modifier_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetModifierEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_modifier_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_modifier_enabled_get_static_delegate)}); - if (efl_input_lock_enabled_get_static_delegate == null) - efl_input_lock_enabled_get_static_delegate = new efl_input_lock_enabled_get_delegate(lock_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetLockEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_lock_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_lock_enabled_get_static_delegate)}); - if (efl_ui_widget_focus_manager_create_static_delegate == null) - efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); - if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate)}); - if (efl_ui_focus_manager_focus_get_static_delegate == null) - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate)}); - if (efl_ui_focus_manager_focus_set_static_delegate == null) - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate)}); - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate)}); - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate)}); - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate)}); - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate)}); - if (efl_ui_focus_manager_root_get_static_delegate == null) - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate)}); - if (efl_ui_focus_manager_root_set_static_delegate == null) - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate)}); - if (efl_ui_focus_manager_move_static_delegate == null) - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate)}); - if (efl_ui_focus_manager_request_move_static_delegate == null) - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate)}); - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate)}); - if (efl_ui_focus_manager_fetch_static_delegate == null) - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate)}); - if (efl_ui_focus_manager_logical_end_static_delegate == null) - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate)}); - if (efl_ui_focus_manager_reset_history_static_delegate == null) - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate)}); - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate)}); - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.Win.efl_ui_win_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Widget.NativeMethods { - return Efl.Ui.Win.efl_ui_win_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_win_indicator_mode_get_static_delegate == null) + { + efl_ui_win_indicator_mode_get_static_delegate = new efl_ui_win_indicator_mode_get_delegate(indicator_mode_get); + } - private delegate Efl.Ui.WinIndicatorMode efl_ui_win_indicator_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetIndicatorMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_indicator_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_indicator_mode_get_static_delegate) }); + } + if (efl_ui_win_indicator_mode_set_static_delegate == null) + { + efl_ui_win_indicator_mode_set_static_delegate = new efl_ui_win_indicator_mode_set_delegate(indicator_mode_set); + } - public delegate Efl.Ui.WinIndicatorMode efl_ui_win_indicator_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_indicator_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_indicator_mode_get"); - private static Efl.Ui.WinIndicatorMode indicator_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_indicator_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.WinIndicatorMode _ret_var = default(Efl.Ui.WinIndicatorMode); - try { - _ret_var = ((Win)wrapper).GetIndicatorMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetIndicatorMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_indicator_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_indicator_mode_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_indicator_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_indicator_mode_get_delegate efl_ui_win_indicator_mode_get_static_delegate; + if (efl_ui_win_keyboard_mode_get_static_delegate == null) + { + efl_ui_win_keyboard_mode_get_static_delegate = new efl_ui_win_keyboard_mode_get_delegate(keyboard_mode_get); + } - private delegate void efl_ui_win_indicator_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinIndicatorMode type); + if (methods.FirstOrDefault(m => m.Name == "GetKeyboardMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_keyboard_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_keyboard_mode_get_static_delegate) }); + } + if (efl_ui_win_keyboard_mode_set_static_delegate == null) + { + efl_ui_win_keyboard_mode_set_static_delegate = new efl_ui_win_keyboard_mode_set_delegate(keyboard_mode_set); + } - public delegate void efl_ui_win_indicator_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.WinIndicatorMode type); - public static Efl.Eo.FunctionWrapper efl_ui_win_indicator_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_indicator_mode_set"); - private static void indicator_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinIndicatorMode type) - { - Eina.Log.Debug("function efl_ui_win_indicator_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetIndicatorMode( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_indicator_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); - } - } - private static efl_ui_win_indicator_mode_set_delegate efl_ui_win_indicator_mode_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetKeyboardMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_keyboard_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_keyboard_mode_set_static_delegate) }); + } + if (efl_ui_win_wm_available_rotations_get_static_delegate == null) + { + efl_ui_win_wm_available_rotations_get_static_delegate = new efl_ui_win_wm_available_rotations_get_delegate(wm_available_rotations_get); + } - private delegate Efl.Ui.WinKeyboardMode efl_ui_win_keyboard_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetWmAvailableRotations") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_wm_available_rotations_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_wm_available_rotations_get_static_delegate) }); + } + if (efl_ui_win_wm_available_rotations_set_static_delegate == null) + { + efl_ui_win_wm_available_rotations_set_static_delegate = new efl_ui_win_wm_available_rotations_set_delegate(wm_available_rotations_set); + } - public delegate Efl.Ui.WinKeyboardMode efl_ui_win_keyboard_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_keyboard_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_keyboard_mode_get"); - private static Efl.Ui.WinKeyboardMode keyboard_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_keyboard_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.WinKeyboardMode _ret_var = default(Efl.Ui.WinKeyboardMode); - try { - _ret_var = ((Win)wrapper).GetKeyboardMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetWmAvailableRotations") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_wm_available_rotations_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_wm_available_rotations_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_keyboard_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_keyboard_mode_get_delegate efl_ui_win_keyboard_mode_get_static_delegate; + if (efl_ui_win_wm_available_profiles_get_static_delegate == null) + { + efl_ui_win_wm_available_profiles_get_static_delegate = new efl_ui_win_wm_available_profiles_get_delegate(wm_available_profiles_get); + } - private delegate void efl_ui_win_keyboard_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinKeyboardMode mode); + if (methods.FirstOrDefault(m => m.Name == "GetWmAvailableProfiles") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_wm_available_profiles_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_wm_available_profiles_get_static_delegate) }); + } + if (efl_ui_win_wm_available_profiles_set_static_delegate == null) + { + efl_ui_win_wm_available_profiles_set_static_delegate = new efl_ui_win_wm_available_profiles_set_delegate(wm_available_profiles_set); + } - public delegate void efl_ui_win_keyboard_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.WinKeyboardMode mode); - public static Efl.Eo.FunctionWrapper efl_ui_win_keyboard_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_keyboard_mode_set"); - private static void keyboard_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinKeyboardMode mode) - { - Eina.Log.Debug("function efl_ui_win_keyboard_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetKeyboardMode( mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_keyboard_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); - } - } - private static efl_ui_win_keyboard_mode_set_delegate efl_ui_win_keyboard_mode_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetWmAvailableProfiles") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_wm_available_profiles_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_wm_available_profiles_set_static_delegate) }); + } + if (efl_ui_win_screen_constrain_get_static_delegate == null) + { + efl_ui_win_screen_constrain_get_static_delegate = new efl_ui_win_screen_constrain_get_delegate(screen_constrain_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_wm_available_rotations_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool allow_0, [MarshalAs(UnmanagedType.U1)] out bool allow_90, [MarshalAs(UnmanagedType.U1)] out bool allow_180, [MarshalAs(UnmanagedType.U1)] out bool allow_270); + if (methods.FirstOrDefault(m => m.Name == "GetScreenConstrain") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_screen_constrain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_screen_constrain_get_static_delegate) }); + } + if (efl_ui_win_screen_constrain_set_static_delegate == null) + { + efl_ui_win_screen_constrain_set_static_delegate = new efl_ui_win_screen_constrain_set_delegate(screen_constrain_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_wm_available_rotations_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool allow_0, [MarshalAs(UnmanagedType.U1)] out bool allow_90, [MarshalAs(UnmanagedType.U1)] out bool allow_180, [MarshalAs(UnmanagedType.U1)] out bool allow_270); - public static Efl.Eo.FunctionWrapper efl_ui_win_wm_available_rotations_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_wm_available_rotations_get"); - private static bool wm_available_rotations_get(System.IntPtr obj, System.IntPtr pd, out bool allow_0, out bool allow_90, out bool allow_180, out bool allow_270) - { - Eina.Log.Debug("function efl_ui_win_wm_available_rotations_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - allow_0 = default(bool); allow_90 = default(bool); allow_180 = default(bool); allow_270 = default(bool); bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetWmAvailableRotations( out allow_0, out allow_90, out allow_180, out allow_270); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetScreenConstrain") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_screen_constrain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_screen_constrain_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_wm_available_rotations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out allow_0, out allow_90, out allow_180, out allow_270); - } - } - private static efl_ui_win_wm_available_rotations_get_delegate efl_ui_win_wm_available_rotations_get_static_delegate; + if (efl_ui_win_prop_focus_skip_set_static_delegate == null) + { + efl_ui_win_prop_focus_skip_set_static_delegate = new efl_ui_win_prop_focus_skip_set_delegate(prop_focus_skip_set); + } - private delegate void efl_ui_win_wm_available_rotations_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allow_0, [MarshalAs(UnmanagedType.U1)] bool allow_90, [MarshalAs(UnmanagedType.U1)] bool allow_180, [MarshalAs(UnmanagedType.U1)] bool allow_270); + if (methods.FirstOrDefault(m => m.Name == "SetPropFocusSkip") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_prop_focus_skip_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_prop_focus_skip_set_static_delegate) }); + } + if (efl_ui_win_autohide_get_static_delegate == null) + { + efl_ui_win_autohide_get_static_delegate = new efl_ui_win_autohide_get_delegate(autohide_get); + } - public delegate void efl_ui_win_wm_available_rotations_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allow_0, [MarshalAs(UnmanagedType.U1)] bool allow_90, [MarshalAs(UnmanagedType.U1)] bool allow_180, [MarshalAs(UnmanagedType.U1)] bool allow_270); - public static Efl.Eo.FunctionWrapper efl_ui_win_wm_available_rotations_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_wm_available_rotations_set"); - private static void wm_available_rotations_set(System.IntPtr obj, System.IntPtr pd, bool allow_0, bool allow_90, bool allow_180, bool allow_270) - { - Eina.Log.Debug("function efl_ui_win_wm_available_rotations_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetWmAvailableRotations( allow_0, allow_90, allow_180, allow_270); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_wm_available_rotations_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allow_0, allow_90, allow_180, allow_270); - } - } - private static efl_ui_win_wm_available_rotations_set_delegate efl_ui_win_wm_available_rotations_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetAutohide") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_autohide_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_autohide_get_static_delegate) }); + } + if (efl_ui_win_autohide_set_static_delegate == null) + { + efl_ui_win_autohide_set_static_delegate = new efl_ui_win_autohide_set_delegate(autohide_set); + } - private delegate System.IntPtr efl_ui_win_wm_available_profiles_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetAutohide") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_autohide_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_autohide_set_static_delegate) }); + } + if (efl_ui_win_exit_on_close_get_static_delegate == null) + { + efl_ui_win_exit_on_close_get_static_delegate = new efl_ui_win_exit_on_close_get_delegate(exit_on_close_get); + } - public delegate System.IntPtr efl_ui_win_wm_available_profiles_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_wm_available_profiles_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_wm_available_profiles_get"); - private static System.IntPtr wm_available_profiles_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_wm_available_profiles_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Array _ret_var = default(Eina.Array); - try { - _ret_var = ((Win)wrapper).GetWmAvailableProfiles(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetExitOnClose") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_exit_on_close_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_exit_on_close_get_static_delegate) }); } - return _ret_var.Handle; - } else { - return efl_ui_win_wm_available_profiles_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_wm_available_profiles_get_delegate efl_ui_win_wm_available_profiles_get_static_delegate; + if (efl_ui_win_exit_on_close_set_static_delegate == null) + { + efl_ui_win_exit_on_close_set_static_delegate = new efl_ui_win_exit_on_close_set_delegate(exit_on_close_set); + } - private delegate void efl_ui_win_wm_available_profiles_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr profiles); + if (methods.FirstOrDefault(m => m.Name == "SetExitOnClose") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_exit_on_close_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_exit_on_close_set_static_delegate) }); + } + if (efl_ui_win_icon_object_get_static_delegate == null) + { + efl_ui_win_icon_object_get_static_delegate = new efl_ui_win_icon_object_get_delegate(icon_object_get); + } - public delegate void efl_ui_win_wm_available_profiles_set_api_delegate(System.IntPtr obj, System.IntPtr profiles); - public static Efl.Eo.FunctionWrapper efl_ui_win_wm_available_profiles_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_wm_available_profiles_set"); - private static void wm_available_profiles_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr profiles) - { - Eina.Log.Debug("function efl_ui_win_wm_available_profiles_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_profiles = new Eina.Array(profiles, false, false); - - try { - ((Win)wrapper).SetWmAvailableProfiles( _in_profiles); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetIconObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_icon_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_icon_object_get_static_delegate) }); } - } else { - efl_ui_win_wm_available_profiles_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profiles); - } - } - private static efl_ui_win_wm_available_profiles_set_delegate efl_ui_win_wm_available_profiles_set_static_delegate; + if (efl_ui_win_icon_object_set_static_delegate == null) + { + efl_ui_win_icon_object_set_static_delegate = new efl_ui_win_icon_object_set_delegate(icon_object_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_screen_constrain_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetIconObject") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_icon_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_icon_object_set_static_delegate) }); + } + if (efl_ui_win_minimized_get_static_delegate == null) + { + efl_ui_win_minimized_get_static_delegate = new efl_ui_win_minimized_get_delegate(minimized_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_screen_constrain_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_screen_constrain_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_screen_constrain_get"); - private static bool screen_constrain_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_screen_constrain_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetScreenConstrain(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMinimized") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_minimized_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_minimized_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_screen_constrain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_screen_constrain_get_delegate efl_ui_win_screen_constrain_get_static_delegate; + if (efl_ui_win_minimized_set_static_delegate == null) + { + efl_ui_win_minimized_set_static_delegate = new efl_ui_win_minimized_set_delegate(minimized_set); + } - private delegate void efl_ui_win_screen_constrain_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool constrain); + if (methods.FirstOrDefault(m => m.Name == "SetMinimized") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_minimized_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_minimized_set_static_delegate) }); + } + if (efl_ui_win_maximized_get_static_delegate == null) + { + efl_ui_win_maximized_get_static_delegate = new efl_ui_win_maximized_get_delegate(maximized_get); + } - public delegate void efl_ui_win_screen_constrain_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool constrain); - public static Efl.Eo.FunctionWrapper efl_ui_win_screen_constrain_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_screen_constrain_set"); - private static void screen_constrain_set(System.IntPtr obj, System.IntPtr pd, bool constrain) - { - Eina.Log.Debug("function efl_ui_win_screen_constrain_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetScreenConstrain( constrain); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_screen_constrain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), constrain); - } - } - private static efl_ui_win_screen_constrain_set_delegate efl_ui_win_screen_constrain_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetMaximized") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_maximized_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_maximized_get_static_delegate) }); + } + if (efl_ui_win_maximized_set_static_delegate == null) + { + efl_ui_win_maximized_set_static_delegate = new efl_ui_win_maximized_set_delegate(maximized_set); + } - private delegate void efl_ui_win_prop_focus_skip_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool skip); + if (methods.FirstOrDefault(m => m.Name == "SetMaximized") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_maximized_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_maximized_set_static_delegate) }); + } + if (efl_ui_win_fullscreen_get_static_delegate == null) + { + efl_ui_win_fullscreen_get_static_delegate = new efl_ui_win_fullscreen_get_delegate(fullscreen_get); + } - public delegate void efl_ui_win_prop_focus_skip_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool skip); - public static Efl.Eo.FunctionWrapper efl_ui_win_prop_focus_skip_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_prop_focus_skip_set"); - private static void prop_focus_skip_set(System.IntPtr obj, System.IntPtr pd, bool skip) - { - Eina.Log.Debug("function efl_ui_win_prop_focus_skip_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetPropFocusSkip( skip); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_prop_focus_skip_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), skip); - } - } - private static efl_ui_win_prop_focus_skip_set_delegate efl_ui_win_prop_focus_skip_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetFullscreen") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_fullscreen_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_fullscreen_get_static_delegate) }); + } + if (efl_ui_win_fullscreen_set_static_delegate == null) + { + efl_ui_win_fullscreen_set_static_delegate = new efl_ui_win_fullscreen_set_delegate(fullscreen_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_autohide_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFullscreen") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_fullscreen_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_fullscreen_set_static_delegate) }); + } + if (efl_ui_win_sticky_get_static_delegate == null) + { + efl_ui_win_sticky_get_static_delegate = new efl_ui_win_sticky_get_delegate(sticky_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_autohide_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_autohide_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_autohide_get"); - private static bool autohide_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_autohide_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetAutohide(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetSticky") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_sticky_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_sticky_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_autohide_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_autohide_get_delegate efl_ui_win_autohide_get_static_delegate; + if (efl_ui_win_sticky_set_static_delegate == null) + { + efl_ui_win_sticky_set_static_delegate = new efl_ui_win_sticky_set_delegate(sticky_set); + } - private delegate void efl_ui_win_autohide_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool autohide); + if (methods.FirstOrDefault(m => m.Name == "SetSticky") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_sticky_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_sticky_set_static_delegate) }); + } + if (efl_ui_win_urgent_get_static_delegate == null) + { + efl_ui_win_urgent_get_static_delegate = new efl_ui_win_urgent_get_delegate(urgent_get); + } - public delegate void efl_ui_win_autohide_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool autohide); - public static Efl.Eo.FunctionWrapper efl_ui_win_autohide_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_autohide_set"); - private static void autohide_set(System.IntPtr obj, System.IntPtr pd, bool autohide) - { - Eina.Log.Debug("function efl_ui_win_autohide_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetAutohide( autohide); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_autohide_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), autohide); - } - } - private static efl_ui_win_autohide_set_delegate efl_ui_win_autohide_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetUrgent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_urgent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_urgent_get_static_delegate) }); + } + if (efl_ui_win_urgent_set_static_delegate == null) + { + efl_ui_win_urgent_set_static_delegate = new efl_ui_win_urgent_set_delegate(urgent_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] private delegate Eina.Value efl_ui_win_exit_on_close_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetUrgent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_urgent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_urgent_set_static_delegate) }); + } + if (efl_ui_win_modal_get_static_delegate == null) + { + efl_ui_win_modal_get_static_delegate = new efl_ui_win_modal_get_delegate(modal_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] public delegate Eina.Value efl_ui_win_exit_on_close_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_exit_on_close_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_exit_on_close_get"); - private static Eina.Value exit_on_close_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_exit_on_close_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Value _ret_var = default(Eina.Value); - try { - _ret_var = ((Win)wrapper).GetExitOnClose(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetModal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_modal_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_modal_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_exit_on_close_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_exit_on_close_get_delegate efl_ui_win_exit_on_close_get_static_delegate; + if (efl_ui_win_modal_set_static_delegate == null) + { + efl_ui_win_modal_set_static_delegate = new efl_ui_win_modal_set_delegate(modal_set); + } - private delegate void efl_ui_win_exit_on_close_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value exit_code); + if (methods.FirstOrDefault(m => m.Name == "SetModal") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_modal_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_modal_set_static_delegate) }); + } + if (efl_ui_win_borderless_get_static_delegate == null) + { + efl_ui_win_borderless_get_static_delegate = new efl_ui_win_borderless_get_delegate(borderless_get); + } - public delegate void efl_ui_win_exit_on_close_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value exit_code); - public static Efl.Eo.FunctionWrapper efl_ui_win_exit_on_close_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_exit_on_close_set"); - private static void exit_on_close_set(System.IntPtr obj, System.IntPtr pd, Eina.Value exit_code) - { - Eina.Log.Debug("function efl_ui_win_exit_on_close_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetExitOnClose( exit_code); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_exit_on_close_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), exit_code); - } - } - private static efl_ui_win_exit_on_close_set_delegate efl_ui_win_exit_on_close_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetBorderless") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_borderless_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_borderless_get_static_delegate) }); + } + if (efl_ui_win_borderless_set_static_delegate == null) + { + efl_ui_win_borderless_set_static_delegate = new efl_ui_win_borderless_set_delegate(borderless_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_win_icon_object_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetBorderless") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_borderless_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_borderless_set_static_delegate) }); + } + if (efl_ui_win_role_get_static_delegate == null) + { + efl_ui_win_role_get_static_delegate = new efl_ui_win_role_get_delegate(win_role_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_win_icon_object_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_icon_object_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_icon_object_get"); - private static Efl.Canvas.Object icon_object_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_icon_object_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((Win)wrapper).GetIconObject(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetWinRole") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_role_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_role_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_icon_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_icon_object_get_delegate efl_ui_win_icon_object_get_static_delegate; + if (efl_ui_win_role_set_static_delegate == null) + { + efl_ui_win_role_set_static_delegate = new efl_ui_win_role_set_delegate(win_role_set); + } - private delegate void efl_ui_win_icon_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object icon); + if (methods.FirstOrDefault(m => m.Name == "SetWinRole") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_role_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_role_set_static_delegate) }); + } + if (efl_ui_win_name_get_static_delegate == null) + { + efl_ui_win_name_get_static_delegate = new efl_ui_win_name_get_delegate(win_name_get); + } - public delegate void efl_ui_win_icon_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object icon); - public static Efl.Eo.FunctionWrapper efl_ui_win_icon_object_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_icon_object_set"); - private static void icon_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object icon) - { - Eina.Log.Debug("function efl_ui_win_icon_object_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetIconObject( icon); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_icon_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), icon); - } - } - private static efl_ui_win_icon_object_set_delegate efl_ui_win_icon_object_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetWinName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_name_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_name_get_static_delegate) }); + } + if (efl_ui_win_name_set_static_delegate == null) + { + efl_ui_win_name_set_static_delegate = new efl_ui_win_name_set_delegate(win_name_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_minimized_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetWinName") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_name_set_static_delegate) }); + } + if (efl_ui_win_type_get_static_delegate == null) + { + efl_ui_win_type_get_static_delegate = new efl_ui_win_type_get_delegate(win_type_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_minimized_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_minimized_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_minimized_get"); - private static bool minimized_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_minimized_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetMinimized(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetWinType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_type_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_minimized_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_minimized_get_delegate efl_ui_win_minimized_get_static_delegate; + if (efl_ui_win_type_set_static_delegate == null) + { + efl_ui_win_type_set_static_delegate = new efl_ui_win_type_set_delegate(win_type_set); + } - private delegate void efl_ui_win_minimized_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool state); + if (methods.FirstOrDefault(m => m.Name == "SetWinType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_type_set_static_delegate) }); + } + if (efl_ui_win_accel_preference_get_static_delegate == null) + { + efl_ui_win_accel_preference_get_static_delegate = new efl_ui_win_accel_preference_get_delegate(accel_preference_get); + } - public delegate void efl_ui_win_minimized_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool state); - public static Efl.Eo.FunctionWrapper efl_ui_win_minimized_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_minimized_set"); - private static void minimized_set(System.IntPtr obj, System.IntPtr pd, bool state) - { - Eina.Log.Debug("function efl_ui_win_minimized_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetMinimized( state); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_minimized_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state); - } - } - private static efl_ui_win_minimized_set_delegate efl_ui_win_minimized_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetAccelPreference") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_accel_preference_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_accel_preference_get_static_delegate) }); + } + if (efl_ui_win_accel_preference_set_static_delegate == null) + { + efl_ui_win_accel_preference_set_static_delegate = new efl_ui_win_accel_preference_set_delegate(accel_preference_set); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_maximized_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetAccelPreference") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_accel_preference_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_accel_preference_set_static_delegate) }); + } + if (efl_ui_win_alpha_get_static_delegate == null) + { + efl_ui_win_alpha_get_static_delegate = new efl_ui_win_alpha_get_delegate(alpha_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_maximized_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_maximized_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_maximized_get"); - private static bool maximized_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_maximized_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetMaximized(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_alpha_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_alpha_get_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_maximized_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_maximized_get_delegate efl_ui_win_maximized_get_static_delegate; + if (efl_ui_win_alpha_set_static_delegate == null) + { + efl_ui_win_alpha_set_static_delegate = new efl_ui_win_alpha_set_delegate(alpha_set); + } - private delegate void efl_ui_win_maximized_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool maximized); + if (methods.FirstOrDefault(m => m.Name == "SetAlpha") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_alpha_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_alpha_set_static_delegate) }); + } + if (efl_ui_win_stack_id_get_static_delegate == null) + { + efl_ui_win_stack_id_get_static_delegate = new efl_ui_win_stack_id_get_delegate(stack_id_get); + } - public delegate void efl_ui_win_maximized_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool maximized); - public static Efl.Eo.FunctionWrapper efl_ui_win_maximized_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_maximized_set"); - private static void maximized_set(System.IntPtr obj, System.IntPtr pd, bool maximized) - { - Eina.Log.Debug("function efl_ui_win_maximized_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetMaximized( maximized); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_maximized_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), maximized); - } - } - private static efl_ui_win_maximized_set_delegate efl_ui_win_maximized_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "GetStackId") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_stack_id_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_id_get_static_delegate) }); + } + if (efl_ui_win_stack_master_id_get_static_delegate == null) + { + efl_ui_win_stack_master_id_get_static_delegate = new efl_ui_win_stack_master_id_get_delegate(stack_master_id_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_fullscreen_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetStackMasterId") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_stack_master_id_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_master_id_get_static_delegate) }); + } + if (efl_ui_win_stack_master_id_set_static_delegate == null) + { + efl_ui_win_stack_master_id_set_static_delegate = new efl_ui_win_stack_master_id_set_delegate(stack_master_id_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_fullscreen_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_fullscreen_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_fullscreen_get"); - private static bool fullscreen_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_fullscreen_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetFullscreen(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetStackMasterId") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_stack_master_id_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_master_id_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_fullscreen_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_fullscreen_get_delegate efl_ui_win_fullscreen_get_static_delegate; + if (efl_ui_win_stack_base_get_static_delegate == null) + { + efl_ui_win_stack_base_get_static_delegate = new efl_ui_win_stack_base_get_delegate(stack_base_get); + } - private delegate void efl_ui_win_fullscreen_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool fullscreen); + if (methods.FirstOrDefault(m => m.Name == "GetStackBase") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_stack_base_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_base_get_static_delegate) }); + } + if (efl_ui_win_stack_base_set_static_delegate == null) + { + efl_ui_win_stack_base_set_static_delegate = new efl_ui_win_stack_base_set_delegate(stack_base_set); + } - public delegate void efl_ui_win_fullscreen_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool fullscreen); - public static Efl.Eo.FunctionWrapper efl_ui_win_fullscreen_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_fullscreen_set"); - private static void fullscreen_set(System.IntPtr obj, System.IntPtr pd, bool fullscreen) - { - Eina.Log.Debug("function efl_ui_win_fullscreen_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetFullscreen( fullscreen); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_fullscreen_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fullscreen); - } - } - private static efl_ui_win_fullscreen_set_delegate efl_ui_win_fullscreen_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetStackBase") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_stack_base_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_base_set_static_delegate) }); + } + if (efl_ui_win_hint_base_get_static_delegate == null) + { + efl_ui_win_hint_base_get_static_delegate = new efl_ui_win_hint_base_get_delegate(hint_base_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_sticky_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetHintBase") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_hint_base_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_hint_base_get_static_delegate) }); + } + if (efl_ui_win_hint_base_set_static_delegate == null) + { + efl_ui_win_hint_base_set_static_delegate = new efl_ui_win_hint_base_set_delegate(hint_base_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_sticky_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_sticky_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_sticky_get"); - private static bool sticky_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_sticky_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetSticky(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetHintBase") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_hint_base_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_hint_base_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_sticky_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_sticky_get_delegate efl_ui_win_sticky_get_static_delegate; + if (efl_ui_win_hint_step_get_static_delegate == null) + { + efl_ui_win_hint_step_get_static_delegate = new efl_ui_win_hint_step_get_delegate(hint_step_get); + } - private delegate void efl_ui_win_sticky_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool sticky); + if (methods.FirstOrDefault(m => m.Name == "GetHintStep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_hint_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_hint_step_get_static_delegate) }); + } + if (efl_ui_win_hint_step_set_static_delegate == null) + { + efl_ui_win_hint_step_set_static_delegate = new efl_ui_win_hint_step_set_delegate(hint_step_set); + } - public delegate void efl_ui_win_sticky_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool sticky); - public static Efl.Eo.FunctionWrapper efl_ui_win_sticky_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_sticky_set"); - private static void sticky_set(System.IntPtr obj, System.IntPtr pd, bool sticky) - { - Eina.Log.Debug("function efl_ui_win_sticky_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetSticky( sticky); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_sticky_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sticky); - } - } - private static efl_ui_win_sticky_set_delegate efl_ui_win_sticky_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetHintStep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_hint_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_hint_step_set_static_delegate) }); + } + if (efl_ui_win_rotation_get_static_delegate == null) + { + efl_ui_win_rotation_get_static_delegate = new efl_ui_win_rotation_get_delegate(win_rotation_get); + } - private delegate Efl.Ui.WinUrgentMode efl_ui_win_urgent_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetWinRotation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_rotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_rotation_get_static_delegate) }); + } + if (efl_ui_win_rotation_set_static_delegate == null) + { + efl_ui_win_rotation_set_static_delegate = new efl_ui_win_rotation_set_delegate(win_rotation_set); + } - public delegate Efl.Ui.WinUrgentMode efl_ui_win_urgent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_urgent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_urgent_get"); - private static Efl.Ui.WinUrgentMode urgent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_urgent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.WinUrgentMode _ret_var = default(Efl.Ui.WinUrgentMode); - try { - _ret_var = ((Win)wrapper).GetUrgent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetWinRotation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_rotation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_rotation_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_urgent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_urgent_get_delegate efl_ui_win_urgent_get_static_delegate; + if (efl_ui_win_focus_highlight_enabled_get_static_delegate == null) + { + efl_ui_win_focus_highlight_enabled_get_static_delegate = new efl_ui_win_focus_highlight_enabled_get_delegate(focus_highlight_enabled_get); + } - private delegate void efl_ui_win_urgent_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinUrgentMode urgent); + if (methods.FirstOrDefault(m => m.Name == "GetFocusHighlightEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_focus_highlight_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_enabled_get_static_delegate) }); + } + if (efl_ui_win_focus_highlight_enabled_set_static_delegate == null) + { + efl_ui_win_focus_highlight_enabled_set_static_delegate = new efl_ui_win_focus_highlight_enabled_set_delegate(focus_highlight_enabled_set); + } - public delegate void efl_ui_win_urgent_set_api_delegate(System.IntPtr obj, Efl.Ui.WinUrgentMode urgent); - public static Efl.Eo.FunctionWrapper efl_ui_win_urgent_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_urgent_set"); - private static void urgent_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinUrgentMode urgent) - { - Eina.Log.Debug("function efl_ui_win_urgent_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetUrgent( urgent); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_urgent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), urgent); - } - } - private static efl_ui_win_urgent_set_delegate efl_ui_win_urgent_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetFocusHighlightEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_focus_highlight_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_enabled_set_static_delegate) }); + } + if (efl_ui_win_focus_highlight_style_get_static_delegate == null) + { + efl_ui_win_focus_highlight_style_get_static_delegate = new efl_ui_win_focus_highlight_style_get_delegate(focus_highlight_style_get); + } - private delegate Efl.Ui.WinModalMode efl_ui_win_modal_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetFocusHighlightStyle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_focus_highlight_style_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_style_get_static_delegate) }); + } + if (efl_ui_win_focus_highlight_style_set_static_delegate == null) + { + efl_ui_win_focus_highlight_style_set_static_delegate = new efl_ui_win_focus_highlight_style_set_delegate(focus_highlight_style_set); + } - public delegate Efl.Ui.WinModalMode efl_ui_win_modal_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_modal_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_modal_get"); - private static Efl.Ui.WinModalMode modal_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_modal_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.WinModalMode _ret_var = default(Efl.Ui.WinModalMode); - try { - _ret_var = ((Win)wrapper).GetModal(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetFocusHighlightStyle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_focus_highlight_style_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_style_set_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_modal_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_modal_get_delegate efl_ui_win_modal_get_static_delegate; + if (efl_ui_win_focus_highlight_animate_get_static_delegate == null) + { + efl_ui_win_focus_highlight_animate_get_static_delegate = new efl_ui_win_focus_highlight_animate_get_delegate(focus_highlight_animate_get); + } - private delegate void efl_ui_win_modal_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinModalMode modal); + if (methods.FirstOrDefault(m => m.Name == "GetFocusHighlightAnimate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_focus_highlight_animate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_animate_get_static_delegate) }); + } + if (efl_ui_win_focus_highlight_animate_set_static_delegate == null) + { + efl_ui_win_focus_highlight_animate_set_static_delegate = new efl_ui_win_focus_highlight_animate_set_delegate(focus_highlight_animate_set); + } - public delegate void efl_ui_win_modal_set_api_delegate(System.IntPtr obj, Efl.Ui.WinModalMode modal); - public static Efl.Eo.FunctionWrapper efl_ui_win_modal_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_modal_set"); - private static void modal_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinModalMode modal) - { - Eina.Log.Debug("function efl_ui_win_modal_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetModal( modal); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_modal_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), modal); - } - } - private static efl_ui_win_modal_set_delegate efl_ui_win_modal_set_static_delegate; + if (methods.FirstOrDefault(m => m.Name == "SetFocusHighlightAnimate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_focus_highlight_animate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_focus_highlight_animate_set_static_delegate) }); + } + if (efl_ui_win_stack_pop_to_static_delegate == null) + { + efl_ui_win_stack_pop_to_static_delegate = new efl_ui_win_stack_pop_to_delegate(stack_pop_to); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_borderless_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "StackPopTo") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_stack_pop_to"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_stack_pop_to_static_delegate) }); + } + if (efl_ui_win_activate_static_delegate == null) + { + efl_ui_win_activate_static_delegate = new efl_ui_win_activate_delegate(activate); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_borderless_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_borderless_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_borderless_get"); - private static bool borderless_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_borderless_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetBorderless(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Activate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_activate"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_activate_static_delegate) }); } - return _ret_var; - } else { - return efl_ui_win_borderless_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_borderless_get_delegate efl_ui_win_borderless_get_static_delegate; + if (efl_ui_win_center_static_delegate == null) + { + efl_ui_win_center_static_delegate = new efl_ui_win_center_delegate(center); + } - private delegate void efl_ui_win_borderless_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool borderless); + if (methods.FirstOrDefault(m => m.Name == "Center") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_center"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_center_static_delegate) }); + } + if (efl_ui_win_move_resize_start_static_delegate == null) + { + efl_ui_win_move_resize_start_static_delegate = new efl_ui_win_move_resize_start_delegate(move_resize_start); + } + + if (methods.FirstOrDefault(m => m.Name == "MoveResizeStart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_move_resize_start"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_move_resize_start_static_delegate) }); + } + + if (efl_ui_win_pointer_iterate_static_delegate == null) + { + efl_ui_win_pointer_iterate_static_delegate = new efl_ui_win_pointer_iterate_delegate(pointer_iterate); + } + + if (methods.FirstOrDefault(m => m.Name == "PointerIterate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_pointer_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_pointer_iterate_static_delegate) }); + } + + if (efl_config_get_static_delegate == null) + { + efl_config_get_static_delegate = new efl_config_get_delegate(config_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_get_static_delegate) }); + } + + if (efl_config_set_static_delegate == null) + { + efl_config_set_static_delegate = new efl_config_set_delegate(config_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetConfig") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_set_static_delegate) }); + } + + if (efl_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + if (efl_screen_size_in_pixels_get_static_delegate == null) + { + efl_screen_size_in_pixels_get_static_delegate = new efl_screen_size_in_pixels_get_delegate(screen_size_in_pixels_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScreenSizeInPixels") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_screen_size_in_pixels_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_size_in_pixels_get_static_delegate) }); + } + + if (efl_screen_scale_factor_get_static_delegate == null) + { + efl_screen_scale_factor_get_static_delegate = new efl_screen_scale_factor_get_delegate(screen_scale_factor_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScreenScaleFactor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_screen_scale_factor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_scale_factor_get_static_delegate) }); + } + + if (efl_screen_rotation_get_static_delegate == null) + { + efl_screen_rotation_get_static_delegate = new efl_screen_rotation_get_delegate(screen_rotation_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScreenRotation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_screen_rotation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_rotation_get_static_delegate) }); + } + + if (efl_screen_dpi_get_static_delegate == null) + { + efl_screen_dpi_get_static_delegate = new efl_screen_dpi_get_delegate(screen_dpi_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScreenDpi") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_screen_dpi_get"), func = Marshal.GetFunctionPointerForDelegate(efl_screen_dpi_get_static_delegate) }); + } + + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } + + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } + + if (efl_canvas_scene_image_max_size_get_static_delegate == null) + { + efl_canvas_scene_image_max_size_get_static_delegate = new efl_canvas_scene_image_max_size_get_delegate(image_max_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetImageMaxSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_image_max_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_image_max_size_get_static_delegate) }); + } + + if (efl_canvas_scene_group_objects_calculating_get_static_delegate == null) + { + efl_canvas_scene_group_objects_calculating_get_static_delegate = new efl_canvas_scene_group_objects_calculating_get_delegate(group_objects_calculating_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGroupObjectsCalculating") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_group_objects_calculating_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_group_objects_calculating_get_static_delegate) }); + } + + if (efl_canvas_scene_device_get_static_delegate == null) + { + efl_canvas_scene_device_get_static_delegate = new efl_canvas_scene_device_get_delegate(device_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_device_get_static_delegate) }); + } + + if (efl_canvas_scene_seat_get_static_delegate == null) + { + efl_canvas_scene_seat_get_static_delegate = new efl_canvas_scene_seat_get_delegate(seat_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSeat") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_seat_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seat_get_static_delegate) }); + } + + if (efl_canvas_scene_seat_default_get_static_delegate == null) + { + efl_canvas_scene_seat_default_get_static_delegate = new efl_canvas_scene_seat_default_get_delegate(seat_default_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSeatDefault") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_seat_default_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seat_default_get_static_delegate) }); + } + + if (efl_canvas_scene_pointer_position_get_static_delegate == null) + { + efl_canvas_scene_pointer_position_get_static_delegate = new efl_canvas_scene_pointer_position_get_delegate(pointer_position_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPointerPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_pointer_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_pointer_position_get_static_delegate) }); + } + + if (efl_canvas_scene_group_objects_calculate_static_delegate == null) + { + efl_canvas_scene_group_objects_calculate_static_delegate = new efl_canvas_scene_group_objects_calculate_delegate(group_objects_calculate); + } + + if (methods.FirstOrDefault(m => m.Name == "CalculateGroupObjects") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_group_objects_calculate"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_group_objects_calculate_static_delegate) }); + } + + if (efl_canvas_scene_objects_at_xy_get_static_delegate == null) + { + efl_canvas_scene_objects_at_xy_get_static_delegate = new efl_canvas_scene_objects_at_xy_get_delegate(objects_at_xy_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetObjectsAtXy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_objects_at_xy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_objects_at_xy_get_static_delegate) }); + } + + if (efl_canvas_scene_object_top_at_xy_get_static_delegate == null) + { + efl_canvas_scene_object_top_at_xy_get_static_delegate = new efl_canvas_scene_object_top_at_xy_get_delegate(object_top_at_xy_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetObjectTopAtXy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_object_top_at_xy_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_object_top_at_xy_get_static_delegate) }); + } + + if (efl_canvas_scene_objects_in_rectangle_get_static_delegate == null) + { + efl_canvas_scene_objects_in_rectangle_get_static_delegate = new efl_canvas_scene_objects_in_rectangle_get_delegate(objects_in_rectangle_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetObjectsInRectangle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_objects_in_rectangle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_objects_in_rectangle_get_static_delegate) }); + } + + if (efl_canvas_scene_object_top_in_rectangle_get_static_delegate == null) + { + efl_canvas_scene_object_top_in_rectangle_get_static_delegate = new efl_canvas_scene_object_top_in_rectangle_get_delegate(object_top_in_rectangle_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetObjectTopInRectangle") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_object_top_in_rectangle_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_object_top_in_rectangle_get_static_delegate) }); + } + + if (efl_canvas_scene_seats_static_delegate == null) + { + efl_canvas_scene_seats_static_delegate = new efl_canvas_scene_seats_delegate(seats); + } + + if (methods.FirstOrDefault(m => m.Name == "Seats") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_scene_seats"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_scene_seats_static_delegate) }); + } + + if (efl_input_modifier_enabled_get_static_delegate == null) + { + efl_input_modifier_enabled_get_static_delegate = new efl_input_modifier_enabled_get_delegate(modifier_enabled_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetModifierEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_modifier_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_modifier_enabled_get_static_delegate) }); + } + + if (efl_input_lock_enabled_get_static_delegate == null) + { + efl_input_lock_enabled_get_static_delegate = new efl_input_lock_enabled_get_delegate(lock_enabled_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLockEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_lock_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_lock_enabled_get_static_delegate) }); + } + + if (efl_ui_widget_focus_manager_create_static_delegate == null) + { + efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); + } + + if (efl_ui_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + } + + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); + } + + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + } + + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); + } + + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + } + + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); + } + + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + } + + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + } + + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } + + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + } + + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } + + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + } + + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + } + + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + } + + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); + } + + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } + + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + } + + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } + + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); + } + + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + } + + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } + + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + } + + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + } + + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } + + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Win.efl_ui_win_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate Efl.Ui.WinIndicatorMode efl_ui_win_indicator_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.WinIndicatorMode efl_ui_win_indicator_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_indicator_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_indicator_mode_get"); + + private static Efl.Ui.WinIndicatorMode indicator_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_indicator_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.WinIndicatorMode _ret_var = default(Efl.Ui.WinIndicatorMode); + try + { + _ret_var = ((Win)wrapper).GetIndicatorMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_indicator_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_indicator_mode_get_delegate efl_ui_win_indicator_mode_get_static_delegate; + + + private delegate void efl_ui_win_indicator_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinIndicatorMode type); + + + public delegate void efl_ui_win_indicator_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.WinIndicatorMode type); + + public static Efl.Eo.FunctionWrapper efl_ui_win_indicator_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_indicator_mode_set"); + + private static void indicator_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinIndicatorMode type) + { + Eina.Log.Debug("function efl_ui_win_indicator_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetIndicatorMode(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_indicator_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + + private static efl_ui_win_indicator_mode_set_delegate efl_ui_win_indicator_mode_set_static_delegate; + + + private delegate Efl.Ui.WinKeyboardMode efl_ui_win_keyboard_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.WinKeyboardMode efl_ui_win_keyboard_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_keyboard_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_keyboard_mode_get"); + + private static Efl.Ui.WinKeyboardMode keyboard_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_keyboard_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.WinKeyboardMode _ret_var = default(Efl.Ui.WinKeyboardMode); + try + { + _ret_var = ((Win)wrapper).GetKeyboardMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_keyboard_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_keyboard_mode_get_delegate efl_ui_win_keyboard_mode_get_static_delegate; + + + private delegate void efl_ui_win_keyboard_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinKeyboardMode mode); + + + public delegate void efl_ui_win_keyboard_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.WinKeyboardMode mode); + + public static Efl.Eo.FunctionWrapper efl_ui_win_keyboard_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_keyboard_mode_set"); + + private static void keyboard_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinKeyboardMode mode) + { + Eina.Log.Debug("function efl_ui_win_keyboard_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetKeyboardMode(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_keyboard_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); + } + } + + private static efl_ui_win_keyboard_mode_set_delegate efl_ui_win_keyboard_mode_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_wm_available_rotations_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool allow_0, [MarshalAs(UnmanagedType.U1)] out bool allow_90, [MarshalAs(UnmanagedType.U1)] out bool allow_180, [MarshalAs(UnmanagedType.U1)] out bool allow_270); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_wm_available_rotations_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool allow_0, [MarshalAs(UnmanagedType.U1)] out bool allow_90, [MarshalAs(UnmanagedType.U1)] out bool allow_180, [MarshalAs(UnmanagedType.U1)] out bool allow_270); + + public static Efl.Eo.FunctionWrapper efl_ui_win_wm_available_rotations_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_wm_available_rotations_get"); + + private static bool wm_available_rotations_get(System.IntPtr obj, System.IntPtr pd, out bool allow_0, out bool allow_90, out bool allow_180, out bool allow_270) + { + Eina.Log.Debug("function efl_ui_win_wm_available_rotations_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + allow_0 = default(bool); allow_90 = default(bool); allow_180 = default(bool); allow_270 = default(bool); bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetWmAvailableRotations(out allow_0, out allow_90, out allow_180, out allow_270); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_wm_available_rotations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out allow_0, out allow_90, out allow_180, out allow_270); + } + } + + private static efl_ui_win_wm_available_rotations_get_delegate efl_ui_win_wm_available_rotations_get_static_delegate; + + + private delegate void efl_ui_win_wm_available_rotations_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allow_0, [MarshalAs(UnmanagedType.U1)] bool allow_90, [MarshalAs(UnmanagedType.U1)] bool allow_180, [MarshalAs(UnmanagedType.U1)] bool allow_270); + + + public delegate void efl_ui_win_wm_available_rotations_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool allow_0, [MarshalAs(UnmanagedType.U1)] bool allow_90, [MarshalAs(UnmanagedType.U1)] bool allow_180, [MarshalAs(UnmanagedType.U1)] bool allow_270); + + public static Efl.Eo.FunctionWrapper efl_ui_win_wm_available_rotations_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_wm_available_rotations_set"); + + private static void wm_available_rotations_set(System.IntPtr obj, System.IntPtr pd, bool allow_0, bool allow_90, bool allow_180, bool allow_270) + { + Eina.Log.Debug("function efl_ui_win_wm_available_rotations_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetWmAvailableRotations(allow_0, allow_90, allow_180, allow_270); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_wm_available_rotations_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), allow_0, allow_90, allow_180, allow_270); + } + } + + private static efl_ui_win_wm_available_rotations_set_delegate efl_ui_win_wm_available_rotations_set_static_delegate; + + + private delegate System.IntPtr efl_ui_win_wm_available_profiles_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_win_wm_available_profiles_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_wm_available_profiles_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_wm_available_profiles_get"); + + private static System.IntPtr wm_available_profiles_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_wm_available_profiles_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Array _ret_var = default(Eina.Array); + try + { + _ret_var = ((Win)wrapper).GetWmAvailableProfiles(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; + + } + else + { + return efl_ui_win_wm_available_profiles_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_wm_available_profiles_get_delegate efl_ui_win_wm_available_profiles_get_static_delegate; + + + private delegate void efl_ui_win_wm_available_profiles_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr profiles); + + + public delegate void efl_ui_win_wm_available_profiles_set_api_delegate(System.IntPtr obj, System.IntPtr profiles); + + public static Efl.Eo.FunctionWrapper efl_ui_win_wm_available_profiles_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_wm_available_profiles_set"); + + private static void wm_available_profiles_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr profiles) + { + Eina.Log.Debug("function efl_ui_win_wm_available_profiles_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_profiles = new Eina.Array(profiles, false, false); + + try + { + ((Win)wrapper).SetWmAvailableProfiles(_in_profiles); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_wm_available_profiles_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), profiles); + } + } + + private static efl_ui_win_wm_available_profiles_set_delegate efl_ui_win_wm_available_profiles_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_screen_constrain_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_screen_constrain_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_screen_constrain_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_screen_constrain_get"); + + private static bool screen_constrain_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_screen_constrain_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetScreenConstrain(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_screen_constrain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_screen_constrain_get_delegate efl_ui_win_screen_constrain_get_static_delegate; + + + private delegate void efl_ui_win_screen_constrain_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool constrain); + + + public delegate void efl_ui_win_screen_constrain_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool constrain); + + public static Efl.Eo.FunctionWrapper efl_ui_win_screen_constrain_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_screen_constrain_set"); + + private static void screen_constrain_set(System.IntPtr obj, System.IntPtr pd, bool constrain) + { + Eina.Log.Debug("function efl_ui_win_screen_constrain_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetScreenConstrain(constrain); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_screen_constrain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), constrain); + } + } + + private static efl_ui_win_screen_constrain_set_delegate efl_ui_win_screen_constrain_set_static_delegate; + + + private delegate void efl_ui_win_prop_focus_skip_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool skip); + + + public delegate void efl_ui_win_prop_focus_skip_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool skip); + + public static Efl.Eo.FunctionWrapper efl_ui_win_prop_focus_skip_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_prop_focus_skip_set"); + + private static void prop_focus_skip_set(System.IntPtr obj, System.IntPtr pd, bool skip) + { + Eina.Log.Debug("function efl_ui_win_prop_focus_skip_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetPropFocusSkip(skip); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_prop_focus_skip_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), skip); + } + } + + private static efl_ui_win_prop_focus_skip_set_delegate efl_ui_win_prop_focus_skip_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_autohide_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_autohide_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_autohide_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_autohide_get"); + + private static bool autohide_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_autohide_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetAutohide(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_autohide_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_autohide_get_delegate efl_ui_win_autohide_get_static_delegate; + + + private delegate void efl_ui_win_autohide_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool autohide); + + + public delegate void efl_ui_win_autohide_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool autohide); + + public static Efl.Eo.FunctionWrapper efl_ui_win_autohide_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_autohide_set"); + + private static void autohide_set(System.IntPtr obj, System.IntPtr pd, bool autohide) + { + Eina.Log.Debug("function efl_ui_win_autohide_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetAutohide(autohide); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_autohide_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), autohide); + } + } + + private static efl_ui_win_autohide_set_delegate efl_ui_win_autohide_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + private delegate Eina.Value efl_ui_win_exit_on_close_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + public delegate Eina.Value efl_ui_win_exit_on_close_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_exit_on_close_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_exit_on_close_get"); + + private static Eina.Value exit_on_close_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_exit_on_close_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = ((Win)wrapper).GetExitOnClose(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_exit_on_close_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_exit_on_close_get_delegate efl_ui_win_exit_on_close_get_static_delegate; + + + private delegate void efl_ui_win_exit_on_close_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value exit_code); + + + public delegate void efl_ui_win_exit_on_close_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value exit_code); + + public static Efl.Eo.FunctionWrapper efl_ui_win_exit_on_close_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_exit_on_close_set"); + + private static void exit_on_close_set(System.IntPtr obj, System.IntPtr pd, Eina.Value exit_code) + { + Eina.Log.Debug("function efl_ui_win_exit_on_close_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetExitOnClose(exit_code); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_exit_on_close_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), exit_code); + } + } + + private static efl_ui_win_exit_on_close_set_delegate efl_ui_win_exit_on_close_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_win_icon_object_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_win_icon_object_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_icon_object_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_icon_object_get"); + + private static Efl.Canvas.Object icon_object_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_icon_object_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Win)wrapper).GetIconObject(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_icon_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_icon_object_get_delegate efl_ui_win_icon_object_get_static_delegate; + + + private delegate void efl_ui_win_icon_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object icon); + + + public delegate void efl_ui_win_icon_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object icon); + + public static Efl.Eo.FunctionWrapper efl_ui_win_icon_object_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_icon_object_set"); + + private static void icon_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object icon) + { + Eina.Log.Debug("function efl_ui_win_icon_object_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetIconObject(icon); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_icon_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), icon); + } + } + + private static efl_ui_win_icon_object_set_delegate efl_ui_win_icon_object_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_minimized_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_minimized_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_minimized_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_minimized_get"); + + private static bool minimized_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_minimized_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetMinimized(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_minimized_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_minimized_get_delegate efl_ui_win_minimized_get_static_delegate; + + + private delegate void efl_ui_win_minimized_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool state); + + + public delegate void efl_ui_win_minimized_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool state); + + public static Efl.Eo.FunctionWrapper efl_ui_win_minimized_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_minimized_set"); + + private static void minimized_set(System.IntPtr obj, System.IntPtr pd, bool state) + { + Eina.Log.Debug("function efl_ui_win_minimized_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetMinimized(state); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_minimized_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), state); + } + } + + private static efl_ui_win_minimized_set_delegate efl_ui_win_minimized_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_maximized_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_maximized_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_maximized_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_maximized_get"); + + private static bool maximized_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_maximized_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetMaximized(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_maximized_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_maximized_get_delegate efl_ui_win_maximized_get_static_delegate; + + + private delegate void efl_ui_win_maximized_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool maximized); + + + public delegate void efl_ui_win_maximized_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool maximized); + + public static Efl.Eo.FunctionWrapper efl_ui_win_maximized_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_maximized_set"); + + private static void maximized_set(System.IntPtr obj, System.IntPtr pd, bool maximized) + { + Eina.Log.Debug("function efl_ui_win_maximized_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetMaximized(maximized); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_maximized_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), maximized); + } + } + + private static efl_ui_win_maximized_set_delegate efl_ui_win_maximized_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_fullscreen_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_fullscreen_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_fullscreen_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_fullscreen_get"); + + private static bool fullscreen_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_fullscreen_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetFullscreen(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_fullscreen_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_fullscreen_get_delegate efl_ui_win_fullscreen_get_static_delegate; + + + private delegate void efl_ui_win_fullscreen_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool fullscreen); + + + public delegate void efl_ui_win_fullscreen_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool fullscreen); + + public static Efl.Eo.FunctionWrapper efl_ui_win_fullscreen_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_fullscreen_set"); + + private static void fullscreen_set(System.IntPtr obj, System.IntPtr pd, bool fullscreen) + { + Eina.Log.Debug("function efl_ui_win_fullscreen_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetFullscreen(fullscreen); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_fullscreen_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fullscreen); + } + } + + private static efl_ui_win_fullscreen_set_delegate efl_ui_win_fullscreen_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_sticky_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_sticky_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_sticky_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_sticky_get"); + + private static bool sticky_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_sticky_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetSticky(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_sticky_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_sticky_get_delegate efl_ui_win_sticky_get_static_delegate; + + + private delegate void efl_ui_win_sticky_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool sticky); + + + public delegate void efl_ui_win_sticky_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool sticky); + + public static Efl.Eo.FunctionWrapper efl_ui_win_sticky_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_sticky_set"); + + private static void sticky_set(System.IntPtr obj, System.IntPtr pd, bool sticky) + { + Eina.Log.Debug("function efl_ui_win_sticky_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetSticky(sticky); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_sticky_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sticky); + } + } + + private static efl_ui_win_sticky_set_delegate efl_ui_win_sticky_set_static_delegate; + + + private delegate Efl.Ui.WinUrgentMode efl_ui_win_urgent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.WinUrgentMode efl_ui_win_urgent_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_urgent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_urgent_get"); + + private static Efl.Ui.WinUrgentMode urgent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_urgent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.WinUrgentMode _ret_var = default(Efl.Ui.WinUrgentMode); + try + { + _ret_var = ((Win)wrapper).GetUrgent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_urgent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_urgent_get_delegate efl_ui_win_urgent_get_static_delegate; + + + private delegate void efl_ui_win_urgent_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinUrgentMode urgent); + + + public delegate void efl_ui_win_urgent_set_api_delegate(System.IntPtr obj, Efl.Ui.WinUrgentMode urgent); + + public static Efl.Eo.FunctionWrapper efl_ui_win_urgent_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_urgent_set"); + + private static void urgent_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinUrgentMode urgent) + { + Eina.Log.Debug("function efl_ui_win_urgent_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetUrgent(urgent); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_urgent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), urgent); + } + } + + private static efl_ui_win_urgent_set_delegate efl_ui_win_urgent_set_static_delegate; + + + private delegate Efl.Ui.WinModalMode efl_ui_win_modal_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.WinModalMode efl_ui_win_modal_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_modal_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_modal_get"); + + private static Efl.Ui.WinModalMode modal_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_modal_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.WinModalMode _ret_var = default(Efl.Ui.WinModalMode); + try + { + _ret_var = ((Win)wrapper).GetModal(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_modal_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_modal_get_delegate efl_ui_win_modal_get_static_delegate; + + + private delegate void efl_ui_win_modal_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinModalMode modal); + + + public delegate void efl_ui_win_modal_set_api_delegate(System.IntPtr obj, Efl.Ui.WinModalMode modal); + + public static Efl.Eo.FunctionWrapper efl_ui_win_modal_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_modal_set"); + + private static void modal_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinModalMode modal) + { + Eina.Log.Debug("function efl_ui_win_modal_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetModal(modal); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_modal_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), modal); + } + } + + private static efl_ui_win_modal_set_delegate efl_ui_win_modal_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_borderless_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_borderless_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_borderless_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_borderless_get"); + + private static bool borderless_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_borderless_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetBorderless(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_borderless_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_borderless_get_delegate efl_ui_win_borderless_get_static_delegate; + + + private delegate void efl_ui_win_borderless_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool borderless); + + + public delegate void efl_ui_win_borderless_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool borderless); + + public static Efl.Eo.FunctionWrapper efl_ui_win_borderless_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_borderless_set"); + + private static void borderless_set(System.IntPtr obj, System.IntPtr pd, bool borderless) + { + Eina.Log.Debug("function efl_ui_win_borderless_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetBorderless(borderless); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_borderless_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), borderless); + } + } + + private static efl_ui_win_borderless_set_delegate efl_ui_win_borderless_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_win_role_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_win_role_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_role_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_role_get"); + + private static System.String win_role_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_role_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Win)wrapper).GetWinRole(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_role_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_role_get_delegate efl_ui_win_role_get_static_delegate; + + + private delegate void efl_ui_win_role_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String role); + + + public delegate void efl_ui_win_role_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String role); + + public static Efl.Eo.FunctionWrapper efl_ui_win_role_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_role_set"); + + private static void win_role_set(System.IntPtr obj, System.IntPtr pd, System.String role) + { + Eina.Log.Debug("function efl_ui_win_role_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetWinRole(role); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_role_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), role); + } + } + + private static efl_ui_win_role_set_delegate efl_ui_win_role_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_win_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_win_name_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_name_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_name_get"); + + private static System.String win_name_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_name_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Win)wrapper).GetWinName(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_name_get_delegate efl_ui_win_name_get_static_delegate; + + + private delegate void efl_ui_win_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + + public delegate void efl_ui_win_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_ui_win_name_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_name_set"); + + private static void win_name_set(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_ui_win_name_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetWinName(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } + } + + private static efl_ui_win_name_set_delegate efl_ui_win_name_set_static_delegate; + + + private delegate Efl.Ui.WinType efl_ui_win_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.WinType efl_ui_win_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_type_get"); + + private static Efl.Ui.WinType win_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_type_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.WinType _ret_var = default(Efl.Ui.WinType); + try + { + _ret_var = ((Win)wrapper).GetWinType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_type_get_delegate efl_ui_win_type_get_static_delegate; + + + private delegate void efl_ui_win_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinType type); + + + public delegate void efl_ui_win_type_set_api_delegate(System.IntPtr obj, Efl.Ui.WinType type); + + public static Efl.Eo.FunctionWrapper efl_ui_win_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_type_set"); + + private static void win_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinType type) + { + Eina.Log.Debug("function efl_ui_win_type_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetWinType(type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + } + } + + private static efl_ui_win_type_set_delegate efl_ui_win_type_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_win_accel_preference_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_win_accel_preference_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_accel_preference_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_accel_preference_get"); + + private static System.String accel_preference_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_accel_preference_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Win)wrapper).GetAccelPreference(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_accel_preference_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_accel_preference_get_delegate efl_ui_win_accel_preference_get_static_delegate; + + + private delegate void efl_ui_win_accel_preference_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String accel); + + + public delegate void efl_ui_win_accel_preference_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String accel); + + public static Efl.Eo.FunctionWrapper efl_ui_win_accel_preference_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_accel_preference_set"); + + private static void accel_preference_set(System.IntPtr obj, System.IntPtr pd, System.String accel) + { + Eina.Log.Debug("function efl_ui_win_accel_preference_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetAccelPreference(accel); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_accel_preference_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), accel); + } + } + + private static efl_ui_win_accel_preference_set_delegate efl_ui_win_accel_preference_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_alpha_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_alpha_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_alpha_get"); + + private static bool alpha_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_alpha_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetAlpha(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_alpha_get_delegate efl_ui_win_alpha_get_static_delegate; + + + private delegate void efl_ui_win_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool alpha); + + + public delegate void efl_ui_win_alpha_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool alpha); + + public static Efl.Eo.FunctionWrapper efl_ui_win_alpha_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_alpha_set"); + + private static void alpha_set(System.IntPtr obj, System.IntPtr pd, bool alpha) + { + Eina.Log.Debug("function efl_ui_win_alpha_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetAlpha(alpha); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), alpha); + } + } + + private static efl_ui_win_alpha_set_delegate efl_ui_win_alpha_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_win_stack_id_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_win_stack_id_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_stack_id_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_stack_id_get"); + + private static System.String stack_id_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_stack_id_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Win)wrapper).GetStackId(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate void efl_ui_win_borderless_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool borderless); - public static Efl.Eo.FunctionWrapper efl_ui_win_borderless_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_borderless_set"); - private static void borderless_set(System.IntPtr obj, System.IntPtr pd, bool borderless) - { - Eina.Log.Debug("function efl_ui_win_borderless_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetBorderless( borderless); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_borderless_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), borderless); + } + else + { + return efl_ui_win_stack_id_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_win_borderless_set_delegate efl_ui_win_borderless_set_static_delegate; + private static efl_ui_win_stack_id_get_delegate efl_ui_win_stack_id_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_win_role_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_win_stack_master_id_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_win_stack_master_id_get_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_win_role_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_role_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_role_get"); - private static System.String win_role_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_role_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Win)wrapper).GetWinRole(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_win_stack_master_id_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_stack_master_id_get"); + + private static System.String stack_master_id_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_stack_master_id_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Win)wrapper).GetStackMasterId(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_stack_master_id_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_stack_master_id_get_delegate efl_ui_win_stack_master_id_get_static_delegate; + + + private delegate void efl_ui_win_stack_master_id_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String id); + + + public delegate void efl_ui_win_stack_master_id_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String id); + + public static Efl.Eo.FunctionWrapper efl_ui_win_stack_master_id_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_stack_master_id_set"); + + private static void stack_master_id_set(System.IntPtr obj, System.IntPtr pd, System.String id) + { + Eina.Log.Debug("function efl_ui_win_stack_master_id_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetStackMasterId(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_stack_master_id_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); } + } + + private static efl_ui_win_stack_master_id_set_delegate efl_ui_win_stack_master_id_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_stack_base_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_stack_base_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_stack_base_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_stack_base_get"); + + private static bool stack_base_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_stack_base_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetStackBase(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_win_role_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_win_stack_base_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_win_role_get_delegate efl_ui_win_role_get_static_delegate; + private static efl_ui_win_stack_base_get_delegate efl_ui_win_stack_base_get_static_delegate; - private delegate void efl_ui_win_role_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String role); + + private delegate void efl_ui_win_stack_base_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool kw_base); + + public delegate void efl_ui_win_stack_base_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool kw_base); - public delegate void efl_ui_win_role_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String role); - public static Efl.Eo.FunctionWrapper efl_ui_win_role_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_role_set"); - private static void win_role_set(System.IntPtr obj, System.IntPtr pd, System.String role) - { - Eina.Log.Debug("function efl_ui_win_role_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetWinRole( role); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_role_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), role); + public static Efl.Eo.FunctionWrapper efl_ui_win_stack_base_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_stack_base_set"); + + private static void stack_base_set(System.IntPtr obj, System.IntPtr pd, bool kw_base) + { + Eina.Log.Debug("function efl_ui_win_stack_base_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetStackBase(kw_base); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_stack_base_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_base); + } } - } - private static efl_ui_win_role_set_delegate efl_ui_win_role_set_static_delegate; + private static efl_ui_win_stack_base_set_delegate efl_ui_win_stack_base_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_win_name_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + private delegate Eina.Value efl_ui_win_exit_on_all_windows_closed_get_delegate(); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + public delegate Eina.Value efl_ui_win_exit_on_all_windows_closed_get_api_delegate(); + + public static Efl.Eo.FunctionWrapper efl_ui_win_exit_on_all_windows_closed_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_exit_on_all_windows_closed_get"); + + private static Eina.Value exit_on_all_windows_closed_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_exit_on_all_windows_closed_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = Win.GetExitOnAllWindowsClosed(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_win_name_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_name_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_name_get"); - private static System.String win_name_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_name_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Win)wrapper).GetWinName(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } + else + { + return efl_ui_win_exit_on_all_windows_closed_get_ptr.Value.Delegate(); + } + } + + + private delegate void efl_ui_win_exit_on_all_windows_closed_set_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value exit_code); + + + public delegate void efl_ui_win_exit_on_all_windows_closed_set_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value exit_code); + + public static Efl.Eo.FunctionWrapper efl_ui_win_exit_on_all_windows_closed_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_exit_on_all_windows_closed_set"); + + private static void exit_on_all_windows_closed_set(System.IntPtr obj, System.IntPtr pd, Eina.Value exit_code) + { + Eina.Log.Debug("function efl_ui_win_exit_on_all_windows_closed_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + Win.SetExitOnAllWindowsClosed(exit_code); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_exit_on_all_windows_closed_set_ptr.Value.Delegate(exit_code); + } + } + + + private delegate Eina.Size2D.NativeStruct efl_ui_win_hint_base_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_ui_win_hint_base_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_hint_base_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_hint_base_get"); + + private static Eina.Size2D.NativeStruct hint_base_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_hint_base_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Win)wrapper).GetHintBase(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_win_name_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_win_hint_base_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_win_name_get_delegate efl_ui_win_name_get_static_delegate; + private static efl_ui_win_hint_base_get_delegate efl_ui_win_hint_base_get_static_delegate; - private delegate void efl_ui_win_name_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + private delegate void efl_ui_win_hint_base_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + public delegate void efl_ui_win_hint_base_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public delegate void efl_ui_win_name_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_ui_win_name_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_name_set"); - private static void win_name_set(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_ui_win_name_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetWinName( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_name_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + public static Efl.Eo.FunctionWrapper efl_ui_win_hint_base_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_hint_base_set"); + + private static void hint_base_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_ui_win_hint_base_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((Win)wrapper).SetHintBase(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_hint_base_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + } } - } - private static efl_ui_win_name_set_delegate efl_ui_win_name_set_static_delegate; + private static efl_ui_win_hint_base_set_delegate efl_ui_win_hint_base_set_static_delegate; - private delegate Efl.Ui.WinType efl_ui_win_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate Eina.Size2D.NativeStruct efl_ui_win_hint_step_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Eina.Size2D.NativeStruct efl_ui_win_hint_step_get_api_delegate(System.IntPtr obj); - public delegate Efl.Ui.WinType efl_ui_win_type_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_type_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_type_get"); - private static Efl.Ui.WinType win_type_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_type_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.WinType _ret_var = default(Efl.Ui.WinType); - try { - _ret_var = ((Win)wrapper).GetWinType(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_win_hint_step_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_hint_step_get"); + + private static Eina.Size2D.NativeStruct hint_step_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_hint_step_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Win)wrapper).GetHintStep(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_hint_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_hint_step_get_delegate efl_ui_win_hint_step_get_static_delegate; + + + private delegate void efl_ui_win_hint_step_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + + public delegate void efl_ui_win_hint_step_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); + + public static Efl.Eo.FunctionWrapper efl_ui_win_hint_step_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_hint_step_set"); + + private static void hint_step_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_ui_win_hint_step_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((Win)wrapper).SetHintStep(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_hint_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); } + } + + private static efl_ui_win_hint_step_set_delegate efl_ui_win_hint_step_set_static_delegate; + + + private delegate int efl_ui_win_rotation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate int efl_ui_win_rotation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_rotation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_rotation_get"); + + private static int win_rotation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_rotation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Win)wrapper).GetWinRotation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_win_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_win_rotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_win_type_get_delegate efl_ui_win_type_get_static_delegate; + private static efl_ui_win_rotation_get_delegate efl_ui_win_rotation_get_static_delegate; - private delegate void efl_ui_win_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinType type); + + private delegate void efl_ui_win_rotation_set_delegate(System.IntPtr obj, System.IntPtr pd, int rotation); + + public delegate void efl_ui_win_rotation_set_api_delegate(System.IntPtr obj, int rotation); - public delegate void efl_ui_win_type_set_api_delegate(System.IntPtr obj, Efl.Ui.WinType type); - public static Efl.Eo.FunctionWrapper efl_ui_win_type_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_type_set"); - private static void win_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinType type) - { - Eina.Log.Debug("function efl_ui_win_type_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetWinType( type); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type); + public static Efl.Eo.FunctionWrapper efl_ui_win_rotation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_rotation_set"); + + private static void win_rotation_set(System.IntPtr obj, System.IntPtr pd, int rotation) + { + Eina.Log.Debug("function efl_ui_win_rotation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetWinRotation(rotation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_rotation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rotation); + } } - } - private static efl_ui_win_type_set_delegate efl_ui_win_type_set_static_delegate; + private static efl_ui_win_rotation_set_delegate efl_ui_win_rotation_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_focus_highlight_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_focus_highlight_enabled_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_focus_highlight_enabled_get"); + + private static bool focus_highlight_enabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_focus_highlight_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetFocusHighlightEnabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_focus_highlight_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_focus_highlight_enabled_get_delegate efl_ui_win_focus_highlight_enabled_get_static_delegate; + + + private delegate void efl_ui_win_focus_highlight_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + + + public delegate void efl_ui_win_focus_highlight_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); + + public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_focus_highlight_enabled_set"); + + private static void focus_highlight_enabled_set(System.IntPtr obj, System.IntPtr pd, bool enabled) + { + Eina.Log.Debug("function efl_ui_win_focus_highlight_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetFocusHighlightEnabled(enabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_focus_highlight_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); + } + } + + private static efl_ui_win_focus_highlight_enabled_set_delegate efl_ui_win_focus_highlight_enabled_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_win_focus_highlight_style_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_win_focus_highlight_style_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_style_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_focus_highlight_style_get"); + + private static System.String focus_highlight_style_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_focus_highlight_style_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Win)wrapper).GetFocusHighlightStyle(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_focus_highlight_style_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_focus_highlight_style_get_delegate efl_ui_win_focus_highlight_style_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_focus_highlight_style_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_focus_highlight_style_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + + public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_style_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_focus_highlight_style_set"); + + private static bool focus_highlight_style_set(System.IntPtr obj, System.IntPtr pd, System.String style) + { + Eina.Log.Debug("function efl_ui_win_focus_highlight_style_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).SetFocusHighlightStyle(style); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_focus_highlight_style_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); + } + } + + private static efl_ui_win_focus_highlight_style_set_delegate efl_ui_win_focus_highlight_style_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_focus_highlight_animate_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_focus_highlight_animate_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_animate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_focus_highlight_animate_get"); + + private static bool focus_highlight_animate_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_focus_highlight_animate_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetFocusHighlightAnimate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_focus_highlight_animate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_focus_highlight_animate_get_delegate efl_ui_win_focus_highlight_animate_get_static_delegate; + + + private delegate void efl_ui_win_focus_highlight_animate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool animate); + + + public delegate void efl_ui_win_focus_highlight_animate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool animate); + + public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_animate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_focus_highlight_animate_set"); + + private static void focus_highlight_animate_set(System.IntPtr obj, System.IntPtr pd, bool animate) + { + Eina.Log.Debug("function efl_ui_win_focus_highlight_animate_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetFocusHighlightAnimate(animate); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_focus_highlight_animate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate); + } + } + + private static efl_ui_win_focus_highlight_animate_set_delegate efl_ui_win_focus_highlight_animate_set_static_delegate; + + + private delegate void efl_ui_win_stack_pop_to_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_win_stack_pop_to_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_stack_pop_to_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_stack_pop_to"); + + private static void stack_pop_to(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_stack_pop_to was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).StackPopTo(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_stack_pop_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_stack_pop_to_delegate efl_ui_win_stack_pop_to_static_delegate; + + + private delegate void efl_ui_win_activate_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_win_activate_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_activate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_activate"); + + private static void activate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_activate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).Activate(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_activate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_win_activate_delegate efl_ui_win_activate_static_delegate; + + + private delegate void efl_ui_win_center_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool h, [MarshalAs(UnmanagedType.U1)] bool v); + + + public delegate void efl_ui_win_center_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool h, [MarshalAs(UnmanagedType.U1)] bool v); + + public static Efl.Eo.FunctionWrapper efl_ui_win_center_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_center"); + + private static void center(System.IntPtr obj, System.IntPtr pd, bool h, bool v) + { + Eina.Log.Debug("function efl_ui_win_center was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).Center(h, v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_win_center_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), h, v); + } + } + + private static efl_ui_win_center_delegate efl_ui_win_center_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_move_resize_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinMoveResizeMode mode); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_move_resize_start_api_delegate(System.IntPtr obj, Efl.Ui.WinMoveResizeMode mode); + + public static Efl.Eo.FunctionWrapper efl_ui_win_move_resize_start_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_move_resize_start"); + + private static bool move_resize_start(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinMoveResizeMode mode) + { + Eina.Log.Debug("function efl_ui_win_move_resize_start was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).MoveResizeStart(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_win_move_resize_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); + } + } + + private static efl_ui_win_move_resize_start_delegate efl_ui_win_move_resize_start_static_delegate; + + + private delegate System.IntPtr efl_ui_win_pointer_iterate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hover); + + + public delegate System.IntPtr efl_ui_win_pointer_iterate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hover); + + public static Efl.Eo.FunctionWrapper efl_ui_win_pointer_iterate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_pointer_iterate"); + + private static System.IntPtr pointer_iterate(System.IntPtr obj, System.IntPtr pd, bool hover) + { + Eina.Log.Debug("function efl_ui_win_pointer_iterate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Win)wrapper).PointerIterate(hover); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; + + } + else + { + return efl_ui_win_pointer_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hover); + } + } + + private static efl_ui_win_pointer_iterate_delegate efl_ui_win_pointer_iterate_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] + private delegate Eina.Value efl_config_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] + public delegate Eina.Value efl_config_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_config_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_get"); + + private static Eina.Value config_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_config_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = ((Win)wrapper).GetConfig(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_config_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } + } + + private static efl_config_get_delegate efl_config_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_config_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_win_accel_preference_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_config_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + public static Efl.Eo.FunctionWrapper efl_config_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_config_set"); + + private static bool config_set(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.Value value) + { + Eina.Log.Debug("function efl_config_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).SetConfig(name, value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_win_accel_preference_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_accel_preference_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_accel_preference_get"); - private static System.String accel_preference_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_accel_preference_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Win)wrapper).GetAccelPreference(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_win_accel_preference_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_config_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value); + } } - } - private static efl_ui_win_accel_preference_get_delegate efl_ui_win_accel_preference_get_static_delegate; + private static efl_config_set_delegate efl_config_set_static_delegate; - private delegate void efl_ui_win_accel_preference_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String accel); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_win_accel_preference_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String accel); - public static Efl.Eo.FunctionWrapper efl_ui_win_accel_preference_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_accel_preference_set"); - private static void accel_preference_set(System.IntPtr obj, System.IntPtr pd, System.String accel) - { - Eina.Log.Debug("function efl_ui_win_accel_preference_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetAccelPreference( accel); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_accel_preference_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), accel); - } - } - private static efl_ui_win_accel_preference_set_delegate efl_ui_win_accel_preference_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_alpha_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Win)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_alpha_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_alpha_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_alpha_get"); - private static bool alpha_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_alpha_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetAlpha(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_win_alpha_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_win_alpha_get_delegate efl_ui_win_alpha_get_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - private delegate void efl_ui_win_alpha_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool alpha); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - public delegate void efl_ui_win_alpha_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool alpha); - public static Efl.Eo.FunctionWrapper efl_ui_win_alpha_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_alpha_set"); - private static void alpha_set(System.IntPtr obj, System.IntPtr pd, bool alpha) - { - Eina.Log.Debug("function efl_ui_win_alpha_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetAlpha( alpha); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_alpha_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), alpha); - } - } - private static efl_ui_win_alpha_set_delegate efl_ui_win_alpha_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_win_stack_id_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_win_stack_id_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_stack_id_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_stack_id_get"); - private static System.String stack_id_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_stack_id_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Win)wrapper).GetStackId(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_win_stack_id_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } } - } - private static efl_ui_win_stack_id_get_delegate efl_ui_win_stack_id_get_static_delegate; + private static efl_content_set_delegate efl_content_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_win_stack_master_id_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Win)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_win_stack_master_id_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_stack_master_id_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_stack_master_id_get"); - private static System.String stack_master_id_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_stack_master_id_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Win)wrapper).GetStackMasterId(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_win_stack_master_id_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_stack_master_id_get_delegate efl_ui_win_stack_master_id_get_static_delegate; + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate void efl_ui_win_stack_master_id_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String id); + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + private delegate Eina.Size2D.NativeStruct efl_screen_size_in_pixels_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_win_stack_master_id_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String id); - public static Efl.Eo.FunctionWrapper efl_ui_win_stack_master_id_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_stack_master_id_set"); - private static void stack_master_id_set(System.IntPtr obj, System.IntPtr pd, System.String id) - { - Eina.Log.Debug("function efl_ui_win_stack_master_id_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetStackMasterId( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_stack_master_id_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); - } - } - private static efl_ui_win_stack_master_id_set_delegate efl_ui_win_stack_master_id_set_static_delegate; + + public delegate Eina.Size2D.NativeStruct efl_screen_size_in_pixels_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_screen_size_in_pixels_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_screen_size_in_pixels_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_stack_base_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Eina.Size2D.NativeStruct screen_size_in_pixels_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_screen_size_in_pixels_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Win)wrapper).GetScreenSizeInPixels(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_stack_base_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_stack_base_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_stack_base_get"); - private static bool stack_base_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_stack_base_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetStackBase(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_win_stack_base_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_screen_size_in_pixels_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_win_stack_base_get_delegate efl_ui_win_stack_base_get_static_delegate; - - private delegate void efl_ui_win_stack_base_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool kw_base); + private static efl_screen_size_in_pixels_get_delegate efl_screen_size_in_pixels_get_static_delegate; + + private delegate float efl_screen_scale_factor_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_win_stack_base_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool kw_base); - public static Efl.Eo.FunctionWrapper efl_ui_win_stack_base_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_stack_base_set"); - private static void stack_base_set(System.IntPtr obj, System.IntPtr pd, bool kw_base) - { - Eina.Log.Debug("function efl_ui_win_stack_base_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetStackBase( kw_base); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_stack_base_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_base); - } - } - private static efl_ui_win_stack_base_set_delegate efl_ui_win_stack_base_set_static_delegate; + + public delegate float efl_screen_scale_factor_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_screen_scale_factor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_screen_scale_factor_get"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] private delegate Eina.Value efl_ui_win_exit_on_all_windows_closed_get_delegate(); + private static float screen_scale_factor_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_screen_scale_factor_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + float _ret_var = default(float); + try + { + _ret_var = ((Win)wrapper).GetScreenScaleFactor(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] public delegate Eina.Value efl_ui_win_exit_on_all_windows_closed_get_api_delegate(); - public static Efl.Eo.FunctionWrapper efl_ui_win_exit_on_all_windows_closed_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_exit_on_all_windows_closed_get"); - private static Eina.Value exit_on_all_windows_closed_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_exit_on_all_windows_closed_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Value _ret_var = default(Eina.Value); - try { - _ret_var = Win.GetExitOnAllWindowsClosed(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_win_exit_on_all_windows_closed_get_ptr.Value.Delegate(); + else + { + return efl_screen_scale_factor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - - private delegate void efl_ui_win_exit_on_all_windows_closed_set_delegate( [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value exit_code); + private static efl_screen_scale_factor_get_delegate efl_screen_scale_factor_get_static_delegate; + + private delegate int efl_screen_rotation_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_win_exit_on_all_windows_closed_set_api_delegate( [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value exit_code); - public static Efl.Eo.FunctionWrapper efl_ui_win_exit_on_all_windows_closed_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_exit_on_all_windows_closed_set"); - private static void exit_on_all_windows_closed_set(System.IntPtr obj, System.IntPtr pd, Eina.Value exit_code) - { - Eina.Log.Debug("function efl_ui_win_exit_on_all_windows_closed_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - Win.SetExitOnAllWindowsClosed( exit_code); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_exit_on_all_windows_closed_set_ptr.Value.Delegate( exit_code); - } - } + + public delegate int efl_screen_rotation_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_screen_rotation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_screen_rotation_get"); - private delegate Eina.Size2D.NativeStruct efl_ui_win_hint_base_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static int screen_rotation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_screen_rotation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Win)wrapper).GetScreenRotation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Size2D.NativeStruct efl_ui_win_hint_base_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_hint_base_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_hint_base_get"); - private static Eina.Size2D.NativeStruct hint_base_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_hint_base_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Win)wrapper).GetHintBase(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_win_hint_base_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_screen_rotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_win_hint_base_get_delegate efl_ui_win_hint_base_get_static_delegate; + private static efl_screen_rotation_get_delegate efl_screen_rotation_get_static_delegate; - private delegate void efl_ui_win_hint_base_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + private delegate void efl_screen_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd, out int xdpi, out int ydpi); + + public delegate void efl_screen_dpi_get_api_delegate(System.IntPtr obj, out int xdpi, out int ydpi); - public delegate void efl_ui_win_hint_base_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_ui_win_hint_base_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_hint_base_set"); - private static void hint_base_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_ui_win_hint_base_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; - - try { - ((Win)wrapper).SetHintBase( _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_screen_dpi_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_screen_dpi_get"); + + private static void screen_dpi_get(System.IntPtr obj, System.IntPtr pd, out int xdpi, out int ydpi) + { + Eina.Log.Debug("function efl_screen_dpi_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + xdpi = default(int); ydpi = default(int); + try + { + ((Win)wrapper).GetScreenDpi(out xdpi, out ydpi); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_screen_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out xdpi, out ydpi); } - } else { - efl_ui_win_hint_base_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); } - } - private static efl_ui_win_hint_base_set_delegate efl_ui_win_hint_base_set_static_delegate; + private static efl_screen_dpi_get_delegate efl_screen_dpi_get_static_delegate; - private delegate Eina.Size2D.NativeStruct efl_ui_win_hint_step_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public delegate Eina.Size2D.NativeStruct efl_ui_win_hint_step_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_hint_step_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_hint_step_get"); - private static Eina.Size2D.NativeStruct hint_step_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_hint_step_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Win)wrapper).GetHintStep(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_win_hint_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_hint_step_get_delegate efl_ui_win_hint_step_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); - private delegate void efl_ui_win_hint_step_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Win)wrapper).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_win_hint_step_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); - public static Efl.Eo.FunctionWrapper efl_ui_win_hint_step_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_hint_step_set"); - private static void hint_step_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) - { - Eina.Log.Debug("function efl_ui_win_hint_step_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _in_sz = sz; - - try { - ((Win)wrapper).SetHintStep( _in_sz); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_win_hint_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + else + { + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_win_hint_step_set_delegate efl_ui_win_hint_step_set_static_delegate; + private static efl_text_get_delegate efl_text_get_static_delegate; - private delegate int efl_ui_win_rotation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public delegate int efl_ui_win_rotation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_rotation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_rotation_get"); - private static int win_rotation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_rotation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Win)wrapper).GetWinRotation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - return _ret_var; - } else { - return efl_ui_win_rotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_win_rotation_get_delegate efl_ui_win_rotation_get_static_delegate; + private static efl_text_set_delegate efl_text_set_static_delegate; - private delegate void efl_ui_win_rotation_set_delegate(System.IntPtr obj, System.IntPtr pd, int rotation); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_scene_image_max_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Size2D.NativeStruct max); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_scene_image_max_size_get_api_delegate(System.IntPtr obj, out Eina.Size2D.NativeStruct max); - public delegate void efl_ui_win_rotation_set_api_delegate(System.IntPtr obj, int rotation); - public static Efl.Eo.FunctionWrapper efl_ui_win_rotation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_rotation_set"); - private static void win_rotation_set(System.IntPtr obj, System.IntPtr pd, int rotation) - { - Eina.Log.Debug("function efl_ui_win_rotation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetWinRotation( rotation); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_rotation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rotation); - } - } - private static efl_ui_win_rotation_set_delegate efl_ui_win_rotation_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_canvas_scene_image_max_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_image_max_size_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_focus_highlight_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool image_max_size_get(System.IntPtr obj, System.IntPtr pd, out Eina.Size2D.NativeStruct max) + { + Eina.Log.Debug("function efl_canvas_scene_image_max_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Size2D _out_max = default(Eina.Size2D); + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetImageMaxSize(out _out_max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + max = _out_max; + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_focus_highlight_enabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_focus_highlight_enabled_get"); - private static bool focus_highlight_enabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_focus_highlight_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetFocusHighlightEnabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_win_focus_highlight_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_scene_image_max_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out max); + } } - } - private static efl_ui_win_focus_highlight_enabled_get_delegate efl_ui_win_focus_highlight_enabled_get_static_delegate; + private static efl_canvas_scene_image_max_size_get_delegate efl_canvas_scene_image_max_size_get_static_delegate; - private delegate void efl_ui_win_focus_highlight_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enabled); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_scene_group_objects_calculating_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_scene_group_objects_calculating_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_win_focus_highlight_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enabled); - public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_focus_highlight_enabled_set"); - private static void focus_highlight_enabled_set(System.IntPtr obj, System.IntPtr pd, bool enabled) - { - Eina.Log.Debug("function efl_ui_win_focus_highlight_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetFocusHighlightEnabled( enabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_focus_highlight_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enabled); - } - } - private static efl_ui_win_focus_highlight_enabled_set_delegate efl_ui_win_focus_highlight_enabled_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_canvas_scene_group_objects_calculating_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_group_objects_calculating_get"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_win_focus_highlight_style_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool group_objects_calculating_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_scene_group_objects_calculating_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetGroupObjectsCalculating(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_ui_win_focus_highlight_style_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_style_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_focus_highlight_style_get"); - private static System.String focus_highlight_style_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_focus_highlight_style_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Win)wrapper).GetFocusHighlightStyle(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_win_focus_highlight_style_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_scene_group_objects_calculating_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_win_focus_highlight_style_get_delegate efl_ui_win_focus_highlight_style_get_static_delegate; + private static efl_canvas_scene_group_objects_calculating_get_delegate efl_canvas_scene_group_objects_calculating_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_focus_highlight_style_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_canvas_scene_device_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_canvas_scene_device_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_focus_highlight_style_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String style); - public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_style_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_focus_highlight_style_set"); - private static bool focus_highlight_style_set(System.IntPtr obj, System.IntPtr pd, System.String style) - { - Eina.Log.Debug("function efl_ui_win_focus_highlight_style_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).SetFocusHighlightStyle( style); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_win_focus_highlight_style_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style); - } - } - private static efl_ui_win_focus_highlight_style_set_delegate efl_ui_win_focus_highlight_style_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_canvas_scene_device_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_device_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_focus_highlight_animate_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_canvas_scene_device_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((Win)wrapper).GetDevice(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_focus_highlight_animate_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_animate_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_focus_highlight_animate_get"); - private static bool focus_highlight_animate_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_focus_highlight_animate_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetFocusHighlightAnimate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_win_focus_highlight_animate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_scene_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } } - } - private static efl_ui_win_focus_highlight_animate_get_delegate efl_ui_win_focus_highlight_animate_get_static_delegate; + private static efl_canvas_scene_device_get_delegate efl_canvas_scene_device_get_static_delegate; - private delegate void efl_ui_win_focus_highlight_animate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool animate); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_canvas_scene_seat_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_canvas_scene_seat_get_api_delegate(System.IntPtr obj, int id); - public delegate void efl_ui_win_focus_highlight_animate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool animate); - public static Efl.Eo.FunctionWrapper efl_ui_win_focus_highlight_animate_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_focus_highlight_animate_set"); - private static void focus_highlight_animate_set(System.IntPtr obj, System.IntPtr pd, bool animate) - { - Eina.Log.Debug("function efl_ui_win_focus_highlight_animate_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetFocusHighlightAnimate( animate); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_focus_highlight_animate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate); - } - } - private static efl_ui_win_focus_highlight_animate_set_delegate efl_ui_win_focus_highlight_animate_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_canvas_scene_seat_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_seat_get"); - private delegate void efl_ui_win_stack_pop_to_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Input.Device seat_get(System.IntPtr obj, System.IntPtr pd, int id) + { + Eina.Log.Debug("function efl_canvas_scene_seat_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((Win)wrapper).GetSeat(id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_win_stack_pop_to_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_stack_pop_to_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_stack_pop_to"); - private static void stack_pop_to(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_stack_pop_to was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).StackPopTo(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_win_stack_pop_to_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_scene_seat_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); + } } - } - private static efl_ui_win_stack_pop_to_delegate efl_ui_win_stack_pop_to_static_delegate; + private static efl_canvas_scene_seat_get_delegate efl_canvas_scene_seat_get_static_delegate; - private delegate void efl_ui_win_activate_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Input.Device efl_canvas_scene_seat_default_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Input.Device efl_canvas_scene_seat_default_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_win_activate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_activate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_activate"); - private static void activate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_activate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).Activate(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_win_activate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_win_activate_delegate efl_ui_win_activate_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_canvas_scene_seat_default_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_seat_default_get"); - private delegate void efl_ui_win_center_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool h, [MarshalAs(UnmanagedType.U1)] bool v); + private static Efl.Input.Device seat_default_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_scene_seat_default_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Input.Device _ret_var = default(Efl.Input.Device); + try + { + _ret_var = ((Win)wrapper).GetSeatDefault(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_ui_win_center_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool h, [MarshalAs(UnmanagedType.U1)] bool v); - public static Efl.Eo.FunctionWrapper efl_ui_win_center_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_center"); - private static void center(System.IntPtr obj, System.IntPtr pd, bool h, bool v) - { - Eina.Log.Debug("function efl_ui_win_center was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).Center( h, v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_ui_win_center_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), h, v); + else + { + return efl_canvas_scene_seat_default_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_win_center_delegate efl_ui_win_center_static_delegate; + private static efl_canvas_scene_seat_default_get_delegate efl_canvas_scene_seat_default_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_move_resize_start_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinMoveResizeMode mode); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_scene_pointer_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_scene_pointer_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_move_resize_start_api_delegate(System.IntPtr obj, Efl.Ui.WinMoveResizeMode mode); - public static Efl.Eo.FunctionWrapper efl_ui_win_move_resize_start_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_move_resize_start"); - private static bool move_resize_start(System.IntPtr obj, System.IntPtr pd, Efl.Ui.WinMoveResizeMode mode) - { - Eina.Log.Debug("function efl_ui_win_move_resize_start was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).MoveResizeStart( mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_win_move_resize_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); - } - } - private static efl_ui_win_move_resize_start_delegate efl_ui_win_move_resize_start_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_canvas_scene_pointer_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_pointer_position_get"); - private delegate System.IntPtr efl_ui_win_pointer_iterate_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hover); + private static bool pointer_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_canvas_scene_pointer_position_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _out_pos = default(Eina.Position2D); + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetPointerPosition(seat, out _out_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + pos = _out_pos; + return _ret_var; - public delegate System.IntPtr efl_ui_win_pointer_iterate_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hover); - public static Efl.Eo.FunctionWrapper efl_ui_win_pointer_iterate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_pointer_iterate"); - private static System.IntPtr pointer_iterate(System.IntPtr obj, System.IntPtr pd, bool hover) - { - Eina.Log.Debug("function efl_ui_win_pointer_iterate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Win)wrapper).PointerIterate( hover); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var.Handle; - } else { - return efl_ui_win_pointer_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hover); + else + { + return efl_canvas_scene_pointer_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat, out pos); + } } - } - private static efl_ui_win_pointer_iterate_delegate efl_ui_win_pointer_iterate_static_delegate; + private static efl_canvas_scene_pointer_position_get_delegate efl_canvas_scene_pointer_position_get_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] private delegate Eina.Value efl_config_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + private delegate void efl_canvas_scene_group_objects_calculate_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_canvas_scene_group_objects_calculate_api_delegate(System.IntPtr obj); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] public delegate Eina.Value efl_config_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_config_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_get"); - private static Eina.Value config_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_config_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Value _ret_var = default(Eina.Value); - try { - _ret_var = ((Win)wrapper).GetConfig( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_canvas_scene_group_objects_calculate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_group_objects_calculate"); + + private static void group_objects_calculate(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_scene_group_objects_calculate was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).CalculateGroupObjects(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_scene_group_objects_calculate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_config_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); } - } - private static efl_config_get_delegate efl_config_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_config_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + private static efl_canvas_scene_group_objects_calculate_delegate efl_canvas_scene_group_objects_calculate_static_delegate; + + private delegate System.IntPtr efl_canvas_scene_objects_at_xy_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_config_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); - public static Efl.Eo.FunctionWrapper efl_config_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_config_set"); - private static bool config_set(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.Value value) - { - Eina.Log.Debug("function efl_config_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).SetConfig( name, value); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_config_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value); - } - } - private static efl_config_set_delegate efl_config_set_static_delegate; + + public delegate System.IntPtr efl_canvas_scene_objects_at_xy_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + public static Efl.Eo.FunctionWrapper efl_canvas_scene_objects_at_xy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_objects_at_xy_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.IntPtr objects_at_xy_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, bool include_pass_events_objects, bool include_hidden_objects) + { + Eina.Log.Debug("function efl_canvas_scene_objects_at_xy_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Win)wrapper).GetObjectsAtXy(_in_pos, include_pass_events_objects, include_hidden_objects); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Win)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_scene_objects_at_xy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos, include_pass_events_objects, include_hidden_objects); + } } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + private static efl_canvas_scene_objects_at_xy_get_delegate efl_canvas_scene_objects_at_xy_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_at_xy_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_at_xy_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_content_set_delegate efl_content_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_canvas_scene_object_top_at_xy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_object_top_at_xy_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Gfx.IEntity object_top_at_xy_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, bool include_pass_events_objects, bool include_hidden_objects) + { + Eina.Log.Debug("function efl_canvas_scene_object_top_at_xy_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Position2D _in_pos = pos; + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Win)wrapper).GetObjectTopAtXy(_in_pos, include_pass_events_objects, include_hidden_objects); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Win)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_scene_object_top_at_xy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos, include_pass_events_objects, include_hidden_objects); + } } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; - - private delegate Eina.Size2D.NativeStruct efl_screen_size_in_pixels_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_canvas_scene_object_top_at_xy_get_delegate efl_canvas_scene_object_top_at_xy_get_static_delegate; + + private delegate System.IntPtr efl_canvas_scene_objects_in_rectangle_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - public delegate Eina.Size2D.NativeStruct efl_screen_size_in_pixels_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_screen_size_in_pixels_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_screen_size_in_pixels_get"); - private static Eina.Size2D.NativeStruct screen_size_in_pixels_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_screen_size_in_pixels_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); - try { - _ret_var = ((Win)wrapper).GetScreenSizeInPixels(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_screen_size_in_pixels_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_screen_size_in_pixels_get_delegate efl_screen_size_in_pixels_get_static_delegate; + + public delegate System.IntPtr efl_canvas_scene_objects_in_rectangle_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + public static Efl.Eo.FunctionWrapper efl_canvas_scene_objects_in_rectangle_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_objects_in_rectangle_get"); - private delegate float efl_screen_scale_factor_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.IntPtr objects_in_rectangle_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool include_pass_events_objects, bool include_hidden_objects) + { + Eina.Log.Debug("function efl_canvas_scene_objects_in_rectangle_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Win)wrapper).GetObjectsInRectangle(_in_rect, include_pass_events_objects, include_hidden_objects); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - public delegate float efl_screen_scale_factor_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_screen_scale_factor_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_screen_scale_factor_get"); - private static float screen_scale_factor_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_screen_scale_factor_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - float _ret_var = default(float); - try { - _ret_var = ((Win)wrapper).GetScreenScaleFactor(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_screen_scale_factor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_scene_objects_in_rectangle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, include_pass_events_objects, include_hidden_objects); + } } - } - private static efl_screen_scale_factor_get_delegate efl_screen_scale_factor_get_static_delegate; + private static efl_canvas_scene_objects_in_rectangle_get_delegate efl_canvas_scene_objects_in_rectangle_get_static_delegate; - private delegate int efl_screen_rotation_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_in_rectangle_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_in_rectangle_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + + public static Efl.Eo.FunctionWrapper efl_canvas_scene_object_top_in_rectangle_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_object_top_in_rectangle_get"); + + private static Efl.Gfx.IEntity object_top_in_rectangle_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool include_pass_events_objects, bool include_hidden_objects) + { + Eina.Log.Debug("function efl_canvas_scene_object_top_in_rectangle_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_rect = rect; + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Win)wrapper).GetObjectTopInRectangle(_in_rect, include_pass_events_objects, include_hidden_objects); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate int efl_screen_rotation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_screen_rotation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_screen_rotation_get"); - private static int screen_rotation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_screen_rotation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - int _ret_var = default(int); - try { - _ret_var = ((Win)wrapper).GetScreenRotation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_screen_rotation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_scene_object_top_in_rectangle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, include_pass_events_objects, include_hidden_objects); + } } - } - private static efl_screen_rotation_get_delegate efl_screen_rotation_get_static_delegate; + private static efl_canvas_scene_object_top_in_rectangle_get_delegate efl_canvas_scene_object_top_in_rectangle_get_static_delegate; - private delegate void efl_screen_dpi_get_delegate(System.IntPtr obj, System.IntPtr pd, out int xdpi, out int ydpi); + + private delegate System.IntPtr efl_canvas_scene_seats_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_canvas_scene_seats_api_delegate(System.IntPtr obj); - public delegate void efl_screen_dpi_get_api_delegate(System.IntPtr obj, out int xdpi, out int ydpi); - public static Efl.Eo.FunctionWrapper efl_screen_dpi_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_screen_dpi_get"); - private static void screen_dpi_get(System.IntPtr obj, System.IntPtr pd, out int xdpi, out int ydpi) - { - Eina.Log.Debug("function efl_screen_dpi_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - xdpi = default(int); ydpi = default(int); - try { - ((Win)wrapper).GetScreenDpi( out xdpi, out ydpi); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_screen_dpi_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out xdpi, out ydpi); - } - } - private static efl_screen_dpi_get_delegate efl_screen_dpi_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_canvas_scene_seats_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_scene_seats"); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.IntPtr seats(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_scene_seats was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Win)wrapper).Seats(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + _ret_var.Own = false; return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((Win)wrapper).GetText(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_canvas_scene_seats_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_canvas_scene_seats_delegate efl_canvas_scene_seats_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_modifier_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_modifier_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_text_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetText( text); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); - } - } - private static efl_text_set_delegate efl_text_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_input_modifier_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_modifier_enabled_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_scene_image_max_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out Eina.Size2D.NativeStruct max); + private static bool modifier_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_input_modifier_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetModifierEnabled(mod, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_scene_image_max_size_get_api_delegate(System.IntPtr obj, out Eina.Size2D.NativeStruct max); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_image_max_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_image_max_size_get"); - private static bool image_max_size_get(System.IntPtr obj, System.IntPtr pd, out Eina.Size2D.NativeStruct max) - { - Eina.Log.Debug("function efl_canvas_scene_image_max_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Size2D _out_max = default(Eina.Size2D); - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetImageMaxSize( out _out_max); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - max = _out_max; - return _ret_var; - } else { - return efl_canvas_scene_image_max_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out max); + else + { + return efl_input_modifier_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mod, seat); + } } - } - private static efl_canvas_scene_image_max_size_get_delegate efl_canvas_scene_image_max_size_get_static_delegate; + private static efl_input_modifier_enabled_get_delegate efl_input_modifier_enabled_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_scene_group_objects_calculating_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_lock_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_lock_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.Device seat); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_scene_group_objects_calculating_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_group_objects_calculating_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_group_objects_calculating_get"); - private static bool group_objects_calculating_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_scene_group_objects_calculating_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetGroupObjectsCalculating(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_canvas_scene_group_objects_calculating_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_canvas_scene_group_objects_calculating_get_delegate efl_canvas_scene_group_objects_calculating_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_input_lock_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_lock_enabled_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_canvas_scene_device_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + private static bool lock_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, Efl.Input.Device seat) + { + Eina.Log.Debug("function efl_input_lock_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).GetLockEnabled(kw_lock, seat); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_canvas_scene_device_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_device_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_device_get"); - private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd, System.String name) - { - Eina.Log.Debug("function efl_canvas_scene_device_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((Win)wrapper).GetDevice( name); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_canvas_scene_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); - } - } - private static efl_canvas_scene_device_get_delegate efl_canvas_scene_device_get_static_delegate; - + else + { + return efl_input_lock_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_lock, seat); + } + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_canvas_scene_seat_get_delegate(System.IntPtr obj, System.IntPtr pd, int id); + private static efl_input_lock_enabled_get_delegate efl_input_lock_enabled_get_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_canvas_scene_seat_get_api_delegate(System.IntPtr obj, int id); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_seat_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_seat_get"); - private static Efl.Input.Device seat_get(System.IntPtr obj, System.IntPtr pd, int id) - { - Eina.Log.Debug("function efl_canvas_scene_seat_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((Win)wrapper).GetSeat( id); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_canvas_scene_seat_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id); - } - } - private static efl_canvas_scene_seat_get_delegate efl_canvas_scene_seat_get_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Input.Device efl_canvas_scene_seat_default_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((Win)wrapper).FocusManagerCreate(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Input.Device efl_canvas_scene_seat_default_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_seat_default_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_seat_default_get"); - private static Efl.Input.Device seat_default_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_scene_seat_default_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Input.Device _ret_var = default(Efl.Input.Device); - try { - _ret_var = ((Win)wrapper).GetSeatDefault(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_canvas_scene_seat_default_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_canvas_scene_seat_default_get_delegate efl_canvas_scene_seat_default_get_static_delegate; + private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_canvas_scene_pointer_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); + + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Win)wrapper).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_scene_pointer_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_pointer_position_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_pointer_position_get"); - private static bool pointer_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat, out Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_canvas_scene_pointer_position_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _out_pos = default(Eina.Position2D); - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetPointerPosition( seat, out _out_pos); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - pos = _out_pos; - return _ret_var; - } else { - return efl_canvas_scene_pointer_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat, out pos); + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_scene_pointer_position_get_delegate efl_canvas_scene_pointer_position_get_static_delegate; + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; - private delegate void efl_canvas_scene_group_objects_calculate_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_canvas_scene_group_objects_calculate_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_group_objects_calculate_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_group_objects_calculate"); - private static void group_objects_calculate(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_scene_group_objects_calculate was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((Win)wrapper).CalculateGroupObjects(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - efl_canvas_scene_group_objects_calculate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + } } - } - private static efl_canvas_scene_group_objects_calculate_delegate efl_canvas_scene_group_objects_calculate_static_delegate; - - private delegate System.IntPtr efl_canvas_scene_objects_at_xy_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate System.IntPtr efl_canvas_scene_objects_at_xy_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_objects_at_xy_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_objects_at_xy_get"); - private static System.IntPtr objects_at_xy_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, bool include_pass_events_objects, bool include_hidden_objects) - { - Eina.Log.Debug("function efl_canvas_scene_objects_at_xy_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Win)wrapper).GetObjectsAtXy( _in_pos, include_pass_events_objects, include_hidden_objects); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_canvas_scene_objects_at_xy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos, include_pass_events_objects, include_hidden_objects); - } - } - private static efl_canvas_scene_objects_at_xy_get_delegate efl_canvas_scene_objects_at_xy_get_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_at_xy_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((Win)wrapper).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_at_xy_get_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_object_top_at_xy_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_object_top_at_xy_get"); - private static Efl.Gfx.IEntity object_top_at_xy_get(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos, bool include_pass_events_objects, bool include_hidden_objects) - { - Eina.Log.Debug("function efl_canvas_scene_object_top_at_xy_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Position2D _in_pos = pos; - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Win)wrapper).GetObjectTopAtXy( _in_pos, include_pass_events_objects, include_hidden_objects); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_canvas_scene_object_top_at_xy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos, include_pass_events_objects, include_hidden_objects); + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_scene_object_top_at_xy_get_delegate efl_canvas_scene_object_top_at_xy_get_static_delegate; + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; - private delegate System.IntPtr efl_canvas_scene_objects_in_rectangle_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); - public delegate System.IntPtr efl_canvas_scene_objects_in_rectangle_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_objects_in_rectangle_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_objects_in_rectangle_get"); - private static System.IntPtr objects_in_rectangle_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool include_pass_events_objects, bool include_hidden_objects) - { - Eina.Log.Debug("function efl_canvas_scene_objects_in_rectangle_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Win)wrapper).GetObjectsInRectangle( _in_rect, include_pass_events_objects, include_hidden_objects); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); + + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_canvas_scene_objects_in_rectangle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, include_pass_events_objects, include_hidden_objects); } - } - private static efl_canvas_scene_objects_in_rectangle_get_delegate efl_canvas_scene_objects_in_rectangle_get_static_delegate; + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_in_rectangle_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_canvas_scene_object_top_in_rectangle_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool include_pass_events_objects, [MarshalAs(UnmanagedType.U1)] bool include_hidden_objects); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_object_top_in_rectangle_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_object_top_in_rectangle_get"); - private static Efl.Gfx.IEntity object_top_in_rectangle_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool include_pass_events_objects, bool include_hidden_objects) - { - Eina.Log.Debug("function efl_canvas_scene_object_top_in_rectangle_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_rect = rect; - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((Win)wrapper).GetObjectTopInRectangle( _in_rect, include_pass_events_objects, include_hidden_objects); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_canvas_scene_object_top_in_rectangle_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, include_pass_events_objects, include_hidden_objects); - } - } - private static efl_canvas_scene_object_top_in_rectangle_get_delegate efl_canvas_scene_object_top_in_rectangle_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); - private delegate System.IntPtr efl_canvas_scene_seats_delegate(System.IntPtr obj, System.IntPtr pd); + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Win)wrapper).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - public delegate System.IntPtr efl_canvas_scene_seats_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_scene_seats_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_canvas_scene_seats"); - private static System.IntPtr seats(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_canvas_scene_seats was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Win)wrapper).Seats(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - _ret_var.Own = false; return _ret_var.Handle; - } else { - return efl_canvas_scene_seats_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_canvas_scene_seats_delegate efl_canvas_scene_seats_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_modifier_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_modifier_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Modifier mod, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_input_modifier_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_modifier_enabled_get"); - private static bool modifier_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_input_modifier_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetModifierEnabled( mod, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_input_modifier_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mod, seat); - } - } - private static efl_input_modifier_enabled_get_delegate efl_input_modifier_enabled_get_static_delegate; + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_input_lock_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Win)wrapper).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_input_lock_enabled_get_api_delegate(System.IntPtr obj, Efl.Input.Lock kw_lock, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Input.Device seat); - public static Efl.Eo.FunctionWrapper efl_input_lock_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_input_lock_enabled_get"); - private static bool lock_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, Efl.Input.Device seat) - { - Eina.Log.Debug("function efl_input_lock_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).GetLockEnabled( kw_lock, seat); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_input_lock_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_lock, seat); + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } } - } - private static efl_input_lock_enabled_get_delegate efl_input_lock_enabled_get_static_delegate; + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_manager_create"); - private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((Win)wrapper).FocusManagerCreate( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Win)wrapper).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_get"); - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Win)wrapper).GetManagerFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_set"); - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetManagerFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Win)wrapper).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_get"); - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((Win)wrapper).GetRedirect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_set"); - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetRedirect( redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Win)wrapper).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_border_elements_get"); - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Win)wrapper).GetBorderElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } } - } - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_viewport_elements_get"); - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((Win)wrapper).GetViewportElements( _in_viewport); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); - } - } - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Win)wrapper).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_get"); - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Win)wrapper).GetRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } } - } - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_set"); - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((Win)wrapper).SetRoot( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Win)wrapper).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_move"); - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Win)wrapper).Move( direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_move"); - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Win)wrapper).MoveRequest( direction, child, logical); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); - } - } - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((Win)wrapper).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_subchild"); - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((Win)wrapper).RequestSubchild( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } } - } - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); + + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((Win)wrapper).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_fetch"); - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try { - _ret_var = ((Win)wrapper).Fetch( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_logical_end"); - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try { - _ret_var = ((Win)wrapper).LogicalEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - return _ret_var; - } else { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_reset_history"); - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).ResetHistory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); + + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_pop_history_stack"); - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).PopHistoryStack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); + + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); } - } else { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).SetupOnFirstTouch( direction, entry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); + + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); } - } - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).FreezeDirtyLogic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((Win)wrapper).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning restore CA1707, SA1300, SA1600 +} +} +} - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((Win)wrapper).DirtyLogicUnfreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; } -} } -namespace Efl { namespace Ui { + +namespace Efl { + +namespace Ui { + /// Defines the types of window that can be created /// These are hints set on a window so that a running Window Manager knows how the window should be handled and/or what kind of decorations it should have. /// @@ -6489,19 +8695,22 @@ Tooltip = 11, Notification = 12, /// A window holding the contents of a combo box. Not usually used in the EFL. Combo = 13, -/// Dnd = 14, -/// InlinedImage = 15, -/// SocketImage = 16, /// Used for naviframe style replacement with a back button instead of a close button. NaviframeBasic = 17, -/// Fake = 18, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// The different layouts that can be requested for the virtual keyboard. /// When the application window is being managed by Illume it may request any of the following layouts for the virtual keyboard. public enum WinKeyboardMode @@ -6539,8 +8748,15 @@ Keypad = 14, /// J2ME keyboard layout J2me = 15, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Defines the type indicator that can be shown /// (Since EFL 1.22) public enum WinIndicatorMode @@ -6558,8 +8774,15 @@ BgTransparent = 4, /// The indicator is hidden so user can see only the content of window such as in video mode. If user flicks the upper side of window, the indicator is shown temporarily. Hidden = 5, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Defines the mode of a modal window public enum WinModalMode { @@ -6568,8 +8791,15 @@ None = 0, /// The window is modal window. Modal = 1, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Defines the mode of a urgent window. public enum WinUrgentMode { @@ -6578,8 +8808,15 @@ None = 0, /// The window is a urgent window. Urgent = 1, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// Define the move or resize mode of window. /// The user can request the display server to start moving or resizing the window by combining these modes. However only limited combinations are allowed. /// @@ -6598,39 +8835,45 @@ Left = 8, /// Start resizing window to the right Right = 16, } -} } -namespace Efl { namespace Ui { + +} + +} + +namespace Efl { + +namespace Ui { + /// List of window effect. /// These list indicates types of window effect. When the effect started or done, the Elm_Win is notified with type information of window effect. public enum WinEffectType { -/// Unknown = 0, -/// Show = 1, -/// Hide = 2, -/// Restack = 3, } -} } -namespace Efl { namespace Ui { -/// + +} + +} + +namespace Efl { + +namespace Ui { + public enum WinConformantProperty { -/// Default = 0, -/// IndicatorState = 1, -/// IndicatorGeometry = 2, -/// KeyboardState = 4, -/// KeyboardGeometry = 8, -/// ClipboardState = 16, -/// ClipboardGeometry = 32, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_inlined.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_inlined.eo.cs index 390e16c..249f89c 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_inlined.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_inlined.eo.cs @@ -3,78 +3,114 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// An inlined window. /// The window is rendered onto an image buffer. No actual window is created, instead the window and all of its contents will be rendered to an image buffer. This allows child windows inside a parent just like any other object. You can also do other things like apply map effects. This window must have a valid parent. -[WinInlinedNativeInherit] +[Efl.Ui.WinInlined.NativeMethods] public class WinInlined : Efl.Ui.Win, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (WinInlined)) - return Efl.Ui.WinInlinedNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(WinInlined)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_win_inlined_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See - ///The window name. See - ///The type of the window. See - ///The hardware acceleration preference for this window. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See + /// The window name. See + /// The type of the window. See + /// The hardware acceleration preference for this window. See public WinInlined(Efl.Object parent - , System.String style = null, System.String winName = null, Efl.Ui.WinType? winType = null, System.String accelPreference = null) : - base(efl_ui_win_inlined_class_get(), typeof(WinInlined), parent) + , System.String style = null, System.String winName = null, Efl.Ui.WinType? winType = null, System.String accelPreference = null) : base(efl_ui_win_inlined_class_get(), typeof(WinInlined), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + if (Efl.Eo.Globals.ParamHelperCheck(winName)) + { SetWinName(Efl.Eo.Globals.GetParamHelper(winName)); + } + if (Efl.Eo.Globals.ParamHelperCheck(winType)) + { SetWinType(Efl.Eo.Globals.GetParamHelper(winType)); + } + if (Efl.Eo.Globals.ParamHelperCheck(accelPreference)) + { SetAccelPreference(Efl.Eo.Globals.GetParamHelper(accelPreference)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected WinInlined(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected WinInlined(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected WinInlined(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// This property holds the parent object in the parent canvas. /// An object in the parent canvas. virtual public Efl.Canvas.Object GetInlinedParent() { - var _ret_var = Efl.Ui.WinInlinedNativeInherit.efl_ui_win_inlined_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Ui.WinInlined.NativeMethods.efl_ui_win_inlined_parent_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -87,52 +123,81 @@ public class WinInlined : Efl.Ui.Win, Efl.Eo.IWrapper { return Efl.Ui.WinInlined.efl_ui_win_inlined_class_get(); } -} -public class WinInlinedNativeInherit : Efl.Ui.WinNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Win.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_win_inlined_parent_get_static_delegate == null) - efl_ui_win_inlined_parent_get_static_delegate = new efl_ui_win_inlined_parent_get_delegate(inlined_parent_get); - if (methods.FirstOrDefault(m => m.Name == "GetInlinedParent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_inlined_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_inlined_parent_get_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.WinInlined.efl_ui_win_inlined_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.WinInlined.efl_ui_win_inlined_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_win_inlined_parent_get_static_delegate == null) + { + efl_ui_win_inlined_parent_get_static_delegate = new efl_ui_win_inlined_parent_get_delegate(inlined_parent_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetInlinedParent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_inlined_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_inlined_parent_get_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.WinInlined.efl_ui_win_inlined_class_get(); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Canvas.Object efl_ui_win_inlined_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + #pragma warning disable CA1707, SA1300, SA1600 + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_win_inlined_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_win_inlined_parent_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_win_inlined_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_inlined_parent_get"); + + private static Efl.Canvas.Object inlined_parent_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_win_inlined_parent_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((WinInlined)wrapper).GetInlinedParent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Canvas.Object efl_ui_win_inlined_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_win_inlined_parent_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_inlined_parent_get"); - private static Efl.Canvas.Object inlined_parent_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_win_inlined_parent_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try { - _ret_var = ((WinInlined)wrapper).GetInlinedParent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_win_inlined_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_win_inlined_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_win_inlined_parent_get_delegate efl_ui_win_inlined_parent_get_static_delegate; + + private static efl_ui_win_inlined_parent_get_delegate efl_ui_win_inlined_parent_get_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_part.eo.cs index a1729bf..635b1e8 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_part.eo.cs @@ -3,130 +3,165 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI window interal part class -[WinPartNativeInherit] +[Efl.Ui.WinPart.NativeMethods] public class WinPart : Efl.Ui.WidgetPart, Efl.Eo.IWrapper,Efl.IContent,Efl.IFile,Efl.Gfx.IColor { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (WinPart)) - return Efl.Ui.WinPartNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(WinPart)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_win_part_class_get(); - ///Creates a new instance. - ///Parent instance. + /// Initializes a new instance of the class. + /// Parent instance. public WinPart(Efl.Object parent= null - ) : - base(efl_ui_win_part_class_get(), typeof(WinPart), parent) + ) : base(efl_ui_win_part_class_get(), typeof(WinPart), parent) { FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected WinPart(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected WinPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected WinPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } -private static object ContentChangedEvtKey = new object(); + /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) public event EventHandler ContentChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.AddHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ContentChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentChangedEvt. - public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ContentChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ContentChangedEvt_delegate; - private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try { - On_ContentChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. + /// The sub-object. virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) - /// The object to swallow. - /// true on success, false otherwise - virtual public bool SetContent( Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content); + /// The sub-object. + /// true if content was successfully swallowed. + virtual public bool SetContent(Efl.Gfx.IEntity content) { + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Unswallow the object in the current container and return it. + /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. /// (Since EFL 1.22) /// Unswallowed object virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -134,7 +169,7 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// The handle to the that will be used virtual public Eina.File GetMmap() { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -143,8 +178,8 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// The handle to the that will be used /// 0 on success, error code otherwise - virtual public Eina.Error SetMmap( Eina.File f) { - var _ret_var = Efl.IFileNativeInherit.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), f); + virtual public Eina.Error SetMmap(Eina.File f) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_mmap_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),f); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -153,7 +188,7 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// The file path. virtual public System.String GetFile() { - var _ret_var = Efl.IFileNativeInherit.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -162,8 +197,8 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// The file path. /// 0 on success, error code otherwise - virtual public Eina.Error SetFile( System.String file) { - var _ret_var = Efl.IFileNativeInherit.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), file); + virtual public Eina.Error SetFile(System.String file) { + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),file); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -174,7 +209,7 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. virtual public System.String GetKey() { - var _ret_var = Efl.IFileNativeInherit.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_key_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -182,16 +217,15 @@ private static object ContentChangedEvtKey = new object(); /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases. /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. - /// - virtual public void SetKey( System.String key) { - Efl.IFileNativeInherit.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), key); + virtual public void SetKey(System.String key) { + Efl.IFileConcrete.NativeMethods.efl_file_key_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),key); Eina.Error.RaiseIfUnhandledException(); } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. virtual public bool GetLoaded() { - var _ret_var = Efl.IFileNativeInherit.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_loaded_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -202,7 +236,7 @@ private static object ContentChangedEvtKey = new object(); /// (Since EFL 1.22) /// 0 on success, error code otherwise virtual public Eina.Error Load() { - var _ret_var = Efl.IFileNativeInherit.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IFileConcrete.NativeMethods.efl_file_load_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -211,9 +245,8 @@ private static object ContentChangedEvtKey = new object(); /// /// Calling on an object which is not currently loaded will have no effect. /// (Since EFL 1.22) - /// virtual public void Unload() { - Efl.IFileNativeInherit.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IFileConcrete.NativeMethods.efl_file_unload_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); } /// Retrieves the general/main color of the given Evas object. @@ -225,13 +258,8 @@ private static object ContentChangedEvtKey = new object(); /// /// Use null pointers on the components you're not interested in: they'll be ignored by the function. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - virtual public void GetColor( out int r, out int g, out int b, out int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out r, out g, out b, out a); + virtual public void GetColor(out int r, out int g, out int b, out int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out r, out g, out b, out a); Eina.Error.RaiseIfUnhandledException(); } /// Sets the general/main color of the given Evas object to the given one. @@ -239,44 +267,39 @@ private static object ContentChangedEvtKey = new object(); /// /// These color values are expected to be premultiplied by alpha. /// (Since EFL 1.22) - /// - /// - /// - /// - /// - virtual public void SetColor( int r, int g, int b, int a) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r, g, b, a); + virtual public void SetColor(int r, int g, int b, int a) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),r, g, b, a); Eina.Error.RaiseIfUnhandledException(); } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. virtual public System.String GetColorCode() { - var _ret_var = Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the color of given Evas object to the given hex color code(#RRGGBBAA). e.g. efl_gfx_color_code_set(obj, "#FFCCAACC"); /// (Since EFL 1.22) /// the hex color code. - /// - virtual public void SetColorCode( System.String colorcode) { - Efl.Gfx.IColorNativeInherit.efl_gfx_color_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), colorcode); + virtual public void SetColorCode(System.String colorcode) { + Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),colorcode); Eina.Error.RaiseIfUnhandledException(); } - /// Swallowed sub-object contained in this object. + /// Sub-object currently set as this object's single content. +/// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) -/// The object to swallow. +/// The sub-object. public Efl.Gfx.IEntity Content { get { return GetContent(); } - set { SetContent( value); } + set { SetContent(value); } } /// Get the mmaped file from where an object will fetch the real data (it must be an ). /// (Since EFL 1.22) /// The handle to the that will be used public Eina.File Mmap { get { return GetMmap(); } - set { SetMmap( value); } + set { SetMmap(value); } } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. @@ -284,7 +307,7 @@ private static object ContentChangedEvtKey = new object(); /// The file path. public System.String File { get { return GetFile(); } - set { SetFile( value); } + set { SetFile(value); } } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -294,7 +317,7 @@ private static object ContentChangedEvtKey = new object(); /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. public System.String Key { get { return GetKey(); } - set { SetKey( value); } + set { SetKey(value); } } /// Get the load state of the object. /// (Since EFL 1.22) @@ -307,488 +330,772 @@ private static object ContentChangedEvtKey = new object(); /// the hex color code. public System.String ColorCode { get { return GetColorCode(); } - set { SetColorCode( value); } + set { SetColorCode(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.WinPart.efl_ui_win_part_class_get(); } -} -public class WinPartNativeInherit : Efl.Ui.WidgetPartNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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_content_get_static_delegate == null) - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)}); - if (efl_content_set_static_delegate == null) - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)}); - if (efl_content_unset_static_delegate == null) - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)}); - if (efl_file_mmap_get_static_delegate == null) - efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); - if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate)}); - if (efl_file_mmap_set_static_delegate == null) - efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); - if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate)}); - if (efl_file_get_static_delegate == null) - efl_file_get_static_delegate = new efl_file_get_delegate(file_get); - if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate)}); - if (efl_file_set_static_delegate == null) - efl_file_set_static_delegate = new efl_file_set_delegate(file_set); - if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate)}); - if (efl_file_key_get_static_delegate == null) - efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate)}); - if (efl_file_key_set_static_delegate == null) - efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate)}); - if (efl_file_loaded_get_static_delegate == null) - efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); - if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate)}); - if (efl_file_load_static_delegate == null) - efl_file_load_static_delegate = new efl_file_load_delegate(load); - if (methods.FirstOrDefault(m => m.Name == "Load") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate)}); - if (efl_file_unload_static_delegate == null) - efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); - if (methods.FirstOrDefault(m => m.Name == "Unload") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate)}); - if (efl_gfx_color_get_static_delegate == null) - efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); - if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate)}); - if (efl_gfx_color_set_static_delegate == null) - efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); - if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate)}); - if (efl_gfx_color_code_get_static_delegate == null) - efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); - if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate)}); - if (efl_gfx_color_code_set_static_delegate == null) - efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); - if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.WinPart.efl_ui_win_part_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.WidgetPart.NativeMethods { - return Efl.Ui.WinPart.efl_ui_win_part_class_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_get"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((WinPart)wrapper).GetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); } - return _ret_var; - } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_get_delegate efl_content_get_static_delegate; + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + if (efl_file_mmap_get_static_delegate == null) + { + efl_file_mmap_get_static_delegate = new efl_file_mmap_get_delegate(mmap_get); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_set"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((WinPart)wrapper).SetContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_get_static_delegate) }); } - return _ret_var; - } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static efl_content_set_delegate efl_content_set_static_delegate; + if (efl_file_mmap_set_static_delegate == null) + { + efl_file_mmap_set_static_delegate = new efl_file_mmap_set_delegate(mmap_set); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetMmap") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_mmap_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_mmap_set_static_delegate) }); + } + if (efl_file_get_static_delegate == null) + { + efl_file_get_static_delegate = new efl_file_get_delegate(file_get); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_content_unset"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try { - _ret_var = ((WinPart)wrapper).UnsetContent(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_get_static_delegate) }); } - return _ret_var; - } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + if (efl_file_set_static_delegate == null) + { + efl_file_set_static_delegate = new efl_file_set_delegate(file_set); + } - private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "SetFile") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_set_static_delegate) }); + } + if (efl_file_key_get_static_delegate == null) + { + efl_file_key_get_static_delegate = new efl_file_key_get_delegate(key_get); + } - public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_get"); - private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_mmap_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.File _ret_var = default(Eina.File); - try { - _ret_var = ((WinPart)wrapper).GetMmap(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + if (efl_file_key_set_static_delegate == null) + { + efl_file_key_set_static_delegate = new efl_file_key_set_delegate(key_set); + } - private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_file_key_set_static_delegate) }); + } + if (efl_file_loaded_get_static_delegate == null) + { + efl_file_loaded_get_static_delegate = new efl_file_loaded_get_delegate(loaded_get); + } - public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); - public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_mmap_set"); - private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) - { - Eina.Log.Debug("function efl_file_mmap_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((WinPart)wrapper).SetMmap( f); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "GetLoaded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_loaded_get"), func = Marshal.GetFunctionPointerForDelegate(efl_file_loaded_get_static_delegate) }); } - return _ret_var; - } else { - return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); - } - } - private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + if (efl_file_load_static_delegate == null) + { + efl_file_load_static_delegate = new efl_file_load_delegate(load); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "Load") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_load"), func = Marshal.GetFunctionPointerForDelegate(efl_file_load_static_delegate) }); + } + if (efl_file_unload_static_delegate == null) + { + efl_file_unload_static_delegate = new efl_file_unload_delegate(unload); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_get"); - private static System.String file_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((WinPart)wrapper).GetFile(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "Unload") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_file_unload"), func = Marshal.GetFunctionPointerForDelegate(efl_file_unload_static_delegate) }); } - return _ret_var; - } else { - return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_file_get_delegate efl_file_get_static_delegate; + if (efl_gfx_color_get_static_delegate == null) + { + efl_gfx_color_get_static_delegate = new efl_gfx_color_get_delegate(color_get); + } - private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + if (methods.FirstOrDefault(m => m.Name == "GetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_get_static_delegate) }); + } + if (efl_gfx_color_set_static_delegate == null) + { + efl_gfx_color_set_static_delegate = new efl_gfx_color_set_delegate(color_set); + } - public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); - public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_set"); - private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) - { - Eina.Log.Debug("function efl_file_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((WinPart)wrapper).SetFile( file); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetColor") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_set_static_delegate) }); } - return _ret_var; - } else { - return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); - } - } - private static efl_file_set_delegate efl_file_set_static_delegate; + if (efl_gfx_color_code_get_static_delegate == null) + { + efl_gfx_color_code_get_static_delegate = new efl_gfx_color_code_get_delegate(color_code_get); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_get_static_delegate) }); + } + if (efl_gfx_color_code_set_static_delegate == null) + { + efl_gfx_color_code_set_static_delegate = new efl_gfx_color_code_set_delegate(color_code_set); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_key_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((WinPart)wrapper).GetKey(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetColorCode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_color_code_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_color_code_set_static_delegate) }); } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.WinPart.efl_ui_win_part_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((WinPart)wrapper).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((WinPart)wrapper).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + } + else + { + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((WinPart)wrapper).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); - public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_key_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) - { - Eina.Log.Debug("function efl_file_key_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WinPart)wrapper).SetKey( key); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + return _ret_var; + + } + else + { + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + + private delegate Eina.File efl_file_mmap_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.File efl_file_mmap_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_get"); + + private static Eina.File mmap_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_mmap_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.File _ret_var = default(Eina.File); + try + { + _ret_var = ((WinPart)wrapper).GetMmap(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + return _ret_var; + } + else + { + return efl_file_mmap_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_file_mmap_get_delegate efl_file_mmap_get_static_delegate; + + + private delegate Eina.Error efl_file_mmap_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.File f); + + + public delegate Eina.Error efl_file_mmap_set_api_delegate(System.IntPtr obj, Eina.File f); + + public static Efl.Eo.FunctionWrapper efl_file_mmap_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_mmap_set"); + + private static Eina.Error mmap_set(System.IntPtr obj, System.IntPtr pd, Eina.File f) + { + Eina.Log.Debug("function efl_file_mmap_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((WinPart)wrapper).SetMmap(f); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_loaded_get"); - private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_loaded_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((WinPart)wrapper).GetLoaded(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_mmap_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), f); + } } - } - private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + private static efl_file_mmap_set_delegate efl_file_mmap_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_get"); + + private static System.String file_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((WinPart)wrapper).GetFile(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_file_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_file_get_delegate efl_file_get_static_delegate; + + + private delegate Eina.Error efl_file_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + + public delegate Eina.Error efl_file_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String file); + + public static Efl.Eo.FunctionWrapper efl_file_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_set"); + + private static Eina.Error file_set(System.IntPtr obj, System.IntPtr pd, System.String file) + { + Eina.Log.Debug("function efl_file_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((WinPart)wrapper).SetFile(file); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_load"); - private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_load was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((WinPart)wrapper).Load(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_file_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), file); + } } - } - private static efl_file_load_delegate efl_file_load_static_delegate; + private static efl_file_set_delegate efl_file_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_file_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_file_key_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_get"); + + private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_key_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((WinPart)wrapper).GetKey(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + } + else + { + return efl_file_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + private static efl_file_key_get_delegate efl_file_key_get_static_delegate; + + + private delegate void efl_file_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + + public delegate void efl_file_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key); + + public static Efl.Eo.FunctionWrapper efl_file_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_key_set"); + + private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String key) + { + Eina.Log.Debug("function efl_file_key_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WinPart)wrapper).SetKey(key); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void efl_file_unload_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_file_unload"); - private static void unload(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_file_unload was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((WinPart)wrapper).Unload(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + else + { + efl_file_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key); + } } - } - private static efl_file_unload_delegate efl_file_unload_static_delegate; - - private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + private static efl_file_key_set_delegate efl_file_key_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_file_loaded_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_file_loaded_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_loaded_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_loaded_get"); + + private static bool loaded_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_loaded_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((WinPart)wrapper).GetLoaded(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_get"); - private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) - { - Eina.Log.Debug("function efl_gfx_color_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - r = default(int); g = default(int); b = default(int); a = default(int); - try { - ((WinPart)wrapper).GetColor( out r, out g, out b, out a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + else + { + return efl_file_loaded_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; + private static efl_file_loaded_get_delegate efl_file_loaded_get_static_delegate; + + + private delegate Eina.Error efl_file_load_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_file_load_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_load_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_load"); + + private static Eina.Error load(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_load was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((WinPart)wrapper).Load(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + return _ret_var; + } + else + { + return efl_file_load_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); - public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_set"); - private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) - { - Eina.Log.Debug("function efl_gfx_color_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WinPart)wrapper).SetColor( r, g, b, a); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + private static efl_file_load_delegate efl_file_load_static_delegate; + + + private delegate void efl_file_unload_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_file_unload_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_file_unload_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_file_unload"); + + private static void unload(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_file_unload was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WinPart)wrapper).Unload(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_file_unload_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; + private static efl_file_unload_delegate efl_file_unload_static_delegate; + + + private delegate void efl_gfx_color_get_delegate(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a); + + + public delegate void efl_gfx_color_get_api_delegate(System.IntPtr obj, out int r, out int g, out int b, out int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_get"); + + private static void color_get(System.IntPtr obj, System.IntPtr pd, out int r, out int g, out int b, out int a) + { + Eina.Log.Debug("function efl_gfx_color_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + r = default(int); g = default(int); b = default(int); a = default(int); + try + { + ((WinPart)wrapper).GetColor(out r, out g, out b, out a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out r, out g, out b, out a); + } + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static efl_gfx_color_get_delegate efl_gfx_color_get_static_delegate; + + + private delegate void efl_gfx_color_set_delegate(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a); + + + public delegate void efl_gfx_color_set_api_delegate(System.IntPtr obj, int r, int g, int b, int a); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_set"); + + private static void color_set(System.IntPtr obj, System.IntPtr pd, int r, int g, int b, int a) + { + Eina.Log.Debug("function efl_gfx_color_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WinPart)wrapper).SetColor(r, g, b, a); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_color_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r, g, b, a); + } + } + private static efl_gfx_color_set_delegate efl_gfx_color_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_gfx_color_code_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_get"); + + private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_color_code_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((WinPart)wrapper).GetColorCode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_gfx_color_code_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_get"); - private static System.String color_code_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_gfx_color_code_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - System.String _ret_var = default(System.String); - try { - _ret_var = ((WinPart)wrapper).GetColorCode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_gfx_color_code_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; + private static efl_gfx_color_code_get_delegate efl_gfx_color_code_get_static_delegate; + + + private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + + public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_color_code_set"); + + private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) + { + Eina.Log.Debug("function efl_gfx_color_code_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((WinPart)wrapper).SetColorCode(colorcode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_gfx_color_code_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); + + } + else + { + efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); + } + } + private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 - public delegate void efl_gfx_color_code_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String colorcode); - public static Efl.Eo.FunctionWrapper efl_gfx_color_code_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_color_code_set"); - private static void color_code_set(System.IntPtr obj, System.IntPtr pd, System.String colorcode) - { - Eina.Log.Debug("function efl_gfx_color_code_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((WinPart)wrapper).SetColorCode( colorcode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_gfx_color_code_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), colorcode); - } - } - private static efl_gfx_color_code_set_delegate efl_gfx_color_code_set_static_delegate; } -} } +} +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_socket.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_socket.eo.cs index 103ae50..7e54d46 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_socket.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_socket.eo.cs @@ -3,81 +3,117 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// An off-screen window to be displayed in a remote process. /// The window is rendered onto an image buffer to be displayed in another process' plug image object. No actual window is created for this type. The window contents can then be sent over a socket so that another process displays it inside a plug image. -[WinSocketNativeInherit] +[Efl.Ui.WinSocket.NativeMethods] public class WinSocket : Efl.Ui.Win, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (WinSocket)) - return Efl.Ui.WinSocketNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(WinSocket)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_win_socket_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See - ///The window name. See - ///The type of the window. See - ///The hardware acceleration preference for this window. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See + /// The window name. See + /// The type of the window. See + /// The hardware acceleration preference for this window. See public WinSocket(Efl.Object parent - , System.String style = null, System.String winName = null, Efl.Ui.WinType? winType = null, System.String accelPreference = null) : - base(efl_ui_win_socket_class_get(), typeof(WinSocket), parent) + , System.String style = null, System.String winName = null, Efl.Ui.WinType? winType = null, System.String accelPreference = null) : base(efl_ui_win_socket_class_get(), typeof(WinSocket), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + if (Efl.Eo.Globals.ParamHelperCheck(winName)) + { SetWinName(Efl.Eo.Globals.GetParamHelper(winName)); + } + if (Efl.Eo.Globals.ParamHelperCheck(winType)) + { SetWinType(Efl.Eo.Globals.GetParamHelper(winType)); + } + if (Efl.Eo.Globals.ParamHelperCheck(accelPreference)) + { SetAccelPreference(Efl.Eo.Globals.GetParamHelper(accelPreference)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected WinSocket(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected WinSocket(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected WinSocket(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Create a socket to provide the service for Plug widget. /// The name of the service to be advertised. Ensure that it is unique (when combined with svcnum) otherwise creation may fail. /// A number (any value, 0 being the common default) to differentiate multiple instances of services with the same name. /// A boolean which when true specifies the creation of a system-wide service to which all users can connect, otherwise the service is private to the user id that created it. /// true on success, false otherwise - virtual public bool SocketListen( System.String svcname, int svcnum, bool svcsys) { - var _ret_var = Efl.Ui.WinSocketNativeInherit.efl_ui_win_socket_listen_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), svcname, svcnum, svcsys); + virtual public bool SocketListen(System.String svcname, int svcnum, bool svcsys) { + var _ret_var = Efl.Ui.WinSocket.NativeMethods.efl_ui_win_socket_listen_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),svcname, svcnum, svcsys); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -85,52 +121,81 @@ public class WinSocket : Efl.Ui.Win, Efl.Eo.IWrapper { return Efl.Ui.WinSocket.efl_ui_win_socket_class_get(); } -} -public class WinSocketNativeInherit : Efl.Ui.WinNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Win.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_win_socket_listen_static_delegate == null) - efl_ui_win_socket_listen_static_delegate = new efl_ui_win_socket_listen_delegate(socket_listen); - if (methods.FirstOrDefault(m => m.Name == "SocketListen") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_win_socket_listen"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_socket_listen_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.WinSocket.efl_ui_win_socket_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.Ui.WinSocket.efl_ui_win_socket_class_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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_win_socket_listen_static_delegate == null) + { + efl_ui_win_socket_listen_static_delegate = new efl_ui_win_socket_listen_delegate(socket_listen); + } + + if (methods.FirstOrDefault(m => m.Name == "SocketListen") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_win_socket_listen"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_win_socket_listen_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.WinSocket.efl_ui_win_socket_class_get(); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_win_socket_listen_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svcname, int svcnum, [MarshalAs(UnmanagedType.U1)] bool svcsys); + #pragma warning disable CA1707, SA1300, SA1600 + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_win_socket_listen_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svcname, int svcnum, [MarshalAs(UnmanagedType.U1)] bool svcsys); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_win_socket_listen_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svcname, int svcnum, [MarshalAs(UnmanagedType.U1)] bool svcsys); + + public static Efl.Eo.FunctionWrapper efl_ui_win_socket_listen_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_win_socket_listen"); + + private static bool socket_listen(System.IntPtr obj, System.IntPtr pd, System.String svcname, int svcnum, bool svcsys) + { + Eina.Log.Debug("function efl_ui_win_socket_listen was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((WinSocket)wrapper).SocketListen(svcname, svcnum, svcsys); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_win_socket_listen_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String svcname, int svcnum, [MarshalAs(UnmanagedType.U1)] bool svcsys); - public static Efl.Eo.FunctionWrapper efl_ui_win_socket_listen_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_win_socket_listen"); - private static bool socket_listen(System.IntPtr obj, System.IntPtr pd, System.String svcname, int svcnum, bool svcsys) - { - Eina.Log.Debug("function efl_ui_win_socket_listen was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((WinSocket)wrapper).SocketListen( svcname, svcnum, svcsys); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } return _ret_var; - } else { - return efl_ui_win_socket_listen_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), svcname, svcnum, svcsys); + + } + else + { + return efl_ui_win_socket_listen_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), svcname, svcnum, svcsys); + } } - } - private static efl_ui_win_socket_listen_delegate efl_ui_win_socket_listen_static_delegate; + + private static efl_ui_win_socket_listen_delegate efl_ui_win_socket_listen_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_zoom.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_zoom.eo.cs index 0859f2c..504ec19 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_zoom.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_zoom.eo.cs @@ -3,10 +3,14 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { +namespace Efl { + +namespace Ui { + /// Efl UI zoom interface -[IZoomNativeInherit] +[Efl.Ui.IZoomConcrete.NativeMethods] public interface IZoom : Efl.Eo.IWrapper, IDisposable { @@ -15,8 +19,7 @@ public interface IZoom : bool GetZoomAnimation(); /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. -/// -void SetZoomAnimation( bool paused); +void SetZoomAnimation(bool paused); /// Get the zoom level of the photo /// This returns the current zoom level of the zoomable object. Note that if you set the fill mode to other than #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the zoom level may be changed at any time by the zoomable object itself to account for photo size and zoomable viewport size. /// The zoom level to set @@ -24,8 +27,7 @@ double GetZoomLevel(); /// Set the zoom level of the photo /// This sets the zoom level. If zoom is 1, it means no zoom. If it's smaller than 1, it means zoom in. If it's bigger than 1, it means zoom out. For example, zoom 1 will be 1:1 pixel for pixel. zoom 2 will be 2:1 (that is 2x2 photo pixels will display as 1 on-screen pixel) which is a zoom out. 4:1 will be 4x4 photo pixels as 1 screen pixel, and so on. The zoom parameter must be greater than 0. It is suggested to stick to powers of 2. (1, 2, 4, 8, 16, 32, etc.). /// The zoom level to set -/// -void SetZoomLevel( double zoom); +void SetZoomLevel(double zoom); /// Get the zoom mode /// This gets the current zoom mode of the zoomable object. /// The zoom mode. @@ -35,8 +37,7 @@ Efl.Ui.ZoomMode GetZoomMode(); /// /// #EFL_UI_ZOOM_MODE_AUTO_FIT) will adjust zoom so the photo fits EXACTLY inside the scroll frame with no pixels outside this region. #EFL_UI_ZOOM_MODE_AUTO_FILL will be similar but ensure no pixels within the frame are left unfilled. /// The zoom mode. -/// -void SetZoomMode( Efl.Ui.ZoomMode mode); +void SetZoomMode(Efl.Ui.ZoomMode mode); /// Called when zooming started event EventHandler ZoomStartEvt; /// Called when zooming stopped @@ -71,293 +72,364 @@ IZoom { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IZoomConcrete)) - return Efl.Ui.IZoomNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IZoomConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr efl_ui_zoom_interface_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IZoomConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IZoomConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ZoomStartEvtKey = new object(); + /// Called when zooming started public event EventHandler ZoomStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ZOOM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ZoomStartEvt_delegate)) { - eventHandlers.AddHandler(ZoomStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ZOOM_START"; - if (RemoveNativeEventHandler(key, this.evt_ZoomStartEvt_delegate)) { - eventHandlers.RemoveHandler(ZoomStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ZoomStartEvt. - public void On_ZoomStartEvt(EventArgs e) + public void OnZoomStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ZoomStartEvtKey]; + var key = "_EFL_UI_EVENT_ZOOM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ZoomStartEvt_delegate; - private void on_ZoomStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ZoomStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ZoomStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when zooming stopped public event EventHandler ZoomStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ZOOM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ZoomStopEvt_delegate)) { - eventHandlers.AddHandler(ZoomStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ZOOM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ZoomStopEvt_delegate)) { - eventHandlers.RemoveHandler(ZoomStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ZoomStopEvt. - public void On_ZoomStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ZoomStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ZoomStopEvt_delegate; - private void on_ZoomStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnZoomStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ZoomStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_ZOOM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ZoomChangeEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when zooming changed public event EventHandler ZoomChangeEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_ZOOM_CHANGE"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ZoomChangeEvt_delegate)) { - eventHandlers.AddHandler(ZoomChangeEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_ZOOM_CHANGE"; - if (RemoveNativeEventHandler(key, this.evt_ZoomChangeEvt_delegate)) { - eventHandlers.RemoveHandler(ZoomChangeEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ZoomChangeEvt. - public void On_ZoomChangeEvt(EventArgs e) + public void OnZoomChangeEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ZoomChangeEvtKey]; + var key = "_EFL_UI_EVENT_ZOOM_CHANGE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ZoomChangeEvt_delegate; - private void on_ZoomChangeEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ZoomChangeEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ZoomStartEvt_delegate = new Efl.EventCb(on_ZoomStartEvt_NativeCallback); - evt_ZoomStopEvt_delegate = new Efl.EventCb(on_ZoomStopEvt_NativeCallback); - evt_ZoomChangeEvt_delegate = new Efl.EventCb(on_ZoomChangeEvt_NativeCallback); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. public bool GetZoomAnimation() { - var _ret_var = Efl.Ui.IZoomNativeInherit.efl_ui_zoom_animation_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_animation_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. - /// - public void SetZoomAnimation( bool paused) { - Efl.Ui.IZoomNativeInherit.efl_ui_zoom_animation_set_ptr.Value.Delegate(this.NativeHandle, paused); + public void SetZoomAnimation(bool paused) { + Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_animation_set_ptr.Value.Delegate(this.NativeHandle,paused); Eina.Error.RaiseIfUnhandledException(); } /// Get the zoom level of the photo /// This returns the current zoom level of the zoomable object. Note that if you set the fill mode to other than #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the zoom level may be changed at any time by the zoomable object itself to account for photo size and zoomable viewport size. /// The zoom level to set public double GetZoomLevel() { - var _ret_var = Efl.Ui.IZoomNativeInherit.efl_ui_zoom_level_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_level_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the zoom level of the photo /// This sets the zoom level. If zoom is 1, it means no zoom. If it's smaller than 1, it means zoom in. If it's bigger than 1, it means zoom out. For example, zoom 1 will be 1:1 pixel for pixel. zoom 2 will be 2:1 (that is 2x2 photo pixels will display as 1 on-screen pixel) which is a zoom out. 4:1 will be 4x4 photo pixels as 1 screen pixel, and so on. The zoom parameter must be greater than 0. It is suggested to stick to powers of 2. (1, 2, 4, 8, 16, 32, etc.). /// The zoom level to set - /// - public void SetZoomLevel( double zoom) { - Efl.Ui.IZoomNativeInherit.efl_ui_zoom_level_set_ptr.Value.Delegate(this.NativeHandle, zoom); + public void SetZoomLevel(double zoom) { + Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_level_set_ptr.Value.Delegate(this.NativeHandle,zoom); Eina.Error.RaiseIfUnhandledException(); } /// Get the zoom mode /// This gets the current zoom mode of the zoomable object. /// The zoom mode. public Efl.Ui.ZoomMode GetZoomMode() { - var _ret_var = Efl.Ui.IZoomNativeInherit.efl_ui_zoom_mode_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_mode_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -366,226 +438,342 @@ private static object ZoomChangeEvtKey = new object(); /// /// #EFL_UI_ZOOM_MODE_AUTO_FIT) will adjust zoom so the photo fits EXACTLY inside the scroll frame with no pixels outside this region. #EFL_UI_ZOOM_MODE_AUTO_FILL will be similar but ensure no pixels within the frame are left unfilled. /// The zoom mode. - /// - public void SetZoomMode( Efl.Ui.ZoomMode mode) { - Efl.Ui.IZoomNativeInherit.efl_ui_zoom_mode_set_ptr.Value.Delegate(this.NativeHandle, mode); + public void SetZoomMode(Efl.Ui.ZoomMode mode) { + Efl.Ui.IZoomConcrete.NativeMethods.efl_ui_zoom_mode_set_ptr.Value.Delegate(this.NativeHandle,mode); Eina.Error.RaiseIfUnhandledException(); } /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. public bool ZoomAnimation { get { return GetZoomAnimation(); } - set { SetZoomAnimation( value); } + set { SetZoomAnimation(value); } } /// Get the zoom level of the photo /// This returns the current zoom level of the zoomable object. Note that if you set the fill mode to other than #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the zoom level may be changed at any time by the zoomable object itself to account for photo size and zoomable viewport size. /// The zoom level to set public double ZoomLevel { get { return GetZoomLevel(); } - set { SetZoomLevel( value); } + set { SetZoomLevel(value); } } /// Get the zoom mode /// This gets the current zoom mode of the zoomable object. /// The zoom mode. public Efl.Ui.ZoomMode ZoomMode { get { return GetZoomMode(); } - set { SetZoomMode( value); } + set { SetZoomMode(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.IZoomConcrete.efl_ui_zoom_interface_get(); } -} -public class IZoomNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl); - 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_zoom_animation_get_static_delegate == null) - efl_ui_zoom_animation_get_static_delegate = new efl_ui_zoom_animation_get_delegate(zoom_animation_get); - if (methods.FirstOrDefault(m => m.Name == "GetZoomAnimation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_animation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_animation_get_static_delegate)}); - if (efl_ui_zoom_animation_set_static_delegate == null) - efl_ui_zoom_animation_set_static_delegate = new efl_ui_zoom_animation_set_delegate(zoom_animation_set); - if (methods.FirstOrDefault(m => m.Name == "SetZoomAnimation") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_animation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_animation_set_static_delegate)}); - if (efl_ui_zoom_level_get_static_delegate == null) - efl_ui_zoom_level_get_static_delegate = new efl_ui_zoom_level_get_delegate(zoom_level_get); - if (methods.FirstOrDefault(m => m.Name == "GetZoomLevel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_level_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_level_get_static_delegate)}); - if (efl_ui_zoom_level_set_static_delegate == null) - efl_ui_zoom_level_set_static_delegate = new efl_ui_zoom_level_set_delegate(zoom_level_set); - if (methods.FirstOrDefault(m => m.Name == "SetZoomLevel") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_level_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_level_set_static_delegate)}); - if (efl_ui_zoom_mode_get_static_delegate == null) - efl_ui_zoom_mode_get_static_delegate = new efl_ui_zoom_mode_get_delegate(zoom_mode_get); - if (methods.FirstOrDefault(m => m.Name == "GetZoomMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_mode_get_static_delegate)}); - if (efl_ui_zoom_mode_set_static_delegate == null) - efl_ui_zoom_mode_set_static_delegate = new efl_ui_zoom_mode_set_delegate(zoom_mode_set); - if (methods.FirstOrDefault(m => m.Name == "SetZoomMode") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_zoom_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_mode_set_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.IZoomConcrete.efl_ui_zoom_interface_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Efl.Ui.IZoomConcrete.efl_ui_zoom_interface_get(); - } + 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_zoom_animation_get_static_delegate == null) + { + efl_ui_zoom_animation_get_static_delegate = new efl_ui_zoom_animation_get_delegate(zoom_animation_get); + } + if (methods.FirstOrDefault(m => m.Name == "GetZoomAnimation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_animation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_animation_get_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_zoom_animation_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (efl_ui_zoom_animation_set_static_delegate == null) + { + efl_ui_zoom_animation_set_static_delegate = new efl_ui_zoom_animation_set_delegate(zoom_animation_set); + } + if (methods.FirstOrDefault(m => m.Name == "SetZoomAnimation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_animation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_animation_set_static_delegate) }); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_zoom_animation_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_animation_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_animation_get"); - private static bool zoom_animation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_zoom_animation_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IZoom)wrapper).GetZoomAnimation(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (efl_ui_zoom_level_get_static_delegate == null) + { + efl_ui_zoom_level_get_static_delegate = new efl_ui_zoom_level_get_delegate(zoom_level_get); } - return _ret_var; - } else { - return efl_ui_zoom_animation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + if (methods.FirstOrDefault(m => m.Name == "GetZoomLevel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_level_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_level_get_static_delegate) }); + } + + if (efl_ui_zoom_level_set_static_delegate == null) + { + efl_ui_zoom_level_set_static_delegate = new efl_ui_zoom_level_set_delegate(zoom_level_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetZoomLevel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_level_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_level_set_static_delegate) }); + } + + if (efl_ui_zoom_mode_get_static_delegate == null) + { + efl_ui_zoom_mode_get_static_delegate = new efl_ui_zoom_mode_get_delegate(zoom_mode_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetZoomMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_mode_get_static_delegate) }); + } + + if (efl_ui_zoom_mode_set_static_delegate == null) + { + efl_ui_zoom_mode_set_static_delegate = new efl_ui_zoom_mode_set_delegate(zoom_mode_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetZoomMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_zoom_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_zoom_mode_set_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.IZoomConcrete.efl_ui_zoom_interface_get(); } - } - private static efl_ui_zoom_animation_get_delegate efl_ui_zoom_animation_get_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 - private delegate void efl_ui_zoom_animation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool paused); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_zoom_animation_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_zoom_animation_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_zoom_animation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool paused); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_animation_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_animation_set"); - private static void zoom_animation_set(System.IntPtr obj, System.IntPtr pd, bool paused) - { - Eina.Log.Debug("function efl_ui_zoom_animation_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IZoom)wrapper).SetZoomAnimation( paused); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_zoom_animation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), paused); + public static Efl.Eo.FunctionWrapper efl_ui_zoom_animation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_animation_get"); + + private static bool zoom_animation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_zoom_animation_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IZoom)wrapper).GetZoomAnimation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_zoom_animation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_zoom_animation_set_delegate efl_ui_zoom_animation_set_static_delegate; + private static efl_ui_zoom_animation_get_delegate efl_ui_zoom_animation_get_static_delegate; - private delegate double efl_ui_zoom_level_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_zoom_animation_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool paused); + + public delegate void efl_ui_zoom_animation_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool paused); - public delegate double efl_ui_zoom_level_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_level_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_level_get"); - private static double zoom_level_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_zoom_level_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - double _ret_var = default(double); - try { - _ret_var = ((IZoom)wrapper).GetZoomLevel(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_zoom_animation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_animation_set"); + + private static void zoom_animation_set(System.IntPtr obj, System.IntPtr pd, bool paused) + { + Eina.Log.Debug("function efl_ui_zoom_animation_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IZoom)wrapper).SetZoomAnimation(paused); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_zoom_animation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), paused); } - return _ret_var; - } else { - return efl_ui_zoom_level_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_zoom_level_get_delegate efl_ui_zoom_level_get_static_delegate; + private static efl_ui_zoom_animation_set_delegate efl_ui_zoom_animation_set_static_delegate; - private delegate void efl_ui_zoom_level_set_delegate(System.IntPtr obj, System.IntPtr pd, double zoom); + + private delegate double efl_ui_zoom_level_get_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate double efl_ui_zoom_level_get_api_delegate(System.IntPtr obj); - public delegate void efl_ui_zoom_level_set_api_delegate(System.IntPtr obj, double zoom); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_level_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_level_set"); - private static void zoom_level_set(System.IntPtr obj, System.IntPtr pd, double zoom) - { - Eina.Log.Debug("function efl_ui_zoom_level_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IZoom)wrapper).SetZoomLevel( zoom); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_zoom_level_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoom); + public static Efl.Eo.FunctionWrapper efl_ui_zoom_level_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_level_get"); + + private static double zoom_level_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_zoom_level_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IZoom)wrapper).GetZoomLevel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_zoom_level_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_zoom_level_set_delegate efl_ui_zoom_level_set_static_delegate; + private static efl_ui_zoom_level_get_delegate efl_ui_zoom_level_get_static_delegate; - private delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_zoom_level_set_delegate(System.IntPtr obj, System.IntPtr pd, double zoom); + + public delegate void efl_ui_zoom_level_set_api_delegate(System.IntPtr obj, double zoom); - public delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_mode_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_mode_get"); - private static Efl.Ui.ZoomMode zoom_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_zoom_mode_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ZoomMode _ret_var = default(Efl.Ui.ZoomMode); - try { - _ret_var = ((IZoom)wrapper).GetZoomMode(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_zoom_level_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_level_set"); + + private static void zoom_level_set(System.IntPtr obj, System.IntPtr pd, double zoom) + { + Eina.Log.Debug("function efl_ui_zoom_level_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IZoom)wrapper).SetZoomLevel(zoom); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_zoom_level_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), zoom); } + } + + private static efl_ui_zoom_level_set_delegate efl_ui_zoom_level_set_static_delegate; + + + private delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.ZoomMode efl_ui_zoom_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_zoom_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_mode_get"); + + private static Efl.Ui.ZoomMode zoom_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_zoom_mode_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ZoomMode _ret_var = default(Efl.Ui.ZoomMode); + try + { + _ret_var = ((IZoom)wrapper).GetZoomMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return efl_ui_zoom_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return efl_ui_zoom_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_zoom_mode_get_delegate efl_ui_zoom_mode_get_static_delegate; + private static efl_ui_zoom_mode_get_delegate efl_ui_zoom_mode_get_static_delegate; - private delegate void efl_ui_zoom_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode); + + private delegate void efl_ui_zoom_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode); + + public delegate void efl_ui_zoom_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ZoomMode mode); - public delegate void efl_ui_zoom_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ZoomMode mode); - public static Efl.Eo.FunctionWrapper efl_ui_zoom_mode_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_zoom_mode_set"); - private static void zoom_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode) - { - Eina.Log.Debug("function efl_ui_zoom_mode_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IZoom)wrapper).SetZoomMode( mode); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_zoom_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); + public static Efl.Eo.FunctionWrapper efl_ui_zoom_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_zoom_mode_set"); + + private static void zoom_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ZoomMode mode) + { + Eina.Log.Debug("function efl_ui_zoom_mode_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IZoom)wrapper).SetZoomMode(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_zoom_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); + } } - } - private static efl_ui_zoom_mode_set_delegate efl_ui_zoom_mode_set_static_delegate; + + private static efl_ui_zoom_mode_set_delegate efl_ui_zoom_mode_set_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} } -} } -namespace Efl { namespace Ui { + +} + +namespace Efl { + +namespace Ui { + /// Types of zoom available. public enum ZoomMode { @@ -600,4 +788,8 @@ AutoFitIn = 3, /// Sentinel value to indicate last enum field during iteration Last = 4, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_view_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_view_model.eo.cs index 407832c..81d84c5 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_view_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_view_model.eo.cs @@ -3,15 +3,13 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; - -/// /// The ViewModel object the @.property.get is issued on. /// The property name the @.property.get is issued on. -/// -public delegate Eina.Value EflViewModelPropertyGet( Efl.ViewModel view_model, System.String property); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))]public delegate Eina.Value EflViewModelPropertyGetInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property); -internal class EflViewModelPropertyGetWrapper +public delegate Eina.Value EflViewModelPropertyGet(Efl.ViewModel view_model, System.String property); +[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))]public delegate Eina.Value EflViewModelPropertyGetInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property); +internal class EflViewModelPropertyGetWrapper : IDisposable { private EflViewModelPropertyGetInternal _cb; @@ -27,24 +25,47 @@ internal class EflViewModelPropertyGetWrapper ~EflViewModelPropertyGetWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } } - internal Eina.Value ManagedCb( Efl.ViewModel view_model, System.String property) + public void Dispose() { - var _ret_var = _cb(_cb_data, view_model, property); + Dispose(true); + GC.SuppressFinalize(this); + } + + internal Eina.Value ManagedCb(Efl.ViewModel view_model,System.String property) + { + var _ret_var = _cb(_cb_data, view_model, property); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] internal static Eina.Value Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property) + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] internal static Eina.Value Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property) { GCHandle handle = GCHandle.FromIntPtr(cb_data); EflViewModelPropertyGet cb = (EflViewModelPropertyGet)handle.Target; Eina.Value _ret_var = default(Eina.Value); try { - _ret_var = cb( view_model, property); + _ret_var = cb(view_model, property); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); @@ -54,14 +75,12 @@ internal class EflViewModelPropertyGetWrapper } -/// /// The ViewModel object the @.property.set is issued on. /// The property name the @.property.set is issued on. /// The new value to set. -/// -public delegate Eina.Future EflViewModelPropertySet( Efl.ViewModel view_model, System.String property, Eina.Value value); -[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))]public delegate Eina.Future EflViewModelPropertySetInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] Eina.Value value); -internal class EflViewModelPropertySetWrapper +public delegate Eina.Future EflViewModelPropertySet(Efl.ViewModel view_model, System.String property, Eina.Value value); +[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))]public delegate Eina.Future EflViewModelPropertySetInternal(IntPtr data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] Eina.Value value); +internal class EflViewModelPropertySetWrapper : IDisposable { private EflViewModelPropertySetInternal _cb; @@ -77,24 +96,47 @@ internal class EflViewModelPropertySetWrapper ~EflViewModelPropertySetWrapper() { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { if (this._cb_free_cb != null) - this._cb_free_cb(this._cb_data); + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); } - internal Eina.Future ManagedCb( Efl.ViewModel view_model, System.String property, Eina.Value value) + internal Eina.Future ManagedCb(Efl.ViewModel view_model,System.String property,Eina.Value value) { - var _ret_var = _cb(_cb_data, view_model, property, value); + var _ret_var = _cb(_cb_data, view_model, property, value); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] internal static Eina.Future Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] Eina.Value value) + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] internal static Eina.Future Cb(IntPtr cb_data, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.ViewModel view_model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringshareKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshalerOwn))] Eina.Value value) { GCHandle handle = GCHandle.FromIntPtr(cb_data); EflViewModelPropertySet cb = (EflViewModelPropertySet)handle.Target; Eina.Future _ret_var = default( Eina.Future); try { - _ret_var = cb( view_model, property, value); + _ret_var = cb(view_model, property, value); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); @@ -103,82 +145,112 @@ internal class EflViewModelPropertySetWrapper } } -namespace Efl { + +namespace Efl { + /// Efl model providing helpers for custom properties used when linking a model to a view and you need to generate/adapt values for display. /// There is two ways to use this class, you can either inherit from it and have a custom constructor for example. Or you can just instantiate it and manually define your property on it via callbacks. -[ViewModelNativeInherit] +[Efl.ViewModel.NativeMethods] public class ViewModel : Efl.CompositeModel, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ViewModel)) - return Efl.ViewModelNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ViewModel)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_view_model_class_get(); - ///Creates a new instance. - ///Parent instance. - ///Model that is/will be See - ///Define if we will intercept all childrens object reference and bind them through the ViewModel with the same property logic as this one. Be careful of recursivity. See - ///Position of this object in the parent model. See + /// Initializes a new instance of the class. + /// Parent instance. + /// Model that is/will be See + /// Define if we will intercept all childrens object reference and bind them through the ViewModel with the same property logic as this one. Be careful of recursivity. See + /// Position of this object in the parent model. See public ViewModel(Efl.Object parent - , Efl.IModel model, bool? childrenBind = null, uint? index = null) : - base(efl_view_model_class_get(), typeof(ViewModel), parent) + , Efl.IModel model, bool? childrenBind = null, uint? index = null) : base(efl_view_model_class_get(), typeof(ViewModel), parent) { if (Efl.Eo.Globals.ParamHelperCheck(model)) + { SetModel(Efl.Eo.Globals.GetParamHelper(model)); + } + if (Efl.Eo.Globals.ParamHelperCheck(childrenBind)) + { SetChildrenBind(Efl.Eo.Globals.GetParamHelper(childrenBind)); + } + if (Efl.Eo.Globals.ParamHelperCheck(index)) + { SetIndex(Efl.Eo.Globals.GetParamHelper(index)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ViewModel(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ViewModel(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ViewModel(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + /// Get the state of the automatic binding of children object. /// Do you automatically bind children. Default to true. virtual public bool GetChildrenBind() { - var _ret_var = Efl.ViewModelNativeInherit.efl_view_model_children_bind_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.ViewModel.NativeMethods.efl_view_model_children_bind_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Set the state of the automatic binding of children object. /// Do you automatically bind children. Default to true. - /// - virtual public void SetChildrenBind( bool enable) { - Efl.ViewModelNativeInherit.efl_view_model_children_bind_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), enable); + virtual public void SetChildrenBind(bool enable) { + Efl.ViewModel.NativeMethods.efl_view_model_children_bind_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),enable); Eina.Error.RaiseIfUnhandledException(); } /// Add callbacks that will be triggered when someone ask for the specified property name when getting or setting a property. @@ -189,12 +261,11 @@ public class ViewModel : Efl.CompositeModel, Efl.Eo.IWrapper /// Define the get callback called when the is called with the above property name. /// Define the set callback called when the is called with the above property name. /// Iterator of property name to bind with this defined property see . - /// - virtual public Eina.Error AddPropertyLogic( System.String property, EflViewModelPropertyGet get, EflViewModelPropertySet set, Eina.Iterator binded) { + virtual public Eina.Error AddPropertyLogic(System.String property, EflViewModelPropertyGet get, EflViewModelPropertySet set, Eina.Iterator binded) { var _in_binded = binded.Handle; GCHandle get_handle = GCHandle.Alloc(get); GCHandle set_handle = GCHandle.Alloc(set); - var _ret_var = Efl.ViewModelNativeInherit.efl_view_model_property_logic_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), property, GCHandle.ToIntPtr(get_handle), EflViewModelPropertyGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(set_handle), EflViewModelPropertySetWrapper.Cb, Efl.Eo.Globals.free_gchandle, _in_binded); + var _ret_var = Efl.ViewModel.NativeMethods.efl_view_model_property_logic_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),property, GCHandle.ToIntPtr(get_handle), EflViewModelPropertyGetWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(set_handle), EflViewModelPropertySetWrapper.Cb, Efl.Eo.Globals.free_gchandle, _in_binded); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -203,9 +274,8 @@ public class ViewModel : Efl.CompositeModel, Efl.Eo.IWrapper /// /// See /// The property to bind on to. - /// - virtual public Eina.Error DelPropertyLogic( System.String property) { - var _ret_var = Efl.ViewModelNativeInherit.efl_view_model_property_logic_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), property); + virtual public Eina.Error DelPropertyLogic(System.String property) { + var _ret_var = Efl.ViewModel.NativeMethods.efl_view_model_property_logic_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),property); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -213,17 +283,15 @@ public class ViewModel : Efl.CompositeModel, Efl.Eo.IWrapper /// The source doesn't have to be provided at this point by the composited model. /// Property name in the composited model. /// Property name in the - /// - virtual public void PropertyBind( System.String source, System.String destination) { - Efl.ViewModelNativeInherit.efl_view_model_property_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), source, destination); + virtual public void PropertyBind(System.String source, System.String destination) { + Efl.ViewModel.NativeMethods.efl_view_model_property_bind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),source, destination); Eina.Error.RaiseIfUnhandledException(); } /// Stop automatically updating the field for the event to include property that are impacted with change in a property from the composited model. /// Property name in the composited model. /// Property name in the - /// - virtual public void PropertyUnbind( System.String source, System.String destination) { - Efl.ViewModelNativeInherit.efl_view_model_property_unbind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), source, destination); + virtual public void PropertyUnbind(System.String source, System.String destination) { + Efl.ViewModel.NativeMethods.efl_view_model_property_unbind_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),source, destination); Eina.Error.RaiseIfUnhandledException(); } /// Define if we will intercept all childrens object reference and bind them through the ViewModel with the same property logic as this one. Be careful of recursivity. @@ -231,203 +299,315 @@ public class ViewModel : Efl.CompositeModel, Efl.Eo.IWrapper /// Do you automatically bind children. Default to true. public bool ChildrenBind { get { return GetChildrenBind(); } - set { SetChildrenBind( value); } + set { SetChildrenBind(value); } } private static IntPtr GetEflClassStatic() { return Efl.ViewModel.efl_view_model_class_get(); } -} -public class ViewModelNativeInherit : Efl.CompositeModelNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore); - public override System.Collections.Generic.List GetEoOps(System.Type type) + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.CompositeModel.NativeMethods { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_view_model_children_bind_get_static_delegate == null) - efl_view_model_children_bind_get_static_delegate = new efl_view_model_children_bind_get_delegate(children_bind_get); - if (methods.FirstOrDefault(m => m.Name == "GetChildrenBind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_children_bind_get"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_children_bind_get_static_delegate)}); - if (efl_view_model_children_bind_set_static_delegate == null) - efl_view_model_children_bind_set_static_delegate = new efl_view_model_children_bind_set_delegate(children_bind_set); - if (methods.FirstOrDefault(m => m.Name == "SetChildrenBind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_children_bind_set"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_children_bind_set_static_delegate)}); - if (efl_view_model_property_logic_add_static_delegate == null) - efl_view_model_property_logic_add_static_delegate = new efl_view_model_property_logic_add_delegate(property_logic_add); - if (methods.FirstOrDefault(m => m.Name == "AddPropertyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_logic_add"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_logic_add_static_delegate)}); - if (efl_view_model_property_logic_del_static_delegate == null) - efl_view_model_property_logic_del_static_delegate = new efl_view_model_property_logic_del_delegate(property_logic_del); - if (methods.FirstOrDefault(m => m.Name == "DelPropertyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_logic_del"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_logic_del_static_delegate)}); - if (efl_view_model_property_bind_static_delegate == null) - efl_view_model_property_bind_static_delegate = new efl_view_model_property_bind_delegate(property_bind); - if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_bind_static_delegate)}); - if (efl_view_model_property_unbind_static_delegate == null) - efl_view_model_property_unbind_static_delegate = new efl_view_model_property_unbind_delegate(property_unbind); - if (methods.FirstOrDefault(m => m.Name == "PropertyUnbind") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_view_model_property_unbind"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_unbind_static_delegate)}); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.ViewModel.efl_view_model_class_get(); - } - public static new IntPtr GetEflClassStatic() - { - return Efl.ViewModel.efl_view_model_class_get(); - } - + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); + /// 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_view_model_children_bind_get_static_delegate == null) + { + efl_view_model_children_bind_get_static_delegate = new efl_view_model_children_bind_get_delegate(children_bind_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_view_model_children_bind_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetChildrenBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_view_model_children_bind_get"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_children_bind_get_static_delegate) }); + } + if (efl_view_model_children_bind_set_static_delegate == null) + { + efl_view_model_children_bind_set_static_delegate = new efl_view_model_children_bind_set_delegate(children_bind_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_view_model_children_bind_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_view_model_children_bind_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_view_model_children_bind_get"); - private static bool children_bind_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_view_model_children_bind_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((ViewModel)wrapper).GetChildrenBind(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetChildrenBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_view_model_children_bind_set"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_children_bind_set_static_delegate) }); } - return _ret_var; - } else { - return efl_view_model_children_bind_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static efl_view_model_children_bind_get_delegate efl_view_model_children_bind_get_static_delegate; + if (efl_view_model_property_logic_add_static_delegate == null) + { + efl_view_model_property_logic_add_static_delegate = new efl_view_model_property_logic_add_delegate(property_logic_add); + } - private delegate void efl_view_model_children_bind_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + if (methods.FirstOrDefault(m => m.Name == "AddPropertyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_view_model_property_logic_add"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_logic_add_static_delegate) }); + } + if (efl_view_model_property_logic_del_static_delegate == null) + { + efl_view_model_property_logic_del_static_delegate = new efl_view_model_property_logic_del_delegate(property_logic_del); + } - public delegate void efl_view_model_children_bind_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper efl_view_model_children_bind_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_view_model_children_bind_set"); - private static void children_bind_set(System.IntPtr obj, System.IntPtr pd, bool enable) - { - Eina.Log.Debug("function efl_view_model_children_bind_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ViewModel)wrapper).SetChildrenBind( enable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "DelPropertyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_view_model_property_logic_del"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_logic_del_static_delegate) }); } - } else { - efl_view_model_children_bind_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); - } - } - private static efl_view_model_children_bind_set_delegate efl_view_model_children_bind_set_static_delegate; + if (efl_view_model_property_bind_static_delegate == null) + { + efl_view_model_property_bind_static_delegate = new efl_view_model_property_bind_delegate(property_bind); + } - private delegate Eina.Error efl_view_model_property_logic_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, IntPtr get_data, EflViewModelPropertyGetInternal get, EinaFreeCb get_free_cb, IntPtr set_data, EflViewModelPropertySetInternal set, EinaFreeCb set_free_cb, System.IntPtr binded); + if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_view_model_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_bind_static_delegate) }); + } + if (efl_view_model_property_unbind_static_delegate == null) + { + efl_view_model_property_unbind_static_delegate = new efl_view_model_property_unbind_delegate(property_unbind); + } - public delegate Eina.Error efl_view_model_property_logic_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, IntPtr get_data, EflViewModelPropertyGetInternal get, EinaFreeCb get_free_cb, IntPtr set_data, EflViewModelPropertySetInternal set, EinaFreeCb set_free_cb, System.IntPtr binded); - public static Efl.Eo.FunctionWrapper efl_view_model_property_logic_add_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_view_model_property_logic_add"); - private static Eina.Error property_logic_add(System.IntPtr obj, System.IntPtr pd, System.String property, IntPtr get_data, EflViewModelPropertyGetInternal get, EinaFreeCb get_free_cb, IntPtr set_data, EflViewModelPropertySetInternal set, EinaFreeCb set_free_cb, System.IntPtr binded) - { - Eina.Log.Debug("function efl_view_model_property_logic_add was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_binded = new Eina.Iterator(binded, false, false); - EflViewModelPropertyGetWrapper get_wrapper = new EflViewModelPropertyGetWrapper(get, get_data, get_free_cb); - EflViewModelPropertySetWrapper set_wrapper = new EflViewModelPropertySetWrapper(set, set_data, set_free_cb); - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((ViewModel)wrapper).AddPropertyLogic( property, get_wrapper.ManagedCb, set_wrapper.ManagedCb, _in_binded); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "PropertyUnbind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_view_model_property_unbind"), func = Marshal.GetFunctionPointerForDelegate(efl_view_model_property_unbind_static_delegate) }); } - return _ret_var; - } else { - return efl_view_model_property_logic_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property, get_data, get, get_free_cb, set_data, set, set_free_cb, binded); + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.ViewModel.efl_view_model_class_get(); } - } - private static efl_view_model_property_logic_add_delegate efl_view_model_property_logic_add_static_delegate; + #pragma warning disable CA1707, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_view_model_children_bind_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_view_model_children_bind_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_view_model_children_bind_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_view_model_children_bind_get"); + + private static bool children_bind_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_view_model_children_bind_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ViewModel)wrapper).GetChildrenBind(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate Eina.Error efl_view_model_property_logic_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + return _ret_var; + } + else + { + return efl_view_model_children_bind_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } - public delegate Eina.Error efl_view_model_property_logic_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); - public static Efl.Eo.FunctionWrapper efl_view_model_property_logic_del_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_view_model_property_logic_del"); - private static Eina.Error property_logic_del(System.IntPtr obj, System.IntPtr pd, System.String property) - { - Eina.Log.Debug("function efl_view_model_property_logic_del was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Error _ret_var = default(Eina.Error); - try { - _ret_var = ((ViewModel)wrapper).DelPropertyLogic( property); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_view_model_children_bind_get_delegate efl_view_model_children_bind_get_static_delegate; + + + private delegate void efl_view_model_children_bind_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + + + public delegate void efl_view_model_children_bind_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); + + public static Efl.Eo.FunctionWrapper efl_view_model_children_bind_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_view_model_children_bind_set"); + + private static void children_bind_set(System.IntPtr obj, System.IntPtr pd, bool enable) + { + Eina.Log.Debug("function efl_view_model_children_bind_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ViewModel)wrapper).SetChildrenBind(enable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_view_model_children_bind_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); } - return _ret_var; - } else { - return efl_view_model_property_logic_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); } - } - private static efl_view_model_property_logic_del_delegate efl_view_model_property_logic_del_static_delegate; + private static efl_view_model_children_bind_set_delegate efl_view_model_children_bind_set_static_delegate; - private delegate void efl_view_model_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination); + + private delegate Eina.Error efl_view_model_property_logic_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, IntPtr get_data, EflViewModelPropertyGetInternal get, EinaFreeCb get_free_cb, IntPtr set_data, EflViewModelPropertySetInternal set, EinaFreeCb set_free_cb, System.IntPtr binded); + + public delegate Eina.Error efl_view_model_property_logic_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, IntPtr get_data, EflViewModelPropertyGetInternal get, EinaFreeCb get_free_cb, IntPtr set_data, EflViewModelPropertySetInternal set, EinaFreeCb set_free_cb, System.IntPtr binded); - public delegate void efl_view_model_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination); - public static Efl.Eo.FunctionWrapper efl_view_model_property_bind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_view_model_property_bind"); - private static void property_bind(System.IntPtr obj, System.IntPtr pd, System.String source, System.String destination) - { - Eina.Log.Debug("function efl_view_model_property_bind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ViewModel)wrapper).PropertyBind( source, destination); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_view_model_property_logic_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_view_model_property_logic_add"); + + private static Eina.Error property_logic_add(System.IntPtr obj, System.IntPtr pd, System.String property, IntPtr get_data, EflViewModelPropertyGetInternal get, EinaFreeCb get_free_cb, IntPtr set_data, EflViewModelPropertySetInternal set, EinaFreeCb set_free_cb, System.IntPtr binded) + { + Eina.Log.Debug("function efl_view_model_property_logic_add was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_binded = new Eina.Iterator(binded, false, false); + EflViewModelPropertyGetWrapper get_wrapper = new EflViewModelPropertyGetWrapper(get, get_data, get_free_cb); + EflViewModelPropertySetWrapper set_wrapper = new EflViewModelPropertySetWrapper(set, set_data, set_free_cb); + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((ViewModel)wrapper).AddPropertyLogic(property, get_wrapper.ManagedCb, set_wrapper.ManagedCb, _in_binded); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_view_model_property_logic_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property, get_data, get, get_free_cb, set_data, set, set_free_cb, binded); } - } else { - efl_view_model_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), source, destination); } - } - private static efl_view_model_property_bind_delegate efl_view_model_property_bind_static_delegate; + private static efl_view_model_property_logic_add_delegate efl_view_model_property_logic_add_static_delegate; + + + private delegate Eina.Error efl_view_model_property_logic_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + + public delegate Eina.Error efl_view_model_property_logic_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_view_model_property_logic_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_view_model_property_logic_del"); + + private static Eina.Error property_logic_del(System.IntPtr obj, System.IntPtr pd, System.String property) + { + Eina.Log.Debug("function efl_view_model_property_logic_del was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((ViewModel)wrapper).DelPropertyLogic(property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - private delegate void efl_view_model_property_unbind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination); + return _ret_var; + } + else + { + return efl_view_model_property_logic_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + } + } - public delegate void efl_view_model_property_unbind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination); - public static Efl.Eo.FunctionWrapper efl_view_model_property_unbind_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_view_model_property_unbind"); - private static void property_unbind(System.IntPtr obj, System.IntPtr pd, System.String source, System.String destination) - { - Eina.Log.Debug("function efl_view_model_property_unbind was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((ViewModel)wrapper).PropertyUnbind( source, destination); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + private static efl_view_model_property_logic_del_delegate efl_view_model_property_logic_del_static_delegate; + + + private delegate void efl_view_model_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination); + + + public delegate void efl_view_model_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination); + + public static Efl.Eo.FunctionWrapper efl_view_model_property_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_view_model_property_bind"); + + private static void property_bind(System.IntPtr obj, System.IntPtr pd, System.String source, System.String destination) + { + Eina.Log.Debug("function efl_view_model_property_bind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ViewModel)wrapper).PropertyBind(source, destination); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_view_model_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), source, destination); } - } else { - efl_view_model_property_unbind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), source, destination); } - } - private static efl_view_model_property_unbind_delegate efl_view_model_property_unbind_static_delegate; + + private static efl_view_model_property_bind_delegate efl_view_model_property_bind_static_delegate; + + + private delegate void efl_view_model_property_unbind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination); + + + public delegate void efl_view_model_property_unbind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String source, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String destination); + + public static Efl.Eo.FunctionWrapper efl_view_model_property_unbind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_view_model_property_unbind"); + + private static void property_unbind(System.IntPtr obj, System.IntPtr pd, System.String source, System.String destination) + { + Eina.Log.Debug("function efl_view_model_property_unbind was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((ViewModel)wrapper).PropertyUnbind(source, destination); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_view_model_property_unbind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), source, destination); + } + } + + private static efl_view_model_property_unbind_delegate efl_view_model_property_unbind_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + } -} +} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/eina_accessor.cs b/internals/src/EflSharp/EflSharp/efl/eina_accessor.cs index 31574d5..bafbbd8 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_accessor.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_accessor.cs @@ -72,7 +72,14 @@ public class Accessor : IEnumerable, IDisposable { if (Ownership == Ownership.Managed && Handle != IntPtr.Zero) { - eina_accessor_free(Handle); + if (disposing) + { + eina_accessor_free(Handle); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eina_accessor_free, Handle); + } Handle = IntPtr.Zero; } } diff --git a/internals/src/EflSharp/EflSharp/efl/eina_array.cs b/internals/src/EflSharp/EflSharp/efl/eina_array.cs index 106af08..e3bd852 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_array.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_array.cs @@ -149,7 +149,14 @@ public class Array : IEnumerable, IDisposable if (Own) { - eina_array_free(h); + if (disposing) + { + eina_array_free(h); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eina_array_free, h); + } } } diff --git a/internals/src/EflSharp/EflSharp/efl/eina_binbuf.cs b/internals/src/EflSharp/EflSharp/efl/eina_binbuf.cs index 24fdaee..e5dc817 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_binbuf.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_binbuf.cs @@ -103,7 +103,14 @@ public class Binbuf : IDisposable Handle = IntPtr.Zero; if (Own && h != IntPtr.Zero) { - eina_binbuf_free(Handle); + if (disposing) + { + eina_binbuf_free(Handle); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eina_binbuf_free, Handle); + } } } diff --git a/internals/src/EflSharp/EflSharp/efl/eina_container_common.cs b/internals/src/EflSharp/EflSharp/efl/eina_container_common.cs index 9695c09..630b084 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_container_common.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_container_common.cs @@ -229,7 +229,7 @@ public class EflObjectElementTraits : IBaseElementTraits { if (nat != IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(nat); + Efl.Eo.Globals.efl_mono_thread_safe_efl_unref(nat); } } diff --git a/internals/src/EflSharp/EflSharp/efl/eina_hash.cs b/internals/src/EflSharp/EflSharp/efl/eina_hash.cs index 9659a80..8b3c1e7 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_hash.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_hash.cs @@ -187,7 +187,14 @@ public class Hash : IEnumerable>, IDi if (Own) { - eina_hash_free(h); + if (disposing) + { + eina_hash_free(h); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eina_hash_free, h); + } } } diff --git a/internals/src/EflSharp/EflSharp/efl/eina_inarray.cs b/internals/src/EflSharp/EflSharp/efl/eina_inarray.cs index 987b466..c7f3151 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_inarray.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_inarray.cs @@ -141,7 +141,14 @@ public class Inarray : IEnumerable, IDisposable if (Own) { - eina_inarray_free(h); + if (disposing) + { + eina_inarray_free(h); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eina_inarray_free, h); + } } } diff --git a/internals/src/EflSharp/EflSharp/efl/eina_iterator.cs b/internals/src/EflSharp/EflSharp/efl/eina_iterator.cs index c8f6141..05b5408 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_iterator.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_iterator.cs @@ -73,7 +73,14 @@ public class Iterator : IEnumerable, IDisposable if (Own) { - eina_iterator_free(h); + if (disposing) + { + eina_iterator_free(h); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eina_iterator_free, h); + } } } diff --git a/internals/src/EflSharp/EflSharp/efl/eina_list.cs b/internals/src/EflSharp/EflSharp/efl/eina_list.cs index fe95650..4b9e5f5 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_list.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_list.cs @@ -45,6 +45,8 @@ public static class ListNativeFunctions eina_list_move_list(ref IntPtr to, ref IntPtr from, IntPtr data); [DllImport(efl.Libs.Eina)] public static extern IntPtr eina_list_free(IntPtr list); + [DllImport(efl.Libs.CustomExports)] public static extern void + efl_mono_thread_safe_eina_list_free(IntPtr list); [DllImport(efl.Libs.Eina)] public static extern IntPtr eina_list_nth(IntPtr list, uint n); [DllImport(efl.Libs.Eina)] public static extern IntPtr @@ -190,7 +192,14 @@ public class List : IEnumerable, IDisposable if (Own) { - eina_list_free(h); + if (disposing) + { + eina_list_free(h); + } + else + { + efl_mono_thread_safe_eina_list_free(h); + } } } diff --git a/internals/src/EflSharp/EflSharp/efl/eina_promises.cs b/internals/src/EflSharp/EflSharp/efl/eina_promises.cs index c7b68fe..25077a3 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_promises.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_promises.cs @@ -28,6 +28,9 @@ static internal class PromiseNativeMethods [DllImport(efl.Libs.Eina)] internal static extern void eina_promise_reject(IntPtr scheduler, Eina.Error reason); + [DllImport(efl.Libs.CustomExports)] + internal static extern void efl_mono_thread_safe_promise_reject(IntPtr scheduler, Eina.Error reason); + [DllImport(efl.Libs.Eina)] internal static extern IntPtr eina_future_new(IntPtr promise); @@ -148,7 +151,14 @@ public class Promise : IDisposable { if (Handle != IntPtr.Zero) { - eina_promise_reject(Handle, Eina.Error.ECANCELED); + if (disposing) + { + eina_promise_reject(Handle, Eina.Error.ECANCELED); + } + else + { + efl_mono_thread_safe_promise_reject(Handle, Eina.Error.ECANCELED); + } Handle = IntPtr.Zero; } } diff --git a/internals/src/EflSharp/EflSharp/efl/eina_strbuf.cs b/internals/src/EflSharp/EflSharp/efl/eina_strbuf.cs index 5b25ff1..a538de0 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_strbuf.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_strbuf.cs @@ -93,7 +93,16 @@ public class Strbuf : IDisposable if (!Disposed && (Handle != IntPtr.Zero)) { - eina_strbuf_free(Handle); + if (disposing) + { + eina_strbuf_free(Handle); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eina_strbuf_free, Handle); + } + + Handle = IntPtr.Zero; } Disposed = true; diff --git a/internals/src/EflSharp/EflSharp/efl/eina_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/eina_types.eot.cs index 6384b66..9de7dd3 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_types.eot.cs @@ -3,21 +3,31 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Eina { -public struct Unicode { +namespace Eina { + +public struct Unicode +{ private uint payload; public static implicit operator Unicode(uint x) { return new Unicode{payload=x}; } + public static implicit operator uint(Unicode x) { return x.payload; } + +} + } -} -namespace Eina { namespace Xattr { + +namespace Eina { + +namespace Xattr { + /// Eina file extended attributes flags public enum Flags { @@ -28,8 +38,13 @@ Replace = 1, /// This will only succeed if the extended attribute wasn't previously set Created = 2, } -} } -namespace Eina { + +} + +} + +namespace Eina { + /// A rectangle in pixel dimensions. [StructLayout(LayoutKind.Sequential)] public struct Rect @@ -44,10 +59,10 @@ public struct Rect public int H; ///Constructor for Rect. public Rect( - int X=default(int), - int Y=default(int), - int W=default(int), - int H=default(int) ) + int X = default(int), + int Y = default(int), + int W = default(int), + int H = default(int) ) { this.X = X; this.Y = Y; @@ -99,8 +114,10 @@ public struct Rect } -} -namespace Eina { +} + +namespace Eina { + /// A 2D location in pixels. [StructLayout(LayoutKind.Sequential)] public struct Position2D @@ -111,8 +128,8 @@ public struct Position2D public int Y; ///Constructor for Position2D. public Position2D( - int X=default(int), - int Y=default(int) ) + int X = default(int), + int Y = default(int) ) { this.X = X; this.Y = Y; @@ -154,8 +171,10 @@ public struct Position2D } -} -namespace Eina { +} + +namespace Eina { + /// A 2D size in pixels. [StructLayout(LayoutKind.Sequential)] public struct Size2D @@ -166,8 +185,8 @@ public struct Size2D public int H; ///Constructor for Size2D. public Size2D( - int W=default(int), - int H=default(int) ) + int W = default(int), + int H = default(int) ) { this.W = W; this.H = H; @@ -209,8 +228,10 @@ public struct Size2D } -} -namespace Eina { +} + +namespace Eina { + /// Eina file data structure [StructLayout(LayoutKind.Sequential)] public struct File @@ -246,8 +267,10 @@ public struct File } -} -namespace Eina { +} + +namespace Eina { + /// A simple 2D vector type using floating point values. [StructLayout(LayoutKind.Sequential)] public struct Vector2 @@ -258,8 +281,8 @@ public struct Vector2 public double Y; ///Constructor for Vector2. public Vector2( - double X=default(double), - double Y=default(double) ) + double X = default(double), + double Y = default(double) ) { this.X = X; this.Y = Y; @@ -301,8 +324,10 @@ public struct Vector2 } -} -namespace Eina { +} + +namespace Eina { + /// Eina 3x3 Matrix [StructLayout(LayoutKind.Sequential)] public struct Matrix3 @@ -327,15 +352,15 @@ public struct Matrix3 public double Zz; ///Constructor for Matrix3. public Matrix3( - double Xx=default(double), - double Xy=default(double), - double Xz=default(double), - double Yx=default(double), - double Yy=default(double), - double Yz=default(double), - double Zx=default(double), - double Zy=default(double), - double Zz=default(double) ) + double Xx = default(double), + double Xy = default(double), + double Xz = default(double), + double Yx = default(double), + double Yy = default(double), + double Yz = default(double), + double Zx = default(double), + double Zy = default(double), + double Zz = default(double) ) { this.Xx = Xx; this.Xy = Xy; @@ -412,8 +437,10 @@ public struct Matrix3 } -} -namespace Eina { +} + +namespace Eina { + /// Eina file direct information data structure [StructLayout(LayoutKind.Sequential)] public struct FileDirectInfo @@ -449,8 +476,10 @@ public struct FileDirectInfo } -} -namespace Eina { +} + +namespace Eina { + /// The structure to store some file statistics. [StructLayout(LayoutKind.Sequential)] public struct Stat @@ -489,22 +518,22 @@ public struct Stat public uint Ctimensec; ///Constructor for Stat. public Stat( - uint Dev=default(uint), - uint Ino=default(uint), - uint Mode=default(uint), - uint Nlink=default(uint), - uint Uid=default(uint), - uint Gid=default(uint), - uint Rdev=default(uint), - uint Size=default(uint), - uint Blksize=default(uint), - uint Blocks=default(uint), - uint Atime=default(uint), - uint Atimensec=default(uint), - uint Mtime=default(uint), - uint Mtimensec=default(uint), - uint Ctime=default(uint), - uint Ctimensec=default(uint) ) + uint Dev = default(uint), + uint Ino = default(uint), + uint Mode = default(uint), + uint Nlink = default(uint), + uint Uid = default(uint), + uint Gid = default(uint), + uint Rdev = default(uint), + uint Size = default(uint), + uint Blksize = default(uint), + uint Blocks = default(uint), + uint Atime = default(uint), + uint Atimensec = default(uint), + uint Mtime = default(uint), + uint Mtimensec = default(uint), + uint Ctime = default(uint), + uint Ctimensec = default(uint) ) { this.Dev = Dev; this.Ino = Ino; @@ -616,4 +645,5 @@ public struct Stat } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/eina_value.cs b/internals/src/EflSharp/EflSharp/efl/eina_value.cs index 742dc4d..627c7cb 100644 --- a/internals/src/EflSharp/EflSharp/efl/eina_value.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_value.cs @@ -1405,7 +1405,14 @@ public class Value : IDisposable, IComparable, IEquatable if (!Disposed && (Handle != IntPtr.Zero)) { // No need to call flush as eina_value_free already calls it for us. - Free(this.Handle); + if (disposing) + { + Free(this.Handle); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eina_value_free, this.Handle); + } } Disposed = true; diff --git a/internals/src/EflSharp/EflSharp/efl/eldbus_connection.cs b/internals/src/EflSharp/EflSharp/efl/eldbus_connection.cs index 24a1ad9..f88f0ac 100644 --- a/internals/src/EflSharp/EflSharp/efl/eldbus_connection.cs +++ b/internals/src/EflSharp/EflSharp/efl/eldbus_connection.cs @@ -161,7 +161,14 @@ public class Connection : IDisposable if (Own) { - eldbus_connection_unref(h); + if (disposing) + { + eldbus_connection_unref(h); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eldbus_connection_unref, h); + } } } diff --git a/internals/src/EflSharp/EflSharp/efl/eldbus_message.cs b/internals/src/EflSharp/EflSharp/efl/eldbus_message.cs index 4e2c154..559c2f1 100644 --- a/internals/src/EflSharp/EflSharp/efl/eldbus_message.cs +++ b/internals/src/EflSharp/EflSharp/efl/eldbus_message.cs @@ -230,7 +230,14 @@ public class Message : IDisposable if (Own) { - eldbus_message_unref(h); + if (disposing) + { + eldbus_message_unref(h); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eldbus_message_unref, h); + } } } diff --git a/internals/src/EflSharp/EflSharp/efl/eldbus_object.cs b/internals/src/EflSharp/EflSharp/efl/eldbus_object.cs index 1e9af69..682fda6 100644 --- a/internals/src/EflSharp/EflSharp/efl/eldbus_object.cs +++ b/internals/src/EflSharp/EflSharp/efl/eldbus_object.cs @@ -152,7 +152,14 @@ public class Object : System.IDisposable if (Own) { - eldbus_object_unref(h); + if (disposing) + { + eldbus_object_unref(h); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eldbus_object_unref, h); + } } } diff --git a/internals/src/EflSharp/EflSharp/efl/eldbus_proxy.cs b/internals/src/EflSharp/EflSharp/efl/eldbus_proxy.cs index 0fab5eb..f5eec40 100644 --- a/internals/src/EflSharp/EflSharp/efl/eldbus_proxy.cs +++ b/internals/src/EflSharp/EflSharp/efl/eldbus_proxy.cs @@ -111,7 +111,14 @@ public class Proxy : IDisposable if (Own) { - eldbus_proxy_unref(h); + if (disposing) + { + eldbus_proxy_unref(h); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(eldbus_proxy_unref, h); + } } } diff --git a/internals/src/EflSharp/EflSharp/efl/elm_general.eot.cs b/internals/src/EflSharp/EflSharp/efl/elm_general.eot.cs index 6dd48bd..ce07f86 100644 --- a/internals/src/EflSharp/EflSharp/efl/elm_general.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/elm_general.eot.cs @@ -3,8 +3,10 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Elm { +namespace Elm { + /// Policy identifiers. public enum Policy { @@ -19,8 +21,11 @@ Throttle = 2, /// Sentinel value to indicate last enum field during iteration Last = 3, } -} -namespace Elm { + +} + +namespace Elm { + /// Possible values for the policy public enum PolicyQuit { @@ -32,8 +37,11 @@ LastWindowClosed = 1, /// (Since EFL 1.14) LastWindowHidden = 2, } -} -namespace Elm { + +} + +namespace Elm { + /// Possible values for the policy. /// (Since EFL 1.8) public enum PolicyExit @@ -43,8 +51,11 @@ None = 0, /// delete all the windows after quitting the main loop WindowsDel = 1, } -} -namespace Elm { + +} + +namespace Elm { + /// Possible values for the policy. /// (Since EFL 1.8) public enum PolicyThrottle @@ -56,8 +67,13 @@ HiddenAlways = 1, /// never throttle when windows are all hidden, regardless of config settings Never = 2, } -} -namespace Elm { namespace Object { + +} + +namespace Elm { + +namespace Object { + /// Possible values for the #ELM_OBJECT_SELECT_MODE policy. /// (Since EFL 1.7) public enum SelectMode @@ -73,8 +89,15 @@ DisplayOnly = 3, /// canary value: any value greater or equal to ELM_OBJECT_SELECT_MODE_MAX is forbidden. Max = 4, } -} } -namespace Elm { namespace Object { + +} + +} + +namespace Elm { + +namespace Object { + /// Possible values for the #ELM_OBJECT_MULTI_SELECT_MODE policy. /// (Since EFL 1.8) public enum MultiSelectMode @@ -86,8 +109,15 @@ WithControl = 1, /// canary value: any value greater or equal to ELM_OBJECT_MULTI_SELECT_MODE_MAX is forbidden. Max = 2, } -} } -namespace Elm { namespace Wrap { + +} + +} + +namespace Elm { + +namespace Wrap { + /// Line wrapping types. Type of word or character wrapping to use. /// See also @ref elm_entry_line_wrap_set, @ref elm_popup_content_text_wrap_type_set, @ref elm_label_line_wrap_set. public enum Type @@ -103,8 +133,15 @@ Mixed = 3, /// Sentinel value to indicate last enum field during iteration Last = 4, } -} } -namespace Elm { namespace Icon { + +} + +} + +namespace Elm { + +namespace Icon { + /// Elementary icon types public enum Type { @@ -115,8 +152,13 @@ File = 1, /// Icon is of type standard Standard = 2, } -} } -namespace Elm { + +} + +} + +namespace Elm { + /// Text Format types. public enum TextFormat { @@ -125,8 +167,15 @@ PlainUtf8 = 0, /// Markup UTF8 type MarkupUtf8 = 1, } -} -namespace Elm { namespace Input { namespace Panel { + +} + +namespace Elm { + +namespace Input { + +namespace Panel { + /// Input panel (virtual keyboard) layout types. Type of input panel (virtual keyboard) to use - this is a hint and may not provide exactly what is desired. public enum Layout { @@ -164,8 +213,19 @@ Emoticon = 13, /// (Since EFL 1.19) Voice = 14, } -} } } -namespace Elm { namespace Input { namespace Panel { + +} + +} + +} + +namespace Elm { + +namespace Input { + +namespace Panel { + /// Input panel (virtual keyboard) language modes. public enum Lang { @@ -174,8 +234,17 @@ Automatic = 0, /// Alphabet Alphabet = 1, } -} } } -namespace Elm { namespace Autocapital { + +} + +} + +} + +namespace Elm { + +namespace Autocapital { + /// Autocapitalization Types. Choose method of auto-capitalization. public enum Type { @@ -188,8 +257,19 @@ Sentence = 2, /// Autocapitalize all letters. Allcharacter = 3, } -} } -namespace Elm { namespace Input { namespace Panel { namespace ReturnKey { + +} + +} + +namespace Elm { + +namespace Input { + +namespace Panel { + +namespace ReturnKey { + /// "Return" Key types on the input panel (virtual keyboard). public enum Type { @@ -213,8 +293,19 @@ Send = 7, /// (Since EFL 1.8) Signin = 8, } -} } } } -namespace Elm { namespace Input { + +} + +} + +} + +} + +namespace Elm { + +namespace Input { + /// Enumeration that defines the types of Input Hints. /// (Since EFL 1.12) public enum Hints @@ -262,8 +353,13 @@ AutofillPostalCode = 2560, /// (Since EFL 1.21) AutofillId = 2816, } -} } -namespace Elm { + +} + +} + +namespace Elm { + /// Enum of entry's copy & paste policy. public enum CnpMode { @@ -274,8 +370,15 @@ NoImage = 1, /// copy & paste text without markup tag Plaintext = 2, } -} -namespace Elm { namespace Genlist { namespace Item { + +} + +namespace Elm { + +namespace Genlist { + +namespace Item { + /// Defines if the item is of any special type (has subitems or it's the index of a group), or is just a simple item. public enum Type { @@ -288,8 +391,19 @@ Group = 2, /// Sentinel value to indicate last enum field during iteration Max = 4, } -} } } -namespace Elm { namespace Genlist { namespace Item { + +} + +} + +} + +namespace Elm { + +namespace Genlist { + +namespace Item { + /// Defines the type of the item part Used while updating item's parts It can be used at updating multi fields. public enum FieldType { @@ -302,8 +416,19 @@ Content = 2, /// Type state State = 4, } -} } } -namespace Elm { namespace Genlist { namespace Item { + +} + +} + +} + +namespace Elm { + +namespace Genlist { + +namespace Item { + /// Defines where to position the item in the genlist. public enum ScrolltoType { @@ -318,8 +443,19 @@ Middle = 4, /// To the bottom of viewport. Bottom = 8, } -} } } -namespace Elm { namespace Gengrid { namespace Item { + +} + +} + +} + +namespace Elm { + +namespace Gengrid { + +namespace Item { + /// Defines where to position the item in the genlist. public enum ScrolltoType { @@ -334,8 +470,19 @@ Middle = 4, /// To the bottom of viewport. Bottom = 8, } -} } } -namespace Elm { namespace Gengrid { namespace Item { + +} + +} + +} + +namespace Elm { + +namespace Gengrid { + +namespace Item { + /// Defines the type of the item part Used while updating item's parts. It can be used at updating multi fields. public enum FieldType { @@ -348,8 +495,17 @@ Content = 2, /// Type state State = 4, } -} } } -namespace Elm { namespace List { + +} + +} + +} + +namespace Elm { + +namespace List { + /// Set list's resizing behavior, transverse axis scrolling and items cropping. See each mode's description for more details. /// Note: Default value is . /// @@ -367,8 +523,15 @@ Expand = 3, /// Indicates error if returned by elm_list_mode_get(). Last = 4, } -} } -namespace Elm { namespace Event { + +} + +} + +namespace Elm { + +namespace Event { + /// Data on the event when an Elementary policy has changed [StructLayout(LayoutKind.Sequential)] public struct PolicyChanged @@ -381,9 +544,9 @@ public struct PolicyChanged public int Old_value; ///Constructor for PolicyChanged. public PolicyChanged( - uint Policy=default(uint), - int New_value=default(int), - int Old_value=default(int) ) + uint Policy = default(uint), + int New_value = default(int), + int Old_value = default(int) ) { this.Policy = Policy; this.New_value = New_value; @@ -430,7 +593,9 @@ public struct PolicyChanged } -} } +} + +} /// Elementary gen item [StructLayout(LayoutKind.Sequential)] @@ -505,7 +670,9 @@ public struct EflAccessActionData } -namespace Elm { + +namespace Elm { + /// Data for the elm_validator_regexp_helper() [StructLayout(LayoutKind.Sequential)] public struct ValidateContent @@ -541,8 +708,10 @@ public struct ValidateContent } -} -namespace Elm { +} + +namespace Elm { + /// The info sent in the callback for the "anchor,clicked" signals emitted by entries. [StructLayout(LayoutKind.Sequential)] public struct EntryAnchorInfo @@ -578,8 +747,10 @@ public struct EntryAnchorInfo } -} -namespace Elm { +} + +namespace Elm { + /// The info sent in the callback for "anchor,hover" signals emitted by the Anchor_Hover widget [StructLayout(LayoutKind.Sequential)] public struct EntryAnchorHoverInfo @@ -615,8 +786,10 @@ public struct EntryAnchorHoverInfo } -} -namespace Elm { +} + +namespace Elm { + /// This corresponds to Edje_Entry_Change_Info. Includes information about a change in the entry [StructLayout(LayoutKind.Sequential)] public struct EntryChangeInfo @@ -652,4 +825,5 @@ public struct EntryChangeInfo } -} +} + diff --git a/internals/src/EflSharp/EflSharp/efl/elm_interface_scrollable.eo.cs b/internals/src/EflSharp/EflSharp/efl/elm_interface_scrollable.eo.cs index 9e7e079..1c9f6cf 100644 --- a/internals/src/EflSharp/EflSharp/efl/elm_interface_scrollable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/elm_interface_scrollable.eo.cs @@ -3,10 +3,12 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Elm { +namespace Elm { + /// Elm scrollable mixin -[IInterfaceScrollableNativeInherit] +[Elm.IInterfaceScrollableConcrete.NativeMethods] public interface IInterfaceScrollable : Efl.Ui.IScrollable , Efl.Ui.IWidgetFocusManager , @@ -23,8 +25,7 @@ public interface IInterfaceScrollable : /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity -/// -void GetGravity( out double x, out double y); +void GetGravity(out double x, out double y); /// Control scrolling gravity on the scrollable /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. /// @@ -35,27 +36,23 @@ void GetGravity( out double x, out double y); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity -/// -void SetGravity( double x, double y); +void SetGravity(double x, double y); /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. /// Horizontal bounce policy. /// Vertical bounce policy. -/// -void GetBounceAllow( out bool horiz, out bool vert); +void GetBounceAllow(out bool horiz, out bool vert); /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. /// Horizontal bounce policy. /// Vertical bounce policy. -/// -void SetBounceAllow( bool horiz, bool vert); +void SetBounceAllow(bool horiz, bool vert); /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. /// true if wheel is disabled, false otherwise bool GetWheelDisabled(); /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. /// true if wheel is disabled, false otherwise -/// -void SetWheelDisabled( bool disabled); +void SetWheelDisabled(bool disabled); /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// @@ -67,27 +64,23 @@ Efl.Ui.ScrollBlock GetMovementBlock(); /// /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. /// Which axis (or axes) to block -/// -void SetMovementBlock( Efl.Ui.ScrollBlock block); +void SetMovementBlock(Efl.Ui.ScrollBlock block); /// Momentum animator /// true if disabled, false otherwise bool GetMomentumAnimatorDisabled(); /// Momentum animator /// true if disabled, false otherwise -/// -void SetMomentumAnimatorDisabled( bool disabled); +void SetMomentumAnimatorDisabled(bool disabled); /// Scrollbar visibility policy /// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. /// Horizontal scrollbar policy /// Vertical scrollbar policy -/// -void GetPolicy( out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); +void GetPolicy(out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); /// Scrollbar visibility policy /// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. /// Horizontal scrollbar policy /// Vertical scrollbar policy -/// -void SetPolicy( Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); +void SetPolicy(Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); /// Currently visible content region /// This gets the current region in the content object that is visible through the scroller. The region co-ordinates are returned in the x, y, w, h values pointed to. /// @@ -98,8 +91,7 @@ void SetPolicy( Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); /// Y coordinate of the region /// Width of the region /// Height of the region -/// -void GetContentRegion( out int x, out int y, out int w, out int h); +void GetContentRegion(out int x, out int y, out int w, out int h); /// Currently visible content region /// This gets the current region in the content object that is visible through the scroller. The region co-ordinates are returned in the x, y, w, h values pointed to. /// @@ -110,74 +102,63 @@ void GetContentRegion( out int x, out int y, out int w, out int h); /// Y coordinate of the region /// Width of the region /// Height of the region -/// -void SetContentRegion( int x, int y, int w, int h); +void SetContentRegion(int x, int y, int w, int h); /// It decides whether the scrollable object propagates the events to content object or not. /// true if events are propagated, false otherwise bool GetContentEvents(); /// It decides whether the scrollable object propagates the events to content object or not. /// true if events are propagated, false otherwise -/// -void SetContentEvents( bool repeat_events); +void SetContentEvents(bool repeat_events); /// Scroll page size relative to viewport size. /// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. /// The horizontal page relative size /// The vertical page relative size -/// -void GetPageSize( out int x, out int y); +void GetPageSize(out int x, out int y); /// Scroll page size relative to viewport size. /// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. /// The horizontal page relative size /// The vertical page relative size -/// -void SetPageSize( int x, int y); +void SetPageSize(int x, int y); /// Bounce animator /// true if bounce animation is disabled, false otherwise bool GetBounceAnimatorDisabled(); /// Bounce animator /// true if bounce animation is disabled, false otherwise -/// -void SetBounceAnimatorDisabled( bool disabled); +void SetBounceAnimatorDisabled(bool disabled); /// Page scroll limit /// Page limit horizontal /// Page limit vertical -/// -void GetPageScrollLimit( out int page_limit_h, out int page_limit_v); +void GetPageScrollLimit(out int page_limit_h, out int page_limit_v); /// Page scroll limit /// Page limit horizontal /// Page limit vertical -/// -void SetPageScrollLimit( int page_limit_h, int page_limit_v); +void SetPageScrollLimit(int page_limit_h, int page_limit_v); /// Page snapping behavior /// When scrolling, if a scroller is paged (see elm_scroller_page_size_set() and elm_scroller_page_relative_set()), the scroller may snap to pages when being scrolled, i.e., even if it had momentum to scroll further, it will stop at the next page boundaries. This is disabled, by default, for both axis. This function will set if it that is enabled or not, for each axis. /// /// Note: If obj is not set to have pages, nothing will happen after this call. /// Allow snap horizontally /// Allow snap vertically -/// -void GetPageSnapAllow( out bool horiz, out bool vert); +void GetPageSnapAllow(out bool horiz, out bool vert); /// Page snapping behavior /// When scrolling, if a scroller is paged (see elm_scroller_page_size_set() and elm_scroller_page_relative_set()), the scroller may snap to pages when being scrolled, i.e., even if it had momentum to scroll further, it will stop at the next page boundaries. This is disabled, by default, for both axis. This function will set if it that is enabled or not, for each axis. /// /// Note: If obj is not set to have pages, nothing will happen after this call. /// Allow snap horizontally /// Allow snap vertically -/// -void SetPageSnapAllow( bool horiz, bool vert); +void SetPageSnapAllow(bool horiz, bool vert); /// Pagin property /// Page relation horizontal /// Page relation vertical /// Page size horizontal /// Page size vertical -/// -void GetPaging( out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); +void GetPaging(out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); /// Pagin property /// Page relation horizontal /// Page relation vertical /// Page size horizontal /// Page size vertical -/// -void SetPaging( double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); +void SetPaging(double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); /// Single direction scroll configuration /// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. /// @@ -189,205 +170,162 @@ Elm.Scroller.SingleDirection GetSingleDirection(); /// /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. /// The single direction scroll policy -/// -void SetSingleDirection( Elm.Scroller.SingleDirection single_dir); +void SetSingleDirection(Elm.Scroller.SingleDirection single_dir); /// Step size /// X coordinate /// Y coordinate -/// -void GetStepSize( out int x, out int y); +void GetStepSize(out int x, out int y); /// Step size /// X coordinate /// Y coordinate -/// -void SetStepSize( int x, int y); +void SetStepSize(int x, int y); /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The scrolling vertical loop -/// -void GetContentLoop( out bool loop_h, out bool loop_v); +void GetContentLoop(out bool loop_h, out bool loop_v); /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The scrolling vertical loop -/// -void SetContentLoop( bool loop_h, bool loop_v); +void SetContentLoop(bool loop_h, bool loop_v); /// Set the callback to run when the content has been moved up. /// The callback -/// -void SetScrollUpCb( ElmInterfaceScrollableCb scroll_up_cb); +void SetScrollUpCb(ElmInterfaceScrollableCb scroll_up_cb); /// Set the callback to run when the horizontal scrollbar is dragged. /// The callback -/// -void SetHbarDragCb( ElmInterfaceScrollableCb hbar_drag_cb); +void SetHbarDragCb(ElmInterfaceScrollableCb hbar_drag_cb); /// Set the callback to run when dragging of the contents has started. /// The callback -/// -void SetDragStartCb( ElmInterfaceScrollableCb drag_start_cb); +void SetDragStartCb(ElmInterfaceScrollableCb drag_start_cb); /// Set the callback to run when scrolling of the contents has started. /// The callback -/// -void SetScrollStartCb( ElmInterfaceScrollableCb scroll_start_cb); +void SetScrollStartCb(ElmInterfaceScrollableCb scroll_start_cb); /// Freeze property /// true if freeze, false otherwise -/// -void SetFreeze( bool freeze); +void SetFreeze(bool freeze); /// When the viewport is resized, the callback is called. /// The callback -/// -void SetContentViewportResizeCb( ElmInterfaceScrollableResizeCb viewport_resize_cb); +void SetContentViewportResizeCb(ElmInterfaceScrollableResizeCb viewport_resize_cb); /// Set the callback to run when the content has been moved to the left /// The callback -/// -void SetScrollLeftCb( ElmInterfaceScrollableCb scroll_left_cb); +void SetScrollLeftCb(ElmInterfaceScrollableCb scroll_left_cb); /// Set the callback to run when the vertical scrollbar is pressed. /// The callback -/// -void SetVbarPressCb( ElmInterfaceScrollableCb vbar_press_cb); +void SetVbarPressCb(ElmInterfaceScrollableCb vbar_press_cb); /// Set the callback to run when the horizontal scrollbar is pressed. /// The callback -/// -void SetHbarPressCb( ElmInterfaceScrollableCb hbar_press_cb); +void SetHbarPressCb(ElmInterfaceScrollableCb hbar_press_cb); /// Set the callback to run when the horizontal scrollbar is unpressed. /// The callback -/// -void SetHbarUnpressCb( ElmInterfaceScrollableCb hbar_unpress_cb); +void SetHbarUnpressCb(ElmInterfaceScrollableCb hbar_unpress_cb); /// Set the callback to run when dragging of the contents has stopped. /// The callback -/// -void SetDragStopCb( ElmInterfaceScrollableCb drag_stop_cb); +void SetDragStopCb(ElmInterfaceScrollableCb drag_stop_cb); /// Set the callback to run when scrolling of the contents has stopped. /// The callback -/// -void SetScrollStopCb( ElmInterfaceScrollableCb scroll_stop_cb); +void SetScrollStopCb(ElmInterfaceScrollableCb scroll_stop_cb); /// Extern pan /// Pan object -/// -void SetExternPan( Efl.Canvas.Object pan); +void SetExternPan(Efl.Canvas.Object pan); /// Set the callback to run when the visible page changes. /// The callback -/// -void SetPageChangeCb( ElmInterfaceScrollableCb page_change_cb); +void SetPageChangeCb(ElmInterfaceScrollableCb page_change_cb); /// Hold property /// true if hold, false otherwise -/// -void SetHold( bool hold); +void SetHold(bool hold); /// Set the callback to run when the scrolling animation has started. /// The callback -/// -void SetAnimateStartCb( ElmInterfaceScrollableCb animate_start_cb); +void SetAnimateStartCb(ElmInterfaceScrollableCb animate_start_cb); /// Set the callback to run when the content has been moved down. /// The callback -/// -void SetScrollDownCb( ElmInterfaceScrollableCb scroll_down_cb); +void SetScrollDownCb(ElmInterfaceScrollableCb scroll_down_cb); /// Set scroll page size relative to viewport size. /// Page relation horizontal /// Page relation vertical -/// -void SetPageRelative( double h_pagerel, double v_pagerel); +void SetPageRelative(double h_pagerel, double v_pagerel); /// Set the callback to run when the content has been moved. /// The callback -/// -void SetScrollCb( ElmInterfaceScrollableCb scroll_cb); +void SetScrollCb(ElmInterfaceScrollableCb scroll_cb); /// Set the callback to run when the scrolling animation has stopped. /// The callback -/// -void SetAnimateStopCb( ElmInterfaceScrollableCb animate_stop_cb); +void SetAnimateStopCb(ElmInterfaceScrollableCb animate_stop_cb); /// set the callback to run on minimal limit content /// The callback -/// -void SetContentMinLimitCb( ElmInterfaceScrollableMinLimitCb min_limit_cb); +void SetContentMinLimitCb(ElmInterfaceScrollableMinLimitCb min_limit_cb); /// Set the callback to run when the content has been moved to the right. /// The callback -/// -void SetScrollRightCb( ElmInterfaceScrollableCb scroll_right_cb); +void SetScrollRightCb(ElmInterfaceScrollableCb scroll_right_cb); /// Content property /// Content object -/// -void SetScrollableContent( Efl.Canvas.Object content); +void SetScrollableContent(Efl.Canvas.Object content); /// Set the callback to run when the left edge of the content has been reached. /// The callback -/// -void SetEdgeLeftCb( ElmInterfaceScrollableCb edge_left_cb); +void SetEdgeLeftCb(ElmInterfaceScrollableCb edge_left_cb); /// Set the callback to run when the horizontal scrollbar is dragged. /// The callback -/// -void SetVbarDragCb( ElmInterfaceScrollableCb vbar_drag_cb); +void SetVbarDragCb(ElmInterfaceScrollableCb vbar_drag_cb); /// Set the callback to run when the horizontal scrollbar is unpressed. /// The callback -/// -void SetVbarUnpressCb( ElmInterfaceScrollableCb vbar_unpress_cb); +void SetVbarUnpressCb(ElmInterfaceScrollableCb vbar_unpress_cb); /// Set the callback to run when the bottom edge of the content has been reached. /// The callback -/// -void SetEdgeBottomCb( ElmInterfaceScrollableCb edge_bottom_cb); +void SetEdgeBottomCb(ElmInterfaceScrollableCb edge_bottom_cb); /// Set the callback to run when the right edge of the content has been reached. /// The callback -/// -void SetEdgeRightCb( ElmInterfaceScrollableCb edge_right_cb); +void SetEdgeRightCb(ElmInterfaceScrollableCb edge_right_cb); /// Set the callback to run when the top edge of the content has been reached. /// The callback -/// -void SetEdgeTopCb( ElmInterfaceScrollableCb edge_top_cb); +void SetEdgeTopCb(ElmInterfaceScrollableCb edge_top_cb); /// Object property /// Edje object /// Evas object -/// -void SetObjects( Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle); +void SetObjects(Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle); /// Get scroll last page number. /// The page number starts from 0. 0 is the first page. This returns the last page number among the pages. /// /// See: , and . /// The horizontal page number /// The vertical page number -/// -void GetLastPage( out int pagenumber_h, out int pagenumber_v); +void GetLastPage(out int pagenumber_h, out int pagenumber_v); /// Get scroll current page number. /// The page number starts from 0. 0 is the first page. Current page means the page which meets the top-left of the viewport. If there are two or more pages in the viewport, it returns the number of the page which meets the top-left of the viewport. /// /// See: , and . /// The horizontal page number /// The vertical page number -/// -void GetCurrentPage( out int pagenumber_h, out int pagenumber_v); +void GetCurrentPage(out int pagenumber_h, out int pagenumber_v); /// Content viewport geometry /// X coordinate /// Y coordinate /// Width /// Height -/// -void GetContentViewportGeometry( out int x, out int y, out int w, out int h); +void GetContentViewportGeometry(out int x, out int y, out int w, out int h); /// Get the size of the content object /// This gets the size of the content object of the scroller. /// Width of the content object. /// Height of the content object. -/// -void GetContentSize( out int w, out int h); +void GetContentSize(out int w, out int h); /// Whether scrolling should loop around. /// True to enable looping. bool GetItemLoopEnabled(); /// Whether scrolling should loop around. /// True to enable looping. -/// -void SetItemLoopEnabled( bool enable); +void SetItemLoopEnabled(bool enable); /// Set the content position /// X coordinate /// Y coordinate /// Send signals to the theme corresponding to the scroll direction, or if an edge was reached. -/// -void SetContentPos( int x, int y, bool sig); +void SetContentPos(int x, int y, bool sig); /// Get content position /// X coordinate /// Y coordinate -/// -void GetContentPos( out int x, out int y); +void GetContentPos(out int x, out int y); /// Show a specific virtual region within the scroller content object by page number. /// 0, 0 of the indicated page is located at the top-left of the viewport. This will jump to the page directly without animation. /// /// See . /// The horizontal page number /// The vertical page number -/// -void ShowPage( int pagenumber_h, int pagenumber_v); +void ShowPage(int pagenumber_h, int pagenumber_v); /// Show a specific virtual region within the scroller content object. /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. Unlike elm_scroller_region_show(), this allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. /// @@ -396,40 +334,28 @@ void ShowPage( int pagenumber_h, int pagenumber_v); /// Y coordinate of the region /// Width of the region /// Height of the region -/// -void RegionBringIn( int x, int y, int w, int h); +void RegionBringIn(int x, int y, int w, int h); /// Show a specific virtual region within the scroller content object by page number. /// 0, 0 of the indicated page is located at the top-left of the viewport. This will slide to the page with animation. /// /// /// The horizontal page number /// The vertical page number -/// -void PageBringIn( int pagenumber_h, int pagenumber_v); +void PageBringIn(int pagenumber_h, int pagenumber_v); /// Show a specific virtual region within the scroller content object /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. /// X coordinate of the region /// Y coordinate of the region /// Width of the region /// Height of the region -/// -void ShowContentRegion( int x, int y, int w, int h); +void ShowContentRegion(int x, int y, int w, int h); /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size -/// -void ContentMinLimit( bool w, bool h); - /// -/// -/// -/// -void SetWantedRegion( int x, int y); - /// -/// -/// -/// -void CustomPanPosAdjust( int x, int y); +void ContentMinLimit(bool w, bool h); + void SetWantedRegion(int x, int y); + void CustomPanPosAdjust(int x, int y); /// Called when content changed event EventHandler ChangedEvt; /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. @@ -628,1075 +554,1302 @@ IInterfaceScrollable , Efl.Ui.IScrollable, Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.IManager, Efl.Ui.Focus.IManagerSub { ///Pointer to the native class description. - public System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (IInterfaceScrollableConcrete)) - return Elm.IInterfaceScrollableNativeInherit.GetEflClassStatic(); + public System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IInterfaceScrollableConcrete)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } - private EventHandlerList eventHandlers = new EventHandlerList(); + + private Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)> eoEvents = new Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>(); + private readonly object eventLock = new object(); private System.IntPtr handle; ///Pointer to the native instance. - public System.IntPtr NativeHandle { + public System.IntPtr NativeHandle + { get { return handle; } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr elm_interface_scrollable_mixin_get(); - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. private IInterfaceScrollableConcrete(System.IntPtr raw) { handle = raw; - RegisterEventProxies(); } ///Destructor. ~IInterfaceScrollableConcrete() { Dispose(false); } + ///Releases the underlying native instance. - void Dispose(bool disposing) + private void Dispose(bool disposing) { - if (handle != System.IntPtr.Zero) { - Efl.Eo.Globals.efl_unref(handle); - handle = System.IntPtr.Zero; + if (handle != System.IntPtr.Zero) + { + IntPtr h = handle; + handle = IntPtr.Zero; + + IntPtr gcHandlePtr = IntPtr.Zero; + if (eoEvents.Count != 0) + { + GCHandle gcHandle = GCHandle.Alloc(eoEvents); + gcHandlePtr = GCHandle.ToIntPtr(gcHandle); + } + + if (disposing) + { + Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr); + } + else + { + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr); + } + + Monitor.Exit(Efl.All.InitLock); + } } + } + ///Releases the underlying native instance. public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - private readonly object eventLock = new object(); - private Dictionary event_cb_count = new Dictionary(); + ///Adds a new event handler, registering it to the native event. For internal use only. ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be called on event raising. - ///True if the delegate was successfully registered. - private bool AddNativeEventHandler(string lib, string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 0) { - IntPtr desc = Efl.EventDescription.GetNative(lib, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evt_delegate, System.IntPtr.Zero); - if (!result) { - Eina.Log.Error($"Failed to add event proxy for event {key}"); - return false; - } - Eina.Error.RaiseIfUnhandledException(); - } - event_cb_count[key]++; - return true; + ///Delegate to be called by native code on event raising. + ///Managed delegate that will be called by evtCaller on event raising. + private void AddNativeEventHandler(string lib, string key, Efl.EventCb evtCaller, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + } + + if (eoEvents.ContainsKey((desc, evtDelegate))) + { + Eina.Log.Warning($"Event proxy for event {key} already registered!"); + return; + } + + IntPtr evtCallerPtr = Marshal.GetFunctionPointerForDelegate(evtCaller); + if (!Efl.Eo.Globals.efl_event_callback_priority_add(handle, desc, 0, evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to add event proxy for event {key}"); + return; + } + + eoEvents[(desc, evtDelegate)] = (evtCallerPtr, evtCaller); + Eina.Error.RaiseIfUnhandledException(); } + ///Removes the given event handler for the given event. For internal use only. + ///The name of the native library definining the event. ///The name of the native event. - ///The delegate to be removed. - ///True if the delegate was successfully registered. - private bool RemoveNativeEventHandler(string key, Efl.EventCb evt_delegate) { - int event_count = 0; - if (!event_cb_count.TryGetValue(key, out event_count)) - event_cb_count[key] = event_count; - if (event_count == 1) { - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) { - Eina.Log.Error($"Failed to get native event {key}"); - return false; - } - bool result = Efl.Eo.Globals.efl_event_callback_del(handle, desc, evt_delegate, System.IntPtr.Zero); - if (!result) { + ///The delegate to be removed. + private void RemoveNativeEventHandler(string lib, string key, object evtDelegate) + { + IntPtr desc = Efl.EventDescription.GetNative(lib, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + var evtPair = (desc, evtDelegate); + if (eoEvents.TryGetValue(evtPair, out var caller)) + { + if (!Efl.Eo.Globals.efl_event_callback_del(handle, desc, caller.evtCallerPtr, IntPtr.Zero)) + { Eina.Log.Error($"Failed to remove event proxy for event {key}"); - return false; + return; } + + eoEvents.Remove(evtPair); Eina.Error.RaiseIfUnhandledException(); - } else if (event_count == 0) { - Eina.Log.Error($"Trying to remove proxy for event {key} when there is nothing registered."); - return false; - } - event_cb_count[key]--; - return true; + } + else + { + Eina.Log.Error($"Trying to remove proxy for event {key} when it is nothing registered."); + } } -private static object ChangedEvtKey = new object(); + /// Called when content changed public event EventHandler ChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ChangedEvt_delegate)) { - eventHandlers.AddHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ChangedEvt. - public void On_ChangedEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ChangedEvt_delegate; - private void on_ChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnChangedEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation starts public event EventHandler ScrollStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStartEvt. - public void On_ScrollStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStartEvt_delegate; - private void on_ScrollStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling public event EventHandler ScrollEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollEvt_delegate)) { - eventHandlers.AddHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL"; - if (RemoveNativeEventHandler(key, this.evt_ScrollEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollEvt. - public void On_ScrollEvt(EventArgs e) + public void OnScrollEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollEvt_delegate; - private void on_ScrollEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll operation stops public event EventHandler ScrollStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollStopEvt. - public void On_ScrollStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollStopEvt_delegate; - private void on_ScrollStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling upwards public event EventHandler ScrollUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.AddHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_UP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollUpEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollUpEvt. - public void On_ScrollUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollUpEvt_delegate; - private void on_ScrollUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling downwards public event EventHandler ScrollDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.AddHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDownEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDownEvt. - public void On_ScrollDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDownEvt_delegate; - private void on_ScrollDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling left public event EventHandler ScrollLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.AddHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollLeftEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollLeftEvt. - public void On_ScrollLeftEvt(EventArgs e) + public void OnScrollLeftEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollLeftEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollLeftEvt_delegate; - private void on_ScrollLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scrolling right public event EventHandler ScrollRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.AddHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_ScrollRightEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollRightEvt. - public void On_ScrollRightEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollRightEvt_delegate; - private void on_ScrollRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollRightEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeUpEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the top edge public event EventHandler EdgeUpEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_UP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.AddHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_UP"; - if (RemoveNativeEventHandler(key, this.evt_EdgeUpEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeUpEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeUpEvt. - public void On_EdgeUpEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeUpEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeUpEvt_delegate; - private void on_EdgeUpEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeUpEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeUpEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeDownEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the bottom edge public event EventHandler EdgeDownEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.AddHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_DOWN"; - if (RemoveNativeEventHandler(key, this.evt_EdgeDownEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeDownEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeDownEvt. - public void On_EdgeDownEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeDownEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeDownEvt_delegate; - private void on_EdgeDownEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeDownEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeDownEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object EdgeLeftEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the left edge public event EventHandler EdgeLeftEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.AddHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_LEFT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeLeftEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeLeftEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeLeftEvt. - public void On_EdgeLeftEvt(EventArgs e) + public void OnEdgeLeftEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeLeftEvtKey]; + var key = "_EFL_UI_EVENT_EDGE_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeLeftEvt_delegate; - private void on_EdgeLeftEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_EdgeLeftEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object EdgeRightEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when hitting the right edge public event EventHandler EdgeRightEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.AddHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - if (RemoveNativeEventHandler(key, this.evt_EdgeRightEvt_delegate)) { - eventHandlers.RemoveHandler(EdgeRightEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event EdgeRightEvt. - public void On_EdgeRightEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[EdgeRightEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_EdgeRightEvt_delegate; - private void on_EdgeRightEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnEdgeRightEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_EdgeRightEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation starts public event EventHandler ScrollAnimStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStartEvt. - public void On_ScrollAnimStartEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStartEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStartEvt_delegate; - private void on_ScrollAnimStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStartEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollAnimStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll animation stopps public event EventHandler ScrollAnimStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollAnimStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollAnimStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollAnimStopEvt. - public void On_ScrollAnimStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollAnimStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollAnimStopEvt_delegate; - private void on_ScrollAnimStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollAnimStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollAnimStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object ScrollDragStartEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag starts public event EventHandler ScrollDragStartEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStartEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStartEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStartEvt. - public void On_ScrollDragStartEvt(EventArgs e) + public void OnScrollDragStartEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStartEvtKey]; + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStartEvt_delegate; - private void on_ScrollDragStartEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStartEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ScrollDragStopEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Called when scroll drag stops public event EventHandler ScrollDragStopEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.AddHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - if (RemoveNativeEventHandler(key, this.evt_ScrollDragStopEvt_delegate)) { - eventHandlers.RemoveHandler(ScrollDragStopEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ScrollDragStopEvt. - public void On_ScrollDragStopEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ScrollDragStopEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ScrollDragStopEvt_delegate; - private void on_ScrollDragStopEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnScrollDragStopEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_ScrollDragStopEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object RedirectChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) public event EventHandler RedirectChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.AddHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_RedirectChangedEvt_delegate)) { - eventHandlers.RemoveHandler(RedirectChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event RedirectChangedEvt. - public void On_RedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[RedirectChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_RedirectChangedEvt_delegate; - private void on_RedirectChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try { - On_RedirectChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object FlushPreEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) public event EventHandler FlushPreEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.AddHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - if (RemoveNativeEventHandler(key, this.evt_FlushPreEvt_delegate)) { - eventHandlers.RemoveHandler(FlushPreEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event FlushPreEvt. - public void On_FlushPreEvt(EventArgs e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[FlushPreEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_FlushPreEvt_delegate; - private void on_FlushPreEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnFlushPreEvt(EventArgs e) { - EventArgs args = EventArgs.Empty; - try { - On_FlushPreEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object CoordsDirtyEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Cached relationship calculation results have been invalidated. /// (Since EFL 1.22) public event EventHandler CoordsDirtyEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.AddHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - if (RemoveNativeEventHandler(key, this.evt_CoordsDirtyEvt_delegate)) { - eventHandlers.RemoveHandler(CoordsDirtyEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event CoordsDirtyEvt. - public void On_CoordsDirtyEvt(EventArgs e) + public void OnCoordsDirtyEvt(EventArgs e) { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[CoordsDirtyEvtKey]; + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - evt?.Invoke(this, e); - } - Efl.EventCb evt_CoordsDirtyEvt_delegate; - private void on_CoordsDirtyEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) - { - EventArgs args = EventArgs.Empty; - try { - On_CoordsDirtyEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } -private static object ManagerFocusChangedEvtKey = new object(); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) public event EventHandler ManagerFocusChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.AddHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_ManagerFocusChangedEvt_delegate)) { - eventHandlers.RemoveHandler(ManagerFocusChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event ManagerFocusChangedEvt. - public void On_ManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[ManagerFocusChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_ManagerFocusChangedEvt_delegate; - private void on_ManagerFocusChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try { - On_ManagerFocusChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } -private static object DirtyLogicFreezeChangedEvtKey = new object(); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) public event EventHandler DirtyLogicFreezeChangedEvt { - add { - lock (eventLock) { + add + { + lock (eventLock) + { + var wRef = new WeakReference(this); + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = wRef.Target as Efl.Eo.IWrapper; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = evt.Info != IntPtr.Zero; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.AddHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error adding proxy for event {key}"); + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } - remove { - lock (eventLock) { + + remove + { + lock (eventLock) + { string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - if (RemoveNativeEventHandler(key, this.evt_DirtyLogicFreezeChangedEvt_delegate)) { - eventHandlers.RemoveHandler(DirtyLogicFreezeChangedEvtKey , value); - } else - Eina.Log.Error($"Error removing proxy for event {key}"); + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } ///Method to raise event DirtyLogicFreezeChangedEvt. - public void On_DirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) - { - EventHandler evt; - lock (eventLock) { - evt = (EventHandler)eventHandlers[DirtyLogicFreezeChangedEvtKey]; - } - evt?.Invoke(this, e); - } - Efl.EventCb evt_DirtyLogicFreezeChangedEvt_delegate; - private void on_DirtyLogicFreezeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt) + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = evt.Info != IntPtr.Zero; - try { - On_DirtyLogicFreezeChangedEvt(args); - } catch (Exception e) { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; } - } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - void RegisterEventProxies() - { - evt_ChangedEvt_delegate = new Efl.EventCb(on_ChangedEvt_NativeCallback); - evt_ScrollStartEvt_delegate = new Efl.EventCb(on_ScrollStartEvt_NativeCallback); - evt_ScrollEvt_delegate = new Efl.EventCb(on_ScrollEvt_NativeCallback); - evt_ScrollStopEvt_delegate = new Efl.EventCb(on_ScrollStopEvt_NativeCallback); - evt_ScrollUpEvt_delegate = new Efl.EventCb(on_ScrollUpEvt_NativeCallback); - evt_ScrollDownEvt_delegate = new Efl.EventCb(on_ScrollDownEvt_NativeCallback); - evt_ScrollLeftEvt_delegate = new Efl.EventCb(on_ScrollLeftEvt_NativeCallback); - evt_ScrollRightEvt_delegate = new Efl.EventCb(on_ScrollRightEvt_NativeCallback); - evt_EdgeUpEvt_delegate = new Efl.EventCb(on_EdgeUpEvt_NativeCallback); - evt_EdgeDownEvt_delegate = new Efl.EventCb(on_EdgeDownEvt_NativeCallback); - evt_EdgeLeftEvt_delegate = new Efl.EventCb(on_EdgeLeftEvt_NativeCallback); - evt_EdgeRightEvt_delegate = new Efl.EventCb(on_EdgeRightEvt_NativeCallback); - evt_ScrollAnimStartEvt_delegate = new Efl.EventCb(on_ScrollAnimStartEvt_NativeCallback); - evt_ScrollAnimStopEvt_delegate = new Efl.EventCb(on_ScrollAnimStopEvt_NativeCallback); - evt_ScrollDragStartEvt_delegate = new Efl.EventCb(on_ScrollDragStartEvt_NativeCallback); - evt_ScrollDragStopEvt_delegate = new Efl.EventCb(on_ScrollDragStopEvt_NativeCallback); - evt_RedirectChangedEvt_delegate = new Efl.EventCb(on_RedirectChangedEvt_NativeCallback); - evt_FlushPreEvt_delegate = new Efl.EventCb(on_FlushPreEvt_NativeCallback); - evt_CoordsDirtyEvt_delegate = new Efl.EventCb(on_CoordsDirtyEvt_NativeCallback); - evt_ManagerFocusChangedEvt_delegate = new Efl.EventCb(on_ManagerFocusChangedEvt_NativeCallback); - evt_DirtyLogicFreezeChangedEvt_delegate = new Efl.EventCb(on_DirtyLogicFreezeChangedEvt_NativeCallback); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Control scrolling gravity on the scrollable /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. @@ -1708,9 +1861,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - public void GetGravity( out double x, out double y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_gravity_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetGravity(out double x, out double y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_gravity_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Control scrolling gravity on the scrollable @@ -1723,41 +1875,37 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Default values for x and y are 0.0 /// Horizontal scrolling gravity /// Vertical scrolling gravity - /// - public void SetGravity( double x, double y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_gravity_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetGravity(double x, double y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_gravity_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - public void GetBounceAllow( out bool horiz, out bool vert) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate(this.NativeHandle, out horiz, out vert); + public void GetBounceAllow(out bool horiz, out bool vert) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate(this.NativeHandle,out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Bouncing behavior /// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. /// Horizontal bounce policy. /// Vertical bounce policy. - /// - public void SetBounceAllow( bool horiz, bool vert) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate(this.NativeHandle, horiz, vert); + public void SetBounceAllow(bool horiz, bool vert) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate(this.NativeHandle,horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. /// true if wheel is disabled, false otherwise public bool GetWheelDisabled() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. /// true if wheel is disabled, false otherwise - /// - public void SetWheelDisabled( bool disabled) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate(this.NativeHandle, disabled); + public void SetWheelDisabled(bool disabled) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate(this.NativeHandle,disabled); Eina.Error.RaiseIfUnhandledException(); } /// Blocking of scrolling (per axis) @@ -1766,7 +1914,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. /// Which axis (or axes) to block public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_movement_block_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_movement_block_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1775,41 +1923,37 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. /// Which axis (or axes) to block - /// - public void SetMovementBlock( Efl.Ui.ScrollBlock block) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_movement_block_set_ptr.Value.Delegate(this.NativeHandle, block); + public void SetMovementBlock(Efl.Ui.ScrollBlock block) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_movement_block_set_ptr.Value.Delegate(this.NativeHandle,block); Eina.Error.RaiseIfUnhandledException(); } /// Momentum animator /// true if disabled, false otherwise public bool GetMomentumAnimatorDisabled() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Momentum animator /// true if disabled, false otherwise - /// - public void SetMomentumAnimatorDisabled( bool disabled) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate(this.NativeHandle, disabled); + public void SetMomentumAnimatorDisabled(bool disabled) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate(this.NativeHandle,disabled); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. /// Horizontal scrollbar policy /// Vertical scrollbar policy - /// - public void GetPolicy( out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_policy_get_ptr.Value.Delegate(this.NativeHandle, out hbar, out vbar); + public void GetPolicy(out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_policy_get_ptr.Value.Delegate(this.NativeHandle,out hbar, out vbar); Eina.Error.RaiseIfUnhandledException(); } /// Scrollbar visibility policy /// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. /// Horizontal scrollbar policy /// Vertical scrollbar policy - /// - public void SetPolicy( Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_policy_set_ptr.Value.Delegate(this.NativeHandle, hbar, vbar); + public void SetPolicy(Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_policy_set_ptr.Value.Delegate(this.NativeHandle,hbar, vbar); Eina.Error.RaiseIfUnhandledException(); } /// Currently visible content region @@ -1822,9 +1966,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Y coordinate of the region /// Width of the region /// Height of the region - /// - public void GetContentRegion( out int x, out int y, out int w, out int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_region_get_ptr.Value.Delegate(this.NativeHandle, out x, out y, out w, out h); + public void GetContentRegion(out int x, out int y, out int w, out int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_get_ptr.Value.Delegate(this.NativeHandle,out x, out y, out w, out h); Eina.Error.RaiseIfUnhandledException(); } /// Currently visible content region @@ -1837,71 +1980,64 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Y coordinate of the region /// Width of the region /// Height of the region - /// - public void SetContentRegion( int x, int y, int w, int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_region_set_ptr.Value.Delegate(this.NativeHandle, x, y, w, h); + public void SetContentRegion(int x, int y, int w, int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_set_ptr.Value.Delegate(this.NativeHandle,x, y, w, h); Eina.Error.RaiseIfUnhandledException(); } /// It decides whether the scrollable object propagates the events to content object or not. /// true if events are propagated, false otherwise public bool GetContentEvents() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_events_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_events_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// It decides whether the scrollable object propagates the events to content object or not. /// true if events are propagated, false otherwise - /// - public void SetContentEvents( bool repeat_events) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_events_set_ptr.Value.Delegate(this.NativeHandle, repeat_events); + public void SetContentEvents(bool repeat_events) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_events_set_ptr.Value.Delegate(this.NativeHandle,repeat_events); Eina.Error.RaiseIfUnhandledException(); } /// Scroll page size relative to viewport size. /// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. /// The horizontal page relative size /// The vertical page relative size - /// - public void GetPageSize( out int x, out int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_size_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetPageSize(out int x, out int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_size_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Scroll page size relative to viewport size. /// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. /// The horizontal page relative size /// The vertical page relative size - /// - public void SetPageSize( int x, int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_size_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetPageSize(int x, int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_size_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Bounce animator /// true if bounce animation is disabled, false otherwise public bool GetBounceAnimatorDisabled() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Bounce animator /// true if bounce animation is disabled, false otherwise - /// - public void SetBounceAnimatorDisabled( bool disabled) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate(this.NativeHandle, disabled); + public void SetBounceAnimatorDisabled(bool disabled) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate(this.NativeHandle,disabled); Eina.Error.RaiseIfUnhandledException(); } /// Page scroll limit /// Page limit horizontal /// Page limit vertical - /// - public void GetPageScrollLimit( out int page_limit_h, out int page_limit_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate(this.NativeHandle, out page_limit_h, out page_limit_v); + public void GetPageScrollLimit(out int page_limit_h, out int page_limit_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate(this.NativeHandle,out page_limit_h, out page_limit_v); Eina.Error.RaiseIfUnhandledException(); } /// Page scroll limit /// Page limit horizontal /// Page limit vertical - /// - public void SetPageScrollLimit( int page_limit_h, int page_limit_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate(this.NativeHandle, page_limit_h, page_limit_v); + public void SetPageScrollLimit(int page_limit_h, int page_limit_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate(this.NativeHandle,page_limit_h, page_limit_v); Eina.Error.RaiseIfUnhandledException(); } /// Page snapping behavior @@ -1910,9 +2046,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Note: If obj is not set to have pages, nothing will happen after this call. /// Allow snap horizontally /// Allow snap vertically - /// - public void GetPageSnapAllow( out bool horiz, out bool vert) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate(this.NativeHandle, out horiz, out vert); + public void GetPageSnapAllow(out bool horiz, out bool vert) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate(this.NativeHandle,out horiz, out vert); Eina.Error.RaiseIfUnhandledException(); } /// Page snapping behavior @@ -1921,9 +2056,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Note: If obj is not set to have pages, nothing will happen after this call. /// Allow snap horizontally /// Allow snap vertically - /// - public void SetPageSnapAllow( bool horiz, bool vert) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate(this.NativeHandle, horiz, vert); + public void SetPageSnapAllow(bool horiz, bool vert) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate(this.NativeHandle,horiz, vert); Eina.Error.RaiseIfUnhandledException(); } /// Pagin property @@ -1931,9 +2065,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Page relation vertical /// Page size horizontal /// Page size vertical - /// - public void GetPaging( out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_paging_get_ptr.Value.Delegate(this.NativeHandle, out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); + public void GetPaging(out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_paging_get_ptr.Value.Delegate(this.NativeHandle,out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); Eina.Error.RaiseIfUnhandledException(); } /// Pagin property @@ -1941,9 +2074,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Page relation vertical /// Page size horizontal /// Page size vertical - /// - public void SetPaging( double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_paging_set_ptr.Value.Delegate(this.NativeHandle, pagerel_h, pagerel_v, pagesize_h, pagesize_v); + public void SetPaging(double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_paging_set_ptr.Value.Delegate(this.NativeHandle,pagerel_h, pagerel_v, pagesize_h, pagesize_v); Eina.Error.RaiseIfUnhandledException(); } /// Single direction scroll configuration @@ -1952,7 +2084,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. /// The single direction scroll policy public Elm.Scroller.SingleDirection GetSingleDirection() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_single_direction_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_single_direction_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -1961,253 +2093,218 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. /// The single direction scroll policy - /// - public void SetSingleDirection( Elm.Scroller.SingleDirection single_dir) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_single_direction_set_ptr.Value.Delegate(this.NativeHandle, single_dir); + public void SetSingleDirection(Elm.Scroller.SingleDirection single_dir) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_single_direction_set_ptr.Value.Delegate(this.NativeHandle,single_dir); Eina.Error.RaiseIfUnhandledException(); } /// Step size /// X coordinate /// Y coordinate - /// - public void GetStepSize( out int x, out int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_step_size_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetStepSize(out int x, out int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_step_size_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Step size /// X coordinate /// Y coordinate - /// - public void SetStepSize( int x, int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_step_size_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetStepSize(int x, int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_step_size_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The scrolling vertical loop - /// - public void GetContentLoop( out bool loop_h, out bool loop_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_loop_get_ptr.Value.Delegate(this.NativeHandle, out loop_h, out loop_v); + public void GetContentLoop(out bool loop_h, out bool loop_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_loop_get_ptr.Value.Delegate(this.NativeHandle,out loop_h, out loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Controls an infinite loop for a scroller. /// The scrolling horizontal loop /// The scrolling vertical loop - /// - public void SetContentLoop( bool loop_h, bool loop_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_loop_set_ptr.Value.Delegate(this.NativeHandle, loop_h, loop_v); + public void SetContentLoop(bool loop_h, bool loop_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_loop_set_ptr.Value.Delegate(this.NativeHandle,loop_h, loop_v); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the content has been moved up. /// The callback - /// - public void SetScrollUpCb( ElmInterfaceScrollableCb scroll_up_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate(this.NativeHandle, scroll_up_cb); + public void SetScrollUpCb(ElmInterfaceScrollableCb scroll_up_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_up_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the horizontal scrollbar is dragged. /// The callback - /// - public void SetHbarDragCb( ElmInterfaceScrollableCb hbar_drag_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate(this.NativeHandle, hbar_drag_cb); + public void SetHbarDragCb(ElmInterfaceScrollableCb hbar_drag_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate(this.NativeHandle,hbar_drag_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when dragging of the contents has started. /// The callback - /// - public void SetDragStartCb( ElmInterfaceScrollableCb drag_start_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate(this.NativeHandle, drag_start_cb); + public void SetDragStartCb(ElmInterfaceScrollableCb drag_start_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate(this.NativeHandle,drag_start_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when scrolling of the contents has started. /// The callback - /// - public void SetScrollStartCb( ElmInterfaceScrollableCb scroll_start_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate(this.NativeHandle, scroll_start_cb); + public void SetScrollStartCb(ElmInterfaceScrollableCb scroll_start_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_start_cb); Eina.Error.RaiseIfUnhandledException(); } /// Freeze property /// true if freeze, false otherwise - /// - public void SetFreeze( bool freeze) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_freeze_set_ptr.Value.Delegate(this.NativeHandle, freeze); + public void SetFreeze(bool freeze) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_freeze_set_ptr.Value.Delegate(this.NativeHandle,freeze); Eina.Error.RaiseIfUnhandledException(); } /// When the viewport is resized, the callback is called. /// The callback - /// - public void SetContentViewportResizeCb( ElmInterfaceScrollableResizeCb viewport_resize_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate(this.NativeHandle, viewport_resize_cb); + public void SetContentViewportResizeCb(ElmInterfaceScrollableResizeCb viewport_resize_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate(this.NativeHandle,viewport_resize_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the content has been moved to the left /// The callback - /// - public void SetScrollLeftCb( ElmInterfaceScrollableCb scroll_left_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate(this.NativeHandle, scroll_left_cb); + public void SetScrollLeftCb(ElmInterfaceScrollableCb scroll_left_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_left_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the vertical scrollbar is pressed. /// The callback - /// - public void SetVbarPressCb( ElmInterfaceScrollableCb vbar_press_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate(this.NativeHandle, vbar_press_cb); + public void SetVbarPressCb(ElmInterfaceScrollableCb vbar_press_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate(this.NativeHandle,vbar_press_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the horizontal scrollbar is pressed. /// The callback - /// - public void SetHbarPressCb( ElmInterfaceScrollableCb hbar_press_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate(this.NativeHandle, hbar_press_cb); + public void SetHbarPressCb(ElmInterfaceScrollableCb hbar_press_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate(this.NativeHandle,hbar_press_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the horizontal scrollbar is unpressed. /// The callback - /// - public void SetHbarUnpressCb( ElmInterfaceScrollableCb hbar_unpress_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate(this.NativeHandle, hbar_unpress_cb); + public void SetHbarUnpressCb(ElmInterfaceScrollableCb hbar_unpress_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate(this.NativeHandle,hbar_unpress_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when dragging of the contents has stopped. /// The callback - /// - public void SetDragStopCb( ElmInterfaceScrollableCb drag_stop_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate(this.NativeHandle, drag_stop_cb); + public void SetDragStopCb(ElmInterfaceScrollableCb drag_stop_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate(this.NativeHandle,drag_stop_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when scrolling of the contents has stopped. /// The callback - /// - public void SetScrollStopCb( ElmInterfaceScrollableCb scroll_stop_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate(this.NativeHandle, scroll_stop_cb); + public void SetScrollStopCb(ElmInterfaceScrollableCb scroll_stop_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_stop_cb); Eina.Error.RaiseIfUnhandledException(); } /// Extern pan /// Pan object - /// - public void SetExternPan( Efl.Canvas.Object pan) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate(this.NativeHandle, pan); + public void SetExternPan(Efl.Canvas.Object pan) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate(this.NativeHandle,pan); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the visible page changes. /// The callback - /// - public void SetPageChangeCb( ElmInterfaceScrollableCb page_change_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate(this.NativeHandle, page_change_cb); + public void SetPageChangeCb(ElmInterfaceScrollableCb page_change_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate(this.NativeHandle,page_change_cb); Eina.Error.RaiseIfUnhandledException(); } /// Hold property /// true if hold, false otherwise - /// - public void SetHold( bool hold) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_hold_set_ptr.Value.Delegate(this.NativeHandle, hold); + public void SetHold(bool hold) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hold_set_ptr.Value.Delegate(this.NativeHandle,hold); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the scrolling animation has started. /// The callback - /// - public void SetAnimateStartCb( ElmInterfaceScrollableCb animate_start_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate(this.NativeHandle, animate_start_cb); + public void SetAnimateStartCb(ElmInterfaceScrollableCb animate_start_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate(this.NativeHandle,animate_start_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the content has been moved down. /// The callback - /// - public void SetScrollDownCb( ElmInterfaceScrollableCb scroll_down_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate(this.NativeHandle, scroll_down_cb); + public void SetScrollDownCb(ElmInterfaceScrollableCb scroll_down_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_down_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set scroll page size relative to viewport size. /// Page relation horizontal /// Page relation vertical - /// - public void SetPageRelative( double h_pagerel, double v_pagerel) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_relative_set_ptr.Value.Delegate(this.NativeHandle, h_pagerel, v_pagerel); + public void SetPageRelative(double h_pagerel, double v_pagerel) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_relative_set_ptr.Value.Delegate(this.NativeHandle,h_pagerel, v_pagerel); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the content has been moved. /// The callback - /// - public void SetScrollCb( ElmInterfaceScrollableCb scroll_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate(this.NativeHandle, scroll_cb); + public void SetScrollCb(ElmInterfaceScrollableCb scroll_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the scrolling animation has stopped. /// The callback - /// - public void SetAnimateStopCb( ElmInterfaceScrollableCb animate_stop_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate(this.NativeHandle, animate_stop_cb); + public void SetAnimateStopCb(ElmInterfaceScrollableCb animate_stop_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate(this.NativeHandle,animate_stop_cb); Eina.Error.RaiseIfUnhandledException(); } /// set the callback to run on minimal limit content /// The callback - /// - public void SetContentMinLimitCb( ElmInterfaceScrollableMinLimitCb min_limit_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate(this.NativeHandle, min_limit_cb); + public void SetContentMinLimitCb(ElmInterfaceScrollableMinLimitCb min_limit_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate(this.NativeHandle,min_limit_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the content has been moved to the right. /// The callback - /// - public void SetScrollRightCb( ElmInterfaceScrollableCb scroll_right_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate(this.NativeHandle, scroll_right_cb); + public void SetScrollRightCb(ElmInterfaceScrollableCb scroll_right_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_right_cb); Eina.Error.RaiseIfUnhandledException(); } /// Content property /// Content object - /// - public void SetScrollableContent( Efl.Canvas.Object content) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_set_ptr.Value.Delegate(this.NativeHandle, content); + public void SetScrollableContent(Efl.Canvas.Object content) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_set_ptr.Value.Delegate(this.NativeHandle,content); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the left edge of the content has been reached. /// The callback - /// - public void SetEdgeLeftCb( ElmInterfaceScrollableCb edge_left_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate(this.NativeHandle, edge_left_cb); + public void SetEdgeLeftCb(ElmInterfaceScrollableCb edge_left_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate(this.NativeHandle,edge_left_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the horizontal scrollbar is dragged. /// The callback - /// - public void SetVbarDragCb( ElmInterfaceScrollableCb vbar_drag_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate(this.NativeHandle, vbar_drag_cb); + public void SetVbarDragCb(ElmInterfaceScrollableCb vbar_drag_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate(this.NativeHandle,vbar_drag_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the horizontal scrollbar is unpressed. /// The callback - /// - public void SetVbarUnpressCb( ElmInterfaceScrollableCb vbar_unpress_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate(this.NativeHandle, vbar_unpress_cb); + public void SetVbarUnpressCb(ElmInterfaceScrollableCb vbar_unpress_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate(this.NativeHandle,vbar_unpress_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the bottom edge of the content has been reached. /// The callback - /// - public void SetEdgeBottomCb( ElmInterfaceScrollableCb edge_bottom_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate(this.NativeHandle, edge_bottom_cb); + public void SetEdgeBottomCb(ElmInterfaceScrollableCb edge_bottom_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate(this.NativeHandle,edge_bottom_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the right edge of the content has been reached. /// The callback - /// - public void SetEdgeRightCb( ElmInterfaceScrollableCb edge_right_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate(this.NativeHandle, edge_right_cb); + public void SetEdgeRightCb(ElmInterfaceScrollableCb edge_right_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate(this.NativeHandle,edge_right_cb); Eina.Error.RaiseIfUnhandledException(); } /// Set the callback to run when the top edge of the content has been reached. /// The callback - /// - public void SetEdgeTopCb( ElmInterfaceScrollableCb edge_top_cb) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate(this.NativeHandle, edge_top_cb); + public void SetEdgeTopCb(ElmInterfaceScrollableCb edge_top_cb) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate(this.NativeHandle,edge_top_cb); Eina.Error.RaiseIfUnhandledException(); } /// Object property /// Edje object /// Evas object - /// - public void SetObjects( Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_objects_set_ptr.Value.Delegate(this.NativeHandle, edje_object, hit_rectangle); + public void SetObjects(Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_objects_set_ptr.Value.Delegate(this.NativeHandle,edje_object, hit_rectangle); Eina.Error.RaiseIfUnhandledException(); } /// Get scroll last page number. @@ -2216,9 +2313,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// See: , and . /// The horizontal page number /// The vertical page number - /// - public void GetLastPage( out int pagenumber_h, out int pagenumber_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_last_page_get_ptr.Value.Delegate(this.NativeHandle, out pagenumber_h, out pagenumber_v); + public void GetLastPage(out int pagenumber_h, out int pagenumber_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_last_page_get_ptr.Value.Delegate(this.NativeHandle,out pagenumber_h, out pagenumber_v); Eina.Error.RaiseIfUnhandledException(); } /// Get scroll current page number. @@ -2227,9 +2323,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// See: , and . /// The horizontal page number /// The vertical page number - /// - public void GetCurrentPage( out int pagenumber_h, out int pagenumber_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_current_page_get_ptr.Value.Delegate(this.NativeHandle, out pagenumber_h, out pagenumber_v); + public void GetCurrentPage(out int pagenumber_h, out int pagenumber_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_current_page_get_ptr.Value.Delegate(this.NativeHandle,out pagenumber_h, out pagenumber_v); Eina.Error.RaiseIfUnhandledException(); } /// Content viewport geometry @@ -2237,49 +2332,44 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Y coordinate /// Width /// Height - /// - public void GetContentViewportGeometry( out int x, out int y, out int w, out int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate(this.NativeHandle, out x, out y, out w, out h); + public void GetContentViewportGeometry(out int x, out int y, out int w, out int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate(this.NativeHandle,out x, out y, out w, out h); Eina.Error.RaiseIfUnhandledException(); } /// Get the size of the content object /// This gets the size of the content object of the scroller. /// Width of the content object. /// Height of the content object. - /// - public void GetContentSize( out int w, out int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_size_get_ptr.Value.Delegate(this.NativeHandle, out w, out h); + public void GetContentSize(out int w, out int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_size_get_ptr.Value.Delegate(this.NativeHandle,out w, out h); Eina.Error.RaiseIfUnhandledException(); } /// Whether scrolling should loop around. /// True to enable looping. public bool GetItemLoopEnabled() { - var _ret_var = Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Whether scrolling should loop around. /// True to enable looping. - /// - public void SetItemLoopEnabled( bool enable) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate(this.NativeHandle, enable); + public void SetItemLoopEnabled(bool enable) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate(this.NativeHandle,enable); Eina.Error.RaiseIfUnhandledException(); } /// Set the content position /// X coordinate /// Y coordinate /// Send signals to the theme corresponding to the scroll direction, or if an edge was reached. - /// - public void SetContentPos( int x, int y, bool sig) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_pos_set_ptr.Value.Delegate(this.NativeHandle, x, y, sig); + public void SetContentPos(int x, int y, bool sig) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_pos_set_ptr.Value.Delegate(this.NativeHandle,x, y, sig); Eina.Error.RaiseIfUnhandledException(); } /// Get content position /// X coordinate /// Y coordinate - /// - public void GetContentPos( out int x, out int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_pos_get_ptr.Value.Delegate(this.NativeHandle, out x, out y); + public void GetContentPos(out int x, out int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_pos_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object by page number. @@ -2288,9 +2378,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// See . /// The horizontal page number /// The vertical page number - /// - public void ShowPage( int pagenumber_h, int pagenumber_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_show_ptr.Value.Delegate(this.NativeHandle, pagenumber_h, pagenumber_v); + public void ShowPage(int pagenumber_h, int pagenumber_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_show_ptr.Value.Delegate(this.NativeHandle,pagenumber_h, pagenumber_v); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object. @@ -2301,9 +2390,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Y coordinate of the region /// Width of the region /// Height of the region - /// - public void RegionBringIn( int x, int y, int w, int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_region_bring_in_ptr.Value.Delegate(this.NativeHandle, x, y, w, h); + public void RegionBringIn(int x, int y, int w, int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_region_bring_in_ptr.Value.Delegate(this.NativeHandle,x, y, w, h); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object by page number. @@ -2312,9 +2400,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// /// The horizontal page number /// The vertical page number - /// - public void PageBringIn( int pagenumber_h, int pagenumber_v) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_page_bring_in_ptr.Value.Delegate(this.NativeHandle, pagenumber_h, pagenumber_v); + public void PageBringIn(int pagenumber_h, int pagenumber_v) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_bring_in_ptr.Value.Delegate(this.NativeHandle,pagenumber_h, pagenumber_v); Eina.Error.RaiseIfUnhandledException(); } /// Show a specific virtual region within the scroller content object @@ -2323,36 +2410,26 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Y coordinate of the region /// Width of the region /// Height of the region - /// - public void ShowContentRegion( int x, int y, int w, int h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_region_show_ptr.Value.Delegate(this.NativeHandle, x, y, w, h); + public void ShowContentRegion(int x, int y, int w, int h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_show_ptr.Value.Delegate(this.NativeHandle,x, y, w, h); Eina.Error.RaiseIfUnhandledException(); } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. /// Whether to limit the minimum horizontal size /// Whether to limit the minimum vertical size - /// - public void ContentMinLimit( bool w, bool h) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_content_min_limit_ptr.Value.Delegate(this.NativeHandle, w, h); + public void ContentMinLimit(bool w, bool h) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_min_limit_ptr.Value.Delegate(this.NativeHandle,w, h); Eina.Error.RaiseIfUnhandledException(); } - /// - /// - /// - /// - public void SetWantedRegion( int x, int y) { - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate(this.NativeHandle, x, y); + public void SetWantedRegion(int x, int y) { + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } - /// - /// - /// - /// - public void CustomPanPosAdjust( int x, int y) { + public void CustomPanPosAdjust(int x, int y) { var _in_x = Eina.PrimitiveConversion.ManagedToPointerAlloc(x); var _in_y = Eina.PrimitiveConversion.ManagedToPointerAlloc(y); - Elm.IInterfaceScrollableNativeInherit.elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate(this.NativeHandle, _in_x, _in_y); + Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate(this.NativeHandle,_in_x, _in_y); Eina.Error.RaiseIfUnhandledException(); } /// If the widget needs a focus manager, this function will be called. @@ -2360,8 +2437,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The logical root object for focus. /// The focus manager. - public Efl.Ui.Focus.IManager FocusManagerCreate( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.IWidgetFocusManagerNativeInherit.efl_ui_widget_focus_manager_create_ptr.Value.Delegate(this.NativeHandle, root); + public Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods.efl_ui_widget_focus_manager_create_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2370,7 +2447,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Currently focused element. public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2378,9 +2455,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. - /// - public void SetManagerFocus( Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle, focus); + public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle,focus); Eina.Error.RaiseIfUnhandledException(); } /// Add another manager to serve the move requests. @@ -2388,7 +2464,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The redirect manager. public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2396,9 +2472,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. - /// - public void SetRedirect( Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle, redirect); + public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle,redirect); Eina.Error.RaiseIfUnhandledException(); } /// The list of elements which are at the border of the graph. @@ -2406,7 +2481,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// An iterator over the border objects. public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -2415,9 +2490,9 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The rectangle defining the viewport. /// The list of border objects. - public Eina.Iterator GetViewportElements( Eina.Rect viewport) { + public Eina.Iterator GetViewportElements(Eina.Rect viewport) { Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle, _in_viewport); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle,_in_viewport); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, false, false); } @@ -2426,7 +2501,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2435,8 +2510,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Will be registered into this manager object. /// If true, this is the root node - public bool SetRoot( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle, root); + public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2445,8 +2520,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction to move to. /// The element which is now focused. - public Efl.Ui.Focus.IObject Move( Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle, direction); + public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle,direction); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2456,8 +2531,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The child to move from. Pass null to indicate the currently focused child. /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. /// Object that would receive focus if moved in the given direction. - public Efl.Ui.Focus.IObject MoveRequest( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle, direction, child, logical); + public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle,direction, child, logical); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2466,8 +2541,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Parent for returned child. /// Child of passed parameter. - public Efl.Ui.Focus.IObject RequestSubchild( Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle, root); + public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle,root); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -2476,8 +2551,8 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The child object to inspect. /// The list of relations starting from child. - public Efl.Ui.Focus.Relations Fetch( Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle, child); + public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle,child); Eina.Error.RaiseIfUnhandledException(); var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); Marshal.FreeHGlobal(_ret_var); @@ -2488,24 +2563,22 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// Last object. public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle); + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. /// You should focus another element immediately after calling this, in order to always have a focused object. /// (Since EFL 1.22) - /// public void ResetHistory() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Remove the uppermost history element, and focus the previous one. /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. /// (Since EFL 1.22) - /// public void PopHistoryStack() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Called when this manager is set as redirect. @@ -2513,32 +2586,29 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// (Since EFL 1.22) /// The direction in which this should be setup. /// The object that caused this manager to be redirect. - /// - public void SetupOnFirstTouch( Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle, direction, entry); + public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle,direction, entry); Eina.Error.RaiseIfUnhandledException(); } /// This disables the cache invalidation when an object is moved. /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. /// (Since EFL 1.22) - /// public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// This enables the cache invalidation when an object is moved. /// This is the counterpart to . /// (Since EFL 1.22) - /// public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerNativeInherit.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle); + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. /// true if wheel is disabled, false otherwise public bool WheelDisabled { get { return GetWheelDisabled(); } - set { SetWheelDisabled( value); } + set { SetWheelDisabled(value); } } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. @@ -2547,25 +2617,25 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Which axis (or axes) to block public Efl.Ui.ScrollBlock MovementBlock { get { return GetMovementBlock(); } - set { SetMovementBlock( value); } + set { SetMovementBlock(value); } } /// Momentum animator /// true if disabled, false otherwise public bool MomentumAnimatorDisabled { get { return GetMomentumAnimatorDisabled(); } - set { SetMomentumAnimatorDisabled( value); } + set { SetMomentumAnimatorDisabled(value); } } /// It decides whether the scrollable object propagates the events to content object or not. /// true if events are propagated, false otherwise public bool ContentEvents { get { return GetContentEvents(); } - set { SetContentEvents( value); } + set { SetContentEvents(value); } } /// Bounce animator /// true if bounce animation is disabled, false otherwise public bool BounceAnimatorDisabled { get { return GetBounceAnimatorDisabled(); } - set { SetBounceAnimatorDisabled( value); } + set { SetBounceAnimatorDisabled(value); } } /// Single direction scroll configuration /// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. @@ -2574,153 +2644,153 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The single direction scroll policy public Elm.Scroller.SingleDirection SingleDirection { get { return GetSingleDirection(); } - set { SetSingleDirection( value); } + set { SetSingleDirection(value); } } /// Set the callback to run when the content has been moved up. /// The callback public ElmInterfaceScrollableCb ScrollUpCb { - set { SetScrollUpCb( value); } + set { SetScrollUpCb(value); } } /// Set the callback to run when the horizontal scrollbar is dragged. /// The callback public ElmInterfaceScrollableCb HbarDragCb { - set { SetHbarDragCb( value); } + set { SetHbarDragCb(value); } } /// Set the callback to run when dragging of the contents has started. /// The callback public ElmInterfaceScrollableCb DragStartCb { - set { SetDragStartCb( value); } + set { SetDragStartCb(value); } } /// Set the callback to run when scrolling of the contents has started. /// The callback public ElmInterfaceScrollableCb ScrollStartCb { - set { SetScrollStartCb( value); } + set { SetScrollStartCb(value); } } /// Freeze property /// true if freeze, false otherwise public bool Freeze { - set { SetFreeze( value); } + set { SetFreeze(value); } } /// When the viewport is resized, the callback is called. /// The callback public ElmInterfaceScrollableResizeCb ContentViewportResizeCb { - set { SetContentViewportResizeCb( value); } + set { SetContentViewportResizeCb(value); } } /// Set the callback to run when the content has been moved to the left /// The callback public ElmInterfaceScrollableCb ScrollLeftCb { - set { SetScrollLeftCb( value); } + set { SetScrollLeftCb(value); } } /// Set the callback to run when the vertical scrollbar is pressed. /// The callback public ElmInterfaceScrollableCb VbarPressCb { - set { SetVbarPressCb( value); } + set { SetVbarPressCb(value); } } /// Set the callback to run when the horizontal scrollbar is pressed. /// The callback public ElmInterfaceScrollableCb HbarPressCb { - set { SetHbarPressCb( value); } + set { SetHbarPressCb(value); } } /// Set the callback to run when the horizontal scrollbar is unpressed. /// The callback public ElmInterfaceScrollableCb HbarUnpressCb { - set { SetHbarUnpressCb( value); } + set { SetHbarUnpressCb(value); } } /// Set the callback to run when dragging of the contents has stopped. /// The callback public ElmInterfaceScrollableCb DragStopCb { - set { SetDragStopCb( value); } + set { SetDragStopCb(value); } } /// Set the callback to run when scrolling of the contents has stopped. /// The callback public ElmInterfaceScrollableCb ScrollStopCb { - set { SetScrollStopCb( value); } + set { SetScrollStopCb(value); } } /// Extern pan /// Pan object public Efl.Canvas.Object ExternPan { - set { SetExternPan( value); } + set { SetExternPan(value); } } /// Set the callback to run when the visible page changes. /// The callback public ElmInterfaceScrollableCb PageChangeCb { - set { SetPageChangeCb( value); } + set { SetPageChangeCb(value); } } /// Hold property /// true if hold, false otherwise public bool Hold { - set { SetHold( value); } + set { SetHold(value); } } /// Set the callback to run when the scrolling animation has started. /// The callback public ElmInterfaceScrollableCb AnimateStartCb { - set { SetAnimateStartCb( value); } + set { SetAnimateStartCb(value); } } /// Set the callback to run when the content has been moved down. /// The callback public ElmInterfaceScrollableCb ScrollDownCb { - set { SetScrollDownCb( value); } + set { SetScrollDownCb(value); } } /// Set the callback to run when the content has been moved. /// The callback public ElmInterfaceScrollableCb ScrollCb { - set { SetScrollCb( value); } + set { SetScrollCb(value); } } /// Set the callback to run when the scrolling animation has stopped. /// The callback public ElmInterfaceScrollableCb AnimateStopCb { - set { SetAnimateStopCb( value); } + set { SetAnimateStopCb(value); } } /// set the callback to run on minimal limit content /// The callback public ElmInterfaceScrollableMinLimitCb ContentMinLimitCb { - set { SetContentMinLimitCb( value); } + set { SetContentMinLimitCb(value); } } /// Set the callback to run when the content has been moved to the right. /// The callback public ElmInterfaceScrollableCb ScrollRightCb { - set { SetScrollRightCb( value); } + set { SetScrollRightCb(value); } } /// Content property /// Content object public Efl.Canvas.Object ScrollableContent { - set { SetScrollableContent( value); } + set { SetScrollableContent(value); } } /// Set the callback to run when the left edge of the content has been reached. /// The callback public ElmInterfaceScrollableCb EdgeLeftCb { - set { SetEdgeLeftCb( value); } + set { SetEdgeLeftCb(value); } } /// Set the callback to run when the horizontal scrollbar is dragged. /// The callback public ElmInterfaceScrollableCb VbarDragCb { - set { SetVbarDragCb( value); } + set { SetVbarDragCb(value); } } /// Set the callback to run when the horizontal scrollbar is unpressed. /// The callback public ElmInterfaceScrollableCb VbarUnpressCb { - set { SetVbarUnpressCb( value); } + set { SetVbarUnpressCb(value); } } /// Set the callback to run when the bottom edge of the content has been reached. /// The callback public ElmInterfaceScrollableCb EdgeBottomCb { - set { SetEdgeBottomCb( value); } + set { SetEdgeBottomCb(value); } } /// Set the callback to run when the right edge of the content has been reached. /// The callback public ElmInterfaceScrollableCb EdgeRightCb { - set { SetEdgeRightCb( value); } + set { SetEdgeRightCb(value); } } /// Set the callback to run when the top edge of the content has been reached. /// The callback public ElmInterfaceScrollableCb EdgeTopCb { - set { SetEdgeTopCb( value); } + set { SetEdgeTopCb(value); } } /// Whether scrolling should loop around. /// True to enable looping. public bool ItemLoopEnabled { get { return GetItemLoopEnabled(); } - set { SetItemLoopEnabled( value); } + set { SetItemLoopEnabled(value); } } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. @@ -2728,7 +2798,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Currently focused element. public Efl.Ui.Focus.IObject ManagerFocus { get { return GetManagerFocus(); } - set { SetManagerFocus( value); } + set { SetManagerFocus(value); } } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. @@ -2736,7 +2806,7 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// The redirect manager. public Efl.Ui.Focus.IManager Redirect { get { return GetRedirect(); } - set { SetRedirect( value); } + set { SetRedirect(value); } } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See @@ -2751,2742 +2821,4387 @@ private static object DirtyLogicFreezeChangedEvtKey = new object(); /// Will be registered into this manager object. public Efl.Ui.Focus.IObject Root { get { return GetRoot(); } - set { SetRoot( value); } + set { SetRoot(value); } } private static IntPtr GetEflClassStatic() { return Elm.IInterfaceScrollableConcrete.elm_interface_scrollable_mixin_get(); } -} -public class IInterfaceScrollableNativeInherit : Efl.Eo.NativeClass{ - public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - 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 (elm_interface_scrollable_gravity_get_static_delegate == null) - elm_interface_scrollable_gravity_get_static_delegate = new elm_interface_scrollable_gravity_get_delegate(gravity_get); - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_get_static_delegate)}); - if (elm_interface_scrollable_gravity_set_static_delegate == null) - elm_interface_scrollable_gravity_set_static_delegate = new elm_interface_scrollable_gravity_set_delegate(gravity_set); - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_set_static_delegate)}); - if (elm_interface_scrollable_bounce_allow_get_static_delegate == null) - elm_interface_scrollable_bounce_allow_get_static_delegate = new elm_interface_scrollable_bounce_allow_get_delegate(bounce_allow_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounceAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_bounce_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_get_static_delegate)}); - if (elm_interface_scrollable_bounce_allow_set_static_delegate == null) - elm_interface_scrollable_bounce_allow_set_static_delegate = new elm_interface_scrollable_bounce_allow_set_delegate(bounce_allow_set); - if (methods.FirstOrDefault(m => m.Name == "SetBounceAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_bounce_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_set_static_delegate)}); - if (elm_interface_scrollable_wheel_disabled_get_static_delegate == null) - elm_interface_scrollable_wheel_disabled_get_static_delegate = new elm_interface_scrollable_wheel_disabled_get_delegate(wheel_disabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetWheelDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_wheel_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_get_static_delegate)}); - if (elm_interface_scrollable_wheel_disabled_set_static_delegate == null) - elm_interface_scrollable_wheel_disabled_set_static_delegate = new elm_interface_scrollable_wheel_disabled_set_delegate(wheel_disabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetWheelDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_wheel_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_set_static_delegate)}); - if (elm_interface_scrollable_movement_block_get_static_delegate == null) - elm_interface_scrollable_movement_block_get_static_delegate = new elm_interface_scrollable_movement_block_get_delegate(movement_block_get); - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_get_static_delegate)}); - if (elm_interface_scrollable_movement_block_set_static_delegate == null) - elm_interface_scrollable_movement_block_set_static_delegate = new elm_interface_scrollable_movement_block_set_delegate(movement_block_set); - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_set_static_delegate)}); - if (elm_interface_scrollable_momentum_animator_disabled_get_static_delegate == null) - elm_interface_scrollable_momentum_animator_disabled_get_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_get_delegate(momentum_animator_disabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetMomentumAnimatorDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_momentum_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_get_static_delegate)}); - if (elm_interface_scrollable_momentum_animator_disabled_set_static_delegate == null) - elm_interface_scrollable_momentum_animator_disabled_set_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_set_delegate(momentum_animator_disabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetMomentumAnimatorDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_momentum_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_set_static_delegate)}); - if (elm_interface_scrollable_policy_get_static_delegate == null) - elm_interface_scrollable_policy_get_static_delegate = new elm_interface_scrollable_policy_get_delegate(policy_get); - if (methods.FirstOrDefault(m => m.Name == "GetPolicy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_policy_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_get_static_delegate)}); - if (elm_interface_scrollable_policy_set_static_delegate == null) - elm_interface_scrollable_policy_set_static_delegate = new elm_interface_scrollable_policy_set_delegate(policy_set); - if (methods.FirstOrDefault(m => m.Name == "SetPolicy") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_policy_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_set_static_delegate)}); - if (elm_interface_scrollable_content_region_get_static_delegate == null) - elm_interface_scrollable_content_region_get_static_delegate = new elm_interface_scrollable_content_region_get_delegate(content_region_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_region_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_get_static_delegate)}); - if (elm_interface_scrollable_content_region_set_static_delegate == null) - elm_interface_scrollable_content_region_set_static_delegate = new elm_interface_scrollable_content_region_set_delegate(content_region_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_set_static_delegate)}); - if (elm_interface_scrollable_content_events_get_static_delegate == null) - elm_interface_scrollable_content_events_get_static_delegate = new elm_interface_scrollable_content_events_get_delegate(content_events_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_events_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_get_static_delegate)}); - if (elm_interface_scrollable_content_events_set_static_delegate == null) - elm_interface_scrollable_content_events_set_static_delegate = new elm_interface_scrollable_content_events_set_delegate(content_events_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentEvents") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_events_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_set_static_delegate)}); - if (elm_interface_scrollable_page_size_get_static_delegate == null) - elm_interface_scrollable_page_size_get_static_delegate = new elm_interface_scrollable_page_size_get_delegate(page_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetPageSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_get_static_delegate)}); - if (elm_interface_scrollable_page_size_set_static_delegate == null) - elm_interface_scrollable_page_size_set_static_delegate = new elm_interface_scrollable_page_size_set_delegate(page_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetPageSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_set_static_delegate)}); - if (elm_interface_scrollable_bounce_animator_disabled_get_static_delegate == null) - elm_interface_scrollable_bounce_animator_disabled_get_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_get_delegate(bounce_animator_disabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetBounceAnimatorDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_bounce_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_get_static_delegate)}); - if (elm_interface_scrollable_bounce_animator_disabled_set_static_delegate == null) - elm_interface_scrollable_bounce_animator_disabled_set_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_set_delegate(bounce_animator_disabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetBounceAnimatorDisabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_bounce_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_set_static_delegate)}); - if (elm_interface_scrollable_page_scroll_limit_get_static_delegate == null) - elm_interface_scrollable_page_scroll_limit_get_static_delegate = new elm_interface_scrollable_page_scroll_limit_get_delegate(page_scroll_limit_get); - if (methods.FirstOrDefault(m => m.Name == "GetPageScrollLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_scroll_limit_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_get_static_delegate)}); - if (elm_interface_scrollable_page_scroll_limit_set_static_delegate == null) - elm_interface_scrollable_page_scroll_limit_set_static_delegate = new elm_interface_scrollable_page_scroll_limit_set_delegate(page_scroll_limit_set); - if (methods.FirstOrDefault(m => m.Name == "SetPageScrollLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_scroll_limit_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_set_static_delegate)}); - if (elm_interface_scrollable_page_snap_allow_get_static_delegate == null) - elm_interface_scrollable_page_snap_allow_get_static_delegate = new elm_interface_scrollable_page_snap_allow_get_delegate(page_snap_allow_get); - if (methods.FirstOrDefault(m => m.Name == "GetPageSnapAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_snap_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_get_static_delegate)}); - if (elm_interface_scrollable_page_snap_allow_set_static_delegate == null) - elm_interface_scrollable_page_snap_allow_set_static_delegate = new elm_interface_scrollable_page_snap_allow_set_delegate(page_snap_allow_set); - if (methods.FirstOrDefault(m => m.Name == "SetPageSnapAllow") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_snap_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_set_static_delegate)}); - if (elm_interface_scrollable_paging_get_static_delegate == null) - elm_interface_scrollable_paging_get_static_delegate = new elm_interface_scrollable_paging_get_delegate(paging_get); - if (methods.FirstOrDefault(m => m.Name == "GetPaging") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_paging_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_get_static_delegate)}); - if (elm_interface_scrollable_paging_set_static_delegate == null) - elm_interface_scrollable_paging_set_static_delegate = new elm_interface_scrollable_paging_set_delegate(paging_set); - if (methods.FirstOrDefault(m => m.Name == "SetPaging") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_paging_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_set_static_delegate)}); - if (elm_interface_scrollable_single_direction_get_static_delegate == null) - elm_interface_scrollable_single_direction_get_static_delegate = new elm_interface_scrollable_single_direction_get_delegate(single_direction_get); - if (methods.FirstOrDefault(m => m.Name == "GetSingleDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_single_direction_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_get_static_delegate)}); - if (elm_interface_scrollable_single_direction_set_static_delegate == null) - elm_interface_scrollable_single_direction_set_static_delegate = new elm_interface_scrollable_single_direction_set_delegate(single_direction_set); - if (methods.FirstOrDefault(m => m.Name == "SetSingleDirection") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_single_direction_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_set_static_delegate)}); - if (elm_interface_scrollable_step_size_get_static_delegate == null) - elm_interface_scrollable_step_size_get_static_delegate = new elm_interface_scrollable_step_size_get_delegate(step_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_get_static_delegate)}); - if (elm_interface_scrollable_step_size_set_static_delegate == null) - elm_interface_scrollable_step_size_set_static_delegate = new elm_interface_scrollable_step_size_set_delegate(step_size_set); - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_set_static_delegate)}); - if (elm_interface_scrollable_content_loop_get_static_delegate == null) - elm_interface_scrollable_content_loop_get_static_delegate = new elm_interface_scrollable_content_loop_get_delegate(content_loop_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentLoop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_loop_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_get_static_delegate)}); - if (elm_interface_scrollable_content_loop_set_static_delegate == null) - elm_interface_scrollable_content_loop_set_static_delegate = new elm_interface_scrollable_content_loop_set_delegate(content_loop_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentLoop") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_loop_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_set_static_delegate)}); - if (elm_interface_scrollable_scroll_up_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_up_cb_set_static_delegate = new elm_interface_scrollable_scroll_up_cb_set_delegate(scroll_up_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollUpCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_up_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_up_cb_set_static_delegate)}); - if (elm_interface_scrollable_hbar_drag_cb_set_static_delegate == null) - elm_interface_scrollable_hbar_drag_cb_set_static_delegate = new elm_interface_scrollable_hbar_drag_cb_set_delegate(hbar_drag_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetHbarDragCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_hbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_drag_cb_set_static_delegate)}); - if (elm_interface_scrollable_drag_start_cb_set_static_delegate == null) - elm_interface_scrollable_drag_start_cb_set_static_delegate = new elm_interface_scrollable_drag_start_cb_set_delegate(drag_start_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetDragStartCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_drag_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_start_cb_set_static_delegate)}); - if (elm_interface_scrollable_scroll_start_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_start_cb_set_static_delegate = new elm_interface_scrollable_scroll_start_cb_set_delegate(scroll_start_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollStartCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_start_cb_set_static_delegate)}); - if (elm_interface_scrollable_freeze_set_static_delegate == null) - elm_interface_scrollable_freeze_set_static_delegate = new elm_interface_scrollable_freeze_set_delegate(freeze_set); - if (methods.FirstOrDefault(m => m.Name == "SetFreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_freeze_set_static_delegate)}); - if (elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate == null) - elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate = new elm_interface_scrollable_content_viewport_resize_cb_set_delegate(content_viewport_resize_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentViewportResizeCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_viewport_resize_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate)}); - if (elm_interface_scrollable_scroll_left_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_left_cb_set_static_delegate = new elm_interface_scrollable_scroll_left_cb_set_delegate(scroll_left_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollLeftCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_left_cb_set_static_delegate)}); - if (elm_interface_scrollable_vbar_press_cb_set_static_delegate == null) - elm_interface_scrollable_vbar_press_cb_set_static_delegate = new elm_interface_scrollable_vbar_press_cb_set_delegate(vbar_press_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetVbarPressCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_vbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_press_cb_set_static_delegate)}); - if (elm_interface_scrollable_hbar_press_cb_set_static_delegate == null) - elm_interface_scrollable_hbar_press_cb_set_static_delegate = new elm_interface_scrollable_hbar_press_cb_set_delegate(hbar_press_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetHbarPressCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_hbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_press_cb_set_static_delegate)}); - if (elm_interface_scrollable_hbar_unpress_cb_set_static_delegate == null) - elm_interface_scrollable_hbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_hbar_unpress_cb_set_delegate(hbar_unpress_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetHbarUnpressCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_hbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_unpress_cb_set_static_delegate)}); - if (elm_interface_scrollable_drag_stop_cb_set_static_delegate == null) - elm_interface_scrollable_drag_stop_cb_set_static_delegate = new elm_interface_scrollable_drag_stop_cb_set_delegate(drag_stop_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetDragStopCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_drag_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_stop_cb_set_static_delegate)}); - if (elm_interface_scrollable_scroll_stop_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_stop_cb_set_static_delegate = new elm_interface_scrollable_scroll_stop_cb_set_delegate(scroll_stop_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollStopCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_stop_cb_set_static_delegate)}); - if (elm_interface_scrollable_extern_pan_set_static_delegate == null) - elm_interface_scrollable_extern_pan_set_static_delegate = new elm_interface_scrollable_extern_pan_set_delegate(extern_pan_set); - if (methods.FirstOrDefault(m => m.Name == "SetExternPan") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_extern_pan_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_extern_pan_set_static_delegate)}); - if (elm_interface_scrollable_page_change_cb_set_static_delegate == null) - elm_interface_scrollable_page_change_cb_set_static_delegate = new elm_interface_scrollable_page_change_cb_set_delegate(page_change_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetPageChangeCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_change_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_change_cb_set_static_delegate)}); - if (elm_interface_scrollable_hold_set_static_delegate == null) - elm_interface_scrollable_hold_set_static_delegate = new elm_interface_scrollable_hold_set_delegate(hold_set); - if (methods.FirstOrDefault(m => m.Name == "SetHold") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_hold_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hold_set_static_delegate)}); - if (elm_interface_scrollable_animate_start_cb_set_static_delegate == null) - elm_interface_scrollable_animate_start_cb_set_static_delegate = new elm_interface_scrollable_animate_start_cb_set_delegate(animate_start_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetAnimateStartCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_animate_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_start_cb_set_static_delegate)}); - if (elm_interface_scrollable_scroll_down_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_down_cb_set_static_delegate = new elm_interface_scrollable_scroll_down_cb_set_delegate(scroll_down_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollDownCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_down_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_down_cb_set_static_delegate)}); - if (elm_interface_scrollable_page_relative_set_static_delegate == null) - elm_interface_scrollable_page_relative_set_static_delegate = new elm_interface_scrollable_page_relative_set_delegate(page_relative_set); - if (methods.FirstOrDefault(m => m.Name == "SetPageRelative") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_relative_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_relative_set_static_delegate)}); - if (elm_interface_scrollable_scroll_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_cb_set_static_delegate = new elm_interface_scrollable_scroll_cb_set_delegate(scroll_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_cb_set_static_delegate)}); - if (elm_interface_scrollable_animate_stop_cb_set_static_delegate == null) - elm_interface_scrollable_animate_stop_cb_set_static_delegate = new elm_interface_scrollable_animate_stop_cb_set_delegate(animate_stop_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetAnimateStopCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_animate_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_stop_cb_set_static_delegate)}); - if (elm_interface_scrollable_content_min_limit_cb_set_static_delegate == null) - elm_interface_scrollable_content_min_limit_cb_set_static_delegate = new elm_interface_scrollable_content_min_limit_cb_set_delegate(content_min_limit_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentMinLimitCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_min_limit_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_cb_set_static_delegate)}); - if (elm_interface_scrollable_scroll_right_cb_set_static_delegate == null) - elm_interface_scrollable_scroll_right_cb_set_static_delegate = new elm_interface_scrollable_scroll_right_cb_set_delegate(scroll_right_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollRightCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_scroll_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_right_cb_set_static_delegate)}); - if (elm_interface_scrollable_content_set_static_delegate == null) - elm_interface_scrollable_content_set_static_delegate = new elm_interface_scrollable_content_set_delegate(scrollable_content_set); - if (methods.FirstOrDefault(m => m.Name == "SetScrollableContent") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_set_static_delegate)}); - if (elm_interface_scrollable_edge_left_cb_set_static_delegate == null) - elm_interface_scrollable_edge_left_cb_set_static_delegate = new elm_interface_scrollable_edge_left_cb_set_delegate(edge_left_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetEdgeLeftCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_edge_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_left_cb_set_static_delegate)}); - if (elm_interface_scrollable_vbar_drag_cb_set_static_delegate == null) - elm_interface_scrollable_vbar_drag_cb_set_static_delegate = new elm_interface_scrollable_vbar_drag_cb_set_delegate(vbar_drag_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetVbarDragCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_vbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_drag_cb_set_static_delegate)}); - if (elm_interface_scrollable_vbar_unpress_cb_set_static_delegate == null) - elm_interface_scrollable_vbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_vbar_unpress_cb_set_delegate(vbar_unpress_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetVbarUnpressCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_vbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_unpress_cb_set_static_delegate)}); - if (elm_interface_scrollable_edge_bottom_cb_set_static_delegate == null) - elm_interface_scrollable_edge_bottom_cb_set_static_delegate = new elm_interface_scrollable_edge_bottom_cb_set_delegate(edge_bottom_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetEdgeBottomCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_edge_bottom_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_bottom_cb_set_static_delegate)}); - if (elm_interface_scrollable_edge_right_cb_set_static_delegate == null) - elm_interface_scrollable_edge_right_cb_set_static_delegate = new elm_interface_scrollable_edge_right_cb_set_delegate(edge_right_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetEdgeRightCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_edge_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_right_cb_set_static_delegate)}); - if (elm_interface_scrollable_edge_top_cb_set_static_delegate == null) - elm_interface_scrollable_edge_top_cb_set_static_delegate = new elm_interface_scrollable_edge_top_cb_set_delegate(edge_top_cb_set); - if (methods.FirstOrDefault(m => m.Name == "SetEdgeTopCb") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_edge_top_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_top_cb_set_static_delegate)}); - if (elm_interface_scrollable_objects_set_static_delegate == null) - elm_interface_scrollable_objects_set_static_delegate = new elm_interface_scrollable_objects_set_delegate(objects_set); - if (methods.FirstOrDefault(m => m.Name == "SetObjects") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_objects_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_objects_set_static_delegate)}); - if (elm_interface_scrollable_last_page_get_static_delegate == null) - elm_interface_scrollable_last_page_get_static_delegate = new elm_interface_scrollable_last_page_get_delegate(last_page_get); - if (methods.FirstOrDefault(m => m.Name == "GetLastPage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_last_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_last_page_get_static_delegate)}); - if (elm_interface_scrollable_current_page_get_static_delegate == null) - elm_interface_scrollable_current_page_get_static_delegate = new elm_interface_scrollable_current_page_get_delegate(current_page_get); - if (methods.FirstOrDefault(m => m.Name == "GetCurrentPage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_current_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_current_page_get_static_delegate)}); - if (elm_interface_scrollable_content_viewport_geometry_get_static_delegate == null) - elm_interface_scrollable_content_viewport_geometry_get_static_delegate = new elm_interface_scrollable_content_viewport_geometry_get_delegate(content_viewport_geometry_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentViewportGeometry") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_geometry_get_static_delegate)}); - if (elm_interface_scrollable_content_size_get_static_delegate == null) - elm_interface_scrollable_content_size_get_static_delegate = new elm_interface_scrollable_content_size_get_delegate(content_size_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_size_get_static_delegate)}); - if (elm_interface_scrollable_item_loop_enabled_get_static_delegate == null) - elm_interface_scrollable_item_loop_enabled_get_static_delegate = new elm_interface_scrollable_item_loop_enabled_get_delegate(item_loop_enabled_get); - if (methods.FirstOrDefault(m => m.Name == "GetItemLoopEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_item_loop_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_get_static_delegate)}); - if (elm_interface_scrollable_item_loop_enabled_set_static_delegate == null) - elm_interface_scrollable_item_loop_enabled_set_static_delegate = new elm_interface_scrollable_item_loop_enabled_set_delegate(item_loop_enabled_set); - if (methods.FirstOrDefault(m => m.Name == "SetItemLoopEnabled") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_item_loop_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_set_static_delegate)}); - if (elm_interface_scrollable_content_pos_set_static_delegate == null) - elm_interface_scrollable_content_pos_set_static_delegate = new elm_interface_scrollable_content_pos_set_delegate(content_pos_set); - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_set_static_delegate)}); - if (elm_interface_scrollable_content_pos_get_static_delegate == null) - elm_interface_scrollable_content_pos_get_static_delegate = new elm_interface_scrollable_content_pos_get_delegate(content_pos_get); - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_get_static_delegate)}); - if (elm_interface_scrollable_page_show_static_delegate == null) - elm_interface_scrollable_page_show_static_delegate = new elm_interface_scrollable_page_show_delegate(page_show); - if (methods.FirstOrDefault(m => m.Name == "ShowPage") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_show_static_delegate)}); - if (elm_interface_scrollable_region_bring_in_static_delegate == null) - elm_interface_scrollable_region_bring_in_static_delegate = new elm_interface_scrollable_region_bring_in_delegate(region_bring_in); - if (methods.FirstOrDefault(m => m.Name == "RegionBringIn") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_region_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_region_bring_in_static_delegate)}); - if (elm_interface_scrollable_page_bring_in_static_delegate == null) - elm_interface_scrollable_page_bring_in_static_delegate = new elm_interface_scrollable_page_bring_in_delegate(page_bring_in); - if (methods.FirstOrDefault(m => m.Name == "PageBringIn") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_page_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_bring_in_static_delegate)}); - if (elm_interface_scrollable_content_region_show_static_delegate == null) - elm_interface_scrollable_content_region_show_static_delegate = new elm_interface_scrollable_content_region_show_delegate(content_region_show); - if (methods.FirstOrDefault(m => m.Name == "ShowContentRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_region_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_show_static_delegate)}); - if (elm_interface_scrollable_content_min_limit_static_delegate == null) - elm_interface_scrollable_content_min_limit_static_delegate = new elm_interface_scrollable_content_min_limit_delegate(content_min_limit); - if (methods.FirstOrDefault(m => m.Name == "ContentMinLimit") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_content_min_limit"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_static_delegate)}); - if (elm_interface_scrollable_wanted_region_set_static_delegate == null) - elm_interface_scrollable_wanted_region_set_static_delegate = new elm_interface_scrollable_wanted_region_set_delegate(wanted_region_set); - if (methods.FirstOrDefault(m => m.Name == "SetWantedRegion") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_wanted_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wanted_region_set_static_delegate)}); - if (elm_interface_scrollable_custom_pan_pos_adjust_static_delegate == null) - elm_interface_scrollable_custom_pan_pos_adjust_static_delegate = new elm_interface_scrollable_custom_pan_pos_adjust_delegate(custom_pan_pos_adjust); - if (methods.FirstOrDefault(m => m.Name == "CustomPanPosAdjust") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "elm_interface_scrollable_custom_pan_pos_adjust"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_custom_pan_pos_adjust_static_delegate)}); - if (efl_ui_widget_focus_manager_create_static_delegate == null) - efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); - if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate)}); - if (efl_ui_focus_manager_focus_get_static_delegate == null) - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate)}); - if (efl_ui_focus_manager_focus_set_static_delegate == null) - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate)}); - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate)}); - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate)}); - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate)}); - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate)}); - if (efl_ui_focus_manager_root_get_static_delegate == null) - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate)}); - if (efl_ui_focus_manager_root_set_static_delegate == null) - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate)}); - if (efl_ui_focus_manager_move_static_delegate == null) - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate)}); - if (efl_ui_focus_manager_request_move_static_delegate == null) - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate)}); - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate)}); - if (efl_ui_focus_manager_fetch_static_delegate == null) - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate)}); - if (efl_ui_focus_manager_logical_end_static_delegate == null) - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate)}); - if (efl_ui_focus_manager_reset_history_static_delegate == null) - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate)}); - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate)}); - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate)}); - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate)}); - return descs; - } - public override IntPtr GetEflClass() - { - return Elm.IInterfaceScrollableConcrete.elm_interface_scrollable_mixin_get(); - } - public static IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public class NativeMethods : Efl.Eo.NativeClass { - return Elm.IInterfaceScrollableConcrete.elm_interface_scrollable_mixin_get(); - } + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// 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 (elm_interface_scrollable_gravity_get_static_delegate == null) + { + elm_interface_scrollable_gravity_get_static_delegate = new elm_interface_scrollable_gravity_get_delegate(gravity_get); + } - private delegate void elm_interface_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_get_static_delegate) }); + } + if (elm_interface_scrollable_gravity_set_static_delegate == null) + { + elm_interface_scrollable_gravity_set_static_delegate = new elm_interface_scrollable_gravity_set_delegate(gravity_set); + } - public delegate void elm_interface_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_gravity_get"); - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function elm_interface_scrollable_gravity_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(double); y = default(double); - try { - ((IInterfaceScrollableConcrete)wrapper).GetGravity( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_set_static_delegate) }); } - } else { - elm_interface_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - private static elm_interface_scrollable_gravity_get_delegate elm_interface_scrollable_gravity_get_static_delegate; + if (elm_interface_scrollable_bounce_allow_get_static_delegate == null) + { + elm_interface_scrollable_bounce_allow_get_static_delegate = new elm_interface_scrollable_bounce_allow_get_delegate(bounce_allow_get); + } - private delegate void elm_interface_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + if (methods.FirstOrDefault(m => m.Name == "GetBounceAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_get_static_delegate) }); + } + if (elm_interface_scrollable_bounce_allow_set_static_delegate == null) + { + elm_interface_scrollable_bounce_allow_set_static_delegate = new elm_interface_scrollable_bounce_allow_set_delegate(bounce_allow_set); + } - public delegate void elm_interface_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_gravity_set"); - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function elm_interface_scrollable_gravity_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetGravity( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetBounceAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_set_static_delegate) }); } - } else { - elm_interface_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static elm_interface_scrollable_gravity_set_delegate elm_interface_scrollable_gravity_set_static_delegate; + if (elm_interface_scrollable_wheel_disabled_get_static_delegate == null) + { + elm_interface_scrollable_wheel_disabled_get_static_delegate = new elm_interface_scrollable_wheel_disabled_get_delegate(wheel_disabled_get); + } - private delegate void elm_interface_scrollable_bounce_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + if (methods.FirstOrDefault(m => m.Name == "GetWheelDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wheel_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_get_static_delegate) }); + } + if (elm_interface_scrollable_wheel_disabled_set_static_delegate == null) + { + elm_interface_scrollable_wheel_disabled_set_static_delegate = new elm_interface_scrollable_wheel_disabled_set_delegate(wheel_disabled_set); + } - public delegate void elm_interface_scrollable_bounce_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_bounce_allow_get"); - private static void bounce_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - horiz = default(bool); vert = default(bool); - try { - ((IInterfaceScrollableConcrete)wrapper).GetBounceAllow( out horiz, out vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetWheelDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wheel_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_set_static_delegate) }); } - } else { - elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); - } - } - private static elm_interface_scrollable_bounce_allow_get_delegate elm_interface_scrollable_bounce_allow_get_static_delegate; + if (elm_interface_scrollable_movement_block_get_static_delegate == null) + { + elm_interface_scrollable_movement_block_get_static_delegate = new elm_interface_scrollable_movement_block_get_delegate(movement_block_get); + } - private delegate void elm_interface_scrollable_bounce_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_get_static_delegate) }); + } + if (elm_interface_scrollable_movement_block_set_static_delegate == null) + { + elm_interface_scrollable_movement_block_set_static_delegate = new elm_interface_scrollable_movement_block_set_delegate(movement_block_set); + } - public delegate void elm_interface_scrollable_bounce_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_bounce_allow_set"); - private static void bounce_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetBounceAllow( horiz, vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_set_static_delegate) }); } - } else { - elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); - } - } - private static elm_interface_scrollable_bounce_allow_set_delegate elm_interface_scrollable_bounce_allow_set_static_delegate; + if (elm_interface_scrollable_momentum_animator_disabled_get_static_delegate == null) + { + elm_interface_scrollable_momentum_animator_disabled_get_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_get_delegate(momentum_animator_disabled_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool elm_interface_scrollable_wheel_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetMomentumAnimatorDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_momentum_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_get_static_delegate) }); + } + if (elm_interface_scrollable_momentum_animator_disabled_set_static_delegate == null) + { + elm_interface_scrollable_momentum_animator_disabled_set_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_set_delegate(momentum_animator_disabled_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool elm_interface_scrollable_wheel_disabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_wheel_disabled_get"); - private static bool wheel_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetWheelDisabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetMomentumAnimatorDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_momentum_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_set_static_delegate) }); } - return _ret_var; - } else { - return elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static elm_interface_scrollable_wheel_disabled_get_delegate elm_interface_scrollable_wheel_disabled_get_static_delegate; + if (elm_interface_scrollable_policy_get_static_delegate == null) + { + elm_interface_scrollable_policy_get_static_delegate = new elm_interface_scrollable_policy_get_delegate(policy_get); + } - private delegate void elm_interface_scrollable_wheel_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + if (methods.FirstOrDefault(m => m.Name == "GetPolicy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_policy_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_get_static_delegate) }); + } + if (elm_interface_scrollable_policy_set_static_delegate == null) + { + elm_interface_scrollable_policy_set_static_delegate = new elm_interface_scrollable_policy_set_delegate(policy_set); + } - public delegate void elm_interface_scrollable_wheel_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_wheel_disabled_set"); - private static void wheel_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetWheelDisabled( disabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPolicy") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_policy_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_set_static_delegate) }); } - } else { - elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - private static elm_interface_scrollable_wheel_disabled_set_delegate elm_interface_scrollable_wheel_disabled_set_static_delegate; + if (elm_interface_scrollable_content_region_get_static_delegate == null) + { + elm_interface_scrollable_content_region_get_static_delegate = new elm_interface_scrollable_content_region_get_delegate(content_region_get); + } - private delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetContentRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_get_static_delegate) }); + } + if (elm_interface_scrollable_content_region_set_static_delegate == null) + { + elm_interface_scrollable_content_region_set_static_delegate = new elm_interface_scrollable_content_region_set_delegate(content_region_set); + } - public delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_movement_block_get"); - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_movement_block_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetMovementBlock(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContentRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_set_static_delegate) }); } - return _ret_var; - } else { - return elm_interface_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - private static elm_interface_scrollable_movement_block_get_delegate elm_interface_scrollable_movement_block_get_static_delegate; + if (elm_interface_scrollable_content_events_get_static_delegate == null) + { + elm_interface_scrollable_content_events_get_static_delegate = new elm_interface_scrollable_content_events_get_delegate(content_events_get); + } - private delegate void elm_interface_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + if (methods.FirstOrDefault(m => m.Name == "GetContentEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_events_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_get_static_delegate) }); + } + if (elm_interface_scrollable_content_events_set_static_delegate == null) + { + elm_interface_scrollable_content_events_set_static_delegate = new elm_interface_scrollable_content_events_set_delegate(content_events_set); + } - public delegate void elm_interface_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_movement_block_set"); - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function elm_interface_scrollable_movement_block_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetMovementBlock( block); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetContentEvents") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_events_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_set_static_delegate) }); } - } else { - elm_interface_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); - } - } - private static elm_interface_scrollable_movement_block_set_delegate elm_interface_scrollable_movement_block_set_static_delegate; + if (elm_interface_scrollable_page_size_get_static_delegate == null) + { + elm_interface_scrollable_page_size_get_static_delegate = new elm_interface_scrollable_page_size_get_delegate(page_size_get); + } - [return: MarshalAs(UnmanagedType.U1)] private delegate bool elm_interface_scrollable_momentum_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + if (methods.FirstOrDefault(m => m.Name == "GetPageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_get_static_delegate) }); + } + if (elm_interface_scrollable_page_size_set_static_delegate == null) + { + elm_interface_scrollable_page_size_set_static_delegate = new elm_interface_scrollable_page_size_set_delegate(page_size_set); + } - [return: MarshalAs(UnmanagedType.U1)] public delegate bool elm_interface_scrollable_momentum_animator_disabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_momentum_animator_disabled_get"); - private static bool momentum_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetMomentumAnimatorDisabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + if (methods.FirstOrDefault(m => m.Name == "SetPageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_set_static_delegate) }); } + + if (elm_interface_scrollable_bounce_animator_disabled_get_static_delegate == null) + { + elm_interface_scrollable_bounce_animator_disabled_get_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_get_delegate(bounce_animator_disabled_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBounceAnimatorDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_get_static_delegate) }); + } + + if (elm_interface_scrollable_bounce_animator_disabled_set_static_delegate == null) + { + elm_interface_scrollable_bounce_animator_disabled_set_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_set_delegate(bounce_animator_disabled_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBounceAnimatorDisabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_set_static_delegate) }); + } + + if (elm_interface_scrollable_page_scroll_limit_get_static_delegate == null) + { + elm_interface_scrollable_page_scroll_limit_get_static_delegate = new elm_interface_scrollable_page_scroll_limit_get_delegate(page_scroll_limit_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPageScrollLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_scroll_limit_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_get_static_delegate) }); + } + + if (elm_interface_scrollable_page_scroll_limit_set_static_delegate == null) + { + elm_interface_scrollable_page_scroll_limit_set_static_delegate = new elm_interface_scrollable_page_scroll_limit_set_delegate(page_scroll_limit_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetPageScrollLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_scroll_limit_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_set_static_delegate) }); + } + + if (elm_interface_scrollable_page_snap_allow_get_static_delegate == null) + { + elm_interface_scrollable_page_snap_allow_get_static_delegate = new elm_interface_scrollable_page_snap_allow_get_delegate(page_snap_allow_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPageSnapAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_snap_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_get_static_delegate) }); + } + + if (elm_interface_scrollable_page_snap_allow_set_static_delegate == null) + { + elm_interface_scrollable_page_snap_allow_set_static_delegate = new elm_interface_scrollable_page_snap_allow_set_delegate(page_snap_allow_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetPageSnapAllow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_snap_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_set_static_delegate) }); + } + + if (elm_interface_scrollable_paging_get_static_delegate == null) + { + elm_interface_scrollable_paging_get_static_delegate = new elm_interface_scrollable_paging_get_delegate(paging_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPaging") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_paging_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_get_static_delegate) }); + } + + if (elm_interface_scrollable_paging_set_static_delegate == null) + { + elm_interface_scrollable_paging_set_static_delegate = new elm_interface_scrollable_paging_set_delegate(paging_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetPaging") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_paging_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_set_static_delegate) }); + } + + if (elm_interface_scrollable_single_direction_get_static_delegate == null) + { + elm_interface_scrollable_single_direction_get_static_delegate = new elm_interface_scrollable_single_direction_get_delegate(single_direction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSingleDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_single_direction_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_get_static_delegate) }); + } + + if (elm_interface_scrollable_single_direction_set_static_delegate == null) + { + elm_interface_scrollable_single_direction_set_static_delegate = new elm_interface_scrollable_single_direction_set_delegate(single_direction_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSingleDirection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_single_direction_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_set_static_delegate) }); + } + + if (elm_interface_scrollable_step_size_get_static_delegate == null) + { + elm_interface_scrollable_step_size_get_static_delegate = new elm_interface_scrollable_step_size_get_delegate(step_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_get_static_delegate) }); + } + + if (elm_interface_scrollable_step_size_set_static_delegate == null) + { + elm_interface_scrollable_step_size_set_static_delegate = new elm_interface_scrollable_step_size_set_delegate(step_size_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_set_static_delegate) }); + } + + if (elm_interface_scrollable_content_loop_get_static_delegate == null) + { + elm_interface_scrollable_content_loop_get_static_delegate = new elm_interface_scrollable_content_loop_get_delegate(content_loop_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContentLoop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_loop_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_get_static_delegate) }); + } + + if (elm_interface_scrollable_content_loop_set_static_delegate == null) + { + elm_interface_scrollable_content_loop_set_static_delegate = new elm_interface_scrollable_content_loop_set_delegate(content_loop_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetContentLoop") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_loop_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_set_static_delegate) }); + } + + if (elm_interface_scrollable_scroll_up_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_up_cb_set_static_delegate = new elm_interface_scrollable_scroll_up_cb_set_delegate(scroll_up_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollUpCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_up_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_up_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_hbar_drag_cb_set_static_delegate == null) + { + elm_interface_scrollable_hbar_drag_cb_set_static_delegate = new elm_interface_scrollable_hbar_drag_cb_set_delegate(hbar_drag_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetHbarDragCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_drag_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_drag_start_cb_set_static_delegate == null) + { + elm_interface_scrollable_drag_start_cb_set_static_delegate = new elm_interface_scrollable_drag_start_cb_set_delegate(drag_start_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDragStartCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_drag_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_start_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_scroll_start_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_start_cb_set_static_delegate = new elm_interface_scrollable_scroll_start_cb_set_delegate(scroll_start_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollStartCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_start_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_freeze_set_static_delegate == null) + { + elm_interface_scrollable_freeze_set_static_delegate = new elm_interface_scrollable_freeze_set_delegate(freeze_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_freeze_set_static_delegate) }); + } + + if (elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate == null) + { + elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate = new elm_interface_scrollable_content_viewport_resize_cb_set_delegate(content_viewport_resize_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetContentViewportResizeCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_viewport_resize_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_scroll_left_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_left_cb_set_static_delegate = new elm_interface_scrollable_scroll_left_cb_set_delegate(scroll_left_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollLeftCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_left_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_vbar_press_cb_set_static_delegate == null) + { + elm_interface_scrollable_vbar_press_cb_set_static_delegate = new elm_interface_scrollable_vbar_press_cb_set_delegate(vbar_press_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetVbarPressCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_press_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_hbar_press_cb_set_static_delegate == null) + { + elm_interface_scrollable_hbar_press_cb_set_static_delegate = new elm_interface_scrollable_hbar_press_cb_set_delegate(hbar_press_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetHbarPressCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_press_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_hbar_unpress_cb_set_static_delegate == null) + { + elm_interface_scrollable_hbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_hbar_unpress_cb_set_delegate(hbar_unpress_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetHbarUnpressCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_unpress_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_drag_stop_cb_set_static_delegate == null) + { + elm_interface_scrollable_drag_stop_cb_set_static_delegate = new elm_interface_scrollable_drag_stop_cb_set_delegate(drag_stop_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDragStopCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_drag_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_stop_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_scroll_stop_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_stop_cb_set_static_delegate = new elm_interface_scrollable_scroll_stop_cb_set_delegate(scroll_stop_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollStopCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_stop_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_extern_pan_set_static_delegate == null) + { + elm_interface_scrollable_extern_pan_set_static_delegate = new elm_interface_scrollable_extern_pan_set_delegate(extern_pan_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetExternPan") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_extern_pan_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_extern_pan_set_static_delegate) }); + } + + if (elm_interface_scrollable_page_change_cb_set_static_delegate == null) + { + elm_interface_scrollable_page_change_cb_set_static_delegate = new elm_interface_scrollable_page_change_cb_set_delegate(page_change_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetPageChangeCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_change_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_change_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_hold_set_static_delegate == null) + { + elm_interface_scrollable_hold_set_static_delegate = new elm_interface_scrollable_hold_set_delegate(hold_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hold_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hold_set_static_delegate) }); + } + + if (elm_interface_scrollable_animate_start_cb_set_static_delegate == null) + { + elm_interface_scrollable_animate_start_cb_set_static_delegate = new elm_interface_scrollable_animate_start_cb_set_delegate(animate_start_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAnimateStartCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_animate_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_start_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_scroll_down_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_down_cb_set_static_delegate = new elm_interface_scrollable_scroll_down_cb_set_delegate(scroll_down_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollDownCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_down_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_down_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_page_relative_set_static_delegate == null) + { + elm_interface_scrollable_page_relative_set_static_delegate = new elm_interface_scrollable_page_relative_set_delegate(page_relative_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetPageRelative") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_relative_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_relative_set_static_delegate) }); + } + + if (elm_interface_scrollable_scroll_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_cb_set_static_delegate = new elm_interface_scrollable_scroll_cb_set_delegate(scroll_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_animate_stop_cb_set_static_delegate == null) + { + elm_interface_scrollable_animate_stop_cb_set_static_delegate = new elm_interface_scrollable_animate_stop_cb_set_delegate(animate_stop_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAnimateStopCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_animate_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_stop_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_content_min_limit_cb_set_static_delegate == null) + { + elm_interface_scrollable_content_min_limit_cb_set_static_delegate = new elm_interface_scrollable_content_min_limit_cb_set_delegate(content_min_limit_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetContentMinLimitCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_min_limit_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_scroll_right_cb_set_static_delegate == null) + { + elm_interface_scrollable_scroll_right_cb_set_static_delegate = new elm_interface_scrollable_scroll_right_cb_set_delegate(scroll_right_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollRightCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_right_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_content_set_static_delegate == null) + { + elm_interface_scrollable_content_set_static_delegate = new elm_interface_scrollable_content_set_delegate(scrollable_content_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollableContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_set_static_delegate) }); + } + + if (elm_interface_scrollable_edge_left_cb_set_static_delegate == null) + { + elm_interface_scrollable_edge_left_cb_set_static_delegate = new elm_interface_scrollable_edge_left_cb_set_delegate(edge_left_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetEdgeLeftCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_left_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_vbar_drag_cb_set_static_delegate == null) + { + elm_interface_scrollable_vbar_drag_cb_set_static_delegate = new elm_interface_scrollable_vbar_drag_cb_set_delegate(vbar_drag_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetVbarDragCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_drag_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_vbar_unpress_cb_set_static_delegate == null) + { + elm_interface_scrollable_vbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_vbar_unpress_cb_set_delegate(vbar_unpress_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetVbarUnpressCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_unpress_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_edge_bottom_cb_set_static_delegate == null) + { + elm_interface_scrollable_edge_bottom_cb_set_static_delegate = new elm_interface_scrollable_edge_bottom_cb_set_delegate(edge_bottom_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetEdgeBottomCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_bottom_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_bottom_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_edge_right_cb_set_static_delegate == null) + { + elm_interface_scrollable_edge_right_cb_set_static_delegate = new elm_interface_scrollable_edge_right_cb_set_delegate(edge_right_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetEdgeRightCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_right_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_edge_top_cb_set_static_delegate == null) + { + elm_interface_scrollable_edge_top_cb_set_static_delegate = new elm_interface_scrollable_edge_top_cb_set_delegate(edge_top_cb_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetEdgeTopCb") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_top_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_top_cb_set_static_delegate) }); + } + + if (elm_interface_scrollable_objects_set_static_delegate == null) + { + elm_interface_scrollable_objects_set_static_delegate = new elm_interface_scrollable_objects_set_delegate(objects_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetObjects") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_objects_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_objects_set_static_delegate) }); + } + + if (elm_interface_scrollable_last_page_get_static_delegate == null) + { + elm_interface_scrollable_last_page_get_static_delegate = new elm_interface_scrollable_last_page_get_delegate(last_page_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLastPage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_last_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_last_page_get_static_delegate) }); + } + + if (elm_interface_scrollable_current_page_get_static_delegate == null) + { + elm_interface_scrollable_current_page_get_static_delegate = new elm_interface_scrollable_current_page_get_delegate(current_page_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCurrentPage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_current_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_current_page_get_static_delegate) }); + } + + if (elm_interface_scrollable_content_viewport_geometry_get_static_delegate == null) + { + elm_interface_scrollable_content_viewport_geometry_get_static_delegate = new elm_interface_scrollable_content_viewport_geometry_get_delegate(content_viewport_geometry_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContentViewportGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_geometry_get_static_delegate) }); + } + + if (elm_interface_scrollable_content_size_get_static_delegate == null) + { + elm_interface_scrollable_content_size_get_static_delegate = new elm_interface_scrollable_content_size_get_delegate(content_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_size_get_static_delegate) }); + } + + if (elm_interface_scrollable_item_loop_enabled_get_static_delegate == null) + { + elm_interface_scrollable_item_loop_enabled_get_static_delegate = new elm_interface_scrollable_item_loop_enabled_get_delegate(item_loop_enabled_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetItemLoopEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_item_loop_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_get_static_delegate) }); + } + + if (elm_interface_scrollable_item_loop_enabled_set_static_delegate == null) + { + elm_interface_scrollable_item_loop_enabled_set_static_delegate = new elm_interface_scrollable_item_loop_enabled_set_delegate(item_loop_enabled_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetItemLoopEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_item_loop_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_set_static_delegate) }); + } + + if (elm_interface_scrollable_content_pos_set_static_delegate == null) + { + elm_interface_scrollable_content_pos_set_static_delegate = new elm_interface_scrollable_content_pos_set_delegate(content_pos_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_set_static_delegate) }); + } + + if (elm_interface_scrollable_content_pos_get_static_delegate == null) + { + elm_interface_scrollable_content_pos_get_static_delegate = new elm_interface_scrollable_content_pos_get_delegate(content_pos_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_get_static_delegate) }); + } + + if (elm_interface_scrollable_page_show_static_delegate == null) + { + elm_interface_scrollable_page_show_static_delegate = new elm_interface_scrollable_page_show_delegate(page_show); + } + + if (methods.FirstOrDefault(m => m.Name == "ShowPage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_show_static_delegate) }); + } + + if (elm_interface_scrollable_region_bring_in_static_delegate == null) + { + elm_interface_scrollable_region_bring_in_static_delegate = new elm_interface_scrollable_region_bring_in_delegate(region_bring_in); + } + + if (methods.FirstOrDefault(m => m.Name == "RegionBringIn") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_region_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_region_bring_in_static_delegate) }); + } + + if (elm_interface_scrollable_page_bring_in_static_delegate == null) + { + elm_interface_scrollable_page_bring_in_static_delegate = new elm_interface_scrollable_page_bring_in_delegate(page_bring_in); + } + + if (methods.FirstOrDefault(m => m.Name == "PageBringIn") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_bring_in_static_delegate) }); + } + + if (elm_interface_scrollable_content_region_show_static_delegate == null) + { + elm_interface_scrollable_content_region_show_static_delegate = new elm_interface_scrollable_content_region_show_delegate(content_region_show); + } + + if (methods.FirstOrDefault(m => m.Name == "ShowContentRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_show_static_delegate) }); + } + + if (elm_interface_scrollable_content_min_limit_static_delegate == null) + { + elm_interface_scrollable_content_min_limit_static_delegate = new elm_interface_scrollable_content_min_limit_delegate(content_min_limit); + } + + if (methods.FirstOrDefault(m => m.Name == "ContentMinLimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_min_limit"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_static_delegate) }); + } + + if (elm_interface_scrollable_wanted_region_set_static_delegate == null) + { + elm_interface_scrollable_wanted_region_set_static_delegate = new elm_interface_scrollable_wanted_region_set_delegate(wanted_region_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetWantedRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wanted_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wanted_region_set_static_delegate) }); + } + + if (elm_interface_scrollable_custom_pan_pos_adjust_static_delegate == null) + { + elm_interface_scrollable_custom_pan_pos_adjust_static_delegate = new elm_interface_scrollable_custom_pan_pos_adjust_delegate(custom_pan_pos_adjust); + } + + if (methods.FirstOrDefault(m => m.Name == "CustomPanPosAdjust") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_custom_pan_pos_adjust"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_custom_pan_pos_adjust_static_delegate) }); + } + + if (efl_ui_widget_focus_manager_create_static_delegate == null) + { + efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); + } + + if (efl_ui_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + } + + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); + } + + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + } + + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); + } + + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + } + + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); + } + + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + } + + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + } + + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } + + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + } + + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } + + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + } + + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + } + + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + } + + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); + } + + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } + + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + } + + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } + + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); + } + + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + } + + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } + + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + } + + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + } + + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } + + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); + } + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Elm.IInterfaceScrollableConcrete.elm_interface_scrollable_mixin_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + + private delegate void elm_interface_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void elm_interface_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_gravity_get"); + + private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function elm_interface_scrollable_gravity_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(double); y = default(double); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetGravity(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static elm_interface_scrollable_gravity_get_delegate elm_interface_scrollable_gravity_get_static_delegate; + + + private delegate void elm_interface_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void elm_interface_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_gravity_set"); + + private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function elm_interface_scrollable_gravity_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetGravity(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static elm_interface_scrollable_gravity_set_delegate elm_interface_scrollable_gravity_set_static_delegate; + + + private delegate void elm_interface_scrollable_bounce_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + + public delegate void elm_interface_scrollable_bounce_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_allow_get"); + + private static void bounce_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetBounceAllow(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + } + } + + private static elm_interface_scrollable_bounce_allow_get_delegate elm_interface_scrollable_bounce_allow_get_static_delegate; + + + private delegate void elm_interface_scrollable_bounce_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + + public delegate void elm_interface_scrollable_bounce_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_allow_set"); + + private static void bounce_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetBounceAllow(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + } + } + + private static elm_interface_scrollable_bounce_allow_set_delegate elm_interface_scrollable_bounce_allow_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool elm_interface_scrollable_wheel_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool elm_interface_scrollable_wheel_disabled_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wheel_disabled_get"); + + private static bool wheel_disabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetWheelDisabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static elm_interface_scrollable_wheel_disabled_get_delegate elm_interface_scrollable_wheel_disabled_get_static_delegate; + + + private delegate void elm_interface_scrollable_wheel_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + + + public delegate void elm_interface_scrollable_wheel_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wheel_disabled_set"); + + private static void wheel_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) + { + Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetWheelDisabled(disabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); + } + } + + private static elm_interface_scrollable_wheel_disabled_set_delegate elm_interface_scrollable_wheel_disabled_set_static_delegate; + + + private delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_movement_block_get"); + + private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_movement_block_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetMovementBlock(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return elm_interface_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_momentum_animator_disabled_get_delegate elm_interface_scrollable_momentum_animator_disabled_get_static_delegate; + private static elm_interface_scrollable_movement_block_get_delegate elm_interface_scrollable_movement_block_get_static_delegate; - private delegate void elm_interface_scrollable_momentum_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + + private delegate void elm_interface_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + public delegate void elm_interface_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public delegate void elm_interface_scrollable_momentum_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_momentum_animator_disabled_set"); - private static void momentum_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetMomentumAnimatorDisabled( disabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_movement_block_set"); + + private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) + { + Eina.Log.Debug("function elm_interface_scrollable_movement_block_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetMovementBlock(block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); } - } else { - elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); } - } - private static elm_interface_scrollable_momentum_animator_disabled_set_delegate elm_interface_scrollable_momentum_animator_disabled_set_static_delegate; + private static elm_interface_scrollable_movement_block_set_delegate elm_interface_scrollable_movement_block_set_static_delegate; - private delegate void elm_interface_scrollable_policy_get_delegate(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool elm_interface_scrollable_momentum_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool elm_interface_scrollable_momentum_animator_disabled_get_api_delegate(System.IntPtr obj); - public delegate void elm_interface_scrollable_policy_get_api_delegate(System.IntPtr obj, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_policy_get"); - private static void policy_get(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) - { - Eina.Log.Debug("function elm_interface_scrollable_policy_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - hbar = default(Elm.Scroller.Policy); vbar = default(Elm.Scroller.Policy); - try { - ((IInterfaceScrollableConcrete)wrapper).GetPolicy( out hbar, out vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_momentum_animator_disabled_get"); + + private static bool momentum_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetMomentumAnimatorDisabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - elm_interface_scrollable_policy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); } - } - private static elm_interface_scrollable_policy_get_delegate elm_interface_scrollable_policy_get_static_delegate; + private static elm_interface_scrollable_momentum_animator_disabled_get_delegate elm_interface_scrollable_momentum_animator_disabled_get_static_delegate; - private delegate void elm_interface_scrollable_policy_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); + + private delegate void elm_interface_scrollable_momentum_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public delegate void elm_interface_scrollable_momentum_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_momentum_animator_disabled_set"); + + private static void momentum_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) + { + Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetMomentumAnimatorDisabled(disabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); + } + } + + private static elm_interface_scrollable_momentum_animator_disabled_set_delegate elm_interface_scrollable_momentum_animator_disabled_set_static_delegate; + + + private delegate void elm_interface_scrollable_policy_get_delegate(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); + + + public delegate void elm_interface_scrollable_policy_get_api_delegate(System.IntPtr obj, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_policy_get"); + + private static void policy_get(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) + { + Eina.Log.Debug("function elm_interface_scrollable_policy_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + hbar = default(Elm.Scroller.Policy); vbar = default(Elm.Scroller.Policy); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetPolicy(out hbar, out vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_policy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); + } + } + + private static elm_interface_scrollable_policy_get_delegate elm_interface_scrollable_policy_get_static_delegate; + + + private delegate void elm_interface_scrollable_policy_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); + + + public delegate void elm_interface_scrollable_policy_set_api_delegate(System.IntPtr obj, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_policy_set"); + + private static void policy_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) + { + Eina.Log.Debug("function elm_interface_scrollable_policy_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetPolicy(hbar, vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_policy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + } + } + + private static elm_interface_scrollable_policy_set_delegate elm_interface_scrollable_policy_set_static_delegate; + + + private delegate void elm_interface_scrollable_content_region_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); + + + public delegate void elm_interface_scrollable_content_region_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_get"); + + private static void content_region_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_region_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); w = default(int); h = default(int); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetContentRegion(out x, out y, out w, out h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_policy_set_api_delegate(System.IntPtr obj, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_policy_set"); - private static void policy_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) - { - Eina.Log.Debug("function elm_interface_scrollable_policy_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IInterfaceScrollableConcrete)wrapper).SetPolicy( hbar, vbar); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_policy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + else + { + elm_interface_scrollable_content_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); + } } - } - private static elm_interface_scrollable_policy_set_delegate elm_interface_scrollable_policy_set_static_delegate; + private static elm_interface_scrollable_content_region_get_delegate elm_interface_scrollable_content_region_get_static_delegate; - private delegate void elm_interface_scrollable_content_region_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); + + private delegate void elm_interface_scrollable_content_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + + public delegate void elm_interface_scrollable_content_region_set_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - public delegate void elm_interface_scrollable_content_region_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_region_get"); - private static void content_region_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_region_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); w = default(int); h = default(int); - try { - ((IInterfaceScrollableConcrete)wrapper).GetContentRegion( out x, out y, out w, out h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_set"); + + private static void content_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_region_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetContentRegion(x, y, w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); } - } else { - elm_interface_scrollable_content_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); } - } - private static elm_interface_scrollable_content_region_get_delegate elm_interface_scrollable_content_region_get_static_delegate; + private static elm_interface_scrollable_content_region_set_delegate elm_interface_scrollable_content_region_set_static_delegate; - private delegate void elm_interface_scrollable_content_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool elm_interface_scrollable_content_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool elm_interface_scrollable_content_events_get_api_delegate(System.IntPtr obj); - public delegate void elm_interface_scrollable_content_region_set_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_region_set"); - private static void content_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_region_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetContentRegion( x, y, w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_events_get"); + + private static bool content_events_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_content_events_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetContentEvents(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return elm_interface_scrollable_content_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - elm_interface_scrollable_content_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); } - } - private static elm_interface_scrollable_content_region_set_delegate elm_interface_scrollable_content_region_set_static_delegate; + private static elm_interface_scrollable_content_events_get_delegate elm_interface_scrollable_content_events_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool elm_interface_scrollable_content_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void elm_interface_scrollable_content_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat_events); + + public delegate void elm_interface_scrollable_content_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat_events); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool elm_interface_scrollable_content_events_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_events_get"); - private static bool content_events_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_content_events_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetContentEvents(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_events_set"); + + private static void content_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat_events) + { + Eina.Log.Debug("function elm_interface_scrollable_content_events_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetContentEvents(repeat_events); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat_events); + } + } + + private static elm_interface_scrollable_content_events_set_delegate elm_interface_scrollable_content_events_set_static_delegate; + + + private delegate void elm_interface_scrollable_page_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + + public delegate void elm_interface_scrollable_page_size_get_api_delegate(System.IntPtr obj, out int x, out int y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_size_get"); + + private static void page_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + { + Eina.Log.Debug("function elm_interface_scrollable_page_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetPageSize(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static elm_interface_scrollable_page_size_get_delegate elm_interface_scrollable_page_size_get_static_delegate; + + + private delegate void elm_interface_scrollable_page_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + + public delegate void elm_interface_scrollable_page_size_set_api_delegate(System.IntPtr obj, int x, int y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_size_set"); + + private static void page_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + { + Eina.Log.Debug("function elm_interface_scrollable_page_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetPageSize(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } + else + { + elm_interface_scrollable_page_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static elm_interface_scrollable_page_size_set_delegate elm_interface_scrollable_page_size_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool elm_interface_scrollable_bounce_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool elm_interface_scrollable_bounce_animator_disabled_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_animator_disabled_get"); + + private static bool bounce_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetBounceAnimatorDisabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return elm_interface_scrollable_content_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_content_events_get_delegate elm_interface_scrollable_content_events_get_static_delegate; + private static elm_interface_scrollable_bounce_animator_disabled_get_delegate elm_interface_scrollable_bounce_animator_disabled_get_static_delegate; - private delegate void elm_interface_scrollable_content_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat_events); + + private delegate void elm_interface_scrollable_bounce_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + + public delegate void elm_interface_scrollable_bounce_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public delegate void elm_interface_scrollable_content_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat_events); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_events_set"); - private static void content_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat_events) - { - Eina.Log.Debug("function elm_interface_scrollable_content_events_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetContentEvents( repeat_events); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_animator_disabled_set"); + + private static void bounce_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) + { + Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetBounceAnimatorDisabled(disabled); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); } - } else { - elm_interface_scrollable_content_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat_events); } - } - private static elm_interface_scrollable_content_events_set_delegate elm_interface_scrollable_content_events_set_static_delegate; + private static elm_interface_scrollable_bounce_animator_disabled_set_delegate elm_interface_scrollable_bounce_animator_disabled_set_static_delegate; - private delegate void elm_interface_scrollable_page_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + private delegate void elm_interface_scrollable_page_scroll_limit_get_delegate(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v); + + public delegate void elm_interface_scrollable_page_scroll_limit_get_api_delegate(System.IntPtr obj, out int page_limit_h, out int page_limit_v); - public delegate void elm_interface_scrollable_page_size_get_api_delegate(System.IntPtr obj, out int x, out int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_size_get"); - private static void page_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function elm_interface_scrollable_page_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); - try { - ((IInterfaceScrollableConcrete)wrapper).GetPageSize( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_scroll_limit_get"); + + private static void page_scroll_limit_get(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v) + { + Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + page_limit_h = default(int); page_limit_v = default(int); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetPageScrollLimit(out page_limit_h, out page_limit_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out page_limit_h, out page_limit_v); } - } else { - elm_interface_scrollable_page_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } - private static elm_interface_scrollable_page_size_get_delegate elm_interface_scrollable_page_size_get_static_delegate; + private static elm_interface_scrollable_page_scroll_limit_get_delegate elm_interface_scrollable_page_scroll_limit_get_static_delegate; - private delegate void elm_interface_scrollable_page_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + private delegate void elm_interface_scrollable_page_scroll_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v); + + public delegate void elm_interface_scrollable_page_scroll_limit_set_api_delegate(System.IntPtr obj, int page_limit_h, int page_limit_v); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_scroll_limit_set"); + + private static void page_scroll_limit_set(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v) + { + Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetPageScrollLimit(page_limit_h, page_limit_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_limit_h, page_limit_v); + } + } + + private static elm_interface_scrollable_page_scroll_limit_set_delegate elm_interface_scrollable_page_scroll_limit_set_static_delegate; + + + private delegate void elm_interface_scrollable_page_snap_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + + public delegate void elm_interface_scrollable_page_snap_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_snap_allow_get"); + + private static void page_snap_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetPageSnapAllow(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + } + } + + private static elm_interface_scrollable_page_snap_allow_get_delegate elm_interface_scrollable_page_snap_allow_get_static_delegate; + + + private delegate void elm_interface_scrollable_page_snap_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + + public delegate void elm_interface_scrollable_page_snap_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_snap_allow_set"); + + private static void page_snap_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetPageSnapAllow(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + } + } + + private static elm_interface_scrollable_page_snap_allow_set_delegate elm_interface_scrollable_page_snap_allow_set_static_delegate; + + + private delegate void elm_interface_scrollable_paging_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); + + + public delegate void elm_interface_scrollable_paging_get_api_delegate(System.IntPtr obj, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_paging_get"); + + private static void paging_get(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) + { + Eina.Log.Debug("function elm_interface_scrollable_paging_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pagerel_h = default(double); pagerel_v = default(double); pagesize_h = default(int); pagesize_v = default(int); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetPaging(out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_page_size_set_api_delegate(System.IntPtr obj, int x, int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_size_set"); - private static void page_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function elm_interface_scrollable_page_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IInterfaceScrollableConcrete)wrapper).SetPageSize( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_page_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + else + { + elm_interface_scrollable_paging_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); + } } - } - private static elm_interface_scrollable_page_size_set_delegate elm_interface_scrollable_page_size_set_static_delegate; + private static elm_interface_scrollable_paging_get_delegate elm_interface_scrollable_paging_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool elm_interface_scrollable_bounce_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void elm_interface_scrollable_paging_set_delegate(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); + + public delegate void elm_interface_scrollable_paging_set_api_delegate(System.IntPtr obj, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool elm_interface_scrollable_bounce_animator_disabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_bounce_animator_disabled_get"); - private static bool bounce_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetBounceAnimatorDisabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_paging_set"); + + private static void paging_set(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) + { + Eina.Log.Debug("function elm_interface_scrollable_paging_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetPaging(pagerel_h, pagerel_v, pagesize_h, pagesize_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_paging_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagerel_h, pagerel_v, pagesize_h, pagesize_v); } + } + + private static elm_interface_scrollable_paging_set_delegate elm_interface_scrollable_paging_set_static_delegate; + + + private delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_single_direction_get"); + + private static Elm.Scroller.SingleDirection single_direction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_single_direction_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Elm.Scroller.SingleDirection _ret_var = default(Elm.Scroller.SingleDirection); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetSingleDirection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - } else { - return elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + + } + else + { + return elm_interface_scrollable_single_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_bounce_animator_disabled_get_delegate elm_interface_scrollable_bounce_animator_disabled_get_static_delegate; + private static elm_interface_scrollable_single_direction_get_delegate elm_interface_scrollable_single_direction_get_static_delegate; + + + private delegate void elm_interface_scrollable_single_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir); + + + public delegate void elm_interface_scrollable_single_direction_set_api_delegate(System.IntPtr obj, Elm.Scroller.SingleDirection single_dir); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_single_direction_set"); + + private static void single_direction_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir) + { + Eina.Log.Debug("function elm_interface_scrollable_single_direction_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetSingleDirection(single_dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_single_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), single_dir); + } + } + + private static elm_interface_scrollable_single_direction_set_delegate elm_interface_scrollable_single_direction_set_static_delegate; + + + private delegate void elm_interface_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + + public delegate void elm_interface_scrollable_step_size_get_api_delegate(System.IntPtr obj, out int x, out int y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_step_size_get"); + + private static void step_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + { + Eina.Log.Debug("function elm_interface_scrollable_step_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetStepSize(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static elm_interface_scrollable_step_size_get_delegate elm_interface_scrollable_step_size_get_static_delegate; + + + private delegate void elm_interface_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + + public delegate void elm_interface_scrollable_step_size_set_api_delegate(System.IntPtr obj, int x, int y); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_step_size_set"); + + private static void step_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + { + Eina.Log.Debug("function elm_interface_scrollable_step_size_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetStepSize(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static elm_interface_scrollable_step_size_set_delegate elm_interface_scrollable_step_size_set_static_delegate; + + + private delegate void elm_interface_scrollable_content_loop_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + + public delegate void elm_interface_scrollable_content_loop_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_loop_get"); + + private static void content_loop_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) + { + Eina.Log.Debug("function elm_interface_scrollable_content_loop_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + loop_h = default(bool); loop_v = default(bool); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetContentLoop(out loop_h, out loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_loop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + } + } + + private static elm_interface_scrollable_content_loop_get_delegate elm_interface_scrollable_content_loop_get_static_delegate; + + + private delegate void elm_interface_scrollable_content_loop_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + + public delegate void elm_interface_scrollable_content_loop_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_loop_set"); + + private static void content_loop_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) + { + Eina.Log.Debug("function elm_interface_scrollable_content_loop_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetContentLoop(loop_h, loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_loop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + } + } + + private static elm_interface_scrollable_content_loop_set_delegate elm_interface_scrollable_content_loop_set_static_delegate; + + + private delegate void elm_interface_scrollable_scroll_up_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb); + + + public delegate void elm_interface_scrollable_scroll_up_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_up_cb); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_up_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_up_cb_set"); + + private static void scroll_up_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_up_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetScrollUpCb(scroll_up_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_up_cb); + } + } + + private static elm_interface_scrollable_scroll_up_cb_set_delegate elm_interface_scrollable_scroll_up_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_hbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb); + + + public delegate void elm_interface_scrollable_hbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_drag_cb); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_drag_cb_set"); + + private static void hbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_hbar_drag_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetHbarDragCb(hbar_drag_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_drag_cb); + } + } + + private static elm_interface_scrollable_hbar_drag_cb_set_delegate elm_interface_scrollable_hbar_drag_cb_set_static_delegate; + + + private delegate void elm_interface_scrollable_drag_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb); + + + public delegate void elm_interface_scrollable_drag_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_start_cb); - private delegate void elm_interface_scrollable_bounce_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_drag_start_cb_set"); + private static void drag_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_drag_start_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetDragStartCb(drag_start_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_bounce_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_bounce_animator_disabled_set"); - private static void bounce_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetBounceAnimatorDisabled( disabled); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_start_cb); } - } else { - elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); } - } - private static elm_interface_scrollable_bounce_animator_disabled_set_delegate elm_interface_scrollable_bounce_animator_disabled_set_static_delegate; + private static elm_interface_scrollable_drag_start_cb_set_delegate elm_interface_scrollable_drag_start_cb_set_static_delegate; - private delegate void elm_interface_scrollable_page_scroll_limit_get_delegate(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v); + + private delegate void elm_interface_scrollable_scroll_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb); + + public delegate void elm_interface_scrollable_scroll_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_start_cb); - public delegate void elm_interface_scrollable_page_scroll_limit_get_api_delegate(System.IntPtr obj, out int page_limit_h, out int page_limit_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_scroll_limit_get"); - private static void page_scroll_limit_get(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - page_limit_h = default(int); page_limit_v = default(int); - try { - ((IInterfaceScrollableConcrete)wrapper).GetPageScrollLimit( out page_limit_h, out page_limit_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_start_cb_set"); + + private static void scroll_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_start_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetScrollStartCb(scroll_start_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_start_cb); } - } else { - elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out page_limit_h, out page_limit_v); } - } - private static elm_interface_scrollable_page_scroll_limit_get_delegate elm_interface_scrollable_page_scroll_limit_get_static_delegate; + private static elm_interface_scrollable_scroll_start_cb_set_delegate elm_interface_scrollable_scroll_start_cb_set_static_delegate; - private delegate void elm_interface_scrollable_page_scroll_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v); + + private delegate void elm_interface_scrollable_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + public delegate void elm_interface_scrollable_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public delegate void elm_interface_scrollable_page_scroll_limit_set_api_delegate(System.IntPtr obj, int page_limit_h, int page_limit_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_scroll_limit_set"); - private static void page_scroll_limit_set(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetPageScrollLimit( page_limit_h, page_limit_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_freeze_set"); + + private static void freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) + { + Eina.Log.Debug("function elm_interface_scrollable_freeze_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetFreeze(freeze); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); } - } else { - elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_limit_h, page_limit_v); } - } - private static elm_interface_scrollable_page_scroll_limit_set_delegate elm_interface_scrollable_page_scroll_limit_set_static_delegate; + private static elm_interface_scrollable_freeze_set_delegate elm_interface_scrollable_freeze_set_static_delegate; - private delegate void elm_interface_scrollable_page_snap_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + private delegate void elm_interface_scrollable_content_viewport_resize_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb); + + public delegate void elm_interface_scrollable_content_viewport_resize_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableResizeCb viewport_resize_cb); - public delegate void elm_interface_scrollable_page_snap_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_snap_allow_get"); - private static void page_snap_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - horiz = default(bool); vert = default(bool); - try { - ((IInterfaceScrollableConcrete)wrapper).GetPageSnapAllow( out horiz, out vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_resize_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_viewport_resize_cb_set"); + + private static void content_viewport_resize_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_content_viewport_resize_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetContentViewportResizeCb(viewport_resize_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport_resize_cb); } - } else { - elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); } - } - private static elm_interface_scrollable_page_snap_allow_get_delegate elm_interface_scrollable_page_snap_allow_get_static_delegate; + private static elm_interface_scrollable_content_viewport_resize_cb_set_delegate elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate; - private delegate void elm_interface_scrollable_page_snap_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + private delegate void elm_interface_scrollable_scroll_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb); + + public delegate void elm_interface_scrollable_scroll_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_left_cb); - public delegate void elm_interface_scrollable_page_snap_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_snap_allow_set"); - private static void page_snap_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetPageSnapAllow( horiz, vert); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_left_cb_set"); + + private static void scroll_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_left_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetScrollLeftCb(scroll_left_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_left_cb); } - } else { - elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); } - } - private static elm_interface_scrollable_page_snap_allow_set_delegate elm_interface_scrollable_page_snap_allow_set_static_delegate; + private static elm_interface_scrollable_scroll_left_cb_set_delegate elm_interface_scrollable_scroll_left_cb_set_static_delegate; - private delegate void elm_interface_scrollable_paging_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); + + private delegate void elm_interface_scrollable_vbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb); + + public delegate void elm_interface_scrollable_vbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_press_cb); - public delegate void elm_interface_scrollable_paging_get_api_delegate(System.IntPtr obj, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_paging_get"); - private static void paging_get(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) - { - Eina.Log.Debug("function elm_interface_scrollable_paging_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pagerel_h = default(double); pagerel_v = default(double); pagesize_h = default(int); pagesize_v = default(int); - try { - ((IInterfaceScrollableConcrete)wrapper).GetPaging( out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_press_cb_set"); + + private static void vbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_vbar_press_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetVbarPressCb(vbar_press_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_press_cb); } - } else { - elm_interface_scrollable_paging_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); } - } - private static elm_interface_scrollable_paging_get_delegate elm_interface_scrollable_paging_get_static_delegate; + private static elm_interface_scrollable_vbar_press_cb_set_delegate elm_interface_scrollable_vbar_press_cb_set_static_delegate; - private delegate void elm_interface_scrollable_paging_set_delegate(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); + + private delegate void elm_interface_scrollable_hbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb); + + public delegate void elm_interface_scrollable_hbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_press_cb); - public delegate void elm_interface_scrollable_paging_set_api_delegate(System.IntPtr obj, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_paging_set"); - private static void paging_set(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) - { - Eina.Log.Debug("function elm_interface_scrollable_paging_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetPaging( pagerel_h, pagerel_v, pagesize_h, pagesize_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_press_cb_set"); + + private static void hbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_hbar_press_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetHbarPressCb(hbar_press_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_press_cb); } - } else { - elm_interface_scrollable_paging_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagerel_h, pagerel_v, pagesize_h, pagesize_v); } - } - private static elm_interface_scrollable_paging_set_delegate elm_interface_scrollable_paging_set_static_delegate; + private static elm_interface_scrollable_hbar_press_cb_set_delegate elm_interface_scrollable_hbar_press_cb_set_static_delegate; - private delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void elm_interface_scrollable_hbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb); + + public delegate void elm_interface_scrollable_hbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_unpress_cb); - public delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_single_direction_get"); - private static Elm.Scroller.SingleDirection single_direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_single_direction_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Elm.Scroller.SingleDirection _ret_var = default(Elm.Scroller.SingleDirection); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetSingleDirection(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_unpress_cb_set"); + + private static void hbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_hbar_unpress_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetHbarUnpressCb(hbar_unpress_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_unpress_cb); } - return _ret_var; - } else { - return elm_interface_scrollable_single_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static elm_interface_scrollable_single_direction_get_delegate elm_interface_scrollable_single_direction_get_static_delegate; + private static elm_interface_scrollable_hbar_unpress_cb_set_delegate elm_interface_scrollable_hbar_unpress_cb_set_static_delegate; - private delegate void elm_interface_scrollable_single_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir); + + private delegate void elm_interface_scrollable_drag_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb); + + public delegate void elm_interface_scrollable_drag_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_stop_cb); - public delegate void elm_interface_scrollable_single_direction_set_api_delegate(System.IntPtr obj, Elm.Scroller.SingleDirection single_dir); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_single_direction_set"); - private static void single_direction_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir) - { - Eina.Log.Debug("function elm_interface_scrollable_single_direction_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetSingleDirection( single_dir); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_drag_stop_cb_set"); + + private static void drag_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_drag_stop_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetDragStopCb(drag_stop_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_stop_cb); } - } else { - elm_interface_scrollable_single_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), single_dir); } - } - private static elm_interface_scrollable_single_direction_set_delegate elm_interface_scrollable_single_direction_set_static_delegate; + private static elm_interface_scrollable_drag_stop_cb_set_delegate elm_interface_scrollable_drag_stop_cb_set_static_delegate; - private delegate void elm_interface_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + private delegate void elm_interface_scrollable_scroll_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb); + + public delegate void elm_interface_scrollable_scroll_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_stop_cb); - public delegate void elm_interface_scrollable_step_size_get_api_delegate(System.IntPtr obj, out int x, out int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_step_size_get"); - private static void step_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function elm_interface_scrollable_step_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); - try { - ((IInterfaceScrollableConcrete)wrapper).GetStepSize( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_stop_cb_set"); + + private static void scroll_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_stop_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetScrollStopCb(scroll_stop_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_stop_cb); } - } else { - elm_interface_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } - private static elm_interface_scrollable_step_size_get_delegate elm_interface_scrollable_step_size_get_static_delegate; + private static elm_interface_scrollable_scroll_stop_cb_set_delegate elm_interface_scrollable_scroll_stop_cb_set_static_delegate; - private delegate void elm_interface_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + private delegate void elm_interface_scrollable_extern_pan_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pan); + + public delegate void elm_interface_scrollable_extern_pan_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pan); - public delegate void elm_interface_scrollable_step_size_set_api_delegate(System.IntPtr obj, int x, int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_step_size_set"); - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function elm_interface_scrollable_step_size_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetStepSize( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_extern_pan_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_extern_pan_set"); + + private static void extern_pan_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object pan) + { + Eina.Log.Debug("function elm_interface_scrollable_extern_pan_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetExternPan(pan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pan); } - } else { - elm_interface_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } - private static elm_interface_scrollable_step_size_set_delegate elm_interface_scrollable_step_size_set_static_delegate; + private static elm_interface_scrollable_extern_pan_set_delegate elm_interface_scrollable_extern_pan_set_static_delegate; - private delegate void elm_interface_scrollable_content_loop_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + private delegate void elm_interface_scrollable_page_change_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb); + + public delegate void elm_interface_scrollable_page_change_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb page_change_cb); - public delegate void elm_interface_scrollable_content_loop_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_loop_get"); - private static void content_loop_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function elm_interface_scrollable_content_loop_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - loop_h = default(bool); loop_v = default(bool); - try { - ((IInterfaceScrollableConcrete)wrapper).GetContentLoop( out loop_h, out loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_change_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_change_cb_set"); + + private static void page_change_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_page_change_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetPageChangeCb(page_change_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_change_cb); } - } else { - elm_interface_scrollable_content_loop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); } - } - private static elm_interface_scrollable_content_loop_get_delegate elm_interface_scrollable_content_loop_get_static_delegate; + private static elm_interface_scrollable_page_change_cb_set_delegate elm_interface_scrollable_page_change_cb_set_static_delegate; - private delegate void elm_interface_scrollable_content_loop_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + private delegate void elm_interface_scrollable_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + public delegate void elm_interface_scrollable_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public delegate void elm_interface_scrollable_content_loop_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_loop_set"); - private static void content_loop_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function elm_interface_scrollable_content_loop_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetContentLoop( loop_h, loop_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hold_set"); + + private static void hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) + { + Eina.Log.Debug("function elm_interface_scrollable_hold_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetHold(hold); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); } - } else { - elm_interface_scrollable_content_loop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); } - } - private static elm_interface_scrollable_content_loop_set_delegate elm_interface_scrollable_content_loop_set_static_delegate; + private static elm_interface_scrollable_hold_set_delegate elm_interface_scrollable_hold_set_static_delegate; - private delegate void elm_interface_scrollable_scroll_up_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb); + + private delegate void elm_interface_scrollable_animate_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb); + + public delegate void elm_interface_scrollable_animate_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_start_cb); - public delegate void elm_interface_scrollable_scroll_up_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_up_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_up_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_up_cb_set"); - private static void scroll_up_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_up_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetScrollUpCb( scroll_up_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_animate_start_cb_set"); + + private static void animate_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_animate_start_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetAnimateStartCb(animate_start_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_start_cb); } - } else { - elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_up_cb); } - } - private static elm_interface_scrollable_scroll_up_cb_set_delegate elm_interface_scrollable_scroll_up_cb_set_static_delegate; + private static elm_interface_scrollable_animate_start_cb_set_delegate elm_interface_scrollable_animate_start_cb_set_static_delegate; - private delegate void elm_interface_scrollable_hbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb); + + private delegate void elm_interface_scrollable_scroll_down_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb); + + public delegate void elm_interface_scrollable_scroll_down_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_down_cb); - public delegate void elm_interface_scrollable_hbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_drag_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_hbar_drag_cb_set"); - private static void hbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_hbar_drag_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetHbarDragCb( hbar_drag_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_down_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_down_cb_set"); + + private static void scroll_down_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_down_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetScrollDownCb(scroll_down_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_down_cb); } - } else { - elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_drag_cb); } - } - private static elm_interface_scrollable_hbar_drag_cb_set_delegate elm_interface_scrollable_hbar_drag_cb_set_static_delegate; + private static elm_interface_scrollable_scroll_down_cb_set_delegate elm_interface_scrollable_scroll_down_cb_set_static_delegate; - private delegate void elm_interface_scrollable_drag_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb); + + private delegate void elm_interface_scrollable_page_relative_set_delegate(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel); + + public delegate void elm_interface_scrollable_page_relative_set_api_delegate(System.IntPtr obj, double h_pagerel, double v_pagerel); - public delegate void elm_interface_scrollable_drag_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_start_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_drag_start_cb_set"); - private static void drag_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_drag_start_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetDragStartCb( drag_start_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_relative_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_relative_set"); + + private static void page_relative_set(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel) + { + Eina.Log.Debug("function elm_interface_scrollable_page_relative_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetPageRelative(h_pagerel, v_pagerel); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_relative_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), h_pagerel, v_pagerel); } - } else { - elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_start_cb); } - } - private static elm_interface_scrollable_drag_start_cb_set_delegate elm_interface_scrollable_drag_start_cb_set_static_delegate; + private static elm_interface_scrollable_page_relative_set_delegate elm_interface_scrollable_page_relative_set_static_delegate; - private delegate void elm_interface_scrollable_scroll_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb); + + private delegate void elm_interface_scrollable_scroll_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb); + + public delegate void elm_interface_scrollable_scroll_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_cb); - public delegate void elm_interface_scrollable_scroll_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_start_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_start_cb_set"); - private static void scroll_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_start_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetScrollStartCb( scroll_start_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_cb_set"); + + private static void scroll_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetScrollCb(scroll_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_cb); } - } else { - elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_start_cb); } - } - private static elm_interface_scrollable_scroll_start_cb_set_delegate elm_interface_scrollable_scroll_start_cb_set_static_delegate; + private static elm_interface_scrollable_scroll_cb_set_delegate elm_interface_scrollable_scroll_cb_set_static_delegate; - private delegate void elm_interface_scrollable_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + private delegate void elm_interface_scrollable_animate_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb); + + public delegate void elm_interface_scrollable_animate_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_stop_cb); - public delegate void elm_interface_scrollable_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_freeze_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_freeze_set"); - private static void freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function elm_interface_scrollable_freeze_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetFreeze( freeze); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_animate_stop_cb_set"); + + private static void animate_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_animate_stop_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetAnimateStopCb(animate_stop_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_stop_cb); } - } else { - elm_interface_scrollable_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); } - } - private static elm_interface_scrollable_freeze_set_delegate elm_interface_scrollable_freeze_set_static_delegate; + private static elm_interface_scrollable_animate_stop_cb_set_delegate elm_interface_scrollable_animate_stop_cb_set_static_delegate; - private delegate void elm_interface_scrollable_content_viewport_resize_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb); + + private delegate void elm_interface_scrollable_content_min_limit_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb); + + public delegate void elm_interface_scrollable_content_min_limit_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableMinLimitCb min_limit_cb); - public delegate void elm_interface_scrollable_content_viewport_resize_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableResizeCb viewport_resize_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_resize_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_viewport_resize_cb_set"); - private static void content_viewport_resize_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_content_viewport_resize_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetContentViewportResizeCb( viewport_resize_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_min_limit_cb_set"); + + private static void content_min_limit_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_content_min_limit_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetContentMinLimitCb(min_limit_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min_limit_cb); } - } else { - elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport_resize_cb); } - } - private static elm_interface_scrollable_content_viewport_resize_cb_set_delegate elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate; + private static elm_interface_scrollable_content_min_limit_cb_set_delegate elm_interface_scrollable_content_min_limit_cb_set_static_delegate; - private delegate void elm_interface_scrollable_scroll_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb); + + private delegate void elm_interface_scrollable_scroll_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb); + + public delegate void elm_interface_scrollable_scroll_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_right_cb); - public delegate void elm_interface_scrollable_scroll_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_left_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_left_cb_set"); - private static void scroll_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_left_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetScrollLeftCb( scroll_left_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_right_cb_set"); + + private static void scroll_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_scroll_right_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetScrollRightCb(scroll_right_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_right_cb); } - } else { - elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_left_cb); } - } - private static elm_interface_scrollable_scroll_left_cb_set_delegate elm_interface_scrollable_scroll_left_cb_set_static_delegate; + private static elm_interface_scrollable_scroll_right_cb_set_delegate elm_interface_scrollable_scroll_right_cb_set_static_delegate; - private delegate void elm_interface_scrollable_vbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb); + + private delegate void elm_interface_scrollable_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + public delegate void elm_interface_scrollable_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); - public delegate void elm_interface_scrollable_vbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_press_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_vbar_press_cb_set"); - private static void vbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_vbar_press_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetVbarPressCb( vbar_press_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_set"); + + private static void scrollable_content_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) + { + Eina.Log.Debug("function elm_interface_scrollable_content_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetScrollableContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } - } else { - elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_press_cb); } - } - private static elm_interface_scrollable_vbar_press_cb_set_delegate elm_interface_scrollable_vbar_press_cb_set_static_delegate; + private static elm_interface_scrollable_content_set_delegate elm_interface_scrollable_content_set_static_delegate; - private delegate void elm_interface_scrollable_hbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb); + + private delegate void elm_interface_scrollable_edge_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb); + + public delegate void elm_interface_scrollable_edge_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_left_cb); - public delegate void elm_interface_scrollable_hbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_press_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_hbar_press_cb_set"); - private static void hbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_hbar_press_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetHbarPressCb( hbar_press_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_left_cb_set"); + + private static void edge_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_edge_left_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetEdgeLeftCb(edge_left_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_left_cb); } - } else { - elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_press_cb); } - } - private static elm_interface_scrollable_hbar_press_cb_set_delegate elm_interface_scrollable_hbar_press_cb_set_static_delegate; + private static elm_interface_scrollable_edge_left_cb_set_delegate elm_interface_scrollable_edge_left_cb_set_static_delegate; - private delegate void elm_interface_scrollable_hbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb); + + private delegate void elm_interface_scrollable_vbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb); + + public delegate void elm_interface_scrollable_vbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_drag_cb); - public delegate void elm_interface_scrollable_hbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_unpress_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_hbar_unpress_cb_set"); - private static void hbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_hbar_unpress_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetHbarUnpressCb( hbar_unpress_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_drag_cb_set"); + + private static void vbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_vbar_drag_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetVbarDragCb(vbar_drag_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_drag_cb); } - } else { - elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_unpress_cb); } - } - private static elm_interface_scrollable_hbar_unpress_cb_set_delegate elm_interface_scrollable_hbar_unpress_cb_set_static_delegate; + private static elm_interface_scrollable_vbar_drag_cb_set_delegate elm_interface_scrollable_vbar_drag_cb_set_static_delegate; - private delegate void elm_interface_scrollable_drag_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb); + + private delegate void elm_interface_scrollable_vbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb); + + public delegate void elm_interface_scrollable_vbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_unpress_cb); - public delegate void elm_interface_scrollable_drag_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_stop_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_drag_stop_cb_set"); - private static void drag_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_drag_stop_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetDragStopCb( drag_stop_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_unpress_cb_set"); + + private static void vbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_vbar_unpress_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetVbarUnpressCb(vbar_unpress_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_unpress_cb); } - } else { - elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_stop_cb); } - } - private static elm_interface_scrollable_drag_stop_cb_set_delegate elm_interface_scrollable_drag_stop_cb_set_static_delegate; + private static elm_interface_scrollable_vbar_unpress_cb_set_delegate elm_interface_scrollable_vbar_unpress_cb_set_static_delegate; - private delegate void elm_interface_scrollable_scroll_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb); + + private delegate void elm_interface_scrollable_edge_bottom_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb); + + public delegate void elm_interface_scrollable_edge_bottom_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_bottom_cb); - public delegate void elm_interface_scrollable_scroll_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_stop_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_stop_cb_set"); - private static void scroll_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_stop_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetScrollStopCb( scroll_stop_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_bottom_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_bottom_cb_set"); + + private static void edge_bottom_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_edge_bottom_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetEdgeBottomCb(edge_bottom_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_bottom_cb); } - } else { - elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_stop_cb); } - } - private static elm_interface_scrollable_scroll_stop_cb_set_delegate elm_interface_scrollable_scroll_stop_cb_set_static_delegate; + private static elm_interface_scrollable_edge_bottom_cb_set_delegate elm_interface_scrollable_edge_bottom_cb_set_static_delegate; - private delegate void elm_interface_scrollable_extern_pan_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object pan); + + private delegate void elm_interface_scrollable_edge_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb); + + public delegate void elm_interface_scrollable_edge_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_right_cb); - public delegate void elm_interface_scrollable_extern_pan_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object pan); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_extern_pan_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_extern_pan_set"); - private static void extern_pan_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object pan) - { - Eina.Log.Debug("function elm_interface_scrollable_extern_pan_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetExternPan( pan); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_right_cb_set"); + + private static void edge_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_edge_right_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetEdgeRightCb(edge_right_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_right_cb); } - } else { - elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pan); } - } - private static elm_interface_scrollable_extern_pan_set_delegate elm_interface_scrollable_extern_pan_set_static_delegate; + private static elm_interface_scrollable_edge_right_cb_set_delegate elm_interface_scrollable_edge_right_cb_set_static_delegate; - private delegate void elm_interface_scrollable_page_change_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb); + + private delegate void elm_interface_scrollable_edge_top_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb); + + public delegate void elm_interface_scrollable_edge_top_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_top_cb); - public delegate void elm_interface_scrollable_page_change_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb page_change_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_change_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_change_cb_set"); - private static void page_change_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_page_change_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetPageChangeCb( page_change_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_top_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_top_cb_set"); + + private static void edge_top_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb) + { + Eina.Log.Debug("function elm_interface_scrollable_edge_top_cb_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetEdgeTopCb(edge_top_cb); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_top_cb); } - } else { - elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_change_cb); } - } - private static elm_interface_scrollable_page_change_cb_set_delegate elm_interface_scrollable_page_change_cb_set_static_delegate; + private static elm_interface_scrollable_edge_top_cb_set_delegate elm_interface_scrollable_edge_top_cb_set_static_delegate; - private delegate void elm_interface_scrollable_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + private delegate void elm_interface_scrollable_objects_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object hit_rectangle); + + public delegate void elm_interface_scrollable_objects_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object hit_rectangle); - public delegate void elm_interface_scrollable_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hold_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_hold_set"); - private static void hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function elm_interface_scrollable_hold_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetHold( hold); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_objects_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_objects_set"); + + private static void objects_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) + { + Eina.Log.Debug("function elm_interface_scrollable_objects_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetObjects(edje_object, hit_rectangle); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_objects_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edje_object, hit_rectangle); } - } else { - elm_interface_scrollable_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); } - } - private static elm_interface_scrollable_hold_set_delegate elm_interface_scrollable_hold_set_static_delegate; + private static elm_interface_scrollable_objects_set_delegate elm_interface_scrollable_objects_set_static_delegate; - private delegate void elm_interface_scrollable_animate_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb); + + private delegate void elm_interface_scrollable_last_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); + + public delegate void elm_interface_scrollable_last_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); - public delegate void elm_interface_scrollable_animate_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_start_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_animate_start_cb_set"); - private static void animate_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_animate_start_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetAnimateStartCb( animate_start_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_last_page_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_last_page_get"); + + private static void last_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) + { + Eina.Log.Debug("function elm_interface_scrollable_last_page_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pagenumber_h = default(int); pagenumber_v = default(int); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetLastPage(out pagenumber_h, out pagenumber_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_last_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); } - } else { - elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_start_cb); } - } - private static elm_interface_scrollable_animate_start_cb_set_delegate elm_interface_scrollable_animate_start_cb_set_static_delegate; + private static elm_interface_scrollable_last_page_get_delegate elm_interface_scrollable_last_page_get_static_delegate; - private delegate void elm_interface_scrollable_scroll_down_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb); + + private delegate void elm_interface_scrollable_current_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); + + public delegate void elm_interface_scrollable_current_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); - public delegate void elm_interface_scrollable_scroll_down_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_down_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_down_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_down_cb_set"); - private static void scroll_down_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_down_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetScrollDownCb( scroll_down_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_current_page_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_current_page_get"); + + private static void current_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) + { + Eina.Log.Debug("function elm_interface_scrollable_current_page_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + pagenumber_h = default(int); pagenumber_v = default(int); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetCurrentPage(out pagenumber_h, out pagenumber_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_current_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); } - } else { - elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_down_cb); } - } - private static elm_interface_scrollable_scroll_down_cb_set_delegate elm_interface_scrollable_scroll_down_cb_set_static_delegate; + private static elm_interface_scrollable_current_page_get_delegate elm_interface_scrollable_current_page_get_static_delegate; - private delegate void elm_interface_scrollable_page_relative_set_delegate(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel); + + private delegate void elm_interface_scrollable_content_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); + + public delegate void elm_interface_scrollable_content_viewport_geometry_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_viewport_geometry_get"); + + private static void content_viewport_geometry_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_viewport_geometry_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); w = default(int); h = default(int); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetContentViewportGeometry(out x, out y, out w, out h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_page_relative_set_api_delegate(System.IntPtr obj, double h_pagerel, double v_pagerel); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_relative_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_relative_set"); - private static void page_relative_set(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel) - { - Eina.Log.Debug("function elm_interface_scrollable_page_relative_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IInterfaceScrollableConcrete)wrapper).SetPageRelative( h_pagerel, v_pagerel); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_page_relative_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), h_pagerel, v_pagerel); + else + { + elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); + } } - } - private static elm_interface_scrollable_page_relative_set_delegate elm_interface_scrollable_page_relative_set_static_delegate; - - private delegate void elm_interface_scrollable_scroll_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb); + private static elm_interface_scrollable_content_viewport_geometry_get_delegate elm_interface_scrollable_content_viewport_geometry_get_static_delegate; + + private delegate void elm_interface_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int w, out int h); - public delegate void elm_interface_scrollable_scroll_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_cb_set"); - private static void scroll_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetScrollCb( scroll_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_cb); - } - } - private static elm_interface_scrollable_scroll_cb_set_delegate elm_interface_scrollable_scroll_cb_set_static_delegate; + + public delegate void elm_interface_scrollable_content_size_get_api_delegate(System.IntPtr obj, out int w, out int h); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_size_get"); - private delegate void elm_interface_scrollable_animate_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb); + private static void content_size_get(System.IntPtr obj, System.IntPtr pd, out int w, out int h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_size_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + w = default(int); h = default(int); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetContentSize(out w, out h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - - public delegate void elm_interface_scrollable_animate_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_stop_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_animate_stop_cb_set"); - private static void animate_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_animate_stop_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetAnimateStopCb( animate_stop_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + elm_interface_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out w, out h); } - } else { - elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_stop_cb); } - } - private static elm_interface_scrollable_animate_stop_cb_set_delegate elm_interface_scrollable_animate_stop_cb_set_static_delegate; - - private delegate void elm_interface_scrollable_content_min_limit_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb); + private static elm_interface_scrollable_content_size_get_delegate elm_interface_scrollable_content_size_get_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool elm_interface_scrollable_item_loop_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_content_min_limit_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableMinLimitCb min_limit_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_min_limit_cb_set"); - private static void content_min_limit_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_content_min_limit_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetContentMinLimitCb( min_limit_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min_limit_cb); - } - } - private static elm_interface_scrollable_content_min_limit_cb_set_delegate elm_interface_scrollable_content_min_limit_cb_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool elm_interface_scrollable_item_loop_enabled_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_item_loop_enabled_get"); - private delegate void elm_interface_scrollable_scroll_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb); + private static bool item_loop_enabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetItemLoopEnabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void elm_interface_scrollable_scroll_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_right_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_scroll_right_cb_set"); - private static void scroll_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_right_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetScrollRightCb( scroll_right_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_right_cb); + else + { + return elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_scroll_right_cb_set_delegate elm_interface_scrollable_scroll_right_cb_set_static_delegate; - - private delegate void elm_interface_scrollable_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); + private static elm_interface_scrollable_item_loop_enabled_get_delegate elm_interface_scrollable_item_loop_enabled_get_static_delegate; + + private delegate void elm_interface_scrollable_item_loop_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); - public delegate void elm_interface_scrollable_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object content); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_set"); - private static void scrollable_content_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) - { - Eina.Log.Debug("function elm_interface_scrollable_content_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetScrollableContent( content); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - private static elm_interface_scrollable_content_set_delegate elm_interface_scrollable_content_set_static_delegate; - + + public delegate void elm_interface_scrollable_item_loop_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - private delegate void elm_interface_scrollable_edge_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_item_loop_enabled_set"); + private static void item_loop_enabled_set(System.IntPtr obj, System.IntPtr pd, bool enable) + { + Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetItemLoopEnabled(enable); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_edge_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_left_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_edge_left_cb_set"); - private static void edge_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_left_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetEdgeLeftCb( edge_left_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + + } + else + { + elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); } - } else { - elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_left_cb); } - } - private static elm_interface_scrollable_edge_left_cb_set_delegate elm_interface_scrollable_edge_left_cb_set_static_delegate; + private static elm_interface_scrollable_item_loop_enabled_set_delegate elm_interface_scrollable_item_loop_enabled_set_static_delegate; - private delegate void elm_interface_scrollable_vbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb); + + private delegate void elm_interface_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); + + public delegate void elm_interface_scrollable_content_pos_set_api_delegate(System.IntPtr obj, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); - public delegate void elm_interface_scrollable_vbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_drag_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_vbar_drag_cb_set"); - private static void vbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_vbar_drag_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetVbarDragCb( vbar_drag_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_pos_set"); + + private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, int x, int y, bool sig) + { + Eina.Log.Debug("function elm_interface_scrollable_content_pos_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetContentPos(x, y, sig); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, sig); } - } else { - elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_drag_cb); } - } - private static elm_interface_scrollable_vbar_drag_cb_set_delegate elm_interface_scrollable_vbar_drag_cb_set_static_delegate; + private static elm_interface_scrollable_content_pos_set_delegate elm_interface_scrollable_content_pos_set_static_delegate; - private delegate void elm_interface_scrollable_vbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb); + + private delegate void elm_interface_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + public delegate void elm_interface_scrollable_content_pos_get_api_delegate(System.IntPtr obj, out int x, out int y); - public delegate void elm_interface_scrollable_vbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_unpress_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_vbar_unpress_cb_set"); - private static void vbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_vbar_unpress_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetVbarUnpressCb( vbar_unpress_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_pos_get"); + + private static void content_pos_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + { + Eina.Log.Debug("function elm_interface_scrollable_content_pos_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + x = default(int); y = default(int); + try + { + ((IInterfaceScrollableConcrete)wrapper).GetContentPos(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } else { - elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_unpress_cb); } - } - private static elm_interface_scrollable_vbar_unpress_cb_set_delegate elm_interface_scrollable_vbar_unpress_cb_set_static_delegate; + private static elm_interface_scrollable_content_pos_get_delegate elm_interface_scrollable_content_pos_get_static_delegate; - private delegate void elm_interface_scrollable_edge_bottom_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb); + + private delegate void elm_interface_scrollable_page_show_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); + + public delegate void elm_interface_scrollable_page_show_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); - public delegate void elm_interface_scrollable_edge_bottom_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_bottom_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_bottom_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_edge_bottom_cb_set"); - private static void edge_bottom_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_bottom_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetEdgeBottomCb( edge_bottom_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_show_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_show"); + + private static void page_show(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) + { + Eina.Log.Debug("function elm_interface_scrollable_page_show was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).ShowPage(pagenumber_h, pagenumber_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); } - } else { - elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_bottom_cb); } - } - private static elm_interface_scrollable_edge_bottom_cb_set_delegate elm_interface_scrollable_edge_bottom_cb_set_static_delegate; + private static elm_interface_scrollable_page_show_delegate elm_interface_scrollable_page_show_static_delegate; - private delegate void elm_interface_scrollable_edge_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb); + + private delegate void elm_interface_scrollable_region_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + + public delegate void elm_interface_scrollable_region_bring_in_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - public delegate void elm_interface_scrollable_edge_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_right_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_edge_right_cb_set"); - private static void edge_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_right_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetEdgeRightCb( edge_right_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_region_bring_in_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_region_bring_in"); + + private static void region_bring_in(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) + { + Eina.Log.Debug("function elm_interface_scrollable_region_bring_in was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).RegionBringIn(x, y, w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_region_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); } - } else { - elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_right_cb); } - } - private static elm_interface_scrollable_edge_right_cb_set_delegate elm_interface_scrollable_edge_right_cb_set_static_delegate; + private static elm_interface_scrollable_region_bring_in_delegate elm_interface_scrollable_region_bring_in_static_delegate; - private delegate void elm_interface_scrollable_edge_top_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb); + + private delegate void elm_interface_scrollable_page_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); + + public delegate void elm_interface_scrollable_page_bring_in_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); - public delegate void elm_interface_scrollable_edge_top_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_top_cb); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_top_cb_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_edge_top_cb_set"); - private static void edge_top_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_top_cb_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetEdgeTopCb( edge_top_cb); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_bring_in_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_bring_in"); + + private static void page_bring_in(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) + { + Eina.Log.Debug("function elm_interface_scrollable_page_bring_in was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).PageBringIn(pagenumber_h, pagenumber_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_page_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); } - } else { - elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_top_cb); } - } - private static elm_interface_scrollable_edge_top_cb_set_delegate elm_interface_scrollable_edge_top_cb_set_static_delegate; + private static elm_interface_scrollable_page_bring_in_delegate elm_interface_scrollable_page_bring_in_static_delegate; - private delegate void elm_interface_scrollable_objects_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object hit_rectangle); + + private delegate void elm_interface_scrollable_content_region_show_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + + public delegate void elm_interface_scrollable_content_region_show_api_delegate(System.IntPtr obj, int x, int y, int w, int h); + + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_show_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_show"); + + private static void content_region_show(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_region_show was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).ShowContentRegion(x, y, w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - public delegate void elm_interface_scrollable_objects_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Canvas.Object hit_rectangle); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_objects_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_objects_set"); - private static void objects_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) - { - Eina.Log.Debug("function elm_interface_scrollable_objects_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - try { - ((IInterfaceScrollableConcrete)wrapper).SetObjects( edje_object, hit_rectangle); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_objects_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edje_object, hit_rectangle); + else + { + elm_interface_scrollable_content_region_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); + } } - } - private static elm_interface_scrollable_objects_set_delegate elm_interface_scrollable_objects_set_static_delegate; + private static elm_interface_scrollable_content_region_show_delegate elm_interface_scrollable_content_region_show_static_delegate; - private delegate void elm_interface_scrollable_last_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); + + private delegate void elm_interface_scrollable_content_min_limit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + public delegate void elm_interface_scrollable_content_min_limit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public delegate void elm_interface_scrollable_last_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_last_page_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_last_page_get"); - private static void last_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_last_page_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pagenumber_h = default(int); pagenumber_v = default(int); - try { - ((IInterfaceScrollableConcrete)wrapper).GetLastPage( out pagenumber_h, out pagenumber_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_min_limit"); + + private static void content_min_limit(System.IntPtr obj, System.IntPtr pd, bool w, bool h) + { + Eina.Log.Debug("function elm_interface_scrollable_content_min_limit was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).ContentMinLimit(w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_content_min_limit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); } - } else { - elm_interface_scrollable_last_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); } - } - private static elm_interface_scrollable_last_page_get_delegate elm_interface_scrollable_last_page_get_static_delegate; + private static elm_interface_scrollable_content_min_limit_delegate elm_interface_scrollable_content_min_limit_static_delegate; - private delegate void elm_interface_scrollable_current_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); + + private delegate void elm_interface_scrollable_wanted_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + public delegate void elm_interface_scrollable_wanted_region_set_api_delegate(System.IntPtr obj, int x, int y); - public delegate void elm_interface_scrollable_current_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_current_page_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_current_page_get"); - private static void current_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_current_page_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - pagenumber_h = default(int); pagenumber_v = default(int); - try { - ((IInterfaceScrollableConcrete)wrapper).GetCurrentPage( out pagenumber_h, out pagenumber_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wanted_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wanted_region_set"); + + private static void wanted_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + { + Eina.Log.Debug("function elm_interface_scrollable_wanted_region_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetWantedRegion(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } else { - elm_interface_scrollable_current_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); } - } - private static elm_interface_scrollable_current_page_get_delegate elm_interface_scrollable_current_page_get_static_delegate; + private static elm_interface_scrollable_wanted_region_set_delegate elm_interface_scrollable_wanted_region_set_static_delegate; - private delegate void elm_interface_scrollable_content_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); + + private delegate void elm_interface_scrollable_custom_pan_pos_adjust_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y); + + public delegate void elm_interface_scrollable_custom_pan_pos_adjust_api_delegate(System.IntPtr obj, System.IntPtr x, System.IntPtr y); - public delegate void elm_interface_scrollable_content_viewport_geometry_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_viewport_geometry_get"); - private static void content_viewport_geometry_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_viewport_geometry_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); w = default(int); h = default(int); - try { - ((IInterfaceScrollableConcrete)wrapper).GetContentViewportGeometry( out x, out y, out w, out h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper elm_interface_scrollable_custom_pan_pos_adjust_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_custom_pan_pos_adjust"); + + private static void custom_pan_pos_adjust(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y) + { + Eina.Log.Debug("function elm_interface_scrollable_custom_pan_pos_adjust was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + var _in_x = Eina.PrimitiveConversion.PointerToManaged(x); + var _in_y = Eina.PrimitiveConversion.PointerToManaged(y); + + try + { + ((IInterfaceScrollableConcrete)wrapper).CustomPanPosAdjust(_in_x, _in_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } - } else { - elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); } - } - private static elm_interface_scrollable_content_viewport_geometry_get_delegate elm_interface_scrollable_content_viewport_geometry_get_static_delegate; + private static elm_interface_scrollable_custom_pan_pos_adjust_delegate elm_interface_scrollable_custom_pan_pos_adjust_static_delegate; - private delegate void elm_interface_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int w, out int h); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - public delegate void elm_interface_scrollable_content_size_get_api_delegate(System.IntPtr obj, out int w, out int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_size_get"); - private static void content_size_get(System.IntPtr obj, System.IntPtr pd, out int w, out int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_size_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - w = default(int); h = default(int); - try { - ((IInterfaceScrollableConcrete)wrapper).GetContentSize( out w, out h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out w, out h); - } - } - private static elm_interface_scrollable_content_size_get_delegate elm_interface_scrollable_content_size_get_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); - [return: MarshalAs(UnmanagedType.U1)] private delegate bool elm_interface_scrollable_item_loop_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).FocusManagerCreate(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return: MarshalAs(UnmanagedType.U1)] public delegate bool elm_interface_scrollable_item_loop_enabled_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_item_loop_enabled_get"); - private static bool item_loop_enabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetItemLoopEnabled(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static elm_interface_scrollable_item_loop_enabled_get_delegate elm_interface_scrollable_item_loop_enabled_get_static_delegate; - - private delegate void elm_interface_scrollable_item_loop_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_item_loop_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_item_loop_enabled_set"); - private static void item_loop_enabled_set(System.IntPtr obj, System.IntPtr pd, bool enable) - { - Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetItemLoopEnabled( enable); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); - } - } - private static elm_interface_scrollable_item_loop_enabled_set_delegate elm_interface_scrollable_item_loop_enabled_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); - private delegate void elm_interface_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void elm_interface_scrollable_content_pos_set_api_delegate(System.IntPtr obj, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_pos_set"); - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, int x, int y, bool sig) - { - Eina.Log.Debug("function elm_interface_scrollable_content_pos_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetContentPos( x, y, sig); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, sig); + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_content_pos_set_delegate elm_interface_scrollable_content_pos_set_static_delegate; + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; - private delegate void elm_interface_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); - public delegate void elm_interface_scrollable_content_pos_get_api_delegate(System.IntPtr obj, out int x, out int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_pos_get"); - private static void content_pos_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function elm_interface_scrollable_content_pos_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - x = default(int); y = default(int); - try { - ((IInterfaceScrollableConcrete)wrapper).GetContentPos( out x, out y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); } - } else { - elm_interface_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } - } - private static elm_interface_scrollable_content_pos_get_delegate elm_interface_scrollable_content_pos_get_static_delegate; + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; - private delegate void elm_interface_scrollable_page_show_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public delegate void elm_interface_scrollable_page_show_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_show_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_show"); - private static void page_show(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_show was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).ShowPage( pagenumber_h, pagenumber_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_page_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); - } - } - private static elm_interface_scrollable_page_show_delegate elm_interface_scrollable_page_show_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); - private delegate void elm_interface_scrollable_region_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate void elm_interface_scrollable_region_bring_in_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_region_bring_in_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_region_bring_in"); - private static void region_bring_in(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) - { - Eina.Log.Debug("function elm_interface_scrollable_region_bring_in was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).RegionBringIn( x, y, w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_region_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_region_bring_in_delegate elm_interface_scrollable_region_bring_in_static_delegate; + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; - private delegate void elm_interface_scrollable_page_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); - public delegate void elm_interface_scrollable_page_bring_in_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_bring_in_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_page_bring_in"); - private static void page_bring_in(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_bring_in was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).PageBringIn( pagenumber_h, pagenumber_v); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); + + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); } - } else { - elm_interface_scrollable_page_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); } - } - private static elm_interface_scrollable_page_bring_in_delegate elm_interface_scrollable_page_bring_in_static_delegate; - - private delegate void elm_interface_scrollable_content_region_show_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_content_region_show_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_show_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_region_show"); - private static void content_region_show(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_region_show was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).ShowContentRegion( x, y, w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_content_region_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); - } - } - private static elm_interface_scrollable_content_region_show_delegate elm_interface_scrollable_content_region_show_static_delegate; + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); - private delegate void elm_interface_scrollable_content_min_limit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - public delegate void elm_interface_scrollable_content_min_limit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_content_min_limit"); - private static void content_min_limit(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_min_limit was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).ContentMinLimit( w, h); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_content_min_limit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static elm_interface_scrollable_content_min_limit_delegate elm_interface_scrollable_content_min_limit_static_delegate; + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - private delegate void elm_interface_scrollable_wanted_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public delegate void elm_interface_scrollable_wanted_region_set_api_delegate(System.IntPtr obj, int x, int y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wanted_region_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_wanted_region_set"); - private static void wanted_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function elm_interface_scrollable_wanted_region_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetWantedRegion( x, y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - private static elm_interface_scrollable_wanted_region_set_delegate elm_interface_scrollable_wanted_region_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); - private delegate void elm_interface_scrollable_custom_pan_pos_adjust_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y); + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var.Handle; - public delegate void elm_interface_scrollable_custom_pan_pos_adjust_api_delegate(System.IntPtr obj, System.IntPtr x, System.IntPtr y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_custom_pan_pos_adjust_ptr = new Efl.Eo.FunctionWrapper(_Module, "elm_interface_scrollable_custom_pan_pos_adjust"); - private static void custom_pan_pos_adjust(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y) - { - Eina.Log.Debug("function elm_interface_scrollable_custom_pan_pos_adjust was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - var _in_x = Eina.PrimitiveConversion.PointerToManaged(x); - var _in_y = Eina.PrimitiveConversion.PointerToManaged(y); - - try { - ((IInterfaceScrollableConcrete)wrapper).CustomPanPosAdjust( _in_x, _in_y); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - } else { - elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } } - } - private static elm_interface_scrollable_custom_pan_pos_adjust_delegate elm_interface_scrollable_custom_pan_pos_adjust_static_delegate; + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_widget_focus_manager_create"); - private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).FocusManagerCreate( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_get"); - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetManagerFocus(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_focus_set"); - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetManagerFocus( focus); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; - + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_get"); - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetRedirect(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; - - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_redirect_set"); - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetRedirect( redirect); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } else { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_border_elements_get"); - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetBorderElements(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } } - } - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_viewport_elements_get"); - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetViewportElements( _in_viewport); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var.Handle; - } else { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); - } - } - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); - + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_get"); - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).GetRoot(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } } - } - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_root_set"); - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - bool _ret_var = default(bool); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).SetRoot( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_move"); - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).Move( direction); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } } - } - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_move"); - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).MoveRequest( direction, child, logical); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return _ret_var; - } else { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); - } - } - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_request_subchild"); - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).RequestSubchild( root); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } } - } - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; - - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_fetch"); - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).Fetch( child); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - } else { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); - } - } - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((IInterfaceScrollableConcrete)wrapper).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_logical_end"); - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try { - _ret_var = ((IInterfaceScrollableConcrete)wrapper).LogicalEnd(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - } else { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } } - } - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_reset_history"); - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).ResetHistory(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_pop_history_stack"); - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).PopHistoryStack(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); + + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).SetupOnFirstTouch( direction, entry); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); + + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); } - } else { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); } - } - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).FreezeDirtyLogic(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); + + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); - if(wrapper != null) { - - try { - ((IInterfaceScrollableConcrete)wrapper).DirtyLogicUnfreeze(); - } catch (Exception e) { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); + if (wrapper != null) + { + + try + { + ((IInterfaceScrollableConcrete)wrapper).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } else { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } - } - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; + + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; + + #pragma warning restore CA1707, SA1300, SA1600 + +} } -} -namespace Elm { namespace Scroller { +} + +namespace Elm { + +namespace Scroller { + /// Type that controls when scrollbars should appear. /// See also . public enum Policy @@ -5500,8 +7215,15 @@ Off = 2, /// Sentinel value to indicate last enum field during iteration Last = 3, } -} } -namespace Elm { namespace Scroller { + +} + +} + +namespace Elm { + +namespace Scroller { + /// Type that controls how the content is scrolled. /// See also . public enum SingleDirection @@ -5515,4 +7237,8 @@ Hard = 2, /// Sentinel value to indicate last enum field during iteration Last = 3, } -} } + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/iwrapper.cs b/internals/src/EflSharp/EflSharp/efl/iwrapper.cs index 87442eb..a410a09 100644 --- a/internals/src/EflSharp/EflSharp/efl/iwrapper.cs +++ b/internals/src/EflSharp/EflSharp/efl/iwrapper.cs @@ -2,6 +2,7 @@ using System; using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; @@ -66,6 +67,17 @@ public class Globals efl_ref_count_delegate(IntPtr eo); [DllImport(efl.Libs.Eo)] public static extern int efl_ref_count(IntPtr eo); + [DllImport(efl.Libs.CustomExports)] public static extern void + efl_mono_gchandle_callbacks_set(Efl.FreeGCHandleCb freeGCHandleCb, Efl.RemoveEventsCb removeEventsCb); + [DllImport(efl.Libs.CustomExports)] public static extern void + efl_mono_native_dispose(IntPtr eo, IntPtr gcHandle); + [DllImport(efl.Libs.CustomExports)] public static extern void + efl_mono_thread_safe_native_dispose(IntPtr eo, IntPtr gcHandle); + [DllImport(efl.Libs.CustomExports)] public static extern void + efl_mono_thread_safe_efl_unref(IntPtr eo); + + [DllImport(efl.Libs.CustomExports)] public static extern void + efl_mono_thread_safe_free_cb_exec(IntPtr free_cb, IntPtr cb_data); [DllImport(efl.Libs.Eo)] public static extern IntPtr efl_class_name_get(IntPtr eo); @@ -180,28 +192,14 @@ public class Globals public delegate IntPtr dlerror_delegate(); [DllImport(efl.Libs.Evil)] public static extern IntPtr dlerror(); - public delegate bool efl_event_callback_priority_add_delegate( - System.IntPtr obj, - IntPtr desc, - short priority, - Efl.EventCb cb, - System.IntPtr data); - [DllImport(efl.Libs.Eo)] public static extern bool efl_event_callback_priority_add( - System.IntPtr obj, - IntPtr desc, - short priority, - Efl.EventCb cb, - System.IntPtr data); - public delegate bool efl_event_callback_del_delegate( - System.IntPtr obj, - IntPtr desc, - Efl.EventCb cb, - System.IntPtr data); - [DllImport(efl.Libs.Eo)] public static extern bool efl_event_callback_del( - System.IntPtr obj, - IntPtr desc, - Efl.EventCb cb, - System.IntPtr data); + [DllImport(efl.Libs.Eo)] [return: MarshalAs(UnmanagedType.U1)] public static extern bool + efl_event_callback_priority_add(IntPtr obj, IntPtr desc, short priority, IntPtr cb, IntPtr data); + + [DllImport(efl.Libs.Eo)] [return: MarshalAs(UnmanagedType.U1)] public static extern bool + efl_event_callback_del(IntPtr obj, IntPtr desc, IntPtr cb, IntPtr data); + + [DllImport(efl.Libs.Eo)] [return: MarshalAs(UnmanagedType.U1)] public static extern bool + efl_event_callback_call(IntPtr obj, IntPtr desc, IntPtr event_info); public const int RTLD_NOW = 2; @@ -444,7 +442,9 @@ public class Globals } } - public static IntPtr instantiate_start(IntPtr klass, Efl.Object parent) + public static IntPtr instantiate_start(IntPtr klass, Efl.Object parent, + [CallerFilePath] string file = null, + [CallerLineNumber] int line = 0) { Eina.Log.Debug($"Instantiating from klass 0x{klass.ToInt64():x}"); System.IntPtr parent_ptr = System.IntPtr.Zero; @@ -453,7 +453,7 @@ public class Globals parent_ptr = parent.NativeHandle; } - System.IntPtr eo = Efl.Eo.Globals._efl_add_internal_start("file", 0, klass, parent_ptr, 1, 0); + System.IntPtr eo = Efl.Eo.Globals._efl_add_internal_start(file, line, klass, parent_ptr, 1, 0); if (eo == System.IntPtr.Zero) { throw new Exception("Instantiation failed"); @@ -652,13 +652,84 @@ public class Globals return ret; } + + private static Efl.FreeGCHandleCb FreeGCHandleCallbackDelegate = new Efl.FreeGCHandleCb(FreeGCHandleCallback); + public static void FreeGCHandleCallback(IntPtr gcHandlePtr) + { + try + { + GCHandle gcHandle = GCHandle.FromIntPtr(gcHandlePtr); + gcHandle.Free(); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + + private static Efl.RemoveEventsCb RemoveEventsCallbackDelegate = new Efl.RemoveEventsCb(RemoveEventsCallback); + public static void RemoveEventsCallback(IntPtr obj, IntPtr gcHandlePtr) + { + try + { + GCHandle gcHandle = GCHandle.FromIntPtr(gcHandlePtr); + var eoEvents = gcHandle.Target as Dictionary<(IntPtr desc, object evtDelegate), (IntPtr evtCallerPtr, Efl.EventCb evtCaller)>; + if (eoEvents == null) + { + Eina.Log.Error($"Invalid event dictionary [GCHandle pointer: {gcHandlePtr}]"); + return; + } + + foreach (var item in eoEvents) + { + if (!efl_event_callback_del(obj, item.Key.desc, item.Value.evtCallerPtr, IntPtr.Zero)) + { + Eina.Log.Error($"Failed to remove event proxy for event {item.Key.desc} [cb: {item.Value.evtCallerPtr}]"); + } + } + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + + public static void SetNativeDisposeCallbacks() + { + efl_mono_gchandle_callbacks_set(FreeGCHandleCallbackDelegate, RemoveEventsCallbackDelegate); + } + + public static void ThreadSafeFreeCbExec(EinaFreeCb cbFreeCb, IntPtr cbData) + { + EinaFreeCb cb = (IntPtr gcHandlePtr) => { + cbFreeCb(cbData); + GCHandle gcHandle = GCHandle.FromIntPtr(gcHandlePtr); + gcHandle.Free(); + }; + + Monitor.Enter(Efl.All.InitLock); + if (Efl.All.MainLoopInitialized) + { + IntPtr cbPtr = Marshal.GetFunctionPointerForDelegate(cb); + var handle = GCHandle.Alloc(cb); + var handlePtr = GCHandle.ToIntPtr(handle); + + efl_mono_thread_safe_free_cb_exec(cbPtr, handlePtr); + } + Monitor.Exit(Efl.All.InitLock); + } + } // Globals public static class Config { + public static void Init() { Globals.efl_object_init(); + Globals.SetNativeDisposeCallbacks(); } public static void Shutdown() @@ -900,37 +971,37 @@ public class NonOwnTag : IOwnershipTag { } -public class MarshalTest : ICustomMarshaler +public class MarshalEo : ICustomMarshaler where U : IOwnershipTag { public static ICustomMarshaler GetInstance(string cookie) { - Eina.Log.Debug("MarshalTest.GetInstace cookie " + cookie); - return new MarshalTest(); + Eina.Log.Debug("MarshalEo.GetInstace cookie " + cookie); + return new MarshalEo(); } public void CleanUpManagedData(object ManagedObj) { - //Eina.Log.Warning("MarshalTest.CleanUpManagedData not implemented"); + //Eina.Log.Warning("MarshalEo.CleanUpManagedData not implemented"); //throw new NotImplementedException(); } public void CleanUpNativeData(IntPtr pNativeData) { - //Eina.Log.Warning("MarshalTest.CleanUpNativeData not implemented"); + //Eina.Log.Warning("MarshalEo.CleanUpNativeData not implemented"); //throw new NotImplementedException(); } public int GetNativeDataSize() { - Eina.Log.Debug("MarshalTest.GetNativeDataSize"); + Eina.Log.Debug("MarshalEo.GetNativeDataSize"); return 0; //return 8; } public IntPtr MarshalManagedToNative(object ManagedObj) { - Eina.Log.Debug("MarshalTest.MarshallManagedToNative"); + Eina.Log.Debug("MarshalEo.MarshallManagedToNative"); if (ManagedObj == null) { @@ -957,7 +1028,7 @@ public class MarshalEflClass : ICustomMarshaler { public static ICustomMarshaler GetInstance(string cookie) { - Eina.Log.Debug("MarshalTest.GetInstance cookie " + cookie); + Eina.Log.Debug("MarshalEflClass.GetInstance cookie " + cookie); return new MarshalEflClass(); } @@ -971,13 +1042,13 @@ public class MarshalEflClass : ICustomMarshaler public int GetNativeDataSize() { - Eina.Log.Debug("MarshalTest.GetNativeDataSize"); + Eina.Log.Debug("MarshalEflClass.GetNativeDataSize"); return 0; } public IntPtr MarshalManagedToNative(object ManagedObj) { - Eina.Log.Debug("MarshalTest.MarshallManagedToNative"); + Eina.Log.Debug("MarshalEflClass.MarshallManagedToNative"); if (ManagedObj == null) { return IntPtr.Zero; @@ -989,7 +1060,7 @@ public class MarshalEflClass : ICustomMarshaler public object MarshalNativeToManaged(IntPtr pNativeData) { - Eina.Log.Debug("MarshalTest.MarshalNativeToManaged"); + Eina.Log.Debug("MarshalEflClass.MarshalNativeToManaged"); if (pNativeData == IntPtr.Zero) { return null; diff --git a/internals/src/EflSharp/EflSharp/efl/workaround.cs b/internals/src/EflSharp/EflSharp/efl/workaround.cs index 9f68dfc..24ed729 100644 --- a/internals/src/EflSharp/EflSharp/efl/workaround.cs +++ b/internals/src/EflSharp/EflSharp/efl/workaround.cs @@ -115,6 +115,8 @@ public struct EventDescription }; public delegate void EventCb(System.IntPtr data, ref Event.NativeStruct evt); +public delegate void FreeGCHandleCb(System.IntPtr gcHandle); +public delegate void RemoveEventsCb(System.IntPtr obj, System.IntPtr gcHandle); [StructLayout(LayoutKind.Sequential)] public struct TextCursorCursor